PageSourceSearch

https://residencia-tracker-2447.taskade.app/assets/main-RE7LSRJI.js

js residencia-tracker-2447.taskade.app collected 2026-10-03 15:04:41 UTC 1,364,235 bytes, 550 lines download raw bytes

1var __IMPORT_META_ENV={};var __PROCESS_ENV={NODE_ENV:"production"};
2import{A as Eb,a as Bo,b as L$,c as Ks,d as Xs,e as Wm,f as j$,g as U$,h as B$,i as F$,j as Z$,k as V$,l as G$,m as Jm,n as q$,o as zb,p as H$,q as W$,r as Ys,s as J$,t as K$,u as Km,v as X$,w as vu}from"/chunks/chunk-WWM5NXNF.js";import{b as k$}from"/chunks/chunk-MCSBZ47X.js";import{a as gu,c as Cb}from"/chunks/chunk-GFXAEYNR.js";import"/chunks/chunk-ADGLGAFE.js";import{a as _$,b as qm}from"/chunks/chunk-X72RZCT6.js";import"/chunks/chunk-IA5LNHD2.js";import{a as Uo}from"/chunks/chunk-K5R6X4YL.js";import{a as Ei,b as N$,c as R$,e as Js,f as D$,g as Ai,i as O$}from"/chunks/chunk-2XQKP5EJ.js";import{a as S$,b as $$,e as T$,f as Ws,g as I$,h as P$}from"/chunks/chunk-XRUUFU26.js";import{a as IZ}from"/chunks/chunk-LBOF5UZC.js";import{A as Hm,B as Pe,C as Ba,D as Fa,G as pr,I as Y$,J as Q$,K as eT,a as C$,i as z$,k as E$,n as A$,v as Pb,w as M$}from"/chunks/chunk-DQLHXHMM.js";import{a as w$,b as Ib,c as Zr,d as V,e as Se,f as le}from"/chunks/chunk-OZLXG5XE.js";var rT=Ib((Xm,tT)=>{"use strict";(function(e,t){typeof Xm=="object"&&typeof tT<"u"?t(Xm):typeof define=="function"&&define.amd?define(["exports"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.leaflet={}))})(Xm,(function(e){"use strict";var t="1.9.4";function r(s){var u,f,v,x;for(f=1,v=arguments.length;f<v;f++){x=arguments[f];for(u in x)s[u]=x[u]}return s}var o=Object.create||(function(){function s(){}return function(u){return s.prototype=u,new s}})();function n(s,u){var f=Array.prototype.slice;if(s.bind)return s.bind.apply(s,f.call(arguments,1));var v=f.call(arguments,2);return function(){return s.apply(u,v.length?v.concat(f.call(arguments)):arguments)}}var i=0;function a(s){return"_leaflet_id"in s||(s._leaflet_id=++i),s._leaflet_id}function l(s,u,f){var v,x,I,R;return R=function(){v=!1,x&&(I.apply(f,x),x=!1)},I=function(){v?x=arguments:(s.apply(f,arguments),setTimeout(R,u),v=!0)},I}function c(s,u,f){var v=u[1],x=u[0],I=v-x;return s===v&&f?s:((s-x)%I+I)%I+x}function d(){return!1}function p(s,u){if(u===!1)return s;var f=Math.pow(10,u===void 0?6:u);return Math.round(s*f)/f}function m(s){return s.trim?s.trim():s.replace(/^\s+|\s+$/g,"")}function h(s){return m(s).split(/\s+/)}function g(s,u){Object.prototype.hasOwnProperty.call(s,"options")||(s.options=s.options?o(s.options):{});for(var f in u)s.options[f]=u[f];return s.options}function w(s,u,f){var v=[];for(var x in s)v.push(encodeURIComponent(f?x.toUpperCase():x)+"="+encodeURIComponent(s[x]));return(!u||u.indexOf("?")===-1?"?":"&")+v.join("&")}var $=/\{ *([\w_ -]+) *\}/g;function T(s,u){return s.replace($,function(f,v){var x=u[v];if(x===void 0)throw new Error("No value provided for variable "+f);return typeof x=="function"&&(x=x(u)),x})}var z=Array.isArray||function(s){return Object.prototype.toString.call(s)==="[object Array]"};function P(s,u){for(var f=0;f<s.length;f++)if(s[f]===u)return f;return-1}var k="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function M(s){return window["webkit"+s]||window["moz"+s]||window["ms"+s]}var E=0;function D(s){var u=+new Date,f=Math.max(0,16-(u-E));return E=u+f,window.setTimeout(s,f)}var F=window.requestAnimationFrame||M("RequestAnimationFrame")||D,H=window.cancelAnimationFrame||M("CancelAnimationFrame")||M("CancelRequestAnimationFrame")||function(s){window.clearTimeout(s)};function Z(s,u,f){if(f&&F===D)s.call(u);else return F.call(window,n(s,u))}function W(s){s&&H.call(window,s)}var ke={__proto__:null,extend:r,create:o,bind:n,get lastId(){return i},stamp:a,throttle:l,wrapNum:c,falseFn:d,formatNum:p,trim:m,splitWords:h,setOptions:g,getParamString:w,template:T,isArray:z,indexOf:P,emptyImageUrl:k,requestFn:F,cancelFn:H,requestAnimFrame:Z,cancelAnimFrame:W};function ge(){}ge.extend=function(s){var u=function(){g(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},f=u.__super__=this.prototype,v=o(f);v.constructor=u,u.prototype=v;for(var x in this)Object.prototype.hasOwnProperty.call(this,x)&&x!=="prototype"&&x!=="__super__"&&(u[x]=this[x]);return s.statics&&r(u,s.statics),s.includes&&(xt(s.includes),r.apply(null,[v].concat(s.includes))),r(v,s),delete v.statics,delete v.
2includes,v.options&&(v.options=f.options?o(f.options):{},r(v.options,s.options)),v._initHooks=[],v.callInitHooks=function(){if(!this._initHooksCalled){f.callInitHooks&&f.callInitHooks.call(this),this._initHooksCalled=!0;for(var I=0,R=v._initHooks.length;I<R;I++)v._initHooks[I].call(this)}},u},ge.include=function(s){var u=this.prototype.options;return r(this.prototype,s),s.options&&(this.prototype.options=u,this.mergeOptions(s.options)),this},ge.mergeOptions=function(s){return r(this.prototype.options,s),this},ge.addInitHook=function(s){var u=Array.prototype.slice.call(arguments,1),f=typeof s=="function"?s:function(){this[s].apply(this,u)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(f),this};function xt(s){if(!(typeof L>"u"||!L||!L.Mixin)){s=z(s)?s:[s];for(var u=0;u<s.length;u++)s[u]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var Ie={on:function(s,u,f){if(typeof s=="object")for(var v in s)this._on(v,s[v],u);else{s=h(s);for(var x=0,I=s.length;x<I;x++)this._on(s[x],u,f)}return this},off:function(s,u,f){if(!arguments.length)delete this._events;else if(typeof s=="object")for(var v in s)this._off(v,s[v],u);else{s=h(s);for(var x=arguments.length===1,I=0,R=s.length;I<R;I++)x?this._off(s[I]):this._off(s[I],u,f)}return this},_on:function(s,u,f,v){if(typeof u!="function"){console.warn("wrong listener type: "+typeof u);return}if(this._listens(s,u,f)===!1){f===this&&(f=void 0);var x={fn:u,ctx:f};v&&(x.once=!0),this._events=this._events||{},this._events[s]=this._events[s]||[],this._events[s].push(x)}},_off:function(s,u,f){var v,x,I;if(this._events&&(v=this._events[s],!!v)){if(arguments.length===1){if(this._firingCount)for(x=0,I=v.length;x<I;x++)v[x].fn=d;delete this._events[s];return}if(typeof u!="function"){console.warn("wrong listener type: "+typeof u);return}var R=this._listens(s,u,f);if(R!==!1){var B=v[R];this._firingCount&&(B.fn=d,this._events[s]=v=v.slice()),v.splice(R,1)}}},fire:function(s,u,f){if(!this.listens(s,f))return this;var v=r({},u,{type:s,target:this,sourceTarget:u&&u.sourceTarget||this});if(this._events){var x=this._events[s];if(x){this._firingCount=this._firingCount+1||1;for(var I=0,R=x.length;I<R;I++){var B=x[I],G=B.fn;B.once&&this.off(s,G,B.ctx),G.call(B.ctx||this,v)}this._firingCount--}}return f&&this._propagateEvent(v),this},listens:function(s,u,f,v){typeof s!="string"&&console.warn('"string" type argument expected');var x=u;typeof u!="function"&&(v=!!u,x=void 0,f=void 0);var I=this._events&&this._events[s];if(I&&I.length&&this._listens(s,x,f)!==!1)return!0;if(v){for(var R in this._eventParents)if(this._eventParents[R].listens(s,u,f,v))return!0}return!1},_listens:function(s,u,f){if(!this._events)return!1;var v=this._events[s]||[];if(!u)return!!v.length;f===this&&(f=void 0);for(var x=0,I=v.length;x<I;x++)if(v[x].fn===u&&v[x].ctx===f)return x;return!1},once:function(s,u,f){if(typeof s=="object")for(var v in s)this._on(v,s[v],u,!0);else{s=h(s);for(var x=0,I=s.length;x<I;x++)this._on(s[x],u,f,!0)}return this},addEventParent:function(s){return this._eventParents=this._eventParents||{},this._eventParents[a(s)]=s,this},removeEventParent:function(s){return this._eventParents&&delete this._eventParents[a(s)],this},_propagateEvent:function(s){for(var u in this._eventParents)this._eventParents[u].fire(s.type,r({layer:s.target,propagatedFrom:s.target},s),!0)}};Ie.addEventListener=Ie.on,Ie.removeEventListener=Ie.clearAllEventListeners=Ie.off,Ie.addOneTimeEventListener=Ie.once,Ie.fireEvent=Ie.fire,Ie.hasEventListeners=Ie.listens;var We=ge.extend(Ie);function we(s,u,f){this.x=f?Math.round(s):s,this.y=f?Math.round(u):u}var xn=Math.trunc||function(s){return s>0?Math.floor(s):Math.ceil(s)};we.prototype={clone:function(){return new we(this.x,this.y)},add:function(s){return this.clone()._add(fe(s))},_add:function(s){return this.x+=s.x,this.y+=s.y,this},subtract:function(s){return this.clone()._subtract(fe(s))},_subtract:function(s){return this.x-=s.x,this.y-=s.y,this},divideBy:function(s){return this.clone()._divideBy(s)},_divideBy:function(s){return this.x/=s,this.y/=s,this},multiplyBy:function(s){return this.clone()._multiplyBy(s)},_multiplyBy:function(s){return this.x*=s,this.y*=s,this},scaleBy:function(s){return new we(this.x*s.x,this.y*s.y)},unscaleBy:function(s){return new we(this.x/s.x,this.y/s.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=xn(this.x),this.y=xn(this.y),this},distanceTo:function(s){s=fe(s);var u=s.x-this.x,f=s.y-this.y;return Math.sqrt(u*u+f*f)},equals:function(s){return s=fe(s),s.x===this.x&&s.y===this.y},contains:function(s){return s=fe(s),Math.abs(s.x)<=Math.abs(this.x)&&Math.abs(s.y)<=Math.abs(this.y)},toString:function(){return"Point("+p(this.x)+", "+p(this.y)+")"}};function fe(s,u,f){return s instanceof we?s:z(s)?new we(s[0],s[1]):s==null?s:typeof s=="object"&&"x"in s&&"y"in s?new we(s.x,s.y):new we(s,u,f)}function Ze(s,u){if(s)for(var f=u?[s,u]:s,v=0,x=f.length;v<x;v++)this.extend(f[v])}Ze.prototype={extend:function(s){var u,f;if(!s)return this;if(s instanceof we||typeof s[0]=="number"||"x"in s)u=f=fe(s);else if(s=st(s),u=s.min,f=s.max,!u||!f)return this;return!this.min&&!this.max?(this.min=u.clone(),this.max=f.clone()):(this.min.x=Math.min(u.x,this.min.x),this.max.x=Math.max(f.x,this.max.x),this.min.y=Math.min(u.y,this.min.y),this.max.y=Math.max(f.y,this.max.y)),this},getCenter:function(s){return fe((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,s)},getBottomLeft:function(){return fe(this.min.x,this.max.y)},getTopRight:function(){return fe(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(s){var u,f;return typeof s[0]=="number"||s instanceof we?s=fe(s):s=st(s),s instanceof Ze?(u=s.min,f=s.max):u=f=s,u.x>=this.min.x&&f.x<=this.max.x&&u.y>=this.min.y&&f.y<=this.max.y},intersects:function(s){s=st(s);var u=this.min,f=this.max,v=s.min,x=s.max,I=x.x>=u.x&&v.x<=f.x,R=x.y>=u.y&&v.y<=f.y;return I&&R},overlaps:function(s){s=st(s);var u=this.min,f=this.max,v=s.min,x=s.max,I=x.x>u.x&&v.x<f.x,R=x.y>u.y&&v.y<f.y;return I&&R},isValid:function(){return!!(this.min&&this.max)},pad:function(s){var u=this.min,f=this.max,v=Math.abs(u.x-f.x)*s,x=Math.abs(u.y-f.y)*s;return st(fe(u.x-v,u.y-x),fe(f.x+v,f.y+x))},equals:function(s){return s?(s=st(s),this.min.equals(s.getTopLeft())&&this.max.equals(s.getBottomRight())):!1}};function st(s,u){return!s||s instanceof Ze?s:new Ze(s,u)}function lt(s,u){if(s)for(var f=u?[s,u]:s,v=0,x=f.length;v<x;v++)this.extend(f[v])}lt.prototype={extend:function(s){var u=this._southWest,f=this._northEast,v,x;
2if(s instanceof ve)v=s,x=s;else if(s instanceof lt){if(v=s._southWest,x=s._northEast,!v||!x)return this}else return s?this.extend(de(s)||_e(s)):this;return!u&&!f?(this._southWest=new ve(v.lat,v.lng),this._northEast=new ve(x.lat,x.lng)):(u.lat=Math.min(v.lat,u.lat),u.lng=Math.min(v.lng,u.lng),f.lat=Math.max(x.lat,f.lat),f.lng=Math.max(x.lng,f.lng)),this},pad:function(s){var u=this._southWest,f=this._northEast,v=Math.abs(u.lat-f.lat)*s,x=Math.abs(u.lng-f.lng)*s;return new lt(new ve(u.lat-v,u.lng-x),new ve(f.lat+v,f.lng+x))},getCenter:function(){return new ve((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new ve(this.getNorth(),this.getWest())},getSouthEast:function(){return new ve(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(s){typeof s[0]=="number"||s instanceof ve||"lat"in s?s=de(s):s=_e(s);var u=this._southWest,f=this._northEast,v,x;
2return s instanceof lt?(v=s.getSouthWest(),x=s.getNorthEast()):v=x=s,v.lat>=u.lat&&x.lat<=f.lat&&v.lng>=u.lng&&x.lng<=f.lng},intersects:function(s){s=_e(s);var u=this._southWest,f=this._northEast,v=s.getSouthWest(),x=s.getNorthEast(),I=x.lat>=u.lat&&v.lat<=f.lat,R=x.lng>=u.lng&&v.lng<=f.lng;return I&&R},overlaps:function(s){s=_e(s);var u=this._southWest,f=this._northEast,v=s.getSouthWest(),x=s.getNorthEast(),I=x.lat>u.lat&&v.lat<f.lat,R=x.lng>u.lng&&v.lng<f.lng;return I&&R},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(s,u){return s?(s=_e(s),this._southWest.equals(s.getSouthWest(),u)&&this._northEast.equals(s.getNorthEast(),u)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function _e(s,u){return s instanceof lt?s:new lt(s,u)}function ve(s,u,f){if(isNaN(s)||isNaN(u))throw new Error("Invalid LatLng object: ("+s+", "+u+")");this.lat=+s,this.lng=+u,f!==void 0&&(this.alt=+f)}ve.prototype={equals:function(s,u){if(!s)return!1;s=de(s);var f=Math.max(Math.abs(this.lat-s.lat),Math.abs(this.lng-s.lng));return f<=(u===void 0?1e-9:u)},toString:function(s){return"LatLng("+p(this.lat,s)+", "+p(this.lng,s)+")"},distanceTo:function(s){return Dt.distance(this,de(s))},wrap:function(){return Dt.wrapLatLng(this)},toBounds:function(s){var u=180*s/40075017,f=u/Math.cos(Math.PI/180*this.lat);return _e([this.lat-u,this.lng-f],[this.lat+u,this.lng+f])},clone:function(){return new ve(this.lat,this.lng,this.alt)}};function de(s,u,f){return s instanceof ve?s:z(s)&&typeof s[0]!="object"?s.length===3?new ve(s[0],s[1],s[2]):s.length===2?new ve(s[0],s[1]):null:s==null?s:typeof s=="object"&&"lat"in s?new ve(s.lat,"lng"in s?s.lng:s.lon,s.alt):u===void 0?null:new ve(s,u,f)}var nt={latLngToPoint:function(s,u){var f=this.projection.project(s),v=this.scale(u);return this.transformation._transform(f,v)},pointToLatLng:function(s,u){var f=this.scale(u),v=this.transformation.untransform(s,f);return this.projection.unproject(v)},project:function(s){return this.projection.project(s)},unproject:function(s){return this.projection.unproject(s)},scale:function(s){return 256*Math.pow(2,s)},zoom:function(s){return Math.log(s/256)/Math.LN2},getProjectedBounds:function(s){if(this.infinite)return null;var u=this.projection.bounds,f=this.scale(s),v=this.transformation.transform(u.min,f),x=this.transformation.transform(u.max,f);return new Ze(v,x)},infinite:!1,wrapLatLng:function(s){var u=this.wrapLng?c(s.lng,this.wrapLng,!0):s.lng,f=this.wrapLat?c(s.lat,this.wrapLat,!0):s.lat,v=s.alt;return new ve(f,u,v)},wrapLatLngBounds:function(s){var u=s.getCenter(),f=this.wrapLatLng(u),v=u.lat-f.lat,x=u.lng-f.lng;if(v===0&&x===0)return s;
2var I=s.getSouthWest(),R=s.getNorthEast(),B=new ve(I.lat-v,I.lng-x),G=new ve(R.lat-v,R.lng-x);return new lt(B,G)}},Dt=r({},nt,{wrapLng:[-180,180],R:6371e3,distance:function(s,u){var f=Math.PI/180,v=s.lat*f,x=u.lat*f,I=Math.sin((u.lat-s.lat)*f/2),R=Math.sin((u.lng-s.lng)*f/2),B=I*I+Math.cos(v)*Math.cos(x)*R*R,G=2*Math.atan2(Math.sqrt(B),Math.sqrt(1-B));return this.R*G}}),or=6378137,Vt={R:or,MAX_LATITUDE:85.0511287798,project:function(s){var u=Math.PI/180,f=this.MAX_LATITUDE,v=Math.max(Math.min(f,s.lat),-f),x=Math.sin(v*u);return new we(this.R*s.lng*u,this.R*Math.log((1+x)/(1-x))/2)},unproject:function(s){var u=180/Math.PI;return new ve((2*Math.atan(Math.exp(s.y/this.R))-Math.PI/2)*u,s.x*u/this.R)},bounds:(function(){var s=or*Math.PI;return new Ze([-s,-s],[s,s])})()};function hr(s,u,f,v){if(z(s)){this._a=s[0],this._b=s[1],this._c=s[2],this._d=s[3];return}this._a=s,this._b=u,this._c=f,this._d=v}hr.prototype={transform:function(s,u){return this._transform(s.clone(),u)},_transform:function(s,u){return u=u||1,s.x=u*(this._a*s.x+this._b),s.y=u*(this._c*s.y+this._d),s},untransform:function(s,u){return u=u||1,new we((s.x/u-this._b)/this._a,(s.y/u-this._d)/this._c)}};function Ir(s,u,f,v){return new hr(s,u,f,v)}var no=r({},Dt,{code:"EPSG:3857",projection:Vt,transformation:(function(){var s=.5/(Math.PI*Vt.R);return Ir(s,.5,-s,.5)})()}),$m=r({},no,{code:"EPSG:900913"});function Ea(s){return document.createElementNS("http://www.w3.org/2000/svg",s)}function Aa(s,u){var f="",v,x,I,R,B,G;for(v=0,I=s.length;v<I;v++){for(B=s[v],x=0,R=B.length;x<R;x++)G=B[x],f+=(x?"L":"M")+G.x+" "+G.y;f+=u?Ce.svg?"z":"x":""}return f||"M0 0"}var Qc=document.documentElement.style,Ds="ActiveXObject"in window,Ky=Ds&&!document.addEventListener,eu="msLaunchUri"in navigator&&!("documentMode"in document),Os=oo("webkit"),Ma=oo("android"),Tm=oo("android 2")||oo("android 3"),Xy=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),tu=Ma&&oo("Google")&&Xy<537&&!("AudioNode"in window),Ls=!!window.opera,ru=!eu&&oo("chrome"),Im=oo("gecko")&&!Os&&!Ls&&!Ds,Yy=!ru&&oo("safari"),Na=oo("phantom"),Ra="OTransition"in Qc,lF=navigator.platform.indexOf("Win")===0,w7=Ds&&"transition"in Qc,Qy="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!Tm,_7="MozPerspective"in Qc,cF=!window.L_DISABLE_3D&&(w7||Qy||_7)&&!Ra&&!Na,nu=typeof orientation<"u"||oo("mobile"),uF=nu&&Os,dF=nu&&Qy,k7=!window.PointerEvent&&window.MSPointerEvent,S7=!!(window.PointerEvent||k7),$7="ontouchstart"in window||!!window.TouchEvent,pF=!window.L_NO_TOUCH&&($7||S7),mF=nu&&Ls,fF=nu&&Im,hF=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,gF=(function(){var s=!1;try{var u=Object.defineProperty({},"passive",{get:function(){s=!0}});window.addEventListener("testPassiveEventSupport",d,u),window.removeEventListener("testPassiveEventSupport",d,u)}catch{}return s})(),vF=(function(){return!!document.createElement("canvas").getContext})(),eb=!!(document.createElementNS&&Ea("svg").createSVGRect),yF=!!eb&&(function(){var s=document.createElement("div");return s.innerHTML="<svg/>",(s.firstChild&&s.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"})(),bF=!eb&&(function(){try{var s=document.createElement("div");s.innerHTML='<v:shape adj="1"/>';var u=s.firstChild;return u.style.behavior="url(#default#VML)",u&&typeof u.adj=="object"}catch{return!1}})(),xF=navigator.platform.indexOf("Mac")===0,wF=navigator.platform.indexOf("Linux")===0;function oo(s){return navigator.userAgent.toLowerCase().indexOf(s)>=0}var Ce={ie:Ds,ielt9:Ky,edge:eu,webkit:Os,android:Ma,android23:Tm,androidStock:tu,opera:Ls,chrome:ru,gecko:Im,safari:Yy,phantom:Na,opera12:Ra,win:lF,ie3d:w7,webkit3d:Qy,gecko3d:_7,any3d:cF,mobile:nu,mobileWebkit:uF,mobileWebkit3d:dF,msPointer:k7,pointer:S7,touch:pF,touchNative:$7,mobileOpera:mF,mobileGecko:fF,retina:hF,passiveEvents:gF,canvas:vF,svg:eb,vml:bF,inlineSvg:yF,mac:xF,linux:wF},T7=Ce.msPointer?"MSPointerDown":"pointerdown",I7=Ce.msPointer?"MSPointerMove":"pointermove",P7=Ce.msPointer?"MSPointerUp":"pointerup",C7=Ce.msPointer?"MSPointerCancel":"pointercancel",tb={touchstart:T7,touchmove:I7,touchend:P7,touchcancel:C7},z7={touchstart:IF,touchmove:Pm,touchend:Pm,touchcancel:Pm},js={},E7=!1;function _F(s,u,f){return u==="touchstart"&&TF(),z7[u]?(f=z7[u].bind(this,f),s.addEventListener(tb[u],f,!1),f):(console.warn("wrong event specified:",u),d)}function kF(s,u,f){if(!tb[u]){console.warn("wrong event specified:",u);return}s.removeEventListener(tb[u],f,!1)}function SF(s){js[s.pointerId]=s}function $F(s){js[s.pointerId]&&(js[s.pointerId]=s)}function A7(s){delete js[s.pointerId]}function TF(){E7||(document.addEventListener(T7,SF,!0),document.addEventListener(I7,$F,!0),document.addEventListener(P7,A7,!0),document.addEventListener(C7,A7,!0),E7=!0)}function Pm(s,u){if(u.pointerType!==(u.MSPOINTER_TYPE_MOUSE||"mouse")){u.touches=[];for(var f in js)u.touches.push(js[f]);u.changedTouches=[u],s(u)}}function IF(s,u){u.MSPOINTER_TYPE_TOUCH&&u.pointerType===u.MSPOINTER_TYPE_TOUCH&&gr(u),Pm(s,u)}function PF(s){var u={},f,v;for(v in s)f=s[v],u[v]=f&&f.bind?f.bind(s):f;return s=u,u.type="dblclick",u.detail=2,u.isTrusted=!1,u._simulated=!0,u}var CF=200;function zF(s,u){s.addEventListener("dblclick",u);var f=0,v;function x(I){if(I.detail!==1){v=I.detail;return}if(!(I.pointerType==="mouse"||I.sourceCapabilities&&!I.sourceCapabilities.firesTouchEvents)){var R=O7(I);if(!(R.some(function(G){return G instanceof HTMLLabelElement&&G.attributes.for})&&!R.some(function(G){return G instanceof HTMLInputElement||G instanceof HTMLSelectElement}))){var B=Date.now();B-f<=CF?(v++,v===2&&u(PF(I))):v=1,f=B}}}return s.addEventListener("click",x),{dblclick:u,simDblclick:x}}function EF(s,u){s.removeEventListener("dblclick",u.dblclick),s.removeEventListener("click",u.simDblclick)}var rb=Em(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ou=Em(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),M7=ou==="webkitTransition"||ou==="OTransition"?ou+"End":"transitionend";function N7(s){return typeof s=="string"?document.getElementById(s):s}function iu(s,u){var f=s.style[u]||s.currentStyle&&s.currentStyle[u];if((!f||f==="auto")&&document.defaultView){var v=document.defaultView.getComputedStyle(s,null);f=v?v[u]:null}return f==="auto"?null:f}function ct(s,u,f){var v=document.createElement(s);return v.className=u||"",f&&f.appendChild(v),v}function Ot(s){var u=s.parentNode;u&&u.removeChild(s)}function Cm(s){for(;s.firstChild;)s.removeChild(s.firstChild)}function Us(s){var u=s.parentNode;u&&u.lastChild!==s&&u.appendChild(s)}function Bs(s){var u=s.parentNode;u&&u.firstChild!==s&&u.insertBefore(s,u.firstChild)}function nb(s,u){if(s.classList!==void 0)return s.classList.contains(u);var f=zm(s);return f.length>0&&new RegExp("(^|\\s)"+u+"(\\s|$)").test(f)}function Xe(s,u){if(s.classList!==void 0)for(var f=h(u),v=0,x=f.length;v<x;v++)s.classList.add(f[v]);else if(!nb(s,u)){var I=zm(s);ob(s,(I?I+" ":"")+u)}}function Wt(s,u){s.classList!==void 0?s.classList.remove(u):ob(s,m((" "+zm(s)+" ").replace(" "+u+" "," ")))}function ob(s,u){s.className.baseVal===void 0?s.className=u:s.className.baseVal=u}function zm(s){return s.correspondingElement&&(s=s.correspondingElement),s.className.baseVal===void 0?s.className:s.className.baseVal}function wn(s,u){"opacity"in s.style?s.style.opacity=u:"filter"in s.style&&AF(s,u)}function AF(s,u){var f=!1,v="DXImageTransform.Microsoft.Alpha";try{f=s.filters.item(v)}catch{if(u===1)return}u=Math.round(u*100),f?(f.Enabled=u!==100,f.Opacity=u):s.style.filter+=" progid:"+v+"(opacity="+u+")"}function Em(s){for(var u=document.documentElement.style,f=0;f<s.length;f++)if(s[f]in u)return s[f];return!1}function Da(s,u,f){var v=u||new we(0,0);s.style[rb]=(Ce.ie3d?"translate("+v.x+"px,"+v.y+"px)":"translate3d("+v.x+"px,"+v.y+"px,0)")+(f?" scale("+f+")":"")}function Yt(s,u){s._leaflet_pos=u,Ce.any3d?Da(s,u):(s.style.left=u.x+"px",s.style.top=u.y+"px")}function Oa(s){return s._leaflet_pos||new we(0,0)}var au,su,ib;if("onselectstart"in document)au=function(){Ve(window,"selectstart",gr)},su=function(){Tt(window,"selectstart",gr)};else{var lu=Em(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);au=function(){if(lu){var s=document.documentElement.style;ib=s[lu],s[lu]="none"}},su=function(){lu&&(document.documentElement.style[lu]=ib,ib=void 0)}}function ab(){Ve(window,"dragstart",gr)}
2function sb(){Tt(window,"dragstart",gr)}var Am,lb;function cb(s){for(;s.tabIndex===-1;)s=s.parentNode;s.style&&(Mm(),Am=s,lb=s.style.outlineStyle,s.style.outlineStyle="none",Ve(window,"keydown",Mm))}function Mm(){Am&&(Am.style.outlineStyle=lb,Am=void 0,lb=void 0,Tt(window,"keydown",Mm))}function R7(s){do s=s.parentNode;while((!s.offsetWidth||!s.offsetHeight)&&s!==document.body);return s}function ub(s){var u=s.getBoundingClientRect();return{x:u.width/s.offsetWidth||1,y:u.height/s.offsetHeight||1,boundingClientRect:u}}var MF={__proto__:null,TRANSFORM:rb,TRANSITION:ou,TRANSITION_END:M7,get:N7,getStyle:iu,create:ct,remove:Ot,empty:Cm,toFront:Us,toBack:Bs,hasClass:nb,addClass:Xe,removeClass:Wt,setClass:ob,getClass:zm,setOpacity:wn,testProp:Em,setTransform:Da,setPosition:Yt,getPosition:Oa,get disableTextSelection(){return au},get enableTextSelection(){return su},disableImageDrag:ab,enableImageDrag:sb,preventOutline:cb,restoreOutline:Mm,getSizedParentNode:R7,getScale:ub};function Ve(s,u,f,v){if(u&&typeof u=="object")for(var x in u)pb(s,x,u[x],f);else{u=h(u);for(var I=0,R=u.length;I<R;I++)pb(s,u[I],f,v)}return this}var io="_leaflet_events";function Tt(s,u,f,v){if(arguments.length===1)D7(s),delete s[io];else if(u&&typeof u=="object")for(var x in u)mb(s,x,u[x],f);else if(u=h(u),arguments.length===2)D7(s,function(B){return P(u,B)!==-1});else for(var I=0,R=u.length;I<R;I++)mb(s,u[I],f,v);return this}function D7(s,u){for(var f in s[io]){var v=f.split(/\d/)[0];(!u||u(v))&&mb(s,v,null,null,f)}}
2var db={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function pb(s,u,f,v){var x=u+a(f)+(v?"_"+a(v):"");if(s[io]&&s[io][x])return this;var I=function(B){return f.call(v||s,B||window.event)},R=I;!Ce.touchNative&&Ce.pointer&&u.indexOf("touch")===0?I=_F(s,u,I):Ce.touch&&u==="dblclick"?I=zF(s,I):"addEventListener"in s?u==="touchstart"||u==="touchmove"||u==="wheel"||u==="mousewheel"?s.addEventListener(db[u]||u,I,Ce.passiveEvents?{passive:!1}:!1):u==="mouseenter"||u==="mouseleave"?(I=function(B){B=B||window.event,hb(s,B)&&R(B)},s.addEventListener(db[u],I,!1)):s.addEventListener(u,R,!1):s.attachEvent("on"+u,I),s[io]=s[io]||{},s[io][x]=I}function mb(s,u,f,v,x){x=x||u+a(f)+(v?"_"+a(v):"");var I=s[io]&&s[io][x];if(!I)return this;!Ce.touchNative&&Ce.pointer&&u.indexOf("touch")===0?kF(s,u,I):Ce.touch&&u==="dblclick"?EF(s,I):"removeEventListener"in s?s.removeEventListener(db[u]||u,I,!1):s.detachEvent("on"+u,I),s[io][x]=null}function La(s){return s.stopPropagation?s.stopPropagation():s.originalEvent?s.originalEvent._stopped=!0:s.cancelBubble=!0,this}function fb(s){return pb(s,"wheel",La),this}function cu(s){return Ve(s,"mousedown touchstart dblclick contextmenu",La),s._leaflet_disable_click=!0,this}function gr(s){return s.preventDefault?s.preventDefault():s.returnValue=!1,this}function ja(s){return gr(s),La(s),this}function O7(s){if(s.composedPath)return s.composedPath();for(var u=[],f=s.target;f;)u.push(f),f=f.parentNode;return u}function L7(s,u){if(!u)return new we(s.clientX,s.clientY);var f=ub(u),v=f.boundingClientRect;return new we((s.clientX-v.left)/f.x-u.clientLeft,(s.clientY-v.top)/f.y-u.clientTop)}var NF=Ce.linux&&Ce.chrome?window.devicePixelRatio:Ce.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function j7(s){return Ce.edge?s.wheelDeltaY/2:s.deltaY&&s.deltaMode===0?-s.deltaY/NF:s.deltaY&&s.deltaMode===1?-s.deltaY*20:s.deltaY&&s.deltaMode===2?-s.deltaY*60:s.deltaX||s.deltaZ?0:s.wheelDelta?(s.wheelDeltaY||s.wheelDelta)/2:s.detail&&Math.abs(s.detail)<32765?-s.detail*20:s.detail?s.detail/-32765*60:0}function hb(s,u){var f=u.relatedTarget;if(!f)return!0;try{for(;f&&f!==s;)f=f.parentNode}catch{return!1}return f!==s}var RF={__proto__:null,on:Ve,off:Tt,stopPropagation:La,disableScrollPropagation:fb,disableClickPropagation:cu,preventDefault:gr,stop:ja,getPropagationPath:O7,getMousePosition:L7,getWheelDelta:j7,isExternalTarget:hb,addListener:Ve,removeListener:Tt},U7=We.extend({run:function(s,u,f,v){this.stop(),this._el=s,this._inProgress=!0,this._duration=f||.25,this._easeOutPower=1/Math.max(v||.5,.2),this._startPos=Oa(s),this._offset=u.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=Z(this._animate,this),this._step()},_step:function(s){var u=+new Date-this._startTime,f=this._duration*1e3;u<f?this._runFrame(this._easeOut(u/f),s):(this._runFrame(1),this._complete())},_runFrame:function(s,u){var f=this._startPos.add(this._offset.multiplyBy(s));u&&f._round(),Yt(this._el,f),this.fire("step")},_complete:function(){W(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(s){return 1-Math.pow(1-s,this._easeOutPower)}}),at=We.extend({options:{crs:no,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(s,u){u=g(this,u),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(s),this._initLayout(),this._onResize=n(this._onResize,this),this._initEvents(),u.maxBounds&&this.setMaxBounds(u.maxBounds),u.zoom!==void 0&&(this._zoom=this._limitZoom(u.zoom)),u.center&&u.zoom!==void 0&&this.setView(de(u.center),u.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=ou&&Ce.any3d&&!Ce.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Ve(this._proxy,M7,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)}
2,setView:function(s,u,f){if(u=u===void 0?this._zoom:this._limitZoom(u),s=this._limitCenter(de(s),u,this.options.maxBounds),f=f||{},this._stop(),this._loaded&&!f.reset&&f!==!0){f.animate!==void 0&&(f.zoom=r({animate:f.animate},f.zoom),f.pan=r({animate:f.animate,duration:f.duration},f.pan));var v=this._zoom!==u?this._tryAnimatedZoom&&this._tryAnimatedZoom(s,u,f.zoom):this._tryAnimatedPan(s,f.pan);if(v)return clearTimeout(this._sizeTimer),this}return this._resetView(s,u,f.pan&&f.pan.noMoveStart),this},setZoom:function(s,u){return this._loaded?this.setView(this.getCenter(),s,{zoom:u}):(this._zoom=s,this)},zoomIn:function(s,u){return s=s||(Ce.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+s,u)},zoomOut:function(s,u){return s=s||(Ce.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-s,u)},setZoomAround:function(s,u,f){var v=this.getZoomScale(u),x=this.getSize().divideBy(2),I=s instanceof we?s:this.latLngToContainerPoint(s),R=I.subtract(x).multiplyBy(1-1/v),B=this.containerPointToLatLng(x.add(R));return this.setView(B,u,{zoom:f})},_getBoundsCenterZoom:function(s,u){u=u||{},s=s.getBounds?s.getBounds():_e(s);var f=fe(u.paddingTopLeft||u.padding||[0,0]),v=fe(u.paddingBottomRight||u.padding||[0,0]),x=this.getBoundsZoom(s,!1,f.add(v));if(x=typeof u.maxZoom=="number"?Math.min(u.maxZoom,x):x,x===1/0)return{center:s.getCenter(),zoom:x};
2var I=v.subtract(f).divideBy(2),R=this.project(s.getSouthWest(),x),B=this.project(s.getNorthEast(),x),G=this.unproject(R.add(B).divideBy(2).add(I),x);return{center:G,zoom:x}},fitBounds:function(s,u){if(s=_e(s),!s.isValid())throw new Error("Bounds are not valid.");var f=this._getBoundsCenterZoom(s,u);return this.setView(f.center,f.zoom,u)},fitWorld:function(s){return this.fitBounds([[-90,-180],[90,180]],s)},panTo:function(s,u){return this.setView(s,this._zoom,{pan:u})},panBy:function(s,u){if(s=fe(s).round(),u=u||{},!s.x&&!s.y)return this.fire("moveend");if(u.animate!==!0&&!this.getSize().contains(s))return this._resetView(this.unproject(this.project(this.getCenter()).add(s)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new U7,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),u.noMoveStart||this.fire("movestart"),u.animate!==!1){Xe(this._mapPane,"leaflet-pan-anim");var f=this._getMapPanePos().subtract(s).round();this._panAnim.run(this._mapPane,f,u.duration||.25,u.easeLinearity)}else this._rawPanBy(s),this.fire("move").fire("moveend");return this},flyTo:function(s,u,f){if(f=f||{},f.animate===!1||!Ce.any3d)return this.setView(s,u,f);this._stop();var v=this.project(this.getCenter()),x=this.project(s),I=this.getSize(),R=this._zoom;s=de(s),u=u===void 0?R:u;var B=Math.max(I.x,I.y),G=B*this.getZoomScale(R,u),J=x.distanceTo(v)||1,ye=1.42,Ne=ye*ye;function tt(Qt){var Gm=Qt?-1:1,kZ=Qt?G:B,SZ=G*G-B*B+Gm*Ne*Ne*J*J,$Z=2*kZ*Ne*J,Tb=SZ/$Z,x$=Math.sqrt(Tb*Tb+1)-Tb,TZ=x$<1e-9?-18:Math.log(x$);return TZ}function Pr(Qt){return(Math.exp(Qt)-Math.exp(-Qt))/2}function dr(Qt){return(Math.exp(Qt)+Math.exp(-Qt))/2}function kn(Qt){return Pr(Qt)/dr(Qt)}var Fr=tt(0);function Hs(Qt){return B*(dr(Fr)/dr(Fr+ye*Qt))}function bZ(Qt){return B*(dr(Fr)*kn(Fr+ye*Qt)-Pr(Fr))/Ne}function xZ(Qt){return 1-Math.pow(1-Qt,1.5)}var wZ=Date.now(),y$=(tt(1)-Fr)/ye,_Z=f.duration?1e3*f.duration:1e3*y$*.8;function b$(){var Qt=(Date.now()-wZ)/_Z,Gm=xZ(Qt)*y$;Qt<=1?(this._flyToFrame=Z(b$,this),this._move(this.unproject(v.add(x.subtract(v).multiplyBy(bZ(Gm)/J)),R),this.get
2ScaleZoom(B/Hs(Gm),R),{flyTo:!0})):this._move(s,u)._moveEnd(!0)}return this._moveStart(!0,f.noMoveStart),b$.call(this),this},flyToBounds:function(s,u){var f=this._getBoundsCenterZoom(s,u);return this.flyTo(f.center,f.zoom,u)},setMaxBounds:function(s){return s=_e(s),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),s.isValid()?(this.options.maxBounds=s,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(s){var u=this.options.minZoom;return this.options.minZoom=s,this._loaded&&u!==s&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(s):this},setMaxZoom:function(s){var u=this.options.maxZoom;return this.options.maxZoom=s,this._loaded&&u!==s&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(s):this},panInsideBounds:function(s,u){this._enforcingBounds=!0;var f=this.getCenter(),v=this._limitCenter(f,this._zoom,_e(s));return f.equals(v)||this.panTo(v,u),this._enforcingBounds=!1,this},panInside:function(s,u){u=u||{};var f=fe(u.paddingTopLeft||u.padding||[0,0]),v=fe(u.paddingBottomRight||u.padding||[0,0]),x=this.project(this.getCenter()),I=this.project(s),R=this.getPixelBounds(),B=st([R.min.add(f),R.max.subtract(v)]),G=B.getSize();if(!B.contains(I)){this._enforcingBounds=!0;var J=I.subtract(B.getCenter()),ye=B.extend(I).getSize().subtract(G);x.x+=J.x<0?-ye.x:ye.x,x.y+=J.y<0?-ye.y:ye.y,this.panTo(this.unproject(x),u),this._enforcingBounds=!1}return this},invalidateSize:function(s){if(!this._loaded)return this;s=r({animate:!1,pan:!0},s===!0?{animate:!0}:s);var u=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var f=this.getSize(),v=u.divideBy(2).round(),x=f.divideBy(2).round(),I=v.subtract(x);return!I.x&&!I.y?this:(s.animate&&s.pan?this.panBy(I):(s.pan&&this._rawPanBy(I),this.fire("move"),s.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(n(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:u,newSize:f}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(s){if(s=this._locateOptions=r({timeout:1e4,watch:!1},s),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var u=n(this._handleGeolocationResponse,this),f=n(this._handleGeolocationError,this);return s.watch?this._locationWatchId=navigator.geolocation.watchPosition(u,f,s):navigator.geolocation.getCurrentPosition(u,f,s),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(s){if(this._container._leaflet_id){var u=s.code,f=s.message||(u===1?"permission denied":u===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:u,message:"Geolocation error: "+f+"."})}},_handleGeolocationResponse:function(s){if(this._container._leaflet_id){var u=s.coords.latitude,f=s.coords.longitude,v=new ve(u,f),x=v.toBounds(s.coords.accuracy*2),I=this._locateOptions;if(I.setView){var R=this.getBoundsZoom(x);this.setView(v,I.maxZoom?Math.min(R,I.maxZoom):R)}var B={latlng:v,bounds:x,timestamp:s.timestamp};for(var G in s.coords)typeof s.coords[G]=="number"&&(B[G]=s.coords[G]);this.fire("locationfound",B)}},addHandler:function(s,u){if(!u)return this;var f=this[s]=new u(this);return this._handlers.push(f),this.options[s]&&f.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),Ot(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(W(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var s;for(s in this._layers)this._layers[s].remove();for(s in this._panes)Ot(this._panes[s]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(s,u){var f="leaflet-pane"+(s?" leaflet-"+s.replace("Pane","")+"-pane":""),v=ct("div",f,u||this._mapPane);return s&&(this._panes[s]=v),v},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var s=this.getPixelBounds(),u=this.unproject(s.getBottomLeft()),f=this.unproject(s.getTopRight());return new lt(u,f)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZo
2om===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(s,u,f){s=_e(s),f=fe(f||[0,0]);var v=this.getZoom()||0,x=this.getMinZoom(),I=this.getMaxZoom(),R=s.getNorthWest(),B=s.getSouthEast(),G=this.getSize().subtract(f),J=st(this.project(B,v),this.project(R,v)).getSize(),ye=Ce.any3d?this.options.zoomSnap:1,Ne=G.x/J.x,tt=G.y/J.y,Pr=u?Math.max(Ne,tt):Math.min(Ne,tt);return v=this.getScaleZoom(Pr,v),ye&&(v=Math.round(v/(ye/100))*(ye/100),v=u?Math.ceil(v/ye)*ye:Math.floor(v/ye)*ye),Math.max(x,Math.min(I,v))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new we(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(s,u){var f=this._getTopLeftPoint(s,u);return new Ze(f,f.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(s){return this.options.crs.getProjectedBounds(s===void 0?this.getZoom():s)},getPane:function(s){return typeof s=="string"?this._panes[s]:s},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(s,u){var f=this.options.crs;return u=u===void 0?this._zoom:u,f.scale(s)/f.scale(u)},getScaleZoom:function(s,u){var f=this.options.crs;u=u===void 0?this._zoom:u;var v=f.zoom(s*f.scale(u));return isNaN(v)?1/0:v},project:function(s,u){return u=u===void 0?this._zoom:u,this.options.crs.latLngToPoint(de(s),u)},unproject:function(s,u){return u=u===void 0?this._zoom:u,this.options.crs.pointToLatLng(fe(s),u)},layerPointToLatLng:function(s){var u=fe(s).add(this.getPixelOrigin());return this.unproject(u)},latLngToLayerPoint:function(s){var u=this.project(de(s))._round();return u._subtract(this.getPixelOrigin())},wrapLatLng:function(s){return this.options.crs.wrapLatLng(de(s))},wrapLatLngBounds:function(s){return this.options.crs.wrapLatLngBounds(_e(s))},distance:function(s,u){return this.options.crs.distance(de(s),de(u))},containerPointToLayerPoint:function(s){return fe(s).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(s){return fe(s).add(this._getMapPanePos())},containerPointToLatLng:function(s){var u=this.containerPointToLayerPoint(fe(s));return this.layerPointToLatLng(u)},latLngToContainerPoint:function(s){return this.layerPointToContainerPoint(this.latLngToLayerPoint(de(s)))},mouseEventToContainerPoint:function(s){return L7(s,this._container)},mouseEventToLayerPoint:function(s){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(s))},mouseEventToLatLng:function(s){return this.layerPointToLatLng(this.mouseEventToLayerPoint(s))},_initContainer:function(s){var u=this._container=N7(s);if(u){if(u._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");Ve(u,"scroll",this._onScroll,this),this._containerId=a(u)},_initLayout:function(){var s=this._container;this._fadeAnimated=this.options.fadeAnimation&&Ce.any3d,Xe(s,"leaflet-container"+(Ce.touch?" leaflet-touch":"")+(Ce.retina?" leaflet-retina":"")+(Ce.ielt9?" leaflet-oldie":"")+(Ce.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var u=iu(s,"position");u!=="absolute"&&u!=="relative"&&u!=="fixed"&&u!=="sticky"&&(s.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var s=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Yt(this._mapPane,new we(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(Xe(s.markerPane,"leaflet-zoom-hide"),Xe(s.shadowPane,"leaflet-zoom-hide"))},_resetView:function(s,u,f){Yt(this._mapPane,new we(0,0));var v=!this._loaded;this._loaded=!0,u=this._limitZoom(u),this.fire("viewprereset");var x=this._zoom!==u;this._moveStart(x,f)._move(s,u)._moveEnd(x),this.fire("viewreset"),v&&this.fire("load")},_moveStart:function(s,u){return s&&this.fire("zoomstart"),u||this.fire("movestart"),this},_move:function(s,u,f,v){u===void 0&&(u=this._zoom);var x=this._zoom!==u;return this._zoom=u,this._lastCenter=s,this._pixelOrigin=this._getNewPixelOrigin(s),v?f&&f.pinch&&this.fire("zoom",f):((x||f&&f.pinch)&&this.fire("zoom",f),this.fire("move",f)),this},_moveEnd:function(s){return s&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return W(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(s){Yt(this._mapPane,this._getMapPanePos().subtract(s))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(s){this._targets={},this._targets[a(this._container)]=this;var u=s?Tt:Ve;u(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&u(window,"resize",this._onResize,this),Ce.any3d&&this.options.transform3DLimit&&(s?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){W(this._resizeRequest),this._resizeRequest=Z(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var s=this._getMapPanePos();Math.max(Math.abs(s.x),Math.abs(s.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(s,u){for(var f=[],v,x=u==="mouseout"||u==="mouseover",I=s.target||s.srcElement,R=!1;I;){if(v=this._targets[a(I)],v&&(u==="click"||u==="preclick")&&this._draggableMoved(v)){R=!0;break}if(v&&v.listens(u,!0)&&(x&&!hb(I,s)||(f.push(v),x))||I===this._container)break;I=I.parentNode}return!f.length&&!R&&!x&&this.listens(u,!0)&&(f=[this]),f}
2,_isClickDisabled:function(s){for(;s&&s!==this._container;){if(s._leaflet_disable_click)return!0;s=s.parentNode}},_handleDOMEvent:function(s){var u=s.target||s.srcElement;if(!(!this._loaded||u._leaflet_disable_events||s.type==="click"&&this._isClickDisabled(u))){var f=s.type;f==="mousedown"&&cb(u),this._fireDOMEvent(s,f)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(s,u,f){if(s.type==="click"){var v=r({},s);v.type="preclick",this._fireDOMEvent(v,v.type,f)}var x=this._findEventTargets(s,u);if(f){for(var I=[],R=0;R<f.length;R++)f[R].listens(u,!0)&&I.push(f[R]);x=I.concat(x)}if(x.length){u==="contextmenu"&&gr(s);var B=x[0],G={originalEvent:s};if(s.type!=="keypress"&&s.type!=="keydown"&&s.type!=="keyup"){var J=B.getLatLng&&(!B._radius||B._radius<=10);G.containerPoint=J?this.latLngToContainerPoint(B.getLatLng()):this.mouseEventToContainerPoint(s),G.layerPoint=this.containerPointToLayerPoint(G.containerPoint),G.latlng=J?B.getLatLng():this.layerPointToLatLng(G.layerPoint)}for(R=0;R<x.length;R++)if(x[R].fire(u,G,!0),G.originalEvent._stopped||x[R].options.bubblingMouseEvents===!1&&P(this._mouseEvents,u)!==-1)return}},_draggableMoved:function(s){return s=s.dragging&&s.dragging.enabled()?s:this,s.dragging&&s.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var s=0,u=this._handlers.length;s<u;s++)this._handlers[s].disable()},whenReady:function(s,u){return this._loaded?s.call(u||this,{target:this}):this.on("load",s,u),this},_getMapPanePos:function(){return Oa(this._mapPane)||new we(0,0)},_moved:function(){var s=this._getMapPanePos();return s&&!s.equals([0,0])},_getTopLeftPoint:function(s,u){var f=s&&u!==void 0?this._getNewPixelOrigin(s,u):this.getPixelOrigin();return f.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(s,u){var f=this.getSize()._divideBy(2);return this.project(s,u)._subtract(f)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(s,u,f){var v=this._getNewPixelOrigin(f,u);return this.project(s,u)._subtract(v)},_latLngBoundsToNewLayerBounds:function(s,u,f){var v=this._getNewPixelOrigin(f,u);
2return st([this.project(s.getSouthWest(),u)._subtract(v),this.project(s.getNorthWest(),u)._subtract(v),this.project(s.getSouthEast(),u)._subtract(v),this.project(s.getNorthEast(),u)._subtract(v)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(s){return this.latLngToLayerPoint(s).subtract(this._getCenterLayerPoint())},_limitCenter:function(s,u,f){if(!f)return s;var v=this.project(s,u),x=this.getSize().divideBy(2),I=new Ze(v.subtract(x),v.add(x)),R=this._getBoundsOffset(I,f,u);return Math.abs(R.x)<=1&&Math.abs(R.y)<=1?s:this.unproject(v.add(R),u)},_limitOffset:function(s,u){if(!u)return s;var f=this.getPixelBounds(),v=new Ze(f.min.add(s),f.max.add(s));return s.add(this._getBoundsOffset(v,u))},_getBoundsOffset:function(s,u,f){var v=st(this.project(u.getNorthEast(),f),this.project(u.getSouthWest(),f)),x=v.min.subtract(s.min),I=v.max.subtract(s.max),R=this._rebound(x.x,-I.x),B=this._rebound(x.y,-I.y);return new we(R,B)},_rebound:function(s,u){return s+u>0?Math.round(s-u)/2:Math.max(0,Math.ceil(s))-Math.max(0,Math.floor(u))},_limitZoom:function(s){var u=this.getMinZoom(),f=this.getMaxZoom(),v=Ce.any3d?this.options.zoomSnap:1;return v&&(s=Math.round(s/v)*v),Math.max(u,Math.min(f,s))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Wt(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(s,u){var f=this._getCenterOffset(s)._trunc();return(u&&u.animate)!==!0&&!this.getSize().contains(f)?!1:(this.panBy(f,u),!0)},_createAnimProxy:function(){var s=this._proxy=ct("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(s),this.on("zoomanim",function(u){var f=rb,v=this._proxy.style[f];Da(this._proxy,this.project(u.center,u.zoom),this.getZoomScale(u.zoom,1)),v===this._proxy.style[f]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Ot(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var s=this.getCenter(),u=this.getZoom();Da(this._proxy,this.project(s,u),this.getZoomScale(u,1))},_catchTransitionEnd:function(s){this._animatingZoom&&s.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(s,u,f){if(this._animatingZoom)return!0;if(f=f||{},!this._zoomAnimated||f.animate===!1||this._nothingToAnimate()||Math.abs(u-this._zoom)>this.options.zoomAnimationThreshold)return!1;var v=this.getZoomScale(u),x=this._getCenterOffset(s)._divideBy(1-1/v);return f.animate!==!0&&!this.getSize().contains(x)?!1:(Z(function(){this._moveStart(!0,f.noMoveStart||!1)._animateZoom(s,u,!0)},this),!0)},_animateZoom:function(s,u,f,v){this._mapPane&&(f&&(this._animatingZoom=!0,this._animateToCenter=s,this._animateToZoom=u,Xe(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:s,zoom:u,noUpdate:v}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(n(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&Wt(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function DF(s,u){return new at(s,u)}var Un=ge.extend({options:{position:"topright"},initialize:function(s){g(this,s)},getPosition:function(){return this.options.position},setPosition:function(s){var u=this._map;return u&&u.removeControl(this),this.options.position=s,u&&u.addControl(this),this},getContainer:function(){return this._container},addTo:function(s){this.remove(),this._map=s;var u=this._container=this.onAdd(s),f=this.getPosition(),v=s._controlCorners[f];return Xe(u,"leaflet-control"),f.indexOf("bottom")!==-1?v.insertBefore(u,v.firstChild):v.appendChild(u),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Ot(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(s){this._map&&s&&s.screenX>0&&s.screenY>0&&this._map.getContainer().focus()}}),uu=function(s){return new Un(s)};at.include({addControl:function(s){return s.addTo(this),this},removeControl:function(s){return s.remove(),this}
vendor: 4,535 bytes, line 2
2,_initControlPos:function(){var s=this._controlCorners={},u="leaflet-",f=this._controlContainer=ct("div",u+"control-container",this._container);function v(x,I){var R=u+x+" "+u+I;s[x+I]=ct("div",R,f)}v("top","left"),v("top","right"),v("bottom","left"),v("bottom","right")},_clearControlPos:function(){for(var s in this._controlCorners)Ot(this._controlCorners[s]);Ot(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var B7=Un.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(s,u,f,v){return f<v?-1:v<f?1:0}},initialize:function(s,u,f){g(this,f),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var v in s)this._addLayer(s[v],v);for(v in u)this._addLayer(u[v],v,!0)},onAdd:function(s){this._initLayout(),this._update(),this._map=s,s.on("zoomend",this._checkDisabledLayers,this);for(var u=0;u<this._layers.length;u++)this._layers[u].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(s){return Un.prototype.addTo.call(this,s),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var s=0;s<this._layers.length;s++)this._layers[s].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(s,u){return this._addLayer(s,u),this._map?this._update():this},addOverlay:function(s,u){return this._addLayer(s,u,!0),this._map?this._update():this},removeLayer:function(s){s.off("add remove",this._onLayerChange,this);var u=this._getLayer(a(s));return u&&this._layers.splice(this._layers.indexOf(u),1),this._map?this._update():this},expand:function(){Xe(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var s=this._map.getSize().y-(this._container.offsetTop+50);return s<this._section.clientHeight?(Xe(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=s+"px"):Wt(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return Wt(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var s="leaflet-control-layers",u=this._container=ct("div",s),f=this.options.collapsed;u.setAttribute("aria-haspopup",!0),cu(u),fb(u);var v=this._section=ct("section",s+"-list");f&&(this._map.on("click",this.collapse,this),Ve(u,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var x=this._layersLink=ct("a",s+"-toggle",u);x.href="#",x.title="Layers",x.setAttribute("role","button"),Ve(x,{keydown:function(I){I.keyCode===13&&this._expandSafely()},click:function(I){gr(I),this._expandSafely()}},this),f||this.expand(),this._baseLayersList=ct("div",s+"-base",v),this._separator=ct("div",s+"-separator",v),this._overlaysList=ct("div",s+"-overlays",v),u.appendChild(v)},_getLayer:function(s){for(var u=0;u<this._layers.length;u++)if(this._layers[u]&&a(this._layers[u].layer)===s)return this._layers[u]},_addLayer:function(s,u,f){this._map&&s.on("add remove",this._onLayerChange,this),this._layers.push({layer:s,name:u,overlay:f}),this.options.sortLayers&&this._layers.sort(n(function(v,x){return this.options.sortFunction(v.layer,x.layer,v.name,x.name)},this)),this.options.autoZIndex&&s.setZIndex&&(this._lastZIndex++,s.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;Cm(this._baseLayersList),Cm(this._overlaysList),this._layerControlInputs=[];var s,u,f,v,x=0;for(f=0;f<this._layers.length;f++)v=this._layers[f],this._addItem(v),u=u||v.overlay,s=s||!v.overlay,x+=v.overlay?0:1;return this.options.hideSingleBase&&(s=s&&x>1,this._baseLayersList.style.display=s?"":"none"),this._separator.style.display=u&&s?"":"none",this},_onLayerChange:function(s){this._handlingClick||this._update();var u=this._getLayer(a(s.target)),f=u.overlay?s.type==="add"?"overlayadd":"overlayremove":s.type==="add"?"baselayerchange":null;f&&this._map.fire(f,u)},_createRadioElement:function(s,u){var f='<input type="radio" class="leaflet-control-layers-selector" name="'+s+'"'+(u?' checked="checked"':"")+"/>",v=document.createElement("div");return v.innerHTML=f,v.firstChild},_addItem:function(s){var u=document.createElement("label"),f=this._map.hasLayer(s.layer),v;s.overlay?(v=document.createElement("input"),v.type="checkbox",v.className="leaflet-control-layers-selector",v.defaultChecked=f):v=this._createRadioElement("leaflet-base-layers_"+a(this),f),this._layerControlInputs.push(v),v.layerId=a(s.layer),
2Ve(v,"click",this._onInputClick,this);var x=document.createElement("span");x.innerHTML=" "+s.name;var I=document.createElement("span");u.appendChild(I),I.appendChild(v),I.appendChild(x);var R=s.overlay?this._overlaysList:this._baseLayersList;return R.appendChild(u),this._checkDisabledLayers(),u},_onInputClick:function(){if(!this._preventClick){var s=this._layerControlInputs,u,f,v=[],x=[];this._handlingClick=!0;for(var I=s.length-1;I>=0;I--)u=s[I],f=this._getLayer(u.layerId).layer,u.checked?v.push(f):u.checked||x.push(f);for(I=0;I<x.length;I++)this._map.hasLayer(x[I])&&this._map.removeLayer(x[I]);for(I=0;I<v.length;I++)this._map.hasLayer(v[I])||this._map.addLayer(v[I]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var s=this._layerControlInputs,u,f,v=this._map.getZoom(),x=s.length-1;x>=0;x--)u=s[x],f=this._getLayer(u.layerId).layer,u.disabled=f.options.minZoom!==void 0&&v<f.options.minZoom||f.options.maxZoom!==void 0&&v>f.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var s=this._section;this._preventClick=!0,Ve(s,"click",gr),this.expand();var u=this;setTimeout(function(){Tt(s,"click",gr),u._preventClick=!1})}}),OF=function(s,u,f){return new B7(s,u,f)},gb=Un.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(s){var u="leaflet-control-zoom",f=ct("div",u+" leaflet-bar"),v=this.options;return this._zoomInButton=this._createButton(v.zoomInText,v.zoomInTitle,u+"-in",f,this._zoomIn),this._zoomOutButton=this._createButton(v.zoomOutText,v.zoomOutTitle,u+"-out",f,this._zoomOut),this._updateDisabled(),s.on("zoomend zoomlevelschange",this._updateDisabled,this),f},onRemove:function(s){s.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(s){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(s.shiftKey?3:1))},_zoomOut:function(s){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(s.shiftKey?3:1))},_createButton:function(s,u,f,v,x){var I=ct("a",f,v);return I.innerHTML=s,I.href="#",I.title=u,I.setAttribute("role","button"),I.setAttribute("aria-label",u),cu(I),Ve(I,"click",ja),Ve(I,"click",x,this),Ve(I,"click",this._refocusOnMap,this),I},_updateDisabled:function(){var s=this._map,u="leaflet-disabled";Wt(this._zoomInButton,u),Wt(this._zoomOutButton,u),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||s._zoom===s.getMinZoom())&&(Xe(this._zoomOutButton,u),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||s._zoom===s.getMaxZoom())&&(Xe(this._zoomInButton,u),this._zoomInButton.setAttribute("aria-disabled","true"))}});at.mergeOptions({zoomControl:!0}),at.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new gb,this.addControl(this.zoomControl))});var LF=function(s){return new gb(s)},F7=Un.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(s){var u="leaflet-control-scale",f=ct("div",u),v=this.options;return this._addScales(v,u+"-line",f),s.on(v.updateWhenIdle?"moveend":"move",this._update,this),s.whenReady(this._update,this),f},onRemove:function(s){s.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(s,u,f){s.metric&&(this._mScale=ct("div",u,f)),s.imperial&&(this._iScale=ct("div",u,f))},_update:function(){var s=this._map,u=s.getSize().y/2,f=s.distance(s.containerPointToLatLng([0,u]),s.containerPointToLatLng([this.options.maxWidth,u]));this._updateScales(f)},_updateScales:function(s){this.options.metric&&s&&this._updateMetric(s),this.options.imperial&&s&&this._updateImperial(s)},_updateMetric:function(s){var u=this._getRoundNum(s),f=u<1e3?u+" m":u/1e3+" km";this._updateScale(this._mScale,f,u/s)},_updateImperial:function(s){var u=s*3.2808399,f,v,x;u>5280?(f=u/5280,v=this._getRoundNum(f),this._updateScale(this._iScale,v+" mi",v/f)):(x=this._getRoundNum(u),this._updateScale(this._iScale,x+" ft",x/u))},_updateScale:function(s,u,f){s.style.width=Math.round(this.options.maxWidth*f)+"px",s.innerHTML=u},_getRoundNum:function(s){var u=Math.pow(10,(Math.floor(s)+"").length-1),f=s/u;return f=f>=10?10:f>=5?5:f>=3?3:f>=2?2:1,u*f}}),jF=function(s){return new F7(s)},UF='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',vb=Un.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Ce.inlineSvg?UF+" ":"")+"Leaflet</a>"},initialize:function(s){g(this,s),this._attributions={}}
2,onAdd:function(s){s.attributionControl=this,this._container=ct("div","leaflet-control-attribution"),cu(this._container);for(var u in s._layers)s._layers[u].getAttribution&&this.addAttribution(s._layers[u].getAttribution());return this._update(),s.on("layeradd",this._addAttribution,this),this._container},onRemove:function(s){s.off("layeradd",this._addAttribution,this)},_addAttribution:function(s){s.layer.getAttribution&&(this.addAttribution(s.layer.getAttribution()),s.layer.once("remove",function(){this.removeAttribution(s.layer.getAttribution())},this))},setPrefix:function(s){return this.options.prefix=s,this._update(),this},addAttribution:function(s){return s?(this._attributions[s]||(this._attributions[s]=0),this._attributions[s]++,this._update(),this):this},removeAttribution:function(s){return s?(this._attributions[s]&&(this._attributions[s]--,this._update()),this):this},_update:function(){if(this._map){var s=[];for(var u in this._attributions)this._attributions[u]&&s.push(u);var f=[];this.options.prefix&&f.push(this.options.prefix),s.length&&f.push(s.join(", ")),this._container.innerHTML=f.join(' <span aria-hidden="true">|</span> ')}}});at.mergeOptions({attributionControl:!0}),at.addInitHook(function(){this.options.attributionControl&&new vb().addTo(this)});var BF=function(s){return new vb(s)};Un.Layers=B7,Un.Zoom=gb,Un.Scale=F7,Un.Attribution=vb,uu.layers=OF,uu.zoom=LF,uu.scale=jF,uu.attribution=BF;var ao=ge.extend({initialize:function(s){this._map=s},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});ao.addTo=function(s,u){return s.addHandler(u,this),this};var FF={Events:Ie},Z7=Ce.touch?"touchstart mousedown":"mousedown",Ci=We.extend({options:{clickTolerance:3},initialize:function(s,u,f,v){g(this,v),this._element=s,this._dragStartTarget=u||s,this._preventOutline=f},enable:function(){this._enabled||(Ve(this._dragStartTarget,Z7,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Ci._dragging===this&&this.finishDrag(!0),Tt(this._dragStartTarget,Z7,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(s){if(this._enabled&&(this._moved=!1,!nb(this._element,"leaflet-zoom-anim"))){if(s.touches&&s.touches.length!==1){Ci._dragging===this&&this.finishDrag();return}if(!(Ci._dragging||s.shiftKey||s.which!==1&&s.button!==1&&!s.touches)&&(Ci._dragging=this,this._preventOutline&&cb(this._element),ab(),au(),!this._moving)){this.fire("down");var u=s.touches?s.touches[0]:s,f=R7(this._element);this._startPoint=new we(u.clientX,u.clientY),this._startPos=Oa(this._element),this._parentScale=ub(f);var v=s.type==="mousedown";Ve(document,v?"mousemove":"touchmove",this._onMove,this),Ve(document,v?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(s){if(this._enabled){if(s.touches&&s.touches.length>1){this._moved=!0;return}var u=s.touches&&s.touches.length===1?s.touches[0]:s,f=new we(u.clientX,u.clientY)._subtract(this._startPoint);!f.x&&!f.y||Math.abs(f.x)+Math.abs(f.y)<this.options.clickTolerance||(f.x/=this._parentScale.x,f.y/=this._parentScale.y,gr(s),this._moved||(this.fire("dragstart"),this._moved=!0,Xe(document.body,"leaflet-dragging"),this._lastTarget=s.target||s.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),Xe(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(f),this._moving=!0,this._lastEvent=s,this._updatePosition())}},_updatePosition:function(){var s={originalEvent:this._lastEvent};this.fire("predrag",s),Yt(this._element,this._newPos),this.fire("drag",s)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(s){Wt(document.body,"leaflet-dragging"),this._lastTarget&&(Wt(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Tt(document,"mousemove touchmove",this._onMove,this),Tt(document,"mouseup touchend touchcancel",this._onUp,this),sb(),su();var u=this._moved&&this._moving;this._moving=!1,Ci._dragging=!1,u&&this.fire("dragend",{noInertia:s,distance:this._newPos.distanceTo(this._startPos)})}});function V7(s,u,f){var v,x=[1,4,2,8],I,R,B,G,J,ye,Ne,tt;for(I=0,ye=s.length;I<ye;I++)s[I]._code=Ua(s[I],u);for(B=0;B<4;B++){for(Ne=x[B],v=[],I=0,ye=s.length,R=ye-1;I<ye;R=I++)G=s[I],J=s[R],G._code&Ne?J._code&Ne||(tt=Nm(J,G,Ne,u,f),tt._co
2de=Ua(tt,u),v.push(tt)):(J._code&Ne&&(tt=Nm(J,G,Ne,u,f),tt._code=Ua(tt,u),v.push(tt)),v.push(G));s=v}return s}function G7(s,u){var f,v,x,I,R,B,G,J,ye;if(!s||s.length===0)throw new Error("latlngs not passed");_n(s)||(console.warn("latlngs are not flat! Only the first ring will be used"),s=s[0]);var Ne=de([0,0]),tt=_e(s),Pr=tt.getNorthWest().distanceTo(tt.getSouthWest())*tt.getNorthEast().distanceTo(tt.getNorthWest());Pr<1700&&(Ne=yb(s));var dr=s.length,kn=[];for(f=0;f<dr;f++){var Fr=de(s[f]);kn.push(u.project(de([Fr.lat-Ne.lat,Fr.lng-Ne.lng])))}for(B=G=J=0,f=0,v=dr-1;f<dr;v=f++)x=kn[f],I=kn[v],R=x.y*I.x-I.y*x.x,G+=(x.x+I.x)*R,J+=(x.y+I.y)*R,B+=R*3;B===0?ye=kn[0]:ye=[G/B,J/B];var Hs=u.unproject(fe(ye));return de([Hs.lat+Ne.lat,Hs.lng+Ne.lng])}function yb(s){for(var u=0,f=0,v=0,x=0;x<s.length;x++){var I=de(s[x]);u+=I.lat,f+=I.lng,v++}return de([u/v,f/v])}var ZF={__proto__:null,clipPolygon:V7,polygonCenter:G7,centroid:yb};function q7(s,u){if(!u||!s.length)return s.slice();var f=u*u;return s=qF(s,f),s=GF(s,f),s}function H7(s,u,f){return Math.sqrt(du(s,u,f,!0))}function VF(s,u,f){return du(s,u,f)}function GF(s,u){var f=s.length,v=typeof Uint8Array<"u"?Uint8Array:Array,x=new v(f);x[0]=x[f-1]=1,bb(s,x,u,0,f-1);var I,R=[];for(I=0;I<f;I++)x[I]&&R.push(s[I]);return R}function bb(s,u,f,v,x){var I=0,R,B,G;for(B=v+1;B<=x-1;B++)G=du(s[B],s[v],s[x],!0),G>I&&(R=B,I=G);I>f&&(u[R]=1,bb(s,u,f,v,R),bb(s,u,f,R,x))}function qF(s,u){for(var f=[s[0]],v=1,x=0,I=s.length;v<I;v++)HF(s[v],s[x])>u&&(f.push(s[v]),x=v);return x<I-1&&f.push(s[I-1]),f}var W7;function J7(s,u,f,v,x){var I=v?W7:Ua(s,f),R=Ua(u,f),B,G,J;for(W7=R;;){if(!(I|R))return[s,u];if(I&R)return!1;B=I||R,G=Nm(s,u,B,f,x),J=Ua(G,f),B===I?(s=G,I=J):(u=G,R=J)}}function Nm(s,u,f,v,x){var I=u.x-s.x,R=u.y-s.y,B=v.min,G=v.max,J,ye;return f&8?(J=s.x+I*(G.y-s.y)/R,ye=G.y):f&4?(J=s.x+I*(B.y-s.y)/R,ye=B.y):f&2?(J=G.x,ye=s.y+R*(G.x-s.x)/I):f&1&&(J=B.x,ye=s.y+R*(B.x-s.x)/I),new we(J,ye,x)}function Ua(s,u){var f=0;return s.x<u.min.x?f|=1:s.x>u.max.x&&(f|=2),s.y<u.min.y?f|=4:s.y>u.max.y&&(f|=8),f}function HF(s,u){var f=u.x-s.x,v=u.y-s.y;return f*f+v*v}function du(s,u,f,v){var x=u.x,I=u.y,R=f.x-x,B=f.y-I,G=R*R+B*B,J;return G>0&&(J=((s.x-x)*R+(s.y-I)*B)/G,J>1?(x=f.x,I=f.y):J>0&&(x+=R*J,I+=B*J)),R=s.x-x,B=s.y-I,v?R*R+B*B:new we(x,I)}function _n(s){return!z(s[0])||typeof s[0][0]!="object"&&typeof s[0][0]<"u"}function K7(s){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),_n(s)}function X7(s,u){var f,v,x,I,R,B,G,J;if(!s||s.length===0)throw new Error("latlngs not passed");_n(s)||(console.warn("latlngs are not flat! Only the first ring will be used"),s=s[0]);var ye=de([0,0]),Ne=_e(s),tt=Ne.getNorthWest().distanceTo(Ne.getSouthWest
2())*Ne.getNorthEast().distanceTo(Ne.getNorthWest());tt<1700&&(ye=yb(s));var Pr=s.length,dr=[];for(f=0;f<Pr;f++){var kn=de(s[f]);dr.push(u.project(de([kn.lat-ye.lat,kn.lng-ye.lng])))}for(f=0,v=0;f<Pr-1;f++)v+=dr[f].distanceTo(dr[f+1])/2;if(v===0)J=dr[0];else for(f=0,I=0;f<Pr-1;f++)if(R=dr[f],B=dr[f+1],x=R.distanceTo(B),I+=x,I>v){G=(I-v)/x,J=[B.x-G*(B.x-R.x),B.y-G*(B.y-R.y)];break}var Fr=u.unproject(fe(J));return de([Fr.lat+ye.lat,Fr.lng+ye.lng])}var WF={__proto__:null,simplify:q7,pointToSegmentDistance:H7,closestPointOnSegment:VF,clipSegment:J7,_getEdgeIntersection:Nm,_getBitCode:Ua,_sqClosestPointOnSegment:du,isFlat:_n,_flat:K7,polylineCenter:X7},xb={project:function(s){return new we(s.lng,s.lat)},unproject:function(s){return new ve(s.y,s.x)},bounds:new Ze([-180,-90],[180,90])},wb={R:6378137,R_MINOR:6356752314245179e-9,bounds:new Ze([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(s){var u=Math.PI/180,f=this.R,v=s.lat*u,x=this.R_MINOR/f,I=Math.sqrt(1-x*x),R=I*Math.sin(v),B=Math.tan(Math.PI/4-v/2)/Math.pow((1-R)/(1+R),I/2);return v=-f*Math.log(Math.max(B,1e-10)),new we(s.lng*u*f,v)},unproject:function(s){for(var u=180/Math.PI,f=this.R,v=this.R_MINOR/f,x=Math.sqrt(1-v*v),I=Math.exp(-s.y/f),R=Math.PI/2-2*Math.atan(I),B=0,G=.1,J;B<15&&Math.abs(G)>1e-7;B++)J=x*Math.sin(R),J=Math.pow((1-J)/(1+J),x/2),G=Math.PI/2-2*Math.atan(I*J)-R,R+=G;return new ve(R*u,s.x*u/f)}},JF={__proto__:null,LonLat:xb,Mercator:wb,SphericalMercator:Vt},KF=r({},Dt,{code:"EPSG:3395",projection:wb,transformation:(function(){var s=.5/(Math.PI*wb.R);return Ir(s,.5,-s,.5)})()}),Y7=r({},Dt,{code:"EPSG:4326",projection:xb,transformation:Ir(1/180,1,-1/180,.5)}),XF=r({},nt,{projection:xb,transformation:Ir(1,0,-1,0),scale:function(s){return Math.pow(2,s)},zoom:function(s){return Math.log(s)/Math.LN2},distance:function(s,u){var f=u.lng-s.lng,v=u.lat-s.lat;return Math.sqrt(f*f+v*v)},infinite:!0});nt.Earth=Dt,nt.EPSG3395=KF,nt.EPSG3857=no,nt.EPSG900913=$m,nt.EPSG4326=Y7,nt.Simple=XF;var Bn=We.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(s){return s.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(s){return s&&s.removeLayer(this),this},getPane:function(s){return this._map.getPane(s?this.options[s]||s:this.options.pane)},addInteractiveTarget:function(s){return this._map._targets[a(s)]=this,this},removeInteractiveTarget:function(s){return delete this._map._targets[a(s)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(s){var u=s.target;if(u.hasLayer(this)){if(this._map=u,this._zoomAnimated=u._zoomAnimated,this.getEvents){var f=this.getEvents();u.on(f,this),this.once("remove",function(){u.off(f,this)},this)}this.onAdd(u),this.fire("add"),u.fire("layeradd",{layer:this})}}});at.include({addLayer:function(s){if(!s._layerAdd)throw new Error("The provided object is not a Layer.");var u=a(s);return this._layers[u]?this:(this._layers[u]=s,s._mapToAdd=this,s.beforeAdd&&s.beforeAdd(this),this.whenReady(s._layerAdd,s),this)},removeLayer:function(s){var u=a(s);return this._layers[u]?(this._loaded&&s.onRemove(this),delete this._layers[u],this._loaded&&(this.fire("layerremove",{layer:s}),s.fire("remove")),s._map=s._mapToAdd=null,this):this},hasLayer:function(s){return a(s)in this._layers},eachLayer:function(s,u){for(var f in this._layers)s.call(u,this._layers[f]);return this},_addLayers:function(s){s=s?z(s)?s:[s]:[];for(var u=0,f=s.length;u<f;u++)this.addLayer(s[u])},_addZoomLimit:function(s){(!isNaN(s.options.maxZoom)||!isNaN(s.options.minZoom))&&(this._zoomBoundLayers[a(s)]=s,this._updateZoomLevels())},_removeZoomLimit:function(s){var u=a(s);this._zoomBoundLayers[u]&&(delete this._zoomBoundLayers[u],this._updateZoomLevels())},_updateZoomLevels:function(){var s=1/0,u=-1/0,f=this._getZoomSpan();for(var v in this._zoomBoundLayers){var x=this._zoomBoundLayers[v].options;s=x.minZoom===void 0?s:Math.min(s,x.minZoom),u=x.maxZoom===void 0?u:Math.max(u,x.maxZoom)}this._layersMaxZoom=u===-1/0?void 0:u,this._layersMinZoom=s===1/0?void 0:s,f!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZo
2om&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var Fs=Bn.extend({initialize:function(s,u){g(this,u),this._layers={};var f,v;if(s)for(f=0,v=s.length;f<v;f++)this.addLayer(s[f])},addLayer:function(s){var u=this.getLayerId(s);return this._layers[u]=s,this._map&&this._map.addLayer(s),this},removeLayer:function(s){var u=s in this._layers?s:this.getLayerId(s);return this._map&&this._layers[u]&&this._map.removeLayer(this._layers[u]),delete this._layers[u],this},hasLayer:function(s){var u=typeof s=="number"?s:this.getLayerId(s);return u in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(s){var u=Array.prototype.slice.call(arguments,1),f,v;for(f in this._layers)v=this._layers[f],v[s]&&v[s].apply(v,u);return this},onAdd:function(s){this.eachLayer(s.addLayer,s)},onRemove:function(s){this.eachLayer(s.removeLayer,s)},eachLayer:function(s,u){for(var f in this._layers)s.call(u,this._layers[f]);return this},getLayer:function(s){return this._layers[s]},getLayers:function(){var s=[];return this.eachLayer(s.push,s),s},setZIndex:function(s){return this.invoke("setZIndex",s)},getLayerId:function(s){return a(s)}}),YF=function(s,u){return new Fs(s,u)},Do=Fs.extend({addLayer:function(s){return this.hasLayer(s)?this:(s.addEventParent(this),Fs.prototype.addLayer.call(this,s),this.fire("layeradd",{layer:s}))},removeLayer:function(s){return this.hasLayer(s)?(s in this._layers&&(s=this._layers[s]),s.removeEventParent(this),Fs.prototype.removeLayer.call(this,s),this.fire("layerremove",{layer:s})):this},setStyle:function(s){return this.invoke("setStyle",s)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var s=new lt;for(var u in this._layers){var f=this._layers[u];s.extend(f.getBounds?f.getBounds():f.getLatLng())}return s}}),QF=function(s,u){return new Do(s,u)},Zs=ge.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(s){g(this,s)},createIcon:function(s){return this._createIcon("icon",s)},createShadow:function(s){return this._createIcon("shadow",s)},_createIcon:function(s,u){var f=this._getIconUrl(s);if(!f){if(s==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var v=this._createImg(f,u&&u.tagName==="IMG"?u:null);return this._setIconStyles(v,s),(this.options.crossOrigin||this.options.crossOrigin==="")&&(v.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),v},_setIconStyles:function(s,u){var f=this.options,v=f[u+"Size"];typeof v=="number"&&(v=[v,v]);var x=fe(v),I=fe(u==="shadow"&&f.shadowAnchor||f.iconAnchor||x&&x.divideBy(2,!0));s.className="leaflet-marker-"+u+" "+(f.className||""),I&&(s.style.marginLeft=-I.x+"px",s.style.marginTop=-I.y+"px"),x&&(s.style.width=x.x+"px",s.style.height=x.y+"px")},_createImg:function(s,u){return u=u||document.createElement("img"),u.src=s,u},_getIconUrl:function(s){return Ce.retina&&this.options[s+"RetinaUrl"]||this.options[s+"Url"]}});function eZ(s){return new Zs(s)}var pu=Zs.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(s){return typeof pu.imagePath!="string"&&(pu.imagePath=this._detectIconPath()),(this.options.imagePath||pu.imagePath)+Zs.prototype._getIconUrl.call(this,s)},_stripUrl:function(s){var u=function(f,v,x){var I=v.exec(f);return I&&I[x]};return s=u(s,/^url\((['"])?(.+)\1\)$/,2),s&&u(s,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var s=ct("div","leaflet-default-icon-path",document.body),u=iu(s,"background-image")||iu(s,"backgroundImage");if(document.body.removeChild(s),u=this._stripUrl(u),u)return u;var f=document.querySelector('link[href$="leaflet.css"]');return f?f.href.substring(0,f.href.length-11-1):""}}),Q7=ao.extend({initialize:function(s){this._marker=s},addHooks:function(){var s=this._marker._icon;this._draggable||(this._draggable=new Ci(s,s,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),Xe(s,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&Wt(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(s){var u=this._marker,f=u._map,v=this._marker.options.autoPanSpeed,x=this._marker.options.autoPanPadding,I=Oa(u._icon),R=f.getPixelBounds(),B=f.getPixelOrigin(),G=st(R.min._subtract(B).add(x),R.max._subtract(B).subtract(x));if(!G.contains(I)){var J=fe((Math.max(G.max.x,I.x)-G.max.x)/(R.max.x-G.max.x)-(Math.min(G.min.x,I.x)-G.min.x)/(R.min.x-G.min.x),(Math.max(G.max.y,I.y)-G.max.y)/(R.max.y-G.max.y)-(Math.min(G.min.y,I.y)-G.min.y)/(R.min.y-G.min.y)).multiplyBy(v);f.panBy(J,{animate:!1}),this._draggable._newPos._add(J),this._draggable._startPos._add(J),Yt(u._icon,this._draggable._newPos),this._onDrag(s),this._panRequest=Z(this._adjustPan.bind(this,s))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(s){this._marker.options.autoPan&&(W(this._panRequest),this._panRequest=Z(this._adjustPan.bind(this,s)))},_onDrag:function(s){var u=this._marker,f=u._shadow,v=Oa(u._icon),x=u._map.layerPointToLatLng(v);f&&Yt(f,v),u._latlng=x,s.latlng=x,s.oldLatLng=this._oldLatLng,u.fire("move",s).fire("drag",s)},_onDragEnd:function(s){W(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",s)}}),Rm=Bn.extend({options:{icon:new pu,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(s,u){g(this,u),this._latlng=de(s)},onAdd:function(s){this._zoomAnimated=this._zoomAnimated&&s.options.markerZoomAnimation,this._zoomAnimated&&s.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(s){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&s.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(s){var u=this._latlng;return this._latlng=de(s),this.update(),this.fire("move",{oldLatLng:u,latlng:this._latlng})},setZIndexOffset:function(s){return this.options.zIndexOffset=s,this.update()},getIcon:function(){return this.options.icon},setIcon:function(s){return this.options.icon=s,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var s=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(s)}return this},_initIcon:function(){var s=this.options,u="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),f=s.icon.createIcon(this._icon),v=!1;f!==this._icon&&(this._icon&&this._removeIcon(),v=!0,s.title&&(f.title=s.title),f.tagName==="IMG"&&(f.alt=s.alt||"")),Xe(f,u),s.keyboard&&(f.tabIndex="0",f.setAttribute("role","button")),this._icon=f,s.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Ve(f,"focus",this._panOnFocus,this);var x=s.icon.createShadow(this._shadow),I=!1;x!==this._shadow&&(this._removeShadow(),I=!0),x&&(Xe(x,u),x.alt=""),this._shadow=x,s.opacity<1&&this._updateOpacity(),v&&this.getPane().appendChild(this._icon),this._initInteraction(),x&&I&&this.getPane(s.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}
vendor: 4,548 bytes, line 2
2),this.options.autoPanOnFocus&&Tt(this._icon,"focus",this._panOnFocus,this),Ot(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&Ot(this._shadow),this._shadow=null},_setPos:function(s){this._icon&&Yt(this._icon,s),this._shadow&&Yt(this._shadow,s),this._zIndex=s.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(s){this._icon&&(this._icon.style.zIndex=this._zIndex+s)},_animateZoom:function(s){var u=this._map._latLngToNewLayerPoint(this._latlng,s.zoom,s.center).round();this._setPos(u)},_initInteraction:function(){if(this.options.interactive&&(Xe(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Q7)){var s=this.options.draggable;this.dragging&&(s=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Q7(this),s&&this.dragging.enable()}},setOpacity:function(s){return this.options.opacity=s,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var s=this.options.opacity;this._icon&&wn(this._icon,s),this._shadow&&wn(this._shadow,s)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var s=this._map;if(s){var u=this.options.icon.options,f=u.iconSize?fe(u.iconSize):fe(0,0),v=u.iconAnchor?fe(u.iconAnchor):fe(0,0);s.panInside(this._latlng,{paddingTopLeft:v,paddingBottomRight:f.subtract(v)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function tZ(s,u){return new Rm(s,u)}var zi=Bn.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(s){this._renderer=s.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(s){return g(this,s),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&s&&Object.prototype.hasOwnProperty.call(s,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),Dm=zi.extend({options:{fill:!0,radius:10},initialize:function(s,u){g(this,u),this._latlng=de(s),this._radius=this.options.radius},setLatLng:function(s){var u=this._latlng;return this._latlng=de(s),this.redraw(),this.fire("move",{oldLatLng:u,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(s){return this.options.radius=this._radius=s,this.redraw()},getRadius:function(){return this._radius},setStyle:function(s){var u=s&&s.radius||this._radius;return zi.prototype.setStyle.call(this,s),this.setRadius(u),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var s=this._radius,u=this._radiusY||s,f=this._clickTolerance(),v=[s+f,u+f];this._pxBounds=new Ze(this._point.subtract(v),this._point.add(v))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(s){return s.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function rZ(s,u){return new Dm(s,u)}var _b=Dm.extend({initialize:function(s,u,f){if(typeof u=="number"&&(u=r({},f,{radius:u})),g(this,u),this._latlng=de(s),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(s){return this._mRadius=s,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var s=[this._radius,this._radiusY||this._radius];return new lt(this._map.layerPointToLatLng(this._point.subtract(s)),this._map.layerPointToLatLng(this._point.add(s)))},setStyle:zi.prototype.setStyle,_project:function(){var s=this._latlng.lng,u=this._latlng.lat,f=this._map,v=f.options.crs;if(v.distance===Dt.distance){var x=Math.PI/180,I=this._mRadius/Dt.R/
2x,R=f.project([u+I,s]),B=f.project([u-I,s]),G=R.add(B).divideBy(2),J=f.unproject(G).lat,ye=Math.acos((Math.cos(I*x)-Math.sin(u*x)*Math.sin(J*x))/(Math.cos(u*x)*Math.cos(J*x)))/x;(isNaN(ye)||ye===0)&&(ye=I/Math.cos(Math.PI/180*u)),this._point=G.subtract(f.getPixelOrigin()),this._radius=isNaN(ye)?0:G.x-f.project([J,s-ye]).x,this._radiusY=G.y-R.y}else{var Ne=v.unproject(v.project(this._latlng).subtract([this._mRadius,0]));this._point=f.latLngToLayerPoint(this._latlng),this._radius=this._point.x-f.latLngToLayerPoint(Ne).x}this._updateBounds()}});function nZ(s,u,f){return new _b(s,u,f)}var Oo=zi.extend({options:{smoothFactor:1,noClip:!1},initialize:function(s,u){g(this,u),this._setLatLngs(s)},getLatLngs:function(){return this._latlngs},setLatLngs:function(s){return this._setLatLngs(s),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(s){for(var u=1/0,f=null,v=du,x,I,R=0,B=this._parts.length;R<B;R++)for(var G=this._parts[R],J=1,ye=G.length;J<ye;J++){x=G[J-1],I=G[J];var Ne=v(s,x,I,!0);Ne<u&&(u=Ne,f=v(s,x,I))}return f&&(f.distance=Math.sqrt(u)),f}
2,getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return X7(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(s,u){return u=u||this._defaultShape(),s=de(s),u.push(s),this._bounds.extend(s),this.redraw()},_setLatLngs:function(s){this._bounds=new lt,this._latlngs=this._convertLatLngs(s)},_defaultShape:function(){return _n(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(s){for(var u=[],f=_n(s),v=0,x=s.length;v<x;v++)f?(u[v]=de(s[v]),this._bounds.extend(u[v])):u[v]=this._convertLatLngs(s[v]);return u},_project:function(){var s=new Ze;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,s),this._bounds.isValid()&&s.isValid()&&(this._rawPxBounds=s,this._updateBounds())},_updateBounds:function(){var s=this._clickTolerance(),u=new we(s,s);this._rawPxBounds&&(this._pxBounds=new Ze([this._rawPxBounds.min.subtract(u),this._rawPxBounds.max.add(u)]))},_projectLatlngs:function(s,u,f){var v=s[0]instanceof ve,x=s.length,I,R;if(v){for(R=[],I=0;I<x;I++)R[I]=this._map.latLngToLayerPoint(s[I]),f.extend(R[I]);u.push(R)}else for(I=0;I<x;I++)this._projectLatlngs(s[I],u,f)},_clipPoints:function(){var s=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(s))){if(this.options.noClip){this._parts=this._rings;return}var u=this._parts,f,v,x,I,R,B,G;for(f=0,x=0,I=this._rings.length;f<I;f++)for(G=this._rings[f],v=0,R=G.length;v<R-1;v++)B=J7(G[v],G[v+1],s,v,!0),B&&(u[x]=u[x]||[],u[x].push(B[0]),(B[1]!==G[v+1]||v===R-2)&&(u[x].push(B[1]),x++))}},_simplifyPoints:function(){for(var s=this._parts,u=this.options.smoothFactor,f=0,v=s.length;f<v;f++)s[f]=q7(s[f],u)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(s,u){var f,v,x,I,R,B,G=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(s))return!1;for(f=0,I=this._parts.length;f<I;f++)for(B=this._parts[f],v=0,R=B.length,x=R-1;v<R;x=v++)if(!(!u&&v===0)&&H7(s,B[x],B[v])<=G)return!0;return!1}});function oZ(s,u){return new Oo(s,u)}Oo._flat=K7;var Vs=Oo.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length}
2,getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return G7(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(s){var u=Oo.prototype._convertLatLngs.call(this,s),f=u.length;return f>=2&&u[0]instanceof ve&&u[0].equals(u[f-1])&&u.pop(),u},_setLatLngs:function(s){Oo.prototype._setLatLngs.call(this,s),_n(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return _n(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var s=this._renderer._bounds,u=this.options.weight,f=new we(u,u);if(s=new Ze(s.min.subtract(f),s.max.add(f)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(s))){if(this.options.noClip){this._parts=this._rings;return}for(var v=0,x=this._rings.length,I;v<x;v++)I=V7(this._rings[v],s,!0),I.length&&this._parts.push(I)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(s){var u=!1,f,v,x,I,R,B,G,J;if(!this._pxBounds||!this._pxBounds.contains(s))return!1;for(I=0,G=this._parts.length;I<G;I++)for(f=this._parts[I],R=0,J=f.length,B=J-1;R<J;B=R++)v=f[R],x=f[B],v.y>s.y!=x.y>s.y&&s.x<(x.x-v.x)*(s.y-v.y)/(x.y-v.y)+v.x&&(u=!u);return u||Oo.prototype._containsPoint.call(this,s,!0)}});function iZ(s,u){return new Vs(s,u)}var Lo=Do.extend({initialize:function(s,u){g(this,u),this._layers={},s&&this.addData(s)},addData:function(s){var u=z(s)?s:s.features,f,v,x;if(u){for(f=0,v=u.length;f<v;f++)x=u[f],(x.geometries||x.geometry||x.features||x.coordinates)&&this.addData(x);return this}var I=this.options;if(I.filter&&!I.filter(s))return this;var R=Om(s,I);return R?(R.feature=Um(s),R.defaultOptions=R.options,this.resetStyle(R),I.onEachFeature&&I.onEachFeature(s,R),this.addLayer(R)):this},resetStyle:function(s){return s===void 0?this.eachLayer(this.resetStyle,this):(s.options=r({},s.defaultOptions),this._setLayerStyle(s,this.options.style),this)},setStyle:function(s){return this.eachLayer(function(u){this._setLayerStyle(u,s)},this)},_setLayerStyle:function(s,u){s.setStyle&&(typeof u=="function"&&(u=u(s.feature)),s.setStyle(u))}});function Om(s,u){var f=s.type==="Feature"?s.geometry:s,v=f?f.coordinates:null,x=[],I=u&&u.pointToLayer,R=u&&u.coordsToLatLng||kb,B,G,J,ye;if(!v&&!f)return null;switch(f.type){case"Point":return B=R(v),e$(I,s,B,u);case"MultiPoint":for(J=0,ye=v.length;J<ye;J++)B=R(v[J]),x.push(e$(I,s,B,u));return new Do(x);case"LineString":case"MultiLineString":return G=Lm(v,f.type==="LineString"?0:1,R),new Oo(G,u);case"Polygon":case"MultiPolygon":return G=Lm(v,f.type==="Polygon"?1:2,R),new Vs(G,u);case"GeometryCollection":for(J=0,ye=f.geometries.length;J<ye;J++){var Ne=Om({geometry:f.geometries[J],type:"Feature",properties:s.properties},u);Ne&&x.push(Ne)}return new Do(x);case"FeatureCollection":for(J=0,ye=f.features.length;J<ye;J++){var tt=Om(f.features[J],u);tt&&x.push(tt)}return new Do(x);default:throw new Error("Invalid GeoJSON object.")}}function e$(s,u,f,v){return s?s(u,f):new Rm(f,v&&v.markersInheritOptions&&v)}function kb(s){return new ve(s[1],s[0],s[2])}function Lm(s,u,f){for(var v=[],x=0,I=s.length,R;x<I;x++)R=u?Lm(s[x],u-1,f):(f||kb)(s[x]),v.push(R);return v}function Sb(s,u){return s=de(s),s.alt!==void 0?[p(s.lng,u),p(s.lat,u),p(s.alt,u)]:[p(s.lng,u),p(s.lat,u)]}function jm(s,u,f,v){for(var x=[],I=0,R=s.length;I<R;I++)x.push(u?jm(s[I],_n(s[I])?0:u-1,f,v):Sb(s[I],v));return!u&&f&&x.length>0&&x.push(x[0].slice()),x}function Gs(s,u){return s.feature?r({},s.feature,{geometry:u}):Um(u)}function Um(s){return s.type==="Feature"||s.type==="FeatureCollection"?s:{type:"Feature",properties:{},geometry:s}}var $b={toGeoJSON:function(s){return Gs(this,{type:"Point",coordinates:Sb(this.getLatLng(),s)})}};Rm.include($b),_b.include($b),Dm.include($b),Oo.include({toGeoJSON:function(s){var u=!_n(this._latlngs),f=jm(this._latlngs,u?1:0,!1,s);return Gs(this,{type:(u?"Multi":"")+"LineString",coordinates:f})}}),Vs.include({toGeoJSON:function(s){var u=!_n(this._latlngs),f=u&&!_n(this._latlngs[0]),v=jm(this._latlngs,f?2:u?1:0,!0,s);return u||(v=[v]),Gs(this,{type:(f?"Multi":"")+"Polygon",coordinates:v})}}),Fs.include({toMultiPoint:function(s){var u=[];return this.eachLayer(function(f){u.push(f.toGeoJSON(s).geometry.coordinates)}),Gs(this,{type:"MultiPoint",coordinates:u})},toGeoJSON:function(s){var u=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(u==="MultiPoint")return this.toMultiPoint(s);var f=u==="GeometryCollection",v=[];return this.eachLayer(function(x){if(x.toGeoJSON){var I=x.toGeoJSON(s);if(f)v.push(I.geometry);else{var R=Um(I);R.type==="FeatureCollection"?v.push.apply(v,R.features):v.push(R)}}}),f?Gs(this,{geometries:v,type:"GeometryCollection"}):{type:"FeatureCollection",features:v}}});function t$(s,u){return new Lo(s,u)}var aZ=t$,Bm=Bn.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(s,u,f){this._url=s,this._bounds=_e(u),g(this,f)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(Xe(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Ot(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(s){return this.options.opacity=s,this._image&&this._updateOpacity(),this},setStyle:function(s){return s.opacity&&this.setOpacity(s.opacity),this},bringToFront:function(){return this._map&&Us(this._image),this},bringToBack:function(){return this._map&&Bs(this._image),this},setUrl:function(s){return this._url=s,this._image&&(this._image.src=s),this},setBounds:function(s){return this._bounds=_e(s),this._map&&this._reset(),this},getEvents:function(){var s={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(s.zoomanim=this._animateZoom),s},setZIndex:function(s){return this.options.zIndex=s,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var s=this._url.tagName==="IMG",u=this._image=s?this._url:ct("img");if(Xe(u,"leaflet-image-layer"),this._zoomAnimated&&Xe(u,"leaflet-zoom-animated"),this.options.className&&Xe(u,this.options.className),u.onselectstart=d,u.onmousemove=d,u.onload=n(this.fire,this,"load"),u.onerror=n(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(u.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),s){this._url=u.src;return}u.src=this._url,u.alt=this.options.alt},_animateZoom:function(s){var u=this._map.getZoomScale(s.zoom),f=this._map._latLngBoundsToNewLayerBounds(this._bounds,s.zoom,s.center).min;Da(this._image,f,u)},_reset:function(){var s=this._image,u=new Ze(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),f=u.getSize();Yt(s,u.min),s.style.width=f.x+"px",s.style.height=f.y+"px"},_updateOpacity:function(){wn(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var s=this.options.errorOverlayUrl;s&&this._url!==s&&(this._url=s,this._image.src=s)},getCenter:function(){return this._bounds.getCenter()}}),sZ=function(s,u,f){return new Bm(s,u,f)},r$=Bm.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInl
2ine:!0},_initImage:function(){var s=this._url.tagName==="VIDEO",u=this._image=s?this._url:ct("video");if(Xe(u,"leaflet-image-layer"),this._zoomAnimated&&Xe(u,"leaflet-zoom-animated"),this.options.className&&Xe(u,this.options.className),u.onselectstart=d,u.onmousemove=d,u.onloadeddata=n(this.fire,this,"load"),s){for(var f=u.getElementsByTagName("source"),v=[],x=0;x<f.length;x++)v.push(f[x].src);this._url=f.length>0?v:[u.src];return}z(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(u.style,"objectFit")&&(u.style.objectFit="fill"),u.autoplay=!!this.options.autoplay,u.loop=!!this.options.loop,u.muted=!!this.options.muted,u.playsInline=!!this.options.playsInline;for(var I=0;I<this._url.length;I++){var R=ct("source");R.src=this._url[I],u.appendChild(R)}}});function lZ(s,u,f){return new r$(s,u,f)}var n$=Bm.extend({_initImage:function(){var s=this._image=this._url;Xe(s,"leaflet-image-layer"),this._zoomAnimated&&Xe(s,"leaflet-zoom-animated"),this.options.className&&Xe(s,this.options.className),s.onselectstart=d,s.onmousemove=d}});function cZ(s,u,f){return new n$(s,u,f)}var so=Bn.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(s,u){s&&(s instanceof ve||z(s))?(this._latlng=de(s),g(this,u)):(g(this,s),this._source=u),this.options.content&&(this._content=this.options.content)},openOn:function(s){return s=arguments.length?s:this._source._map,s.hasLayer(this)||s.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(s){return this._map?this.close():(arguments.length?this._source=s:s=this._source,this._prepareOpen(),this.openOn(s._map)),this},onAdd:function(s){this._zoomAnimated=s._zoomAnimated,this._container||this._initLayout(),s._fadeAnimated&&wn(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),s._fadeAnimated&&wn(this._container,1),this.bringToFront(),this.options.interactive&&(Xe(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(s){s._fadeAnimated?(wn(this._container,0),this._removeTimeout=setTimeout(n(Ot,void 0,this._container),200)):Ot(this._container),this.options.interactive&&(Wt(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(s){return this._latlng=de(s),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(s){return this._content=s,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var s={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(s.zoomanim=this._animateZoom),s},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&Us(this._container),this},bringToBack:function(){return this._map&&Bs(this._container),this},_prepareOpen:function(s){var u=this._source;if(!u._map)return!1;if(u instanceof Do){u=null;var f=this._source._layers;for(var v in f)if(f[v]._map){u=f[v];break}if(!u)return!1;this._source=u}if(!s)if(u.getCenter)s=u.getCenter();else if(u.getLatLng)s=u.getLatLng();else if(u.getBounds)s=u.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(s),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var s=this._contentNode,u=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof u=="string")s.innerHTML=u;else{for(;s.hasChildNodes();)s.removeChild(s.firstChild);s.appendChild(u)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var s=this._map.latLngToLayerPoint(this._latlng),u=fe(this.options.offset),f=this._getAnchor();this._zoomAnimated?Yt(this._container,s.add(f)):u=u.add(s).add(f);var v=this._containerBottom=-u.y,x=this._containerLeft=-Math.round(this._containerWidth/2)+u.x;this._container.style.bottom=v+"px",this._container.style.left=x+"px"}},_getAnchor:function(){return[0,0]}});at.include({_initOverlay:function(s,u,f,v){var x=u;return x instanceof s||(x=new s(v).setContent(u)),f&&x.setLatLng(f),x}}),Bn.include({_initOverlay:function(s,u,f,v){var x=f;return x instanceof s?(g(x,v),x._source=this):(x=u&&!v?u:new s(v,this),x.setContent(f)),x}});var Fm=so.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(s){return s=arguments.length?s:this._source._map,!s.hasLayer(this)&&s._popup&&s._popup.options.autoClose&&s.removeLayer(s._popup),s._popup=this,so.prototype.openOn.call(this,s)},onAdd:function(s){so.prototype.onAdd.call(this,s),s.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof zi||this._source.on("preclick",La))},onRemove:function(s){so.prototype.onRemove.call(this,s),s.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof zi||this._source.off("preclick",La))},getEvents:function(){var s=so.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(s.preclick=this.close),this.options.keepInView&&
2(s.moveend=this._adjustPan),s},_initLayout:function(){var s="leaflet-popup",u=this._container=ct("div",s+" "+(this.options.className||"")+" leaflet-zoom-animated"),f=this._wrapper=ct("div",s+"-content-wrapper",u);if(this._contentNode=ct("div",s+"-content",f),cu(u),fb(this._contentNode),Ve(u,"contextmenu",La),this._tipContainer=ct("div",s+"-tip-container",u),this._tip=ct("div",s+"-tip",this._tipContainer),this.options.closeButton){var v=this._closeButton=ct("a",s+"-close-button",u);v.setAttribute("role","button"),v.setAttribute("aria-label","Close popup"),v.href="#close",v.innerHTML='<span aria-hidden="true">&#215;</span>',Ve(v,"click",function(x){gr(x),this.close()},this)}},_updateLayout:function(){var s=this._contentNode,u=s.style;u.width="",u.whiteSpace="nowrap";var f=s.offsetWidth;f=Math.min(f,this.options.maxWidth),f=Math.max(f,this.options.minWidth),u.width=f+1+"px",u.whiteSpace="",u.height="";var v=s.offsetHeight,x=this.options.maxHeight,I="leaflet-popup-scrolled";x&&v>x?(u.height=x+"px",Xe(s,I)):Wt(s,I),this._containerWidth=this._container.offsetWidth},_animateZoom:function(s){var u=this._map._latLngToNewLayerPoint(this._latlng,s.zoom,s.center),f=this._getAnchor();Yt(this._container,u.add(f))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var s=this._map,u=parseInt(iu(this._container,"marginBottom"),10)||0,f=this._container.offsetHeight+u,v=this._containerWidth,x=new we(this._containerLeft,-f-this._containerBottom);x._add(Oa(this._container));var I=s.layerPointToContainerPoint(x),R=fe(this.options.autoPanPadding),B=fe(this.options.autoPanPaddingTopLeft||R),G=fe(this.options.autoPanPaddingBottomRight||R),J=s.getSize(),ye=0,Ne=0;I.x+v+G.x>J.x&&(ye=I.x+v-J.x+G.x),I.x-ye-B.x<0&&(ye=I.x-B.x),I.y+f+G.y>J.y&&(Ne=I.y+f-J.y+G.y),I.y-Ne-B.y<0&&(Ne=I.y-B.y),(ye||Ne)&&(this.options.keepInView&&(this._autopanning=!0),s.fire("autopanstart").panBy([ye,Ne]))}},_getAnchor:function(){return fe(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),uZ=function(s,u){return new Fm(s,u)};at.mergeOptions({closePopupOnClick:!0}),at.include({openPopup:function(s,u,f){return this._initOverlay(Fm,s,u,f).openOn(this),this},closePopup:function(s){return s=arguments.length?s:this._popup,s&&s.close(),this}}),Bn.include({bindPopup:function(s,u){return this._popup=this._initOverlay(Fm,this._popup,s,u),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(s){return this._popup&&(this instanceof Do||(this._popup._source=this),this._popup._prepareOpen(s||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(s){return this._popup&&this._popup.setContent(s),this},getPopup:function(){return this._popup},_openPopup:function(s){if(!(!this._popup||!this._map)){ja(s);var u=s.layer||s.target;if(this._popup._source===u&&!(u instanceof zi)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(s.latlng);return}this._popup._source=u,this.openPopup(s.latlng)}},_movePopup:function(s){this._popup.setLatLng(s.latlng)},_onKeyPress:function(s){s.originalEvent.keyCode===13&&this._openPopup(s)}});var Zm=so.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(s){so.prototype.onAdd.call(this,s),this.setOpacity(this.options.opacity),s.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(s){so.prototype.onRemove.call(this,s),s.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var s=so.prototype.getEvents.call(this);return this.options.permanent||(s.preclick=this.close),s},_initLayout:function(){var s="leaflet-tooltip",u=s+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=ct("div",u),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+a(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(s){var u,f,v=this._map,x=this._container,I=v.latLngToContainerPoint(v.getCenter()),R=v.layerPointToContainerPoint(s),B=this.options.direction,G=x.offsetWidth,J=x.offsetHeight,ye=fe(this.options.offset),Ne=this._getAnchor();B==="top"?(u=G/2,f=J):B==="bottom"?(u=G/2,f=0):B==="center"?(u=G/2,f=J/2):B==="right"?(u=0,f=J/2):B==="left"?
2(u=G,f=J/2):R.x<I.x?(B="right",u=0,f=J/2):(B="left",u=G+(ye.x+Ne.x)*2,f=J/2),s=s.subtract(fe(u,f,!0)).add(ye).add(Ne),Wt(x,"leaflet-tooltip-right"),Wt(x,"leaflet-tooltip-left"),Wt(x,"leaflet-tooltip-top"),Wt(x,"leaflet-tooltip-bottom"),Xe(x,"leaflet-tooltip-"+B),Yt(x,s)},_updatePosition:function(){var s=this._map.latLngToLayerPoint(this._latlng);this._setPosition(s)},setOpacity:function(s){this.options.opacity=s,this._container&&wn(this._container,s)},_animateZoom:function(s){var u=this._map._latLngToNewLayerPoint(this._latlng,s.zoom,s.center);this._setPosition(u)},_getAnchor:function(){return fe(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),dZ=function(s,u){return new Zm(s,u)};at.include({openTooltip:function(s,u,f){return this._initOverlay(Zm,s,u,f).openOn(this),this},closeTooltip:function(s){return s.close(),this}}),Bn.include({bindTooltip:function(s,u){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Zm,this._tooltip,s,u),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(s){if(!(!s&&this._tooltipHandlersAdded)){var u=s?"off":"on",f={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?f.add=this._openTooltip:(f.mouseover=this._openTooltip,f.mouseout=this.closeTooltip,f.click=this._openTooltip,this._map?this._addFocusListeners():f.add=this._addFocusListeners),this._tooltip.options.sticky&&(f.mousemove=this._moveTooltip),this[u](f),this._tooltipHandlersAdded=!s}},openTooltip:function(s){return this._tooltip&&(this instanceof Do||(this._tooltip._source=this),this._tooltip._prepareOpen(s)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(s){return this._tooltip&&this._tooltip.setContent(s),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(s){var u=typeof s.getElement=="function"&&s.getElement();u&&(Ve(u,"focus",function(){this._tooltip._source=s,this.openTooltip()},this),Ve(u,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(s){var u=typeof s.getElement=="function"&&s.getElement();u&&u.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(s){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var u=this;this._map.once("moveend",function(){u._openOnceFlag=!1,u._openTooltip(s)});return}this._tooltip._source=s.layer||s.target,this.openTooltip(this._tooltip.options.sticky?s.latlng:void 0)}},_moveTooltip:function(s){var u=s.latlng,f,v;this._tooltip.options.sticky&&s.originalEvent&&(f=this._map.mouseEventToContainerPoint(s.originalEvent),v=this._map.containerPointToLayerPoint(f),u=this._map.layerPointToLatLng(v)),this._tooltip.setLatLng(u)}});var o$=Zs.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(s){var u=s&&s.tagName==="DIV"?s:document.createElement("div"),f=this.options;if(f.html instanceof Element?(Cm(u),u.appendChild(f.html)):u.innerHTML=f.html!==!1?f.html:"",f.bgPos){var v=fe(f.bgPos);u.style.backgroundPosition=-v.x+"px "+-v.y+"px"}return this._setIconStyles(u,"icon"),u},createShadow:function(){return null}});function pZ(s){return new o$(s)}Zs.Default=pu;var mu=Bn.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Ce.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(s){g(this,s)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()}
2,beforeAdd:function(s){s._addZoomLimit(this)},onRemove:function(s){this._removeAllTiles(),Ot(this._container),s._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(Us(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(Bs(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(s){return this.options.opacity=s,this._updateOpacity(),this},setZIndex:function(s){return this.options.zIndex=s,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var s=this._clampZoom(this._map.getZoom());s!==this._tileZoom&&(this._tileZoom=s,this._updateLevels()),this._update()}return this},getEvents:function(){var s={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=l(this._onMoveEnd,this.options.updateInterval,this)),s.move=this._onMove),this._zoomAnimated&&(s.zoomanim=this._animateZoom),s},createTile:function(){return document.createElement("div")},getTileSize:function(){var s=this.options.tileSize;return s instanceof we?s:new we(s,s)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(s){for(var u=this.getPane().children,f=-s(-1/0,1/0),v=0,x=u.length,I;v<x;v++)I=u[v].style.zIndex,u[v]!==this._container&&I&&(f=s(f,+I));isFinite(f)&&(this.options.zIndex=f+s(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!Ce.ielt9){wn(this._container,this.options.opacity);var s=+new Date,u=!1,f=!1;for(var v in this._tiles){var x=this._tiles[v];if(!(!x.current||!x.loaded)){var I=Math.min(1,(s-x.loaded)/200);wn(x.el,I),I<1?u=!0:(x.active?f=!0:this._onOpaqueTile(x),x.active=!0)}}f&&!this._noPrune&&this._pruneTiles(),u&&(W(this._fadeFrame),this._fadeFrame=Z(this._updateOpacity,this))}},_onOpaqueTile:d,_initContainer:function(){this._container||(this._container=ct("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var s=this._tileZoom,u=this.options.maxZoom;if(s!==void 0){for(var f in this._levels)f=Number(f),this._levels[f].el.children.length||f===s?(this._levels[f].el.style.zIndex=u-Math.abs(s-f),this._onUpdateLevel(f)):(Ot(this._levels[f].el),this._removeTilesAtZoom(f),this._onRemoveLevel(f),delete this._levels[f]);var v=this._levels[s],x=this._map;return v||(v=this._levels[s]={},v.el=ct("div","leaflet-tile-container leaflet-zoom-animated",this._container),v.el.style.zIndex=u,v.origin=x.project(x.unproject(x.getPixelOrigin()),s).round(),v.zoom=s,this._setZoomTransform(v,x.getCenter(),x.getZoom()),d(v.el.offsetWidth),this._onCreateLevel(v)),this._level=v,v}},_onUpdateLevel:d,_onRemoveLevel:d,_onCreateLevel:d,_pruneTiles:function(){if(this._map){var s,u,f=this._map.getZoom();if(f>this.options.maxZoom||f<this.options.minZoom){this._removeAllTiles();return}for(s in this._tiles)u=this._tiles[s],u.retain=u.current;for(s in this._tiles)if(u=this._tiles[s],u.current&&!u.active){var v=u.coords;this._retainParent(v.x,v.y,v.z,v.z-5)||this._retainChildren(v.x,v.y,v.z,v.z+2)}for(s in this._tiles)this._tiles[s].retain||this._removeTile(s)}},_removeTilesAtZoom:function(s){for(var u in this._tiles)this._tiles[u].coords.z===s&&this._removeTile(u)},_removeAllTiles:function(){for(var s in this._tiles)this._removeTile(s)},_invalidateAll:function(){for(var s in this._levels)Ot(this._levels[s].el),this._onRemoveLevel(Number(s)),delete this._levels[s];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(s,u,f,v){var x=Math.floor(s/2),I=Math.floor(u/2),R=f-1,B=new we(+x,+I);B.z=+R;var G=this._tileCoordsToKey(B),J=this._tiles[G];return J&&J.active?(J.retain=!0,!0):(J&&J.loaded&&(J.retain=!0),R>v?this._retainParent(x,I,R,v):!1)},_retainChildren:function(s,u,f,v){for(var x=2*s;x<2*s+2;x++)for(var I=2*u;I<2*u+2;I++){var R=new we(x,I);R.z=f+1;var B=this._tileCoordsToKey(R),G=this._tiles[B];if(G&&G.active){G.retain=!0;continue}else G&&G.loaded&&(G.retain=!0);f+1<v&&this._retainChildren(x,I,f+1,v)}},_resetView:function(s){var u=s&&(s.pinch||s.flyTo);
2this._setView(this._map.getCenter(),this._map.getZoom(),u,u)},_animateZoom:function(s){this._setView(s.center,s.zoom,!0,s.noUpdate)},_clampZoom:function(s){var u=this.options;return u.minNativeZoom!==void 0&&s<u.minNativeZoom?u.minNativeZoom:u.maxNativeZoom!==void 0&&u.maxNativeZoom<s?u.maxNativeZoom:s},_setView:function(s,u,f,v){var x=Math.round(u);this.options.maxZoom!==void 0&&x>this.options.maxZoom||this.options.minZoom!==void 0&&x<this.options.minZoom?x=void 0:x=this._clampZoom(x);var I=this.options.updateWhenZooming&&x!==this._tileZoom;(!v||I)&&(this._tileZoom=x,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),x!==void 0&&this._update(s),f||this._pruneTiles(),this._noPrune=!!f),this._setZoomTransforms(s,u)},_setZoomTransforms:function(s,u){for(var f in this._levels)this._setZoomTransform(this._levels[f],s,u)},_setZoomTransform:function(s,u,f){var v=this._map.getZoomScale(f,s.zoom),x=s.origin.multiplyBy(v).subtract(this._map._getNewPixelOrigin(u,f)).round();Ce.any3d?Da(s.el,x,v):Yt(s.el,x)},_resetGrid:function(){var s=this._map,u=s.options.crs,f=this._tileSize=this.getTileSize(),v=this._tileZoom,x=this._map.getPixelWorldBounds(this._tileZoom);x&&(this._globalTileRange=this._pxBoundsToTileRange(x)),this._wrapX=u.wrapLng&&!this.options.noWrap&&[Math.floor(s.project([0,u.wrapLng[0]],v).x/f.x),Math.ceil(s.project([0,u.wrapLng[1]],v).x/f.y)],this._wrapY=u.wrapLat&&!this.options.noWrap&&[Math.floor(s.project([u.wrapLat[0],0],v).y/f.x),Math.ceil(s.project([u.wrapLat[1],0],v).y/f.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(s){var u=this._map,f=u._animatingZoom?Math.max(u._animateToZoom,u.getZoom()):u.getZoom(),v=u.getZoomScale(f,this._tileZoom),x=u.project(s,this._tileZoom).floor(),I=u.getSize().divideBy(v*2);return new Ze(x.subtract(I),x.add(I))},_update:function(s){var u=this._map;if(u){var f=this._clampZoom(u.getZoom());if(s===void 0&&(s=u.getCenter()),this._tileZoom!==void 0){var v=this._getTiledPixelBounds(s),x=this._pxBoundsToTileRange(v),I=x.getCenter(),R=[],B=this.options.keepBuffer,G=new Ze(x.getBottomLeft().subtract([B,-B]),x.getTopRight().add([B,-B]));if(!(isFinite(x.min.x)&&isFinite(x.min.y)&&isFinite(x.max.x)&&isFinite(x.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var J in this._tiles){var ye=this._tiles[J].coords;(ye.z!==this._tileZoom||!G.contains(new we(ye.x,ye.y)))&&(this._tiles[J].current=!1)}if(Math.abs(f-this._tileZoom)>1){this._setView(s,f);return}for(var Ne=x.min.y;Ne<=x.max.y;Ne++)for(var tt=x.min.x;tt<=x.max.x;tt++){var Pr=new we(tt,Ne);if(Pr.z=this._tileZoom,!!this._isValidTile(Pr)){var dr=this._tiles[this._tileCoordsToKey(Pr)];dr?dr.current=!0:R.push(Pr)}}if(R.sort(function(Fr,Hs){return Fr.distanceTo(I)-Hs.distanceTo(I)}),R.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var kn=document.createDocumentFragment();for(tt=0;tt<R.length;tt++)this._addTile(R[tt],kn);this._level.el.appendChild(kn)}}}},_isValidTile:function(s){var u=this._map.options.crs;if(!u.infinite){var f=this._globalTileRange;if(!u.wrapLng&&(s.x<f.min.x||s.x>f.max.x)||!u.wrapLat&&(s.y<f.min.y||s.y>f.max.y))return!1}if(!this.options.bounds)return!0;var v=this._tileCoordsToBounds(s);return _e(this.options.bounds).overlaps(v)},_keyToBounds:function(s){return this._tileCoordsToBounds(this._keyToTileCoords(s))},_tileCoordsToNwSe:function(s){var u=this._map,f=this.getTileSize(),v=s.scaleBy(f),x=v.add(f),I=u.unproject(v,s.z),R=u.unproject(x,s.z);return[I,R]},_tileCoordsToBounds:function(s){var u=this._tileCoordsToNwSe(s),f=new lt(u[0],u[1]);return this.options.noWrap||(f=this._map.wrapLatLngBounds(f)),f},_tileCoordsToKey:function(s){return s.x+":"+s.y+":"+s.z},_keyToTileCoords:function(s){var u=s.split(":"),f=new we(+u[0],+u[1]);return f.z=+u[2],f},_removeTile:function(s){var u=this._tiles[s];u&&(Ot(u.el),delete this._tiles[s],this.fire("tileunload",{tile:u.el,coords:this._keyToTileCoords(s)}))},_initTile:function(s){Xe(s,"leaflet-tile");var u=this.getTileSize();s.style.width=u.x+"px",s.style.height=u.y+"px",s.onselectstart=d,s.onmousemove=d,Ce.ielt9&&this.options.opacity<1&&wn(s,this.options.opacity)},_addTile:function(s,u){var f=this._getTilePos(s),v=this._tileCoordsToKey(s),x=this.createTile(this._wrapCoords(s),n(this._tileReady,this,s));this._initTile(x),this.createTile.length<2&&Z(n(this._tileReady,this,s,null,x)),Yt(x,f),this._tiles[v]={el:x,coords:s,current:!0},u.appendChild(x),this.fire("tileloadstart",{tile:x,coords:s})},_tileReady:function(s,u,f){u&&this.fire("tileerror",{error:u,tile:f,coords:s});var v=this._tileCoordsToKey(s);f=this._tiles[v],f&&(f.loaded=+new Date,this._map._fadeAnimated?(wn(f.el,0),W(this._fadeFrame),this._fadeFrame=Z(this._updateOpacity,this)):(f.active=!0,this._pruneTiles()),u||(Xe(f.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:f.el,coords:s})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Ce.ielt9||!this._map._fadeAnimated?Z(this._pruneTiles,this):setTimeout(n(this._pruneTiles,this),250)))},_getTilePos:function(s){return s.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(s){var u=new we(this._wrapX?c(s.x,this._wrapX):s.x,this._wrapY?c(s.y,this._wrapY):s.y);return u.z=s.z,u},_pxBoundsToTileRange:function(s){var u=this.getTileSize();return new Ze(s.min.unscaleBy(u).floor(),s.max.unscaleBy(u).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var s in this._tiles)if(!this._tiles[s].loaded)return!1;return!0}});function mZ(s){return new mu(s)}var qs=mu.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(s,u){this._url=s,u=g(this,u),u.detectRetina&&Ce.retina&&u.maxZoom>0?(u.tileSize=Math.floor(u.tileSize/2),u.zoomReverse?(u.zoomOffset--,u.minZoom=Math.min(u.maxZoom,u.minZoom+1)):(u.zoomOffset++,u.maxZoom=Math.max(u.minZoom,u.maxZoom-1)),u.minZoom=Math.max(0,u.minZoom)):u.zoomReverse?u.minZoom=Math.min(u.maxZoom,u.minZoom):u.maxZoom=Math.max(u.minZoom,u.maxZoom),typeof u.subdomains=="string"&&(u.subdomains=u.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(s,u){return this._url===s&&u===void 0&&(u=!0),this._url=s,u||this.redraw(),this},createTile:function(s,u){var f=document.createElement("img");return Ve(f,"load",n(this._tileOnLoad,this,u,f)),Ve(f,"error",n(this._tileOnError,this,u,f)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(f.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(f.referrerPolicy=this.options.referrerPolicy),f.alt="",f.src=this.getTileUrl(s),f},getTileUrl:function(s){var u={r:Ce.retina?"@2x":"",s:this._getSubdomain(s),x:s.x,y:s.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var f=this._globalTileRange.max.y-s.y;this.options.tms&&(u.y=f),u["-y"]=f}return T(this._url,r(u,this.options))},_tileOnLoad:function(s,u){Ce.ielt9?setTimeout(n(s,this,null,u),0):s(null,u)},_tileOnError:function(s,u,f){var v=this.options.errorTileUrl;v&&u.getAttribute("src")!==v&&(u.src=v),s(f,u)},_onTileRemove:function(s){s.tile.onload=null},_getZoomForUrl:function(){var s=this._tileZoom,u=this.options.maxZoom,f=this.options.zoomReverse,v=this.options.zoomOffset;return f&&(s=u-s),s+v},_getSubdomain:function(s){var u=Math.abs(s.x+s.y)%this.options.subdomains.length;return this.options.subdomains[u]},_abortLoading:function(){var s,u;for(s in this._tiles)if(this._tiles[s].coords.z!==this._tileZoom&&(u=this._tiles[s].el,u.onload=d,u.onerror=d,!u.complete)){u.src=k;var f=this._tiles[s].coords;Ot(u),delete this._tiles[s],this.fire("tileabort",{tile:u,coords:f})}},_removeTile:function(s){var u=this._tiles[s];if(u)return u.el.setAttribute("src",k),mu.prototype._removeTile.call(this,s)},_tileReady:function(s,u,f){if(!(!this._map||f&&f.getAttribute("src")===k))return mu.prototype._tileReady.call(this,s,u,f)}});function i$(s,u){return new qs(s,u)}var a$=qs.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(s,u){this._url=s;var f=r({},this.defaultWmsParams);for(var v in u)v in this.options||(f[v]=u[v]);u=g(this,u);var x=u.detectRetina&&Ce.retina?2:1,I=this.getTileSize();f.width=I.x*x,f.height=I.y*x,this.wmsParams=f},onAdd:function(s){this._crs=this.options.crs||s.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var u=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[u]=this._crs.code,qs.prototype.onAdd.call(this,s)},getTileUrl:function(s){var u=this._tileCoordsToNwSe(s),f=this._crs,v=st(f.project(u[0]),f.project(u[1])),x=v.min,I=v.max,R=(this._wmsVersion>=1.3&&this._crs===Y7?[x.y,x.x,I.y,I.x]:[x.x,x.y,I.x,I.y]).join(","),B=qs.prototype.getTileUrl.call(this,s);return B+w(this.wmsParams,B,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+R},setParams:function(s,u){return r(this.wmsParams,s),u||this.redraw(),this}});function fZ(s,u){return new a$(s,u)}
2qs.WMS=a$,i$.wms=fZ;var jo=Bn.extend({options:{padding:.1},initialize:function(s){g(this,s),a(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),Xe(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var s={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(s.zoomanim=this._onAnimZoom),s},_onAnimZoom:function(s){this._updateTransform(s.center,s.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(s,u){var f=this._map.getZoomScale(u,this._zoom),v=this._map.getSize().multiplyBy(.5+this.options.padding),x=this._map.project(this._center,u),I=v.multiplyBy(-f).add(x).subtract(this._map._getNewPixelOrigin(s,u));Ce.any3d?Da(this._container,I,f):Yt(this._container,I)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var s in this._layers)this._layers[s]._reset()},_onZoomEnd:function(){for(var s in this._layers)this._layers[s]._project()},_updatePaths:function(){for(var s in this._layers)this._layers[s]._update()},_update:function(){var s=this.options.padding,u=this._map.getSize(),f=this._map.containerPointToLayerPoint(u.multiplyBy(-s)).round();this._bounds=new Ze(f,f.add(u.multiplyBy(1+s*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),s$=jo.extend({options:{tolerance:0},getEvents:function(){var s=jo.prototype.getEvents.call(this);return s.viewprereset=this._onViewPreReset,s},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){jo.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var s=this._container=document.createElement("canvas");Ve(s,"mousemove",this._onMouseMove,this),Ve(s,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Ve(s,"mouseout",this._handleMouseOut,this),s._leaflet_disable_events=!0,this._ctx=s.getContext("2d")},_destroyContainer:function(){W(this._redrawRequest),delete this._ctx,Ot(this._container),Tt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var s;this._redrawBounds=null;for(var u in this._layers)s=this._layers[u],s._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){jo.prototype._update.call(this);var s=this._bounds,u=this._container,f=s.getSize(),v=Ce.retina?2:1;Yt(u,s.min),u.width=v*f.x,u.height=v*f.y,u.style.width=f.x+"px",u.style.height=f.y+"px",Ce.retina&&this._ctx.scale(2,2),this._ctx.translate(-s.min.x,-s.min.y),this.fire("update")}},_reset:function(){jo.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(s){this._updateDashArray(s),this._layers[a(s)]=s;var u=s._order={layer:s,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=u),this._drawLast=u,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(s){this._requestRedraw(s)},_removePath:function(s){var u=s._order,f=u.next,v=u.prev;f?f.prev=v:this._drawLast=v,v?v.next=f:this._drawFirst=f,delete s._order,delete this._layers[a(s)],this._requestRedraw(s)},_updatePath:function(s){this._extendRedrawBounds(s),s._project(),s._update(),this._requestRedraw(s)},_updateStyle:function(s){this._updateDashArray(s),this._requestRedraw(s)},_updateDashArray:function(s){if(typeof s.options.dashArray=="string"){var u=s.options.dashArray.split(/[, ]+/),f=[],v,x;for(x=0;x<u.length;x++){if(v=Number(u[x]),isNaN(v))return;f.push(v)}s.options._dashArray=f}else s.options._dashArray=s.options.dashArray},_requestRedraw:function(s){this._map&&(this._extendRedrawBounds(s),this._redrawRequest=this._redrawRequest||Z(this._redraw,this))},_extendRedrawBounds:function(s){if(s._pxBounds){var u=(s.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new Ze,this._redrawBounds.extend(s._pxBounds.min.subtract([u,u])),this._redrawBounds.extend(s._pxBounds.max.add([u,u]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var s=this._redrawBounds;if(s){var u=s.getSize();this._ctx.clearRect(s.min.x,s.min.y,u.x,u.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore(
2)},_draw:function(){var s,u=this._redrawBounds;if(this._ctx.save(),u){var f=u.getSize();this._ctx.beginPath(),this._ctx.rect(u.min.x,u.min.y,f.x,f.y),this._ctx.clip()}this._drawing=!0;for(var v=this._drawFirst;v;v=v.next)s=v.layer,(!u||s._pxBounds&&s._pxBounds.intersects(u))&&s._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(s,u){if(this._drawing){var f,v,x,I,R=s._parts,B=R.length,G=this._ctx;if(B){for(G.beginPath(),f=0;f<B;f++){for(v=0,x=R[f].length;v<x;v++)I=R[f][v],G[v?"lineTo":"moveTo"](I.x,I.y);u&&G.closePath()}this._fillStroke(G,s)}}},_updateCircle:function(s){if(!(!this._drawing||s._empty())){var u=s._point,f=this._ctx,v=Math.max(Math.round(s._radius),1),x=(Math.max(Math.round(s._radiusY),1)||v)/v;x!==1&&(f.save(),f.scale(1,x)),f.beginPath(),f.arc(u.x,u.y/x,v,0,Math.PI*2,!1),x!==1&&f.restore(),this._fillStroke(f,s)}},_fillStroke:function(s,u){var f=u.options;f.fill&&(s.globalAlpha=f.fillOpacity,s.fillStyle=f.fillColor||f.color,s.fill(f.fillRule||"evenodd")),f.stroke&&f.weight!==0&&(s.setLineDash&&s.setLineDash(u.options&&u.options._dashArray||[]),s.globalAlpha=f.opacity,s.lineWidth=f.weight,s.strokeStyle=f.color,s.lineCap=f.lineCap,s.lineJoin=f.lineJoin,s.stroke())},_onClick:function(s){for(var u=this._map.mouseEventToLayerPoint(s),f,v,x=this._drawFirst;x;x=x.next)f=x.layer,f.options.interactive&&f._containsPoint(u)&&(!(s.type==="click"||s.type==="preclick")||!this._map._draggableMoved(f))&&(v=f);this._fireEvent(v?[v]:!1,s)},_onMouseMove:function(s){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var u=this._map.mouseEventToLayerPoint(s);this._handleMouseHover(s,u)}},_handleMouseOut:function(s){var u=this._hoveredLayer;u&&(Wt(this._container,"leaflet-interactive"),this._fireEvent([u],s,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(s,u){if(!this._mouseHoverThrottled){for(var f,v,x=this._drawFirst;x;x=x.next)f=x.layer,f.options.interactive&&f._containsPoint(u)&&(v=f);v!==this._hoveredLayer&&(this._handleMouseOut(s),v&&(Xe(this._container,"leaflet-interactive"),this._fireEvent([v],s,"mouseover"),this._hoveredLayer=v)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,s),this._mouseHoverThrottled=!0,setTimeout(n(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(s,u,f){this._map._fireDOMEvent(u,f||u.type,s)},_bringToFront:function(s){var u=s._order;if(u){var f=u.next,v=u.prev;if(f)f.prev=v;else return;v?v.next=f:f&&(this._drawFirst=f),u.prev=this._drawLast,this._drawLast.next=u,u.next=null,this._drawLast=u,this._requestRedraw(s)}},_bringToBack:function(s){var u=s._order;if(u){var f=u.next,v=u.prev;if(v)v.next=f;else return;f?f.prev=v:v&&(this._drawLast=v),u.prev=null,u.next=this._drawFirst,this._drawFirst.prev=u,this._drawFirst=u,this._requestRedraw(s)}}});function l$(s){return Ce.canvas?new s$(s):null}var fu=(function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(s){return document.createElement("<lvml:"+s+' class="lvml">')}}catch{}return function(s){return document.createElement("<"+s+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}})(),hZ={_initContainer:function(){this._container=ct("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(jo.prototype._update.call(this),this.fire("update"))},_initPath:function(s){var u=s._container=fu("shape");Xe(u,"leaflet-vml-shape "+(this.options.className||"")),u.coordsize="1 1",s._path=fu("path"),u.appendChild(s._path),this._updateStyle(s),this._layers[a(s)]=s},_addPath:function(s){var u=s._container;this._container.appendChild(u),s.options.interactive&&s.addInteractiveTarget(u)},_removePath:function(s){var u=s._container;Ot(u),s.removeInteractiveTarget(u),delete this._layers[a(s)]},_updateStyle:function(s){var u=s._stroke,f=s._fill,v=s.options,x=s._container;x.stroked=!!v.stroke,x.filled=!!v.fill,v.stroke?(u||(u=s._stroke=fu("stroke")),x.appendChild(u),u.weight=v.weight+"px",u.color=v.color,u.opacity=v.opacity,v.dashArray?u.dashStyle=z(v.dashArray)?v.dashArray.join(" "):v.dashArray.replace(/( *, *)/g," "):u.dashStyle="",u.endcap=v.lineCap.replace("butt","flat"),u.joinstyle=v.lineJoin):u&&(x.removeChild(u),s._stroke=null),v.fill?(f||(f=s._fill=fu("fill")),x.appendChild(f),f.color=v.fillColor||v.color,f.opacity=v.fillOpacity):f&&(x.removeChild(f),s._fill=null)},_updateCircle:function(s){var u=s._point.round(),f=Math.round(s._radius),v=Math.round(s._radiusY||f);this._setPath(s,s._empty()?"M0 0":"AL "+u.x+","+u.y+" "+f+","+v+" 0,"+65535*360)},_setPath:function(s,u){s._path.v=u},_bringToFront:function(s){Us(s._container)},_bringToBack:function(s){Bs(s._container)}},Vm=Ce.vml?fu:Ea,hu=jo.extend({_initContainer:function(){this._container=Vm("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Vm("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Ot(this._container),Tt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){jo.prototype._update.call(this);var s=this._bounds,u=s.getSize(),f=this._container;(!this._svgSize||!this._svgSize.equals(u))&&(this._svgSize=u,f.setAttribute("width",u.x),f.setAttribute("height",u.y)),Yt(f,s.min),f.setAttribute("viewBox",[s.min.x,s.min.y,u.x,u.y].join(" ")),this.fire("update")}},_initPath:function(s){var u=s._path=Vm("path");s.options.className&&Xe(u,s.options.className),s.options.interactive&&Xe(u,"leaflet-interactive"),this._updateStyle(s),this._layers[a(s)]=s},_addPath:function(s){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(s._path),s.addInteractiveTarget(s._path)},_removePath:function(s){Ot(s._path),s.removeInteractiveTarget(s._path),delete this._layers[a(s)]},_updatePath:function(s){s._project(),s._update()},_updateStyle:function(s){var u=s._path,f=s.options;u&&(f.stroke?(u.setAttribute("stroke",f.color),u.setAttribute("stroke-opacity",f.opacity),u.setAttribute("stroke-width",f.weight),u.setAttribute("stroke-linecap",f.lineCap),u.setAttribute("stroke-linejoin",f.lineJoin),f.dashArray?u.setAttribute("stroke-dasharray",f.dashArray):u.removeAttribute("stroke-dasharray"),f.dashOffset?u.setAttribute("stroke-dashoffset",f.dashOffset):u.removeAttribute("stroke-dashoffset")):u.setAttribute("stroke","none"),f.fill?(u.setAttribute("fill",f.fillColor||f.color),u.setAttribute("fill-opacity",f.fillOpacity),u.setAttribute("fill-rule",f.fillRule||"evenodd")):u.setAttribute("fill","none"))},_updatePoly:function(s,u){this._setPath(s,Aa(s._parts,u))},_updateCircle:function(s){var u=s._point,f=Math.max(Math.round(s._radius),1),v=Math.max(Math.round(s._radiusY),1)||f,x="a"+f+","+v+" 0 1,0 ",I=s._empty()?"M0 0":"M"+(u.x-f)+","+u.y+x+f*2+",0 "+x+-f*2+",0 ";this._setPath(s,I)},_setPath:function(s,u){s._path.setAttribute("d",u)},_bringToFront:function(s){Us(s._path)},_bringToBack:function(s){Bs(s._path)}});Ce.vml&&hu.include(hZ);function c$(s){return Ce.svg||Ce.vml?new hu(s):null}at.include({getRenderer:function(s){var u=s.options.renderer||this._getPaneRenderer(s.options.pane)||this.options.renderer||this._renderer;return u||(u=this._renderer=this._createRenderer()),this.hasLayer(u)||this.addLayer(u),u},_getPaneRenderer:function(s){if(s==="overlayPane"||s===void 0)return!1;var u=this._paneRenderers[s];return u===void 0&&(u=this._createRenderer({pane:s}),this._paneRenderers[s]=u),u},_createRenderer:function(s){return this.options.preferCanvas&&l$(s)||c$(s)}});var u$=Vs.extend({initialize:function(s,u){Vs.prototype.initialize.call(this,this._boundsToLatLngs(s),u)},setBounds:function(s){return this.setLatLngs(this._boundsToLatLngs(s))}
vendor: 6,253 bytes, line 2
2,_boundsToLatLngs:function(s){return s=_e(s),[s.getSouthWest(),s.getNorthWest(),s.getNorthEast(),s.getSouthEast()]}});function gZ(s,u){return new u$(s,u)}hu.create=Vm,hu.pointsToPath=Aa,Lo.geometryToLayer=Om,Lo.coordsToLatLng=kb,Lo.coordsToLatLngs=Lm,Lo.latLngToCoords=Sb,Lo.latLngsToCoords=jm,Lo.getFeature=Gs,Lo.asFeature=Um,at.mergeOptions({boxZoom:!0});var d$=ao.extend({initialize:function(s){this._map=s,this._container=s._container,this._pane=s._panes.overlayPane,this._resetStateTimeout=0,s.on("unload",this._destroy,this)},addHooks:function(){Ve(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Tt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Ot(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(s){if(!s.shiftKey||s.which!==1&&s.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),au(),ab(),this._startPoint=this._map.mouseEventToContainerPoint(s),Ve(document,{contextmenu:ja,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(s){this._moved||(this._moved=!0,this._box=ct("div","leaflet-zoom-box",this._container),Xe(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(s);var u=new Ze(this._point,this._startPoint),f=u.getSize();Yt(this._box,u.min),this._box.style.width=f.x+"px",this._box.style.height=f.y+"px"},_finish:function(){this._moved&&(Ot(this._box),Wt(this._container,"leaflet-crosshair")),su(),sb(),Tt(document,{contextmenu:ja,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(s){if(!(s.which!==1&&s.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(n(this._resetState,this),0);var u=new lt(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(u).fire("boxzoomend",{boxZoomBounds:u})}},_onKeyDown:function(s){s.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});at.addInitHook("addHandler","boxZoom",d$),at.mergeOptions({doubleClickZoom:!0});var p$=ao.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(s){var u=this._map,f=u.getZoom(),v=u.options.zoomDelta,x=s.originalEvent.shiftKey?f-v:f+v;u.options.doubleClickZoom==="center"?u.setZoom(x):u.setZoomAround(s.containerPoint,x)}});at.addInitHook("addHandler","doubleClickZoom",p$),at.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var m$=ao.extend({addHooks:function(){if(!this._draggable){var s=this._map;this._draggable=new Ci(s._mapPane,s._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),s.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),s.on("zoomend",this._onZoomEnd,this),s.whenReady(this._onZoomEnd,this))}Xe(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Wt(this._map._container,"leaflet-grab"),Wt(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var s=this._map;if(s._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var u=_e(this._map.options.maxBounds);this._offsetLimit=st(this._map.latLngToContainerPoint(u.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(u.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;s.fire("movestart").fire("dragstart"),s.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(s){if(this._map.options.inertia){var u=this._lastTime=+new Date,f=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(f),this._times.push(u),this._prunePositions(u)}this._map.fire("move",s).fire("drag",s)},_prunePositions:function(s){for(;this._positions.length>1&&s-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var s=this._map.getSize().divideBy(2),u=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=u.subtract(s).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(s,u){return s-(s-u)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var s=this._draggable._newPos.subtract(this._draggable._startPos),u=this._offsetLimit;s.x<u.min.x&&(s.x=this._viscousLimit(s.x,u.min.x)),s.y<u.min.y&&(s.y=this._viscousLimit(s.y,u.min.y)),s.x>u.max.x&&(s.x=this._viscousLimit(s.x,u.max.x)),s.y>u.max.y&&(s.y=this._viscousLimit(s.y,u.max.y)),this._draggable._newPos=this._draggable._startPos.add(s)}},_onPreDragWrap:function(){var s=this._worldWidth,u=Math.round(s/2),f=this._initialWorldOffset,v=this._draggable._newPos.x,x=(v-u+f)%s+u-f,I=(v+u+f)%s-u-f,R=Math.abs(x+f)<Math.abs(I+f)?x:I;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=R},_onDragEnd:function(s){var u=this._map,f=u.options,v=!f.inertia||s.noInertia||this._times.length<2;if(u.fire("dragend",s),v)u.fire("moveend");else{this._prunePositions(+new Date);var x=this._lastPos.subtract(this._positions[0]),I=(this._lastTime-this._times[0])/1e3,R=f.easeLinearity,B=x.multiplyBy(R/I),G=B.distanceTo([0,0]),J=Math.min(f.inertiaMaxSpeed,G),ye=B.multiplyBy(J/G),Ne=J/(f.inertiaDeceleration*R),tt=ye.multiplyBy(-Ne/2).round();!tt.x&&!tt.y?u.fire("moveend"):(tt=u._limitOffset(tt,u.options.maxBounds),Z(function(){u.panBy(tt,{duration:Ne,easeLinearity:R,noMoveStart:!0,animate:!0})}
2))}}});at.addInitHook("addHandler","dragging",m$),at.mergeOptions({keyboard:!0,keyboardPanDelta:80});var f$=ao.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(s){this._map=s,this._setPanDelta(s.options.keyboardPanDelta),this._setZoomDelta(s.options.zoomDelta)},addHooks:function(){var s=this._map._container;s.tabIndex<=0&&(s.tabIndex="0"),Ve(s,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),Tt(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var s=document.body,u=document.documentElement,f=s.scrollTop||u.scrollTop,v=s.scrollLeft||u.scrollLeft;this._map._container.focus(),window.scrollTo(v,f)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(s){var u=this._panKeys={},f=this.keyCodes,v,x;for(v=0,x=f.left.length;v<x;v++)u[f.left[v]]=[-1*s,0];for(v=0,x=f.right.length;v<x;v++)u[f.right[v]]=[s,0];for(v=0,x=f.down.length;v<x;v++)u[f.down[v]]=[0,s];for(v=0,x=f.up.length;v<x;v++)u[f.up[v]]=[0,-1*s]},_setZoomDelta:function(s){var u=this._zoomKeys={},f=this.keyCodes,v,x;for(v=0,x=f.zoomIn.length;v<x;v++)u[f.zoomIn[v]]=s;for(v=0,x=f.zoomOut.length;v<x;v++)u[f.zoomOut[v]]=-s},_addHooks:function(){Ve(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Tt(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(s){if(!(s.altKey||s.ctrlKey||s.metaKey)){var u=s.keyCode,f=this._map,v;if(u in this._panKeys){if(!f._panAnim||!f._panAnim._inProgress)if(v=this._panKeys[u],s.shiftKey&&(v=fe(v).multiplyBy(3)),f.options.maxBounds&&(v=f._limitOffset(fe(v),f.options.maxBounds)),f.options.worldCopyJump){var x=f.wrapLatLng(f.unproject(f.project(f.getCenter()).add(v)));f.panTo(x)}else f.panBy(v)}else if(u in this._zoomKeys)f.setZoom(f.getZoom()+(s.shiftKey?3:1)*this._zoomKeys[u]);else if(u===27&&f._popup&&f._popup.options.closeOnEscapeKey)f.closePopup();else return;ja(s)}}});at.addInitHook("addHandler","keyboard",f$),at.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var h$=ao.extend({addHooks:function(){Ve(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Tt(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(s){var u=j7(s),f=this._map.options.wheelDebounceTime;this._delta+=u,this._lastMousePos=this._map.mouseEventToContainerPoint(s),this._startTime||(this._startTime=+new Date);var v=Math.max(f-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(n(this._performZoom,this),v),ja(s)},_performZoom:function(){var s=this._map,u=s.getZoom(),f=this._map.options.zoomSnap||0;s._stop();var v=this._delta/(this._map.options.wheelPxPerZoomLevel*4),x=4*Math.log(2/(1+Math.exp(-Math.abs(v))))/Math.LN2,I=f?Math.ceil(x/f)*f:x,R=s._limitZoom(u+(this._delta>0?I:-I))-u;this._delta=0,this._startTime=null,R&&(s.options.scrollWheelZoom==="center"?s.setZoom(u+R):s.setZoomAround(this._lastMousePos,u+R))}});at.addInitHook("addHandler","scrollWheelZoom",h$);var vZ=600;at.mergeOptions({tapHold:Ce.touchNative&&Ce.safari&&Ce.mobile,tapTolerance:15});var g$=ao.extend({addHooks:function(){Ve(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Tt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(s){if(clearTimeout(this._holdTimeout),s.touches.length===1){var u=s.touches[0];this._startPos=this._newPos=new we(u.clientX,u.clientY),this._holdTimeout=setTimeout(n(function(){this._cancel(),this._isTapValid()&&(Ve(document,"touchend",gr),Ve(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",u))},this),vZ),Ve(document,"touchend touchcancel contextmenu",this._cancel,this),Ve(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function s(){Tt(document,"touchend",gr),Tt(document,"touchend touchcancel",s)},_cancel:function(){clearTimeout(this._holdTimeout),Tt(document,"touchend touchcancel contextmenu",this._cancel,this),Tt(document,"touchmove",this._onMove,this)},_onMove:function(s){var u=s.touches[0];this._newPos=new we(u.clientX,u.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(s,u){var f=new MouseEvent(s,{bubbles:!0,cancelable:!0,view:window,screenX:u.screenX,screenY:u.screenY,clientX:u.clientX,clientY:u.clientY});f._simulated=!0,u.target.dispatchEvent(f)}});at.addInitHook("addHandler","tapHold",g$),at.mergeOptions({touchZoom:Ce.touch,bounceAtZoomLimits:!0});var v$=ao.extend({addHooks:function(){Xe(this._map._container,"leaflet-touch-zoom"),Ve(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Wt(this._map._container,"leaflet-touch-zoom"),Tt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(s){var u=this._map;if(!(!s.touches||s.touches.length!==2||u._animatingZoom||this._zooming)){var f=u.mouseEventToContainerPoint(s.touches[0]),v=u.mouseEventToContainerPoint(s.touches[1]);this._centerPoint=u.getSize()._divideBy(2),this._startLatLng=u.containerPointToLatLng(this._centerPoint),u.o
2ptions.touchZoom!=="center"&&(this._pinchStartLatLng=u.containerPointToLatLng(f.add(v)._divideBy(2))),this._startDist=f.distanceTo(v),this._startZoom=u.getZoom(),this._moved=!1,this._zooming=!0,u._stop(),Ve(document,"touchmove",this._onTouchMove,this),Ve(document,"touchend touchcancel",this._onTouchEnd,this),gr(s)}},_onTouchMove:function(s){if(!(!s.touches||s.touches.length!==2||!this._zooming)){var u=this._map,f=u.mouseEventToContainerPoint(s.touches[0]),v=u.mouseEventToContainerPoint(s.touches[1]),x=f.distanceTo(v)/this._startDist;if(this._zoom=u.getScaleZoom(x,this._startZoom),!u.options.bounceAtZoomLimits&&(this._zoom<u.getMinZoom()&&x<1||this._zoom>u.getMaxZoom()&&x>1)&&(this._zoom=u._limitZoom(this._zoom)),u.options.touchZoom==="center"){if(this._center=this._startLatLng,x===1)return}else{var I=f._add(v)._divideBy(2)._subtract(this._centerPoint);if(x===1&&I.x===0&&I.y===0)return;this._center=u.unproject(u.project(this._pinchStartLatLng,this._zoom).subtract(I),this._zoom)}this._moved||(u._moveStart(!0,!1),this._moved=!0),W(this._animRequest);var R=n(u._move,u,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=Z(R,this,!0),gr(s)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,W(this._animRequest),Tt(document,"touchmove",this._onTouchMove,this),Tt(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});at.addInitHook("addHandler","touchZoom",v$),at.BoxZoom=d$,at.DoubleClickZoom=p$,at.Drag=m$,at.Keyboard=f$,at.ScrollWheelZoom=h$,at.TapHold=g$,at.TouchZoom=v$,e.Bounds=Ze,e.Browser=Ce,e.CRS=nt,e.Canvas=s$,e.Circle=_b,e.CircleMarker=Dm,e.Class=ge,e.Control=Un,e.DivIcon=o$,e.DivOverlay=so,e.DomEvent=RF,e.DomUtil=MF,e.Draggable=Ci,e.Evented=We,e.FeatureGroup=Do,e.GeoJSON=Lo,e.GridLayer=mu,e.Handler=ao,e.Icon=Zs,e.ImageOverlay=Bm,e.LatLng=ve,e.LatLngBounds=lt,e.Layer=Bn,e.LayerGroup=Fs,e.LineUtil=WF,e.Map=at,e.Marker=Rm,e.Mixin=FF,e.Path=zi,e.Point=we,e.PolyUtil=ZF,e.Polygon=Vs,e.Polyline=Oo,e.Popup=Fm,e.PosAnimation=U7,e.Projection=JF,e.Rectangle=u$,e.Renderer=jo,e.SVG=hu,e.SVGOverlay=n$,e.TileLayer=qs,e.Tooltip=Zm,e.Transformation=hr,e.Util=ke,e.VideoOverlay=r$,e.bind=n,e.bounds=st,e.canvas=l$,e.circle=nZ,e.circleMarker=rZ,e.control=uu,e.divIcon=pZ,e.extend=r,e.featureGroup=QF,e.geoJSON=t$,e.geoJson=aZ,e.gridLayer=mZ,e.icon=eZ,e.imageOverlay=sZ,e.latLng=de,e.latLngBounds=_e,e.layerGroup=YF,e.map=DF,e.marker=tZ,e.point=fe,e.polygon=iZ,e.polyline=oZ,e.popup=uZ,e.rectangle=gZ,e.setOptions=g,e.stamp=a,e.svg=c$,e.svgOverlay=cZ,e.tileLayer=i$,e.tooltip=dZ,e.transformation=Ir,e.version=t,e.videoOverlay=lZ;var yZ=window.L;e.noConflict=function(){return window.L=yZ,this},window.L=e}))});var dT=Ib(Mb=>{"use strict";var uT=IZ();Mb.createRoot=uT.createRoot,Mb.hydrateRoot=uT.hydrateRoot;var qce});var qB=Ib((yNe,GB)=>{"use strict";function Yle(e,t){if(typeof e!="function")throw new TypeError(`Expected the first argument to be a \`function\`, got \`${typeof e}\`.`);let r,o=0;return function(...i){clearTimeout(r);let a=Date.now(),l=a-o,c=t-l;c<=0?(o=a,e.apply(this,i)):r=setTimeout(()=>{o=Date.now(),e.apply(this,i)},c)}}GB.exports=Yle});var Ab=V(rT());var nT="/assets/marker-icon-2V3QKKVC.png";var oT="/assets/marker-icon-2x-SP63CLEO.png";var iT="/assets/marker-shadow-MEXDWUU7.png";delete Ab.Icon.Default.prototype._getIconUrl;Ab.Icon.Default.mergeOptions({iconRetinaUrl:oT,iconUrl:nT,shadowUrl:iT});var lT=V(Se());var yu=null;function aT(e){yu=e}function sT(e){try{let t=new URL(e,window.location.origin);return t.origin!==window.location.origin?!1:t.pathname.startsWith("/api/taskade/")||t.pathname.includes("/web-api/v1/gateways/")}catch{return!1}}function EZ(){if(typeof window>"u")return;let e=window;if(e.__taskadeGatewayAuthInstalled__===!0)return;e.__taskadeGatewayAuthInstalled__=!0;let t=window.fetch.bind(window);window.fetch=function(i,a){let l=typeof i=="string"?i:i instanceof URL?i.href:i.url;if(yu!=null&&sT(l)){let c=new Headers(a?.headers??(i instanceof Request?i.headers:void 0));return c.has("Authorization")||c.set("Authorization",`Bearer ${yu}`),t(i,{...a,headers:c})}return t(i,a)};let r=window.XMLHttpRequest.prototype.open,o=window.XMLHttpRequest.prototype.send;window.XMLHttpRequest.prototype.open=function(i,a,l,c,d){return this.__taskadeGatewayUrl=typeof a=="str
2ing"?a:a.href,r.call(this,i,a,l??!0,c,d)},window.XMLHttpRequest.prototype.send=function(i){let a=this.__taskadeGatewayUrl;if(yu!=null&&a!=null&&sT(a))try{this.setRequestHeader("Authorization",`Bearer ${yu}`)}catch{}return o.call(this,i)}}EZ();function cT(){let t=qm().user?.id_token??null;return lT.useEffect(()=>(aT(t),()=>aT(null)),[t]),null}var Yc=V(Se()),aF=V(dT());var za=V(Se());var Ym=V(le());function pT({children:e}){let t=window.location.origin;return(0,Ym.jsxs)(_$,{authority:`${t}/_genesis/auth`,client_id:"default",redirect_uri:`${t}/`,scope:"openid profile email",children:[(0,Ym.jsx)(cT,{}),e]})}var yT=V(Se());var Fn=V(Se()),AZ=(0,Fn.createContext)(null),Nb={didCatch:!1,error:null},bu=class extends Fn.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=Nb}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){let{error:t}=this.state;if(t!==null){for(var r,o,n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];(r=(o=this.props).onReset)===null||r===void 0||r.call(o,{args:i,reason:"imperative-api"}),this.setState(Nb)}}componentDidCatch(t,r){var o,n;(o=(n=this.props).onError)===null||o===void 0||o.call(n,t,r)}componentDidUpdate(t,r){let{didCatch:o}=this.state,{resetKeys:n}=this.props;if(o&&r.error!==null&&MZ(t.resetKeys,n)){var i,a;(i=(a=this.props).onReset)===null||i===void 0||i.call(a,{next:n,prev:t.resetKeys,reason:"keys"}),this.setState(Nb)}}render(){let{children:t,fallbackRender:r,FallbackComponent:o,fallback:n}=this.props,{didCatch:i,error:a}=this.state,l=t;if(i){let c={error:a,resetErrorBoundary:this.resetErrorBoundary};if(typeof r=="function")l=r(c);else if(o)l=(0,Fn.createElement)(o,c);else if(n!==void 0)l=n;else throw a}return(0,Fn.createElement)(AZ.Provider,{value:{didCatch:i,error:a,resetErrorBoundary:this.resetErrorBoundary}},l)}};function MZ(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((r,o)=>!Object.is(r,t[o]))}var zt=V(le());function Rb(){return typeof window>"u"?null:window.__TASKADE_APP_LIFECYCLE_LOGGER__??null}var mT=new WeakMap,fT=null,Qm=null;function hT(){let e=typeof globalThis.crypto>"u"?void 0:globalThis.crypto;return typeof e?.randomUUID=="function"?e.randomUUID().replace(/-/g,""):`${Date.now().toString(36)}${Math.random().toString(36).slice(2,12)}`}function Db(e){if(typeof e=="object"&&e!=null){let r=mT.get(e);if(r!=null)return r;let o=hT();return mT.set(e,o),o}let t=String(e);return fT===t&&Qm!=null||(fT=t,Qm=hT()),Qm}var NZ="/api/taskade/telemetry/errors",RZ=5,gT=0,vT=new Set;function DZ(e){try{fetch(NZ,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e),keepalive:!0}).catch(()=>{})}catch{}}function OZ(e,t,r,o){if(typeof window>"u"||typeof fetch!="function")return;let n=(r instanceof Error?r.message:String(r))||"Unknown error",i=r instanceof Error?r.stack:void 0,a=`${e}|${n}|${i?.split(`
3`)[1]??""}`;vT.has(a)||gT>=RZ||(vT.add(a),gT+=1,DZ({errorId:t,code:e,message:n.slice(0,4e3),stack:i?.slice(0,2e4),componentStack:o?.slice(0,2e4)??void 0,path:window.location.pathname.slice(0,1e3),userAgent:window.navigator?.userAgent?.slice(0,512)}))}function bT(e,t,r){let o=Db(t),n=Rb();return n!=null?(n.log({level:"error",message:"Runtime Error",data:{code:e,message:t instanceof Error?t.message:String(t),stack:[t instanceof Error?t.stack:void 0,r].filter(Boolean).join(`
4`)}}),o):(OZ(e,o,t,r),o)}function LZ({error:e,resetErrorBoundary:t}){let r=Rb()!=null,o=Db(e);return(0,zt.jsxs)("div",{style:{padding:"2rem",fontFamily:"system-ui, sans-serif",maxWidth:600,margin:"0 auto"},children:[(0,zt.jsx)("h2",{style:{margin:"0 0 0.5rem",fontSize:"1.25rem"},children:"Something went wrong"}),(0,zt.jsx)("p",{style:{color:"#999",margin:"0 0 1rem",fontSize:"0.95rem"},children:"The app encountered an error. You can try again, or refresh the page."}),r&&(0,zt.jsx)("pre",{style:{background:"#f5f5f5",padding:"1rem",borderRadius:"8px",overflow:"auto",fontSize:"0.8rem",color:"#dc2626",margin:0,whiteSpace:"pre-wrap",wordBreak:"break-word"},children:String(e)}),!r&&(0,zt.jsxs)("p",{style:{color:"#999",margin:0,fontSize:"0.8rem"},children:["Error ID: ",(0,zt.jsx)("code",{children:o})]}),(0,zt.jsx)("button",{type:"button",onClick:t,style:{marginTop:"1rem",padding:"0.5rem 1rem",background:"#1f2937",color:"white",border:"none",borderRadius:"6px",cursor:"pointer",fontSize:"0.9rem"},children:"Try again"})]})}function jZ({error:e,resetErrorBoundary:t}){let r=Rb()!=null,o=e instanceof Error?e.message:String(e),n=/loading( css)? chunk|dynamically imported module|failed to fetch dynamically/i.test(o);return(0,zt.jsxs)("div",{role:"alert",style:{padding:"1.5rem",margin:"1rem",fontFamily:"system-ui, sans-serif",border:"1px solid #e5e7eb",borderRadius:"12px",background:"#fafafa",maxWidth:520},children:[(0,zt.jsx)("h3",{style:{margin:"0 0 0.375rem",fontSize:"1rem",color:"#111827"},children:"This section hit an error"}),(0,zt.jsxs)("p",{style:{color:"#6b7280",margin:"0 0 1rem",fontSize:"0.875rem"},children:["The rest of the app still works."," ",n?"Reload the page to re
4cover this section.":"You can retry just this section."]}),r&&(0,zt.jsx)("pre",{style:{background:"#f5f5f5",padding:"0.75rem",borderRadius:"8px",overflow:"auto",fontSize:"0.75rem",color:"#dc2626",margin:"0 0 1rem",whiteSpace:"pre-wrap",wordBreak:"break-word"},children:String(e)}),!r&&(0,zt.jsxs)("p",{style:{color:"#9ca3af",margin:"0 0 1rem",fontSize:"0.75rem"},children:["Error ID: ",(0,zt.jsx)("code",{children:Db(e)})]}),(0,zt.jsx)("button",{type:"button",onClick:n?()=>window.location.reload():t,style:{padding:"0.4rem 0.9rem",background:"#1f2937",color:"white",border:"none",borderRadius:"6px",cursor:"pointer",fontSize:"0.85rem"},children:n?"Reload page":"Retry section"})]})}function UZ(){return(0,zt.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",padding:"3rem 1rem",color:"#9ca3af",fontFamily:"system-ui, sans-serif",fontSize:"0.875rem"},children:"Loading\u2026"})}function xT({children:e,name:t,resetKeys:r}){return(0,zt.jsx)(bu,{FallbackComponent:jZ,resetKeys:r,onError:(o,n)=>{console.error(`[Genesis] Section error${t?` (${t})`:""}:`,o,n),bT("error.boundary",o,n.componentStack)},children:(0,zt.jsx)(yT.Suspense,{fallback:(0,zt.jsx)(UZ,{}),children:e})})}function BZ(e){let{pathname:t}=$$();return(0,zt.jsx)(xT,{...e,resetKeys:[t,...e.resetKeys??[]]})}function xu(e){return S$()?(0,zt.jsx)(BZ,{...e}):(0,zt.jsx)(xT,{...e})}function wT({children:e}){return(0,zt.jsx)(bu,{FallbackComponent:LZ,onError:(t,r)=>{console.error("[Genesis] Uncaught render error:",t,r),bT("error.boundary",t,r.componentStack)},onReset:()=>{console.info("[Genesis] User reset error boundary")},children:e})}var ld=V(le(),1),qn=V(Se(),1);var _T=V(Se(),1),Qs=(0,_T.createContext)({});var kT=V(Se(),1);function el(e){let t=(0,kT.useRef)(null);return t.current===null&&(t.current=e()),t.current}var ef=V(Se(),1);var ST=typeof window<"u";var tf=ST?ef.useLayoutEffect:ef.useEffect;var G1=V(le(),1),N8=V(Se(),1),ad=V(Se(),1);var $T=V(Se(),1),Mi=(0,$T.createContext)(null);var A8=V(le(),1);function Za(e,t){e.indexOf(t)===-1&&e.push(t)}function Ni(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}var ir=(e,t,r)=>r>t?t:r<e?e:r;var Fo=()=>{},Sn=()=>{};var Cr={};var wu=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function _u(e){return typeof e=="object"&&e!==null}var ku=e=>/^0[^.\s]+$/u.test(e);function Su(e){let t;return()=>(t===void 0&&(t=e()),t)}var Lt=e=>e;var FZ=(e,t)=>r=>t(e(r)),Zn=(...e)=>e.reduce(FZ);var lo=(e,t,r)=>{let o=t-e;return o===0?1:(r-e)/o};var Zo=class{constructor(){this.subscriptions=[]}add(t){return Za(this.subscriptions,t),()=>Ni(this.subscriptions,t)}notify(t,r,o){let n=this.subscriptions.length;if(n)if(n===1)this.subscriptions[0](t,r,o);else for(let i=0;i<n;i++){let a=this.subscriptions[i];a&&a(t,r,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};var Jt=e=>e*1e3,mr=e=>e/1e3;function $u(e,t){return t?e*(1e3/t):0}var TT=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,ZZ=1e-7,VZ=12;function GZ(e,t,r,o,n){let i,a,l=0;do a=t+(r-t)/2,i=TT(a,o,n)-e,i>0?r=a:t=a;while(Math.abs(i)>ZZ&&++l<VZ);return a}function Ri(e,t,r,o){if(e===t&&r===o)return Lt;let n=i=>GZ(i,0,1,e,r);return i=>i===0||i===1?i:TT(n(i),t,o)}var rf=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;var nf=e=>t=>1-e(1-t);var of=Ri(.33,1.53,.69,.99),tl=nf(of),Tu=rf(tl);var Iu=e=>e>=1?1:(e*=2)<1?.5*tl(e):.5*(2-Math.pow(2,-10*(e-1)));var Pu=e=>1-Math.sin(Math.acos(e)),Cu=nf(Pu),zu=rf(Pu);var Ob=Ri(.42,0,1,1),Lb=Ri(0,0,.58,1),Eu=Ri(.42,0,.58,1);var jb=e=>Array.isArray(e)&&typeof e[0]!="number";var Au=e=>Array.isArray(e)&&typeof e[0]=="number";var IT={linear:Lt,easeIn:Ob,easeInOut:Eu,easeOut:Lb,circIn:Pu,circInOut:zu,circOut:Cu,backIn:tl,backInOut:Tu,backOut:of,anticipate:Iu},qZ=e=>typeof e=="string",af=e=>{if(Au(e)){Sn(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,r,o,n]=e;return Ri(t,r,o,n)}else if(qZ(e))return Sn(IT[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),IT[e];return e};var Mu=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];var rn={value:null,addProjectionMetrics:null};function PT(e,t){let r=new Set,o=new Set,n=!1,i=!1,a=new WeakSet,l={delta:0,timestamp:0,isProcessing:!1},c=0;function d(m){a.has(m)&&(p.schedule(m),e()),c++,m(l)}let p={schedule:(m,h=!1,g=!1)=>{let $=g&&n?r:o;return h&&a.add(m),$.add(m),m},cancel:m=>{o.delete(m),a.delete(m)},process:m=>{if(l=m,n){i=!0;return}n=!0;let h=r;r=o,o=h,r.forEach(d),t&&rn.value&&rn.value.frameloop[t].push(c),c=0,r.clear(),n=!1,i&&(i=!1,p.process(m))}};return p}var HZ=40;function sf(e,t){let r=!1,o=!0,n={delta:0,timestamp:0,isProcessing:!1},i=()=>r=!0,a=Mu.reduce((k,M)=>(k[M]=PT(i,t?M:void 0),k),{}),{setup:l,read:c,resolveKeyframes:d,preUpdate:p,update:m,preRender:h,render:g,postRender:w}=a,$=()=>{let k=Cr.useManualTiming,M=k?n.timestamp:performance.now();r=!1,k||(n.delta=o?1e3/60:Math.max(Math.min(M-n.timestamp,HZ),1)),n.timestamp=M,n.isProcessing=!0,l.process(n),c.process(n),d.process(n),p.process(n),m.process(n),h.process(n),g.process(n),w.process(n),n.isProcessing=!1,r&&t&&(o=!1,e($))},T=()=>{r=!0,o=!0,n.isProcessing||e($)}
4;return{schedule:Mu.reduce((k,M)=>{let E=a[M];return k[M]=(D,F=!1,H=!1)=>(r||T(),E.schedule(D,F,H)),k},{}),cancel:k=>{for(let M=0;M<Mu.length;M++)a[Mu[M]].cancel(k)},state:n,steps:a}}var{schedule:Ge,cancel:Vr,state:Gt,steps:Nu}=sf(typeof requestAnimationFrame<"u"?requestAnimationFrame:Lt,!0);var lf;function WZ(){lf=void 0}var jt={now:()=>(lf===void 0&&jt.set(Gt.isProcessing||Cr.useManualTiming?Gt.timestamp:performance.now()),lf),set:e=>{lf=e,queueMicrotask(WZ)}};var co={layout:0,mainThread:0,waapi:0};var CT=e=>t=>typeof t=="string"&&t.startsWith(e),cf=CT("--"),JZ=CT("var(--"),rl=e=>JZ(e)?KZ.test(e.split("/*")[0].trim()):!1,KZ=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Ub(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}var uo={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Vo={...uo,transform:e=>ir(0,1,e)},Ru={...uo,default:1};var Di=e=>Math.round(e*1e5)/1e5;var nl=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function zT(e){return e==null}var ET=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var ol=(e,t)=>r=>!!(typeof r=="string"&&ET.test(r)&&r.startsWith(e)||t&&!zT(r)&&Object.prototype.hasOwnProperty.call(r,t)),uf=(e,t,r)=>o=>{if(typeof o!="string")return o;let[n,i,a,l]=o.match(nl);return{[e]:parseFloat(n),[t]:parseFloat(i),[r]:parseFloat(a),alpha:l!==void 0?parseFloat(l):1}};var XZ=e=>ir(0,255,e),Bb={...uo,transform:e=>Math.round(XZ(e))},po={test:ol("rgb","red"),parse:uf("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:o=1})=>"rgba("+Bb.transform(e)+", "+Bb.transform(t)+", "+Bb.transform(r)+", "+Di(Vo.transform(o))+")"};function YZ(e){let t="",r="",o="",n="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),o=e.substring(5,7),n=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),o=e.substring(3,4),n=e.substring(4,5),t+=t,r+=r,o+=o,n+=n),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(o,16),alpha:n?parseInt(n,16)/255:1}}var Du={test:ol("#"),parse:YZ,transform:po.transform};var Ou=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Vn=Ou("deg"),wr=Ou("%"),he=Ou("px"),Fb=Ou("vh"),Zb=Ou("vw"),df={...wr,parse:e=>wr.parse(e)/100,transform:e=>wr.transform(e*100)};var Oi={test:ol("hsl","hue"),parse:uf("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:o=1})=>"hsla("+Math.round(e)+", "+wr.transform(Di(t))+", "+wr.transform(Di(r))+", "+Di(Vo.transform(o))+")"};var Et={test:e=>po.test(e)||Du.test(e)||Oi.test(e),parse:e=>po.test(e)?po.parse(e):Oi.test(e)?Oi.parse(e):Du.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?po.transform(e):Oi.transform(e),getAnimatableNone:e=>{let t=Et.parse(e);return t.alpha=0,Et.transform(t)}};var AT=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function QZ(e){return isNaN(e)&&typeof e=="string"&&(e.match(nl)?.length||0)+(e.match(AT)?.length||0)>0}var NT="number",RT="color",eV="var",tV="var(",MT="${}",rV=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Li(e){let t=e.toString(),r=[],o={color:[],number:[],var:[]},n=[],i=0,l=t.replace(rV,c=>(Et.test(c)?(o.color.push(i),n.push(RT),r.push(Et.parse(c))):c.startsWith(tV)?(o.var.push(i),n.push(eV),r.push(c)):(o.number.push(i),n.push(NT),r.push(parseFloat(c))),++i,MT)).split(MT);return{values:r,split:l,indexes:o,types:n}}function nV(e){return Li(e).values}function DT({split:e,types:t}){let r=e.length;return o=>{let n="";for(let i=0;i<r;i++)if(n+=e[i],o[i]!==void 0){let a=t[i];a===NT?n+=Di(o[i]):a===RT?n+=Et.transform(o[i]):n+=o[i]}return n}}function oV(e){return DT(Li(e))}var iV=e=>typeof e=="number"?0:Et.test(e)?Et.getAnimatableNone(e):e,aV=(e,t)=>typeof e=="number"?t?.trim().endsWith("/")?e:0:iV(e);function sV(e){let t=Li(e);return DT(t)(t.values.map((o,n)=>aV(o,t.split[n])))}var ar={test:QZ,parse:nV,createTransformer:oV,getAnimatableNone:sV};function Vb(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function OT({hue:e,saturation:t,lightness:r,alpha:o}){e/=360,t/=100,r/=100;let n=0,i=0,a=0;if(!t)n=i=a=r;else{let l=r<.5?r*(1+t):r+t-r*t,c=2*r-l;n=Vb(c,l,e+1/3),i=Vb(c,l,e),a=Vb(c,l,e-1/3)}return{red:Math.round(n*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:o}}function il(e,t){return r=>r>0?t:e}var rt=(e,t,r)=>e+(t-e)*r;var Gb=(e,t,r)=>{let o=e*e,n=r*(t*t-o)+o;return n<0?0:Math.sqrt(n)},lV=[Du,po,Oi],cV=e=>lV.find(t=>t.test(e));function LT(e){let t=cV(e);if(Fo(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let r=t.parse(e);return t===Oi&&(r=OT(r)),r}var qb=(e,t)=>{let r=LT(e),o=LT(t);if(!r||!o)return il(e,t);let n={...r};return i=>(n.red=Gb(r.red,o.red,i),n.green=Gb(r.green,o.green,i),n.blue=Gb(r.blue,o.blue,i),n.alpha=rt(r.alpha,o.alpha,i),po.transform(n))};var pf=new Set(["none","hidden"]);function jT(e,t){return pf.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function uV(e,t){return r=>rt(e,t,r)}function mf(e){return typeof e=="number"?uV:typeof e=="string"?rl(e)?il:Et.test(e)?qb:mV:Array.isArray(e)?UT:typeof e=="object"?Et.test(e)?qb:dV:il}function UT(e,t){let r=[...e],o=r.length,n=e.map((i,a)=>mf(i)(i,t[a]));return i=>{for(let a=0;a<o;a++)r[a]=n[a](i);return r}}function dV(e,t){let r={...e,...t},o={};for(let n in r)e[n]!==void 0&&t[n]!==void 0&&(o[n]=mf(e[n])(e[n],t[n]));return n=>{for(let i in o)r[i]=o[i](n);return r}}function pV(e,t){let r=[],o={color:0,var:0,number:0};for(let n=0;n<t.values.length;n++){let i=t.types[n],a=e.indexes[i][o[i]],l=e.values[a]??0;r[n]=l,o[i]++}return r}var mV=(e,t)=>{let r=ar.createTransformer(t),o=Li(e),n=Li(t);return o.indexes.var.length===n.indexes.var.length&&o.indexes.color.length===n.indexes.color.length&&o.indexes.number.length>=n.indexes.number.length?pf.has(e)&&!n.values.length||pf.has(t)&&!o.values.length?jT(e,t):
4Zn(UT(pV(o,n),n.values),r):(Fo(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),il(e,t))};function ff(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?rt(e,t,r):mf(e)(e,t)}var BT=e=>{let t=({timestamp:r})=>e(r);return{start:(r=!0)=>Ge.update(t,r),stop:()=>Vr(t),now:()=>Gt.isProcessing?Gt.timestamp:jt.now()}};var hf=(e,t,r=10)=>{let o="",n=Math.max(Math.round(t/r),2);for(let i=0;i<n;i++)o+=Math.round(e(i/(n-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`};function al(e){let t=0,r=50,o=e.next(t);for(;!o.done&&t<2e4;)t+=r,o=e.next(t);return t>=2e4?1/0:t}function FT(e,t=100,r){let o=r({...e,keyframes:[0,t]}),n=Math.min(al(o),2e4);return{type:"keyframes",ease:i=>o.next(n*i).value/t,duration:mr(n)}}var Ut={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Jb(e,t){return e*Math.sqrt(1-t*t)}var fV=12;function hV(e,t,r){let o=r;for(let n=1;n<fV;n++)o=o-e(o)/t(o);return o}var Wb=.001;function gV({duration:e=Ut.duration,bounce:t=Ut.bounce,velocity:r=Ut.velocity,mass:o=Ut.mass}){let n,i;Fo(e<=Jt(Ut.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-t;a=ir(Ut.minDamping,Ut.maxDamping,a),e=ir(Ut.minDuration,Ut.maxDuration,mr(e)),a<1?(n=d=>{let p=d*a,m=p*e,h=p-r,g=Jb(d,a),w=Math.exp(-m);return Wb-h/g*w},i=d=>{let m=d*a*e,h=m*r+r,g=Math.pow(a,2)*Math.pow(d,2)*e,w=Math.exp(-m),$=Jb(Math.pow(d,2),a);return(-n(d)+Wb>0?-1:1)*((h-g)*w)/$}):(n=d=>{let p=Math.exp(-d*e),m=(d-r)*e+1;return-Wb+p*m},i=d=>{let p=Math.exp(-d*e),m=(r-d)*(e*e);return p*m});let l=5/e,c=hV(n,i,l);if(e=Jt(e),isNaN(c))return{stiffness:Ut.stiffness,damping:Ut.damping,duration:e};{let d=Math.pow(c,2)*o;return{stiffness:d,damping:a*2*Math.sqrt(o*d),duration:e}}}var vV=["duration","bounce"],yV=["stiffness","damping","mass"];function ZT(e,t){return t.some(r=>e[r]!==void 0)}function bV(e){let t={velocity:Ut.velocity,stiffness:Ut.stiffness,damping:Ut.damping,mass:Ut.mass,isResolvedFromDuration:!1,...e};if(!ZT(e,yV)&&ZT(e,vV))if(t.velocity=0,e.visualDuration){let r=e.visualDuration,o=2*Math.PI/(r*1.2),n=o*o,i=2*ir(.05,1,1-(e.bounce||0))*Math.sqrt(n);t={...t,mass:Ut.mass,stiffness:n,damping:i}}else{let r=gV({...e,velocity:0});t={...t,...r,mass:Ut.mass},t.isResolvedFromDuration=!0}return t}function sl(e=Ut.visualDuration,t=Ut.bounce){let r=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:o,restDelta:n}=r,i=r.keyframes[0],a=r.keyframes[r.keyframes.length-1],l={done:!1,value:i},{stiffness:c,damping:d,mass:p,duration:m,velocity:h,isResolvedFromDuration:g}=bV({...r,velocity:-mr(r.velocity||0)}),w=h||0,$=d/(2*Math.sqrt(c*p)),T=a-i,z=mr(Math.sqrt(c/p)),P=Math.abs(T)<5;o||(o=P?Ut.restSpeed.granular:Ut.restSpeed.default),n||(n=P?Ut.restDelta.granular:Ut.restDelta.default);let k,M,E,D,F,H;if($<1)E=Jb(z,$),D=(w+$*z*T)/E,k=W=>{let ke=Math.exp(-$*z*W);return a-ke*(D*Math.sin(E*W)+T*Math.cos(E*W))},F=$*z*D+T*E,H=$*z*T-D*E,M=W=>Math.exp(-$*z*W)*(F*Math.sin(E*W)+H*Math.cos(E*W));else if($===1){k=ke=>a-Math.exp(-z*ke)*(T+(w+z*T)*ke);let W=w+z*T;M=ke=>Math.exp(-z*ke)*(z*W*ke-w)}else{let W=z*Math.sqrt($*$-1);k=Ie=>{let We=Math.exp(-$*z*Ie),we=Math.min(W*Ie,300);return a-We*((w+$*z*T)*Math.sinh(we)+W*T*Math.cosh(we))/W};let ke=(w+$*z*T)/W,ge=$*z*ke-T*W,xt=$*z*T-ke*W;M=Ie=>{let We=Math.exp(-$*z*Ie),we=Math.min(W*Ie,300);return We*(ge*Math.sinh(we)+xt*Math.cosh(we))}}let Z={calculatedDuration:g&&m||null,velocity:W=>Jt(M(W)),next:W=>{if(!g&&$<1){let ge=Math.exp(-$*z*W),xt=Math.sin(E*W),Ie=Math.cos(E*W),We=a-ge*(D*xt+T*Ie),we=Jt(ge*(F*xt+H*Ie));return l.done=Math.abs(we)<=o&&Math.abs(a-We)<=n,l.value=l.done?a:We,l}let ke=k(W);if(g)l.done=W>=m;else{let ge=Jt(M(W));l.done=Math.abs(ge)<=o&&Math.abs(a-ke)<=n}return l.value=l.done?a:ke,l},toString:()=>{let W=Math.min(al(Z),2e4),ke=hf(ge=>Z.next(W*ge).value,W,30);return W+"ms "+ke},toTransition:()=>{}};return Z}sl.applyToOptions=e=>{let t=FT(e,100,sl);return e.ease=t.ease,e.duration=Jt(t.duration),e.type="keyframes",e};var xV=5;function gf(e,t,r){let o=Math.max(t-xV,0);return $u(r-e(o),t-o)}function Lu({keyframes:e,velocity:t=0,power:r=.8,timeConstant:o=325,bounceDamping:n=10,bounceStiffness:i=500,modifyTarget:a,min:l,max:c,restDelta:d=.5,restSpeed:p}){let m=e[0],h={done:!1,value:m},g=H=>l!==void 0&&H<l||c!==void 0&&H>c,w=H=>l===void 0?c:c===void 0||Math.abs(l-H)<Math.abs(c-H)?l:c,$=r*t,T=m+$,z=a===void 0?T:a(T);z!==T&&($=z-m);let P=H=>-$*Math.exp(-H/o),k=H=>
4z+P(H),M=H=>{let Z=P(H),W=k(H);h.done=Math.abs(Z)<=d,h.value=h.done?z:W},E,D,F=H=>{g(h.value)&&(E=H,D=sl({keyframes:[h.value,w(h.value)],velocity:gf(k,H,h.value),damping:n,stiffness:i,restDelta:d,restSpeed:p}))};return F(0),{calculatedDuration:null,next:H=>{let Z=!1;return!D&&E===void 0&&(Z=!0,M(H),F(H)),E!==void 0&&H>=E?D.next(H-E):(!Z&&M(H),h)}}}function wV(e,t,r){let o=[],n=r||Cr.mix||ff,i=e.length-1;for(let a=0;a<i;a++){let l=n(e[a],e[a+1]);if(t){let c=Array.isArray(t)?t[a]||Lt:t;l=Zn(c,l)}o.push(l)}return o}function VT(e,t,{clamp:r=!0,ease:o,mixer:n}={}){let i=e.length;if(Sn(i===t.length,"Both input and output ranges must be the same length","range-length"),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];let a=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());let l=wV(t,o,n),c=l.length,d=p=>{if(a&&p<e[0])return t[0];let m=0;if(c>1)for(;m<e.length-2&&!(p<e[m+1]);m++);let h=lo(e[m],e[m+1],p);return l[m](h)};return r?p=>d(ir(e[0],e[i-1],p)):d}function GT(e,t){let r=e[e.length-1];for(let o=1;o<=t;o++){let n=lo(0,t,o);e.push(rt(r,1,n))}}function qT(e){let t=[0];return GT(t,e.length-1),t}function HT(e,t){return e.map(r=>r*t)}function _V(e,t){return e.map(()=>t||Eu).splice(0,e.length-1)}function Va({duration:e=300,keyframes:t,times:r,ease:o="easeInOut"}){let n=jb(o)?o.map(af):af(o),i={done:!1,value:t[0]},a=HT(r&&r.length===t.length?r:qT(t),e),l=VT(a,t,{ease:Array.isArray(n)?n:_V(t,n)});return{calculatedDuration:e,next:c=>(i.value=l(c),i.done=c>=e,i)}}var kV=e=>e!==null;function ji(e,{repeat:t,repeatType:r="loop"},o,n=1){let i=e.filter(kV),l=n<0||t&&r!=="loop"&&t%2===1?0:i.length-1;return!l||o===void 0?i[l]:o}var SV={decay:Lu,inertia:Lu,tween:Va,keyframes:Va,spring:sl};function vf(e){typeof e.type=="string"&&(e.type=SV[e.type])}var Ui=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,r){return this.finished.then(t,r)}};var $V=e=>e/100,Go=class extends Ui{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:r}=this.options;r&&r.updatedAt!==jt.now()&&this.tick(jt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},co.mainThread++,this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){let{options:t}=this;vf(t);let{type:r=Va,repeat:o=0,repeatDelay:n=0,repeatType:i,velocity:a=0}=t,{keyframes:l}=t,c=r||Va;c!==Va&&typeof l[0]!="number"&&(this.mixKeyframes=Zn($V,ff(l[0],l[1])),l=[0,100]);let d=c({...t,keyframes:l});i==="mirror"&&(this.mirroredGenerator=c({...t,keyframes:[...l].reverse(),velocity:-a})),d.calculatedDuration===null&&(d.calculatedDuration=al(d));let{calculatedDuration:p}=d;this.calculatedDuration=p,this.resolvedDuration=p+n,this.totalDuration=this.resolvedDuration*(o+1)-n,this.generator=d}updateTime(t){let r=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r}tick(t,r=!1){let{generator:o,totalDuration:n,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:l,calculatedDuration:c}=this;if(this.startTime===null)return o.next(0);let{delay:d=0,keyframes:p,repeat:m,repeatType:h,repeatDelay:g,type:w,onUpdate:$,finalKeyframe:T}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-n/this.speed,this.startTime)),r?this.currentTime=t:this.updateTime(t);let z=this.currentTime-d*(this.playbackSpeed>=0?1:-1),P=this.playbackSpeed>=0?z<0:z>n;this.currentTime=Math.max(z,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=n);let k=this.currentTime,M=o;if(m){let H=Math.min(this.currentTime,n)/l,Z=Math.floor(H),W=H%1;!W&&H>=1&&(W=1),W===1&&Z--,Z=Math.min(Z,m+1),Z%2&&(h==="reverse"?(W=1-W,g&&(W-=g/l)):h==="mirror"&&(M=a)),k=ir(0,1,W)*l}let E;P?(this.delayState.value=p[0],E=this.delayState):E=M.next(k),i&&!P&&(E.value=i(E.value));let{done:D}=E;!P&&c!==null&&(D=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let F=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&D);return F&&w!==Lu&&(E.value=ji(p,this.options,T,this.speed)),$&&$(E.value),F&&this.finish(),E}then(t,r){return this.finished.then(t,r)}get duration(){return mr(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+mr(t)}get time(){return mr(this.currentTime)}set time(t){t=Jt(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){let t=this.currentTime;
4if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);let r=this.generator.next(t).value;return gf(o=>this.generator.next(o).value,t,r)}get speed(){return this.playbackSpeed}set speed(t){let r=this.playbackSpeed!==t;r&&this.driver&&this.updateTime(jt.now()),this.playbackSpeed=t,r&&this.driver&&(this.time=mr(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=BT,startTime:r}=this.options;this.driver||(this.driver=t(n=>this.tick(n))),this.options.onPlay?.();let o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=r??o),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(jt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,co.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}};function WT(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var Ga=e=>e*180/Math.PI,Kb=e=>{let t=Ga(Math.atan2(e[1],e[0]));return Xb(t)},TV={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Kb,rotateZ:Kb,skewX:e=>Ga(Math.atan(e[1])),skewY:e=>Ga(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Xb=e=>(e=e%360,e<0&&(e+=360),e),JT=Kb,KT=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),XT=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),IV={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:KT,scaleY:XT,scale:e=>(KT(e)+XT(e))/2,rotateX:e=>Xb(Ga(Math.atan2(e[6],e[5]))),rotateY:e=>Xb(Ga(Math.atan2(-e[2],e[0]))),rotateZ:JT,rotate:JT,skewX:e=>Ga(Math.atan(e[4])),skewY:e=>Ga(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function yf(e){return e.includes("scale")?1:0}function bf(e,t){if(!e||e==="none")return yf(t);let r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),o,n;if(r)o=IV,n=r;else{let l=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=TV,n=l}if(!n)return yf(t);let i=o[t],a=n[1].split(",").map(PV);return typeof i=="function"?i(a):a[i]}var YT=(e,t)=>{let{transform:r="none"}=getComputedStyle(e);return bf(r,t)};function PV(e){return parseFloat(e.trim())}var mo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],$n=new Set(mo);var Yb=e=>e===uo||e===he,CV=new Set(["x","y","z"]),zV=mo.filter(e=>!CV.has(e));function QT(e){let t=[];return zV.forEach(r=>{let o=e.getValue(r);o!==void 0&&(t.push([r,o.get()]),o.set(r.startsWith("scale")?1:0))}),t}var qo={width:({x:e},{paddingLeft:t="0",paddingRight:r="0",boxSizing:o})=>{let n=e.max-e.min;return o==="border-box"?n:n-parseFloat(t)-parseFloat(r)},height:({y:e},{paddingTop:t="0",paddingBottom:r="0",boxSizing:o})=>{let n=e.max-e.min;return o==="border-box"?n:n-parseFloat(t)-parseFloat(r)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>bf(t,"x"),y:(e,{transform:t})=>bf(t,"y")};qo.translateX=qo.x;qo.translateY=qo.y;var qa=new Set,Qb=!1,e1=!1,t1=!1;function eI(){if(e1){let e=Array.from(qa).filter(o=>o.needsMeasurement),t=new Set(e.map(o=>o.element)),r=new Map;t.forEach(o=>{let n=QT(o);n.length&&(r.set(o,n),o.render())}),e.forEach(o=>o.measureInitialState()),t.forEach(o=>{o.render();let n=r.get(o);n&&n.forEach(([i,a])=>{o.getValue(i)?.set(a)})}),e.forEach(o=>o.measureEndState()),e.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}
4e1=!1,Qb=!1,qa.forEach(e=>e.complete(t1)),qa.clear()}function tI(){qa.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(e1=!0)})}function rI(){t1=!0,tI(),eI(),t1=!1}var Bi=class{constructor(t,r,o,n,i,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=r,this.name=o,this.motionValue=n,this.element=i,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(qa.add(this),Qb||(Qb=!0,Ge.read(tI),Ge.resolveKeyframes(eI))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:r,element:o,motionValue:n}=this;if(t[0]===null){let i=n?.get(),a=t[t.length-1];if(i!==void 0)t[0]=i;else if(o&&r){let l=o.readValue(r,a);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=a),n&&i===void 0&&n.set(t[0])}WT(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),qa.delete(this)}cancel(){this.state==="scheduled"&&(qa.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}};var nI=e=>e.startsWith("--");function xf(e,t,r){nI(t)?e.style.setProperty(t,r):e.style[t]=r}var oI={};function wf(e,t){let r=Su(e);return()=>oI[t]??r()}var iI=wf(()=>window.ScrollTimeline!==void 0,"scrollTimeline");var _f=wf(()=>{try{document.createElement("div").animate({opacity:0}
4,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");var Ha=([e,t,r,o])=>`cubic-bezier(${e}, ${t}, ${r}, ${o})`;var r1={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ha([0,.65,.55,1]),circOut:Ha([.55,0,1,.45]),backIn:Ha([.31,.01,.66,-.59]),backOut:Ha([.33,1.53,.69,.99])};function n1(e,t){if(e)return typeof e=="function"?_f()?hf(e,t):"ease-out":Au(e)?Ha(e):Array.isArray(e)?e.map(r=>n1(r,t)||r1.easeOut):r1[e]}function aI(e,t,r,{delay:o=0,duration:n=300,repeat:i=0,repeatType:a="loop",ease:l="easeOut",times:c}={},d=void 0){let p={[t]:r};c&&(p.offset=c);let m=n1(l,n);Array.isArray(m)&&(p.easing=m),rn.value&&co.waapi++;let h={delay:o,duration:n,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:i+1,direction:a==="reverse"?"alternate":"normal"};d&&(h.pseudoElement=d);let g=e.animate(p,h);return rn.value&&g.finished.finally(()=>{co.waapi--}),g}function kf(e){return typeof e=="function"&&"applyToOptions"in e}function sI({type:e,...t}){return kf(e)&&_f()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}var ll=class extends Ui{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;let{element:r,name:o,keyframes:n,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:l,onComplete:c}=t;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=t,Sn(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");let d=sI(t);this.animation=aI(r,o,n,d,i),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let p=ji(n,this.options,l,this.speed);this.updateMotionValue&&this.updateMotionValue(p),xf(r,o,p),this.animation.cancel()}c?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){let t=this.animation.effect?.getComputedTiming?.().duration||0;return mr(Number(t))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+mr(t)}get time(){return mr(Number(this.animation.currentTime)||0)}set time(t){let r=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Jt(t),r&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:r,rangeEnd:o,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&iI()?(this.animation.timeline=t,r&&(this.animation.rangeStart=r),o&&(this.animation.rangeEnd=o),Lt):n(this)}};var lI={anticipate:Iu,backInOut:Tu,circInOut:zu};function EV(e){return e in lI}function cI(e){typeof e.ease=="string"&&EV(e.ease)&&(e.ease=lI[e.ease])}var o1=10,Sf=class extends ll{constructor(t){cI(t),vf(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:r,onUpdate:o,onComplete:n,element:i,...a}=this.options;if(!r)return;if(t!==void 0){r.set(t);return}let l=new Go({...a,autoplay:!1}),c=Math.max(o1,jt.now()-this.startTime),d=ir(0,o1,c-o1),p=l.sample(c).value,{name:m}=this.options;i&&m&&xf(i,m,p),r.setWithVelocity(l.sample(Math.max(0,c-d)).value,p,d),l.stop()}};var i1=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ar.test(e)||e==="0")&&!e.startsWith("url("));function AV(e){let t=e[0];if(e.length===1)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}function uI(e,t,r,o){let n=e[0];if(n===null)return!1;if(t==="display"||t==="visibility")return!0;let i=e[e.length-1],a=i1(n,t),l=i1(i,t);return Fo(a===l,`You are trying to animate ${t} from "${n}" to "${i}". "${a?i:n}" is not an animatable value.`,"value-not-animatable"),!a||!l?!1:AV(e)||(r==="spring"||kf(r))&&o}function ju(e){e.duration=0,e.type="keyframes"}var $f=new Set(["opacity","clipPath","filter","transform"]);var MV=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function dI(e){for(let t=0;t<e.length;
4t++)if(typeof e[t]=="string"&&MV.test(e[t]))return!0;return!1}var NV=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),RV=Su(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function pI(e){let{motionValue:t,name:r,repeatDelay:o,repeatType:n,damping:i,type:a,keyframes:l}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:d,transformTemplate:p}=t.owner.getProps();return RV()&&r&&($f.has(r)||NV.has(r)&&dI(l))&&(r!=="transform"||!p)&&!d&&!o&&n!=="mirror"&&i!==0&&a!=="inertia"}var DV=40,Tf=class extends Ui{constructor({autoplay:t=!0,delay:r=0,type:o="keyframes",repeat:n=0,repeatDelay:i=0,repeatType:a="loop",keyframes:l,name:c,motionValue:d,element:p,...m}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=jt.now();let h={autoplay:t,delay:r,type:o,repeat:n,repeatDelay:i,repeatType:a,name:c,motionValue:d,element:p,...m},g=p?.KeyframeResolver||Bi;this.keyframeResolver=new g(l,(w,$,T)=>this.onKeyframesResolved(w,$,h,!T),c,d,p),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,r,o,n){this.keyframeResolver=void 0;let{name:i,type:a,velocity:l,delay:c,isHandoff:d,onUpdate:p}=o;this.resolvedAt=jt.now();let m=!0;uI(t,i,a,l)||(m=!1,(Cr.instantAnimations||!c)&&p?.(ji(t,o,r)),t[0]=t[t.length-1],ju(o),o.repeat=0);let g={startTime:n?this.resolvedAt?this.resolvedAt-this.createdAt>DV?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...o,keyframes:t},w=m&&!d&&pI(g),$=g.motionValue?.owner?.current,T;if(w)try{T=new Sf({...g,element:$})}catch{T=new Go(g)}else T=new Go(g);T.finished.then(()=>{this.notifyFinished()}).catch(Lt),this.pendingTimeline&&(this.stopTimeline=T.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=T}get finished(){return this._animation?this.animation.finished:this._finished}then(t,r){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),rI()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function If(e,t,r,o=0,n=1){let i=Array.from(e).sort((d,p)=>d.sortNodePosition(p)).indexOf(t),a=e.size,l=(a-1)*o;return typeof r=="function"?r(i,a):n===1?i*o:l-i*o}var OV=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function LV(e){let t=OV.exec(e);if(!t)return[,];let[,r,o,n]=t;return[`--${r??o}`,n]}var jV=4;function a1(e,t,r=1){Sn(r<=jV,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[o,n]=LV(e);if(!o)return;let i=window.getComputedStyle(t).getPropertyValue(o);if(i){let a=i.trim();return wu(a)?parseFloat(a):a}return rl(n)?a1(n,t,r+1):n}var UV={type:"spring",stiffness:500,damping:25,restSpeed:10},BV=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),FV={type:"keyframes",duration:.8},ZV={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},mI=(e,{keyframes:t})=>t.length>2?FV:$n.has(e)?e.startsWith("scale")?BV(t[1]):UV:ZV;function Pf(e,t){if(e?.inherit&&t){let{inherit:r,...o}=e;return{...t,...o}}return e}function cl(e,t){let r=e?.[t]??e?.default??e;return r!==e?Pf(r,e):r}var VV=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function fI(e){for(let t in e)if(!VV.has(t))return!0;return!1}var Wa=(e,t,r,o={},n,i)=>a=>{let l=cl(o,e)||{},c=l.delay||o.delay||0,{elapsed:d=0}=o;d=d-Jt(c);let p={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-d,onUpdate:h=>{t.set(h),l.onUpdate&&l.onUpdate(h)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:i?void 0:n};fI(l)||Object.assign(p,mI(e,p)),p.duration&&(p.duration=Jt(p.duration)),p.repeatDelay&&(p.repeatDelay=Jt(p.repeatDelay)),p.from!==void 0&&(p.keyframes[0]=p.from);let m=!1;if((p.type===!1||p.duration===0&&!p.repeatDelay)&&(ju(p),p.delay===0&&(m=!0)),(Cr.instantAnimations||Cr.skipAnimations||n?.shouldSkipAnimations)&&(m=!0,ju(p),p.delay=0),p.allowFlatten=!l.type&&!l.ease,m&&!i&&t.get()!==void 0){let h=ji(p.keyframes,l);if(h!==void 0){Ge.update(()=>{p.onUpdate(h),p.onComplete()});return}}return l.isSync?new Go(p):new Tf(p)};function hI(e){let t=[{},{}];
4return e?.values.forEach((r,o)=>{t[0][o]=r.get(),t[1][o]=r.getVelocity()}),t}function Ja(e,t,r,o){if(typeof t=="function"){let[n,i]=hI(o);t=t(r!==void 0?r:e.custom,n,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){let[n,i]=hI(o);t=t(r!==void 0?r:e.custom,n,i)}return t}function nn(e,t,r){let o=e.getProps();return Ja(o,t,r!==void 0?r:o.custom,e)}var Cf=new Set(["width","height","top","left","right","bottom",...mo]);var gI=30,GV=e=>!isNaN(parseFloat(e)),vI={current:void 0},s1=class{constructor(t,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{let n=jt.now();if(this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let i of this.dependents)i.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=r.owner}setCurrent(t){this.current=t,this.updatedAt=jt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=GV(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new Zo);let o=this.events[t].add(r);return t==="change"?()=>{o(),Ge.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,r,o){this.set(r),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-o}jump(t,r=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return vI.current&&vI.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=jt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>gI)return 0;let r=Math.min(this.updatedAt-this.prevUpdatedAt,gI);return $u(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Gn(e,t){return new s1(e,t)}var Uu=e=>Array.isArray(e);function qV(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Gn(r))}function HV(e){return Uu(e)?e[e.length-1]||0:e}function yI(e,t){let r=nn(e,t),{transitionEnd:o={},transition:n={},...i}=r||{};i={...i,...o};for(let a in i){let l=HV(i[a]);qV(e,a,l)}}var ht=e=>!!(e&&e.getVelocity);function bI(e){return!!(ht(e)&&e.add)}function ul(e,t){let r=e.getValue("willChange");if(bI(r))return r.add(t);if(!r&&Cr.WillChange){let o=new Cr.WillChange("auto");e.addValue("willChange",o),o.add(t)}}function dl(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}var xI="framerAppearId",Bu="data-"+dl(xI);function zf(e){return e.props[Bu]}function WV({protectedKeys:e,needsAnimating:t},r){let o=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,o}function Ef(e,t,{delay:r=0,transitionOverride:o,type:n}={}){let{transition:i,transitionEnd:a,...l}=t,c=e.getDefaultTransition();i=i?Pf(i,c):c;let d=i?.reduceMotion;o&&(i=o);let p=[],m=n&&e.animationState&&e.animationState.getState()[n];for(let h in l){let g=e.getValue(h,e.latestValues[h]??null),w=l[h];if(w===void 0||m&&WV(m,h))continue;let $={delay:r,...cl(i||{},h)},T=g.get();if(T!==void 0&&!g.isAnimating()&&!Array.isArray(w)&&w===T&&!$.velocity){Ge.update(()=>
4g.set(w));continue}let z=!1;if(window.MotionHandoffAnimation){let M=zf(e);if(M){let E=window.MotionHandoffAnimation(M,h,Ge);E!==null&&($.startTime=E,z=!0)}}ul(e,h);let P=d??e.shouldReduceMotion;g.start(Wa(h,g,w,P&&Cf.has(h)?{type:!1}:$,e,z));let k=g.animation;k&&p.push(k)}if(a){let h=()=>Ge.update(()=>{a&&yI(e,a)});p.length?Promise.all(p).then(h):h()}return p}function Af(e,t,r={}){let o=nn(e,t,r.type==="exit"?e.presenceContext?.custom:void 0),{transition:n=e.getDefaultTransition()||{}}=o||{};r.transitionOverride&&(n=r.transitionOverride);let i=o?()=>Promise.all(Ef(e,o,r)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(c=0)=>{let{delayChildren:d=0,staggerChildren:p,staggerDirection:m}=n;return JV(e,t,c,d,p,m,r)}:()=>Promise.resolve(),{when:l}=n;if(l){let[c,d]=l==="beforeChildren"?[i,a]:[a,i];return c().then(()=>d())}else return Promise.all([i(),a(r.delay)])}function JV(e,t,r=0,o=0,n=0,i=1,a){let l=[];for(let c of e.variantChildren)c.notify("AnimationStart",t),l.push(Af(c,t,{...a,delay:r+(typeof o=="function"?0:o)+If(e.variantChildren,c,o,n,i)}).then(()=>c.notify("AnimationComplete",t)));return Promise.all(l)}function wI(e,t,r={}){e.notify("AnimationStart",t);let o;if(Array.isArray(t)){let n=t.map(i=>Af(e,i,r));o=Promise.all(n)}else if(typeof t=="string")o=Af(e,t,r);else{let n=typeof t=="function"?nn(e,t,r.custom):t;o=Promise.all(Ef(e,n,r))}return o.then(()=>{e.notify("AnimationComplete",t)})}var _I={test:e=>e==="auto",parse:e=>e};var Mf=e=>t=>t.test(e);var l1=[uo,he,wr,Vn,Zb,Fb,_I],c1=e=>l1.find(Mf(e));function kI(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||ku(e):!0}var KV=new Set(["brightness","contrast","saturate","opacity"]);function XV(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[o]=r.match(nl)||[];if(!o)return e;let n=r.replace(o,""),i=KV.has(t)?1:0;return o!==r&&(i*=100),t+"("+i+n+")"}var YV=/\b([a-z-]*)\(.*?\)/gu,Fu={...ar,getAnimatableNone:e=>{let t=e.match(YV);return t?t.map(XV).join(" "):e}};var Zu={...ar,getAnimatableNone:e=>{let t=ar.parse(e);return ar.createTransformer(e)(t.map(o=>typeof o=="number"?0:typeof o=="object"?{...o,alpha:1}:o))}};var u1={...uo,transform:Math.round};var SI={rotate:Vn,rotateX:Vn,rotateY:Vn,rotateZ:Vn,scale:Ru,scaleX:Ru,scaleY:Ru,scaleZ:Ru,skew:Vn,skewX:Vn,skewY:Vn,distance:he,translateX:he,translateY:he,translateZ:he,x:he,y:he,z:he,perspective:he,transformPerspective:he,opacity:Vo,originX:df,originY:df,originZ:he};var pl={borderWidth:he,borderTopWidth:he,borderRightWidth:he,borderBottomWidth:he,borderLeftWidth:he,borderRadius:he,borderTopLeftRadius:he,borderTopRightRadius:he,borderBottomRightRadius:he,borderBottomLeftRadius:he,width:he,maxWidth:he,height:he,maxHeight:he,top:he,right:he,bottom:he,left:he,inset:he,insetBlock:he,insetBlockStart:he,insetBlockEnd:he,insetInline:he,insetInlineStart:he,insetInlineEnd:he,padding:he,paddingTop:he,paddingRight:he,paddingBottom:he,paddingLeft:he,paddingBlock:he,paddingBlockStart:he,paddingBlockEnd:he,paddingInline:he,paddingInlineStart:he,paddingInlineEnd:he,margin:he,marginTop:he,marginRight:he,marginBottom:he,marginLeft:he,marginBlock:he,marginBlockStart:he,marginBlockEnd:he,marginInline:he,marginInlineStart:he,marginInlineEnd:he,fontSize:he,backgroundPositionX:he,backgroundPositionY:he,...SI,zIndex:u1,fillOpacity:Vo,strokeOpacity:Vo,numOctaves:u1};var QV={...pl,color:Et,backgroundColor:Et,outlineColor:Et,fill:Et,stroke:Et,borderColor:Et,borderTopColor:Et,borderRightColor:Et,borderBottomColor:Et,borderLeftColor:Et,filter:Fu,WebkitFilter:Fu,mask:Zu,WebkitMask:Zu},Nf=e=>QV[e];var eG=new Set([Fu,Zu]);function Rf(e,t){let r=Nf(e);return eG.has(r)||(r=ar),r.getAnimatableNone?r.getAnimatableNone(t):void 0}var tG=new Set(["auto","none","0"]);function $I(e,t,r){let o=0,n;for(;o<e.length&&!n;){let i=e[o];typeof i=="string"&&!tG.has(i)&&Li(i).values.length&&(n=e[o]),o++}if(n&&r)for(let i of t)e[i]=Rf(r,n)}var Df=class extends Bi{constructor(t,r,o,n,i){super(t,r,o,n,i,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:r,name:o}=this;if(!r||!r.current)return;super.readKeyframes();for(let p=0;p<t.length;p++){let m=t[p];if(typeof m=="string"&&(m=m.trim(),rl(m))){let h=a1(m,r.current);h!==void 0&&(t[p]=h),p===t.length-1&&(this.finalKeyframe=m)}}if(this.resolveNoneKeyframes(),!Cf.has(o)||t.length!==2)return;let[n,i]=t,a=c1(n),l=c1(i),c=Ub(n),d=Ub(i);if(c!==d&&qo[o]){this.needsMeasurement=!0;return}if(a!==l)if(Yb(a)&&Yb(l))for(let p=0;p<t.length;p++){let m=t[p];typeof m=="string"&&(t[p]=parseFloat(m))}else qo[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:r}=this,o=[];for(let n=0;n<t.length;n++)(t[n]===null||kI(t[n]))&&o.push(n);o.length&&$I(t,o,r)}measureInitialState(){let{element:t,unresolvedKeyframes:r,name:o}=this;if(!t||!t.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=qo[o](t.measureViewportBox(),window.getComputedStyle(t.current)),r[0]=this.measuredOrigin;let n=r[r.length-1];n!==void 0&&t.getValue(o,n).jump(n,!1)}measureEndState(){let{element:t,name:r,unresolvedKeyframes:o}=this;if(!t||!t.current)return;let n=t.getValue(r);n&&n.jump(this.measuredOrigin,!1);let i=o.length-1,a=o[i];o[i]=qo[r](t.measureViewportBox(),window.getComputedStyle(t.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEac
4h(([l,c])=>{t.getValue(l).set(c)}),this.resolveNoneKeyframes()}};function Of(e,t,r){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let o=document;t&&(o=t.current);let n=r?.[e]??o.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e).filter(o=>o!=null)}var Lf=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Ka(e){return _u(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}var{schedule:Xa,cancel:rG}=sf(queueMicrotask,!1);var Tn={x:!1,y:!1};function jf(){return Tn.x||Tn.y}function d1(e){return e==="x"||e==="y"?Tn[e]?null:(Tn[e]=!0,()=>{Tn[e]=!1}):Tn.x||Tn.y?null:(Tn.x=Tn.y=!0,()=>{Tn.x=Tn.y=!1})}function Uf(e,t){let r=Of(e),o=new AbortController,n={passive:!0,...t,signal:o.signal};return[r,n,()=>o.abort()]}function nG(e){return!(e.pointerType==="touch"||jf())}function p1(e,t,r={}){let[o,n,i]=Uf(e,r);return o.forEach(a=>{let l=!1,c=!1,d,p=()=>{a.removeEventListener("pointerleave",w)},m=T=>{d&&(d(T),d=void 0),p()},h=T=>{l=!1,window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",h),c&&(c=!1,m(T))},g=()=>{l=!0,window.addEventListener("pointerup",h,n),window.addEventListener("pointercancel",h,n)},w=T=>{if(T.pointerType!=="touch"){if(l){c=!0;return}m(T)}},$=T=>{if(!nG(T))return;c=!1;let z=t(a,T);typeof z=="function"&&(d=z,a.addEventListener("pointerleave",w,n))};a.addEventListener("pointerenter",$,n),a.addEventListener("pointerdown",g,n)}),i}var m1=(e,t)=>t?e===t?!0:m1(e,t.parentElement):!1;var Ya=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;var oG=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function f1(e){return oG.has(e.tagName)||e.isContentEditable===!0}var iG=new Set(["INPUT","SELECT","TEXTAREA"]);function h1(e){return iG.has(e.tagName)||e.isContentEditable===!0}var ml=new WeakSet;function TI(e){return t=>{t.key==="Enter"&&e(t)}}function g1(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}var II=(e,t)=>{let r=e.currentTarget;if(!r)return;let o=TI(()=>{if(ml.has(r))return;g1(r,"down");let n=TI(()=>{g1(r,"up")}),i=()=>g1(r,"cancel");r.addEventListener("keyup",n,t),r.addEventListener("blur",i,t)});r.addEventListener("keydown",o,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",o),t)};function PI(e){return Ya(e)&&!jf()}var CI=new WeakSet;function v1(e,t,r={}){let[o,n,i]=Uf(e,r),a=l=>{let c=l.currentTarget;if(!PI(l)||CI.has(l))return;ml.add(c),r.stopPropagation&&CI.add(l);let d=t(c,l),p=(g,w)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",h),ml.has(c)&&ml.delete(c),PI(g)&&typeof d=="function"&&d(g,{success:w})},m=g=>{p(g,c===window||c===document||r.useGlobalTarget||m1(c,g.target))},h=g=>{p(g,!1)};window.addEventListener("pointerup",m,n),window.addEventListener("pointercancel",h,n)};return o.forEach(l=>{(r.useGlobalTarget?window:l).addEventListener("pointerdown",a,n),Ka(l)&&(l.addEventListener("focus",d=>II(d,n)),!f1(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),i}function fl(e){return _u(e)&&"ownerSVGElement"in e}var Bf=new WeakMap,Ff,zI=(e,t,r)=>(o,n)=>n&&n[0]?n[0][e+"Size"]:fl(o)&&"getBBox"in o?o.getBBox()[t]:o[r],aG=zI("inline","width","offsetWidth"),sG=zI("block","height","offsetHeight");function lG({target:e,borderBoxSize:t}){Bf.get(e)?.forEach(r=>{r(e,{get width(){return aG(e,t)},get height(){return sG(e,t)}})})}function cG(e){e.forEach(lG)}function uG(){typeof ResizeObserver>"u"||(Ff=new ResizeObserver(cG))}function EI(e,t){Ff||uG();let r=Of(e);return r.forEach(o=>{let n=Bf.get(o);n||(n=new Set,Bf.set(o,n)),n.add(t),Ff?.observe(o)}),()=>{r.forEach(o=>{let n=Bf.get(o);n?.delete(t),n?.size||Ff?.unobserve(o)})}}var Zf=new Set,hl;function dG(){hl=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Zf.forEach(t=>t(e))},window.addEventListener("resize",hl)}function AI(e){return Zf.add(e),hl||dG(),()=>{Zf.delete(e),!Zf.size&&typeof hl=="function"&&(window.removeEventListener("resize",hl),hl=void 0)}}function Vf(e,t){return typeof e=="function"?AI(e):EI(e,t)}function MI(e){return fl(e)&&e.tagName==="svg"}var pG=[...l1,Et,ar],NI=e=>pG.find(Mf(e));var y1=()=>({translate:0,scale:1,origin:0,originPoint:0}),Fi=()=>({x:y1(),y:y1()}),b1=()=>({min:0,max:0}),At=()=>({x:b1(),y:b1()});var RI=new WeakMap;function Ho(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function fo(e){return typeof e=="string"||Array.isArray(e)}var Gf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Vu=["initial",...Gf];function Zi(e){return Ho(e.animate)||Vu.some(t=>fo(e[t]))}function Gu(e){return!!(Zi(e)||e.variants)}function DI(e,t,r){for(let o in t){let n=t[o],i=r[o];if(ht(n))e.addValue(o,n);else if(ht(i))e.addValue(o,Gn(n,{owner:e}));else if(i!==n)if(e.hasValue(o)){let a=e.getValue(o);a.liveStyle===!0?a.jump(n):a.hasAnimated||a.set(n)}else{let a=e.getStaticValue(o);e.addValue(o,Gn(a!==void 0?a:n,{owner:e}))}}for(let o in r)t[o]===void 0&&e.removeValue(o);return t}var qu={current:null},qf={current:!1};var mG=typeof window<"u";function OI(){if(qf.current=!0,!!mG)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>qu.current=e.matches;e.addEventListener("change",t),t()}else qu.current=!1}var LI=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Hf={};function Wu(e){Hf=e}function x1(){return Hf}var Hu=class{scrapeMotionValuesFromProps(t,r,o){return{}}constructor({parent:t,props:r,presenceContext:o,reducedMotionConfig:n,skipAnimations:i,blockInitialAnimation:a,visualState:l},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Bi,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let g=jt.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,Ge.render(this.render,!1,!0))};let{latestValues:d,renderState:p}=l;this.latestValues=d,this.baseTarget={...d},this.initialValues=r.initial?{...d}:{},this.renderState=p,this.parent=t,this.props=r,this.presenceContext=o,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.skipAnimationsConfig=i,this.options=c,this.blockInitialAnimation=!!a,this.isControllingVariants=Zi(r),this.isVariantNode=Gu(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:m,...h}=this.scrapeMotionValuesFromProps(r,{},this);for(let g in h){let w=h[g];d[g]!==void 0&&ht(w)&&w.set(d[g])}}mount(t){if(this.hasBeenMounted)for(let r in this.initialValues)this.values.get(r)?.jump(this.initialValues[r]),this.latestValues[r]=this.initialValues[r];this.current=t,RI.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
4h((r,o)=>this.bindToMotionValue(o,r)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(qf.current||OI(),this.shouldReduceMotion=qu.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),Vr(this.notifyUpdate),Vr(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let t in this.events)this.events[t].clear();for(let t in this.features){let r=this.features[t];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,r){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),r.accelerate&&$f.has(t)&&this.current instanceof HTMLElement){let{factory:a,keyframes:l,times:c,ease:d,duration:p}=r.accelerate,m=new ll({element:this.current,name:t,keyframes:l,times:c,ease:d,duration:Jt(p)}),h=a(m);this.valueSubscriptions.set(t,()=>{h(),m.cancel()});return}let o=$n.has(t);o&&this.onBindTransform&&this.onBindTransform();let n=r.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&Ge.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<"u"&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,r)),this.valueSubscriptions.set(t,()=>{n(),i&&i(),r.owner&&r.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Hf){let r=Hf[t];if(!r)continue;let{isEnabled:o,Feature:n}=r;if(!this.features[t]&&n&&o(this.props)&&(this.features[t]=new n(this)),this.features[t]){let i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):At()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let o=0;o<LI.length;o++){let n=LI[o];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let i="on"+n,a=t[i];a&&(this.propEventSubscriptions[n]=this.on(n,a))}this.prevMotionValues=DI(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(t),()=>r.variantChildren.delete(t)}addValue(t,r){let o=this.values.get(t);r!==o&&(o&&this.removeValue(t),this.bindToMotionValue(t,r),this.values.set(t,r),this.latestValues[t]=r.get())}removeValue(t){this.values.delete(t);let r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let o=this.values.get(t);return o===void 0&&r!==void 0&&(o=Gn(r===null?void 0:r,{owner:this}),this.addValue(t,o)),o}readValue(t,r){let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);
4return o!=null&&(typeof o=="string"&&(wu(o)||ku(o))?o=parseFloat(o):!NI(o)&&ar.test(r)&&(o=Rf(t,r)),this.setBaseTarget(t,ht(o)?o.get():o)),ht(o)?o.get():o}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){let{initial:r}=this.props,o;if(typeof r=="string"||typeof r=="object"){let i=Ja(this.props,r,this.presenceContext?.custom);i&&(o=i[t])}if(r&&o!==void 0)return o;let n=this.getBaseTargetFromProps(this.props,t);return n!==void 0&&!ht(n)?n:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new Zo),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}scheduleRenderMicrotask(){Xa.render(this.render)}};var gl=class extends Hu{constructor(){super(...arguments),this.KeyframeResolver=Df}sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){let o=t.style;return o?o[r]:void 0}removeValueFromRenderState(t,{vars:r,style:o}){delete r[t],delete o[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;ht(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}};var sr=class{constructor(t){this.isMounted=!1,this.node=t}update(){}};function Ju({top:e,left:t,right:r,bottom:o}){return{x:{min:t,max:r},y:{min:e,max:o}}}function w1({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function _1(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),o=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:o.y,right:o.x}}function k1(e){return e===void 0||e===1}function Wf({scale:e,scaleX:t,scaleY:r}){return!k1(e)||!k1(t)||!k1(r)}function Wo(e){return Wf(e)||S1(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function S1(e){return jI(e.x)||jI(e.y)}function jI(e){return e&&e!=="0%"}function Ku(e,t,r){let o=e-r,n=t*o;return r+n}function UI(e,t,r,o,n){return n!==void 0&&(e=Ku(e,n,o)),Ku(e,r,o)+t}function $1(e,t=0,r=1,o,n){e.min=UI(e.min,t,r,o,n),e.max=UI(e.max,t,r,o,n)}function T1(e,{x:t,y:r}){$1(e.x,t.translate,t.scale,t.originPoint),$1(e.y,r.translate,r.scale,r.originPoint)}var BI=.999999999999,FI=1.0000000000001;function GI(e,t,r,o=!1){let n=r.length;if(!n)return;t.x=t.y=1;let i,a;for(let l=0;l<n;l++){i=r[l],a=i.projectionDelta;let{visualElement:c}=i.options;c&&c.props.style&&c.props.style.display==="contents"||(o&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(In(e.x,-i.scroll.offset.x),In(e.y,-i.scroll.offset.y)),a&&(t.x*=a.x.scale,t.y*=a.y.scale,T1(e,a)),o&&Wo(i.latestValues)&&Xu(e,i.latestValues,i.layout?.layoutBox))}t.x<FI&&t.x>BI&&(t.x=1),t.y<FI&&t.y>BI&&(t.y=1)}function In(e,t){e.min+=t,e.max+=t}function ZI(e,t,r,o,n=.5){let i=rt(e.min,e.max,n);$1(e,t,r,i,o)}function VI(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function Xu(e,t,r){let o=r??e;ZI(e.x,VI(t.x,o.x),t.scaleX,t.scale,t.originX),ZI(e.y,VI(t.y,o.y),t.scaleY,t.scale,t.originY)}function Jf(e,t){return Ju(_1(e.getBoundingClientRect(),t))}function I1(e,t,r){let o=Jf(e,r),{scroll:n}=t;return n&&(In(o.x,n.offset.x),In(o.y,n.offset.y)),o}var fG={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},hG=mo.length;function qI(e,t,r){let o="",n=!0;for(let i=0;i<hG;i++){let a=mo[i],l=e[a];if(l===void 0)continue;let c=!0;if(typeof l=="number")c=l===(a.startsWith("scale")?1:0);else{let d=parseFloat(l);c=a.startsWith("scale")?d===1:d===0}if(!c||r){let d=Lf(l,pl[a]);if(!c){n=!1;let p=fG[a]||a;o+=`${p}(${d}) `}r&&(t[a]=d)}}return o=o.trim(),r?o=r(t,n?"":o):n&&(o="none"),o}function Qa(e,t,r){let{style:o,vars:n,transformOrigin:i}=e,a=!1,l=!1;for(let c in t){let d=t[c];if($n.has(c)){a=!0;continue}else if(cf(c)){n[c]=d;continue}else{let p=Lf(d,pl[c]);c.startsWith("origin")?(l=!0,i[c]=p):o[c]=p}}if(t.transform||(a||r?o.transform=qI(t,e.transform,r):o.transform&&(o.transform="none")),l){let{originX:c="50%",originY:d="50%",originZ:p=0}=i;o.transformOrigin=`${c} ${d} ${p}`}}function Kf(e,{style:t,vars:r},o,n){let i=e.style,a;for(a in t)i[a]=t[a];n?.applyProjectionStyles(i,o);for(a in r)i.setProperty(a,r[a])}function HI(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var vl={correct:(e,t)=>
4{if(!t.target)return e;if(typeof e=="string")if(he.test(e))e=parseFloat(e);else return e;let r=HI(e,t.target.x),o=HI(e,t.target.y);return`${r}% ${o}%`}};var WI={correct:(e,{treeScale:t,projectionDelta:r})=>{let o=e,n=ar.parse(e);if(n.length>5)return o;let i=ar.createTransformer(e),a=typeof n[0]!="number"?1:0,l=r.x.scale*t.x,c=r.y.scale*t.y;n[0+a]/=l,n[1+a]/=c;let d=rt(l,c,.5);return typeof n[2+a]=="number"&&(n[2+a]/=d),typeof n[3+a]=="number"&&(n[3+a]/=d),i(n)}};var Yu={borderRadius:{...vl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:vl,borderTopRightRadius:vl,borderBottomLeftRadius:vl,borderBottomRightRadius:vl,boxShadow:WI};function Qu(e,{layout:t,layoutId:r}){return $n.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!Yu[e]||e==="opacity")}function es(e,t,r){let o=e.style,n=t?.style,i={};if(!o)return i;for(let a in o)(ht(o[a])||n&&ht(n[a])||Qu(a,e)||r?.getValue(a)?.liveStyle!==void 0)&&(i[a]=o[a]);return i}function gG(e){return window.getComputedStyle(e)}var ed=class extends gl{constructor(){super(...arguments),this.type="html",this.renderInstance=Kf}readValueFromInstance(t,r){if($n.has(r))return this.projection?.isProjecting?yf(r):YT(t,r);{let o=gG(t),n=(cf(r)?o.getPropertyValue(r):o[r])||0;return typeof n=="string"?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:r}){return Jf(t,r)}build(t,r,o){Qa(t,r,o.transformTemplate)}scrapeMotionValuesFromProps(t,r,o){return es(t,r,o)}};var vG={offset:"stroke-dashoffset",array:"stroke-dasharray"},yG={offset:"strokeDashoffset",array:"strokeDasharray"};function JI(e,t,r=1,o=0,n=!0){e.pathLength=1;let i=n?vG:yG;e[i.offset]=`${-o}`,e[i.array]=`${t} ${r}`}var bG=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function td(e,{attrX:t,attrY:r,attrScale:o,pathLength:n,pathSpacing:i=1,pathOffset:a=0,...l},c,d,p){if(Qa(e,l,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:m,style:h}=e;m.transform&&(h.transform=m.transform,delete m.transform),(h.transform||m.transformOrigin)&&(h.transformOrigin=m.transformOrigin??"50% 50%",delete m.transformOrigin),h.transform&&(h.transformBox=p?.transformBox??"fill-box",delete m.transformBox);for(let g of bG)m[g]!==void 0&&(h[g]=m[g],delete m[g]);t!==void 0&&(m.x=t),r!==void 0&&(m.y=r),o!==void 0&&(m.scale=o),n!==void 0&&JI(m,n,i,a,!1)}var Xf=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);var rd=e=>typeof e=="string"&&e.toLowerCase()==="svg";function KI(e,t,r,o){Kf(e,t,void 0,o);for(let n in t.attrs)e.setAttribute(Xf.has(n)?n:dl(n),t.attrs[n])}function nd(e,t,r){let o=es(e,t,r);for(let n in e)if(ht(e[n])||ht(t[n])){let i=mo.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;o[i]=e[n]}return o}var od=class extends gl{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=At}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if($n.has(r)){let o=Nf(r);return o&&o.default||0}return r=Xf.has(r)?r:dl(r),t.getAttribute(r)}scrapeMotionValuesFromProps(t,r,o){return nd(t,r,o)}build(t,r,o){td(t,r,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(t,r,o,n){KI(t,r,o,n)}mount(t){this.isSVGTag=rd(t.tagName),super.mount(t)}};var xG=Vu.length;function P1(e){if(!e)return;if(!e.isControllingVariants){let r=e.parent?P1(e.parent)||{}:{};return e.props.initial!==void 0&&(r.initial=e.props.initial),r}let t={};for(let r=0;r<xG;r++){let o=Vu[r],n=e.props[o];(fo(n)||n===!1)&&(t[o]=n)}return t}function C1(e,t){if(!Array.isArray(t))return!1;let r=t.length;if(r!==e.length)return!1;for(let o=0;o<r;o++)if(t[o]!==e[o])return!1;return!0}var wG=[...Gf].reverse(),_G=Gf.length;function kG(e){return t=>Promise.all(t.map(({animation:r,options:o})=>wI(e,r,o)))}function z1(e){let t=kG(e),r=XI(),o=!0,n=!1,i=d=>(p,m)=>{let h=nn(e,m,d==="exit"?e.presenceContext?.custom:void 0);if(h){let{transition:g,transitionEnd:w,...$}=h;p={...p,...$,...w}}return p};function a(d){t=d(e)}function l(d){let{props:p}=e,m=P1(e.parent)||{},h=[],g=new Set,w={},$=1/0;for(let z=0;z<_G;z++){let P=wG[z],k=r[P],M=p[P]!==void 0?p[P]:m[P],E=fo(M),D=P===d?k.isActive:null;D===!1&&($=z);let F=M===m[P]&&M!==p[P]&&E;if(F&&(o||n)&&e.manuallyAnimateOnMount&&(F=!1),k.protectedKeys={...w},!k.isActive&&D===null||!M&&!k.prevProp||Ho(M)||typeof M=="boolean")continue;if(P==="exit"&&k.isActive&&D!==!0){k.prevResolvedValues&&(w={...w,...k.prevResolvedValues});continue}let H=YI(k.prevProp,M),Z=H||P===d&&k.isActive&&!F&&E||z>$&&E,W=!1,ke=Array.isArray(M)?M:[M],ge=ke.reduce(i(P),{});D===!1&&(ge={});let{prevResolvedValues:xt={}}=k,Ie={...xt,...ge},We=fe=>{Z=!0,g.has(fe)&&(W=!0,g.delete(fe)),k.needsAnimating[fe]=!0;let Ze=e.getValue(fe);Ze&&(Ze.liveStyle=!1)};for(let fe in Ie){let Ze=ge[fe],st=xt[fe];
4if(w.hasOwnProperty(fe))continue;let lt=!1;Uu(Ze)&&Uu(st)?lt=!C1(Ze,st):lt=Ze!==st,lt?Ze!=null?We(fe):g.add(fe):Ze!==void 0&&g.has(fe)?We(fe):k.protectedKeys[fe]=!0}k.prevProp=M,k.prevResolvedValues=ge,k.isActive&&(w={...w,...ge}),(o||n)&&e.blockInitialAnimation&&(Z=!1);let we=F&&H;Z&&(!we||W)&&h.push(...ke.map(fe=>{let Ze={type:P};if(typeof fe=="string"&&(o||n)&&!we&&e.manuallyAnimateOnMount&&e.parent){let{parent:st}=e,lt=nn(st,fe);if(st.enteringChildren&&lt){let{delayChildren:_e}=lt.transition||{};Ze.delay=If(st.enteringChildren,e,_e)}}return{animation:fe,options:Ze}}))}if(g.size){let z={};if(typeof p.initial!="boolean"){let P=nn(e,Array.isArray(p.initial)?p.initial[0]:p.initial);P&&P.transition&&(z.transition=P.transition)}g.forEach(P=>{let k=e.getBaseTarget(P),M=e.getValue(P);M&&(M.liveStyle=!0),z[P]=k??null}),h.push({animation:z})}let T=!!h.length;return o&&(p.initial===!1||p.initial===p.animate)&&!e.manuallyAnimateOnMount&&(T=!1),o=!1,n=!1,T?t(h):Promise.resolve()}function c(d,p){if(r[d].isActive===p)return Promise.resolve();e.variantChildren?.forEach(h=>h.animationState?.setActive(d,p)),r[d].isActive=p;let m=l(d);for(let h in r)r[h].protectedKeys={};return m}return{animateChanges:l,setActive:c,setAnimateFunction:a,getState:()=>r,reset:()=>{r=XI(),n=!0}}}function YI(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!C1(t,e):!1}function ts(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function XI(){return{animate:ts(!0),whileInView:ts(),whileHover:ts(),whileTap:ts(),whileDrag:ts(),whileFocus:ts(),exit:ts()}}function Yf(e,t){e.min=t.min,e.max=t.max}function Pn(e,t){Yf(e.x,t.x),Yf(e.y,t.y)}function E1(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var QI=1e-4,SG=1-QI,$G=1+QI,e8=.01,TG=0-e8,IG=0+e8;function er(e){return e.max-e.min}function R1(e,t,r){return Math.abs(e-t)<=r}function A1(e,t,r,o=.5){e.origin=o,e.originPoint=rt(t.min,t.max,e.origin),e.scale=er(r)/er(t),e.translate=rt(r.min,r.max,e.origin)-e.originPoint,(e.scale>=SG&&e.scale<=$G||isNaN(e.scale))&&(e.scale=1),(e.translate>=TG&&e.translate<=IG||isNaN(e.translate))&&(e.translate=0)}function rs(e,t,r,o){A1(e.x,t.x,r.x,o?o.originX:void 0),A1(e.y,t.y,r.y,o?o.originY:void 0)}function M1(e,t,r,o=0){let n=o?rt(r.min,r.max,o):r.min;e.min=n+t.min,e.max=e.min+er(t)}function D1(e,t,r,o){M1(e.x,t.x,r.x,o?.x),M1(e.y,t.y,r.y,o?.y)}function N1(e,t,r,o=0){let n=o?rt(r.min,r.max,o):r.min;e.min=t.min-n,e.max=e.min+er(t)}function yl(e,t,r,o){N1(e.x,t.x,r.x,o?.x),N1(e.y,t.y,r.y,o?.y)}function t8(e,t,r,o,n){return e-=t,e=Ku(e,1/r,o),n!==void 0&&(e=Ku(e,1/n,o)),e}function PG(e,t=0,r=1,o=.5,n,i=e,a=e){if(wr.test(t)&&(t=parseFloat(t),t=rt(a.min,a.max,t/100)-a.min),typeof t!="number")return;let l=rt(i.min,i.max,o);e===i&&(l-=t),e.min=t8(e.min,t,r,l,n),e.max=t8(e.max,t,r,l,n)}function r8(e,t,[r,o,n],i,a){PG(e,t[r],t[o],t[n],t.scale,i,a)}var CG=["x","scaleX","originX"],zG=["y","scaleY","originY"];function O1(e,t,r,o){r8(e.x,t,CG,r?r.x:void 0,o?o.x:void 0),r8(e.y,t,zG,r?r.y:void 0,o?o.y:void 0)}function n8(e){return e.translate===0&&e.scale===1}function L1(e){return n8(e.x)&&n8(e.y)}function o8(e,t){return e.min===t.min&&e.max===t.max}function a8(e,t){return o8(e.x,t.x)&&o8(e.y,t.y)}function i8(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function j1(e,t){return i8(e.x,t.x)&&i8(e.y,t.y)}function U1(e){return er(e.x)/er(e.y)}function B1(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function on(e){return[e("x"),e("y")]}function s8(e,t,r){let o="",n=e.x.translate/t.x,i=e.y.translate/t.y,a=r?.z||0;if((n||i||a)&&(o=`translate3d(${n}px, ${i}px, ${a}px) `),(t.x!==1||t.y!==1)&&(o+=`scale(${1/t.x}, ${1/t.y}) `),r){let{transformPerspective:d,rotate:p,rotateX:m,rotateY:h,skewX:g,skewY:w}=r;d&&(o=`perspective(${d}px) ${o}`),p&&(o+=`rotate(${p}deg) `),m&&(o+=`rotateX(${m}deg) `),h&&(o+=`rotateY(${h}deg) `),g&&(o+=`skewX(${g}deg) `),w&&(o+=`skewY(${w}deg) `)}let l=e.x.scale*t.x,c=e.y.scale*t.y;return(l!==1||c!==1)&&(o+=`scale(${l}, ${c})`),o||"none"}var d8=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],EG=d8.length,l8=e=>typeof e=="string"?parseFloat(e):e,c8=e=>typeof e=="number"||he.test(e);function p8(e,t,r,o,n,i){n?(e.opacity=rt(0,r.opacity??1,AG(o)),e.opacityExit=rt(t.opacity??1,0,MG(o))):i&&(e.opacity=rt(t.opacity??1,r.opacity??1,o));for(let a=0;a<EG;a++){let l=d8[a],c=u8(t,l),d=u8(r,l);if(c===void 0&&d===void 0)continue;c||(c=0),d||(d=0),c===0||d===0||c8(c)===c8(d)?(e[l]=Math.max(rt(l8(c),l8(d),o),0),(wr.test(d)||wr.test(c))&&(e[l]+="%")):e[l]=d}(t.rotate||r.rotate)&&(e.rotate=rt(t.rotate||0,r.rotate||0,o))}function u8(e,t){return e[t]!==void 0?e[t]:e.borderRadius}var AG=m8(0,.5,Cu),MG=m8(.5,.95,Lt);function m8(e,t,r){return o=>o<e?0:o>t?1:r(lo(e,t,o))}function f8(e,t,r){let o=ht(e)?e:Gn(e);return o.start(Wa("",o,t,r)),o.animation}function ho(e,t,r,o={passive:!0}){return e.addEventListener(t,r,o),()=>e.removeEventListener(t,r)}var h8=(e,t)=>e.depth-t.depth;var Qf=class{constructor(){this.children=[],this.isDirty=!1}add(t){Za(this.children,t),this.isDirty=!0}remove(t){Ni(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(h8),this.isDirty=!1,this.children.forEac
4h(t)}};function g8(e,t){let r=jt.now(),o=({timestamp:n})=>{let i=n-r;i>=t&&(Vr(o),e(i-t))};return Ge.setup(o,!0),()=>Vr(o)}function ns(e){return ht(e)?e.get():e}var eh=class{constructor(){this.members=[]}add(t){Za(this.members,t);for(let r=this.members.length-1;r>=0;r--){let o=this.members[r];if(o===t||o===this.lead||o===this.prevLead)continue;let n=o.instance;(!n||n.isConnected===!1)&&!o.snapshot&&(Ni(this.members,o),o.unmount())}t.scheduleRender()}remove(t){if(Ni(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){for(let r=this.members.indexOf(t)-1;r>=0;r--){let o=this.members[r];if(o.isPresent!==!1&&o.instance?.isConnected!==!1)return this.promote(o),!0}return!1}promote(t,r){let o=this.lead;if(t!==o&&(this.prevLead=o,this.lead=t,t.show(),o)){o.updateSnapshot(),t.scheduleRender();let{layoutDependency:n}=o.options,{layoutDependency:i}=t.options;(n===void 0||n!==i)&&(t.resumeFrom=o,r&&(o.preserveOpacity=!0),o.snapshot&&(t.snapshot=o.snapshot,t.snapshot.latestValues=o.animationValues||o.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}};var os={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var is={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},F1=["","X","Y","Z"],NG=1e3,RG=0;function Z1(e,t,r,o){let{latestValues:n}=t;n[e]&&(r[e]=n[e],t.setStaticValue(e,0),o&&(o[e]=0))}function $8(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let r=zf(t);if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:n,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",Ge,!(n||i))}let{parent:o}=e;o&&!o.hasCheckedOptimisedAppear&&$8(o)}function th({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:o,resetTransform:n}){return class{constructor(a={},l=t?.()){this.id=RG++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,rn.value&&(is.nodes=is.calculatedTargetDeltas=is.calculatedProjections=0),this.nodes.forEach(LG),this.nodes.forEach(VG),this.nodes.forEach(GG),this.nodes.forEach(jG),rn.addProjectionMetrics&&rn.addProjectionMetrics(is)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new Qf)}addEventListener(a,l){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Zo),this.eventHandlers.get(a).add(l)}notifyListeners(a,...l){let c=this.eventHandlers.get(a);c&&c.notify(...l)}hasListeners(a){return this.eventHandlers.has(a)}mount(a){if(this.instance)return;this.isSVG=fl(a)&&!MI(a),this.instance=a;let{layoutId:l,layout:c,visualElement:d}=this.options;if(d&&!d.current&&d.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||l)&&(this.isLayoutDirty=!0),e){let p,m=0,h=()=>this.root.updateBlockedByResize=!1;Ge.read(()=>{m=window.innerWidth}
4),e(a,()=>{let g=window.innerWidth;g!==m&&(m=g,this.root.updateBlockedByResize=!0,p&&p(),p=g8(h,250),os.hasAnimatedSinceResize&&(os.hasAnimatedSinceResize=!1,this.nodes.forEach(b8)))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||c)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:m,hasRelativeLayoutChanged:h,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let w=this.options.transition||d.getDefaultTransition()||KG,{onLayoutAnimationStart:$,onLayoutAnimationComplete:T}=d.getProps(),z=!this.targetLayout||!j1(this.targetLayout,g),P=!m&&h;if(this.options.layoutRoot||this.resumeFrom||P||m&&(z||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let k={...cl(w,"layout"),onPlay:$,onComplete:T};(d.shouldReduceMotion||this.options.layoutRoot)&&(k.delay=0,k.type=!1),this.startAnimation(k),this.setAnimationOrigin(p,P)}else m||b8(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Vr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(qG),this.animationId++)}getTransformTemplate(){let{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&$8(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let p=0;p<this.path.length;p++){let m=this.path[p];m.shouldResetTransform=!0,(typeof m.latestValues.x=="string"||typeof m.latestValues.y=="string")&&(m.isLayoutDirty=!0),m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}let{layoutId:l,layout:c}=this.options;if(l===void 0&&!c)return;let d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let c=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),c&&this.nodes.forEach(BG),this.nodes.forEach(v8);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(y8);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(FG),this.nodes.forEach(ZG),this.nodes.forEach(DG),this.nodes.forEach(OG)):this.nodes.forEach(y8),this.clearAllSnapshots();let l=jt.now();Gt.delta=ir(0,1e3/60,l-Gt.timestamp),Gt.timestamp=l,Gt.isProcessing=!0,Nu.update.process(Gt),Nu.preRender.process(Gt),Nu.render.process(Gt),Gt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Xa.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(UG),this.sharedNodes.forEach(HG)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ge.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ge.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!er(this.snapshot.measuredBox.x)&&!er(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();let a=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=At()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(l=!1),l&&this.instance){let c=o(this.instance);
4this.scroll={animationId:this.root.animationId,phase:a,isRoot:c,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!n)return;let a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!L1(this.projectionDelta),c=this.getTransformTemplate(),d=c?c(this.latestValues,""):void 0,p=d!==this.prevTransformTemplateValue;a&&this.instance&&(l||Wo(this.latestValues)||p)&&(n(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){let l=this.measurePageBox(),c=this.removeElementScroll(l);return a&&(c=this.removeTransform(c)),XG(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:a}=this.options;if(!a)return At();let l=a.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(YG))){let{scroll:d}=this.root;d&&(In(l.x,d.offset.x),In(l.y,d.offset.y))}return l}removeElementScroll(a){let l=At();if(Pn(l,a),this.scroll?.wasRoot)return l;for(let c=0;c<this.path.length;c++){let d=this.path[c],{scroll:p,options:m}=d;d!==this.root&&p&&m.layoutScroll&&(p.wasRoot&&Pn(l,a),In(l.x,p.offset.x),In(l.y,p.offset.y))}return l}applyTransform(a,l=!1,c){let d=c||At();Pn(d,a);for(let p=0;p<this.path.length;p++){let m=this.path[p];!l&&m.options.layoutScroll&&m.scroll&&m!==m.root&&(In(d.x,-m.scroll.offset.x),In(d.y,-m.scroll.offset.y)),Wo(m.latestValues)&&Xu(d,m.latestValues,m.layout?.layoutBox)}return Wo(this.latestValues)&&Xu(d,this.latestValues,this.layout?.layoutBox),d}removeTransform(a){let l=At();Pn(l,a);for(let c=0;c<this.path.length;c++){let d=this.path[c];if(!Wo(d.latestValues))continue;let p;d.instance&&(Wf(d.latestValues)&&d.updateSnapshot(),p=At(),Pn(p,d.measurePageBox())),O1(l,d.latestValues,d.snapshot?.layoutBox,p)}return Wo(this.latestValues)&&O1(l,this.latestValues),l}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Gt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){let l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);let c=!!this.resumingFrom||this!==l;if(!(a||c&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:p,layoutId:m}=this.options;if(!this.layout||!(p||m))return;this.resolvedRelativeTargetAt=Gt.timestamp;let h=this.getClosestProjectingParent();h&&this.linkedParentVersion!==h.layoutVersion&&!h.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&h&&h.layout?this.createRelativeTarget(h,this.layout.layoutBox,h.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=At(),this.targetWithTransforms=At()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),D1(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Pn(this.target,this.layout.layoutBox),T1(this.target,this.targetDelta)):Pn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?this.createRelativeTarget(h,this.target,h.target):this.relativeParent=this.relativeTarget=void 0),rn.value&&is.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||Wf(this.parent.latestValues)||S1(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(a,l,c){this.relativeParent=a,this.linkedParentVersion=a.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=At(),this.relativeTargetOrigin=At(),yl(this.relativeTargetOrigin,l,c,this.options.layoutAnchor||void 0),Pn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let a=this.getLead(),l=!!this.resumingFrom||this!==a,c=!0;
4if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===Gt.timestamp&&(c=!1),c)return;let{layout:d,layoutId:p}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||p))return;Pn(this.layoutCorrected,this.layout.layoutBox);let m=this.treeScale.x,h=this.treeScale.y;GI(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=At());let{target:g}=a;if(!g){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(E1(this.prevProjectionDelta.x,this.projectionDelta.x),E1(this.prevProjectionDelta.y,this.projectionDelta.y)),rs(this.projectionDelta,this.layoutCorrected,g,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==h||!B1(this.projectionDelta.x,this.prevProjectionDelta.x)||!B1(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g)),rn.value&&is.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){if(this.options.visualElement?.scheduleRender(),a){let l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Fi(),this.projectionDelta=Fi(),this.projectionDeltaWithTransform=Fi()}setAnimationOrigin(a,l=!1){let c=this.snapshot,d=c?c.latestValues:{},p={...this.latestValues},m=Fi();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;let h=At(),g=c?c.source:void 0,w=this.layout?this.layout.source:void 0,$=g!==w,T=this.getStack(),z=!T||T.members.length<=1,P=!!($&&!z&&this.options.crossfade===!0&&!this.path.some(JG));this.animationProgress=0;let k;this.mixTargetDelta=M=>{let E=M/1e3;x8(m.x,a.x,E),x8(m.y,a.y,E),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(yl(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),WG(this.relativeTarget,this.relativeTargetOrigin,h,E),k&&a8(this.relativeTarget,k)&&(this.isProjectionDirty=!1),k||(k=At()),Pn(k,this.relativeTarget)),$&&(this.animationValues=p,p8(p,d,this.latestValues,E,P,z)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Vr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ge.update(()=>{os.hasAnimatedSinceResize=!0,co.layout++,this.motionValue||(this.motionValue=Gn(0)),this.motionValue.jump(0,!1),this.currentAnimation=f8(this.motionValue,[0,1e3],{...a,velocity:0,isSync:!0,onUpdate:l=>{this.mixTargetDelta(l),a.onUpdate&&a.onUpdate(l)},onStop:()=>{co.layout--},onComplete:()=>{co.layout--,a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(NG),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let a=this.getLead(),{targetWithTransforms:l,target:c,layout:d,latestValues:p}=a;if(!(!l||!c||!d)){if(this!==a&&this.layout&&d&&T8(this.options.animationType,this.layout.layoutBox,d.layoutBox)){c=this.target||At();let m=er(this.layout.layoutBox.x);
4c.x.min=a.target.x.min,c.x.max=c.x.min+m;let h=er(this.layout.layoutBox.y);c.y.min=a.target.y.min,c.y.max=c.y.min+h}Pn(l,c),Xu(l,p),rs(this.projectionDeltaWithTransform,this.layoutCorrected,l,p)}}registerSharedNode(a,l){this.sharedNodes.has(a)||this.sharedNodes.set(a,new eh),this.sharedNodes.get(a).add(l);let d=l.options.initialPromotionConfig;l.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(l):void 0})}isLead(){let a=this.getStack();return a?a.lead===this:!0}getLead(){let{layoutId:a}=this.options;return a?this.getStack()?.lead||this:this}getPrevLead(){let{layoutId:a}=this.options;return a?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:l,preserveFollowOpacity:c}={}){let d=this.getStack();d&&d.promote(this,c),a&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){let a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){let{visualElement:a}=this.options;if(!a)return;let l=!1,{latestValues:c}=a;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(l=!0),!l)return;let d={};c.z&&Z1("z",a,d,this.animationValues);for(let p=0;p<F1.length;p++)Z1(`rotate${F1[p]}`,a,d,this.animationValues),Z1(`skew${F1[p]}`,a,d,this.animationValues);a.render();for(let p in d)a.setStaticValue(p,d[p]),this.animationValues&&(this.animationValues[p]=d[p]);a.scheduleRender()}applyProjectionStyles(a,l){if(!this.instance||this.isSVG)return;if(!this.isVisible){a.visibility="hidden";return}let c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,a.visibility="",a.opacity="",a.pointerEvents=ns(l?.pointerEvents)||"",a.transform=c?c(this.latestValues,""):"none";return}let d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){this.options.layoutId&&(a.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,a.pointerEvents=ns(l?.pointerEvents)||""),this.hasProjected&&!Wo(this.latestValues)&&(a.transform=c?c({},""):"none",this.hasProjected=!1);return}a.visibility="";let p=d.animationValues||d.latestValues;this.applyTransformsToTarget();let m=s8(this.projectionDeltaWithTransform,this.treeScale,p);c&&(m=c(p,m)),a.transform=m;let{x:h,y:g}=this.projectionDelta;a.transformOrigin=`${h.origin*100}% ${g.origin*100}% 0`,d.animationValues?a.opacity=d===this?p.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:a.opacity=d===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(let w in Yu){if(p[w]===void 0)continue;let{correct:$,applyTo:T,isCSSVariable:z}=Yu[w],P=m==="none"?p[w]:$(p[w],d);if(T){let k=T.length;for(let M=0;M<k;M++)a[T[M]]=P}else z?this.options.visualElement.renderState.vars[w]=P:a[w]=P}this.options.layoutId&&(a.pointerEvents=d===this?ns(l?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>a.currentAnimation?.stop()),this.root.nodes.forEach(v8),this.root.sharedNodes.clear()}}}function DG(e){e.updateLayout()}function OG(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:r,measuredBox:o}=e.layout,{animationType:n}=e.options,i=t.source!==e.layout.source;if(n==="size")on(p=>{let m=i?t.measuredBox[p]:t.layoutBox[p],h=er(m);m.min=r[p].min,m.max=m.min+h});else if(n==="x"||n==="y"){let p=n==="x"?"y":"x";Yf(i?t.measuredBox[p]:t.layoutBox[p],r[p])}else T8(n,t.layoutBox,r)&&on(p=>{let m=i?t.measuredBox[p]:t.layoutBox[p],h=er(r[p]);m.max=m.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[p].max=e.relativeTarget[p].min+h)});let a=Fi();rs(a,r,t.layoutBox);let l=Fi();i?rs(l,e.applyTransform(o,!0),t.measuredBox):rs(l,r,t.layoutBox);let c=!L1(a),d=!1;if(!e.resumeFrom){let p=e.getClosestProjectingParent();if(p&&!p.resumeFrom){let{snapshot:m,layout:h}=p;if(m&&h){let g=e.options.layoutAnchor||void 0,w=At();yl(w,t.layoutBox,m.layoutBox,g);let $=At();yl($,r,h.layoutBox,g),j1(w,$)||(d=!0),p.options.layoutRoot&&(e.relativeTarget=$,e.relativeTargetOrigin=w,e.relativeParent=p)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeLayoutChanged:d})}else if(e.isLead()){let{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function LG(e){rn.value&&is.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function jG(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function UG(e){e.clearSnapshot()}function v8(e){e.clearMeasurements()}function BG(e){e.isLayoutDirty=!0,e.updateLayout()}function y8(e){e.isLayoutDirty=!1}function FG(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function ZG(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function b8(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function VG(e){e.resolveTargetDelta()}function GG(e){e.calcProjection()}
4function qG(e){e.resetSkewAndRotation()}function HG(e){e.removeLeadSnapshot()}function x8(e,t,r){e.translate=rt(t.translate,0,r),e.scale=rt(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function w8(e,t,r,o){e.min=rt(t.min,r.min,o),e.max=rt(t.max,r.max,o)}function WG(e,t,r,o){w8(e.x,t.x,r.x,o),w8(e.y,t.y,r.y,o)}function JG(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var KG={duration:.45,ease:[.4,0,.1,1]},_8=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),k8=_8("applewebkit/")&&!_8("chrome/")?Math.round:Lt;function S8(e){e.min=k8(e.min),e.max=k8(e.max)}function XG(e){S8(e.x),S8(e.y)}function T8(e,t,r){return e==="position"||e==="preserve-aspect"&&!R1(U1(t),U1(r),.2)}function YG(e){return e!==e.root&&e.scroll?.wasRoot}var I8=th({attachResizeListener:(e,t)=>ho(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0});var rh={current:void 0},id=th({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!rh.current){let e=new I8({});e.mount(window),e.setOptions({layoutScroll:!0}),rh.current=e}return rh.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"});var nh=V(Se(),1),Jo=V(Se(),1);var P8=V(Se(),1),bl=(0,P8.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});var z8=V(Se(),1);function C8(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function QG(...e){return t=>{let r=!1,o=e.map(n=>{let i=C8(n,t);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let n=0;n<o.length;n++){let i=o[n];typeof i=="function"?i():C8(e[n],null)}}}}function E8(...e){return z8.useCallback(QG(...e),e)}var V1=class extends nh.Component{getSnapshotBeforeUpdate(t){let r=this.props.childRef.current;if(Ka(r)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let o=r.offsetParent,n=Ka(o)&&o.offsetWidth||0,i=Ka(o)&&o.offsetHeight||0,a=getComputedStyle(r),l=this.props.sizeRef.current;l.height=parseFloat(a.height),l.width=parseFloat(a.width),l.top=r.offsetTop,l.left=r.offsetLeft,l.right=n-l.width-l.left,l.bottom=i-l.height-l.top}return null}componentDidUpdate(){}render(){return this.props.children}};function M8({children:e,isPresent:t,anchorX:r,anchorY:o,root:n,pop:i}){let a=(0,Jo.useId)(),l=(0,Jo.useRef)(null),c=(0,Jo.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:d}=(0,Jo.useContext)(bl),p=e.props?.ref??e?.ref,m=E8(l,p);return(0,Jo.useInsertionEffect)(()=>{let{width:h,height:g,top:w,left:$,right:T,bottom:z}=c.current;if(t||i===!1||!l.current||!h||!g)return;let P=r==="left"?`left: ${$}`:`right: ${T}`,k=o==="bottom"?`bottom: ${z}`:`top: ${w}`;l.current.dataset.motionPopId=a;let M=document.createElement("style");d&&(M.nonce=d);let E=n??document.head;return E.appendChild(M),M.sheet&&M.sheet.insertRule(`
5          [data-motion-pop-id="${a}"] {
6            position: absolute !important;
7            width: ${h}px !important;
8            height: ${g}px !important;
9            ${P}px !important;
10            ${k}px !important;
11          }
12        `),()=>{l.current?.removeAttribute("data-motion-pop-id"),E.contains(M)&&E.removeChild(M)}},[t]),(0,A8.jsx)(V1,{isPresent:t,childRef:l,sizeRef:c,pop:i,children:i===!1?e:nh.cloneElement(e,{ref:m})})}var R8=({children:e,initial:t,isPresent:r,onExitComplete:o,custom:n,presenceAffectsLayout:i,mode:a,anchorX:l,anchorY:c,root:d})=>{let p=el(eq),m=(0,ad.useId)(),h=!0,g=(0,ad.useMemo)(()=>(h=!1,{id:m,initial:t,isPresent:r,custom:n,onExitComplete:w=>{p.set(w,!0);for(let $ of p.values())if(!$)return;o&&o()},register:w=>(p.set(w,!1),()=>p.delete(w))}),[r,p,o]);return i&&h&&(g={...g}),(0,ad.useMemo)(()=>{p.forEach((w,$)=>p.set($,!1))},[r]),N8.useEffect(()=>{!r&&!p.size&&o&&o()},[r]),e=(0,G1.jsx)(M8,{pop:a==="popLayout",isPresent:r,anchorX:l,anchorY:c,root:d,children:e}),(0,G1.jsx)(Mi.Provider,{value:g,children:e})};function eq(){return new Map}var Vi=V(Se(),1);
12function oh(e=!0){let t=(0,Vi.useContext)(Mi);if(t===null)return[!0,null];let{isPresent:r,onExitComplete:o,register:n}=t,i=(0,Vi.useId)();(0,Vi.useEffect)(()=>{if(e)return n(i)},[e]);let a=(0,Vi.useCallback)(()=>e&&o&&o(i),[i,o,e]);return!r&&o?[!1,a]:[!0]}var ih=V(Se(),1),sd=e=>e.key||"";function q1(e){let t=[];return ih.Children.forEach(e,r=>{(0,ih.isValidElement)(r)&&t.push(r)}),t}var H1=({children:e,custom:t,initial:r=!0,onExitComplete:o,presenceAffectsLayout:n=!0,mode:i="sync",propagate:a=!1,anchorX:l="left",anchorY:c="top",root:d})=>{let[p,m]=oh(a),h=(0,qn.useMemo)(()=>q1(e),[e]),g=a&&!p?[]:h.map(sd),w=(0,qn.useRef)(!0),$=(0,qn.useRef)(h),T=el(()=>new Map),z=(0,qn.useRef)(new Set),[P,k]=(0,qn.useState)(h),[M,E]=(0,qn.useState)(h);tf(()=>{w.current=!1,$.current=h;for(let H=0;H<M.length;H++){let Z=sd(M[H]);g.includes(Z)?(T.delete(Z),z.current.delete(Z)):T.get(Z)!==!0&&T.set(Z,!1)}},[M,g.length,g.join("-")]);let D=[];if(h!==P){let H=[...h];for(let Z=0;Z<M.length;Z++){let W=M[Z],ke=sd(W);g.includes(ke)||(H.splice(Z,0,W),D.push(W))}return i==="wait"&&D.length&&(H=D),E(q1(H)),k(h),null}let{forceRender:F}=(0,qn.useContext)(Qs);return(0,ld.jsx)(ld.Fragment,{children:M.map(H=>{let Z=sd(H),W=a&&!p?!1:h===M||g.includes(Z),ke=()=>{if(z.current.has(Z))return;if(T.has(Z))z.current.add(Z),T.set(Z,!0);else return;let ge=!0;T.forEach(xt=>{xt||(ge=!1)}),ge&&(F?.(),E($.current),a&&m?.(),o&&o())};return(0,ld.jsx)(R8,{isPresent:W,initial:!w.current||r?void 0:!1,custom:t,presenceAffectsLayout:n,mode:i,root:d,onExitComplete:W?void 0:ke,anchorX:l,anchorY:c,children:H},Z)})})};var D8=V(Se(),1),ah=(0,D8.createContext)({strict:!1});var O8={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},L8=!1;function tq(){if(L8)return;let e={};for(let t in O8)e[t]={isEnabled:r=>O8[t].some(o=>!!r[o])};Wu(e),L8=!0}function sh(){return tq(),x1()}function j8(e){let t=sh();for(let r in e)t[r]={...t[r],...e[r]};Wu(t)}var rq=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function cd(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||rq.has(e)}var U8=e=>!cd(e);function nq(e){typeof e=="function"&&(U8=t=>t.startsWith("on")?!cd(t):e(t))}try{nq(w$("@emotion/is-prop-valid").default)}catch{}function B8(e,t,r){let o={};for(let n in e)n==="values"&&typeof e.values=="object"||ht(e[n])||(U8(n)||r===!0&&cd(n)||!t&&!cd(n)||e.draggable&&n.startsWith("onDrag"))&&(o[n]=e[n]);return o}var ph=V(le(),1);var kl=V(Se(),1);var F8=V(Se(),1),Gi=(0,F8.createContext)({});var lh=V(Se(),1);function Z8(e,t){if(Zi(e)){let{initial:r,animate:o}=e;return{initial:r===!1||fo(r)?r:void 0,animate:fo(o)?o:void 0}}return e.inherit!==!1?t:{}}function G8(e){let{initial:t,animate:r}=Z8(e,(0,lh.useContext)(Gi));return(0,lh.useMemo)(()=>({initial:t,animate:r}),[V8(t),V8(r)])}function V8(e){return Array.isArray(e)?e.join(" "):e}var _l=V(Se(),1);var q8=V(Se(),1);var xl=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function W1(e,t,r){for(let o in t)!ht(t[o])&&!Qu(o,r)&&(e[o]=t[o])}function oq({transformTemplate:e},t){return(0,q8.useMemo)(()=>{let r=xl();return Qa(r,t,e),Object.assign({},r.vars,r.style)},[t])}function iq(e,t){let r=e.style||{},o={};return W1(o,r,e),Object.assign(o,oq(e,t)),o}function H8(e,t){let r={},o=iq(e,t);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}
12`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}var W8=V(Se(),1);var ch=()=>({...xl(),attrs:{}});function J8(e,t,r,o){let n=(0,W8.useMemo)(()=>{let i=ch();return td(i,t,rd(o),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){let i={};W1(i,e.style,e),n.style={...i,...n.style}}return n}var K8=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function wl(e){return typeof e!="string"||e.includes("-")?!1:!!(K8.indexOf(e)>-1||/[A-Z]/u.test(e))}function X8(e,t,r,{latestValues:o},n,i=!1,a){let c=(a??wl(e)?J8:H8)(t,o,n,e),d=B8(t,typeof e=="string",i),p=e!==_l.Fragment?{...d,...c,ref:r}:{},{children:m}=t,h=(0,_l.useMemo)(()=>ht(m)?m.get():m,[m]);return(0,_l.createElement)(e,{...p,children:h})}var J1=V(Se(),1);function aq({scrapeMotionValuesFromProps:e,createRenderState:t},r,o,n){return{latestValues:sq(r,o,n,e),renderState:t()}}function sq(e,t,r,o){let n={},i=o(e,{});for(let h in i)n[h]=ns(i[h]);let{initial:a,animate:l}=e,c=Zi(e),d=Gu(e);t&&d&&!c&&e.inherit!==!1&&(a===void 0&&(a=t.initial),l===void 0&&(l=t.animate));let p=r?r.initial===!1:!1;p=p||a===!1;let m=p?l:a;if(m&&typeof m!="boolean"&&!Ho(m)){let h=Array.isArray(m)?m:[m];for(let g=0;g<h.length;g++){let w=Ja(e,h[g]);if(w){let{transitionEnd:$,transition:T,...z}=w;for(let P in z){let k=z[P];if(Array.isArray(k)){let M=p?k.length-1:0;k=k[M]}k!==null&&(n[P]=k)}for(let P in $)n[P]=$[P]}}}return n}var uh=e=>(t,r)=>{let o=(0,J1.useContext)(Gi),n=(0,J1.useContext)(Mi),i=()=>aq(e,t,o,n);return r?i():el(i)};var Y8=uh({scrapeMotionValuesFromProps:es,createRenderState:xl});var Q8=uh({scrapeMotionValuesFromProps:nd,createRenderState:ch});var e9=Symbol.for("motionComponentSymbol");var as=V(Se(),1);function t9(e,t,r){let o=(0,as.useRef)(r);(0,as.useInsertionEffect)(()=>{o.current=r});let n=(0,as.useRef)(null);return(0,as.useCallback)(i=>{i&&e.onMount?.(i);let a=o.current;if(typeof a=="function")if(i){let l=a(i);typeof l=="function"&&(n.current=l)}else n.current?(n.current(),n.current=null):a(i);else a&&(a.current=i);t&&(i?t.mount(i):t.unmount())},[t])}var zr=V(Se(),1);var r9=V(Se(),1),dh=(0,r9.createContext)({});function qi(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function n9(e,t,r,o,n,i){let{visualElement:a}=(0,zr.useContext)(Gi),l=(0,zr.useContext)(ah),c=(0,zr.useContext)(Mi),d=(0,zr.useContext)(bl),p=d.reducedMotion,m=d.skipAnimations,h=(0,zr.useRef)(null),g=(0,zr.useRef)(!1);o=o||l.renderer,!h.current&&o&&(h.current=o(e,{visualState:t,parent:a,props:r,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:p,skipAnimations:m,isSVG:i}),g.current&&h.current&&(h.current.manuallyAnimateOnMount=!0));let w=h.current,$=(0,zr.useContext)(dh);w&&!w.projection&&n&&(w.type==="html"||w.type==="svg")&&lq(h.current,r,n,$);let T=(0,zr.useRef)(!1);(0,zr.useInsertionEffect)(()=>{w&&T.current&&w.update(r,c)});let z=r[Bu],P=(0,zr.useRef)(!!z&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(z)&&window.MotionHasOptimisedAnimation?.(z));return tf(()=>{g.current=!0,w&&(T.current=!0,window.MotionIsMounted=!0,w.updateFeatures(),w.scheduleRenderMicrotask(),P.current&&w.animationState&&w.animationState.animateChanges())}),(0,zr.useEffect)(()=>{w&&(!P.current&&w.animationState&&w.animationState.animateChanges(),P.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(z)}),P.current=!1),w.enteringChildren=void 0)}),w}function lq(e,t,r,o){let{layoutId:n,layout:i,drag:a,dragConstraints:l,layoutScroll:c,layoutRoot:d,layoutAnchor:p,layoutCrossfade:m}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:o9(e.parent)),e.projection.setOptions({layoutId:n,layout:i,alwaysMeasureLayout:!!a||l&&qi(l),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:o,crossfade:m,layoutScroll:c,layoutRoot:d,layoutAnchor:p})}function o9(e){if(e)return e.options.allowProjection!==!1?e.projection:o9(e.parent)}function mh(e,{forwardMotionProps:t=!1,type:r}={},o,n){o&&j8(o);let i=r?r==="svg":wl(e),a=i?Q8:Y8;function l(d,p){let m,h={...(0,kl.useContext)(bl),...d,layoutId:cq(d)},{isStatic:g}=h,w=G8(d),$=a(d,g);if(!g&&typeof window<"u"){uq(h,o);let T=dq(h);m=T.MeasureLayout,w.visualElement=n9(e,$,h,n,T.ProjectionNode,i)}return(0,ph.jsxs)(Gi.Provider,{value:w,children:[m&&w.visualElement?(0,ph.jsx)(m,{visualElement:w.visualElement,...h}):null,X8(e,d,t9($,w.visualElement,p),$,g,t,i)]})}l.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;let c=(0,kl.forwardRef)(l);return c[e9]=e,c}function cq({layoutId:e}){let t=(0,kl.useContext)(Qs).id;return t&&e!==void 0?t+"-"+e:e}function uq(e,t){let r=(0,kl.useContext)(ah).strict}function dq(e){let t=sh(),{drag:r,layout:o}=t;if(!r&&!o)return{};let n={...r,...o};return{MeasureLayout:r?.isEnabled(e)||o?.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}
12function i9(e,t){if(typeof Proxy>"u")return mh;let r=new Map,o=(i,a)=>mh(i,a,e,t),n=(i,a)=>o(i,a);return new Proxy(n,{get:(i,a)=>a==="create"?o:(r.has(a)||r.set(a,mh(a,void 0,e,t)),r.get(a))})}var a9=V(Se(),1);var s9=(e,t)=>t.isSVG??wl(e)?new od(t):new ed(t,{allowProjection:e!==a9.Fragment});var fh=class extends sr{constructor(t){super(t),t.animationState||(t.animationState=z1(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();Ho(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}};var pq=0,hh=class extends sr{constructor(){super(...arguments),this.id=pq++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:r}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;if(t&&o===!1){if(this.isExitComplete){let{initial:i,custom:a}=this.node.getProps();if(typeof i=="string"){let l=nn(this.node,i,a);if(l){let{transition:c,transitionEnd:d,...p}=l;for(let m in p)this.node.getValue(m)?.jump(p[m])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let n=this.node.animationState.setActive("exit",!t);r&&!t&&n.then(()=>{this.isExitComplete=!0,r(this.id)})}mount(){let{register:t,onExitComplete:r}=this.node.presenceContext||{};r&&r(this.id),t&&(this.unmount=t(this.id))}unmount(){}};var l9={animation:{Feature:fh},exit:{Feature:hh}};function Ko(e){return{point:{x:e.pageX,y:e.pageY}}}var c9=e=>t=>Ya(t)&&e(t,Ko(t));function Hi(e,t,r,o){return ho(e,t,c9(r),o)}var gh=({current:e})=>e?e.ownerDocument.defaultView:null;var u9=(e,t)=>Math.abs(e-t);function d9(e,t){let r=u9(e.x,t.x),o=u9(e.y,t.y);return Math.sqrt(r**2+o**2)}var p9=new Set(["auto","scroll"]),Sl=class{constructor(t,r,{transformPagePoint:o,contextWindow:n=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:l}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=g=>{this.handleScroll(g.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=vh(this.lastRawMoveEventInfo,this.transformPagePoint));let g=K1(this.lastMoveEventInfo,this.history),w=this.startEvent!==null,$=d9(g.offset,{x:0,y:0})>=this.distanceThreshold;if(!w&&!$)return;let{point:T}=g,{timestamp:z}=Gt;this.history.push({...T,timestamp:z});let{onStart:P,onMove:k}=this.handlers;w||(P&&P(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),k&&k(this.lastMoveEvent,g)},this.handlePointerMove=(g,w)=>{this.lastMoveEvent=g,this.lastRawMoveEventInfo=w,this.lastMoveEventInfo=vh(w,this.transformPagePoint),Ge.update(this.updatePoint,!0)},this.handlePointerUp=(g,w)=>{this.end();let{onEnd:$,onSessionEnd:T,resumeAnimation:z}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&z&&z(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let P=K1(g.type==="pointercancel"?this.lastMoveEventInfo:vh(w,this.transformPagePoint),this.history);this.startEvent&&$&&$(g,P),T&&T(g,P)},!Ya(t))return;this.dragSnapToOrigin=i,this.handlers=r,this.transformPagePoint=o,this.distanceThreshold=a,this.contextWindow=n||window;let c=Ko(t),d=vh(c,this.transformPagePoint),{point:p}=d,{timestamp:m}=Gt;this.history=[{...p,timestamp:m}];let{onSessionStart:h}=r;h&&h(t,K1(d,this.history)),this.removeListeners=Zn(Hi(this.contextWindow,"pointermove",this.handlePointerMove),Hi(this.contextWindow,"pointerup",this.handlePointerUp),Hi(this.contextWindow,"pointercancel",this.handlePointerUp)),l&&this.startScrollTracking(l)}startScrollTracking(t){let r=t.parentElement;for(;r;){let o=getComputedStyle(r);(p9.has(o.overflowX)||p9.has(o.overflowY))&&this.scrollPositions.set(r,{x:r.scrollLeft,y:r.scrollTop}),r=r.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let r=this.scrollPositions.get(t);if(!r)return;let o=t===window,n=o?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},i={x:n.x-r.x,y:n.y-r.y};i.x===0&&i.y===0||(o?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(t,n),Ge.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Vr(this.updatePoint)}};function vh(e,t){return t?{point:t(e.point)}:e}function m9(e,t){return{x:e.x-t.x,y:e.y-t.y}}function K1({point:e},t){return{point:e,delta:m9(e,f9(t)),offset:m9(e,mq(t)),velocity:fq(t,.1)}}function mq(e){return e[0]}function f9(e){return e[e.length-1]}function fq(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,o=null,n=f9(e);for(;r>=0&&(o=e[r],!(n.timestamp-o.timestamp>Jt(t)));)r--;if(!o)return{x:0,y:0};o===e[0]&&e.length>2&&n.timestamp-o.timestamp>Jt(t)*2&&(o=e[1]);let i=mr(n.timestamp-o.timestamp);if(i===0)return{x:0,y:0};let a={x:(n.x-o.x)/i,y:(n.y-o.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function b9(e,{min:t,max:r},o){return t!==void 0&&e<t?e=o?rt(t,e,o.min):Math.max(e,t):r!==void 0&&e>r&&(e=o?rt(r,e,o.max):Math.min(e,r)),e}function h9(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function x9(e,{top:t,left:r,bottom:o,right:n}){return{x:h9(e.x,r,n),y:h9(e.y,t,o)}}function g9(e,t){let r=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,o]=[o,r]),{min:r,max:o}}function w9(e,t){return{x:g9(e.x,t.x),y:g9(e.y,t.y)}}function _9(e,t){let r=.5,o=er(e),n=er(t);return n>o?r=lo(t.min,t.max-o,e.min):o>n&&(r=lo(e.min,e.max-n,t.min)),ir(0,1,r)}function k9(e,t){let r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}var yh=.35;function S9(e=yh){return e===!1?e=0:e===!0&&(e=yh),{x:v9(e,"left","right"),y:v9(e,"top","bottom")}}function v9(e,t,r){return{min:y9(e,t),max:y9(e,r)}}function y9(e,t){return typeof e=="number"?e:e[t]||0}var hq=new WeakMap,xh=class{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=At(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:r=!1,distanceThreshold:o}={}){let{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;let i=m=>{r&&this.snapToCursor(Ko(m).point),this.stopAnimation()},a=(m,h)=>{let{drag:g,dragPropagation:w,onDragStart:$}=this.getProps();if(g&&!w&&(this.openDragLock&&this.openDragLock(),this.openDragLock=d1(g),!this.openDragLock))return;this.latestPointerEvent=m,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),on(z=>{let P=this.getAxisMotionValue(z).get()||0;if(wr.test(P)){let{projection:k}=this.visualElement;if(k&&k.layout){let M=k.layout.layoutBox[z];M&&(P=er(M)*(parseFloat(P)/100))}}this.originPoint[z]=P}),$&&Ge.update(()=>$(m,h),!1,!0),ul(this.visualElement,"transform");let{animationState:T}=this.visualElement;T&&T.setActive("whileDrag",!0)},l=(m,h)=>{this.latestPointerEvent=m,this.latestPanInfo=h;let{dragPropagation:g,dragDirectionLock:w,onDirectionLock:$,onDrag:T}=this.getProps();if(!g&&!this.openDragLock)return;let{offset:z}=h;if(w&&this.currentDirection===null){this.currentDirection=vq(z),this.currentDirection!==null&&$&&$(this.currentDirection);return}this.updateAxis("x",h.point,z),this.updateAxis("y",h.point,z),this.visualElement.render(),T&&Ge.update(()=>T(m,h),!1,!0)},c=(m,h)=>{this.latestPointerEvent=m,this.latestPanInfo=h,this.stop(m,h),this.latestPointerEvent=null,this.latestPanInfo=null},d=()=>{let{dragSnapToOrigin:m}=this.getProps();(m||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:p}=this.getProps();this.panSession=new Sl(t,{onSessionStart:i,onStart:a,onMove:l,onSessionEnd:c,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,distanceThreshold:o,contextWindow:gh(this.visualElement),element:this.visualElement.current})}stop(t,r){let o=t||this.latestPointerEvent,n=r||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!n||!o)return;let{velocity:a}=n;this.startAnimation(a);let{onDragEnd:l}=this.getProps();l&&Ge.postRender(()=>l(o,n))}cancel(){this.isDragging=!1;let{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),r&&r.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,r,o){let{drag:n}=this.getProps();if(!o||!bh(t,n,this.currentDirection))return;let i=this.getAxisMotionValue(t),a=this.originPoint[t]+o[t];this.constraints&&this.constraints[t]&&(a=b9(a,this.constraints[t],this.elastic[t])),i.set(a)}resolveConstraints(){let{dragConstraints:t,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&qi(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&o?this.constraints=x9(o.layoutBox,t):this.constraints=!1,this.elastic=S9(r),n!==this.constraints&&!qi(t)&&o&&this.constraints&&!this.hasMutatedConstraints&&on(i=>{this.constraints!==!1&&this.getAxisMotionValue(i)&&(this.constraints[i]=k9(o.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!qi(t))return!1;let o=t.current;Sn(o!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;let i=I1(o,n.root,this.visualElement.getTransformPagePoint()),a=w9(n.layout.layoutBox,i);if(r){let l=r(w1(a));this.hasMutatedConstraints=!!l,l&&(a=Ju(l))}return a}startAnimation(t){let{drag:r,dragMomentum:o,dragElastic:n,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},d=on(p=>{if(!bh(p,r,this.currentDirection))return;let m=c&&c[p]||{};
12(a===!0||a===p)&&(m={min:0,max:0});let h=n?200:1e6,g=n?40:1e7,w={type:"inertia",velocity:o?t[p]:0,bounceStiffness:h,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...i,...m};return this.startAxisValueAnimation(p,w)});return Promise.all(d).then(l)}startAxisValueAnimation(t,r){let o=this.getAxisMotionValue(t);return ul(this.visualElement,t),o.start(Wa(t,o,0,r,this.visualElement,!1))}stopAnimation(){on(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let r=`_drag${t.toUpperCase()}`,o=this.visualElement.getProps(),n=o[r];return n||this.visualElement.getValue(t,(o.initial?o.initial[t]:void 0)||0)}snapToCursor(t){on(r=>{let{drag:o}=this.getProps();if(!bh(r,o,this.currentDirection))return;let{projection:n}=this.visualElement,i=this.getAxisMotionValue(r);if(n&&n.layout){let{min:a,max:l}=n.layout.layoutBox[r],c=i.get()||0;i.set(t[r]-rt(a,l,.5)+c)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:r}=this.getProps(),{projection:o}=this.visualElement;if(!qi(r)||!o||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};on(a=>{let l=this.getAxisMotionValue(a);if(l&&this.constraints!==!1){let c=l.get();n[a]=_9({min:c,max:c},this.constraints[a])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.constraints=!1,this.resolveConstraints(),on(a=>{if(!bh(a,t,null))return;let l=this.getAxisMotionValue(a),{min:c,max:d}=this.constraints[a];l.set(rt(c,d,n[a]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;hq.set(this.visualElement,this);let t=this.visualElement.current,r=Hi(t,"pointerdown",d=>{let{drag:p,dragListener:m=!0}=this.getProps(),h=d.target,g=h!==t&&h1(h);p&&m&&!g&&this.start(d)}),o,n=()=>{let{dragConstraints:d}=this.getProps();qi(d)&&d.current&&(this.constraints=this.resolveRefConstraints(),o||(o=gq(t,d.current,()=>this.scalePositionWithinConstraints())))},{projection:i}=this.visualElement,a=i.addEventListener("measure",n);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Ge.read(n);let l=ho(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",(({delta:d,hasLayoutChanged:p})=>{this.isDragging&&p&&(on(m=>{let h=this.getAxisMotionValue(m);h&&(this.originPoint[m]+=d[m].translate,h.set(h.get()+d[m].translate))}),this.visualElement.render())}));return()=>{l(),r(),a(),c&&c(),o&&o()}}getProps(){let t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:o=!1,dragPropagation:n=!1,dragConstraints:i=!1,dragElastic:a=yh,dragMomentum:l=!0}=t;return{...t,drag:r,dragDirectionLock:o,dragPropagation:n,dragConstraints:i,dragElastic:a,dragMomentum:l}}};function $9(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function gq(e,t,r){let o=Vf(e,$9(r)),n=Vf(t,$9(r));return()=>{o(),n()}}function bh(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function vq(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}var wh=class extends sr{constructor(t){super(t),this.removeGroupControls=Lt,this.removeListeners=Lt,this.controls=new xh(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Lt}update(){let{dragControls:t}=this.node.getProps(),{dragControls:r}=this.node.prevProps||{};t!==r&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}};var X1=e=>(t,r)=>{e&&Ge.update(()=>e(t,r),!1,!0)},_h=class extends sr{constructor(){super(...arguments),this.removePointerDownListener=Lt}onPointerDown(t){this.session=new Sl(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:gh(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:r,onPan:o,onPanEnd:n}=this.node.getProps();return{onSessionStart:X1(t),onStart:X1(r),onMove:X1(o),onEnd:(i,a)=>{delete this.session,n&&Ge.postRender(()=>n(i,a))}}}mount(){this.removePointerDownListener=Hi(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};var T9=V(le(),1);var ud=V(Se(),1);var Y1=!1,Q1=class extends ud.Component{componentDidMount(){let{visualElement:t,layoutGroup:r,switchLayoutGroup:o,layoutId:n}=this.props,{projection:i}=t;i&&(r.group&&r.group.add(i),o&&o.register&&n&&o.register(i),Y1&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),os.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:r,visualElement:o,drag:n,isPresent:i}=this.props,{projection:a}=o;return a&&(a.isPresent=i,t.layoutDependency!==r&&a.setOptions({...a.options,layoutDependency:r}
12),Y1=!0,n||t.layoutDependency!==r||r===void 0||t.isPresent!==i?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||Ge.postRender(()=>{let l=a.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:t,layoutAnchor:r}=this.props,{projection:o}=t;o&&(o.options.layoutAnchor=r,o.root.didUpdate(),Xa.postRender(()=>{!o.currentAnimation&&o.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:r,switchLayoutGroup:o}=this.props,{projection:n}=t;Y1=!0,n&&(n.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(n),o&&o.deregister&&o.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}};function kh(e){let[t,r]=oh(),o=(0,ud.useContext)(Qs);return(0,T9.jsx)(Q1,{...e,layoutGroup:o,switchLayoutGroup:(0,ud.useContext)(dh),isPresent:t,safeToRemove:r})}var I9={pan:{Feature:_h},drag:{Feature:wh,ProjectionNode:id,MeasureLayout:kh}};function P9(e,t,r){let{props:o}=e;e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",r==="Start");let n="onHover"+r,i=o[n];i&&Ge.postRender(()=>i(t,Ko(t)))}var Sh=class extends sr{mount(){let{current:t}=this.node;t&&(this.unmount=p1(t,(r,o)=>(P9(this.node,o,"Start"),n=>P9(this.node,n,"End"))))}unmount(){}};var $h=class extends sr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Zn(ho(this.node.current,"focus",()=>this.onFocus()),ho(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function C9(e,t,r){let{props:o}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&o.whileTap&&e.animationState.setActive("whileTap",r==="Start");let n="onTap"+(r==="End"?"":r),i=o[n];i&&Ge.postRender(()=>i(t,Ko(t)))}var Th=class extends sr{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:r,propagate:o}=this.node.props;this.unmount=v1(t,(n,i)=>(C9(this.node,i,"Start"),(a,{success:l})=>C9(this.node,a,l?"End":"Cancel")),{useGlobalTarget:r,stopPropagation:o?.tap===!1})}unmount(){}};var tx=new WeakMap,ex=new WeakMap,yq=e=>{let t=tx.get(e.target);t&&t(e)},bq=e=>{e.forEach(yq)};function xq({root:e,...t}){let r=e||document;ex.has(r)||ex.set(r,{});let o=ex.get(r),n=JSON.stringify(t);return o[n]||(o[n]=new IntersectionObserver(bq,{root:e,...t})),o[n]}function z9(e,t,r){let o=xq(t);return tx.set(e,r),o.observe(e),()=>{tx.delete(e),o.unobserve(e)}}var wq={some:0,all:1},Ih=class extends sr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:t={}}=this.node.getProps(),{root:r,margin:o,amount:n="some",once:i}=t,a={root:r?r.current:void 0,rootMargin:o,threshold:typeof n=="number"?n:wq[n]},l=c=>{let{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,i&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);let{onViewportEnter:p,onViewportLeave:m}=this.node.getProps(),h=d?p:m;h&&h(c)};this.stopObserver=z9(this.node.current,a,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;let{props:t,prevProps:r}=this.node;["amount","margin","root"].some(_q(t,r))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function _q({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}var E9={inView:{Feature:Ih},tap:{Feature:Th},focus:{Feature:$h},hover:{Feature:Sh}};var A9={layout:{ProjectionNode:id,MeasureLayout:kh}};var M9={...l9,...E9,...I9,...A9};var rx=i9(M9,s9);var dd=V(Se());var nx=V(le());var q4e=dd.createContext(null);var kq=V(le());var K4e=Ba("flex shrink-0 items-center justify-center mb-2 [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",icon:"bg-muted text-foreground flex size-10 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*='size-'])]:size-6"}},defaultVariants:{variant:"default"}});var Sq=V(le());var N9=V(le());var R9=V(le());var U9=V(le());var W9=V(Se());var y2e=V(Se());var B9=V(le());var w2e=V(Se());var Pq=V(le());var J9=V(le());var Nh=V(Se());var q2e=V(Se());var ze=V(Se(),1);var X9=V(Se(),1),ut=V(le(),1);function Uq(e,t){return X9.useReducer((r,o)=>t[r][o]??r,e)}var ix="ScrollArea",[Y9,G2e]=N$(ix),[Bq,Cn]=Y9(ix),Q9=ze.forwardRef((e,t)=>
vendor: 8,513 bytes, line 12
12{let{__scopeScrollArea:r,type:o="hover",dir:n,scrollHideDelay:i=600,...a}=e,[l,c]=ze.useState(null),[d,p]=ze.useState(null),[m,h]=ze.useState(null),[g,w]=ze.useState(null),[$,T]=ze.useState(null),[z,P]=ze.useState(0),[k,M]=ze.useState(0),[E,D]=ze.useState(!1),[F,H]=ze.useState(!1),Z=Fa(t,ke=>c(ke)),W=D$(n);return(0,ut.jsx)(Bq,{scope:r,type:o,dir:W,scrollHideDelay:i,scrollArea:l,viewport:d,onViewportChange:p,content:m,onContentChange:h,scrollbarX:g,onScrollbarXChange:w,scrollbarXEnabled:E,onScrollbarXEnabledChange:D,scrollbarY:$,onScrollbarYChange:T,scrollbarYEnabled:F,onScrollbarYEnabledChange:H,onCornerWidthChange:P,onCornerHeightChange:M,children:(0,ut.jsx)(Js.div,{dir:W,...a,ref:Z,style:{position:"relative","--radix-scroll-area-corner-width":z+"px","--radix-scroll-area-corner-height":k+"px",...e.style}})})});Q9.displayName=ix;var eP="ScrollAreaViewport",tP=ze.forwardRef((e,t)=>{let{__scopeScrollArea:r,children:o,nonce:n,...i}=e,a=Cn(eP,r),l=ze.useRef(null),c=Fa(t,l,a.onViewportChange);return(0,ut.jsxs)(ut.Fragment,{children:[(0,ut.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),(0,ut.jsx)(Js.div,{"data-radix-scroll-area-viewport":"",...i,ref:c,style:{overflowX:a.scrollbarXEnabled?"scroll":"hidden",overflowY:a.scrollbarYEnabled?"scroll":"hidden",...e.style},children:(0,ut.jsx)("div",{ref:a.onContentChange,style:{minWidth:"100%",display:"table"},children:o})})]})});tP.displayName=eP;var go="ScrollAreaScrollbar",ax=ze.forwardRef((e,t)=>{let{forceMount:r,...o}=e,n=Cn(go,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:a}=n,l=e.orientation==="horizontal";return ze.useEffect(()=>(l?i(!0):a(!0),()=>{l?i(!1):a(!1)}),[l,i,a]),n.type==="hover"?(0,ut.jsx)(Fq,{...o,ref:t,forceMount:r}):n.type==="scroll"?(0,ut.jsx)(Zq,{...o,ref:t,forceMount:r}):n.type==="auto"?(0,ut.jsx)(rP,{...o,ref:t,forceMount:r}):n.type==="always"?(0,ut.jsx)(sx,{...o,ref:t}):null});ax.displayName=go;var Fq=ze.forwardRef((e,t)=>{let{forceMount:r,...o}=e,n=Cn(go,e.__scopeScrollArea),[i,a]=ze.useState(!1);return ze.useEffect(()=>{let l=n.scrollArea,c=0;if(l){let d=()=>{window.clearTimeout(c),a(!0)},p=()=>{c=window.setTimeout(()=>a(!1),n.scrollHideDelay)};return l.addEventListener("pointerenter",d),l.addEventListener("pointerleave",p),()=>{window.clearTimeout(c),l.removeEventListener("pointerenter",d),l.removeEventListener("pointerleave",p)}}},[n.scrollArea,n.scrollHideDelay]),(0,ut.jsx)(gu,{present:r||i,children:(0,ut.jsx)(rP,{"data-state":i?"visible":"hidden",...o,ref:t})})}),Zq=ze.forwardRef((e,t)=>{let{forceMount:r,...o}=e,n=Cn(go,e.__scopeScrollArea),i=e.orientation==="horizontal",a=Ah(()=>c("SCROLL_END"),100),[l,c]=Uq("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return ze.useEffect(()=>{if(l==="idle"){let d=window.setTimeout(()=>c("HIDE"),n.scrollHideDelay);return()=>window.clearTimeout(d)}},[l,n.scrollHideDelay,c]),ze.useEffect(()=>{let d=n.viewport,p=i?"scrollLeft":"scrollTop";if(d){let m=d[p],h=()=>{let g=d[p];m!==g&&(c("SCROLL"),a()),m=g};return d.addEventListener("scroll",h),()=>d.removeEventListener("scroll",h)}},[n.viewport,i,c,a]),(0,ut.jsx)(gu,{present:r||l!=="hidden",children:(0,ut.jsx)(sx,{"data-state":l==="hidden"?"hidden":"visible",...o,ref:t,onPointerEnter:Ei(e.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:Ei(e.onPointerLeave,()=>c("POINTER_LEAVE"))})})}),rP=ze.forwardRef((e,t)=>{let r=Cn(go,e.__scopeScrollArea),{forceMount:o,...n}=e,[i,a]=ze.useState(!1),l=e.orientation==="horizontal",c=Ah(()=>{if(r.viewport){let d=r.viewport.offsetWidth<r.viewport.scrollWidth,p=r.viewport.offsetHeight<r.viewport.scrollHeight;a(l?d:p)}},10);return Tl(r.viewport,c),Tl(r.content,c),(0,ut.jsx)(gu,{present:o||i,children:(0,ut.jsx)(sx,{"data-state":i?"visible":"hidden",...n,ref:t})})}),sx=ze.forwardRef((e,t)=>{let{orientation:r="vertical",...o}=e,n=Cn(go,e.__scopeScrollArea),i=ze.useRef(null),a=ze.useRef(0),[l,c]=ze.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),d=aP(l.viewport,l.content),p={...o,sizes:l,onSizesChange:c,hasThumb:d>0&&d<1,onThumbChange:h=>i.current=h,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:h=>a.current=h};function m(h,g){return Jq(h,a.current,l,g)}return r==="horizontal"?(0,ut.jsx)(Vq,{...p,ref:t,onThumbPositionChange:()=>{if(n.viewport&&i.current){let h=n.viewport.scrollLeft,g=K9(h,l,n.dir);i.current.style.transform=`translate3d(${g}px, 0, 0)`}},onWheelScroll:h=>{n.viewport&&(n.viewport.scrollLeft=h)},onDragScroll:h=>{n.viewport&&(n.viewport.scrollLeft=m(h,n.dir))}}):r==="vertical"?(0,ut.jsx)(Gq,{...p,ref:t,onThumbPositionChange:()=>{if(n.viewport&&i.current){let h=n.viewport.scrollTop,g=K9(h,l);i.current.style.transform=`translate3d(0, ${g}px, 0)`}},onWheelScroll:h=>{n.viewport&&(n.viewport.scrollTop=h)},onDragScroll:h=>{n.viewport&&(n.viewport.scrollTop=m(h))}}):null}),Vq=ze.forwardRef((e,t)=>{let{sizes:r,onSizesChange:o,...n}=e,i=Cn(go,e.__scopeScrollArea),[a,l]=ze.useState(),c=ze.useRef(null),d=Fa(t,c,i.onScrollbarXChange);return ze.useEffect(()=>{c.current&&l(getComputedStyle(c.current))},[c]),(0,ut.jsx)(oP,{"data-orientation":"horizontal",...n,ref:d,sizes:r,style:{bottom:0,left:i.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:i.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Eh(r)+"px",...e.style},onThumbPointerDown:p=>e.onThumbPointerDown(p.x),onDragScroll:p=>e.onDragScroll(p.x),onWheelScroll:(p,m)=>{if(i.viewport){let h=i.viewport.scrollLeft+p.deltaX;e.onWheelScroll(h),lP(h,m)&&p.preventDefault()}},onResize:()=>{c.current&&i.viewport&&a&&o({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:zh(a.paddingLeft),paddingEnd:zh(a.paddingRight)}})}})}),Gq=ze.forwardRef((e,t)=>{let{sizes:r,onSizesChange:o,...n}=e,i=Cn(go,e.__scopeScrollArea),[a,l]=ze.useState(),c=ze.useRef(null),d=Fa(t,c,i.onScrollbarYChange);return ze.useEffect(()=>{c.current&&l(getComputedStyle(c.current))},[c]),(0,ut.jsx)(oP,{"data-orientation":"vertical",...n,ref:d,sizes:r,style:{top:0,right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Eh(r)+"px",...e.style},onThumbPointerDown:p=>e.onThumbPointerDown(p.y),onDragScroll:p=>e.onDragScroll(p.y),onWheelScroll:(p,m)=>{if(i.viewport){let h=i.viewport.scrollTop+p.deltaY;e.onWheelScroll(h),lP(h,m)&&p.preventDefault()}},onResize:()=>{c.current&&i.viewport&&a&&o({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:zh(a.paddingTop),paddingEnd:zh(a.paddingBottom)}})}})}),[qq,nP]=Y9(go),oP=ze.forwardRef((e,t)=>{let{__scopeScrollArea:r,sizes:o,hasThumb:n,onThumbChange:i,onThumbPointerUp:a,onThumbPointerDown:l,onThumbPositionChange:c,onDragScroll:d,onWheelScroll:p,onResize:m,...h}=e,g=Cn(go,r),[w,$]=ze.useState(null),T=Fa(t,Z=>$(Z)),z=ze.useRef(null),P=ze.useRef(""),k=g.viewport,M=o.content-o.viewport,E=Ai(p),D=Ai(c),F=Ah(m,10);function H(Z){if(z.current){let W=Z.clientX-z.current.left,ke=Z.clientY-z.current.top;d({x:W,y:ke})}}return ze.useEffect(()=>{let Z=W=>{let ke=W.target;w?.contains(ke)&&E(W,M)};return document.addEventListener("wheel",Z,{passive:!1}),()=>document.removeEventListener("wheel",Z,{passive:!1})},[k,w,M,E]),ze.useEffect(D,[o,D]),Tl(w,F),Tl(g.content,F),(0,ut.jsx)(qq,{scope:r,scrollbar:w,hasThumb:n,onThumbChange:Ai(i),onThumbPointerUp:Ai(a),onThumbPositionChange:D,onThumbPointerDown:Ai(l),children:(0,ut.jsx)(Js.div,{...h,ref:T,style:{position:"absolute",...h.style},onPointerDown:Ei(e.onPointerDown,Z=>{Z.button===0&&(Z.target.setPointerCapture(Z.pointerId),z.current=w.getBoundingClientRect(),P.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",g.viewport&&(g.viewport.style.scrollBehavior="auto"),H(Z))}),onPointerMove:Ei(e.onPointerMove,H),onPointerUp:Ei(e.onPointerUp,Z=>{let W=Z.target;W.hasPointerCapture(Z.pointerId)&&W.releasePointerCapture(Z.pointerId),document.body.style.webkitUserSelect=P.current,g.viewport&&(g.viewport.style.scrollBehavior=""),z.current=null})})})}),Ch="ScrollAreaThumb",lx=ze.forwardRef((e,t)=>
12{let{forceMount:r,...o}=e,n=nP(Ch,e.__scopeScrollArea);return(0,ut.jsx)(gu,{present:r||n.hasThumb,children:(0,ut.jsx)(Hq,{ref:t,...o})})}),Hq=ze.forwardRef((e,t)=>{let{__scopeScrollArea:r,style:o,...n}=e,i=Cn(Ch,r),a=nP(Ch,r),{onThumbPositionChange:l}=a,c=Fa(t,m=>a.onThumbChange(m)),d=ze.useRef(void 0),p=Ah(()=>{d.current&&(d.current(),d.current=void 0)},100);return ze.useEffect(()=>{let m=i.viewport;if(m){let h=()=>{if(p(),!d.current){let g=Kq(m,l);d.current=g,l()}};return l(),m.addEventListener("scroll",h),()=>m.removeEventListener("scroll",h)}},[i.viewport,p,l]),(0,ut.jsx)(Js.div,{"data-state":a.hasThumb?"visible":"hidden",...n,ref:c,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...o},onPointerDownCapture:Ei(e.onPointerDownCapture,m=>{let g=m.target.getBoundingClientRect(),w=m.clientX-g.left,$=m.clientY-g.top;a.onThumbPointerDown({x:w,y:$})}),onPointerUp:Ei(e.onPointerUp,a.onThumbPointerUp)})});lx.displayName=Ch;var cx="ScrollAreaCorner",iP=ze.forwardRef((e,t)=>{let r=Cn(cx,e.__scopeScrollArea),o=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&o?(0,ut.jsx)(Wq,{...e,ref:t}):null});iP.displayName=cx;var Wq=ze.forwardRef((e,t)=>{let{__scopeScrollArea:r,...o}=e,n=Cn(cx,r),[i,a]=ze.useState(0),[l,c]=ze.useState(0),d=!!(i&&l);return Tl(n.scrollbarX,()=>{let p=n.scrollbarX?.offsetHeight||0;n.onCornerHeightChange(p),c(p)}),Tl(n.scrollbarY,()=>{let p=n.scrollbarY?.offsetWidth||0;n.onCornerWidthChange(p),a(p)}),d?(0,ut.jsx)(Js.div,{...o,ref:t,style:{width:i,height:l,position:"absolute",right:n.dir==="ltr"?0:void 0,left:n.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function zh(e){return e?parseInt(e,10):0}function aP(e,t){let r=e/t;return isNaN(r)?0:r}function Eh(e){let t=aP(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,o=(e.scrollbar.size-r)*t;return Math.max(o,18)}function Jq(e,t,r,o="ltr"){let n=Eh(r),i=n/2,a=t||i,l=n-a,c=r.scrollbar.paddingStart+a,d=r.scrollbar.size-r.scrollbar.paddingEnd-l,p=r.content-r.viewport,m=o==="ltr"?[0,p]:[p*-1,0];return sP([c,d],m)(e)}function K9(e,t,r="ltr"){let o=Eh(t),n=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-n,a=t.content-t.viewport,l=i-o,c=r==="ltr"?[0,a]:[a*-1,0],d=O$(e,c);return sP([0,a],[0,l])(d)}function sP(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let o=(t[1]-t[0])/(e[1]-e[0]);return t[0]+o*(r-e[0])}}function lP(e,t){return e>0&&e<t}var Kq=(e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},o=0;return(function n(){let i={left:e.scrollLeft,top:e.scrollTop},a=r.left!==i.left,l=r.top!==i.top;(a||l)&&t(),r=i,o=window.requestAnimationFrame(n)})(),()=>window.cancelAnimationFrame(o)};function Ah(e,t){let r=Ai(e),o=ze.useRef(0);return ze.useEffect(()=>()=>window.clearTimeout(o.current),[]),ze.useCallback(()=>{window.clearTimeout(o.current),o.current=window.setTimeout(r,t)},[r,t])}function Tl(e,t){let r=Ai(t);R$(()=>{let o=0;if(e){let n=new ResizeObserver(()=>{cancelAnimationFrame(o),o=window.requestAnimationFrame(r)});return n.observe(e),()=>{window.cancelAnimationFrame(o),n.unobserve(e)}}},[e,r])}var cP=Q9,uP=tP;var dP=iP;var Wi=V(le());function ux({className:e,children:t,...r}){return(0,Wi.jsxs)(cP,{"data-slot":"scroll-area",className:Pe("relative",e),...r,children:[(0,Wi.jsx)(uP,{"data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",children:t}),(0,Wi.jsx)(Mh,{}),(0,Wi.jsx)(dP,{})]})}function Mh({className:e,orientation:t="vertical",...r}){return(0,Wi.jsx)(ax,{"data-slot":"scroll-area-scrollbar",orientation:t,className:Pe("flex touch-none p-px transition-colors select-none",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",e),...r,children:(0,Wi.jsx)(lx,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}var pP=V(le());var fP=V(Se());var md=V(Se());var Yq=V(le());var cke=md.createContext({});var uke=md.createContext({});var mP=V(le());function dx({className:e,...t}){return(0,mP.jsx)(E$,{role:"status","aria-label":"Loading",className:Pe("size-4 animate-spin",e),...t})}var hP=V(le());var VP="vercel.ai.error",eH=Symbol.for(VP),gP,vP,it=class GP extends(vP=Error,gP=eH,vP){constructor({name:t,message:r,cause:o}){super(r),this[gP]=!0,this.name=t,this.cause=o}static isInstance(t){return GP.hasMarker(t,VP)}static hasMarker(t,r){let o=Symbol.for(r);return t!=null&&typeof t=="object"&&o in t&&typeof t[o]=="boolean"&&t[o]===!0}},qP="AI_APICallError",HP=`vercel.ai.error.${qP}`,tH=Symbol.for(HP),yP,bP,Dke=class extends(bP=it,yP=tH,bP){constructor({message:e,url:t,requestBodyValues:r,statusCode:o,responseHeaders:n,responseBody:i,cause:a,isRetryable:l=o!=null&&(o===408||o===409||o===429||o>=500),data:c}){super({name:qP,message:e,cause:a}),this[yP]=!0,this.url=t,this.requestBodyValues=r,this.statusCode=o,this.responseHeaders=n,this.responseBody=i,this.isRetryable=l,this.data=c}static isInstance(e){return it.hasMarker(e,HP)}},WP="AI_EmptyResponseBodyError",JP=`vercel.ai.error.${WP}`,rH=Symbol.for(JP),xP,wP,Oke=class extends(wP=it,xP=rH,wP){constructor({message:e="Empty response body"}={}){super({name:WP,message:e}),this[xP]=!0}static isInstance(e){return it.hasMarker(e,JP)}};function KP(e){return e==null?"unknown error":typeof e=="string"?e:e instanceof Error?e.message:JSON.stringify(e)}var XP="AI_InvalidArgumentError",YP=`vercel.ai.error.${XP}`,nH=Symbol.for(YP),_P,kP,QP=class extends(kP=it,_P=nH,kP){constructor({message:e,cause:t,argument:r}){super({name:XP,message:e,cause:t}),this[_P]=!0,this.argument=r}static isInstance(e){return it.hasMarker(e,YP)}},eC="AI_InvalidPromptError",tC=`vercel.ai.error.${eC}`,oH=Symbol.for(tC),SP,$P,Lke=class extends($P=it,SP=oH,$P){constructor({prompt:e,message:t,cause:r}){super({name:eC,message:`Invalid prompt: ${t}`,cause:r}),this[SP]=!0,this.prompt=e}static isInstance(e){return it.hasMarker(e,tC)}},rC="AI_InvalidResponseDataError",nC=`vercel.ai.error.${rC}`,iH=Symbol.for(nC),TP,IP,jke=class extends(IP=it,TP=iH,IP){constructor({data:e,message:t=`Invalid response data: ${JSON.stringify(e)}.`}){super({name:rC,message:t}),this[TP]=!0,this.data=e}static isInstance(e){return it.hasMarker(e,nC)}},oC="AI_JSONParseError",iC=`vercel.ai.error.${oC}`,aH=Symbol.for(iC),PP,CP,mx=class extends(CP=it,PP=aH,CP){constructor({text:e,cause:t}){super({name:oC,message:`JSON parsing failed: Text: ${e}.
13Error message: ${KP(t)}`,cause:t}),this[PP]=!0,this.text=e}static isInstance(e){return it.hasMarker(e,iC)}},aC="AI_LoadAPIKeyError",sC=`vercel.ai.error.${aC}`,sH=Symbol.for(sC),zP,EP,Uke=class extends(EP=it,zP=sH,EP){constructor({message:e}){super({name:aC,message:e}),this[zP]=!0}
13static isInstance(e){return it.hasMarker(e,sC)}},lC="AI_LoadSettingError",cC=`vercel.ai.error.${lC}`,lH=Symbol.for(cC),AP,MP,Bke=class extends(MP=it,AP=lH,MP){constructor({message:e}){super({name:lC,message:e}),this[AP]=!0}static isInstance(e){return it.hasMarker(e,cC)}},uC="AI_NoContentGeneratedError",dC=`vercel.ai.error.${uC}`,cH=Symbol.for(dC),NP,RP,Fke=class extends(RP=it,NP=cH,RP){constructor({message:e="No content generated."}={}){super({name:uC,message:e}),this[NP]=!0}static isInstance(e){return it.hasMarker(e,dC)}},pC="AI_NoSuchModelError",mC=`vercel.ai.error.${pC}`,uH=Symbol.for(mC),DP,OP,Zke=class extends(OP=it,DP=uH,OP){constructor({errorName:e=pC,modelId:t,modelType:r,message:o=`No such ${r}: ${t}`}){super({name:e,message:o}),this[DP]=!0,this.modelId=t,this.modelType=r}static isInstance(e){return it.hasMarker(e,mC)}},fC="AI_TooManyEmbeddingValuesForCallError",hC=`vercel.ai.error.${fC}`,dH=Symbol.for(hC),LP,jP,Vke=class extends(jP=it,LP=dH,jP){constructor(e){super({name:fC,message:`Too many values for a single embedding call. The ${e.provider} model "${e.modelId}" can only embed up to ${e.maxEmbeddingsPerCall} values per call, but ${e.values.length} values were provided.`}),this[LP]=!0,this.provider=e.provider,this.modelId=e.modelId,this.maxEmbeddingsPerCall=e.maxEmbeddingsPerCall,this.values=e.values}static isInstance(e){return it.hasMarker(e,hC)}},gC="AI_TypeValidationError",vC=`vercel.ai.error.${gC}`,pH=Symbol.for(vC),UP,BP,vo=class px extends(BP=it,UP=pH,BP){constructor({value:t,cause:r,context:o}){let n="Type validation failed";if(o?.field&&(n+=` for ${o.field}`),o?.entityName||o?.entityId){n+=" (";let i=[];o.entityName&&i.push(o.entityName),o.entityId&&i.push(`id: "${o.entity
13Id}"`),n+=i.join(", "),n+=")"}super({name:gC,message:`${n}: Value: ${JSON.stringify(t)}.
14Error message: ${KP(r)}`,cause:r}),this[UP]=!0,this.value=t,this.context=o}static isInstance(t){return it.hasMarker(t,vC)}static wrap({value:t,cause:r,context:o}){var n,i,a;return px.isInstance(r)&&r.value===t&&((n=r.context)==null?void 0:n.field)===o?.field&&((i=r.context)==null?void 0:i.entityName)===o?.entityName&&((a=r.context)==null?void 0:a.entityId)===o?.entityId?r:new px({value:t,cause:r,context:o})}},yC="AI_UnsupportedFunctionalityError",bC=`vercel.ai.error.${yC}`,mH=Symbol.for(bC),FP,ZP,Gke=class extends(ZP=it,FP=mH,ZP){constructor({functionality:e,message:t=`'${e}' functionality not supported.`}){super({name:yC,message:t}),this[FP]=!0,this.functionality=e}static isInstance(e){return it.hasMarker(e,bC)}};var fH=Object.freeze({status:"aborted"});function U(e,t,r){function o(l,c){if(l._zod||Object.defineProperty(l,"_zod",{value:{def:c,constr:a,traits:new Set},enumerable:!1}),l._zod.traits.has(e))return;l._zod.traits.add(e),t(l,c);let d=a.prototype,p=Object.keys(d);for(let m=0;m<p.length;m++){let h=p[m];h in l||(l[h]=d[h].bind(l))}}let n=r?.Parent??Object;class i extends n{}Object.defineProperty(i,"name",{value:e});function a(l){var c;let d=r?.Parent?new i:this;o(d,l),(c=d._zod).deferred??(c.deferred=[]);for(let p of d._zod.deferred)p();return d}return Object.defineProperty(a,"init",{value:o}),Object.defineProperty(a,Symbol.hasInstance,{value:l=>r?.Parent&&l instanceof r.Parent?!0:l?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var yo=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},ss=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},Rh={};function fr(e){return e&&Object.assign(Rh,e),Rh}var ne={};Zr(ne,{BIGINT_FORMAT_RANGES:()=>_x,Class:()=>hx,NUMBER_FORMAT_RANGES:()=>wx,aborted:()=>Yi,allowsEval:()=>yx,assert:()=>bH,assertEqual:()=>hH,assertIs:()=>vH,assertNever:()=>yH,assertNotEqual:()=>gH,assignProp:()=>Ki,base64ToUint8Array:()=>_C,base64urlToUint8Array:()=>DH,cached:()=>Pl,captureStackTrace:()=>Oh,cleanEnum:()=>RH,cleanRegex:()=>gd,clone:()=>an,cloneDef:()=>wH,createTransparentProxy:()=>IH,defineLazy:()=>Ye,esc:()=>Dh,escapeRegex:()=>zn,extend:()=>zH,finalizeIssue:()=>Gr,floatSafeRemainder:()=>gx,getElementAtPath:()=>_H,getEnumValues:()=>hd,getLengthableOrigin:()=>bd,getParsedType:()=>TH,getSizableOrigin:()=>yd,hexToUint8Array:()=>LH,isObject:()=>ls,isPlainObject:()=>Xi,issue:()=>Cl,joinValues:()=>Ae,jsonStringifyReplacer:()=>Il,merge:()=>AH,mergeDefs:()=>Xo,normalizeParams:()=>pe,nullish:()=>Ji,numKeys:()=>$H,objectClone:()=>xH,omit:()=>CH,optionalKeys:()=>xx,parsedType:()=>Re,partial:()=>MH,pick:()=>PH,prefixIssues:()=>sn,primitiveTypes:()=>bx,promiseAllObject:()=>kH,propertyKeyTypes:()=>vd,randomString:()=>SH,required:()=>NH,safeExtend:()=>EH,shallowClone:()=>wC,slugify:()=>vx,stringifyPrimitive:()=>Me,uint8ArrayToBase64:()=>kC,uint8ArrayToBase64url:()=>OH,uint8ArrayToHex:()=>jH,unwrapMessage:()=>fd});function hH(e){return e}function gH(e){return e}function vH(e){}function yH(e){throw new Error("Unexpected value in exhaustive check")}function bH(e){}function hd(e){let t=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,n])=>t.indexOf(+o)===-1).map(([o,n])=>n)}function Ae(e,t="|"){return e.map(r=>Me(r)).join(t)}function Il(e,t){return typeof t=="bigint"?t.toString():t}function Pl(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function Ji(e){return e==null}function gd(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function gx(e,t){let r=(e.toString().split(".")[1]||"").length,o=t.toString(),n=(o.split(".")[1]||"").length;if(n===0&&/\d?e-\d?/.test(o)){let c=o.match(/\d?e-(\d?)/);c?.[1]&&(n=Number.parseInt(c[1]))}let i=r>n?r:n,a=Number.parseInt(e.toFixed(i).replace(".","")),l=Number.parseInt(t.toFixed(i).replace(".",""));return a%l/10**i}var xC=Symbol("evaluating");function Ye(e,t,r){let o;
vendor: 9,144 bytes, line 14
14Object.defineProperty(e,t,{get(){if(o!==xC)return o===void 0&&(o=xC,o=r()),o},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function xH(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Ki(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function Xo(...e){let t={};for(let r of e){let o=Object.getOwnPropertyDescriptors(r);Object.assign(t,o)}return Object.defineProperties({},t)}function wH(e){return Xo(e._zod.def)}function _H(e,t){return t?t.reduce((r,o)=>r?.[o],e):e}function kH(e){let t=Object.keys(e),r=t.map(o=>e[o]);return Promise.all(r).then(o=>{let n={};for(let i=0;i<t.length;i++)n[t[i]]=o[i];return n})}function SH(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let o=0;o<e;o++)r+=t[Math.floor(Math.random()*t.length)];return r}function Dh(e){return JSON.stringify(e)}function vx(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Oh="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function ls(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var yx=Pl(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function Xi(e){if(ls(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(ls(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function wC(e){return Xi(e)?{...e}:Array.isArray(e)?[...e]:e}function $H(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}var TH=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":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"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 new Error(`Unknown data type: ${t}`)}},vd=new Set(["string","number","symbol"]),bx=new Set(["string","number","bigint","boolean","symbol","undefined"]);function zn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function an(e,t,r){let o=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(o._zod.parent=e),o}function pe(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function IH(e){let t;return new Proxy({},{get(r,o,n){return t??(t=e()),Reflect.get(t,o,n)},set(r,o,n,i){return t??(t=e()),Reflect.set(t,o,n,i)},has(r,o){return t??(t=e()),Reflect.has(t,o)},deleteProperty(r,o){return t??(t=e()),Reflect.deleteProperty(t,o)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,o){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,o)},defineProperty(r,o,n){return t??(t=e()),Reflect.defineProperty(t,o,n)}})}function Me(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function xx(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var wx={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]},_x={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function PH(e,t){let r=e._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i=Xo(e._zod.def,{get shape(){let a={};for(let l in t){if(!(l in r.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&(a[l]=r.shape[l])}return Ki(this,"shape",a),a},checks:[]});return an(e,i)}function CH(e,t){let r=e._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=Xo(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let l in t){if(!(l in r.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&delete a[l]}return Ki(this,"shape",a),a},checks:[]});return an(e,i)}function zH(e,t){if(!Xi(t))throw new Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let i=e._zod.def.shape;for(let a in t)if(Object.getOwnPropertyDescriptor(i,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=Xo(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return Ki(this,"shape",i),i}});return an(e,n)}function EH(e,t){if(!Xi(t))throw new Error("Invalid input to safeExtend: expected a plain object");let r=Xo(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return Ki(this,"shape",o),o}});return an(e,r)}function AH(e,t){let r=Xo(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t._zod.def.shape};return Ki(this,"shape",o),o},get catchall(){return t._zod.def.catchall},checks:[]});return an(e,r)}function MH(e,t,r){let n=t._zod.def.checks;if(n&&n.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let a=Xo(t._zod.def,{get shape(){let l=t._zod.def.shape,c={...l};if(r)for(let d in r){if(!(d in l))throw new Error(`Unrecognized key: "${d}"`);r[d]&&(c[d]=e?new e({type:"optional",innerType:l[d]}):l[d])}else for(let d in l)c[d]=e?new e({type:"optional",innerType:l[d]}):l[d];return Ki(this,"shape",c),c},checks:[]});return an(t,a)}function NH(e,t,r){let o=Xo(t._zod.def,{get shape(){let n=t._zod.def.shape,i={...n};if(r)for(let a in r){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(i[a]=new e({type:"nonoptional",innerType:n[a]}))}else for(let a in n)i[a]=new e({type:"nonoptional",innerType:n[a]});return Ki(this,"shape",i),i}});return an(t,o)}function Yi(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function sn(e,t){return t.map(r=>{var o;return(o=r).path??(o.path=[]),r.path.unshift(e),r})}function fd(e){return typeof e=="string"?e:e?.message}function Gr(e,t,r){let o={...e,path:e.path??[]};if(!e.message){let n=fd(e.inst?._zod.def?.error?.(e))??fd(t?.error?.(e))??fd(r.customError?.(e))??fd(r.localeError?.(e))??"Invalid input";o.message=n}return delete o.inst,delete o.continue,t?.reportInput||delete o.input,o}function yd(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function bd(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Re(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let r=e;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return t}function Cl(...e){let[t,r,o]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:o}:{...t}}function RH(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function _C(e){let t=atob(e),r=new Uint8Array(t.length);for(let o=0;o<t.length;o++)r[o]=t.charCodeAt(o);return r}function kC(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function DH(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return _C(t+r)}function OH(e){return kC(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function LH(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let r=new Uint8Array(t.length/2);for(let o=0;o<t.length;o+=2)r[o/2]=Number.parseInt(t.slice(o,o+2),16);return r}function jH(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var hx=class{constructor(...t){}};var SC=(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,Il,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Lh=U("$ZodError",SC),xd=U("$ZodError",SC,{Parent:Error});function kx(e,t=r=>r.message){let r={},o=[];for(let n of e.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(t(n))):o.push(t(n));return{formErrors:o,fieldErrors:r}}function Sx(e,t=r=>r.message){let r={_errors:[]},o=n=>{for(let i of n.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(a=>o({issues:a}));else if(i.code==="invalid_key")o({issues:i.issues});else if(i.code==="invalid_element")o({issues:i.issues});else if(i.path.length===0)r._errors.push(t(i));else{let a=r,l=0;for(;l<i.path.length;){let c=i.path[l];l===i.path.length-1?(a[c]=a[c]||{_errors:[]},a[c]._errors.push(t(i))):a[c]=a[c]||{_errors:[]}
14,a=a[c],l++}}};return o(e),r}var wd=e=>(t,r,o,n)=>{let i=o?Object.assign(o,{async:!1}):{async:!1},a=t._zod.run({value:r,issues:[]},i);if(a instanceof Promise)throw new yo;if(a.issues.length){let l=new(n?.Err??e)(a.issues.map(c=>Gr(c,i,fr())));throw Oh(l,n?.callee),l}return a.value},$x=wd(xd),_d=e=>async(t,r,o,n)=>{let i=o?Object.assign(o,{async:!0}):{async:!0},a=t._zod.run({value:r,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){let l=new(n?.Err??e)(a.issues.map(c=>Gr(c,i,fr())));throw Oh(l,n?.callee),l}return a.value},Tx=_d(xd),kd=e=>(t,r,o)=>{let n=o?{...o,async:!1}:{async:!1},i=t._zod.run({value:r,issues:[]},n);if(i instanceof Promise)throw new yo;return i.issues.length?{success:!1,error:new(e??Lh)(i.issues.map(a=>Gr(a,n,fr())))}:{success:!0,data:i.value}},$C=kd(xd),Sd=e=>async(t,r,o)=>{let n=o?Object.assign(o,{async:!0}):{async:!0},i=t._zod.run({value:r,issues:[]},n);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(a=>Gr(a,n,fr())))}:{success:!0,data:i.value}},TC=Sd(xd),IC=e=>(t,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return wd(e)(t,r,n)};var PC=e=>(t,r,o)=>wd(e)(t,r,o);var CC=e=>async(t,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return _d(e)(t,r,n)};var zC=e=>async(t,r,o)=>_d(e)(t,r,o);var EC=e=>(t,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return kd(e)(t,r,n)};var AC=e=>(t,r,o)=>kd(e)(t,r,o);var MC=e=>async(t,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Sd(e)(t,r,n)};var NC=e=>async(t,r,o)=>Sd(e)(t,r,o);var bo={};Zr(bo,{base64:()=>Fx,base64url:()=>jh,bigint:()=>Wx,boolean:()=>Kx,browserEmail:()=>WH,cidrv4:()=>Ux,cidrv6:()=>Bx,cuid:()=>Ix,cuid2:()=>Px,date:()=>Vx,datetime:()=>qx,domain:()=>XH,duration:()=>Mx,e164:()=>Zx,email:()=>Rx,emoji:()=>Dx,extendedDuration:()=>BH,guid:()=>Nx,hex:()=>YH,hostname:()=>KH,html5Email:()=>GH,idnEmail:()=>HH,integer:()=>Jx,ipv4:()=>Ox,ipv6:()=>Lx,ksuid:()=>Ex,lowercase:()=>Qx,mac:()=>jx,md5_base64:()=>eW,md5_base64url:()=>tW,md5_hex:()=>QH,nanoid:()=>Ax,null:()=>Xx,number:()=>Uh,rfc5322Email:()=>qH,sha1_base64:()=>nW,sha1_base64url:()=>oW,sha1_hex:()=>rW,sha256_base64:()=>aW,sha256_base64url:()=>sW,sha256_hex:()=>iW,sha384_base64:()=>cW,sha384_base64url:()=>uW,sha384_hex:()=>lW,sha512_base64:()=>pW,sha512_base64url:()=>mW,sha512_hex:()=>dW,string:()=>Hx,time:()=>Gx,ulid:()=>Cx,undefined:()=>Yx,unicodeEmail:()=>RC,uppercase:()=>ew,uuid:()=>cs,uuid4:()=>FH,uuid6:()=>ZH,uuid7:()=>VH,xid:()=>zx});var Ix=/^[cC][^\s-]{8,}$/,Px=/^[0-9a-z]+$/,Cx=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,zx=/^[0-9a-vA-V]{20}$/,Ex=/^[A-Za-z0-9]{27}$/,Ax=/^[a-zA-Z0-9_-]{21}$/,Mx=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,BH=/^[-+]?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)?)??$/,Nx=/^([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})$/,cs=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)$/,FH=cs(4),ZH=cs(6),VH=cs(7),Rx=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,GH=/^[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])?)*$/,qH=/^(([^<>()\[\]\\.,;:\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,}))$/,RC=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,HH=RC,WH=/^[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])?)*$/,JH="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Dx(){return new RegExp(JH,"u")}var Ox=/^(?:(?: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])$/,Lx=/^(([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}|:))$/,jx=e=>{let t=zn(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},Ux=/^((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])$/,Bx=/^(([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])$/,Fx=/^$|^(?:[0-9a-zA-Z+/]{4}
vendor: 83,135 bytes, lines 14-52
14)*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,jh=/^[A-Za-z0-9_-]*$/,KH=/^(?=.{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])?)*\.?$/,XH=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Zx=/^\+[1-9]\d{6,14}$/,DC="(?:(?:\\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])))",Vx=new RegExp(`^${DC}$`);function OC(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Gx(e){return new RegExp(`^${OC(e)}$`)}function qx(e){let t=OC({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let o=`${t}(?:${r.join("|")})`;return new RegExp(`^${DC}T(?:${o})$`)}var Hx=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Wx=/^-?\d+n?$/,Jx=/^-?\d+$/,Uh=/^-?\d+(?:\.\d+)?$/,Kx=/^(?:true|false)$/i,Xx=/^null$/i;var Yx=/^undefined$/i;var Qx=/^[^A-Z]*$/,ew=/^[^a-z]*$/,YH=/^[0-9a-fA-F]*$/;function $d(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function Td(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var QH=/^[0-9a-fA-F]{32}$/,eW=$d(22,"=="),tW=Td(22),rW=/^[0-9a-fA-F]{40}$/,nW=$d(27,"="),oW=Td(27),iW=/^[0-9a-fA-F]{64}$/,aW=$d(43,"="),sW=Td(43),lW=/^[0-9a-fA-F]{96}$/,cW=$d(64,""),uW=Td(64),dW=/^[0-9a-fA-F]{128}$/,pW=$d(86,"=="),mW=Td(86);var It=U("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),jC={number:"number",bigint:"bigint",object:"date"},tw=U("$ZodCheckLessThan",(e,t)=>{It.init(e,t);let r=jC[typeof t.value];e._zod.onattach.push(o=>{let n=o._zod.bag,i=(t.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value<=t.value:o.value<t.value)||o.issues.push({origin:r,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),rw=U("$ZodCheckGreaterThan",(e,t)=>{It.init(e,t);let r=jC[typeof t.value];e._zod.onattach.push(o=>{let n=o._zod.bag,i=(t.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value>=t.value:o.value>t.value)||o.issues.push({origin:r,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),UC=U("$ZodCheckMultipleOf",(e,t)=>{It.init(e,t),e._zod.onattach.push(r=>{var o;(o=r._zod.bag).multipleOf??(o.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.");(typeof r.value=="bigint"?r.value%t.value===BigInt(0):gx(r.value,t.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),BC=U("$ZodCheckNumberFormat",(e,t)=>{It.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),o=r?"int":"number",[n,i]=wx[t.format];e._zod.onattach.push(a=>{let l=a._zod.bag;l.format=t.format,l.minimum=n,l.maximum=i,r&&(l.pattern=Jx)}),e._zod.check=a=>{let l=a.value;if(r){if(!Number.isInteger(l)){a.issues.push({expected:o,format:t.format,code:"invalid_type",continue:!1,input:l,inst:e});return}if(!Number.isSafeInteger(l)){l>0?a.issues.push({input:l,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort}):a.issues.push({input:l,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort});return}}l<n&&a.issues.push({origin:"number",input:l,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),l>i&&a.issues.push({origin:"number",input:l,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),FC=U("$ZodCheckBigIntFormat",(e,t)=>{It.init(e,t);let[r,o]=_x[t.format];e._zod.onattach.push(n=>{let i=n._zod.bag;i.format=t.format,i.minimum=r,i.maximum=o}),e._zod.check=n=>{let i=n.value;i<r&&n.issues.push({origin:"bigint",input:i,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),i>o&&n.issues.push({origin:"bigint",input:i,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),ZC=U("$ZodCheckMaxSize",(e,t)=>{var r;It.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Ji(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{let n=o.value;n.size<=t.maximum||o.issues.push({origin:yd(n),code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),VC=U("$ZodCheckMinSize",(e,t)=>{var r;It.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Ji(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{let n=o.value;n.size>=t.minimum||o.issues.push({origin:yd(n),code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),GC=U("$ZodCheckSizeEquals",(e,t)=>{var r;It.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Ji(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=o=>{let n=o.value,i=n.size;if(i===t.size)return;let a=i>t.size;o.issues.push({origin:yd(n),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),qC=U("$ZodCheckMaxLength",(e,t)=>{var r;It.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Ji(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{let n=o.value;if(n.length<=t.maximum)return;let a=bd(n);o.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),HC=U("$ZodCheckMinLength",(e,t)=>{var r;It.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Ji(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{let n=o.value;if(n.length>=t.minimum)return;let a=bd(n);o.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),WC=U("$ZodCheckLengthEquals",(e,t)=>{var r;It.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Ji(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=o=>{let n=o.value,i=n.length;if(i===t.length)return;let a=bd(n),l=i>t.length;o.issues.push({origin:a,...l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),Id=U("$ZodCheckStringFormat",(e,t)=>{var r,o;It.init(e,t),e._zod.onattach.push(n=>{let i=n._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(o=e._zod).check??(o.check=()=>{})}),JC=U("$ZodCheckRegex",(e,t)=>{Id.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})}}),KC=U("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Qx),Id.init(e,t)}),XC=U("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=ew),Id.init(e,t)}),YC=U("$ZodCheckIncludes",(e,t)=>{It.init(e,t);let r=zn(t.includes),o=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=o,e._zod.onattach.push(n=>{let i=n._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),QC=U("$ZodCheckStartsWith",(e,t)=>{It.init(e,t);let r=new RegExp(`^${zn(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(o=>{let n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=o=>{o.value.startsWith(t.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:o.value,inst:e,continue:!t.abort})}}),ez=U("$ZodCheckEndsWith",(e,t)=>{It.init(e,t);let r=new RegExp(`.*${zn(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(o=>{let n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=o=>{o.value.endsWith(t.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:o.value,inst:e,continue:!t.abort})}});function LC(e,t,r){e.issues.length&&t.issues.push(...sn(r,e.issues))}var tz=U("$ZodCheckProperty",(e,t)=>{It.init(e,t),e._zod.check=r=>{let o=t.schema._zod.run({value:r.value[t.property],issues:[]},{});if(o instanceof Promise)return o.then(n=>LC(n,r,t.property));LC(o,r,t.property)}}),rz=U("$ZodCheckMimeType",(e,t)=>{It.init(e,t);let r=new Set(t.mime);e._zod.onattach.push(o=>{o._zod.bag.mime=t.mime}),e._zod.check=o=>{r.has(o.value.type)||o.issues.push({code:"invalid_value",values:t.mime,input:o.value.type,inst:e,continue:!t.abort})}}),nz=U("$ZodCheckOverwrite",(e,t)=>{It.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});var Bh=class{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let o=t.split(`
15`).filter(a=>a),n=Math.min(...o.map(a=>a.length-a.trimStart().length)),i=o.map(a=>a.slice(n)).map(a=>" ".repeat(this.indent*2)+a);for(let a of i)this.content.push(a)}compile(){let t=Function,r=this?.args,n=[...(this?.content??[""]).map(i=>`  ${i}`)];return new t(...r,n.join(`
16`))}};var iz={major:4,minor:3,patch:6};var Ue=U("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=iz;let o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(let n of o)for(let i of n._zod.onattach)i(e);if(o.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let n=(a,l,c)=>{let d=Yi(a),p;for(let m of l){if(m._zod.def.when){if(!m._zod.def.when(a))continue}else if(d)continue;let h=a.issues.length,g=m._zod.check(a);if(g instanceof Promise&&c?.async===!1)throw new yo;if(p||g instanceof Promise)p=(p??Promise.resolve()).then(async()=>{await g,a.issues.length!==h&&(d||(d=Yi(a,h)))});else{if(a.issues.length===h)continue;d||(d=Yi(a,h))}}return p?p.then(()=>a):a},i=(a,l,c)=>{if(Yi(a))return a.aborted=!0,a;let d=n(l,o,c);if(d instanceof Promise){if(c.async===!1)throw new yo;return d.then(p=>e._zod.parse(p,c))}return e._zod.parse(d,c)};e._zod.run=(a,l)=>{if(l.skipChecks)return e._zod.parse(a,l);if(l.direction==="backward"){let d=e._zod.parse({value:a.value,issues:[]},{...l,skipChecks:!0});return d instanceof Promise?d.then(p=>i(p,a,l)):i(d,a,l)}let c=e._zod.parse(a,l);if(c instanceof Promise){if(l.async===!1)throw new yo;return c.then(d=>n(d,o,l))}return n(c,o,l)}}Ye(e,"~standard",()=>({validate:n=>{try{let i=$C(e,n);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return TC(e,n).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}))}),zl=U("$ZodString",(e,t)=>{Ue.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Hx(e._zod.bag),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),wt=U("$ZodStringFormat",(e,t)=>{Id.init(e,t),zl.init(e,t)}),vz=U("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Nx),wt.init(e,t)}),yz=U("$ZodUUID",(e,t)=>{if(t.version){let o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(o===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=cs(o))}else t.pattern??(t.pattern=cs());wt.init(e,t)}),bz=U("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Rx),wt.init(e,t)}),xz=U("$ZodURL",(e,t)=>{wt.init(e,t),e._zod.check=r=>{try{let o=r.value.trim(),n=new URL(o);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(n.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(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=n.href:r.value=o;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),wz=U("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Dx()),wt.init(e,t)}),_z=U("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=Ax),wt.init(e,t)}),kz=U("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Ix),wt.init(e,t)}),Sz=U("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Px),wt.init(e,t)}),$z=U("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Cx),wt.init(e,t)}),Tz=U("$ZodXID",(e,t)=>{t.pattern??(t.pattern=zx),wt.init(e,t)}),Iz=U("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Ex),wt.init(e,t)}),Pz=U("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=qx(t)),wt.init(e,t)}),Cz=U("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Vx),wt.init(e,t)}),zz=U("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Gx(t)),wt.init(e,t)}),Ez=U("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Mx),wt.init(e,t)}),Az=U("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Ox),wt.init(e,t),e._zod.bag.format="ipv4"}),Mz=U("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Lx),wt.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),Nz=U("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=jx(t.delimiter)),wt.init(e,t),e._zod.bag.format="mac"}),Rz=U("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Ux),wt.init(e,t)}),Dz=U("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Bx),wt.init(e,t),e._zod.check=r=>{let o=r.value.split("/");try{if(o.length!==2)throw new Error;let[n,i]=o;if(!i)throw new Error;let a=Number(i);if(`${a}`!==i)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${n}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function Oz(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var Lz=U("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Fx),wt.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{Oz(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function fW(e){if(!jh.test(e))return!1;let t=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return Oz(r)}var jz=U("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=jh),wt.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{fW(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),Uz=U("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Zx),wt.init(e,t)});function hW(e,t=null){try{let r=e.split(".");if(r.length!==3)return!1;let[o]=r;if(!o)return!1;let n=JSON.parse(atob(o));return!("typ"in n&&n?.typ!=="JWT"||!n.alg||t&&(!("alg"in n)||n.alg!==t))}catch{return!1}}var Bz=U("$ZodJWT",(e,t)=>{wt.init(e,t),e._zod.check=r=>{hW(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),Fz=U("$ZodCustomStringFormat",(e,t)=>{wt.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})}}),ow=U("$ZodNumber",(e,t)=>{Ue.init(e,t),e._zod.pattern=e._zod.bag.pattern??Uh,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}let n=r.value;if(typeof n=="number"&&!Number.isNaN(n)&&Number.isFinite(n))return r;let i=typeof n=="number"?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:e,...i?{received:i}:{}}),r}}),Zz=U("$ZodNumberFormat",(e,t)=>{BC.init(e,t),ow.init(e,t)}),Hh=U("$ZodBoolean",(e,t)=>{Ue.init(e,t),e._zod.pattern=Kx,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=!!r.value}catch{}let n=r.value;return typeof n=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:e}),r}}),iw=U("$ZodBigInt",(e,t)=>{Ue.init(e,t),e._zod.pattern=Wx,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}}),Vz=U("$ZodBigIntFormat",(e,t)=>{FC.init(e,t),iw.init(e,t)}),Gz=U("$ZodSymbol",(e,t)=>{Ue.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return typeof n=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:e}),r}}),qz=U("$ZodUndefined",(e,t)=>{Ue.init(e,t),e._zod.pattern=Yx,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(r,o)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:e}),r}}),Hz=U("$ZodNull",(e,t)=>{Ue.init(e,t),e._zod.pattern=Xx,e._zod.values=new Set([null]),e._zod.parse=(r,o)=>{let n=r.value;return n===null||r.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),r}}),Wz=U("$ZodAny",(e,t)=>{Ue.init(e,t),e._zod.parse=r=>r}),Jz=U("$ZodUnknown",(e,t)=>{Ue.init(e,t),e._zod.parse=r=>r}),Kz=U("$ZodNever",(e,t)=>{Ue.init(e,t),e._zod.parse=(r,o)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),Xz=U("$ZodVoid",(e,t)=>{Ue.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"void",code:"invalid_type",input:n,inst:e}),r}}),Yz=U("$ZodDate",(e,t)=>{Ue.init(e,t),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}let n=r.value,i=n instanceof Date;return i&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...i?{received:"Invalid Date"}:{},inst:e}),r}});function az(e,t,r){e.issues.length&&t.issues.push(...sn(r,e.issues)),t.value[r]=e.value}var Qz=U("$ZodArray",(e,t)=>{Ue.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:e}),r;r.value=Array(n.length);let i=[];for(let a=0;a<n.length;a++){let l=n[a],c=t.element._zod.run({value:l,issues:[]},o);c instanceof Promise?i.push(c.then(d=>az(d,r,a))):az(c,r,a)}return i.length?Promise.all(i).then(()=>r):r}});function qh(e,t,r,o,n){if(e.issues.length){if(n&&!(r in o))return;t.issues.push(...sn(r,e.issues))}e.value===void 0?r in o&&(t.value[r]=void 0):t.value[r]=e.value}function eE(e){let t=Object.keys(e.shape);for(let o of t)if(!e.shape?.[o]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${o}": expected a Zod schema`);let r=xx(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function tE(e,t,r,o,n,i){let a=[],l=n.keySet,c=n.catchall._zod,d=c.def.type,p=c.optout==="optional";for(let m in t){if(l.has(m))continue;if(d==="never"){a.push(m);continue}let h=c.run({value:t[m],issues:[]},o);h instanceof Promise?e.push(h.then(g=>qh(g,r,m,t,p))):qh(h,r,m,t,p)}return a.length&&r.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:i}),e.length?Promise.all(e).then(()=>r):r}var gW=U("$ZodObject",(e,t)=>{if(Ue.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let l=t.shape;Object.defineProperty(t,"shape",{get:()=>{let c={...l};return Object.defineProperty(t,"shape",{value:c}),c}})}let o=Pl(()=>eE(t));Ye(e._zod,"propValues",()=>{let l=t.shape,c={};for(let d in l){let p=l[d]._zod;if(p.values){c[d]??(c[d]=new Set);for(let m of p.values)c[d].add(m)}}return c});let n=ls,i=t.catchall,a;e._zod.parse=(l,c)=>{a??(a=o.value);let d=l.value;if(!n(d))return l.issues.push({expected:"object",code:"invalid_type",input:d,inst:e}),l;l.value={};let p=[],m=a.shape;for(let h of a.keys){let g=m[h],w=g._zod.optout==="optional",$=g._zod.run({value:d[h],issues:[]},c);$ instanceof Promise?p.push($.then(T=>qh(T,l,h,d,w))):qh($,l,h,d,w)}return i?tE(p,d,l,c,o.value,e):p.length?Promise.all(p).then(()=>l):l}}),rE=U("$ZodObjectJIT",(e,t)=>{gW.init(e,t);let r=e._zod.parse,o=Pl(()=>eE(t)),n=h=>{let g=new Bh(["shape","payload","ctx"]),w=o.value,$=k=>{let M=Dh(k);return`shape[${M}]._zod.run({ value: input[${M}], issues: [] }, ctx)`};g.write("const input = payload.value;");let T=Object.create(null),z=0;for(let k of w.keys)T[k]=`key_${z++}`;g.write("const newResult = {};");for(let k of w.keys){let M=T[k],E=Dh(k),F=h[k]?._zod?.optout==="optional";g.write(`const ${M} = ${$(k)};`),F?g.write(`
17        if (${M}.issues.length) {
18          if (${E} in input) {
19            payload.issues = payload.issues.concat(${M}.issues.map(iss => ({
20              ...iss,
21              path: iss.path ? [${E}, ...iss.path] : [${E}]
22            })));
23          }
24        }
25        
26        if (${M}.value === undefined) {
27          if (${E} in input) {
28            newResult[${E}] = undefined;
29          }
30        } else {
31          newResult[${E}] = ${M}.value;
32        }
33        
34      `):g.write(`
35        if (${M}.issues.length) {
36          payload.issues = payload.issues.concat(${M}.issues.map(iss => ({
37            ...iss,
38            path: iss.path ? [${E}, ...iss.path] : [${E}]
39          })));
40        }
41        
42        if (${M}.value === undefined) {
43          if (${E} in input) {
44            newResult[${E}] = undefined;
45          }
46        } else {
47          newResult[${E}] = ${M}.value;
48        }
49        
50      `)}g.write("payload.value = newResult;"),g.write("return payload;");let P=g.compile();return(k,M)=>P(h,k,M)},i,a=ls,l=!Rh.jitless,d=l&&yx.value,p=t.catchall,m;e._zod.parse=(h,g)=>{m??(m=o.value);let w=h.value;return a(w)?l&&d&&g?.async===!1&&g.jitless!==!0?(i||(i=n(t.shape)),h=i(h,g),p?tE([],w,h,g,m,e):h):r(h,g):(h.issues.push({expected:"object",code:"invalid_type",input:w,inst:e}),h)}});function sz(e,t,r,o){for(let i of e)if(i.issues.length===0)return t.value=i.value,t;let n=e.filter(i=>!Yi(i));return n.length===1?(t.value=n[0].value,n[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(i=>i.issues.map(a=>Gr(a,o,fr())))}),t)}var Wh=U("$ZodUnion",(e,t)=>{Ue.init(e,t),Ye(e._zod,"optin",()=>t.options.some(n=>n._zod.optin==="optional")?"optional":void 0),Ye(e._zod,"optout",()=>t.options.some(n=>n._zod.optout==="optional")?"optional":void 0),Ye(e._zod,"values",()=>{if(t.options.every(n=>n._zod.values))return new Set(t.options.flatMap(n=>Array.from(n._zod.values)))}),Ye(e._zod,"pattern",()=>{if(t.options.every(n=>n._zod.pattern)){let n=t.options.map(i=>i._zod.pattern);return new RegExp(`^(${n.map(i=>gd(i.source)).join("|")})$`)}});let r=t.options.length===1,o=t.options[0]._zod.run;e._zod.parse=(n,i)=>{if(r)return o(n,i);let a=!1,l=[];for(let c of t.options){let d=c._zod.run({value:n.value,issues:[]},i);if(d instanceof Promise)l.push(d),a=!0;else{if(d.issues.length===0)return d;l.push(d)}}return a?Promise.all(l).then(c=>sz(c,n,e,i)):sz(l,n,e,i)}});function lz(e,t,r,o){let n=e.filter(i=>i.issues.length===0);return n.length===1?(t.value=n[0].value,t):(n.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(i=>i.issues.map(a=>Gr(a,o,fr())))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:!1}),t)}var nE=U("$ZodXor",(e,t)=>{Wh.init(e,t),t.inclusive=!1;let r=t.options.length===1,o=t.options[0]._zod.run;e._zod.parse=(n,i)=>{if(r)return o(n,i);let a=!1,l=[];for(let c of t.options){let d=c._zod.run({value:n.value,issues:[]},i);d instanceof Promise?(l.push(d),a=!0):l.push(d)}return a?Promise.all(l).then(c=>lz(c,n,e,i)):lz(l,n,e,i)}}),oE=U("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Wh.init(e,t);let r=e._zod.parse;Ye(e._zod,"propValues",()=>{let n={};for(let i of t.options){let a=i._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(let[l,c]of Object.entries(a)){n[l]||(n[l]=new Set);for(let d of c)n[l].add(d)}}return n});let o=Pl(()=>{let n=t.options,i=new Map;for(let a of n){let l=a._zod.propValues?.[t.discriminator];if(!l||l.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(let c of l){if(i.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);i.set(c,a)}}return i});e._zod.parse=(n,i)=>{let a=n.value;if(!ls(a))return n.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),n;let l=o.value.get(a?.[t.discriminator]);return l?l._zod.run(n,i):t.unionFallback?r(n,i):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:a,path:[t.discriminator],inst:e}),n)}}),iE=U("$ZodIntersection",(e,t)=>{Ue.init(e,t),e._zod.parse=(r,o)=>{let n=r.value,i=t.left._zod.run({value:n,issues:[]},o),a=t.right._zod.run({value:n,issues:[]},o);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([c,d])=>cz(r,c,d)):cz(r,i,a)}});function nw(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(Xi(e)&&Xi(t)){let r=Object.keys(t),o=Object.keys(e).filter(i=>r.indexOf(i)!==-1),n={...e,...t};for(let i of o){let a=nw(e[i],t[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};n[i]=a.data}return{valid:!0,data:n}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let o=0;o<e.length;o++){let n=e[o],i=t[o],a=nw(n,i);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};r.push(a.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function cz(e,t,r){let o=new Map,n;for(let l of t.issues)if(l.code==="unrecognized_keys"){n??(n=l);for(let c of l.keys)o.has(c)||o.set(c,{}),o.get(c).l=!0}else e.issues.push(l);for(let l of r.issues)if(l.code==="unrecognized_keys")for(let c of l.keys)o.has(c)||o.set(c,{}),o.get(c).r=!0;else e.issues.push(l);let i=[...o].filter(([,l])=>l.l&&l.r).map(([l])=>l);if(i.length&&n&&e.issues.push({...n,keys:i}),Yi(e))return e;let a=nw(t.value,r.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}var aw=U("$ZodTuple",(e,t)=>{Ue.init(e,t);let r=t.items;e._zod.parse=(o,n)=>{let i=o.value;if(!Array.isArray(i))return o.issues.push({input:i,inst:e,expected:"tuple",code:"invalid_type"}),o;o.value=[];let a=[],l=[...r].reverse().findIndex(p=>p._zod.optin!=="optional"),c=l===-1?0:r.length-l;if(!t.rest){let p=i.length>r.length,m=i.length<c-1;if(p||m)return o.issues.push({...p?{code:"too_big",maximum:r.length,inclusive:!0}:{code:"too_small",minimum:r.length},input:i,inst:e,origin:"array"}),o}let d=-1;for(let p of r){if(d++,d>=i.length&&d>=c)continue;let m=p._zod.run({value:i[d],issues:[]},n);m instanceof Promise?a.push(m.then(h=>Fh(h,o,d))):Fh(m,o,d)}if(t.rest){let p=i.slice(r.length);for(let m of p){d++;let h=t.rest._zod.run({value:m,issues:[]},n);h instanceof Promise?a.push(h.then(g=>Fh(g,o,d))):Fh(h,o,d)}}return a.length?Promise.all(a).then(()=>o):o}});function Fh(e,t,r){e.issues.length&&t.issues.push(...sn(r,e.issues)),t.value[r]=e.value}var aE=U("$ZodRecord",(e,t)=>{Ue.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!Xi(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:e}),r;let i=[],a=t.keyType._zod.values;if(a){r.value={};let l=new Set;for(let d of a)if(typeof d=="string"||typeof d=="number"||typeof d=="symbol"){l.add(typeof d=="number"?d.toString():d);let p=t.valueType._zod.run({value:n[d],issues:[]},o);p instanceof Promise?i.push(p.then(m=>{m.issues.length&&r.issues.push(...sn(d,m.issues)),r.value[d]=m.value})):(p.issues.length&&r.issues.push(...sn(d,p.issues)),r.value[d]=p.value)}let c;for(let d in n)l.has(d)||(c=c??[],c.push(d));c&&c.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:c})}else{r.value={};for(let l of Reflect.ownKeys(n)){if(l==="__proto__")continue;let c=t.keyType._zod.run({value:l,issues:[]},o);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof l=="string"&&Uh.test(l)&&c.issues.length){let m=t.keyType._zod.run({value:Number(l),issues:[]},o);if(m instanceof Promise)throw new Error("Async schemas not supported in object keys currently");m.issues.length===0&&(c=m)}if(c.issues.length){t.mode==="loose"?r.value[l]=n[l]:r.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(m=>Gr(m,o,fr())),input:l,path:[l],inst:e});continue}let p=t.valueType._zod.run({value:n[l],issues:[]},o);p instanceof Promise?i.push(p.then(m=>{m.issues.length&&r.issues.push(...sn(l,m.issues)),r.value[c.value]=m.value})):(p.issues.length&&r.issues.push(...sn(l,p.issues)),r.value[c.value]=p.value)}}return i.length?Promise.all(i).then(()=>r):r}}),sE=U("$ZodMap",(e,t)=>{Ue.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!(n instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:n,inst:e}),r;let i=[];r.value=new Map;for(let[a,l]of n){let c=t.keyType._zod.run({value:a,issues:[]},o),d=t.valueType._zod.run({value:l,issues:[]},o);c instanceof Promise||d instanceof Promise?i.push(Promise.all([c,d]).then(([p,m])=>{uz(p,m,r,a,n,e,o)})):uz(c,d,r,a,n,e,o)}return i.length?Promise.all(i).then(()=>r):r}});function uz(e,t,r,o,n,i,a){e.issues.length&&(vd.has(typeof o)?r.issues.push(...sn(o,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:i,issues:e.issues.map(l=>Gr(l,a,fr()))})),t.issues.length&&(vd.has(typeof o)?r.issues.push(...sn(o,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:i,key:o,issues:t.issues.map(l=>Gr(l,a,fr()))})),r.value.set(e.value,t.value)}var lE=U("$ZodSet",(e,t)=>{Ue.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!(n instanceof Set))return r.issues.push({input:n,inst:e,expected:"set",code:"invalid_type"}),r;let i=[];r.value=new Set;for(let a of n){let l=t.valueType._zod.run({value:a,issues:[]},o);l instanceof Promise?i.push(l.then(c=>dz(c,r))):dz(l,r)}return i.length?Promise.all(i).then(()=>r):r}});function dz(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var cE=U("$ZodEnum",(e,t)=>{Ue.init(e,t);let r=hd(t.entries),o=new Set(r);e._zod.values=o,e._zod.pattern=new RegExp(`^(${r.filter(n=>vd.has(typeof n)).map(n=>typeof n=="string"?zn(n):n.toString()).join("|")})$`),e._zod.parse=(n,i)=>{let a=n.value;return o.has(a)||n.issues.push({code:"invalid_value",values:r,input:a,inst:e}),n}}),uE=U("$ZodLiteral",(e,t)=>{if(Ue.init(e,t),t.values.length===0)throw new 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(o=>typeof o=="string"?zn(o):o?zn(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,n)=>{let i=o.value;return r.has(i)||o.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),o}}),dE=U("$ZodFile",(e,t)=>{Ue.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return n instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:n,inst:e}),r}}),pE=U("$ZodTransform",(e,t)=>{Ue.init(e,t),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new ss(e.constructor.name);let n=t.transform(r.value,r);if(o.async)return(n instanceof Promise?n:Promise.resolve(n)).then(a=>(r.value=a,r));if(n instanceof Promise)throw new yo;return r.value=n,r}});function pz(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var sw=U("$ZodOptional",(e,t)=>{Ue.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Ye(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Ye(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${gd(r.source)})?$`):void 0}),e._zod.parse=(r,o)=>{if(t.innerType._zod.optin==="optional"){let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>pz(i,r.value)):pz(n,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,o)}}),mE=U("$ZodExactOptional",(e,t)=>{sw.init(e,t),Ye(e._zod,"values",()=>t.innerType._zod.values),Ye(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,o)=>t.innerType._zod.run(r,o)}),fE=U("$ZodNullable",(e,t)=>{Ue.init(e,t),Ye(e._zod,"optin",()=>t.innerType._zod.optin),Ye(e._zod,"optout",()=>t.innerType._zod.optout),Ye(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${gd(r.source)}|null)$`):void 0}),Ye(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,o)=>r.value===null?r:t.innerType._zod.run(r,o)}),hE=U("$ZodDefault",(e,t)=>{Ue.init(e,t),e._zod.optin="optional",Ye(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);if(r.value===void 0)return r.value=t.defaultValue,r;let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>mz(i,t)):mz(n,t)}});function mz(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var gE=U("$ZodPrefault",(e,t)=>{Ue.init(e,t),e._zod.optin="optional",Ye(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>(o.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,o))}),vE=U("$ZodNonOptional",(e,t)=>{Ue.init(e,t),Ye(e._zod,"values",()=>{let r=t.innerType._zod.values;return r?new Set([...r].filter(o=>o!==void 0)):void 0}),e._zod.parse=(r,o)=>{let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>fz(i,e)):fz(n,e)}});function fz(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var yE=U("$ZodSuccess",(e,t)=>{Ue.init(e,t),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new ss("ZodSuccess");let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>(r.value=i.issues.length===0,r)):(r.value=n.issues.length===0,r)}}),bE=U("$ZodCatch",(e,t)=>{Ue.init(e,t),Ye(e._zod,"optin",()=>t.innerType._zod.optin),Ye(e._zod,"optout",()=>t.innerType._zod.optout),Ye(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>(r.value=i.value,i.issues.length&&(r.value=t.catchValue({...r,error:{issues:i.issues.map(a=>Gr(a,o,fr()))},input:r.value}),r.issues=[]),r)):(r.value=n.value,n.issues.length&&(r.value=t.catchValue({...r,error:{issues:n.issues.map(i=>Gr(i,o,fr()))},input:r.value}),r.issues=[]),r)}}),xE=U("$ZodNaN",(e,t)=>{Ue.init(e,t),e._zod.parse=(r,o)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),wE=U("$ZodPipe",(e,t)=>{Ue.init(e,t),Ye(e._zod,"values",()=>t.in._zod.values),Ye(e._zod,"optin",()=>t.in._zod.optin),Ye(e._zod,"optout",()=>t.out._zod.optout),Ye(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,o)=>{if(o.direction==="backward"){let i=t.out._zod.run(r,o);return i instanceof Promise?i.then(a=>Zh(a,t.in,o)):Zh(i,t.in,o)}let n=t.in._zod.run(r,o);return n instanceof Promise?n.then(i=>Zh(i,t.out,o)):Zh(n,t.out,o)}});function Zh(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}var Jh=U("$ZodCodec",(e,t)=>{Ue.init(e,t),Ye(e._zod,"values",()=>t.in._zod.values),Ye(e._zod,"optin",()=>t.in._zod.optin),Ye(e._zod,"optout",()=>t.out._zod.optout),Ye(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,o)=>{if((o.direction||"forward")==="forward"){let i=t.in._zod.run(r,o);return i instanceof Promise?i.then(a=>Vh(a,t,o)):Vh(i,t,o)}else{let i=t.out._zod.run(r,o);return i instanceof Promise?i.then(a=>Vh(a,t,o)):Vh(i,t,o)}}});function Vh(e,t,r){if(e.issues.length)return e.aborted=!0,e;if((r.direction||"forward")==="forward"){let n=t.transform(e.value,e);return n instanceof Promise?n.then(i=>Gh(e,i,t.out,r)):Gh(e,n,t.out,r)}else{let n=t.reverseTransform(e.value,e);return n instanceof Promise?n.then(i=>Gh(e,i,t.in,r)):Gh(e,n,t.in,r)}}function Gh(e,t,r,o){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},o)}var _E=U("$ZodReadonly",(e,t)=>{Ue.init(e,t),Ye(e._zod,"propValues",()=>t.innerType._zod.propValues),Ye(e._zod,"values",()=>t.innerType._zod.values),Ye(e._zod,"optin",()=>t.innerType?._zod?.optin),Ye(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(hz):hz(n)}});function hz(e){return e.value=Object.freeze(e.value),e}var kE=U("$ZodTemplateLiteral",(e,t)=>{Ue.init(e,t);let r=[];for(let o of t.parts)if(typeof o=="object"&&o!==null){if(!o._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...o._zod.traits].shift()}`);let n=o._zod.pattern instanceof RegExp?o._zod.pattern.source:o._zod.pattern;if(!n)throw new Error(`Invalid template literal part: ${o._zod.traits}`);let i=n.startsWith("^")?1:0,a=n.endsWith("$")?n.length-1:n.length;r.push(n.slice(i,a))}else if(o===null||bx.has(typeof o))r.push(zn(`${o}`));else throw new Error(`Invalid template literal part: ${o}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(o,n)=>typeof o.value!="string"?(o.issues.push({input:o.value,inst:e,expected:"string",code:"invalid_type"}),o):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(o.value)||o.issues.push({input:o.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),o)}),SE=U("$ZodFunction",(e,t)=>(Ue.init(e,t),e._def=t,e._zod.def=t,e.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return function(...o){let n=e._def.input?$x(e._def.input,o):o,i=Reflect.apply(r,this,n);return e._def.output?$x(e._def.output,i):i}},e.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return async function(...o){let n=e._def.input?await Tx(e._def.input,o):o,i=await Reflect.apply(r,this,n);return e._def.output?await Tx(e._def.output,i):i}},e._zod.parse=(r,o)=>typeof r.value!="function"?(r.issues.push({code:"invalid_type",expected:"function",input:r.value,inst:e}),r):(e._def.output&&e._def.output._zod.def.type==="promise"?r.value=e.implementAsync(r.value):r.value=e.implement(r.value),r),e.input=(...r)=>{let o=e.constructor;return Array.isArray(r[0])?new o({type:"function",input:new aw({type:"tuple",items:r[0],rest:r[1]}),output:e._def.output}):new o({type:"function",input:r[0],output:e._def.output})},e.output=r=>{let o=e.constructor;return new o({type:"function",input:e._def.input,output:r})},e)),$E=U("$ZodPromise",(e,t)=>{Ue.init(e,t),e._zod.parse=(r,o)=>Promise.resolve(r.value).then(n=>t.innerType._zod.run({value:n,issues:[]},o))}),TE=U("$ZodLazy",(e,t)=>{Ue.init(e,t),Ye(e._zod,"innerType",()=>t.getter()),Ye(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),Ye(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),Ye(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),Ye(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(r,o)=>e._zod.innerType._zod.run(r,o)}),IE=U("$ZodCustom",(e,t)=>{It.init(e,t),Ue.init(e,t),e._zod.parse=(r,o)=>r,e._zod.check=r=>{let o=r.value,n=t.fn(o);if(n instanceof Promise)return n.then(i=>gz(i,r,o,e));gz(n,r,o,e)}});function gz(e,t,r,o){if(!e){let n={code:"custom",input:r,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(n.params=o._zod.def.params),t.issues.push(Cl(n))}}var yW=()=>{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"},map:{unit:"entries",verb:"to have"}};function t(n){return e[n]??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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=Re(n.input),l=o[a]??a;return`Invalid input: expected ${i}, received ${l}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${Me(n.values[0])}`:`Invalid option: expected one of ${Ae(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Too big: expected ${n.origin??"value"} to have ${i}${n.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${n.origin??"value"} to be ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Too small: expected ${n.origin} to have ${i}${n.minimum.toString()} ${a.unit}`:`Too small: expected ${n.origin} to be ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Invalid string: must start with "${i.prefix}"`:i.format==="ends_with"?`Invalid string: must end with "${i.suffix}"`:i.format==="includes"?`Invalid string: must include "${i.includes}"`:i.format==="regex"?`Invalid string: must match pattern ${i.pattern}`:`Invalid ${r[i.format]??n.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${n.divisor}`;case"unrecognized_keys":return`Unrecognized key${n.keys.length>1?"s":""}: ${Ae(n.keys,", ")}`;case"invalid_key":return`Invalid key in ${n.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${n.origin}`;default:return"Invalid input"}}};function lw(){return{localeError:yW()}}var CE;var cw=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){let o=r[0];return this._map.set(t,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){let r=t._zod.parent;if(r){let o={...this.get(r)??{}};delete o.id;let n={...o,...this._map.get(t)};return Object.keys(n).length?n:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function zE(){return new cw}(CE=globalThis).__zod_globalRegistry??(CE.__zod_globalRegistry=zE());var qr=globalThis.__zod_globalRegistry;function EE(e,t){return new e({type:"string",...pe(t)})}function uw(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...pe(t)})}function Kh(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...pe(t)})}function dw(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...pe(t)})}function pw(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...pe(t)})}function mw(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...pe(t)})}function fw(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...pe(t)})}function Xh(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...pe(t)})}function hw(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...pe(t)})}function gw(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...pe(t)})}function vw(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...pe(t)})}function yw(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...pe(t)})}function bw(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...pe(t)})}function xw(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...pe(t)})}function ww(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...pe(t)})}function _w(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...pe(t)})}function kw(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...pe(t)})}function AE(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...pe(t)})}function Sw(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...pe(t)})}function $w(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...pe(t)})}function Tw(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...pe(t)})}function Iw(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...pe(t)})}function Pw(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...pe(t)})}function Cw(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...pe(t)})}function ME(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...pe(t)})}function NE(e,t){return new e({type:"string",format:"date",check:"string_format",...pe(t)})}function RE(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...pe(t)})}function DE(e,t){return new e({type:"string",format:"duration",check:"string_format",...pe(t)})}function OE(e,t){return new e({type:"number",checks:[],...pe(t)})}function LE(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...pe(t)})}function jE(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...pe(t)})}function UE(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...pe(t)})}function BE(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...pe(t)})}function FE(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...pe(t)})}function ZE(e,t){return new e({type:"boolean",...pe(t)})}function VE(e,t){return new e({type:"bigint",...pe(t)})}function GE(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...pe(t)})}function qE(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...pe(t)})}function HE(e,t){return new e({type:"symbol",...pe(t)})}function WE(e,t){return new e({type:"undefined",...pe(t)})}function JE(e,t){return new e({type:"null",...pe(t)})}function KE(e){return new e({type:"any"})}function XE(e){return new e({type:"unknown"})}function YE(e,t){return new e({type:"never",...pe(t)})}function QE(e,t){return new e({type:"void",...pe(t)})}function eA(e,t){return new e({type:"date",...pe(t)})}function tA(e,t){return new e({type:"nan",...pe(t)})}function Qi(e,t){return new tw({check:"less_than",...pe(t),value:e,inclusive:!1})}function Hn(e,t){return new tw({check:"less_than",...pe(t),value:e,inclusive:!0})}function ea(e,t){return new rw({check:"greater_than",...pe(t),value:e,inclusive:!1})}function ln(e,t){return new rw({check:"greater_than",...pe(t),value:e,inclusive:!0})}function rA(e){return ea(0,e)}function nA(e){return Qi(0,e)}function oA(e){return Hn(0,e)}function iA(e){return ln(0,e)}function El(e,t){return new UC({check:"multiple_of",...pe(t),value:e})}function Al(e,t){return new ZC({check:"max_size",...pe(t),maximum:e})}function ta(e,t){return new VC({check:"min_size",...pe(t),minimum:e})}function Pd(e,t){return new GC({check:"size_equals",...pe(t),size:e})}function Cd(e,t){return new qC({check:"max_length",...pe(t),maximum:e})}function us(e,t){return new HC({check:"min_length",...pe(t),minimum:e})}function zd(e,t){return new WC({check:"length_equals",...pe(t),length:e})}function Yh(e,t){return new JC({check:"string_format",format:"regex",...pe(t),pattern:e})}function Qh(e){return new KC({check:"string_format",format:"lowercase",...pe(e)})}function e0(e){return new XC({check:"string_format",format:"uppercase",...pe(e)})}function t0(e,t){return new YC({check:"string_format",format:"includes",...pe(t),includes:e})}function r0(e,t){return new QC({check:"string_format",format:"starts_with",...pe(t),prefix:e})}function n0(e,t){return new ez({check:"string_format",format:"ends_with",...pe(t),suffix:e})}function aA(e,t,r){return new tz({check:"property",property:e,schema:t,...pe(r)})}function o0(e,t){return new rz({check:"mime_type",mime:e,...pe(t)})}function Yo(e){return new nz({check:"overwrite",tx:e})}function i0(e){return Yo(t=>t.normalize(e))}function a0(){return Yo(e=>e.trim())}function s0(){return Yo(e=>e.toLowerCase())}function l0(){return Yo(e=>e.toUpperCase())}function c0(){return Yo(e=>vx(e))}function sA(e,t,r){return new e({type:"array",element:t,...pe(r)})}function lA(e,t){return new e({type:"file",...pe(t)})}function cA(e,t,r){let o=pe(r);return o.abort??(o.abort=!0),new e({type:"custom",check:"custom",fn:t,...o})}function uA(e,t,r){return new e({type:"custom",check:"custom",fn:t,...pe(r)})}function dA(e){let t=_W(r=>(r.addIssue=o=>{if(typeof o=="string")r.issues.push(Cl(o,r.value,t._zod.def));else{let n=o;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(Cl(n))}},e(r.value,r)));return t}function _W(e,t){let r=new It({check:"custom",...pe(t)});return r._zod.check=e,r}function pA(e){let t=new It({check:"describe"});return t._zod.onattach=[r=>{let o=qr.get(r)??{};qr.add(r,{...o,description:e})}],t._zod.check=()=>{},t}function mA(e){let t=new It({check:"meta"});return t._zod.onattach=[r=>{let o=qr.get(r)??{};qr.add(r,{...o,...e})}],t._zod.check=()=>{},t}function fA(e,t){let r=pe(t),o=r.truthy??["true","1","yes","on","y","enabled"],n=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(o=o.map(g=>typeof g=="string"?g.toLowerCase():g),n=n.map(g=>typeof g=="string"?g.toLowerCase():g));let i=new Set(o),a=new Set(n),l=e.Codec??Jh,c=e.Boolean??Hh,d=e.String??zl,p=new d({type:"string",error:r.error}),m=new c({type:"boolean",error:r.error}),h=new l({type:"pipe",in:p,out:m,transform:((g,w)=>{let $=g;return r.case!=="sensitive"&&($=$.toLowerCase()),i.has($)?!0:a.has($)?!1:(w.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...a],input:w.value,inst:h,continue:!1}),{})}),reverseTransform:((g,w)=>g===!0?o[0]||"true":n[0]||"false"),error:r.error});return h}function Ed(e,t,r,o={}){let n=pe(o),i={...pe(o),check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:l=>r.test(l),...n};return r instanceof RegExp&&(i.pattern=r),new e(i)}function Ml(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??qr,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 vt(e,t,r={path:[],schemaPath:[]}){var o;let n=e._zod.def,i=t.seen.get(e);if(i)return i.count++,r.schemaPath.includes(e)&&(i.cycle=r.path),i.schema;let a={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,a);let l=e._zod.toJSONSchema?.();if(l)a.schema=l;else{let p={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,p);else{let h=a.schema,g=t.processors[n.type];if(!g)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);g(e,t,h,p)}let m=e._zod.parent;m&&(a.ref||(a.ref=m),vt(m,t,p),t.seen.get(m).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(a.schema,c),t.io==="input"&&Er(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&a.schema._prefault&&((o=a.schema).default??(o.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function Nl(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=new Map;for(let a of e.seen.entries()){let l=e.metadataRegistry.get(a[0])?.id;if(l){let c=o.get(l);if(c&&c!==a[0])throw new Error(`Duplicate schema id "${l}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(l,a[0])}}let n=a=>{let l=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let m=e.external.registry.get(a[0])?.id,h=e.external.uri??(w=>w);if(m)return{ref:h(m)};let g=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=g,{defId:g,ref:`${h("__shared")}#/${l}/${g}`}}if(a[1]===r)return{ref:"#"};let d=`#/${l}/`,p=a[1].schema.id??`__schema${e.counter++}`;return{defId:p,ref:d+p}},i=a=>{if(a[1].schema.$ref)return;let l=a[1],{ref:c,defId:d}=n(a);l.def={...l.schema},d&&(l.defId=d);let p=l.schema;for(let m in p)delete p[m];p.$ref=c};if(e.cycles==="throw")for(let a of e.seen.entries()){let l=a[1];if(l.cycle)throw new Error(`Cycle detected: #/${l.cycle?.join("/")}/<root>
51
52Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of e.seen.entries()){let l=a[1];if(t===a[0]){i(a);continue}if(e.external){let d=e.external.registry.get(a[0])?.id;if(t!==a[0]&&d){i(a);continue}}if(e.metadataRegistry.get(a[0])?.id){i(a);continue}if(l.cycle){i(a);continue}if(l.count>1&&e.reused==="ref"){i(a);continue}}}function Rl(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=a=>{let l=e.seen.get(a);if(l.ref===null)return;let c=l.def??l.schema,d={...c},p=l.ref;if(l.ref=null,p){o(p);let h=e.seen.get(p),g=h.schema;if(g.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(g)):Object.assign(c,g),Object.assign(c,d),a._zod.parent===p)for(let $ in c)$==="$ref"||$==="allOf"||$ in d||delete c[$];if(g.$ref&&h.def)for(let $ in c)$==="$ref"||$==="allOf"||$ in h.def&&JSON.stringify(c[$])===JSON.stringify(h.def[$])&&delete c[$]}let m=a._zod.parent;if(m&&m!==p){o(m);let h=e.seen.get(m);if(h?.schema.$ref&&(c.$ref=h.schema.$ref,h.def))for(let g in c)g==="$ref"||g==="allOf"||g in h.def&&JSON.stringify(c[g])===JSON.stringify(h.def[g])&&delete c[g]}e.override({zodSchema:a,jsonSchema:c,path:l.path??[]})};for(let a of[...e.seen.entries()].reverse())o(a[0]);let n={};if(e.target==="draft-2020-12"?n.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?n.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?n.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let a=e.external.registry.get(t)?.id;if(!a)throw new Error("Schema is missing an `id` property");n.$id=e.external.uri(a)}Object.assign(n,r.def??r.schema);let i=e.external?.defs??{};for(let a of e.seen.entries()){let l=a[1];l.def&&l.defId&&(i[l.defId]=l.def)}e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?n.$defs=i:n.definitions=i);try{let a=JSON.parse(JSON.stringify(n));return Object.defineProperty(a,"~standard",{value:{...t["~standard"],jsonSchema:{input:Ad(t,"input",e.processors),output:Ad(t,"output",e.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}function Er(e,t){let r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);let o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return Er(o.element,r);if(o.type==="set")return Er(o.valueType,r);if(o.type==="lazy")return Er(o.getter(),r);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return Er(o.innerType,r);if(o.type==="intersection")return Er(o.left,r)||Er(o.right,r);if(o.type==="record"||o.type==="map")return Er(o.keyType,r)||Er(o.valueType,r);if(o.type==="pipe")return Er(o.in,r)||Er(o.out,r);if(o.type==="object"){for(let n in o.shape)if(Er(o.shape[n],r))return!0;return!1}if(o.type==="union"){for(let n of o.options)if(Er(n,r))return!0;return!1}if(o.type==="tuple"){for(let n of o.items)if(Er(n,r))return!0;return!!(o.rest&&Er(o.rest,r))}return!1}var hA=(e,t={})=>r=>{let o=Ml({...r,processors:t});return vt(e,o),Nl(o,e),Rl(o,e)},Ad=(e,t,r={})=>o=>{let{libraryOptions:n,target:i}=o??{},a=Ml({...n??{},target:i,io:t,processors:r});return vt(e,a),Nl(a,e),Rl(a,e)};var kW={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Ew=(e,t,r,o)=>{let n=r;n.type="string";let{minimum:i,maximum:a,format:l,patterns:c,contentEncoding:d}=e._zod.bag;if(typeof i=="number"&&(n.minLength=i),typeof a=="number"&&(n.maxLength=a),l&&(n.format=kW[l]??l,n.format===""&&delete n.format,l==="time"&&delete n.format),d&&(n.contentEncoding=d),c&&c.size>0){let p=[...c];p.length===1?n.pattern=p[0].source:p.length>1&&(n.allOf=[...p.map(m=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:m.source}))])}},Aw=(e,t,r,o)=>{let n=r,{minimum:i,maximum:a,format:l,multipleOf:c,exclusiveMaximum:d,exclusiveMinimum:p}=e._zod.bag;typeof l=="string"&&l.includes("int")?n.type="integer":n.type="number",typeof p=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(n.minimum=p,n.exclusiveMinimum=!0):n.exclusiveMinimum=p),typeof i=="number"&&(n.minimum=i,typeof p=="number"&&t.target!=="draft-04"&&(p>=i?delete n.minimum:delete n.exclusiveMinimum)),typeof d=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(n.maximum=d,n.exclusiveMaximum=!0):n.exclusiveMaximum=d),typeof a=="number"&&(n.maximum=a,typeof d=="number"&&t.target!=="draft-04"&&(d<=a?delete n.maximum:delete n.exclusiveMaximum)),typeof c=="number"&&(n.multipleOf=c)},Mw=(e,t,r,o)=>{r.type="boolean"},Nw=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},Rw=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},Dw=(e,t,r,o)=>{t.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},Ow=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},Lw=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},jw=(e,t,r,o)=>{r.not={}},Uw=(e,t,r,o)=>{},Bw=(e,t,r,o)=>{},Fw=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},Zw=(e,t,r,o)=>{let n=e._zod.def,i=hd(n.entries);i.every(a=>typeof a=="number")&&(r.type="number"),i.every(a=>typeof a=="string")&&(r.type="string"),r.enum=i},Vw=(e,t,r,o)=>{let n=e._zod.def,i=[];for(let a of n.values)if(a===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");i.push(Number(a))}else i.push(a);if(i.length!==0)if(i.length===1){let a=i[0];r.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?r.enum=[a]:r.const=a}else i.every(a=>typeof a=="number")&&(r.type="number"),i.every(a=>typeof a=="string")&&(r.type="string"),i.every(a=>typeof a=="boolean")&&(r.type="boolean"),i.every(a=>a===null)&&(r.type="null"),r.enum=i},Gw=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},qw=(e,t,r,o)=>{let n=r,i=e._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");n.type="string",n.pattern=i.source},Hw=(e,t,r,o)=>{let n=r,i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:l,mime:c}=e._zod.bag;a!==void 0&&(i.minLength=a),l!==void 0&&(i.maxLength=l),c?c.length===1?(i.contentMediaType=c[0],Object.assign(n,i)):(Object.assign(n,i),n.anyOf=c.map(d=>({contentMediaType:d}))):Object.assign(n,i)},Ww=(e,t,r,o)=>{r.type="boolean"},Jw=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Kw=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},Xw=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Yw=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},Qw=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},e_=(e,t,r,o)=>{let n=r,i=e._zod.def,{minimum:a,maximum:l}=e._zod.bag;typeof a=="number"&&(n.minItems=a),typeof l=="number"&&(n.maxItems=l),n.type="array",n.items=vt(i.element,t,{...o,path:[...o.path,"items"]})},t_=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="object",n.properties={};let a=i.shape;for(let d in a)n.properties[d]=vt(a[d],t,{...o,path:[...o.path,"properties",d]});let l=new Set(Object.keys(a)),c=new Set([...l].filter(d=>{let p=i.shape[d]._zod;return t.io==="input"?p.optin===void 0:p.optout===void 0}));c.size>0&&(n.required=Array.from(c)),i.catchall?._zod.def.type==="never"?n.additionalProperties=!1:i.catchall?i.catchall&&(n.additionalProperties=vt(i.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(n.additionalProperties=!1)},u0=(e,t,r,o)=>{let n=e._zod.def,i=n.inclusive===!1,a=n.options.map((l,c)=>vt(l,t,{...o,path:[...o.path,i?"oneOf":"anyOf",c]}));i?r.oneOf=a:r.anyOf=a},r_=(e,t,r,o)=>{let n=e._zod.def,i=vt(n.left,t,{...o,path:[...o.path,"allOf",0]}),a=vt(n.right,t,{...o,path:[...o.path,"allOf",1]}),l=d=>"allOf"in d&&Object.keys(d).length===1,c=[...l(i)?i.allOf:[i],...l(a)?a.allOf:[a]];r.allOf=c},n_=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="array";let a=t.target==="draft-2020-12"?"prefixItems":"items",l=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",c=i.items.map((h,g)=>vt(h,t,{...o,path:[...o.path,a,g]})),d=i.rest?vt(i.rest,t,{...o,path:[...o.path,l,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null;t.target==="draft-2020-12"?(n.prefixItems=c,d&&(n.items=d)):t.target==="openapi-3.0"?(n.items={anyOf:c},d&&n.items.anyOf.push(d),n.minItems=c.length,d||(n.maxItems=c.length)):(n.items=c,d&&(n.additionalItems=d));let{minimum:p,maximum:m}=e._zod.bag;typeof p=="number"&&(n.minItems=p),typeof m=="number"&&(n.maxItems=m)},o_=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="object";let a=i.keyType,c=a._zod.bag?.patterns;if(i.mode==="loose"&&c&&c.size>0){let p=vt(i.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});n.patternProperties={};for(let m of c)n.patternProperties[m.source]=p}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(n.propertyNames=vt(i.keyType,t,{...o,path:[...o.path,"propertyNames"]})),n.additionalProperties=vt(i.valueType,t,{...o,path:[...o.path,"additionalProperties"]});let d=a._zod.values;if(d){let p=[...d].filter(m=>typeof m=="string"||typeof m=="number");p.length>0&&(n.required=p)}},i_=(e,t,r,o)=>{let n=e._zod.def,i=vt(n.innerType,t,o),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=n.innerType,r.nullable=!0):r.anyOf=[i,{type:"null"}]},a_=(e,t,r,o)=>{let n=e._zod.def;vt(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},s_=(e,t,r,o)=>{let n=e._zod.def;vt(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,r.default=JSON.parse(JSON.stringify(n.defaultValue))},l_=(e,t,r,o)=>{let n=e._zod.def;vt(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(n.defaultValue)))},c_=(e,t,r,o)=>{let n=e._zod.def;vt(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType;let a;try{a=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=a},u_=(e,t,r,o)=>{let n=e._zod.def,i=t.io==="input"?n.in._zod.def.type==="transform"?n.out:n.in:n.out;vt(i,t,o);let a=t.seen.get(e);a.ref=i},d_=(e,t,r,o)=>{let n=e._zod.def;vt(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,r.readOnly=!0},p_=(e,t,r,o)=>{let n=e._zod.def;vt(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},d0=(e,t,r,o)=>{let n=e._zod.def;vt(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},m_=(e,t,r,o)=>{let n=e._zod.innerType;vt(n,t,o);let i=t.seen.get(e);i.ref=n},zw={string:Ew,number:Aw,boolean:Mw,bigint:Nw,symbol:Rw,null:Dw,undefined:Ow,void:Lw,never:jw,any:Uw,unknown:Bw,date:Fw,enum:Zw,literal:Vw,nan:Gw,template_literal:qw,file:Hw,success:Ww,custom:Jw,function:Kw,transform:Xw,map:Yw,set:Qw,array:e_,object:t_,union:u0,intersection:r_,tuple:n_,record:o_,nullable:i_,nonoptional:a_,default:s_,prefault:l_,catch:c_,pipe:u_,readonly:d_,promise:p_,optional:d0,lazy:m_};function p0(e,t){if("_idmap"in e){let o=e,n=Ml({...t,processors:zw}),i={};for(let c of o._idmap.entries()){let[d,p]=c;vt(p,n)}let a={},l={registry:o,uri:t?.uri,defs:i};n.external=l;for(let c of o._idmap.entries()){let[d,p]=c;Nl(n,p),a[d]=Rl(n,p)}if(Object.keys(i).length>0){let c=n.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[c]:i}}return{schemas:a}}let r=Ml({...t,processors:zw});return vt(e,r),Nl(r,e),Rl(r,e)}var Nd={};Zr(Nd,{ZodAny:()=>RA,ZodArray:()=>jA,ZodBase64:()=>O_,ZodBase64URL:()=>L_,ZodBigInt:()=>k0,ZodBigIntFormat:()=>B_,ZodBoolean:()=>_0,ZodCIDRv4:()=>R_,ZodCIDRv6:()=>D_,ZodCUID:()=>P_,ZodCUID2:()=>C_,ZodCatch:()=>sM,ZodCodec:()=>K_,ZodCustom:()=>P0,ZodCustomStringFormat:()=>Dd,ZodDate:()=>Z_,ZodDefault:()=>tM,ZodDiscriminatedUnion:()=>BA,ZodE164:()=>j_,ZodEmail:()=>$_,ZodEmoji:()=>T_,ZodEnum:()=>Rd,ZodExactOptional:()=>YA,ZodFile:()=>KA,ZodFunction:()=>gM,ZodGUID:()=>h0,ZodIPv4:()=>M_,ZodIPv6:()=>N_,ZodIntersection:()=>FA,ZodJWT:()=>U_,ZodKSUID:()=>A_,ZodLazy:()=>mM,ZodLiteral:()=>JA,ZodMAC:()=>PA,ZodMap:()=>HA,ZodNaN:()=>cM,ZodNanoID:()=>I_,ZodNever:()=>OA,ZodNonOptional:()=>W_,ZodNull:()=>MA,ZodNullable:()=>eM,ZodNumber:()=>w0,ZodNumberFormat:()=>Ol,ZodObject:()=>$0,ZodOptional:()=>H_,ZodPipe:()=>J_,ZodPrefault:()=>nM,ZodPromise:()=>hM,ZodReadonly:()=>uM,ZodRecord:()=>I0,ZodSet:()=>WA,ZodString:()=>b0,ZodStringFormat:()=>_t,ZodSuccess:()=>aM,ZodSymbol:()=>EA,ZodTemplateLiteral:()=>pM,ZodTransform:()=>XA,ZodTuple:()=>VA,ZodType:()=>Je,ZodULID:()=>z_,ZodURL:()=>x0,ZodUUID:()=>Qo,ZodUndefined:()=>AA,ZodUnion:()=>T0,ZodUnknown:()=>DA,ZodVoid:()=>LA,ZodXID:()=>E_,ZodXor:()=>UA,_ZodString:()=>S_,_default:()=>rM,_function:()=>EJ,any:()=>cJ,array:()=>S0,base64:()=>qW,base64url:()=>HW,bigint:()=>oJ,boolean:()=>zA,catch:()=>lM,check:()=>AJ,cidrv4:()=>VW,cidrv6:()=>GW,codec:()=>PJ,cuid:()=>DW,cuid2:()=>OW,custom:()=>MJ,date:()=>dJ,describe:()=>NJ,discriminatedUnion:()=>vJ,e164:()=>WW,email:()=>TW,emoji:()=>NW,enum:()=>G_,exactOptional:()=>QA,file:()=>SJ,float32:()=>eJ,float64:()=>tJ,function:()=>EJ,guid:()=>IW,hash:()=>QW,hex:()=>YW,hostname:()=>XW,httpUrl:()=>MW,instanceof:()=>DJ,int:()=>k_,int32:()=>rJ,int64:()=>iJ,intersection:()=>ZA,ipv4:()=>BW,ipv6:()=>ZW,json:()=>LJ,jwt:()=>JW,keyof:()=>pJ,ksuid:()=>UW,lazy:()=>fM,literal:()=>kJ,looseObject:()=>hJ,looseRecord:()=>bJ,mac:()=>FW,map:()=>xJ,meta:()=>RJ,nan:()=>IJ,nanoid:()=>RW,nativeEnum:()=>_J,never:()=>F_,nonoptional:()=>iM,null:()=>NA,nullable:()=>v0,nullish:()=>$J,number:()=>CA,object:()=>mJ,optional:()=>g0,partialRecord:()=>yJ,pipe:()=>y0,prefault:()=>oM,preprocess:()=>jJ,promise:()=>zJ,readonly:()=>dM,record:()=>qA,refine:()=>vM,set:()=>wJ,strictObject:()=>fJ,string:()=>__,stringFormat:()=>KW,stringbool:()=>OJ,success:()=>TJ,superRefine:()=>yM,symbol:()=>sJ,templateLiteral:()=>CJ,transform:()=>q_,tuple:()=>GA,uint32:()=>nJ,uint64:()=>aJ,ulid:()=>LW,undefined:()=>lJ,union:()=>V_,unknown:()=>Dl,url:()=>AW,uuid:()=>PW,uuidv4:()=>CW,uuidv6:()=>zW,uuidv7:()=>EW,void:()=>uJ,xid:()=>jW,xor:()=>gJ});var m0={};Zr(m0,{endsWith:()=>n0,gt:()=>ea,gte:()=>ln,includes:()=>t0,length:()=>zd,lowercase:()=>Qh,lt:()=>Qi,lte:()=>Hn,maxLength:()=>Cd,maxSize:()=>Al,mime:()=>o0,minLength:()=>us,minSize:()=>ta,multipleOf:()=>El,negative:()=>nA,nonnegative:()=>iA,nonpositive:()=>oA,normalize:()=>i0,overwrite:()=>Yo,positive:()=>rA,property:()=>aA,regex:()=>Yh,size:()=>Pd,slugify:()=>c0,startsWith:()=>r0,toLowerCase:()=>s0,toUpperCase:()=>l0,trim:()=>a0,uppercase:()=>e0});var Md={};Zr(Md,{ZodISODate:()=>g_,ZodISODateTime:()=>f_,ZodISODuration:()=>x_,ZodISOTime:()=>y_,date:()=>v_,datetime:()=>h_,duration:()=>w_,time:()=>b_});var f_=U("ZodISODateTime",(e,t)=>{Pz.init(e,t),_t.init(e,t)});function h_(e){return ME(f_,e)}var g_=U("ZodISODate",(e,t)=>{Cz.init(e,t),_t.init(e,t)});function v_(e){return NE(g_,e)}var y_=U("ZodISOTime",(e,t)=>{zz.init(e,t),_t.init(e,t)});function b_(e){return RE(y_,e)}var x_=U("ZodISODuration",(e,t)=>{Ez.init(e,t),_t.init(e,t)});function w_(e){return DE(x_,e)}var gA=(e,t)=>{Lh.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>Sx(e,r)},flatten:{value:r=>kx(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,Il,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,Il,2)}},isEmpty:{get(){return e.issues.length===0}}})},w3e=U("ZodError",gA),cn=U("ZodError",gA,{Parent:Error});var vA=wd(cn),yA=_d(cn),bA=kd(cn),f0=Sd(cn),xA=IC(cn),wA=PC(cn),_A=CC(cn),kA=zC(cn),SA=EC(cn),$A=AC(cn),TA=MC(cn),IA=NC(cn);var Je=U("ZodType",(e,t)=>(Ue.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Ad(e,"input"),output:Ad(e,"output")}}),e.toJSONSchema=hA(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(ne.mergeDefs(t,{checks:[...t.checks??[],...r.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]}),{parent:!0}),e.with=e.check,e.clone=(r,o)=>an(e,r,o),e.brand=()=>e,e.register=((r,o)=>(r.add(e,o),e)),e.parse=(r,o)=>vA(e,r,o,{callee:e.parse}),e.safeParse=(r,o)=>bA(e,r,o),e.parseAsync=async(r,o)=>yA(e,r,o,{callee:e.parseAsync}),e.safeParseAsync=async(r,o)=>f0(e,r,o),e.spa=e.safeParseAsync,e.encode=(r,o)=>xA(e,r,o),e.decode=(r,o)=>wA(e,r,o),e.encodeAsync=async(r,o)=>_A(e,r,o),e.decodeAsync=async(r,o)=>kA(e,r,o),e.safeEncode=(r,o)=>SA(e,r,o),e.safeDecode=(r,o)=>$A(e,r,o),e.safeEncodeAsync=async(r,o)=>TA(e,r,o),e.safeDecodeAsync=async(r,o)=>IA(e,r,o),e.refine=(r,o)=>e.check(vM(r,o)),e.superRefine=r=>e.check(yM(r)),e.overwrite=r=>e.check(Yo(r)),e.optional=()=>g0(e),e.exactOptional=()=>QA(e),e.nullable=()=>v0(e),e.nullish=()=>g0(v0(e)),e.nonoptional=r=>iM(e,r),e.array=()=>S0(e),e.or=r=>V_([e,r]),e.and=r=>ZA(e,r),e.transform=r=>y0(e,q_(r)),e.default=r=>rM(e,r),e.prefault=r=>oM(e,r),e.catch=r=>lM(e,r),e.pipe=r=>y0(e,r),e.readonly=()=>dM(e),e.describe=r=>{let o=e.clone();return qr.add(o,{description:r}),o},Object.defineProperty(e,"description",{get(){return qr.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return qr.get(e);let o=e.clone();return qr.add(o,r[0]),o},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=r=>r(e),e)),S_=U("_ZodString",(e,t)=>{zl.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(o,n,i)=>Ew(e,o,n,i);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...o)=>e.check(Yh(...o)),e.includes=(...o)=>e.check(t0(...o)),e.startsWith=(...o)=>e.check(r0(...o)),e.endsWith=(...o)=>e.check(n0(...o)),e.min=(...o)=>e.check(us(...o)),e.max=(...o)=>e.check(Cd(...o)),e.length=(...o)=>e.check(zd(...o)),e.nonempty=(...o)=>e.check(us(1,...o)),e.lowercase=o=>e.check(Qh(o)),e.uppercase=o=>e.check(e0(o)),e.trim=()=>e.check(a0()),e.normalize=(...o)=>e.check(i0(...o)),e.toLowerCase=()=>e.check(s0()),e.toUpperCase=()=>e.check(l0()),e.slugify=()=>e.check(c0())}),b0=U("ZodString",(e,t)=>{zl.init(e,t),S_.init(e,t),e.email=r=>e.check(uw($_,r)),e.url=r=>e.check(Xh(x0,r)),e.jwt=r=>e.check(Cw(U_,r)),e.emoji=r=>e.check(hw(T_,r)),e.guid=r=>e.check(Kh(h0,r)),e.uuid=r=>e.check(dw(Qo,r)),e.uuidv4=r=>e.check(pw(Qo,r)),e.uuidv6=r=>e.check(mw(Qo,r)),e.uuidv7=r=>e.check(fw(Qo,r)),e.nanoid=r=>e.check(gw(I_,r)),e.guid=r=>e.check(Kh(h0,r)),e.cuid=r=>e.check(vw(P_,r)),e.cuid2=r=>e.check(yw(C_,r)),e.ulid=r=>e.check(bw(z_,r)),e.base64=r=>e.check(Tw(O_,r)),e.base64url=r=>e.check(Iw(L_,r)),e.xid=r=>e.check(xw(E_,r)),e.ksuid=r=>e.check(ww(A_,r)),e.ipv4=r=>e.check(_w(M_,r)),e.ipv6=r=>e.check(kw(N_,r)),e.cidrv4=r=>e.check(Sw(R_,r)),e.cidrv6=r=>e.check($w(D_,r)),e.e164=r=>e.check(Pw(j_,r)),e.datetime=r=>e.check(h_(r)),e.date=r=>e.check(v_(r)),e.time=r=>e.check(b_(r)),e.duration=r=>e.check(w_(r))});function __(e){return EE(b0,e)}var _t=U("ZodStringFormat",(e,t)=>{wt.init(e,t),S_.init(e,t)}),$_=U("ZodEmail",(e,t)=>{bz.init(e,t),_t.init(e,t)});function TW(e){return uw($_,e)}var h0=U("ZodGUID",(e,t)=>{vz.init(e,t),_t.init(e,t)});function IW(e){return Kh(h0,e)}var Qo=U("ZodUUID",(e,t)=>{yz.init(e,t),_t.init(e,t)});function PW(e){return dw(Qo,e)}function CW(e){return pw(Qo,e)}function zW(e){return mw(Qo,e)}function EW(e){return fw(Qo,e)}var x0=U("ZodURL",(e,t)=>{xz.init(e,t),_t.init(e,t)});function AW(e){return Xh(x0,e)}function MW(e){return Xh(x0,{protocol:/^https?$/,hostname:bo.domain,...ne.normalizeParams(e)})}var T_=U("ZodEmoji",(e,t)=>{wz.init(e,t),_t.init(e,t)});function NW(e){return hw(T_,e)}var I_=U("ZodNanoID",(e,t)=>{_z.init(e,t),_t.init(e,t)});function RW(e){return gw(I_,e)}var P_=U("ZodCUID",(e,t)=>{kz.init(e,t),_t.init(e,t)});function DW(e){return vw(P_,e)}var C_=U("ZodCUID2",(e,t)=>{Sz.init(e,t),_t.init(e,t)});function OW(e){return yw(C_,e)}var z_=U("ZodULID",(e,t)=>{$z.init(e,t),_t.init(e,t)});function LW(e){return bw(z_,e)}var E_=U("ZodXID",(e,t)=>{Tz.init(e,t),_t.init(e,t)});function jW(e){return xw(E_,e)}var A_=U("ZodKSUID",(e,t)=>{Iz.init(e,t),_t.init(e,t)});function UW(e){return ww(A_,e)}var M_=U("ZodIPv4",(e,t)=>{Az.init(e,t),_t.init(e,t)});function BW(e){return _w(M_,e)}var PA=U("ZodMAC",(e,t)=>{Nz.init(e,t),_t.init(e,t)});function FW(e){return AE(PA,e)}var N_=U("ZodIPv6",(e,t)=>{Mz.init(e,t),_t.init(e,t)});function ZW(e){return kw(N_,e)}var R_=U("ZodCIDRv4",(e,t)=>{Rz.init(e,t),_t.init(e,t)});function VW(e){return Sw(R_,e)}var D_=U("ZodCIDRv6",(e,t)=>{Dz.init(e,t),_t.init(e,t)});function GW(e){return $w(D_,e)}var O_=U("ZodBase64",(e,t)=>{Lz.init(e,t),_t.init(e,t)});function qW(e){return Tw(O_,e)}var L_=U("ZodBase64URL",(e,t)=>{jz.init(e,t),_t.init(e,t)});function HW(e){return Iw(L_,e)}var j_=U("ZodE164",(e,t)=>{Uz.init(e,t),_t.init(e,t)});function WW(e){return Pw(j_,e)}var U_=U("ZodJWT",(e,t)=>{Bz.init(e,t),_t.init(e,t)});function JW(e){return Cw(U_,e)}var Dd=U("ZodCustomStringFormat",(e,t)=>{Fz.init(e,t),_t.init(e,t)});function KW(e,t,r={}){return Ed(Dd,e,t,r)}function XW(e){return Ed(Dd,"hostname",bo.hostname,e)}function YW(e){return Ed(Dd,"hex",bo.hex,e)}function QW(e,t){let r=t?.enc??"hex",o=`${e}_${r}`,n=bo[o];if(!n)throw new Error(`Unrecognized hash format: ${o}`);return Ed(Dd,o,n,t)}var w0=U("ZodNumber",(e,t)=>{ow.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(o,n,i)=>Aw(e,o,n,i),e.gt=(o,n)=>e.check(ea(o,n)),e.gte=(o,n)=>e.check(ln(o,n)),e.min=(o,n)=>e.check(ln(o,n)),e.lt=(o,n)=>e.check(Qi(o,n)),e.lte=(o,n)=>e.check(Hn(o,n)),e.max=(o,n)=>e.check(Hn(o,n)),e.int=o=>e.check(k_(o)),e.safe=o=>e.check(k_(o)),e.positive=o=>e.check(ea(0,o)),e.nonnegative=o=>e.check(ln(0,o)),e.negative=o=>e.check(Qi(0,o)),e.nonpositive=o=>e.check(Hn(0,o)),e.multipleOf=(o,n)=>e.check(El(o,n)),e.step=(o,n)=>e.check(El(o,n)),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 CA(e){return OE(w0,e)}var Ol=U("ZodNumberFormat",(e,t)=>{Zz.init(e,t),w0.init(e,t)});function k_(e){return LE(Ol,e)}function eJ(e){return jE(Ol,e)}function tJ(e){return UE(Ol,e)}function rJ(e){return BE(Ol,e)}function nJ(e){return FE(Ol,e)}var _0=U("ZodBoolean",(e,t)=>{Hh.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Mw(e,r,o,n)});function zA(e){return ZE(_0,e)}var k0=U("ZodBigInt",(e,t)=>{iw.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(o,n,i)=>Nw(e,o,n,i),e.gte=(o,n)=>e.check(ln(o,n)),e.min=(o,n)=>e.check(ln(o,n)),e.gt=(o,n)=>e.check(ea(o,n)),e.gte=(o,n)=>e.check(ln(o,n)),e.min=(o,n)=>e.check(ln(o,n)),e.lt=(o,n)=>e.check(Qi(o,n)),e.lte=(o,n)=>e.check(Hn(o,n)),e.max=(o,n)=>e.check(Hn(o,n)),e.positive=o=>e.check(ea(BigInt(0),o)),e.negative=o=>e.check(Qi(BigInt(0),o)),e.nonpositive=o=>e.check(Hn(BigInt(0),o)),e.nonnegative=o=>e.check(ln(BigInt(0),o)),e.multipleOf=(o,n)=>e.check(El(o,n));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function oJ(e){return VE(k0,e)}var B_=U("ZodBigIntFormat",(e,t)=>{Vz.init(e,t),k0.init(e,t)});function iJ(e){return GE(B_,e)}function aJ(e){return qE(B_,e)}var EA=U("ZodSymbol",(e,t)=>{Gz.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Rw(e,r,o,n)});function sJ(e){return HE(EA,e)}var AA=U("ZodUndefined",(e,t)=>{qz.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Ow(e,r,o,n)});function lJ(e){return WE(AA,e)}var MA=U("ZodNull",(e,t)=>{Hz.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Dw(e,r,o,n)});function NA(e){return JE(MA,e)}var RA=U("ZodAny",(e,t)=>{Wz.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Uw(e,r,o,n)});function cJ(){return KE(RA)}var DA=U("ZodUnknown",(e,t)=>{Jz.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Bw(e,r,o,n)});function Dl(){return XE(DA)}var OA=U("ZodNever",(e,t)=>{Kz.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,o,n)=>jw(e,r,o,n)});function F_(e){return YE(OA,e)}var LA=U("ZodVoid",(e,t)=>{Xz.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Lw(e,r,o,n)});function uJ(e){return QE(LA,e)}var Z_=U("ZodDate",(e,t)=>{Yz.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(o,n,i)=>Fw(e,o,n,i),e.min=(o,n)=>e.check(ln(o,n)),e.max=(o,n)=>e.check(Hn(o,n));let r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function dJ(e){return eA(Z_,e)}var jA=U("ZodArray",(e,t)=>{Qz.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,o,n)=>e_(e,r,o,n),e.element=t.element,e.min=(r,o)=>e.check(us(r,o)),e.nonempty=r=>e.check(us(1,r)),e.max=(r,o)=>e.check(Cd(r,o)),e.length=(r,o)=>e.check(zd(r,o)),e.unwrap=()=>e.element});function S0(e,t){return sA(jA,e,t)}function pJ(e){let t=e._zod.def.shape;return G_(Object.keys(t))}var $0=U("ZodObject",(e,t)=>{rE.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,o,n)=>t_(e,r,o,n),ne.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>G_(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Dl()}),e.loose=()=>e.clone({...e._zod.def,catchall:Dl()}),e.strict=()=>e.clone({...e._zod.def,catchall:F_()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>ne.extend(e,r),e.safeExtend=r=>ne.safeExtend(e,r),e.merge=r=>ne.merge(e,r),e.pick=r=>ne.pick(e,r),e.omit=r=>ne.omit(e,r),e.partial=(...r)=>ne.partial(H_,e,r[0]),e.required=(...r)=>ne.required(W_,e,r[0])});function mJ(e,t){let r={type:"object",shape:e??{},...ne.normalizeParams(t)};return new $0(r)}function fJ(e,t){return new $0({type:"object",shape:e,catchall:F_(),...ne.normalizeParams(t)})}function hJ(e,t){return new $0({type:"object",shape:e,catchall:Dl(),...ne.normalizeParams(t)})}var T0=U("ZodUnion",(e,t)=>{Wh.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,o,n)=>u0(e,r,o,n),e.options=t.options});function V_(e,t){return new T0({type:"union",options:e,...ne.normalizeParams(t)})}var UA=U("ZodXor",(e,t)=>{T0.init(e,t),nE.init(e,t),e._zod.processJSONSchema=(r,o,n)=>u0(e,r,o,n),e.options=t.options});function gJ(e,t){return new UA({type:"union",options:e,inclusive:!1,...ne.normalizeParams(t)})}var BA=U("ZodDiscriminatedUnion",(e,t)=>{T0.init(e,t),oE.init(e,t)});function vJ(e,t,r){return new BA({type:"union",options:t,discriminator:e,...ne.normalizeParams(r)})}var FA=U("ZodIntersection",(e,t)=>{iE.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,o,n)=>r_(e,r,o,n)});function ZA(e,t){return new FA({type:"intersection",left:e,right:t})}var VA=U("ZodTuple",(e,t)=>{aw.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,o,n)=>n_(e,r,o,n),e.rest=r=>e.clone({...e._zod.def,rest:r})});function GA(e,t,r){let o=t instanceof Ue,n=o?r:t,i=o?t:null;return new VA({type:"tuple",items:e,rest:i,...ne.normalizeParams(n)})}var I0=U("ZodRecord",(e,t)=>{aE.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,o,n)=>o_(e,r,o,n),e.keyType=t.keyType,e.valueType=t.valueType});function qA(e,t,r){return new I0({type:"record",keyType:e,valueType:t,...ne.normalizeParams(r)})}function yJ(e,t,r){let o=an(e);return o._zod.values=void 0,new I0({type:"record",keyType:o,valueType:t,...ne.normalizeParams(r)})}function bJ(e,t,r){return new I0({type:"record",keyType:e,valueType:t,mode:"loose",...ne.normalizeParams(r)})}var HA=U("ZodMap",(e,t)=>{sE.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Yw(e,r,o,n),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...r)=>e.check(ta(...r)),e.nonempty=r=>e.check(ta(1,r)),e.max=(...r)=>e.check(Al(...r)),e.size=(...r)=>e.check(Pd(...r))});function xJ(e,t,r){return new HA({type:"map",keyType:e,valueType:t,...ne.normalizeParams(r)})}var WA=U("ZodSet",(e,t)=>{lE.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Qw(e,r,o,n),e.min=(...r)=>e.check(ta(...r)),e.nonempty=r=>e.check(ta(1,r)),e.max=(...r)=>e.check(Al(...r)),e.size=(...r)=>e.check(Pd(...r))});function wJ(e,t){return new WA({type:"set",valueType:e,...ne.normalizeParams(t)})}var Rd=U("ZodEnum",(e,t)=>{cE.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(o,n,i)=>Zw(e,o,n,i),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(o,n)=>{let i={};for(let a of o)if(r.has(a))i[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new Rd({...t,checks:[],...ne.normalizeParams(n),entries:i})},e.exclude=(o,n)=>{let i={...t.entries};for(let a of o)if(r.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new Rd({...t,checks:[],...ne.normalizeParams(n),entries:i})}});function G_(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new Rd({type:"enum",entries:r,...ne.normalizeParams(t)})}function _J(e,t){return new Rd({type:"enum",entries:e,...ne.normalizeParams(t)})}var JA=U("ZodLiteral",(e,t)=>{uE.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Vw(e,r,o,n),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if
52(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function kJ(e,t){return new JA({type:"literal",values:Array.isArray(e)?e:[e],...ne.normalizeParams(t)})}var KA=U("ZodFile",(e,t)=>{dE.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Hw(e,r,o,n),e.min=(r,o)=>e.check(ta(r,o)),e.max=(r,o)=>e.check(Al(r,o)),e.mime=(r,o)=>e.check(o0(Array.isArray(r)?r:[r],o))});function SJ(e){return lA(KA,e)}var XA=U("ZodTransform",(e,t)=>{pE.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Xw(e,r,o,n),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new ss(e.constructor.name);r.addIssue=i=>{if(typeof i=="string")r.issues.push(ne.issue(i,r.value,t));else{let a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=e),r.issues.push(ne.issue(a))}};let n=t.transform(r.value,r);return n instanceof Promise?n.then(i=>(r.value=i,r)):(r.value=n,r)}});function q_(e){return new XA({type:"transform",transform:e})}var H_=U("ZodOptional",(e,t)=>{sw.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,o,n)=>d0(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function g0(e){return new H_({type:"optional",innerType:e})}var YA=U("ZodExactOptional",(e,t)=>{mE.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,o,n)=>d0(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function QA(e){return new YA({type:"optional",innerType:e})}var eM=U("ZodNullable",(e,t)=>{fE.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,o,n)=>i_(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function v0(e){return new eM({type:"nullable",innerType:e})}function $J(e){return g0(v0(e))}var tM=U("ZodDefault",(e,t)=>{hE.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,o,n)=>s_(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function rM(e,t){return new tM({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():ne.shallowClone(t)}})}var nM=U("ZodPrefault",(e,t)=>{gE.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,o,n)=>l_(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function oM(e,t){return new nM({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():ne.shallowClone(t)}})}var W_=U("ZodNonOptional",(e,t)=>{vE.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,o,n)=>a_(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function iM(e,t){return new W_({type:"nonoptional",innerType:e,...ne.normalizeParams(t)})}var aM=U("ZodSuccess",(e,t)=>{yE.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Ww(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function TJ(e){return new aM({type:"success",innerType:e})}var sM=U("ZodCatch",(e,t)=>{bE.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,o,n)=>c_(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function lM(e,t){return new sM({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var cM=U("ZodNaN",(e,t)=>{xE.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Gw(e,r,o,n)});function IJ(e){return tA(cM,e)}var J_=U("ZodPipe",(e,t)=>{wE.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,o,n)=>u_(e,r,o,n),e.in=t.in,e.out=t.out});function y0(e,t){return new J_({type:"pipe",in:e,out:t})}var K_=U("ZodCodec",(e,t)=>{J_.init(e,t),Jh.init(e,t)});function PJ(e,t,r){return new K_({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}var uM=U("ZodReadonly",(e,t)=>{_E.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,o,n)=>d_(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function dM(e){return new uM({type:"readonly",innerType:e})}var pM=U("ZodTemplateLiteral",(e,t)=>{kE.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,o,n)=>qw(e,r,o,n)});function CJ(e,t){return new pM({type:"template_literal",parts:e,...ne.normalizeParams(t)})}var mM=U("ZodLazy",(e,t)=>{TE.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,o,n)=>m_(e,r,o,n),e.unwrap=()=>e._zod.def.getter()});function fM(e){return new mM({type:"lazy",getter:e})}var hM=U("ZodPromise",(e,t)=>{$E.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,o,n)=>p_(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function zJ(e){return new hM({type:"promise",innerType:e})}var gM=U("ZodFunction",(e,t)=>{SE.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Kw(e,r,o,n)});function EJ(e){return new gM({type:"function",input:Array.isArray(e?.input)?GA(e?.input):e?.input??S0(Dl()),output:e?.output??Dl()})}var P0=U("ZodCustom",(e,t)=>{IE.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Jw(e,r,o,n)});function AJ(e){let t=new It({check:"custom"});return t._zod.check=e,t}function MJ(e,t){return cA(P0,e??(()=>!0),t)}function vM(e,t={}){return uA(P0,e,t)}function yM(e){return dA(e)}var NJ=pA,RJ=mA;function DJ(e,t={}){let r=new P0({type:"custom",check:"custom",fn:o=>o instanceof e,abort:!0,...ne.normalizeParams(t)});return r._zod.bag.Class=e,r._zod.check=o=>{o.value instanceof e||o.issues.push({code:"invalid_type",expected:e.name,input:o.value,inst:r,path:[...r._zod.def.path??[]]})},r}var OJ=(...e)=>fA({Codec:K_,Boolean:_0,String:b0},...e);function LJ(e){let t=fM(()=>V_([__(e),CA(),zA(),NA(),S0(t),qA(__(),t)]));return t}function jJ(e,t){return y0(q_(e),t)}var bM;bM||(bM={});var C3e={...Nd,...m0,iso:Md};fr(lw());var ot;(function(e){e.assertEqual=n=>{};function t(n){}e.assertIs=t;function r(n){throw new Error}e.assertNever=r,e.arrayToEnum=n=>{let i={};for(let a of n)i[a]=a;return i},e.getValidEnumValues=n=>{let i=e.objectKeys(n).filter(l=>typeof n[n[l]]!="number"),a={};for(let l of i)a[l]=n[l];return e.objectValues(a)},e.objectValues=n=>e.objectKeys(n).map(function(i){return n[i]}),e.objectKeys=typeof Object.keys=="function"?n=>Object.keys(n):n=>{let i=[];for(let a in n)Object.prototype.hasOwnProperty.call(n,a)&&i.push(a);return i},e.find=(n,i)=>{for(let a of n)if(i(a))return a}
vendor: 1,146 bytes, line 52
52,e.isInteger=typeof Number.isInteger=="function"?n=>Number.isInteger(n):n=>typeof n=="number"&&Number.isFinite(n)&&Math.floor(n)===n;function o(n,i=" | "){return n.map(a=>typeof a=="string"?`'${a}'`:a).join(i)}e.joinValues=o,e.jsonStringifyReplacer=(n,i)=>typeof i=="bigint"?i.toString():i})(ot||(ot={}));var xM;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(xM||(xM={}));var be=ot.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),ei=e=>{switch(typeof e){case"undefined":return be.undefined;case"string":return be.string;case"number":return Number.isNaN(e)?be.nan:be.number;case"boolean":return be.boolean;case"function":return be.function;case"bigint":return be.bigint;case"symbol":return be.symbol;case"object":return Array.isArray(e)?be.array:e===null?be.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?be.promise:typeof Map<"u"&&e instanceof Map?be.map:typeof Set<"u"&&e instanceof Set?be.set:typeof Date<"u"&&e instanceof Date?be.date:be.object;default:return be.unknown}};
vendor: 5,698 bytes, line 52
52var Q=ot.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);var un=class e extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=o=>{this.issues=[...this.issues,o]},this.addIssues=(o=[])=>{this.issues=[...this.issues,...o]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}format(t){let r=t||function(i){return i.message},o={_errors:[]},n=i=>{for(let a of i.issues)if(a.code==="invalid_union")a.unionErrors.map(n);else if(a.code==="invalid_return_type")n(a.returnTypeError);else if(a.code==="invalid_arguments")n(a.argumentsError);else if(a.path.length===0)o._errors.push(r(a));else{let l=o,c=0;for(;c<a.path.length;){let d=a.path[c];c===a.path.length-1?(l[d]=l[d]||{_errors:[]},l[d]._errors.push(r(a))):l[d]=l[d]||{_errors:[]},l=l[d],c++}}};return n(this),o}static assert(t){if(!(t instanceof e))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ot.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){let r=Object.create(null),o=[];for(let n of this.issues)if(n.path.length>0){let i=n.path[0];r[i]=r[i]||[],r[i].push(t(n))}else o.push(t(n));return{formErrors:o,fieldErrors:r}}get formErrors(){return this.flatten()}};un.create=e=>new un(e);var VJ=(e,t)=>{let r;switch(e.code){case Q.invalid_type:e.received===be.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case Q.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,ot.jsonStringifyReplacer)}`;break;case Q.unrecognized_keys:r=`Unrecognized key(s) in object: ${ot.joinValues(e.keys,", ")}`;break;case Q.invalid_union:r="Invalid input";break;case Q.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${ot.joinValues(e.options)}`;break;case Q.invalid_enum_value:r=`Invalid enum value. Expected ${ot.joinValues(e.options)}, received '${e.received}'`;break;case Q.invalid_arguments:r="Invalid function arguments";break;case Q.invalid_return_type:r="Invalid function return type";break;case Q.invalid_date:r="Invalid date";break;case Q.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:ot.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case Q.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case Q.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case Q.custom:r="Invalid input";break;case Q.invalid_intersection_types:r="Intersection results could not be merged";break;case Q.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case Q.not_finite:r="Number must be finite";break;default:r=t.defaultError,ot.assertNever(e)}return{message:r}},ra=VJ;var GJ=ra;function Od(){return GJ}var C0=e=>{let{data:t,path:r,errorMaps:o,issueData:n}=e,i=[...r,...n.path||[]],a={...n,path:i};if(n.message!==void 0)return{...n,path:i,message:n.message};let l="",c=o.filter(d=>!!d).slice().reverse();for(let d of c)l=d(a,{data:t,defaultError:l}).message;return{...n,path:i,message:l}};function ce(e,t){let r=Od(),o=C0({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===ra?void 0:ra].filter(n=>!!n)});e.common.issues.push(o)}var _r=class e{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){let o=[];for(let n of r){if(n.status==="aborted")return De;n.status==="dirty"&&t.dirty(),o.push(n.value)}return{status:t.value,value:o}}static async mergeObjectAsync(t,r){let o=[];for(let n of r){let i=await n.key,a=await n.value;o.push({key:i,value:a})}return e.mergeObjectSync(t,o)}static mergeObjectSync(t,r){let o={};for(let n of r){let{key:i,value:a}=n;
vendor: 34,200 bytes, line 52
52if(i.status==="aborted"||a.status==="aborted")return De;i.status==="dirty"&&t.dirty(),a.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof a.value<"u"||n.alwaysSet)&&(o[i.value]=a.value)}return{status:t.value,value:o}}},De=Object.freeze({status:"aborted"}),Ll=e=>({status:"dirty",value:e}),Ar=e=>({status:"valid",value:e}),X_=e=>e.status==="aborted",Y_=e=>e.status==="dirty",ps=e=>e.status==="valid",Ld=e=>typeof Promise<"u"&&e instanceof Promise;var $e;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})($e||($e={}));var En=class{constructor(t,r,o,n){this._cachedPath=[],this.parent=t,this.data=r,this._path=o,this._key=n}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},wM=(e,t)=>{if(ps(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new un(e.common.issues);return this._error=r,this._error}}};function qe(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:o,description:n}=e;if(t&&(r||o))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:n}:{errorMap:(a,l)=>{let{message:c}=e;return a.code==="invalid_enum_value"?{message:c??l.defaultError}:typeof l.data>"u"?{message:c??o??l.defaultError}:a.code!=="invalid_type"?{message:l.defaultError}:{message:c??r??l.defaultError}},description:n}}var et=class{get description(){return this._def.description}_getType(t){return ei(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:ei(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new _r,ctx:{common:t.parent.common,data:t.data,parsedType:ei(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let r=this._parse(t);if(Ld(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){let r=this._parse(t);return Promise.resolve(r)}parse(t,r){let o=this.safeParse(t,r);if(o.success)return o.data;throw o.error}safeParse(t,r){let o={common:{issues:[],async:r?.async??!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ei(t)},n=this._parseSync({data:t,path:o.path,parent:o});return wM(o,n)}"~validate"(t){let r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ei(t)};if(!this["~standard"].async)try{let o=this._parseSync({data:t,path:[],parent:r});return ps(o)?{value:o.value}:{issues:r.common.issues}}catch(o){o?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:r}).then(o=>ps(o)?{value:o.value}:{issues:r.common.issues})}async parseAsync(t,r){let o=await this.safeParseAsync(t,r);if(o.success)return o.data;throw o.error}async safeParseAsync(t,r){let o={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ei(t)},n=this._parse({data:t,path:o.path,parent:o}),i=await(Ld(n)?n:Promise.resolve(n));return wM(o,i)}refine(t,r){let o=n=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(n):r;return this._refinement((n,i)=>{let a=t(n),l=()=>i.addIssue({code:Q.custom,...o(n)});return typeof Promise<"u"&&a instanceof Promise?a.then(c=>c?!0:(l(),!1)):a?!0:(l(),!1)})}refinement(t,r){return this._refinement((o,n)=>t(o)?!0:(n.addIssue(typeof r=="function"?r(o,n):r),!1))}_refinement(t){return new Jn({schema:this,typeName:oe.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return Wn.create(this,this._def)}nullable(){return ni.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return oa.create(this)}promise(){return ms.create(this,this._def)}or(t){return Zl.create([this,t],this._def)}and(t){return Vl.create(this,t,this._def)}transform(t){return new Jn({...qe(this._def),schema:this,typeName:oe.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let r=typeof t=="function"?t:()=>t;return new Jl({...qe(this._def),innerType:this,defaultValue:r,typeName:oe.ZodDefault})}brand(){return new z0({typeName:oe.ZodBranded,type:this,...qe(this._def)})}catch(t){let r=typeof t=="function"?t:()=>t;return new Kl({...qe(this._def),innerType:this,catchValue:r,typeName:oe.ZodCatch})}describe(t){let r=this.constructor;return new r({...this._def,description:t})}pipe(t){return E0.create(this,t)}readonly(){return Xl.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},qJ=/^c[^\s-]{8,}$/i,HJ=/^[0-9a-z]+$/,WJ=/^[0-9A-HJKMNP-TV-Z]{26}$/i,JJ=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,KJ=/^[a-z0-9_-]{21}$/i,XJ=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,YJ=/^[-+]?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)?)??$/,QJ=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,eK="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",Q_,tK=/^(?:(?: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])$/,rK=/^(?:(?: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])\/(3[0-2]|[12]?[0-9])$/,nK=/^(([0-9a-fA-F]{1,4}:){7,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}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,oK=/^(([0-9a-fA-F]{1,4}:){7,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}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,iK=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,aK=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,_M="((\\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])))",sK=new RegExp(`^${_M}$`);function kM(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);let r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}function lK(e){return new RegExp(`^${kM(e)}$`)}function cK(e){let t=`${_M}T${kM(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function uK(e,t){return!!((t==="v4"||!t)&&tK.test(e)||(t==="v6"||!t)&&nK.test(e))}function dK(e,t){if(!XJ.test(e))return!1;try{let[r]=e.split(".");if(!r)return!1;let o=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),n=JSON.parse(atob(o));return!(typeof n!="object"||n===null||"typ"in n&&n?.typ!=="JWT"||!n.alg||t&&n.alg!==t)}catch{return!1}}function pK(e,t){return!!((t==="v4"||!t)&&rK.test(e)||(t==="v6"||!t)&&oK.test(e))}var Ul=class e extends et{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==be.string){let i=this._getOrReturnCtx(t);return ce(i,{code:Q.invalid_type,expected:be.string,received:i.parsedType}),De}let o=new _r,n;for(let i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(n=this._getOrReturnCtx(t,n),ce(n,{code:Q.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),o.dirty());else if(i.kind==="max")t.data.length>i.value&&(n=this._getOrReturnCtx(t,n),ce(n,{code:Q.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),o.dirty());else if(i.kind==="length"){let a=t.data.length>i.value,l=t.data.length<i.value;(a||l)&&(n=this._getOrReturnCtx(t,n),a?ce(n,{code:Q.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):l&&ce(n,{code:Q.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),o.dirty())}else if(i.kind==="email")QJ.test(t.data)||(n=this._getOrReturnCtx(t,n),ce(n,{validation:"email",code:Q.invalid_string,message:i.message}),o.dirty());else if(i.kind==="emoji")Q_||(Q_=new RegExp(eK,"u")),Q_.test(t.data)||(n=this._getOrReturnCtx(t,n),ce(n,{validation:"emoji",code:Q.invalid_string,message:i.message}),o.dirty());else if(i.kind==="uuid")JJ.test(t.data)||(n=this._getOrReturnCtx(t,n),ce(n,{validation:"uuid",code:Q.invalid_string,message:i.message}),o.dirty());else if(i.kind==="nanoid")KJ.test(t.data)||(n=this._getOrReturnCtx(t,n),ce(n,{validation:"nanoid",code:Q.invalid_string,message:i.message}),o.dirty());else if(i.kind==="cuid")qJ.test(t.data)||(n=this._getOrReturnCtx(t,n),ce(n,{validation:"cuid",code:Q.invalid_string,message:i.message}),o.dirty());else if(i.kind==="cuid2")HJ.test(t.data)||(n=this._getOrReturnCtx(t,n),ce(n,{validation:"cuid2",code:Q.invalid_string,message:i.message}),o.dirty());else if(i.kind==="ulid")WJ.test(t.data)||(n=this._getOrReturnCtx(t,n),ce(n,{validation:"ulid",code:Q.invalid_string,message:i.message}),o.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{n=this._getOrReturnCtx(t,n),ce(n,{validation:"url",code:Q.invalid_string,message:i.message}),o.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(n=this._getOrReturnCtx(t,n),ce(n,{validation:"regex",code:Q.invalid_string,message:i.message}),o.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(n=this._getOrReturnCtx(t,n),ce(n,{code:Q.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),o.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(n=this._getOrReturnCtx(t,n),ce(n,{code:Q.invalid_string,validation:{startsWith:i.value},message:i.message}),o.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(n=this._getOrReturnCtx(t,n),ce(n,{code:Q.invalid_string,validation:{endsWith:i.value},message:i.message}),o.dirty()):i.kind==="datetime"?cK(i).test(t.data)||(n=this._getOrReturnCtx(t,n),ce(n,{code:Q.invalid_string,validation:"datetime",message:i.message}),o.dirty()):i.kind==="date"?sK.test(t.data)||(n=this._getOrReturnCtx(t,n),ce(n,{code:Q.invalid_string,validation:"date",message:i.message}),o.dirty()):i.kind==="time"?lK(i).test(t.data)||(n=this._getOrReturnCtx(t,n),ce(n,{code:Q.invalid_string,validation:"time",message:i.message}),o.dirty()):i.kind==="duration"?YJ.test(t.data)||(n=this._getOrReturnCtx(t,n),ce(n,{validation:"duration",code:Q.invalid_string,message:i.message}),o.dirty()):i.kind==="ip"?uK(t.data,i.version)||(n=this._getOrReturnCtx(t,n),ce(n,{validation:"ip",code:Q.invalid_string,message:i.message}),o.dirty()):i.kind==="jwt"?dK(t.data,i.alg)||(n=this._getOrReturnCtx(t,n),ce(n,{validation:"jwt",code:Q.invalid_string,message:i.message}),o.dirty()):i.kind==="cidr"?pK(t.data,i.version)||(n=this._getOrReturnCtx(t,n),ce(n,{validation:"cidr",code:Q.invalid_string,message:i.message}),o.dirty()):i.kind==="base64"?iK.test(t.data)||(n=this._getOrReturnCtx(t,n),ce(n,{validation:"base64",code:Q.invalid_string,message:i.message}),o.dirty()):i.kind==="base64url"?aK.test(t.data)||(n=this._getOrReturnCtx(t,n),ce(n,{validation:"base64url",code:Q.invalid_string,message:i.message}),o.dirty()):ot.assertNever(i);return{status:o.value,value:t.data}}_regex(t,r,o){return this.refinement(n=>t.test(n),{validation:r,code:Q.invalid_string,...$e.errToObj(o)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...$e.errToObj(t)})}url(t){return this._addCheck({kind:"url",...$e.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...$e.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...$e.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...$e.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...$e.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...$e.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...$e.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...$e.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...$e.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...$e.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...$e.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...$e.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...$e.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...$e.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...$e.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...$e.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r?.position,...$e.errToObj(r?.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...$e.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...$e.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...$e.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...$e.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...$e.errToObj(r)})}nonempty(t){return this.min(1,$e.errToObj(t))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}};Ul.create=e=>new Ul({checks:[],typeName:oe.ZodString,coerce:e?.coerce??!1,...qe(e)});function mK(e,t){let r=(e.toString().split(".")[1]||"").length,o=(t.toString().split(".")[1]||"").length,n=r>o?r:o,i=Number.parseInt(e.toFixed(n).replace(".","")),a=Number.parseInt(t.toFixed(n).replace(".",""));return i%a/10**n}var jd=class e extends et{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==be.number){let i=this._getOrReturnCtx(t);return ce(i,{code:Q.invalid_type,expected:be.number,received:i.parsedType}),De}let o,n=new _r;for(let i of this._def.checks)i.kind==="int"?ot.isInteger(t.data)||(o=this._getOrReturnCtx(t,o),ce(o,{code:Q.invalid_type,expected:"integer",received:"float",message:i.message}),n.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(o=this._getOrReturnCtx(t,o),ce(o,{code:Q.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),n.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(o=this._getOrReturnCtx(t,o),ce(o,{code:Q.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),n.dirty()):i.kind==="multipleOf"?mK(t.data,i.value)!==0&&(o=this._getOrReturnCtx(t,o),ce(o,{code:Q.not_multiple_of,multipleOf:i.value,message:i.message}),n.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(o=this._getOrReturnCtx(t,o),ce(o,{code:Q.not_finite,message:i.message}),n.dirty()):ot.assertNever(i);return{status:n.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,$e.toString(r))}gt(t,r){return this.setLimit("min",t,!1,$e.toString(r))}lte(t,r){return this.setLimit("max",t,!0,$e.toString(r))}lt(t,r){return this.setLimit("max",t,!1,$e.toString(r))}setLimit(t,r,o,n){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:o,message:$e.toString(n)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:$e.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:$e.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:$e.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:$e.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:$e.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:$e.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:$e.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:$e.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:$e.toString(t)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&ot.isInteger(t.value))}get isFinite(){let t=null,r=null;for(let o of this._def.checks){if(o.kind==="finite"||o.kind==="int"||o.kind==="multipleOf")return!0;o.kind==="min"?(r===null||o.value>r)&&(r=o.value):o.kind==="max"&&(t===null||o.value<t)&&(t=o.value)}return Number.isFinite(r)&&Number.isFinite(t)}};jd.create=e=>new jd({checks:[],typeName:oe.ZodNumber,coerce:e?.coerce||!1,...qe(e)});var Ud=class e extends et{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==be.bigint)return this._getInvalidInput(t);let o,n=new _r;for(let i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(o=this._getOrReturnCtx(t,o),ce(o,{code:Q.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),n.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(o=this._getOrReturnCtx(t,o),ce(o,{code:Q.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),n.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(o=this._getOrReturnCtx(t,o),ce(o,{code:Q.not_multiple_of,multipleOf:i.value,message:i.message}),n.dirty()):ot.assertNever(i);return{status:n.value,value:t.data}}_getInvalidInput(t){let r=this._getOrReturnCtx(t);return ce(r,{code:Q.invalid_type,expected:be.bigint,received:r.parsedType}),De}gte(t,r){return this.setLimit("min",t,!0,$e.toString(r))}gt(t,r){return this.setLimit("min",t,!1,$e.toString(r))}lte(t,r){return this.setLimit("max",t,!0,$e.toString(r))}lt(t,r){return this.setLimit("max",t,!1,$e.toString(r))}setLimit(t,r,o,n){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:o,message:$e.toString(n)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:$e.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:$e.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:$e.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:$e.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:$e.toString(r)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}};Ud.create=e=>new Ud({checks:[],typeName:oe.ZodBigInt,coerce:e?.coerce??!1,...qe(e)});var Bd=class extends et{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==be.boolean){let o=this._getOrReturnCtx(t);return ce(o,{code:Q.invalid_type,expected:be.boolean,received:o.parsedType}),De}return Ar(t.data)}};Bd.create=e=>new Bd({typeName:oe.ZodBoolean,coerce:e?.coerce||!1,...qe(e)});var Fd=class e extends et{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==be.date){let i=this._getOrReturnCtx(t);return ce(i,{code:Q.invalid_type,expected:be.date,received:i.parsedType}),De}if(Number.isNaN(t.data.getTime())){let i=this._getOrReturnCtx(t);return ce(i,{code:Q.invalid_date}),De}let o=new _r,n;for(let i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(n=this._getOrReturnCtx(t,n),ce(n,{code:Q.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),o.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(n=this._getOrReturnCtx(t,n),ce(n,{code:Q.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),o.dirty()):ot.assertNever(i);return{status:o.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:$e.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:$e.toString(r)})}get minDate(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t!=null?new Date(t):null}};Fd.create=e=>new Fd({checks:[],coerce:e?.coerce||!1,typeName:oe.ZodDate,...qe(e)});var Zd=class extends et{_parse(t){if(this._getType(t)!==be.symbol){let o=this._getOrReturnCtx(t);return ce(o,{code:Q.invalid_type,expected:be.symbol,received:o.parsedType}),De}return Ar(t.data)}};Zd.create=e=>new Zd({typeName:oe.ZodSymbol,...qe(e)});var Bl=class extends et{_parse(t){if(this._getType(t)!==be.undefined){let o=this._getOrReturnCtx(t);return ce(o,{code:Q.invalid_type,expected:be.undefined,received:o.parsedType}),De}return Ar(t.data)}};Bl.create=e=>new Bl({typeName:oe.ZodUndefined,...qe(e)});var Fl=class extends et{_parse(t){if(this._getType(t)!==be.null){let o=this._getOrReturnCtx(t);return ce(o,{code:Q.invalid_type,expected:be.null,received:o.parsedType}),De}return Ar(t.data)}};Fl.create=e=>new Fl({typeName:oe.ZodNull,...qe(e)});var Vd=class extends et{constructor(){super(...arguments),this._any=!0}_parse(t){return Ar(t.data)}};Vd.create=e=>new Vd({typeName:oe.ZodAny,...qe(e)});var na=class extends et{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Ar(t.data)}};na.create=e=>new na({typeName:oe.ZodUnknown,...qe(e)});var xo=class extends et{_parse(t){let r=this._getOrReturnCtx(t);return ce(r,{code:Q.invalid_type,expected:be.never,received:r.parsedType}),De}};xo.create=e=>new xo({typeName:oe.ZodNever,...qe(e)});var Gd=class extends et{_parse(t){if(this._getType(t)!==be.undefined){let o=this._getOrReturnCtx(t);return ce(o,{code:Q.invalid_type,expected:be.void,received:o.parsedType}),De}return Ar(t.data)}};Gd.create=e=>new Gd({typeName:oe.ZodVoid,...qe(e)});var oa=class e extends et{_parse(t){let{ctx:r,status:o}=this._processInputParams(t),n=this._def;if(r.parsedType!==be.array)return ce(r,{code:Q.invalid_type,expected:be.array,received:r.parsedType}),De;if(n.exactLength!==null){let a=r.data.length>n.exactLength.value,l=r.data.length<n.exactLength.value;(a||l)&&(ce(r,{code:a?Q.too_big:Q.too_small,minimum:l?n.exactLength.value:void 0,maximum:a?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),o.dirty())}if(n.minLength!==null&&r.data.length<n.minLength.value&&(ce(r,{code:Q.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),o.dirty()),n.maxLength!==null&&r.data.length>n.maxLength.value&&(ce(r,{code:Q.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),o.dirty()),r.common.async)return Promise.all([...r.data].map((a,l)=>n.type._parseAsync(new En(r,a,r.path,l)))).then(a=>_r.mergeArray(o,a));let i=[...r.data].map((a,l)=>n.type._parseSync(new En(r,a,r.path,l)));return _r.mergeArray(o,i)}get element(){return this._def.type}min(t,r){return new e({...this._def,minLength:{value:t,message:$e.toString(r)}})}max(t,r){return new e({...this._def,maxLength:{value:t,message:$e.toString(r)}})}length(t,r){return new e({...this._def,exactLength:{value:t,message:$e.toString(r)}})}nonempty(t){return this.min(1,t)}};oa.create=(e,t)=>new oa({type:e,minLength:null,maxLength:null,exactLength:null,typeName:oe.ZodArray,...qe(t)});function jl(e){if(e instanceof dn){let t={};for(let r in e.shape){let o=e.shape[r];t[r]=Wn.create(jl(o))}return new dn({...e._def,shape:()=>t})}else return e instanceof oa?new oa({...e._def,type:jl(e.element)}):e instanceof Wn?Wn.create(jl(e.unwrap())):e instanceof ni?ni.create(jl(e.unwrap())):e instanceof ri?ri.create(e.items.map(t=>jl(t))):e}var dn=class e extends et{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),r=ot.objectKeys(t);return this._cached={shape:t,keys:r},this._cached}_parse(t){if(this._getType(t)!==be.object){let d=this._getOrReturnCtx(t);return ce(d,{code:Q.invalid_type,expected:be.object,received:d.parsedType}),De}let{status:o,ctx:n}=this._processInputParams(t),{shape:i,keys:a}=this._getCached(),l=[];if(!(this._def.catchall instanceof xo&&this._def.unknownKeys==="strip"))for(let d in n.data)a.includes(d)||l.push(d);let c=[];for(let d of a){let p=i[d],m=n.data[d];c.push({key:{status:"valid",value:d},value:p._parse(new En(n,m,n.path,d)),alwaysSet:d in n.data})}if(this._def.catchall instanceof xo){let d=this._def.unknownKeys;if(d==="passthrough")for(let p of l)c.push({key:{status:"valid",value:p},value:{status:"valid",value:n.data[p]}});else if(d==="strict")l.length>0&&(ce(n,{code:Q.unrecognized_keys,keys:l}),o.dirty());else if(d!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let d=this._def.catchall;for(let p of l){let m=n.data[p];c.push({key:{status:"valid",value:p},value:d._parse(new En(n,m,n.path,p)),alwaysSet:p in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let d=[];for(let p of c){let m=await p.key,h=await p.value;d.push({key:m,value:h,alwaysSet:p.alwaysSet})}return d}).then(d=>_r.mergeObjectSync(o,d)):_r.mergeObjectSync(o,c)}get shape(){return this._def.shape()}strict(t){return $e.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,o)=>{let n=this._def.errorMap?.(r,o).message??o.defaultError;return r.code==="unrecognized_keys"?{message:$e.errToObj(t).message??n}:{message:n}}}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:oe.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let r={};for(let o of ot.objectKeys(t))t[o]&&this.shape[o]&&(r[o]=this.shape[o]);return new e({...this._def,shape:()=>r})}omit(t){let r={};for(let o of ot.objectKeys(this.shape))t[o]||(r[o]=this.shape[o]);return new e({...this._def,shape:()=>r})}deepPartial(){return jl(this)}partial(t){let r={};for(let o of ot.objectKeys(this.shape)){let n=this.shape[o];t&&!t[o]?r[o]=n:r[o]=n.optional()}return new e({...this._def,shape:()=>r})}required(t){let r={};for(let o of ot.objectKeys(this.shape))if(t&&!t[o])r[o]=this.shape[o];else{let i=this.shape[o];for(;i instanceof Wn;)i=i._def.innerType;r[o]=i}return new e({...this._def,shape:()=>r})}keyof(){return SM(ot.objectKeys(this.shape))}};dn.create=(e,t)=>new dn({shape:()=>e,unknownKeys:"strip",catchall:xo.create(),typeName:oe.ZodObject,...qe(t)});dn.strictCreate=(e,t)=>new dn({shape:()=>e,unknownKeys:"strict",catchall:xo.create(),typeName:oe.ZodObject,...qe(t)});dn.lazycreate=(e,t)=>new dn({shape:e,unknownKeys:"strip",catchall:xo.create(),typeName:oe.ZodObject,...qe(t)});var Zl=class extends et{_parse(t){let{ctx:r}=this._processInputParams(t),o=this._def.options;function n(i){for(let l of i)if(l.result.status==="valid")return l.result;for(let l of i)if(l.result.status==="dirty")return r.common.issues.push(...l.ctx.common.issues),l.result;let a=i.map(l=>new un(l.ctx.common.issues));return ce(r,{code:Q.invalid_union,unionErrors:a}),De}if(r.common.async)return Promise.all(o.map(async i=>{let a={...r,common:{...r.common,issues:[]},parent:null};return{result:await i._parseAsync({data:r.data,path:r.path,parent:a}),ctx:a}})).then(n);{let i,a=[];for(let c of o){let d={...r,common:{...r.common,issues:[]},parent:null},p=c._parseSync({data:r.data,path:r.path,parent:d});if(p.status==="valid")return p;p.status==="dirty"&&!i&&(i={result:p,ctx:d}),d.common.issues.length&&a.push(d.common.issues)}if(i)return r.common.issues.push(...i.ctx.common.issues),i.result;let l=a.map(c=>new un(c));return ce(r,{code:Q.invalid_union,unionErrors:l}),De}}get options(){return this._def.options}};Zl.create=(e,t)=>new Zl({options:e,typeName:oe.ZodUnion,...qe(t)});var ti=e=>e instanceof Gl?ti(e.schema):e instanceof Jn?ti(e.innerType()):e instanceof ql?[e.value]:e instanceof Hl?e.options:e instanceof Wl?ot.objectValues(e.enum):e instanceof Jl?ti(e._def.innerType):e instanceof Bl?[void 0]:e instanceof Fl?[null]:e instanceof Wn?[void 0,...ti(e.unwrap())]:e instanceof ni?[null,...ti(e.unwrap())]:e instanceof z0||e instanceof Xl?ti(e.unwrap()):e instanceof Kl?ti(e._def.innerType):[],e4=class e extends et{_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==be.object)return ce(r,{code:Q.invalid_type,expected:be.object,received:r.parsedType}),De;let o=this.discriminator,n=r.data[o],i=this.optionsMap.get(n);return i?r.common.async?i._parseAsync({data:r.data,path:r.path,parent:r}):i._parseSync({data:r.data,path:r.path,parent:r}):(ce(r,{code:Q.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[o]}),De)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,o){let n=new Map;for(let i of r){let a=ti(i.shape[t]);if(!a.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let l of a){if(n.has(l))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(l)}`);
vendor: 2,305 bytes, line 52
52n.set(l,i)}}return new e({typeName:oe.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:n,...qe(o)})}};function t4(e,t){let r=ei(e),o=ei(t);if(e===t)return{valid:!0,data:e};if(r===be.object&&o===be.object){let n=ot.objectKeys(t),i=ot.objectKeys(e).filter(l=>n.indexOf(l)!==-1),a={...e,...t};for(let l of i){let c=t4(e[l],t[l]);if(!c.valid)return{valid:!1};a[l]=c.data}return{valid:!0,data:a}}else if(r===be.array&&o===be.array){if(e.length!==t.length)return{valid:!1};let n=[];for(let i=0;i<e.length;i++){let a=e[i],l=t[i],c=t4(a,l);if(!c.valid)return{valid:!1};n.push(c.data)}return{valid:!0,data:n}}else return r===be.date&&o===be.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var Vl=class extends et{_parse(t){let{status:r,ctx:o}=this._processInputParams(t),n=(i,a)=>{if(X_(i)||X_(a))return De;let l=t4(i.value,a.value);return l.valid?((Y_(i)||Y_(a))&&r.dirty(),{status:r.value,value:l.data}):(ce(o,{code:Q.invalid_intersection_types}),De)};return o.common.async?Promise.all([this._def.left._parseAsync({data:o.data,path:o.path,parent:o}),this._def.right._parseAsync({data:o.data,path:o.path,parent:o})]).then(([i,a])=>n(i,a)):n(this._def.left._parseSync({data:o.data,path:o.path,parent:o}),this._def.right._parseSync({data:o.data,path:o.path,parent:o}))}};Vl.create=(e,t,r)=>new Vl({left:e,right:t,typeName:oe.ZodIntersection,...qe(r)});var ri=class e extends et{_parse(t){let{status:r,ctx:o}=this._processInputParams(t);if(o.parsedType!==be.array)return ce(o,{code:Q.invalid_type,expected:be.array,received:o.parsedType}),De;if(o.data.length<this._def.items.length)return ce(o,{code:Q.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),De;!this._def.rest&&o.data.length>this._def.items.length&&(ce(o,{code:Q.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let i=[...o.data].map((a,l)=>{let c=this._def.items[l]||this._def.rest;return c?c._parse(new En(o,a,o.path,l)):null}).filter(a=>!!a);return o.common.async?Promise.all(i).then(a=>_r.mergeArray(r,a)):_r.mergeArray(r,i)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};ri.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ri({items:e,typeName:oe.ZodTuple,rest:null,...qe(t)}
vendor: 4,768 bytes, line 52
52)};var r4=class e extends et{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:o}=this._processInputParams(t);if(o.parsedType!==be.object)return ce(o,{code:Q.invalid_type,expected:be.object,received:o.parsedType}),De;let n=[],i=this._def.keyType,a=this._def.valueType;for(let l in o.data)n.push({key:i._parse(new En(o,l,o.path,l)),value:a._parse(new En(o,o.data[l],o.path,l)),alwaysSet:l in o.data});return o.common.async?_r.mergeObjectAsync(r,n):_r.mergeObjectSync(r,n)}get element(){return this._def.valueType}static create(t,r,o){return r instanceof et?new e({keyType:t,valueType:r,typeName:oe.ZodRecord,...qe(o)}):new e({keyType:Ul.create(),valueType:t,typeName:oe.ZodRecord,...qe(r)})}},qd=class extends et{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:o}=this._processInputParams(t);if(o.parsedType!==be.map)return ce(o,{code:Q.invalid_type,expected:be.map,received:o.parsedType}),De;let n=this._def.keyType,i=this._def.valueType,a=[...o.data.entries()].map(([l,c],d)=>({key:n._parse(new En(o,l,o.path,[d,"key"])),value:i._parse(new En(o,c,o.path,[d,"value"]))}));if(o.common.async){let l=new Map;return Promise.resolve().then(async()=>{for(let c of a){let d=await c.key,p=await c.value;if(d.status==="aborted"||p.status==="aborted")return De;(d.status==="dirty"||p.status==="dirty")&&r.dirty(),l.set(d.value,p.value)}return{status:r.value,value:l}})}else{let l=new Map;for(let c of a){let d=c.key,p=c.value;if(d.status==="aborted"||p.status==="aborted")return De;(d.status==="dirty"||p.status==="dirty")&&r.dirty(),l.set(d.value,p.value)}return{status:r.value,value:l}}}};qd.create=(e,t,r)=>new qd({valueType:t,keyType:e,typeName:oe.ZodMap,...qe(r)});var Hd=class e extends et{_parse(t){let{status:r,ctx:o}=this._processInputParams(t);if(o.parsedType!==be.set)return ce(o,{code:Q.invalid_type,expected:be.set,received:o.parsedType}),De;let n=this._def;n.minSize!==null&&o.data.size<n.minSize.value&&(ce(o,{code:Q.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),r.dirty()),n.maxSize!==null&&o.data.size>n.maxSize.value&&(ce(o,{code:Q.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),r.dirty());let i=this._def.valueType;function a(c){let d=new Set;for(let p of c){if(p.status==="aborted")return De;p.status==="dirty"&&r.dirty(),d.add(p.value)}return{status:r.value,value:d}}let l=[...o.data.values()].map((c,d)=>i._parse(new En(o,c,o.path,d)));return o.common.async?Promise.all(l).then(c=>a(c)):a(l)}min(t,r){return new e({...this._def,minSize:{value:t,message:$e.toString(r)}})}max(t,r){return new e({...this._def,maxSize:{value:t,message:$e.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}};Hd.create=(e,t)=>new Hd({valueType:e,minSize:null,maxSize:null,typeName:oe.ZodSet,...qe(t)});var n4=class e extends et{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==be.function)return ce(r,{code:Q.invalid_type,expected:be.function,received:r.parsedType}),De;function o(l,c){return C0({data:l,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Od(),ra].filter(d=>!!d),issueData:{code:Q.invalid_arguments,argumentsError:c}})}function n(l,c){return C0({data:l,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Od(),ra].filter(d=>!!d),issueData:{code:Q.invalid_return_type,returnTypeError:c}})}let i={errorMap:r.common.contextualErrorMap},a=r.data;if(this._def.returns instanceof ms){let l=this;return Ar(async function(...c){let d=new un([]),p=await l._def.args.parseAsync(c,i).catch(g=>{throw d.addIssue(o(c,g)),d}),m=await Reflect.apply(a,this,p);return await l._def.returns._def.type.parseAsync(m,i).catch(g=>{throw d.addIssue(n(m,g)),d})})}else{let l=this;return Ar(function(...c){let d=l._def.args.safeParse(c,i);if(!d.success)throw new un([o(c,d.error)]);let p=Reflect.apply(a,this,d.data),m=l._def.returns.safeParse(p,i);if(!m.success)throw new un([n(p,m.error)]);return m.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:ri.create(t).rest(na.create())})}returns(t){return new e({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,r,o){return new e({args:t||ri.create([]).rest(na.create()),returns:r||na.create(),typeName:oe.ZodFunction,...qe(o)})}},Gl=class extends et{get schema(){return this._def.getter()}_parse(t){let{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};Gl.create=(e,t)=>
vendor: 9,121 bytes, line 52
52new Gl({getter:e,typeName:oe.ZodLazy,...qe(t)});var ql=class extends et{_parse(t){if(t.data!==this._def.value){let r=this._getOrReturnCtx(t);return ce(r,{received:r.data,code:Q.invalid_literal,expected:this._def.value}),De}return{status:"valid",value:t.data}}get value(){return this._def.value}};ql.create=(e,t)=>new ql({value:e,typeName:oe.ZodLiteral,...qe(t)});function SM(e,t){return new Hl({values:e,typeName:oe.ZodEnum,...qe(t)})}var Hl=class e extends et{_parse(t){if(typeof t.data!="string"){let r=this._getOrReturnCtx(t),o=this._def.values;return ce(r,{expected:ot.joinValues(o),received:r.parsedType,code:Q.invalid_type}),De}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let r=this._getOrReturnCtx(t),o=this._def.values;return ce(r,{received:r.data,code:Q.invalid_enum_value,options:o}),De}return Ar(t.data)}get options(){return this._def.values}get enum(){let t={};for(let r of this._def.values)t[r]=r;return t}get Values(){let t={};for(let r of this._def.values)t[r]=r;return t}get Enum(){let t={};for(let r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return e.create(t,{...this._def,...r})}exclude(t,r=this._def){return e.create(this.options.filter(o=>!t.includes(o)),{...this._def,...r})}};Hl.create=SM;var Wl=class extends et{_parse(t){let r=ot.getValidEnumValues(this._def.values),o=this._getOrReturnCtx(t);if(o.parsedType!==be.string&&o.parsedType!==be.number){let n=ot.objectValues(r);return ce(o,{expected:ot.joinValues(n),received:o.parsedType,code:Q.invalid_type}),De}if(this._cache||(this._cache=new Set(ot.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let n=ot.objectValues(r);return ce(o,{received:o.data,code:Q.invalid_enum_value,options:n}),De}return Ar(t.data)}get enum(){return this._def.values}};Wl.create=(e,t)=>new Wl({values:e,typeName:oe.ZodNativeEnum,...qe(t)});var ms=class extends et{unwrap(){return this._def.type}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==be.promise&&r.common.async===!1)return ce(r,{code:Q.invalid_type,expected:be.promise,received:r.parsedType}),De;let o=r.parsedType===be.promise?r.data:Promise.resolve(r.data);return Ar(o.then(n=>this._def.type.parseAsync(n,{path:r.path,errorMap:r.common.contextualErrorMap})))}};ms.create=(e,t)=>new ms({type:e,typeName:oe.ZodPromise,...qe(t)});var Jn=class extends et{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===oe.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:r,ctx:o}=this._processInputParams(t),n=this._def.effect||null,i={addIssue:a=>{ce(o,a),a.fatal?r.abort():r.dirty()},get path(){return o.path}};if(i.addIssue=i.addIssue.bind(i),n.type==="preprocess"){let a=n.transform(o.data,i);if(o.common.async)return Promise.resolve(a).then(async l=>{if(r.value==="aborted")return De;let c=await this._def.schema._parseAsync({data:l,path:o.path,parent:o});return c.status==="aborted"?De:c.status==="dirty"?Ll(c.value):r.value==="dirty"?Ll(c.value):c});{if(r.value==="aborted")return De;let l=this._def.schema._parseSync({data:a,path:o.path,parent:o});return l.status==="aborted"?De:l.status==="dirty"?Ll(l.value):r.value==="dirty"?Ll(l.value):l}}if(n.type==="refinement"){let a=l=>{let c=n.refinement(l,i);if(o.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return l};if(o.common.async===!1){let l=this._def.schema._parseSync({data:o.data,path:o.path,parent:o});return l.status==="aborted"?De:(l.status==="dirty"&&r.dirty(),a(l.value),{status:r.value,value:l.value})}else return this._def.schema._parseAsync({data:o.data,path:o.path,parent:o}).then(l=>l.status==="aborted"?De:(l.status==="dirty"&&r.dirty(),a(l.value).then(()=>({status:r.value,value:l.value}))))}if(n.type==="transform")if(o.common.async===!1){let a=this._def.schema._parseSync({data:o.data,path:o.path,parent:o});if(!ps(a))return De;let l=n.transform(a.value,i);if(l instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:l}}else return this._def.schema._parseAsync({data:o.data,path:o.path,parent:o}).then(a=>ps(a)?Promise.resolve(n.transform(a.value,i)).then(l=>({status:r.value,value:l})):De);ot.assertNever(n)}};Jn.create=(e,t,r)=>new Jn({schema:e,typeName:oe.ZodEffects,effect:t,...qe(r)});Jn.createWithPreprocess=(e,t,r)=>new Jn({schema:t,effect:{type:"preprocess",transform:e},typeName:oe.ZodEffects,...qe(r)});var Wn=class extends et{_parse(t){return this._getType(t)===be.undefined?Ar(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Wn.create=(e,t)=>new Wn({innerType:e,typeName:oe.ZodOptional,...qe(t)});var ni=class extends et{_parse(t){return this._getType(t)===be.null?Ar(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};ni.create=(e,t)=>new ni({innerType:e,typeName:oe.ZodNullable,...qe(t)});var Jl=class extends et{_parse(t){let{ctx:r}=this._processInputParams(t),o=r.data;return r.parsedType===be.undefined&&(o=this._def.defaultValue()),this._def.innerType._parse({data:o,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};Jl.create=(e,t)=>new Jl({innerType:e,typeName:oe.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...qe(t)});var Kl=class extends et{_parse(t){let{ctx:r}=this._processInputParams(t),o={...r,common:{...r.common,issues:[]}},n=this._def.innerType._parse({data:o.data,path:o.path,parent:{...o}});return Ld(n)?n.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new un(o.common.issues)},input:o.data})})):{status:"valid",value:n.status==="valid"?n.value:this._def.catchValue({get error(){return new un(o.common.issues)},input:o.data})}}removeCatch(){return this._def.innerType}};Kl.create=(e,t)=>new Kl({innerType:e,typeName:oe.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...qe(t)});var Wd=class extends et{_parse(t){if(this._getType(t)!==be.nan){let o=this._getOrReturnCtx(t);return ce(o,{code:Q.invalid_type,expected:be.nan,received:o.parsedType}),De}return{status:"valid",value:t.data}}};Wd.create=e=>new Wd({typeName:oe.ZodNaN,...qe(e)});var z0=class extends et{_parse(t){let{ctx:r}=this._processInputParams(t),o=r.data;return this._def.type._parse({data:o,path:r.path,parent:r})}unwrap(){return this._def.type}},E0=class e extends et{_parse(t){let{status:r,ctx:o}=this._processInputParams(t);if(o.common.async)return(async()=>{let i=await this._def.in._parseAsync({data:o.data,path:o.path,parent:o});return i.status==="aborted"?De:i.status==="dirty"?(r.dirty(),Ll(i.value)):this._def.out._parseAsync({data:i.value,path:o.path,parent:o})})();{let n=this._def.in._parseSync({data:o.data,path:o.path,parent:o});return n.status==="aborted"?De:n.status==="dirty"?(r.dirty(),{status:"dirty",value:n.value}):this._def.out._parseSync({data:n.value,path:o.path,parent:o})}}static create(t,r){return new e({in:t,out:r,typeName:oe.ZodPipeline})}},Xl=class extends et{_parse(t){let r=this._def.innerType._parse(t),o=n=>(ps(n)&&(n.value=Object.freeze(n.value)),n);return Ld(r)?r.then(n=>o(n)):o(r)}unwrap(){return this._def.innerType}};Xl.create=(e,t)=>new Xl({innerType:e,typeName:oe.ZodReadonly,...qe(t)});var w7e={object:dn.lazycreate},oe;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(oe||(oe={}));var _7e=Ul.create,k7e=jd.create,S7e=Wd.create,$7e=Ud.create,T7e=Bd.create,I7e=Fd.create,P7e=Zd.create,C7e=Bl.create,z7e=Fl.create,E7e=Vd.create,A7e=na.create,M7e=xo.create,N7e=Gd.create,R7e=oa.create,D7e=dn.create,O7e=dn.strictCreate,L7e=Zl.create,j7e=e4.create,U7e=Vl.create,B7e=ri.create,F7e=r4.create,Z7e=qd.create,V7e=Hd.create,G7e=n4.create,q7e=Gl.create,H7e=ql.create,W7e=Hl.create,J7e=Wl.create,K7e=ms.create,X7e=Jn.create,Y7e=Wn.create,Q7e=ni.create,e$e=Jn.createWithPreprocess,t$e=E0.create;var Jd=class extends Error{constructor(t,r){super(t),this.name="ParseError",this.type=r.type,this.field=r.field,this.value=r.value,this.line=r.line}},$M=10,hK=13,fs=32;function o4(e){}function PM(e){if(typeof e=="function")throw new TypeError("`config` must be an object, got a function instead. Did 
52you mean `createParser({onEvent: fn})`?");let{onEvent:t=o4,onError:r=o4,onRetry:o=o4,onComment:n,maxBufferSize:i}=e,a=[],l=0,c=!0,d,p="",m=0,h,g=!1;function w(E){if(g)throw new Error("Cannot feed parser: it was terminated after exceeding the configured max buffer size. Call `reset()` to resume parsing.");if(c&&(c=!1,E.charCodeAt(0)===239&&E.charCodeAt(1)===187&&E.charCodeAt(2)===191&&(E=E.slice(3))),a.length===0){let H=T(E);H!==""&&(a.push(H),l=H.length),$();return}if(E.indexOf(`
53`)===-1&&E.indexOf("\r")===-1){a.push(E),l+=E.length,$();return}a.push(E);let D=a.join("");a.length=0,l=0;let F=T(D);F!==""&&(a.push(F),l=F.length),$()}function $(){i!==void 0&&(l+p.length<=i||(g=!0,a.length=0,l=0,d=void 0,p="",m=0,h=void 0,r(new Jd(`Buffered data exceeded max buffer size of ${i} characters`,{type:"max-buffer-size-exceeded"}))))}function T(E){let D=0;if(E.indexOf("\r")===-1){let F=E.indexOf(`
54`,D);for(;F!==-1;){if(D===F){m>0&&t({id:d,event:h,data:p}),d=void 0,p="",m=0,h=void 0,D=F+1,F=E.indexOf(`
55`,D);continue}let H=E.charCodeAt(D);if(TM(E,D,H)){let Z=E.charCodeAt(D+5)===fs?D+6:D+5,W=E.slice(Z,F);if(m===0&&E.charCodeAt(F+1)===$M){t({id:d,event:h,data:W}),d=void 0,p="",h=void 0,D=F+2,F=E.indexOf(`
56`,D);continue}p=m===0?W:`${p}
57${W}`,m++}else IM(E,D,H)?h=E.slice(E.charCodeAt(D+6)===fs?D+7:D+6,F)||void 0:z(E,D,F);D=F+1,F=E.indexOf(`
58`,D)}return E.slice(D)}for(;D<E.length;){let F=E.indexOf("\r",D),H=E.indexOf(`
59`,D),Z=-1;if(F!==-1&&H!==-1?Z=F<H?F:H:F!==-1?F===E.length-1?Z=-1:Z=F:H!==-1&&(Z=H),Z===-1)break;z(E,D,Z),D=Z+1,E.charCodeAt(D-1)===hK&&E.charCodeAt(D)===$M&&D++}return E.slice(D)}function z(E,D,F){if(D===F){k();return}let H=E.charCodeAt(D);if(TM(E,D,H)){let Ie=E.charCodeAt(D+5)===fs?D+6:D+5,We=E.slice(Ie,F);p=m===0?We:`${p}
60${We}`,m++;return}if(IM(E,D,H)){h=E.slice(E.charCodeAt(D+6)===fs?D+7:D+6,F)||void 0;return}if(H===105&&E.charCodeAt(D+1)===100&&E.charCodeAt(D+2)===58){let Ie=E.slice(E.charCodeAt(D+3)===fs?D+4:D+3,F);d=Ie.includes("\0")?void 0:Ie;return}if(H===58){if(n){let Ie=E.slice(D,F);n(Ie.slice(E.charCodeAt(D+1)===fs?2:1))}return}let Z=E.slice(D,F),W=Z.indexOf(":");if(W===-1){P(Z,"",Z);return}let ke=Z.slice(0,W),ge=Z.charCodeAt(W+1)===fs?2:1,xt=Z.slice(W+ge);P(ke,xt,Z)}function P(E,D,F){switch(E){case"event":h=D||void 0;break;case"data":p=m===0?D:`${p}
61${D}`,m++;break;case"id":d=D.includes("\0")?void 0:D;break;case"retry":/^\d+$/.test(D)?o(parseInt(D,10)):r(new Jd(`Invalid \`retry\` value: "${D}"`,{type:"invalid-retry",value:D,line:F}));break;default:r(new Jd(`Unknown field "${E.length>20?`${E.slice(0,20)}\u2026`:E}"`,{type:"unknown-field",field:E,value:D,line:F}));break}}function k(){m>0&&t({id:d,event:h,data:p}),d=void 0,p="",m=0,h=void 0}function M(E={}){if(E.consume&&a.length>0){let D=a.join("");z(D,0,D.length)}c=!0,d=void 0,p="",m=0,h=void 0,a.length=0,l=0,g=!1}return{feed:w,reset:M}}function TM(e,t,r){return r===100&&e.charCodeAt(t+1)===97&&e.charCodeAt(t+2)===116&&e.charCodeAt(t+3)===97&&e.charCodeAt(t+4)===58}function IM(e,t,r){return r===101&&e.charCodeAt(t+1)===118&&e.charCodeAt(t+2)===101&&e.charCodeAt(t+3)===110&&e.charCodeAt(t+4)===116&&e.charCodeAt(t+5)===58}var A0=class extends TransformStream{constructor({onError:t,onRetry:r,onComment:o,maxBufferSize:n}={}){let i;super({start(a){i=PM({onEvent:l=>{a.enqueue(l)},onError(l){typeof t=="function"&&t(l),(t==="terminate"||l.type==="max-buffer-size-exceeded")&&a.error(l)},onRetry:r,onComment:o,maxBufferSize:n})},transform(a){i.feed(a)}})}};var{btoa:f$e,atob:h$e}=globalThis;async function M0(e){var t;try{await((t=e.body)==null?void 0:t.cancel())}catch{}}var NM="AI_DownloadError",RM=`vercel.ai.error.${NM}`,gK=Symbol.for(RM),CM,zM,Hr=class extends(zM=it,CM=gK,zM){constructor({url:e,statusCode:t,statusText:r,cause:o,message:n=o==null?`Failed to download ${e}: ${t} ${r}`:`Failed to download ${e}: ${o}`}){super({name:NM,message:n,cause:o}),this[CM]=!0,this.url=e,this.statusCode=t,this.statusText=r}static isInstance(e){return it.hasMarker(e,RM)}};function vK(e=globalThis){return e.window!=null}function yK(e){let t;try{t=new URL(e)}catch{throw new Hr({url:e,message:`Invalid URL: ${e}`})}if(t.protocol==="data:")return;if(t.protocol!=="http:"&&t.protocol!=="https:")throw new Hr({url:e,message:`URL scheme must be http, https, or data, got ${t.protocol}`});let r=t.hostname.toLowerCase().replace(/\.+$/,"");if(!r)throw new Hr({url:e,message:"URL must have a hostname"});if(r==="localhost"||r.endsWith(".local")||r.endsWith(".localhost"))throw new Hr({url:e,message:`URL with hostname ${r} is not allowed`});if(r.startsWith("[")&&r.endsWith("]")){let o=r.slice(1,-1);if(xK(o))throw new Hr({url:e,message:`URL with IPv6 address ${r} is not allowed`});return}if(DM(r)){if(OM(r))throw new Hr({url:e,message:`URL with IP address ${r} is not allowed`});return}}function DM(e){let t=e.split(".");return t.length!==4?!1:t.every(r=>{let o=Number(r);return Number.isInteger(o)&&o>=0&&o<=255&&String(o)===r})}function OM(e){let t=e.split(".").map(Number),[r,o,n]=t;return r===0||r===10||r===100&&o>=64&&o<=127||r===127||r===169&&o===254||r===172&&o>=16&&o<=31||r===192&&o===0&&n===0||r===192&&o===168||r===198&&(o===18||o===19)||r>=240}function bK(e){let t=e.toLowerCase(),r=t.indexOf("%");
61r!==-1&&(t=t.slice(0,r));let o=t.split("::");if(o.length>2)return null;let n=a=>{if(a==="")return[];let l=[],c=a.split(":");for(let d=0;d<c.length;d++){let p=c[d];if(p.includes(".")){if(d!==c.length-1||!DM(p))return null;let[m,h,g,w]=p.split(".").map(Number);l.push(m<<8|h,g<<8|w);continue}if(!/^[0-9a-f]{1,4}$/.test(p))return null;l.push(parseInt(p,16))}return l},i=n(o[0]);if(i===null)return null;if(o.length===2){let a=n(o[1]);if(a===null)return null;let l=8-i.length-a.length;return l<0?null:[...i,...new Array(l).fill(0),...a]}return i.length===8?i:null}function xK(e){let t=bK(e);if(t===null)return!0;let r=n=>t.slice(0,n).every(i=>i===0);if(r(7)&&(t[7]===0||t[7]===1)||(t[0]&65024)===64512||(t[0]&65472)===65152||(t[0]&65472)===65216||(t[0]&65280)===65280)return!0;if(r(6)||r(5)&&t[5]===65535||r(4)&&t[4]===65535&&t[5]===0||t[0]===100&&t[1]===65435&&t[2]===0&&t[3]===0&&t[4]===0&&t[5]===0||t[0]===100&&t[1]===65435&&t[2]===1){let n=t[6]>>8&255,i=t[6]&255,a=t[7]>>8&255,l=t[7]&255;return OM(`${n}.${i}.${a}.${l}`)}return!1}var wK=10;async function LM({url:e,headers:t,abortSignal:r,maxRedirects:o=wK}){let n={signal:r};t!==void 0&&(n.headers=t);let i=e;for(let a=0;a<=o;a++){yK(i);let l=await fetch(i,{...n,redirect:"manual"});if(l.type==="opaqueredirect"){if(!vK())throw new Hr({url:e,message:`Redirect from ${i} could not be validated and was blocked`});return await fetch(i,{...n,redirect:"follow"})}let c=l.headers.get("location");if(l.status>=300&&l.status<400&&c){await M0(l),i=new URL(c,i).toString();continue}return l}throw new Hr({url:e,message:`Too many redirects (max ${o})`})}var c4=2*1024*1024*1024;async function jM({response:e,url:t,maxBytes:r=c4}){let o=e.headers.get("content-length");if(o!=null){let p=parseInt(o,10);if(!isNaN(p)&&p>r)throw await M0(e),new Hr({url:t,message:`Download of ${t} exceeded maximum size of ${r} bytes (Content-Length: ${p}).`})}let n=e.body;if(n==null)return new Uint8Array(0);let i=n.getReader(),a=[],l=0;try{for(;;){let{done:p,value:m}=await i.read();if(p)break;if(l+=m.length,l>r)throw new Hr({url:t,message:`Download of ${t} exceeded maximum size of ${r} bytes.`});a.push(m)}}finally{try{await i.cancel()}finally{i.releaseLock()}}let c=new Uint8Array(l),d=0;for(let p of a)c.set(p,d),d+=p.length;return c}var oi=({prefix:e,size:t=16,alphabet:r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:o="-"}={})=>{let n=()=>{let i=r.length,a=new Array(t);for(let l=0;l<t;l++)a[l]=r[Math.random()*i|0];return a.join("")};if(e==null)return n;if(r.includes(o))throw new QP({argument:"separator",message:`The separator "${o}" must not be part of the alphabet "${r}".`});return()=>`${e}${o}${n()}`},UM=oi();function BM(e=globalThis){var t,r,o;return e.window?"runtime/browser":(t=e.navigator)!=null&&t.userAgent?`runtime/${e.navigator.userAgent.toLowerCase()}`:(o=(r=e.process)==null?void 0:r.versions)!=null&&o.node?`runtime/node.js/${e.process.version.substring(0)}`:e.EdgeRuntime?"runtime/vercel-edge":"runtime/unknown"}function ia(e){if(e==null)return{};let t={};if(e instanceof Headers)e.forEach((r,o)=>{t[o.toLowerCase()]=r});else{Array.isArray(e)||(e=Object.entries(e));for(let[r,o]of e)o!=null&&(t[r.toLowerCase()]=o)}return t}function N0(e,...t){let r=new Headers(ia(e)),o=r.get("user-agent")||"";return r.set("user-agent",[o,...t].filter(Boolean).join(" ")),Object.fromEntries(r.entries())}var _K=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,kK=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function EM(e){let t=JSON.parse(e);return t===null||typeof t!="object"||_K.test(e)===!1&&kK.test(e)===!1?t:SK(t)}function SK(e){let t=[e];for(;t.length;){let r=t;t=[];for(let o of r){if(Object.prototype.hasOwnProperty.call(o,"__proto__"))throw new SyntaxError("Object contains forbidden prototype property");if(Object.prototype.hasOwnProperty.call(o,"constructor")&&o.constructor!==null&&typeof o.constructor=="object"&&Object.prototype.hasOwnProperty.call(o.constructor,"prototype"))throw new SyntaxError("Object contains forbidden prototype property");for(let n in o){let i=o[n];i&&typeof i=="object"&&t.push(i)}}}return e}function $K(e){let{stackTraceLimit:t}=Error;try{Error.stackTraceLimit=0}catch{return EM(e)}try{return EM(e)}finally{Error.stackTraceLimit=t}}function u4(e){if(e.type==="object"||Array.isArray(e.type)&&e.type.includes("object")){e.additionalProperties=!1;let{properties:r}=e;if(r!=null)for(let o of Object.keys(r))r[o]=hs(r[o])}e.items!=null&&(e.items=Array.isArray(e.items)?e.items.map(hs):hs(e.items)),e.anyOf!=null&&(e.anyOf=e.anyOf.map(hs)),e.allOf!=null&&(e.allOf=e.allOf.map(hs)),e.oneOf!=null&&(e.oneOf=e.oneOf.map(hs));let{definitions:t}=e;if(t!=null)for(let r of Object.keys(t))t[r]=hs(t[r]);return e}function hs(e){return typeof e=="boolean"?e:u4(e)}var TK=Symbol("Let zodToJsonSchema decide on which parser to use"),AM={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",strictUnions:!1,definitions:{},errorMessages:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref"},IK=e=>typeof e=="string"?{...AM,name:e}:{...AM,...e};function pn(){return{}}function PK(e,t){var r,o,n;let i={type:"array"};return(r=e.type)!=null&&r._def&&((n=(o=e.type)==null?void 0:o._def)==null?void 0:n.typeName)!==oe.ZodAny&&(i.items=gt(e.type._def,{...t,currentPath:[...t.currentPath,"items"]})),e.minLength&&(i.minItems=e.minLength.value),e.maxLength&&(i.maxItems=e.maxLength.value),e.exactLength&&(i.minItems=e.exactLength.value,i.maxItems=e.exactLength.value),i}function CK(e){let t={type:"integer",format:"int64"};if(!e.checks)return t;for(let r of e.checks)switch(r.kind){case"min":r.inclusive?t.minimum=r.value:t.exclusiveMinimum=r.value;break;case"max":r.inclusive?t.maximum=r.value:t.exclusiveMaximum=r.value;break;case"multipleOf":t.multipleOf=r.value;break}return t}function zK(){return{type:"boolean"}}function FM(e,t){return gt(e.type._def,t)}var EK=(e,t)=>gt(e.innerType._def,t);function ZM(e,t,r){let o=r??t.dateStrategy;if(Array.isArray(o))return{anyOf:o.map((n,i)=>ZM(e,t,n))};switch(o){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return AK(e)}}var AK=e=>{let t={type:"integer",format:"unix-time"};for(let r of e.checks)switch(r.kind){case"min":t.minimum=r.value;break;case"max":t.maximum=r.value;break}return t};function MK(e,t){return{...gt(e.innerType._def,t),default:e.defaultValue()}}function NK(e,t){return t.effectStrategy==="input"?gt(e.schema._def,t):pn()}function RK(e){return{type:"string",enum:Array.from(e.values)}}var DK=e=>"type"in e&&e.type==="string"?!1:"allOf"in e;function OK(e,t){let r=[gt(e.left._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),gt(e.right._def,{...t,currentPath:[...t.currentPath,"allOf","1"]})].filter(n=>!!n),o=[];return r.forEach(n=>{if(DK(n))o.push(...n.allOf);else{let i=n;if("additionalProperties"in n&&n.additionalProperties===!1){let{additionalProperties:a,...l}=n;i=l}o.push(i)}}),o.length?{allOf:o}:void 0}function LK(e){let t=typeof e.value;return t!=="bigint"&&t!=="number"&&t!=="boolean"&&t!=="string"?{type:Array.isArray(e.value)?"array":"object"}:{type:t==="bigint"?"integer":t,const:e.value}}var i4=void 0,Kn={cuid:/^[cC][^\s-]{8,}
vendor: 9,659 bytes, lines 61-65
61$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>(i4===void 0&&(i4=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),i4),uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?: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])$/,ipv4Cidr:/^(?:(?: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])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,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}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function VM(e,t){let r={type:"string"};if(e.checks)for(let o of e.checks)switch(o.kind){case"min":r.minLength=typeof r.minLength=="number"?Math.max(r.minLength,o.value):o.value;break;case"max":r.maxLength=typeof r.maxLength=="number"?Math.min(r.maxLength,o.value):o.value;break;case"email":switch(t.emailStrategy){case"format:email":Xn(r,"email",o.message,t);break;case"format:idn-email":Xn(r,"idn-email",o.message,t);break;case"pattern:zod":Mr(r,Kn.email,o.message,t);break}break;case"url":Xn(r,"uri",o.message,t);break;case"uuid":Xn(r,"uuid",o.message,t);break;case"regex":Mr(r,o.regex,o.message,t);break;case"cuid":Mr(r,Kn.cuid,o.message,t);break;case"cuid2":Mr(r,Kn.cuid2,o.message,t);break;case"startsWith":Mr(r,RegExp(`^${a4(o.value,t)}`),o.message,t);break;case"endsWith":Mr(r,RegExp(`${a4(o.value,t)}$`),o.message,t);break;case"datetime":Xn(r,"date-time",o.message,t);break;case"date":Xn(r,"date",o.message,t);break;case"time":Xn(r,"time",o.message,t);break;case"duration":Xn(r,"duration",o.message,t);break;case"length":r.minLength=typeof r.minLength=="number"?Math.max(r.minLength,o.value):o.value,r.maxLength=typeof r.maxLength=="number"?Math.min(r.maxLength,o.value):o.value;break;case"includes":{Mr(r,RegExp(a4(o.value,t)),o.message,t);break}case"ip":{o.version!=="v6"&&Xn(r,"ipv4",o.message,t),o.version!=="v4"&&Xn(r,"ipv6",o.message,t);break}case"base64url":Mr(r,Kn.base64url,o.message,t);break;case"jwt":Mr(r,Kn.jwt,o.message,t);break;case"cidr":{o.version!=="v6"&&Mr(r,Kn.ipv4Cidr,o.message,t),o.version!=="v4"&&Mr(r,Kn.ipv6Cidr,o.message,t);break}case"emoji":Mr(r,Kn.emoji(),o.message,t);break;case"ulid":{Mr(r,Kn.ulid,o.message,t);break}case"base64":{switch(t.base64Strategy){case"format:binary":{Xn(r,"binary",o.message,t);break}case"contentEncoding:base64":{r.contentEncoding="base64";break}case"pattern:zod":{Mr(r,Kn.base64,o.message,t);break}}break}case"nanoid":Mr(r,Kn.nanoid,o.message,t);case"toLowerCase":case"toUpperCase":case"trim":break;default:}return r}function a4(e,t){return t.patternStrategy==="escape"?UK(e):e}var jK=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function UK(e){let t="";for(let r=0;r<e.length;r++)jK.has(e[r])||(t+="\\"),t+=e[r];return t}function Xn(e,t,r,o){var n;e.format||(n=e.anyOf)!=null&&n.some(i=>i.format)?(e.anyOf||(e.anyOf=[]),e.format&&(e.anyOf.push({format:e.format}),delete e.format),e.anyOf.push({format:t,...r&&o.errorMessages&&{errorMessage:{format:r}}})):e.format=t}function Mr(e,t,r,o){var n;e.pattern||(n=e.allOf)!=null&&n.some(i=>i.pattern)?(e.allOf||(e.allOf=[]),e.pattern&&(e.allOf.push({pattern:e.pattern}),delete e.pattern),e.allOf.push({pattern:MM(t,o),...r&&o.errorMessages&&{errorMessage:{pattern:r}}})):e.pattern=MM(t,o)}function MM(e,t){var r;if(!t.applyRegexFlags||!e.flags)return e.source;let o={i:e.flags.includes("i"),m:e.flags.includes("m"),s:e.flags.includes("s")},n=o.i?e.source.toLowerCase():e.source,i="",a=!1,l=!1,c=!1;for(let d=0;d<n.length;d++){if(a){i+=n[d],a=!1;continue}if(o.i){if(l){if(n[d].match(/[a-z]/)){c?(i+=n[d],i+=`${n[d-2]}-${n[d]}`.toUpperCase(),c=!1):n[d+1]==="-"&&((r=n[d+2])!=null&&r.match(/[a-z]/))?(i+=n[d],c=!0):i+=`${n[d]}${n[d].toUpperCase()}`;continue}}else if(n[d].match(/[a-z]/)){i+=`[${n[d]}${n[d].toUpperCase()}]`;continue}}if(o.m){if(n[d]==="^"){i+=`(^|(?<=[\r
62]))`;continue}else if(n[d]==="$"){i+=`($|(?=[\r
63]))`;continue}}if(o.s&&n[d]==="."){i+=l?`${n[d]}\r
64`:`[${n[d]}\r
65]`;continue}i+=n[d],n[d]==="\\"?a=!0:l&&n[d]==="]"?l=!1:!l&&n[d]==="["&&(l=!0)}try{new RegExp(i)}catch{return console.warn(`Could not convert regex pattern at ${t.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),e.source}return i}function GM(e,t){var r,o,n,i,a,l;let c={type:"object",additionalProperties:(r=gt(e.valueType._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]}))!=null?r:t.allowedAdditionalProperties};if(((o=e.keyType)==null?void 0:o._def.typeName)===oe.ZodString&&((n=e.keyType._def.checks)!=null&&n.length)){let{type:d,...p}=VM(e.keyType._def,t);return{...c,propertyNames:p}}else{if(((i=e.keyType)==null?void 0:i._def.typeName)===oe.ZodEnum)return{...c,propertyNames:{enum:e.keyType._def.values}};if(((a=e.keyType)==null?void 0:a._def.typeName)===oe.ZodBranded&&e.keyType._def.type._def.typeName===oe.ZodString&&((l=e.keyType._def.type._def.checks)!=null&&l.length)){let{type:d,...p}=FM(e.keyType._def,t);return{...c,propertyNames:p}}}return c}function BK(e,t){if(t.mapStrategy==="record")return GM(e,t);let r=gt(e.keyType._def,{...t,currentPath:[...t.currentPath,"items","items","0"]})||pn(),o=gt(e.valueType._def,{...t,currentPath:[...t.currentPath,"items","items","1"]})||pn();return{type:"array",maxItems:125,items:{type:"array",items:[r,o],minItems:2,maxItems:2}}}function FK(e){let t=e.values,o=Object.keys(e.values).filter(i=>typeof t[t[i]]!="number").map(i=>t[i]),n=Array.from(new Set(o.map(i=>typeof i)));return{type:n.length===1?n[0]==="string"?"string":"number":["string","number"],enum:o}}function ZK(){return{not:pn()}}function VK(){return{type:"null"}}var s4={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function GK(e,t){let r=e.options instanceof Map?Array.from(e.options.values()):e.options;if(r.every(o=>o._def.typeName in s4&&(!o._def.checks||!o._def.checks.length))){let o=r.reduce((n,i)=>{let a=s4[i._def.typeName];return a&&!n.includes(a)?[...n,a]:n},[]);return{type:o.length>1?o:o[0]}}else if(r.every(o=>o._def.typeName==="ZodLiteral"&&!o.description)){let o=r.reduce((n,i)=>{let a=typeof i._def.value;switch(a){case"string":case"number":case"boolean":return[...n,a];case"bigint":return[...n,"integer"];case"object":if(i._def.value===null)return[...n,"null"];default:return n}},[]);if(o.length===r.length){let n=o.filter((i,a,l)=>l.indexOf(i)===a);return{type:n.length>1?n:n[0],enum:r.reduce((i,a)=>i.includes(a._def.value)?i:[...i,a._def.value],[])}}}else if(r.every(o=>o._def.typeName==="ZodEnum"))return{type:"string",enum:r.reduce((o,n)=>[...o,...n._def.values.filter(i=>!o.includes(i))],[])};return qK(e,t)}var qK=(e,t)=>{let r=(e.options instanceof Map?Array.from(e.options.values()):e.options).map((o,n)=>gt(o._def,{...t,currentPath:[...t.currentPath,"anyOf",`${n}`]})).filter(o=>!!o&&(!t.strictUnions||typeof o=="object"&&Object.keys(o).length>0));return r.length?{anyOf:r}:void 0};function HK(e,t){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(e.innerType._def.typeName)&&(!e.innerType._def.checks||!e.innerType._def.checks.length))return{type:[s4[e.innerType._def.typeName],"null"]};let r=gt(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","0"]});return r&&{anyOf:[r,{type:"null"}]}}function WK(e){let t={type:"number"};if(!e.checks)return t;for(let r of e.checks)switch(r.kind){case"int":t.type="integer";break;case"min":r.inclusive?t.minimum=r.value:t.exclusiveMinimum=r.value;break;case"max":r.inclusive?t.maximum=r.value:t.exclusiveMaximum=r.value;break;case"multipleOf":t.multipleOf=r.value;break}return t}function JK(e,t){let r={type:"object",properties:{}},o=[],n=e.shape();for(let a in n){let l=n[a];if(l===void 0||l._def===void 0)continue;let c=XK(l),d=gt(l._def,{...t,currentPath:[...t.currentPath,"properties",a],propertyPath:[...t.currentPath,"properties",a]});d!==void 0&&(r.properties[a]=d,c||o.push(a))}o.length&&(r.required=o);let i=KK(e,t);return i!==void 0&&(r.additionalProperties=i),r}function KK(e,t){if(e.catchall._def.typeName!=="ZodNever")return gt(e.catchall._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]});switch(e.unknownKeys){case"passthrough":return t.allowedAdditionalProperties;case"strict":return t.rejectedAdditionalProperties;
65case"strip":return t.removeAdditionalStrategy==="strict"?t.allowedAdditionalProperties:t.rejectedAdditionalProperties}}function XK(e){try{return e.isOptional()}catch{return!0}}var YK=(e,t)=>{var r;if(t.currentPath.toString()===((r=t.propertyPath)==null?void 0:r.toString()))return gt(e.innerType._def,t);let o=gt(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","1"]});return o?{anyOf:[{not:pn()},o]}:pn()},QK=(e,t)=>{if(t.pipeStrategy==="input")return gt(e.in._def,t);if(t.pipeStrategy==="output")return gt(e.out._def,t);let r=gt(e.in._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),o=gt(e.out._def,{...t,currentPath:[...t.currentPath,"allOf",r?"1":"0"]});return{allOf:[r,o].filter(n=>n!==void 0)}};function eX(e,t){return gt(e.type._def,t)}function tX(e,t){let o={type:"array",uniqueItems:!0,items:gt(e.valueType._def,{...t,currentPath:[...t.currentPath,"items"]})};return e.minSize&&(o.minItems=e.minSize.value),e.maxSize&&(o.maxItems=e.maxSize.value),o}function rX(e,t){return e.rest?{type:"array",minItems:e.items.length,items:e.items.map((r,o)=>gt(r._def,{...t,currentPath:[...t.currentPath,"items",`${o}`]})).reduce((r,o)=>o===void 0?r:[...r,o],[]),additionalItems:gt(e.rest._def,{...t,currentPath:[...t.currentPath,"additionalItems"]})}:{type:"array",minItems:e.items.length,maxItems:e.items.length,items:e.items.map((r,o)=>gt(r._def,{...t,currentPath:[...t.currentPath,"items",`${o}`]})).reduce((r,o)=>o===void 0?r:[...r,o],[])}}function nX(){return{not:pn()}}function oX(){return pn()}var iX=(e,t)=>gt(e.innerType._def,t),aX=(e,t,r)=>{switch(t){case oe.ZodString:return VM(e,r);case oe.ZodNumber:return WK(e);case oe.ZodObject:return JK(e,r);case oe.ZodBigInt:return CK(e);case oe.ZodBoolean:return zK();case oe.ZodDate:return ZM(e,r);case oe.ZodUndefined:return nX();case oe.ZodNull:return VK();case oe.ZodArray:return PK(e,r);case oe.ZodUnion:case oe.ZodDiscriminatedUnion:return GK(e,r);case oe.ZodIntersection:return OK(e,r);case oe.ZodTuple:return rX(e,r);case oe.ZodRecord:return GM(e,r);case oe.ZodLiteral:return LK(e);case oe.ZodEnum:return RK(e);case oe.ZodNativeEnum:return FK(e);case oe.ZodNullable:return HK(e,r);case oe.ZodOptional:return YK(e,r);case oe.ZodMap:return BK(e,r);case oe.ZodSet:return tX(e,r);case oe.ZodLazy:return()=>e.getter()._def;case oe.ZodPromise:return eX(e,r);case oe.ZodNaN:case oe.ZodNever:return ZK();case oe.ZodEffects:return NK(e,r);case oe.ZodAny:return pn();case oe.ZodUnknown:return oX();case oe.ZodDefault:return MK(e,r);case oe.ZodBranded:return FM(e,r);case oe.ZodReadonly:return iX(e,r);case oe.ZodCatch:return EK(e,r);case oe.ZodPipeline:return QK(e,r);case oe.ZodFunction:case oe.ZodVoid:case oe.ZodSymbol:return;default:return(o=>{})(t)}},sX=(e,t)=>{let r=0;for(;r<e.length&&r<t.length&&e[r]===t[r];r++);return[(e.length-r).toString(),...t.slice(r)].join("/")};function gt(e,t,r=!1){var o;let n=t.seen.get(e);if(t.override){let c=(o=t.override)==null?void 0:o.call(t,e,t,n,r);if(c!==TK)return c}if(n&&!r){let c=lX(n,t);if(c!==void 0)return c}let i={def:e,path:t.currentPath,jsonSchema:void 0};t.seen.set(e,i);let a=aX(e,e.typeName,t),l=typeof a=="function"?gt(a(),t):a;if(l&&cX(e,t,l),t.postProcess){let c=t.postProcess(l,e,t);return i.jsonSchema=l,c}return i.jsonSchema=l,l}var lX=(e,t)=>{switch(t.$refStrategy){case"root":return{$ref:e.path.join("/")};case"relative":return{$ref:sX(t.currentPath,e.path)};case"none":case"seen":return e.path.length<t.currentPath.length&&e.path.every((r,o)=>t.currentPath[o]===r)?(console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`),pn()):t.$refStrategy==="seen"?pn():void 0}},cX=(e,t,r)=>(e.description&&(r.description=e.description),r),uX=e=>{let t=IK(e),r=t.name!==void 0?[...t.basePath,t.definitionPath,t.name]:t.basePath;return{...t,currentPath:r,propertyPath:void 0,seen:new Map(Object.entries(t.definitions).map(([o,n])=>[n._def,{def:n._def,path:[...t.basePath,t.definitionPath,o],jsonSchema:void 0}]))}},dX=(e,t)=>{var r;let o=uX(t),n=typeof t=="object"&&t.definitions?Object.entries(t.definitions).reduce((d,[p,m])=>{var h;return{...d,[p]:(h=gt(m._def,{...o,currentPath:[...o.basePath,o.definitionPath,p]},!0))!=null?h:pn()}},{}):void 0,i=typeof t=="string"?t:t?.nameStrategy==="title"?void 0:t?.name,a=(r=gt(e._def,i===void 0?o:{...o,currentPath:[...o.basePath,o.definitionPath,i]}
65,!1))!=null?r:pn(),l=typeof t=="object"&&t.name!==void 0&&t.nameStrategy==="title"?t.name:void 0;l!==void 0&&(a.title=l);let c=i===void 0?n?{...a,[o.definitionPath]:n}:a:{$ref:[...o.$refStrategy==="relative"?[]:o.basePath,o.definitionPath,i].join("/"),[o.definitionPath]:{...n,[i]:a}};return c.$schema="http://json-schema.org/draft-07/schema#",c},l4=Symbol.for("vercel.ai.schema");function R0(e){let t;return()=>(t==null&&(t=e()),t)}function D0(e,{validate:t}={}){return{[l4]:!0,_type:void 0,get jsonSchema(){return typeof e=="function"&&(e=e()),e},validate:t}}function pX(e){return typeof e=="object"&&e!==null&&l4 in e&&e[l4]===!0&&"jsonSchema"in e&&"validate"in e}function O0(e){return e==null?D0({properties:{},additionalProperties:!1}):pX(e)?e:"~standard"in e?e["~standard"].vendor==="zod"?Kd(e):mX(e):e()}function mX(e){return D0(()=>u4(e["~standard"].jsonSchema.input({target:"draft-07"})),{validate:async t=>{let r=await e["~standard"].validate(t);return"value"in r?{success:!0,value:r.value}:{success:!1,error:new vo({value:t,cause:r.issues})}}})}function fX(e,t){var r;let o=(r=t?.useReferences)!=null?r:!1;return D0(()=>dX(e,{$refStrategy:o?"root":"none"}),{validate:async n=>{let i=await e.safeParseAsync(n);return i.success?{success:!0,value:i.data}:{success:!1,error:i.error}}})}function hX(e,t){var r;let o=(r=t?.useReferences)!=null?r:!1;return D0(()=>u4(p0(e,{target:"draft-7",io:"input",reused:o?"ref":"inline"})),{validate:async n=>{let i=await f0(e,n);return i.success?{success:!0,value:i.data}:{success:!1,error:i.error}}})}function gX(e){return"_zod"in e}function Kd(e,t){return gX(e)?hX(e,t):fX(e,t)}async function L0({value:e,schema:t,context:r}){let o=await Yl({value:e,schema:t,context:r});if(!o.success)throw vo.wrap({value:e,cause:o.error,context:r});return o.value}async function Yl({value:e,schema:t,context:r}){let o=O0(t);try{if(o.validate==null)return{success:!0,value:e,rawValue:e};let n=await o.validate(e);return n.success?{success:!0,value:n.value,rawValue:e}:{success:!1,error:vo.wrap({value:e,cause:n.error,context:r}),rawValue:e}}catch(n){return{success:!1,error:vo.wrap({value:e,cause:n,context:r}),rawValue:e}}}async function ii({text:e,schema:t}){try{let r=$K(e);return t==null?{success:!0,value:r,rawValue:r}:await Yl({value:r,schema:t})}catch(r){return{success:!1,error:mx.isInstance(r)?r:new mx({text:e,cause:r}),rawValue:void 0}}}function qM({stream:e,schema:t}){return e.pipeThrough(new TextDecoderStream).pipeThrough(new A0).pipeThrough(new TransformStream({async transform({data:r},o){r!=="[DONE]"&&o.enqueue(await ii({text:r,schema:t}))}}))}async function wo(e){return typeof e=="function"&&(e=e()),Promise.resolve(e)}var $$e=new TextDecoder;var _={};Zr(_,{$brand:()=>j0,$input:()=>zk,$output:()=>Ck,NEVER:()=>d4,TimePrecision:()=>Nk,ZodAny:()=>k5,ZodArray:()=>I5,ZodBase64:()=>pv,ZodBase64URL:()=>mv,ZodBigInt:()=>Pc,ZodBigIntFormat:()=>gv,ZodBoolean:()=>Ic,ZodCIDRv4:()=>uv,ZodCIDRv6:()=>dv,ZodCUID:()=>nv,ZodCUID2:()=>ov,ZodCatch:()=>J5,ZodCodec:()=>Sv,ZodCustom:()=>Pp,ZodCustomStringFormat:()=>$c,ZodDate:()=>kp,ZodDefault:()=>Z5,ZodDiscriminatedUnion:()=>C5,ZodE164:()=>fv,ZodEmail:()=>ev,ZodEmoji:()=>tv,ZodEnum:()=>kc,ZodError:()=>VQ,ZodExactOptional:()=>U5,ZodFile:()=>L5,ZodFirstPartyTypeKind:()=>sS,ZodFunction:()=>oS,ZodGUID:()=>yp,ZodIPv4:()=>lv,ZodIPv6:()=>cv,ZodISODate:()=>Wg,ZodISODateTime:()=>Hg,ZodISODuration:()=>Kg,ZodISOTime:()=>Jg,ZodIntersection:()=>z5,ZodIssueCode:()=>qQ,ZodJWT:()=>hv,ZodKSUID:()=>sv,ZodLazy:()=>tS,ZodLiteral:()=>O5,ZodMAC:()=>g5,ZodMap:()=>R5,ZodNaN:()=>X5,ZodNanoID:()=>rv,ZodNever:()=>$5,ZodNonOptional:()=>_v,ZodNull:()=>w5,ZodNullable:()=>F5,ZodNumber:()=>Tc,ZodNumberFormat:()=>ks,ZodObject:()=>$p,ZodOptional:()=>wv,ZodPipe:()=>kv,ZodPrefault:()=>G5,ZodPromise:()=>nS,ZodReadonly:()=>Y5,ZodRealError:()=>Kr,ZodRecord:()=>Ip,ZodSet:()=>D5,ZodString:()=>Sc,ZodStringFormat:()=>bt,ZodSuccess:()=>W5,ZodSymbol:()=>b5,ZodTemplateLiteral:()=>eS,ZodTransform:()=>j5,ZodTuple:()=>A5,ZodType:()=>He,ZodULID:()=>iv,ZodURL:()=>_p,ZodUUID:()=>$o,ZodUndefined:()=>x5,ZodUnion:()=>Tp,ZodUnknown:()=>S5,ZodVoid:()=>T5,ZodXID:()=>av,ZodXor:()=>P5,_ZodString:()=>Qg,_default:()=>V5,_function:()=>$D,any:()=>nD,array:()=>Sp,base64:()=>UR,base64url:()=>BR,bigint:()=>YR,boolean:()=>y5,catch:()=>K5,check:()=>TD,cidrv4:()=>LR,cidrv6:()=>jR,clone:()=>Nr,codec:()=>_D,coerce:()=>lS,config:()=>qt,core:()=>li,cuid:()=>zR,cuid2:()=>ER,custom:()=>ID,date:()=>iD,decode:()=>c5,decodeAsync:()=>d5,describe:()=>PD,discriminatedUnion:()=>dD,e164:()=>FR,email:()=>xR,emoji:()=>PR,encode:()=>l5,encodeAsync:()=>u5,endsWith:()=>mc,enum:()=>bv,exactOptional:()=>B5,file:()=>yD,flattenError:()=>ip,float32:()=>WR,float64:()=>JR,formatError:()=>ap,fromJSONSchema:()=>RD,function:()=>$D,getErrorMap:()=>WQ,globalRegistry:()=>vr,gt:()=>ko,gte:()=>Rr,guid:()=>wR,hash:()=>HR,hex:()=>qR,hostname:()=>GR,httpUrl:()=>IR,includes:()=>dc,instanceof:()=>zD,int:()=>Yg,int32:()=>KR,int64:()=>QR,intersection:()=>E5,ipv4:()=>RR,ipv6:()=>OR,iso:()=>_c,json:()=>AD,jwt:()=>ZR,keyof:()=>aD,ksuid:()=>NR,lazy:()=>rS,length:()=>ws,literal:()=>vD,locales:()=>fp,looseObject:()=>cD,looseRecord:()=>mD,lowercase:()=>cc,lt:()=>_o,lte:()=>fn,mac:()=>DR,map:()=>fD,maxLength:()=>xs,maxSize:()=>pa,meta:()=>CD,mime:()=>fc,minLength:()=>si,minSize:()=>So,multipleOf:()=>da,nan:()=>wD,nanoid:()=>CR,nativeEnum:()=>gD,negative:()=>Og,never:()=>vv,nonnegative:()=>jg,nonoptional:()=>H5,nonpositive:()=>Lg,normalize:()=>hc,null:()=>_5,nullable:()=>xp,nullish:()=>bD,number:()=>v5,object:()=>sD,optional:()=>bp,overwrite:()=>Qn,parse:()=>o5,parseAsync:()=>i5,partialRecord:()=>pD,pipe:()=>wp,positive:()=>Dg,prefault:()=>q5,preprocess:()=>MD,prettifyError:()=>k4,promise:()=>SD,property:()=>Ug,readonly:()=>Q5,record:()=>N5,refine:()=>iS,regex:()=>lc,regexes:()=>Mn,registry:()=>hg,safeDecode:()=>m5,safeDecodeAsync:()=>h5,safeEncode:()=>p5,safeEncodeAsync:()=>f5,safeParse:()=>a5,safeParseAsync:()=>s5,set:()=>hD,setErrorMap:()=>HQ,size:()=>bs,slugify:()=>bc,startsWith:()=>pc,strictObject:()=>lD,string:()=>Xg,stringFormat:()=>VR,stringbool:()=>ED,success:()=>xD,superRefine:()=>aS,symbol:()=>
65tD,templateLiteral:()=>kD,toJSONSchema:()=>Vg,toLowerCase:()=>vc,toUpperCase:()=>yc,transform:()=>xv,treeifyError:()=>_4,trim:()=>gc,tuple:()=>M5,uint32:()=>XR,uint64:()=>eD,ulid:()=>AR,undefined:()=>rD,union:()=>yv,unknown:()=>_s,uppercase:()=>uc,url:()=>TR,util:()=>te,uuid:()=>_R,uuidv4:()=>kR,uuidv6:()=>SR,uuidv7:()=>$R,void:()=>oD,xid:()=>MR,xor:()=>uD});var li={};Zr(li,{$ZodAny:()=>X2,$ZodArray:()=>rk,$ZodAsyncError:()=>Yn,$ZodBase64:()=>B2,$ZodBase64URL:()=>F2,$ZodBigInt:()=>lg,$ZodBigIntFormat:()=>H2,$ZodBoolean:()=>up,$ZodCIDRv4:()=>L2,$ZodCIDRv6:()=>j2,$ZodCUID:()=>T2,$ZodCUID2:()=>I2,$ZodCatch:()=>xk,$ZodCheck:()=>kt,$ZodCheckBigIntFormat:()=>r2,$ZodCheckEndsWith:()=>f2,$ZodCheckGreaterThan:()=>tg,$ZodCheckIncludes:()=>p2,$ZodCheckLengthEquals:()=>l2,$ZodCheckLessThan:()=>eg,$ZodCheckLowerCase:()=>u2,$ZodCheckMaxLength:()=>a2,$ZodCheckMaxSize:()=>n2,$ZodCheckMimeType:()=>g2,$ZodCheckMinLength:()=>s2,$ZodCheckMinSize:()=>o2,$ZodCheckMultipleOf:()=>e2,$ZodCheckNumberFormat:()=>t2,$ZodCheckOverwrite:()=>v2,$ZodCheckProperty:()=>h2,$ZodCheckRegex:()=>c2,$ZodCheckSizeEquals:()=>i2,$ZodCheckStartsWith:()=>m2,$ZodCheckStringFormat:()=>ac,$ZodCheckUpperCase:()=>d2,$ZodCodec:()=>pp,$ZodCustom:()=>Pk,$ZodCustomStringFormat:()=>G2,$ZodDate:()=>tk,$ZodDefault:()=>gk,$ZodDiscriminatedUnion:()=>ik,$ZodE164:()=>Z2,$ZodEmail:()=>_2,$ZodEmoji:()=>S2,$ZodEncodeError:()=>aa,$ZodEnum:()=>uk,$ZodError:()=>op,$ZodExactOptional:()=>fk,$ZodFile:()=>pk,$ZodFunction:()=>$k,$ZodGUID:()=>x2,$ZodIPv4:()=>R2,$ZodIPv6:()=>D2,$ZodISODate:()=>A2,$ZodISODateTime:()=>E2,$ZodISODuration:()=>N2,$ZodISOTime:()=>M2,$ZodIntersection:()=>ak,$ZodJWT:()=>V2,$ZodKSUID:()=>z2,$ZodLazy:()=>Ik,$ZodLiteral:()=>dk,$ZodMAC:()=>O2,$ZodMap:()=>lk,$ZodNaN:()=>wk,$ZodNanoID:()=>$2,$ZodNever:()=>Q2,$ZodNonOptional:()=>yk,$ZodNull:()=>K2,$ZodNullable:()=>hk,$ZodNumber:()=>sg,$ZodNumberFormat:()=>q2,$ZodObject:()=>bN,$ZodObjectJIT:()=>nk,$ZodOptional:()=>ug,$ZodPipe:()=>_k,$ZodPrefault:()=>vk,$ZodPromise:()=>Tk,$ZodReadonly:()=>kk,$ZodRealError:()=>Jr,$ZodRecord:()=>sk,$ZodRegistry:()=>fg,$ZodSet:()=>ck,$ZodString:()=>ys,$ZodStringFormat:()=>yt,$ZodSuccess:()=>bk,$ZodSymbol:()=>W2,$ZodTemplateLiteral:()=>Sk,$ZodTransform:()=>mk,$ZodTuple:()=>cg,$ZodType:()=>Le,$ZodULID:()=>P2,$ZodURL:()=>k2,$ZodUUID:()=>w2,$ZodUndefined:()=>J2,$ZodUnion:()=>dp,$ZodUnknown:()=>Y2,$ZodVoid:()=>ek,$ZodXID:()=>C2,$ZodXor:()=>ok,$brand:()=>j0,$constructor:()=>j,$input:()=>zk,$output:()=>Ck,Doc:()=>cp,JSONSchema:()=>yR,JSONSchemaGenerator:()=>Gg,NEVER:()=>d4,TimePrecision:()=>Nk,_any:()=>t6,_array:()=>l6,_base64:()=>Ag,_base64url:()=>Mg,_bigint:()=>Wk,_boolean:()=>qk,_catch:()=>DQ,_check:()=>vR,_cidrv4:()=>zg,_cidrv6:()=>Eg,_coercedBigint:()=>Jk,_coercedBoolean:()=>Hk,_coercedDate:()=>a6,_coercedNumber:()=>Uk,_coercedString:()=>Ak,_cuid:()=>kg,_cuid2:()=>Sg,_custom:()=>u6,_date:()=>i6,_decode:()=>G0,_decodeAsync:()=>H0,_default:()=>MQ,_discriminatedUnion:()=>wQ,_e164:()=>Ng,_email:()=>gg,_emoji:()=>wg,_encode:()=>V0,_encodeAsync:()=>q0,_endsWith:()=>mc,_enum:()=>IQ,_file:()=>c6,_float32:()=>Fk,_float64:()=>Zk,_gt:()=>ko,_gte:()=>Rr,_guid:()=>hp,_includes:()=>dc,_int:()=>Bk,_int32:()=>Vk,_int64:()=>Kk,_intersection:()=>_Q,_ipv4:()=>Pg,_ipv6:()=>Cg,_isoDate:()=>Dk,_isoDateTime:()=>Rk,_isoDuration:()=>Lk,_isoTime:()=>Ok,_jwt:()=>Rg,_ksuid:()=>Ig,_lazy:()=>UQ,_length:()=>ws,_literal:()=>CQ,_lowercase:()=>cc,_lt:()=>_o,_lte:()=>fn,_mac:()=>Mk,_map:()=>$Q,_max:()=>fn,_maxLength:()=>xs,_maxSize:()=>pa,_mime:()=>fc,_min:()=>Rr,_minLength:()=>si,_minSize:()=>So,_multipleOf:()=>da,_nan:()=>s6,_nanoid:()=>_g,_nativeEnum:()=>PQ,_negative:()=>Og,_never:()=>n6,_nonnegative:()=>jg,_nonoptional:()=>NQ,_nonpositive:()=>Lg,_normalize:()=>hc,_null:()=>e6,_nullable:()=>AQ,_number:()=>jk,_optional:()=>EQ,_overwrite:()=>Qn,_parse:()=>rc,_parseAsync:()=>nc,_pipe:()=>OQ,_positive:()=>Dg,_promise:()=>BQ,_property:()=>Ug,_readonly:()=>LQ,_record:()=>SQ,_refine:()=>d6,_regex:()=>lc,_safeDecode:()=>J0,_safeDecodeAsync:()=>X0,_safeEncode:()=>W0,_safeEncodeAsync:()=>K0,_safeParse:()=>oc,_safeParseAsync:()=>ic,_set:()=>TQ,_size:()=>bs,_slugify:()=>bc,_startsWith:()=>pc,_string:()=>Ek,_stringFormat:()=>xc,_stringbool:()=>h6,_success:()=>RQ,_superRefine:()=>p6,_symbol:()=>
vendor: 109,765 bytes, lines 65-102
65Yk,_templateLiteral:()=>jQ,_toLowerCase:()=>vc,_toUpperCase:()=>yc,_transform:()=>zQ,_trim:()=>gc,_tuple:()=>kQ,_uint32:()=>Gk,_uint64:()=>Xk,_ulid:()=>$g,_undefined:()=>Qk,_union:()=>bQ,_unknown:()=>r6,_uppercase:()=>uc,_url:()=>gp,_uuid:()=>vg,_uuidv4:()=>yg,_uuidv6:()=>bg,_uuidv7:()=>xg,_void:()=>o6,_xid:()=>Tg,_xor:()=>xQ,clone:()=>Nr,config:()=>qt,createStandardJSONSchemaMethod:()=>wc,createToJSONSchemaMethod:()=>g6,decode:()=>VX,decodeAsync:()=>qX,describe:()=>m6,encode:()=>ZX,encodeAsync:()=>GX,extractDefs:()=>fa,finalize:()=>ha,flattenError:()=>ip,formatError:()=>ap,globalConfig:()=>Xd,globalRegistry:()=>vr,initializeContext:()=>ma,isValidBase64:()=>U2,isValidBase64URL:()=>hN,isValidJWT:()=>gN,locales:()=>fp,meta:()=>f6,parse:()=>F0,parseAsync:()=>Z0,prettifyError:()=>k4,process:()=>ft,regexes:()=>Mn,registry:()=>hg,safeDecode:()=>WX,safeDecodeAsync:()=>KX,safeEncode:()=>HX,safeEncodeAsync:()=>JX,safeParse:()=>S4,safeParseAsync:()=>$4,toDotPath:()=>XM,toJSONSchema:()=>Vg,treeifyError:()=>_4,util:()=>te,version:()=>y2});var d4=Object.freeze({status:"aborted"});function j(e,t,r){function o(l,c){if(l._zod||Object.defineProperty(l,"_zod",{value:{def:c,constr:a,traits:new Set},enumerable:!1}),l._zod.traits.has(e))return;l._zod.traits.add(e),t(l,c);let d=a.prototype,p=Object.keys(d);for(let m=0;m<p.length;m++){let h=p[m];h in l||(l[h]=d[h].bind(l))}}let n=r?.Parent??Object;class i extends n{}Object.defineProperty(i,"name",{value:e});function a(l){var c;let d=r?.Parent?new i:this;o(d,l),(c=d._zod).deferred??(c.deferred=[]);for(let p of d._zod.deferred)p();return d}return Object.defineProperty(a,"init",{value:o}),Object.defineProperty(a,Symbol.hasInstance,{value:l=>r?.Parent&&l instanceof r.Parent?!0:l?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var j0=Symbol("zod_brand"),Yn=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},aa=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},Xd={};function qt(e){return e&&Object.assign(Xd,e),Xd}var te={};Zr(te,{BIGINT_FORMAT_RANGES:()=>w4,Class:()=>m4,NUMBER_FORMAT_RANGES:()=>x4,aborted:()=>ua,allowsEval:()=>g4,assert:()=>wX,assertEqual:()=>vX,assertIs:()=>bX,assertNever:()=>xX,assertNotEqual:()=>yX,assignProp:()=>la,base64ToUint8Array:()=>WM,base64urlToUint8Array:()=>LX,cached:()=>ec,captureStackTrace:()=>B0,cleanEnum:()=>OX,cleanRegex:()=>ep,clone:()=>Nr,cloneDef:()=>kX,createTransparentProxy:()=>CX,defineLazy:()=>Qe,esc:()=>U0,escapeRegex:()=>An,extend:()=>AX,finalizeIssue:()=>Wr,floatSafeRemainder:()=>f4,getElementAtPath:()=>SX,getEnumValues:()=>Qd,getLengthableOrigin:()=>np,getParsedType:()=>PX,getSizableOrigin:()=>rp,hexToUint8Array:()=>UX,isObject:()=>gs,isPlainObject:()=>ca,issue:()=>tc,joinValues:()=>q,jsonStringifyReplacer:()=>Ql,merge:()=>NX,mergeDefs:()=>ai,normalizeParams:()=>ae,nullish:()=>sa,numKeys:()=>IX,objectClone:()=>_X,omit:()=>EX,optionalKeys:()=>b4,parsedType:()=>ee,partial:()=>RX,pick:()=>zX,prefixIssues:()=>mn,primitiveTypes:()=>y4,promiseAllObject:()=>$X,propertyKeyTypes:()=>tp,randomString:()=>TX,required:()=>DX,safeExtend:()=>MX,shallowClone:()=>v4,slugify:()=>h4,stringifyPrimitive:()=>Y,uint8ArrayToBase64:()=>JM,uint8ArrayToBase64url:()=>jX,uint8ArrayToHex:()=>BX,unwrapMessage:()=>Yd});function vX(e){return e}function yX(e){return e}function bX(e){}function xX(e){throw new Error("Unexpected value in exhaustive check")}function wX(e){}function Qd(e){let t=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,n])=>t.indexOf(+o)===-1).map(([o,n])=>n)}function q(e,t="|"){return e.map(r=>Y(r)).join(t)}function Ql(e,t){return typeof t=="bigint"?t.toString():t}function ec(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function sa(e){return e==null}function ep(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function f4(e,t){let r=(e.toString().split(".")[1]||"").length,o=t.toString(),n=(o.split(".")[1]||"").length;if(n===0&&/\d?e-\d?/.test(o)){let c=o.match(/\d?e-(\d?)/);c?.[1]&&(n=Number.parseInt(c[1]))}let i=r>n?r:n,a=Number.parseInt(e.toFixed(i).replace(".","")),l=Number.parseInt(t.toFixed(i).replace(".",""));return a%l/10**i}var HM=Symbol("evaluating");function Qe(e,t,r){let o;Object.defineProperty(e,t,{get(){if(o!==HM)return o===void 0&&(o=HM,o=r()),o},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function _X(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function la(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function ai(...e){let t={};for(let r of e){let o=Object.getOwnPropertyDescriptors(r);Object.assign(t,o)}return Object.defineProperties({},t)}function kX(e){return ai(e._zod.def)}function SX(e,t){return t?t.reduce((r,o)=>r?.[o],e):e}function $X(e){let t=Object.keys(e),r=t.map(o=>e[o]);return Promise.all(r).then(o=>{let n={};for(let i=0;i<t.length;i++)n[t[i]]=o[i];return n})}function TX(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let o=0;o<e;o++)r+=t[Math.floor(Math.random()*t.length)];return r}function U0(e){return JSON.stringify(e)}function h4(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var B0="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function gs(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var g4=ec(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function ca(e){if(gs(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(gs(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function v4(e){return ca(e)?{...e}:Array.isArray(e)?[...e]:e}function IX(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}var PX=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":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"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 new Error(`Unknown data type: ${t}`)}},tp=new Set(["string","number","symbol"]),y4=new Set(["string","number","bigint","boolean","symbol","undefined"]);function An(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Nr(e,t,r){let o=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(o._zod.parent=e),o}function ae(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function CX(e){let t;return new Proxy({},{get(r,o,n){return t??(t=e()),Reflect.get(t,o,n)},set(r,o,n,i){return t??(t=e()),Reflect.set(t,o,n,i)},has(r,o){return t??(t=e()),Reflect.has(t,o)},deleteProperty(r,o){return t??(t=e()),Reflect.deleteProperty(t,o)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,o){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,o)},defineProperty(r,o,n){return t??(t=e()),Reflect.defineProperty(t,o,n)}})}function Y(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function b4(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var x4={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]},w4={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function zX(e,t){let r=e._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i=ai(e._zod.def,{get shape(){let a={};for(let l in t){if(!(l in r.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&(a[l]=r.shape[l])}return la(this,"shape",a),a},checks:[]});return Nr(e,i)}function EX(e,t){let r=e._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=ai(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let l in t){if(!(l in r.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&delete a[l]}return la(this,"shape",a),a},checks:[]});return Nr(e,i)}function AX(e,t){if(!ca(t))throw new Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let i=e._zod.def.shape;for(let a in t)if(Object.getOwnPropertyDescriptor(i,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=ai(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return la(this,"shape",i),i}});return Nr(e,n)}function MX(e,t){if(!ca(t))throw new Error("Invalid input to safeExtend: expected a plain object");let r=ai(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return la(this,"shape",o),o}});return Nr(e,r)}function NX(e,t){let r=ai(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t._zod.def.shape};return la(this,"shape",o),o},get catchall(){return t._zod.def.catchall},checks:[]});return Nr(e,r)}function RX(e,t,r){let n=t._zod.def.checks;if(n&&n.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let a=ai(t._zod.def,{get shape(){let l=t._zod.def.shape,c={...l};if(r)for(let d in r){if(!(d in l))throw new Error(`Unrecognized key: "${d}"`);r[d]&&(c[d]=e?new e({type:"optional",innerType:l[d]}):l[d])}else for(let d in l)c[d]=e?new e({type:"optional",innerType:l[d]}):l[d];return la(this,"shape",c),c},checks:[]});return Nr(t,a)}function DX(e,t,r){let o=ai(t._zod.def,{get shape(){let n=t._zod.def.shape,i={...n};if(r)for(let a in r){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(i[a]=new e({type:"nonoptional",innerType:n[a]}))}else for(let a in n)i[a]=new e({type:"nonoptional",innerType:n[a]});return la(this,"shape",i),i}});return Nr(t,o)}function ua(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function mn(e,t){return t.map(r=>{var o;return(o=r).path??(o.path=[]),r.path.unshift(e),r})}function Yd(e){return typeof e=="string"?e:e?.message}function Wr(e,t,r){let o={...e,path:e.path??[]};if(!e.message){let n=Yd(e.inst?._zod.def?.error?.(e))??Yd(t?.error?.(e))??Yd(r.customError?.(e))??Yd(r.localeError?.(e))??"Invalid input";o.message=n}return delete o.inst,delete o.continue,t?.reportInput||delete o.input,o}function rp(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function np(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function ee(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let r=e;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return t}function tc(...e){let[t,r,o]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:o}:{...t}}function OX(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function WM(e){let t=atob(e),r=new Uint8Array(t.length);for(let o=0;o<t.length;o++)r[o]=t.charCodeAt(o);return r}function JM(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function LX(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return WM(t+r)}function jX(e){return JM(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function UX(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let r=new Uint8Array(t.length/2);for(let o=0;o<t.length;o+=2)r[o/2]=Number.parseInt(t.slice(o,o+2),16);return r}function BX(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var m4=class{constructor(...t){}};var KM=(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,Ql,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},op=j("$ZodError",KM),Jr=j("$ZodError",KM,{Parent:Error});function ip(e,t=r=>r.message){let r={},o=[];for(let n of e.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(t(n))):o.push(t(n));return{formErrors:o,fieldErrors:r}}function ap(e,t=r=>r.message){let r={_errors:[]},o=n=>{for(let i of n.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(a=>o({issues:a}));else if(i.code==="invalid_key")o({issues:i.issues});else if(i.code==="invalid_element")o({issues:i.issues});else if(i.path.length===0)r._errors.push(t(i));else{let a=r,l=0;for(;l<i.path.length;){let c=i.path[l];l===i.path.length-1?(a[c]=a[c]||{_errors:[]},a[c]._errors.push(t(i))):a[c]=a[c]||{_errors:[]},a=a[c],l++}}};return o(e),r}function _4(e,t=r=>r.message){let r={errors:[]},o=(n,i=[])=>{var a,l;for(let c of n.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(d=>o({issues:d},c.path));else if(c.code==="invalid_key")o({issues:c.issues},c.path);else if(c.code==="invalid_element")o({issues:c.issues},c.path);else{let d=[...i,...c.path];if(d.length===0){r.errors.push(t(c));continue}let p=r,m=0;for(;m<d.length;){let h=d[m],g=m===d.length-1;typeof h=="string"?(p.properties??(p.properties={}),(a=p.properties)[h]??(a[h]={errors:[]}),p=p.properties[h]):(p.items??(p.items=[]),(l=p.items)[h]??(l[h]={errors:[]}),p=p.items[h]),g&&p.errors.push(t(c)),m++}}};return o(e),r}function XM(e){let t=[],r=e.map(o=>typeof o=="object"?o.key:o);for(let o of r)typeof o=="number"?t.push(`[${o}]`):typeof o=="symbol"?t.push(`[${JSON.stringify(String(o))}]`):/[^\w$]/.test(o)?t.push(`[${JSON.stringify(o)}]`):(t.length&&t.push("."),t.push(o));return t.join("")}function k4(e){let t=[],r=[...e.issues].sort((o,n)=>(o.path??[]).length-(n.path??[]).length);for(let o of r)t.push(`\u2716 ${o.message}`),o.path?.length&&t.push(`  \u2192 at ${XM(o.path)}`);return t.join(`
66`)}var rc=e=>(t,r,o,n)=>{let i=o?Object.assign(o,{async:!1}):{async:!1},a=t._zod.run({value:r,issues:[]},i);if(a instanceof Promise)throw new Yn;if(a.issues.length){let l=new(n?.Err??e)(a.issues.map(c=>Wr(c,i,qt())));throw B0(l,n?.callee),l}return a.value},F0=rc(Jr),nc=e=>async(t,r,o,n)=>{let i=o?Object.assign(o,{async:!0}):{async:!0},a=t._zod.run({value:r,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){let l=new(n?.Err??e)(a.issues.map(c=>Wr(c,i,qt())));throw B0(l,n?.callee),l}return a.value},Z0=nc(Jr),oc=e=>(t,r,o)=>{let n=o?{...o,async:!1}:{async:!1},i=t._zod.run({value:r,issues:[]},n);if(i instanceof Promise)throw new Yn;return i.issues.length?{success:!1,error:new(e??op)(i.issues.map(a=>Wr(a,n,qt())))}:{success:!0,data:i.value}},S4=oc(Jr),ic=e=>async(t,r,o)=>{let n=o?Object.assign(o,{async:!0}):{async:!0},i=t._zod.run({value:r,issues:[]},n);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(a=>Wr(a,n,qt())))}:{success:!0,data:i.value}},$4=ic(Jr),V0=e=>(t,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return rc(e)(t,r,n)},ZX=V0(Jr),G0=e=>(t,r,o)=>rc(e)(t,r,o),VX=G0(Jr),q0=e=>async(t,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return nc(e)(t,r,n)},GX=q0(Jr),H0=e=>async(t,r,o)=>nc(e)(t,r,o),qX=H0(Jr),W0=e=>(t,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return oc(e)(t,r,n)},HX=W0(Jr),J0=e=>(t,r,o)=>oc(e)(t,r,o),WX=J0(Jr),K0=e=>async(t,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return ic(e)(t,r,n)},JX=K0(Jr),X0=e=>async(t,r,o)=>ic(e)(t,r,o),KX=X0(Jr);var Mn={};Zr(Mn,{base64:()=>B4,base64url:()=>Y0,bigint:()=>H4,boolean:()=>J4,browserEmail:()=>oY,cidrv4:()=>j4,cidrv6:()=>U4,cuid:()=>T4,cuid2:()=>I4,date:()=>Z4,datetime:()=>G4,domain:()=>sY,duration:()=>A4,e164:()=>F4,email:()=>N4,emoji:()=>R4,extendedDuration:()=>XX,guid:()=>M4,hex:()=>lY,hostname:()=>aY,html5Email:()=>tY,idnEmail:()=>nY,integer:()=>W4,ipv4:()=>D4,ipv6:()=>O4,ksuid:()=>z4,lowercase:()=>Y4,mac:()=>L4,md5_base64:()=>uY,md5_base64url:()=>dY,md5_hex:()=>cY,nanoid:()=>E4,null:()=>K4,number:()=>Q0,rfc5322Email:()=>rY,sha1_base64:()=>mY,sha1_base64url:()=>fY,sha1_hex:()=>pY,sha256_base64:()=>gY,sha256_base64url:()=>vY,sha256_hex:()=>hY,sha384_base64:()=>bY,sha384_base64url:()=>xY,sha384_hex:()=>yY,sha512_base64:()=>_Y,sha512_base64url:()=>kY,sha512_hex:()=>wY,string:()=>q4,time:()=>V4,ulid:()=>P4,undefined:()=>X4,unicodeEmail:()=>YM,uppercase:()=>Q4,uuid:()=>vs,uuid4:()=>YX,uuid6:()=>QX,uuid7:()=>eY,xid:()=>C4});var T4=/^[cC][^\s-]{8,}$/,I4=/^[0-9a-z]+$/,P4=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,C4=/^[0-9a-vA-V]{20}$/,z4=/^[A-Za-z0-9]{27}$/,E4=/^[a-zA-Z0-9_-]{21}$/,A4=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,XX=/^[-+]?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)?)??$/,M4=/^([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})$/,vs=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)$/,YX=vs(4),QX=vs(6),eY=vs(7),N4=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,tY=/^[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])?)*$/,rY=/^(([^<>()\[\]\\.,;:\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,}))$/,YM=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,nY=YM,oY=/^[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])?)*$/,iY="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function R4(){return new RegExp(iY,"u")}var D4=/^(?:(?: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])$/,O4=/^(([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}|:))$/,L4=e=>{let t=An(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},j4=/^((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])$/,U4=/^(([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])$/,B4=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Y0=/^[A-Za-z0-9_-]*$/,aY=/^(?=.{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])?)*\.?$/,sY=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,F4=/^\+[1-9]\d{6,14}$/,QM="(?:(?:\\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])))",Z4=new RegExp(`^${QM}$`);function eN(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function V4(e){return new RegExp(`^${eN(e)}$`)}function G4(e){let t=eN({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let o=`${t}(?:${r.join("|")})`;return new RegExp(`^${QM}T(?:${o})$`)}var q4=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},H4=/^-?\d+n?$/,W4=/^-?\d+$/,Q0=/^-?\d+(?:\.\d+)?$/,J4=/^(?:true|false)$/i,K4=/^null$/i;var X4=/^undefined$/i;var Y4=/^[^A-Z]*$/,Q4=/^[^a-z]*$/,lY=/^[0-9a-fA-F]*$/;function sp(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function lp(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var cY=/^[0-9a-fA-F]{32}$/,uY=sp(22,"=="),dY=lp(22),pY=/^[0-9a-fA-F]{40}$/,mY=sp(27,"="),fY=lp(27),hY=/^[0-9a-fA-F]{64}$/,gY=sp(43,"="),vY=lp(43),yY=/^[0-9a-fA-F]{96}$/,bY=sp(64,""),xY=lp(64),wY=/^[0-9a-fA-F]{128}$/,_Y=sp(86,"=="),kY=lp(86);var kt=j("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),rN={number:"number",bigint:"bigint",object:"date"},eg=j("$ZodCheckLessThan",(e,t)=>{kt.init(e,t);let r=rN[typeof t.value];e._zod.onattach.push(o=>{let n=o._zod.bag,i=(t.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value<=t.value:o.value<t.value)||o.issues.push({origin:r,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),tg=j("$ZodCheckGreaterThan",(e,t)=>{kt.init(e,t);let r=rN[typeof t.value];e._zod.onattach.push(o=>{let n=o._zod.bag,i=(t.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value>=t.value:o.value>t.value)||o.issues.push({origin:r,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),e2=j("$ZodCheckMultipleOf",(e,t)=>{kt.init(e,t),e._zod.onattach.push(r=>{var o;(o=r._zod.bag).multipleOf??(o.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.");(typeof r.value=="bigint"?r.value%t.value===BigInt(0):f4(r.value,t.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),t2=j("$ZodCheckNumberFormat",(e,t)=>{kt.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),o=r?"int":"number",[n,i]=x4[t.format];e._zod.onattach.push(a=>{let l=a._zod.bag;l.format=t.format,l.minimum=n,l.maximum=i,r&&(l.pattern=W4)}),e._zod.check=a=>{let l=a.value;if(r){if(!Number.isInteger(l)){a.issues.push({expected:o,format:t.format,code:"invalid_type",continue:!1,input:l,inst:e});return}if(!Number.isSafeInteger(l)){l>0?a.issues.push({input:l,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort}):a.issues.push({input:l,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort});return}}l<n&&a.issues.push({origin:"number",input:l,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),l>i&&a.issues.push({origin:"number",input:l,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),r2=j("$ZodCheckBigIntFormat",(e,t)=>{kt.init(e,t);let[r,o]=w4[t.format];e._zod.onattach.push(n=>{let i=n._zod.bag;i.format=t.format,i.minimum=r,i.maximum=o}),e._zod.check=n=>{let i=n.value;i<r&&n.issues.push({origin:"bigint",input:i,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),i>o&&n.issues.push({origin:"bigint",input:i,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),n2=j("$ZodCheckMaxSize",(e,t)=>{var r;kt.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!sa(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{let n=o.value;n.size<=t.maximum||o.issues.push({origin:rp(n),code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),o2=j("$ZodCheckMinSize",(e,t)=>{var r;kt.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!sa(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{let n=o.value;n.size>=t.minimum||o.issues.push({origin:rp(n),code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),i2=j("$ZodCheckSizeEquals",(e,t)=>{var r;kt.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!sa(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=o=>{let n=o.value,i=n.size;if(i===t.size)return;let a=i>t.size;o.issues.push({origin:rp(n),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),a2=j("$ZodCheckMaxLength",(e,t)=>{var r;kt.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!sa(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{let n=o.value;if(n.length<=t.maximum)return;let a=np(n);o.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),s2=j("$ZodCheckMinLength",(e,t)=>{var r;kt.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!sa(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{let n=o.value;if(n.length>=t.minimum)return;let a=np(n);o.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),l2=j("$ZodCheckLengthEquals",(e,t)=>{var r;kt.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!sa(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=o=>{let n=o.value,i=n.length;if(i===t.length)return;let a=np(n),l=i>t.length;o.issues.push({origin:a,...l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),ac=j("$ZodCheckStringFormat",(e,t)=>{var r,o;kt.init(e,t),e._zod.onattach.push(n=>{let i=n._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(o=e._zod).check??(o.check=()=>{})}),c2=j("$ZodCheckRegex",(e,t)=>{ac.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})}}),u2=j("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Y4),ac.init(e,t)}),d2=j("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Q4),ac.init(e,t)}),p2=j("$ZodCheckIncludes",(e,t)=>{kt.init(e,t);let r=An(t.includes),o=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=o,e._zod.onattach.push(n=>{let i=n._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),m2=j("$ZodCheckStartsWith",(e,t)=>{kt.init(e,t);let r=new RegExp(`^${An(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(o=>{let n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=o=>{o.value.startsWith(t.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:o.value,inst:e,continue:!t.abort})}}),f2=j("$ZodCheckEndsWith",(e,t)=>{kt.init(e,t);let r=new RegExp(`.*${An(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(o=>{let n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=o=>{o.value.endsWith(t.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:o.value,inst:e,continue:!t.abort})}});function tN(e,t,r){e.issues.length&&t.issues.push(...mn(r,e.issues))}var h2=j("$ZodCheckProperty",(e,t)=>{kt.init(e,t),e._zod.check=r=>{let o=t.schema._zod.run({value:r.value[t.property],issues:[]},{});if(o instanceof Promise)return o.then(n=>tN(n,r,t.property));tN(o,r,t.property)}}),g2=j("$ZodCheckMimeType",(e,t)=>{kt.init(e,t);let r=new Set(t.mime);e._zod.onattach.push(o=>{o._zod.bag.mime=t.mime}),e._zod.check=o=>{r.has(o.value.type)||o.issues.push({code:"invalid_value",values:t.mime,input:o.value.type,inst:e,continue:!t.abort})}}),v2=j("$ZodCheckOverwrite",(e,t)=>{kt.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});var cp=class{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let o=t.split(`
67`).filter(a=>a),n=Math.min(...o.map(a=>a.length-a.trimStart().length)),i=o.map(a=>a.slice(n)).map(a=>" ".repeat(this.indent*2)+a);for(let a of i)this.content.push(a)}compile(){let t=Function,r=this?.args,n=[...(this?.content??[""]).map(i=>`  ${i}`)];return new t(...r,n.join(`
68`))}};var y2={major:4,minor:3,patch:6};var Le=j("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=y2;let o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(let n of o)for(let i of n._zod.onattach)i(e);if(o.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let n=(a,l,c)=>{let d=ua(a),p;for(let m of l){if(m._zod.def.when){if(!m._zod.def.when(a))continue}else if(d)continue;let h=a.issues.length,g=m._zod.check(a);if(g instanceof Promise&&c?.async===!1)throw new Yn;if(p||g instanceof Promise)p=(p??Promise.resolve()).then(async()=>{await g,a.issues.length!==h&&(d||(d=ua(a,h)))});else{if(a.issues.length===h)continue;d||(d=ua(a,h))}}return p?p.then(()=>a):a},i=(a,l,c)=>{if(ua(a))return a.aborted=!0,a;let d=n(l,o,c);if(d instanceof Promise){if(c.async===!1)throw new Yn;return d.then(p=>e._zod.parse(p,c))}return e._zod.parse(d,c)};e._zod.run=(a,l)=>{if(l.skipChecks)return e._zod.parse(a,l);if(l.direction==="backward"){let d=e._zod.parse({value:a.value,issues:[]},{...l,skipChecks:!0});return d instanceof Promise?d.then(p=>i(p,a,l)):i(d,a,l)}let c=e._zod.parse(a,l);if(c instanceof Promise){if(l.async===!1)throw new Yn;return c.then(d=>n(d,o,l))}return n(c,o,l)}}Qe(e,"~standard",()=>({validate:n=>{try{let i=S4(e,n);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return $4(e,n).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}))}),ys=j("$ZodString",(e,t)=>{Le.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??q4(e._zod.bag),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),yt=j("$ZodStringFormat",(e,t)=>{ac.init(e,t),ys.init(e,t)}),x2=j("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=M4),yt.init(e,t)}),w2=j("$ZodUUID",(e,t)=>{if(t.version){let o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(o===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=vs(o))}else t.pattern??(t.pattern=vs());yt.init(e,t)}),_2=j("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=N4),yt.init(e,t)}),k2=j("$ZodURL",(e,t)=>{yt.init(e,t),e._zod.check=r=>{try{let o=r.value.trim(),n=new URL(o);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(n.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(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=n.href:r.value=o;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),S2=j("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=R4()),yt.init(e,t)}),$2=j("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=E4),yt.init(e,t)}),T2=j("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=T4),yt.init(e,t)}),I2=j("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=I4),yt.init(e,t)}),P2=j("$ZodULID",(e,t)=>{t.pattern??(t.pattern=P4),yt.init(e,t)}),C2=j("$ZodXID",(e,t)=>{t.pattern??(t.pattern=C4),yt.init(e,t)}),z2=j("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=z4),yt.init(e,t)}),E2=j("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=G4(t)),yt.init(e,t)}),A2=j("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Z4),yt.init(e,t)}),M2=j("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=V4(t)),yt.init(e,t)}),N2=j("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=A4),yt.init(e,t)}),R2=j("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=D4),yt.init(e,t),e._zod.bag.format="ipv4"}),D2=j("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=O4),yt.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),O2=j("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=L4(t.delimiter)),yt.init(e,t),e._zod.bag.format="mac"}),L2=j("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=j4),yt.init(e,t)}),j2=j("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=U4),yt.init(e,t),e._zod.check=r=>{let o=r.value.split("/");try{if(o.length!==2)throw new Error;let[n,i]=o;if(!i)throw new Error;let a=Number(i);if(`${a}`!==i)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${n}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function U2(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var B2=j("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=B4),yt.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{U2(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function hN(e){if(!Y0.test(e))return!1;let t=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return U2(r)}var F2=j("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Y0),yt.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{hN(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),Z2=j("$ZodE164",(e,t)=>{t.pattern??(t.pattern=F4),yt.init(e,t)});function gN(e,t=null){try{let r=e.split(".");if(r.length!==3)return!1;let[o]=r;if(!o)return!1;let n=JSON.parse(atob(o));return!("typ"in n&&n?.typ!=="JWT"||!n.alg||t&&(!("alg"in n)||n.alg!==t))}catch{return!1}}var V2=j("$ZodJWT",(e,t)=>{yt.init(e,t),e._zod.check=r=>{gN(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),G2=j("$ZodCustomStringFormat",(e,t)=>{yt.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})}}),sg=j("$ZodNumber",(e,t)=>{Le.init(e,t),e._zod.pattern=e._zod.bag.pattern??Q0,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}let n=r.value;if(typeof n=="number"&&!Number.isNaN(n)&&Number.isFinite(n))return r;let i=typeof n=="number"?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:e,...i?{received:i}:{}}),r}}),q2=j("$ZodNumberFormat",(e,t)=>{t2.init(e,t),sg.init(e,t)}),up=j("$ZodBoolean",(e,t)=>{Le.init(e,t),e._zod.pattern=J4,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=!!r.value}catch{}let n=r.value;return typeof n=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:e}),r}}),lg=j("$ZodBigInt",(e,t)=>{Le.init(e,t),e._zod.pattern=H4,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}}),H2=j("$ZodBigIntFormat",(e,t)=>{r2.init(e,t),lg.init(e,t)}),W2=j("$ZodSymbol",(e,t)=>{Le.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return typeof n=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:e}),r}}),J2=j("$ZodUndefined",(e,t)=>{Le.init(e,t),e._zod.pattern=X4,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(r,o)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:e}),r}}),K2=j("$ZodNull",(e,t)=>{Le.init(e,t),e._zod.pattern=K4,e._zod.values=new Set([null]),e._zod.parse=(r,o)=>{let n=r.value;return n===null||r.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),r}}),X2=j("$ZodAny",(e,t)=>{Le.init(e,t),e._zod.parse=r=>r}),Y2=j("$ZodUnknown",(e,t)=>{Le.init(e,t),e._zod.parse=r=>r}),Q2=j("$ZodNever",(e,t)=>{Le.init(e,t),e._zod.parse=(r,o)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),ek=j("$ZodVoid",(e,t)=>{Le.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"void",code:"invalid_type",input:n,inst:e}),r}}),tk=j("$ZodDate",(e,t)=>{Le.init(e,t),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}let n=r.value,i=n instanceof Date;return i&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...i?{received:"Invalid Date"}:{},inst:e}),r}});function oN(e,t,r){e.issues.length&&t.issues.push(...mn(r,e.issues)),t.value[r]=e.value}var rk=j("$ZodArray",(e,t)=>{Le.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:e}),r;r.value=Array(n.length);let i=[];for(let a=0;a<n.length;a++){let l=n[a],c=t.element._zod.run({value:l,issues:[]},o);c instanceof Promise?i.push(c.then(d=>oN(d,r,a))):oN(c,r,a)}return i.length?Promise.all(i).then(()=>r):r}});function ag(e,t,r,o,n){if(e.issues.length){if(n&&!(r in o))return;t.issues.push(...mn(r,e.issues))}e.value===void 0?r in o&&(t.value[r]=void 0):t.value[r]=e.value}function vN(e){let t=Object.keys(e.shape);for(let o of t)if(!e.shape?.[o]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${o}": expected a Zod schema`);let r=b4(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function yN(e,t,r,o,n,i){let a=[],l=n.keySet,c=n.catchall._zod,d=c.def.type,p=c.optout==="optional";for(let m in t){if(l.has(m))continue;if(d==="never"){a.push(m);continue}let h=c.run({value:t[m],issues:[]},o);h instanceof Promise?e.push(h.then(g=>ag(g,r,m,t,p))):ag(h,r,m,t,p)}return a.length&&r.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:i}),e.length?Promise.all(e).then(()=>r):r}var bN=j("$ZodObject",(e,t)=>{if(Le.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let l=t.shape;Object.defineProperty(t,"shape",{get:()=>{let c={...l};return Object.defineProperty(t,"shape",{value:c}),c}})}let o=ec(()=>vN(t));Qe(e._zod,"propValues",()=>{let l=t.shape,c={};for(let d in l){let p=l[d]._zod;if(p.values){c[d]??(c[d]=new Set);for(let m of p.values)c[d].add(m)}}return c});let n=gs,i=t.catchall,a;e._zod.parse=(l,c)=>{a??(a=o.value);let d=l.value;if(!n(d))return l.issues.push({expected:"object",code:"invalid_type",input:d,inst:e}),l;l.value={};let p=[],m=a.shape;for(let h of a.keys){let g=m[h],w=g._zod.optout==="optional",$=g._zod.run({value:d[h],issues:[]},c);$ instanceof Promise?p.push($.then(T=>ag(T,l,h,d,w))):ag($,l,h,d,w)}return i?yN(p,d,l,c,o.value,e):p.length?Promise.all(p).then(()=>l):l}}),nk=j("$ZodObjectJIT",(e,t)=>{bN.init(e,t);let r=e._zod.parse,o=ec(()=>vN(t)),n=h=>{let g=new cp(["shape","payload","ctx"]),w=o.value,$=k=>{let M=U0(k);return`shape[${M}]._zod.run({ value: input[${M}], issues: [] }, ctx)`};g.write("const input = payload.value;");let T=Object.create(null),z=0;for(let k of w.keys)T[k]=`key_${z++}`;g.write("const newResult = {};");for(let k of w.keys){let M=T[k],E=U0(k),F=h[k]?._zod?.optout==="optional";g.write(`const ${M} = ${$(k)};`),F?g.write(`
69        if (${M}.issues.length) {
70          if (${E} in input) {
71            payload.issues = payload.issues.concat(${M}.issues.map(iss => ({
72              ...iss,
73              path: iss.path ? [${E}, ...iss.path] : [${E}]
74            })));
75          }
76        }
77        
78        if (${M}.value === undefined) {
79          if (${E} in input) {
80            newResult[${E}] = undefined;
81          }
82        } else {
83          newResult[${E}] = ${M}.value;
84        }
85        
86      `):g.write(`
87        if (${M}.issues.length) {
88          payload.issues = payload.issues.concat(${M}.issues.map(iss => ({
89            ...iss,
90            path: iss.path ? [${E}, ...iss.path] : [${E}]
91          })));
92        }
93        
94        if (${M}.value === undefined) {
95          if (${E} in input) {
96            newResult[${E}] = undefined;
97          }
98        } else {
99          newResult[${E}] = ${M}.value;
100        }
101        
102      `)}g.write("payload.value = newResult;"),g.write("return payload;");let P=g.compile();return(k,M)=>P(h,k,M)},i,a=gs,l=!Xd.jitless,d=l&&g4.value,p=t.catchall,m;e._zod.parse=(h,g)=>{m??(m=o.value);let w=h.value;return a(w)?l&&d&&g?.async===!1&&g.jitless!==!0?(i||(i=n(t.shape)),h=i(h,g),p?yN([],w,h,g,m,e):h):r(h,g):(h.issues.push({expected:"object",code:"invalid_type",input:w,inst:e}),h)}});function iN(e,t,r,o){for(let i of e)if(i.issues.length===0)return t.value=i.value,t;let n=e.filter(i=>!ua(i));return n.length===1?(t.value=n[0].value,n[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(i=>i.issues.map(a=>Wr(a,o,qt())))}),t)}var dp=j("$ZodUnion",(e,t)=>{Le.init(e,t),Qe(e._zod,"optin",()=>t.options.some(n=>n._zod.optin==="optional")?"optional":void 0),Qe(e._zod,"optout",()=>t.options.some(n=>n._zod.optout==="optional")?"optional":void 0),Qe(e._zod,"values",()=>{if(t.options.every(n=>n._zod.values))return new Set(t.options.flatMap(n=>Array.from(n._zod.values)))}),Qe(e._zod,"pattern",()=>{if(t.options.every(n=>n._zod.pattern)){let n=t.options.map(i=>i._zod.pattern);return new RegExp(`^(${n.map(i=>ep(i.source)).join("|")})$`)}});let r=t.options.length===1,o=t.options[0]._zod.run;e._zod.parse=(n,i)=>{if(r)return o(n,i);let a=!1,l=[];for(let c of t.options){let d=c._zod.run({value:n.value,issues:[]},i);if(d instanceof Promise)l.push(d),a=!0;else{if(d.issues.length===0)return d;l.push(d)}}return a?Promise.all(l).then(c=>iN(c,n,e,i)):iN(l,n,e,i)}});function aN(e,t,r,o){let n=e.filter(i=>i.issues.length===0);return n.length===1?(t.value=n[0].value,t):(n.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(i=>i.issues.map(a=>Wr(a,o,qt())))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:!1}),t)}var ok=j("$ZodXor",(e,t)=>{dp.init(e,t),t.inclusive=!1;let r=t.options.length===1,o=t.options[0]._zod.run;e._zod.parse=(n,i)=>{if(r)return o(n,i);let a=!1,l=[];for(let c of t.options){let d=c._zod.run({value:n.value,issues:[]},i);d instanceof Promise?(l.push(d),a=!0):l.push(d)}return a?Promise.all(l).then(c=>aN(c,n,e,i)):aN(l,n,e,i)}}),ik=j("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,dp.init(e,t);let r=e._zod.parse;Qe(e._zod,"propValues",()=>{let n={};for(let i of t.options){let a=i._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(let[l,c]of Object.entries(a)){n[l]||(n[l]=new Set);for(let d of c)n[l].add(d)}}return n});let o=ec(()=>{let n=t.options,i=new Map;for(let a of n){let l=a._zod.propValues?.[t.discriminator];if(!l||l.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(let c of l){if(i.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);i.set(c,a)}}return i});e._zod.parse=(n,i)=>{let a=n.value;if(!gs(a))return n.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),n;let l=o.value.get(a?.[t.discriminator]);return l?l._zod.run(n,i):t.unionFallback?r(n,i):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:a,path:[t.discriminator],inst:e}),n)}}),ak=j("$ZodIntersection",(e,t)=>{Le.init(e,t),e._zod.parse=(r,o)=>{let n=r.value,i=t.left._zod.run({value:n,issues:[]},o),a=t.right._zod.run({value:n,issues:[]},o);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([c,d])=>sN(r,c,d)):sN(r,i,a)}});function b2(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(ca(e)&&ca(t)){let r=Object.keys(t),o=Object.keys(e).filter(i=>r.indexOf(i)!==-1),n={...e,...t};for(let i of o){let a=b2(e[i],t[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};n[i]=a.data}return{valid:!0,data:n}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let o=0;o<e.length;o++){let n=e[o],i=t[o],a=b2(n,i);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};r.push(a.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function sN(e,t,r){let o=new Map,n;for(let l of t.issues)if(l.code==="unrecognized_keys"){n??(n=l);for(let c of l.keys)o.has(c)||o.set(c,{}),o.get(c).l=!0}else e.issues.push(l);for(let l of r.issues)if(l.code==="unrecognized_keys")for(let c of l.keys)o.has(c)||o.set(c,{}),o.get(c).r=!0;else e.issues.push(l);let i=[...o].filter(([,l])=>l.l&&l.r).map(([l])=>l);if(i.length&&n&&e.issues.push({...n,keys:i}),ua(e))return e;let a=b2(t.value,r.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}var cg=j("$ZodTuple",(e,t)=>{Le.init(e,t);let r=t.items;e._zod.parse=(o,n)=>{let i=o.value;if(!Array.isArray(i))return o.issues.push({input:i,inst:e,expected:"tuple",code:"invalid_type"}),o;o.value=[];let a=[],l=[...r].reverse().findIndex(p=>p._zod.optin!=="optional"),c=l===-1?0:r.length-l;if(!t.rest){let p=i.length>r.length,m=i.length<c-1;if(p||m)return o.issues.push({...p?{code:"too_big",maximum:r.length,inclusive:!0}:{code:"too_small",minimum:r.length},input:i,inst:e,origin:"array"}),o}let d=-1;for(let p of r){if(d++,d>=i.length&&d>=c)continue;let m=p._zod.run({value:i[d],issues:[]},n);m instanceof Promise?a.push(m.then(h=>rg(h,o,d))):rg(m,o,d)}if(t.rest){let p=i.slice(r.length);for(let m of p){d++;let h=t.rest._zod.run({value:m,issues:[]},n);h instanceof Promise?a.push(h.then(g=>rg(g,o,d))):rg(h,o,d)}}return a.length?Promise.all(a).then(()=>o):o}});function rg(e,t,r){e.issues.length&&t.issues.push(...mn(r,e.issues)),t.value[r]=e.value}var sk=j("$ZodRecord",(e,t)=>{Le.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!ca(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:e}),r;let i=[],a=t.keyType._zod.values;if(a){r.value={};let l=new Set;for(let d of a)if(typeof d=="string"||typeof d=="number"||typeof d=="symbol"){l.add(typeof d=="number"?d.toString():d);let p=t.valueType._zod.run({value:n[d],issues:[]},o);p instanceof Promise?i.push(p.then(m=>{m.issues.length&&r.issues.push(...mn(d,m.issues)),r.value[d]=m.value})):(p.issues.length&&r.issues.push(...mn(d,p.issues)),r.value[d]=p.value)}let c;for(let d in n)l.has(d)||(c=c??[],c.push(d));c&&c.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:c})}else{r.value={};for(let l of Reflect.ownKeys(n)){if(l==="__proto__")continue;let c=t.keyType._zod.run({value:l,issues:[]},o);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof l=="string"&&Q0.test(l)&&c.issues.length){let m=t.keyType._zod.run({value:Number(l),issues:[]},o);if(m instanceof Promise)throw new Error("Async schemas not supported in object keys currently");m.issues.length===0&&(c=m)}if(c.issues.length){t.mode==="loose"?r.value[l]=n[l]:r.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(m=>Wr(m,o,qt())),input:l,path:[l],inst:e});continue}let p=t.valueType._zod.run({value:n[l],issues:[]},o);p instanceof Promise?i.push(p.then(m=>{m.issues.length&&r.issues.push(...mn(l,m.issues)),r.value[c.value]=m.value})):(p.issues.length&&r.issues.push(...mn(l,p.issues)),r.value[c.value]=p.value)}}return i.length?Promise.all(i).then(()=>r):r}}),lk=j("$ZodMap",(e,t)=>{Le.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!(n instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:n,inst:e}),r;let i=[];r.value=new Map;for(let[a,l]of n){let c=t.keyType._zod.run({value:a,issues:[]},o),d=t.valueType._zod.run({value:l,issues:[]},o);c instanceof Promise||d instanceof Promise?i.push(Promise.all([c,d]).then(([p,m])=>{lN(p,m,r,a,n,e,o)})):lN(c,d,r,a,n,e,o)}return i.length?Promise.all(i).then(()=>r):r}});function lN(e,t,r,o,n,i,a){e.issues.length&&(tp.has(typeof o)?r.issues.push(...mn(o,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:i,issues:e.issues.map(l=>Wr(l,a,qt()))})),t.issues.length&&(tp.has(typeof o)?r.issues.push(...mn(o,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:i,key:o,issues:t.issues.map(l=>Wr(l,a,qt()))})),r.value.set(e.value,t.value)}var ck=j("$ZodSet",(e,t)=>{Le.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!(n instanceof Set))return r.issues.push({input:n,inst:e,expected:"set",code:"invalid_type"}),r;let i=[];r.value=new Set;for(let a of n){let l=t.valueType._zod.run({value:a,issues:[]},o);l instanceof Promise?i.push(l.then(c=>cN(c,r))):cN(l,r)}return i.length?Promise.all(i).then(()=>r):r}});function cN(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var uk=j("$ZodEnum",(e,t)=>{Le.init(e,t);let r=Qd(t.entries),o=new Set(r);e._zod.values=o,e._zod.pattern=new RegExp(`^(${r.filter(n=>tp.has(typeof n)).map(n=>typeof n=="string"?An(n):n.toString()).join("|")})$`),e._zod.parse=(n,i)=>{let a=n.value;return o.has(a)||n.issues.push({code:"invalid_value",values:r,input:a,inst:e}),n}}),dk=j("$ZodLiteral",(e,t)=>{if(Le.init(e,t),t.values.length===0)throw new 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(o=>typeof o=="string"?An(o):o?An(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,n)=>{let i=o.value;return r.has(i)||o.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),o}}),pk=j("$ZodFile",(e,t)=>{Le.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return n instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:n,inst:e}),r}}),mk=j("$ZodTransform",(e,t)=>{Le.init(e,t),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new aa(e.constructor.name);let n=t.transform(r.value,r);if(o.async)return(n instanceof Promise?n:Promise.resolve(n)).then(a=>(r.value=a,r));if(n instanceof Promise)throw new Yn;return r.value=n,r}});function uN(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var ug=j("$ZodOptional",(e,t)=>{Le.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Qe(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Qe(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${ep(r.source)})?$`):void 0}),e._zod.parse=(r,o)=>{if(t.innerType._zod.optin==="optional"){let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>uN(i,r.value)):uN(n,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,o)}}),fk=j("$ZodExactOptional",(e,t)=>{ug.init(e,t),Qe(e._zod,"values",()=>t.innerType._zod.values),Qe(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,o)=>t.innerType._zod.run(r,o)}),hk=j("$ZodNullable",(e,t)=>{Le.init(e,t),Qe(e._zod,"optin",()=>t.innerType._zod.optin),Qe(e._zod,"optout",()=>t.innerType._zod.optout),Qe(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${ep(r.source)}|null)$`):void 0}),Qe(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,o)=>r.value===null?r:t.innerType._zod.run(r,o)}),gk=j("$ZodDefault",(e,t)=>{Le.init(e,t),e._zod.optin="optional",Qe(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);if(r.value===void 0)return r.value=t.defaultValue,r;let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>dN(i,t)):dN(n,t)}});function dN(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var vk=j("$ZodPrefault",(e,t)=>{Le.init(e,t),e._zod.optin="optional",Qe(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>(o.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,o))}),yk=j("$ZodNonOptional",(e,t)=>{Le.init(e,t),Qe(e._zod,"values",()=>{let r=t.innerType._zod.values;return r?new Set([...r].filter(o=>o!==void 0)):void 0}),e._zod.parse=(r,o)=>{let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>pN(i,e)):pN(n,e)}});function pN(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var bk=j("$ZodSuccess",(e,t)=>{Le.init(e,t),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new aa("ZodSuccess");let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>(r.value=i.issues.length===0,r)):(r.value=n.issues.length===0,r)}}),xk=j("$ZodCatch",(e,t)=>{Le.init(e,t),Qe(e._zod,"optin",()=>t.innerType._zod.optin),Qe(e._zod,"optout",()=>t.innerType._zod.optout),Qe(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>(r.value=i.value,i.issues.length&&(r.value=t.catchValue({...r,error:{issues:i.issues.map(a=>Wr(a,o,qt()))},input:r.value}),r.issues=[]),r)):(r.value=n.value,n.issues.length&&(r.value=t.catchValue({...r,error:{issues:n.issues.map(i=>Wr(i,o,qt()))},input:r.value}),r.issues=[]),r)}}),wk=j("$ZodNaN",(e,t)=>{Le.init(e,t),e._zod.parse=(r,o)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),_k=j("$ZodPipe",(e,t)=>{Le.init(e,t),Qe(e._zod,"values",()=>t.in._zod.values),Qe(e._zod,"optin",()=>t.in._zod.optin),Qe(e._zod,"optout",()=>t.out._zod.optout),Qe(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,o)=>{if(o.direction==="backward"){let i=t.out._zod.run(r,o);return i instanceof Promise?i.then(a=>ng(a,t.in,o)):ng(i,t.in,o)}let n=t.in._zod.run(r,o);return n instanceof Promise?n.then(i=>ng(i,t.out,o)):ng(n,t.out,o)}});function ng(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}var pp=j("$ZodCodec",(e,t)=>{Le.init(e,t),Qe(e._zod,"values",()=>t.in._zod.values),Qe(e._zod,"optin",()=>t.in._zod.optin),Qe(e._zod,"optout",()=>t.out._zod.optout),Qe(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,o)=>{if((o.direction||"forward")==="forward"){let i=t.in._zod.run(r,o);return i instanceof Promise?i.then(a=>og(a,t,o)):og(i,t,o)}else{let i=t.out._zod.run(r,o);return i instanceof Promise?i.then(a=>og(a,t,o)):og(i,t,o)}}});function og(e,t,r){if(e.issues.length)return e.aborted=!0,e;if((r.direction||"forward")==="forward"){let n=t.transform(e.value,e);return n instanceof Promise?n.then(i=>ig(e,i,t.out,r)):ig(e,n,t.out,r)}else{let n=t.reverseTransform(e.value,e);return n instanceof Promise?n.then(i=>ig(e,i,t.in,r)):ig(e,n,t.in,r)}}function ig(e,t,r,o){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},o)}var kk=j("$ZodReadonly",(e,t)=>{Le.init(e,t),Qe(e._zod,"propValues",()=>t.innerType._zod.propValues),Qe(e._zod,"values",()=>t.innerType._zod.values),Qe(e._zod,"optin",()=>t.innerType?._zod?.optin),Qe(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(mN):mN(n)}});function mN(e){return e.value=Object.freeze(e.value),e}var Sk=j("$ZodTemplateLiteral",(e,t)=>{Le.init(e,t);let r=[];for(let o of t.parts)if(typeof o=="object"&&o!==null){if(!o._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...o._zod.traits].shift()}`);let n=o._zod.pattern instanceof RegExp?o._zod.pattern.source:o._zod.pattern;if(!n)throw new Error(`Invalid template literal part: ${o._zod.traits}`);let i=n.startsWith("^")?1:0,a=n.endsWith("$")?n.length-1:n.length;r.push(n.slice(i,a))}else if(o===null||y4.has(typeof o))r.push(An(`${o}`));else throw new Error(`Invalid template literal part: ${o}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(o,n)=>typeof o.value!="string"?(o.issues.push({input:o.value,inst:e,expected:"string",code:"invalid_type"}),o):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(o.value)||o.issues.push({input:o.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),o)}),$k=j("$ZodFunction",(e,t)=>(Le.init(e,t),e._def=t,e._zod.def=t,e.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return function(...o){let n=e._def.input?F0(e._def.input,o):o,i=Reflect.apply(r,this,n);return e._def.output?F0(e._def.output,i):i}},e.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return async function(...o){let n=e._def.input?await Z0(e._def.input,o):o,i=await Reflect.apply(r,this,n);return e._def.output?await Z0(e._def.output,i):i}},e._zod.parse=(r,o)=>typeof r.value!="function"?(r.issues.push({code:"invalid_type",expected:"function",input:r.value,inst:e}),r):(e._def.output&&e._def.output._zod.def.type==="promise"?r.value=e.implementAsync(r.value):r.value=e.implement(r.value),r),e.input=(...r)=>{let o=e.constructor;return Array.isArray(r[0])?new o({type:"function",input:new cg({type:"tuple",items:r[0],rest:r[1]}),output:e._def.output}):new o({type:"function",input:r[0],output:e._def.output})},e.output=r=>{let o=e.constructor;return new o({type:"function",input:e._def.input,output:r})},e)),Tk=j("$ZodPromise",(e,t)=>{Le.init(e,t),e._zod.parse=(r,o)=>Promise.resolve(r.value).then(n=>t.innerType._zod.run({value:n,issues:[]},o))}),Ik=j("$ZodLazy",(e,t)=>{Le.init(e,t),Qe(e._zod,"innerType",()=>t.getter()),Qe(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),Qe(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),Qe(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),Qe(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(r,o)=>e._zod.innerType._zod.run(r,o)}),Pk=j("$ZodCustom",(e,t)=>{kt.init(e,t),Le.init(e,t),e._zod.parse=(r,o)=>r,e._zod.check=r=>{let o=r.value,n=t.fn(o);if(n instanceof Promise)return n.then(i=>fN(i,r,o,e));fN(n,r,o,e)}});function fN(e,t,r,o){if(!e){let n={code:"custom",input:r,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(n.params=o._zod.def.params),t.issues.push(tc(n))}}var fp={};Zr(fp,{ar:()=>xN,az:()=>wN,be:()=>kN,bg:()=>SN,ca:()=>$N,cs:()=>TN,da:()=>IN,de:()=>PN,en:()=>dg,eo:()=>CN,es:()=>zN,fa:()=>EN,fi:()=>AN,fr:()=>MN,frCA:()=>NN,he:()=>RN,hu:()=>DN,hy:()=>LN,id:()=>jN,is:()=>UN,it:()=>BN,ja:()=>FN,ka:()=>ZN,kh:()=>VN,km:()=>pg,ko:()=>GN,lt:()=>HN,mk:()=>WN,ms:()=>JN,nl:()=>KN,no:()=>XN,ota:()=>YN,pl:()=>eR,ps:()=>QN,pt:()=>tR,ru:()=>nR,sl:()=>oR,sv:()=>iR,ta:()=>aR,th:()=>sR,tr:()=>lR,ua:()=>cR,uk:()=>mg,ur:()=>uR,uz:()=>dR,vi:()=>pR,yo:()=>hR,zhCN:()=>mR,zhTW:()=>fR});var $Y=()=>{let e={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function t(n){return e[n]??null}let r={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 instanceof ${n.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${l}`:`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${i}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${l}`}case"invalid_value":return n.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${Y(n.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${q(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${n.minimum.toString()} ${a.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${n.prefix}"`:i.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${i.suffix}"`:i.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${i.includes}"`:i.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${i.pattern}`:`${r[i.format]??n.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${n.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${n.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${n.keys.length>1?"\u0629":""}: ${q(n.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${n.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${n.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function xN(){return{localeError:$Y()}}var TY=()=>{let e={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function t(n){return e[n]??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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${n.expected}, daxil olan ${l}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${i}, daxil olan ${l}`}case"invalid_value":return n.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${Y(n.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${q(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${i}${n.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${i}${n.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${i.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:i.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${i.suffix}" il\u0259 bitm\u0259lidir`:i.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${i.includes}" daxil olmal\u0131d\u0131r`:i.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${i.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${r[i.format]??n.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${n.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${n.keys.length>1?"lar":""}: ${q(n.keys,", ")}`;case"invalid_key":return`${n.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${n.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function wN(){return{localeError:TY()}}function _N(e,t,r,o){let n=Math.abs(e),i=n%10,a=n%100;return a>=11&&a<=19?o:i===1?t:i>=2&&i<=4?r:o}var IY=()=>{let e={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function t(n){return e[n]??null}let r={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"},o={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${n.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${l}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${i}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${l}`}case"invalid_value":return n.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${Y(n.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${q(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);if(a){let l=Number(n.maximum),c=_N(l,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${i}${n.maximum.toString()} ${c}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);if(a){let l=Number(n.minimum),c=_N(l,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${i}${n.minimum.toString()} ${c}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${i.includes}"`:i.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${r[i.format]??n.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${n.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${q(n.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${n.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${n.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function kN(){return{localeError:IY()}}var PY=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},file:{unit:"\u0431\u0430\u0439\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"}};function t(n){return e[n]??null}let r={regex:"\u0432\u0445\u043E\u0434",email:"\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0436\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",base64url:"base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",json_string:"JSON \u043D\u0438\u0437",e164:"E.164 \u043D\u043E\u043C\u0435\u0440",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${n.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${l}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${i}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${l}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${Y(n.values[0])}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${q(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${n.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${n.minimum.toString()} ${a.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;if(i.format==="starts_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u0432\u0430 \u0441 "${i.prefix}"`;if(i.format==="ends_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u0432\u044A\u0440\u0448\u0432\u0430 \u0441 "${i.suffix}"`;if(i.format==="includes")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0432\u0430 "${i.includes}"`;if(i.format==="regex")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u0432\u043F\u0430\u0434\u0430 \u0441 ${i.pattern}`;let a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return i.format==="emoji"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="datetime"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="date"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),i.format==="time"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="duration"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${a} ${r[i.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${n.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u043E\u0432\u0435":""}: ${q(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";case"invalid_element":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${n.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function SN(){return{localeError:PY()}}var CY=()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(n){return e[n]??null}let r={regex:"entrada",email:"adre\xE7a electr\xF2nica",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\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${n.expected}, s'ha rebut ${l}`:`Tipus inv\xE0lid: s'esperava ${i}, s'ha rebut ${l}`}case"invalid_value":return n.values.length===1?`Valor inv\xE0lid: s'esperava ${Y(n.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${q(n.values," o ")}`;case"too_big":{let i=n.inclusive?"com a m\xE0xim":"menys de",a=t(n.origin);return a?`Massa gran: s'esperava que ${n.origin??"el valor"} contingu\xE9s ${i} ${n.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${n.origin??"el valor"} fos ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?"com a m\xEDnim":"m\xE9s de",a=t(n.origin);return a?`Massa petit: s'esperava que ${n.origin} contingu\xE9s ${i} ${n.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${n.origin} fos ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${i.prefix}"`:i.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${i.suffix}"`:i.format==="includes"?`Format inv\xE0lid: ha d'incloure "${i.includes}"`:i.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${i.pattern}`:`Format inv\xE0lid per a ${r[i.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${n.divisor}`;case"unrecognized_keys":return`Clau${n.keys.length>1?"s":""} no reconeguda${n.keys.length>1?"s":""}: ${q(n.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${n.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${n.origin}`;default:return"Entrada inv\xE0lida"}}};function $N(){return{localeError:CY()}}var zY=()=>{let e={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function t(n){return e[n]??null}let r={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 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 \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"},o={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${n.expected}, obdr\u017Eeno ${l}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${i}, obdr\u017Eeno ${l}`}case"invalid_value":return n.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${Y(n.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${q(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${i}${n.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${i}${n.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${i.prefix}"`:i.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${i.suffix}"`:i.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${i.includes}"`:i.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${i.pattern}`:`Neplatn\xFD form\xE1t ${r[i.format]??n.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${n.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${q(n.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${n.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${n.origin}`;default:return"Neplatn\xFD vstup"}}};function TN(){return{localeError:zY()}}var EY=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(n){return e[n]??null}let r={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\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",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"},o={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ugyldigt input: forventede instanceof ${n.expected}, fik ${l}`:`Ugyldigt input: forventede ${i}, fik ${l}`}case"invalid_value":return n.values.length===1?`Ugyldig v\xE6rdi: forventede ${Y(n.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${q(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin),l=o[n.origin]??n.origin;return a?`For stor: forventede ${l??"value"} ${a.verb} ${i} ${n.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${l??"value"} havde ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin),l=o[n.origin]??n.origin;return a?`For lille: forventede ${l} ${a.verb} ${i} ${n.minimum.toString()} ${a.unit}`:`For lille: forventede ${l} havde ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ugyldig streng: skal starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: skal ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: skal indeholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${r[i.format]??n.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${q(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${n.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${n.origin}`;default:return"Ugyldigt input"}}};function IN(){return{localeError:EY()}}var AY=()=>{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(n){return e[n]??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"},o={nan:"NaN",number:"Zahl",array:"Array"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${n.expected}, erhalten ${l}`:`Ung\xFCltige Eingabe: erwartet ${i}, erhalten ${l}`}case"invalid_value":return n.values.length===1?`Ung\xFCltige Eingabe: erwartet ${Y(n.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${q(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${i}${n.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${i}${n.maximum.toString()} ist`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Zu klein: erwartet, dass ${n.origin} ${i}${n.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${n.origin} ${i}${n.minimum.toString()} ist`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ung\xFCltiger String: muss mit "${i.prefix}" beginnen`:i.format==="ends_with"?`Ung\xFCltiger String: muss mit "${i.suffix}" enden`:i.format==="includes"?`Ung\xFCltiger String: muss "${i.includes}" enthalten`:i.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${i.pattern} entsprechen`:`Ung\xFCltig: ${r[i.format]??n.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${n.divisor} sein`;case"unrecognized_keys":return`${n.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${q(n.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${n.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${n.origin}`;default:return"Ung\xFCltige Eingabe"}}};function PN(){return{localeError:AY()}}var MY=()=>{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"},map:{unit:"entries",verb:"to have"}};function t(n){return e[n]??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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),l=o[a]??a;return`Invalid input: expected ${i}, received ${l}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${Y(n.values[0])}`:`Invalid option: expected one of ${q(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Too big: expected ${n.origin??"value"} to have ${i}${n.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${n.origin??"value"} to be ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Too small: expected ${n.origin} to have ${i}${n.minimum.toString()} ${a.unit}`:`Too small: expected ${n.origin} to be ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Invalid string: must start with "${i.prefix}"`:i.format==="ends_with"?`Invalid string: must end with "${i.suffix}"`:i.format==="includes"?`Invalid string: must include "${i.includes}"`:i.format==="regex"?`Invalid string: must match pattern ${i.pattern}`:`Invalid ${r[i.format]??n.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${n.divisor}`;case"unrecognized_keys":return`Unrecognized key${n.keys.length>1?"s":""}: ${q(n.keys,", ")}`;case"invalid_key":return`Invalid key in ${n.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${n.origin}`;default:return"Invalid input"}}};function dg(){return{localeError:MY()}}var NY=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(n){return e[n]??null}let r={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",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\u016Dro",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"},o={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${n.expected}, ricevi\u011Dis ${l}`:`Nevalida enigo: atendi\u011Dis ${i}, ricevi\u011Dis ${l}`}case"invalid_value":return n.values.length===1?`Nevalida enigo: atendi\u011Dis ${Y(n.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${q(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${i}${n.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Tro malgranda: atendi\u011Dis ke ${n.origin} havu ${i}${n.minimum.toString()} ${a.unit}`:`Tro malgranda: atendi\u011Dis ke ${n.origin} estu ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${i.prefix}"`:i.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${i.suffix}"`:i.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${i.includes}"`:i.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${i.pattern}`:`Nevalida ${r[i.format]??n.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${n.divisor}`;case"unrecognized_keys":return`Nekonata${n.keys.length>1?"j":""} \u015Dlosilo${n.keys.length>1?"j":""}: ${q(n.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${n.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${n.origin}`;default:return"Nevalida enigo"}}};function CN(){return{localeError:NY()}}var RY=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(n){return e[n]??null}let r={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",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\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN",string:"texto",number:"n\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xFAmero grande",symbol:"s\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\xF3n",union:"uni\xF3n",literal:"literal",promise:"promesa",void:"vac\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${n.expected}, recibido ${l}`:`Entrada inv\xE1lida: se esperaba ${i}, recibido ${l}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: se esperaba ${Y(n.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${q(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin),l=o[n.origin]??n.origin;return a?`Demasiado grande: se esperaba que ${l??"valor"} tuviera ${i}${n.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${l??"valor"} fuera ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin),l=o[n.origin]??n.origin;return a?`Demasiado peque\xF1o: se esperaba que ${l} tuviera ${i}${n.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${l} fuera ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${i.prefix}"`:i.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${i.suffix}"`:i.format==="includes"?`Cadena inv\xE1lida: debe incluir "${i.includes}"`:i.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${i.pattern}`:`Inv\xE1lido ${r[i.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Llave${n.keys.length>1?"s":""} desconocida${n.keys.length>1?"s":""}: ${q(n.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${o[n.origin]??n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${o[n.origin]??n.origin}`;default:return"Entrada inv\xE1lida"}}};function zN(){return{localeError:RY()}}var DY=()=>{let e={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function t(n){return e[n]??null}let r={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${n.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${l} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`:`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${i} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${l} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return n.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${Y(n.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${q(n.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:i.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:i.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${i.includes}" \u0628\u0627\u0634\u062F`:i.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${i.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${r[i.format]??n.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${n.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${n.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${q(n.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${n.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${n.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function EN(){return{localeError:DY()}}var OY=()=>{let e={string:{unit:"merkki\xE4",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\xE4iv\xE4m\xE4\xE4r\xE4n"}};function t(n){return e[n]??null}let r={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",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\xE4iv\xE4m\xE4\xE4r\xE4",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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Virheellinen tyyppi: odotettiin instanceof ${n.expected}, oli ${l}`:`Virheellinen tyyppi: odotettiin ${i}, oli ${l}`}case"invalid_value":return n.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${Y(n.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${q(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${i}${n.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${i}${n.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${i.prefix}"`:i.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${i.suffix}"`:i.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${i.includes}"`:i.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${i.pattern}`:`Virheellinen ${r[i.format]??n.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${n.divisor} monikerta`;case"unrecognized_keys":return`${n.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${q(n.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\xF6te"}}};function AN(){return{localeError:OY()}}var LY=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(n){return e[n]??null}let r={regex:"entr\xE9e",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\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},o={nan:"NaN",number:"nombre",array:"tableau"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : instanceof ${n.expected} attendu, ${l} re\xE7u`:`Entr\xE9e invalide : ${i} attendu, ${l} re\xE7u`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : ${Y(n.values[0])}
102 attendu`:`Option invalide : une valeur parmi ${q(n.values,"|")} attendue`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Trop grand : ${n.origin??"valeur"} doit ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${n.origin??"valeur"} doit \xEAtre ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Trop petit : ${n.origin} doit ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`Trop petit : ${n.origin} doit \xEAtre ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${i.pattern}`:`${r[i.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${q(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}};function MN(){return{localeError:LY()}}var jY=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(n){return e[n]??null}let r={regex:"entr\xE9e",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\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : attendu instanceof ${n.expected}, re\xE7u ${l}`:`Entr\xE9e invalide : attendu ${i}, re\xE7u ${l}`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : attendu ${Y(n.values[0])}
102`:`Option invalide : attendu l'une des valeurs suivantes ${q(n.values,"|")}`;case"too_big":{let i=n.inclusive?"\u2264":"<",a=t(n.origin);return a?`Trop grand : attendu que ${n.origin??"la valeur"} ait ${i}${n.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${n.origin??"la valeur"} soit ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?"\u2265":">",a=t(n.origin);return a?`Trop petit : attendu que ${n.origin} ait ${i}${n.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${n.origin} soit ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${i.pattern}`:`${r[i.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${q(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}};function NN(){return{localeError:jY()}}var UY=()=>{let e={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},t={string:{unit:"\u05EA\u05D5\u05D5\u05D9\u05DD",shortLabel:"\u05E7\u05E6\u05E8",longLabel:"\u05D0\u05E8\u05D5\u05DA"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},number:{unit:"",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"}},r=d=>d?e[d]:void 0,o=d=>{let p=r(d);return p?p.label:d??e.unknown.label},n=d=>`\u05D4${o(d)}`,i=d=>(r(d)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",a=d=>d?t[d]??null:null,l={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",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:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}},c={nan:"NaN"};return d=>
vendor: 33,588 bytes, line 102
102{switch(d.code){case"invalid_type":{let p=d.expected,m=c[p??""]??o(p),h=ee(d.input),g=c[h]??e[h]?.label??h;return/^[A-Z]/.test(d.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${d.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${g}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${m}, \u05D4\u05EA\u05E7\u05D1\u05DC ${g}`}case"invalid_value":{if(d.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${Y(d.values[0])}`;let p=d.values.map(g=>Y(g));if(d.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${p[0]} \u05D0\u05D5 ${p[1]}`;let m=p[p.length-1];return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${p.slice(0,-1).join(", ")} \u05D0\u05D5 ${m}`}case"too_big":{let p=a(d.origin),m=n(d.origin??"value");if(d.origin==="string")return`${p?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${m} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${d.maximum.toString()} ${p?.unit??""} ${d.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(d.origin==="number"){let w=d.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${d.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${d.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${m} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${w}`}if(d.origin==="array"||d.origin==="set"){let w=d.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",$=d.inclusive?`${d.maximum} ${p?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${d.maximum} ${p?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${m} ${w} \u05DC\u05D4\u05DB\u05D9\u05DC ${$}`.trim()}let h=d.inclusive?"<=":"<",g=i(d.origin??"value");return p?.unit?`${p.longLabel} \u05DE\u05D3\u05D9: ${m} ${g} ${h}${d.maximum.toString()} ${p.unit}`:`${p?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${m} ${g} ${h}${d.maximum.toString()}`}case"too_small":{let p=a(d.origin),m=n(d.origin??"value");if(d.origin==="string")return`${p?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${m} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${d.minimum.toString()} ${p?.unit??""} ${d.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(d.origin==="number"){let w=d.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${d.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${d.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${m} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${w}`}if(d.origin==="array"||d.origin==="set"){let w=d.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(d.minimum===1&&d.inclusive){let T=(d.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${m} ${w} \u05DC\u05D4\u05DB\u05D9\u05DC ${T}`}let $=d.inclusive?`${d.minimum} ${p?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${d.minimum} ${p?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${m} ${w} \u05DC\u05D4\u05DB\u05D9\u05DC ${$}`.trim()}let h=d.inclusive?">=":">",g=i(d.origin??"value");return p?.unit?`${p.shortLabel} \u05DE\u05D3\u05D9: ${m} ${g} ${h}${d.minimum.toString()} ${p.unit}`:`${p?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${m} ${g} ${h}${d.minimum.toString()}`}case"invalid_format":{let p=d;if(p.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${p.prefix}"`;if(p.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${p.suffix}"`;if(p.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${p.includes}"`;if(p.format==="regex")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${p.pattern}`;let m=l[p.format],h=m?.label??p.format,w=(m?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${h} \u05DC\u05D0 ${w}`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${d.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${d.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${d.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${q(d.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${n(d.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function RN(){return{localeError:UY()}}var BY=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(n){return e[n]??null}let r={regex:"bemenet",email:"email c\xEDm",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\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"},o={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${n.expected}, a kapott \xE9rt\xE9k ${l}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${i}, a kapott \xE9rt\xE9k ${l}`}case"invalid_value":return n.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${Y(n.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${q(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`T\xFAl nagy: ${n.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${i}${n.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${n.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} m\xE9rete t\xFAl kicsi ${i}${n.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} t\xFAl kicsi ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\xC9rv\xE9nytelen string: "${i.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:i.format==="ends_with"?`\xC9rv\xE9nytelen string: "${i.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:i.format==="includes"?`\xC9rv\xE9nytelen string: "${i.includes}" \xE9rt\xE9ket kell tartalmaznia`:i.format==="regex"?`\xC9rv\xE9nytelen string: ${i.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${r[i.format]??n.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${n.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${n.keys.length>1?"s":""}: ${q(n.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${n.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${n.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function DN(){return{localeError:BY()}}function ON(e,t,r){return Math.abs(e)===1?t:r}function sc(e){if(!e)return"";let t=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],r=e[e.length-1];return e+(t.includes(r)?"\u0576":"\u0568")}var FY=()=>{let e={string:{unit:{one:"\u0576\u0577\u0561\u0576",many:"\u0576\u0577\u0561\u0576\u0576\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},file:{unit:{one:"\u0562\u0561\u0575\u0569",many:"\u0562\u0561\u0575\u0569\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},array:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},set:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"}};function t(n){return e[n]??null}let r={regex:"\u0574\u0578\u0582\u057F\u0584",email:"\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",url:"URL",emoji:"\u0567\u0574\u0578\u057B\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",date:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",time:"ISO \u056A\u0561\u0574",duration:"ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",ipv4:"IPv4 \u0570\u0561\u057D\u0581\u0565",ipv6:"IPv6 \u0570\u0561\u057D\u0581\u0565",cidrv4:"IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",cidrv6:"IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",base64:"base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",base64url:"base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",json_string:"JSON \u057F\u0578\u0572",e164:"E.164 \u0570\u0561\u0574\u0561\u0580",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},o={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${n.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${l}`:`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${i}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${l}`}case"invalid_value":return n.values.length===1?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${Y(n.values[1])}`:`\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${q(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);if(a){let l=Number(n.maximum),c=ON(l,a.unit.one,a.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${sc(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${n.maximum.toString()} ${c}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${sc(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);if(a){let l=Number(n.minimum),c=ON(l,a.unit.one,a.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${sc(n.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${n.minimum.toString()} ${c}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${sc(n.origin)} \u056C\u056B\u0576\u056B ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${i.prefix}"-\u0578\u057E`:i.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${i.suffix}"-\u0578\u057E`:i.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${i.includes}"`:i.format==="regex"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0570\u0561\u0574\u0561\u057A\u0561\u057F\u0561\u057D\u056D\u0561\u0576\u056B ${i.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${r[i.format]??n.format}`}case"not_multiple_of":return`\u054D\u056D\u0561\u056C \u0569\u056B\u057E\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0562\u0561\u0566\u0574\u0561\u057A\u0561\u057F\u056B\u056F \u056C\u056B\u0576\u056B ${n.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${n.keys.length>1?"\u0576\u0565\u0580":""}. ${q(n.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${sc(n.origin)}-\u0578\u0582\u0574`;case"invalid_union":return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574";case"invalid_element":return`\u054D\u056D\u0561\u056C \u0561\u0580\u056A\u0565\u0584 ${sc(n.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function LN(){return{localeError:FY()}}var ZY=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(n){return e[n]??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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Input tidak valid: diharapkan instanceof ${n.expected}, diterima ${l}`:`Input tidak valid: diharapkan ${i}, diterima ${l}`}case"invalid_value":return n.values.length===1?`Input tidak valid: diharapkan ${Y(n.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${q(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Terlalu besar: diharapkan ${n.origin??"value"} memiliki ${i}${n.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${n.origin??"value"} menjadi ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Terlalu kecil: diharapkan ${n.origin} memiliki ${i}${n.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${n.origin} menjadi ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`String tidak valid: harus dimulai dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak valid: harus berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak valid: harus menyertakan "${i.includes}"`:i.format==="regex"?`String tidak valid: harus sesuai pola ${i.pattern}`:`${r[i.format]??n.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${n.keys.length>1?"s":""}: ${q(n.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${n.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${n.origin}`;default:return"Input tidak valid"}}};function jN(){return{localeError:ZY()}}var VY=()=>{let e={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"}};function t(n){return e[n]??null}let r={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",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\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",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\xF6lugildi",jwt:"JWT",template_literal:"gildi"},o={nan:"NaN",number:"n\xFAmer",array:"fylki"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${l} \xFEar sem \xE1 a\xF0 vera instanceof ${n.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${l} \xFEar sem \xE1 a\xF0 vera ${i}`}case"invalid_value":return n.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${Y(n.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${q(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} hafi ${i}${n.maximum.toString()} ${a.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} s\xE9 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} hafi ${i}${n.minimum.toString()} ${a.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} s\xE9 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${i.prefix}"`:i.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${i.suffix}"`:i.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${i.includes}"`:i.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${i.pattern}`:`Rangt ${r[i.format]??n.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${n.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${n.keys.length>1?"ir lyklar":"ur lykill"}: ${q(n.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${n.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${n.origin}`;default:return"Rangt gildi"}}};function UN(){return{localeError:VY()}}var GY=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(n){return e[n]??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"},o={nan:"NaN",number:"numero",array:"vettore"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Input non valido: atteso instanceof ${n.expected}, ricevuto ${l}`:`Input non valido: atteso ${i}, ricevuto ${l}`}case"invalid_value":return n.values.length===1?`Input non valido: atteso ${Y(n.values[0])}`:`Opzione non valida: atteso uno tra ${q(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Troppo grande: ${n.origin??"valore"} deve avere ${i}${n.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${n.origin??"valore"} deve essere ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Troppo piccolo: ${n.origin} deve avere ${i}${n.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${n.origin} deve essere ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Stringa non valida: deve iniziare con "${i.prefix}"`:i.format==="ends_with"?`Stringa non valida: deve terminare con "${i.suffix}"`:i.format==="includes"?`Stringa non valida: deve includere "${i.includes}"`:i.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${i.pattern}`:`Invalid ${r[i.format]??n.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${n.divisor}`;case"unrecognized_keys":return`Chiav${n.keys.length>1?"i":"e"} non riconosciut${n.keys.length>1?"e":"a"}: ${q(n.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${n.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${n.origin}`;default:return"Input non valido"}}};function BN(){return{localeError:GY()}}var qY=()=>{let e={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function t(n){return e[n]??null}let r={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"},o={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${n.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${l}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${i}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${l}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return n.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${Y(n.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${q(n.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let i=n.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",a=t(n.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${a.unit??"\u8981\u7D20"}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let i=n.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",a=t(n.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${a.unit}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${i.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${r[i.format]??n.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${n.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${n.keys.length>1?"\u7FA4":""}: ${q(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function FN(){return{localeError:qY()}}var HY=()=>{let e={string:{unit:"\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},file:{unit:"\u10D1\u10D0\u10D8\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},array:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},set:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"}};function t(n){return e[n]??null}let r={regex:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",email:"\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",url:"URL",emoji:"\u10D4\u10DB\u10DD\u10EF\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",date:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",time:"\u10D3\u10E0\u10DD",duration:"\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",ipv4:"IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",ipv6:"IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",cidrv4:"IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",cidrv6:"IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",base64:"base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",json_string:"JSON \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},o={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",array:"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 instanceof ${n.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${l}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${i}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${l}`}case"invalid_value":return n.values.length===1?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${Y(n.values[0])}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${q(n.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${a.verb} ${i}${n.maximum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin} ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin} \u10D8\u10E7\u10DD\u10E1 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${i.prefix}"-\u10D8\u10D7`:i.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${i.suffix}"-\u10D8\u10D7`:i.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${i.includes}"-\u10E1`:i.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${i.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${n.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;case"unrecognized_keys":return`\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${n.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${q(n.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${n.origin}-\u10E8\u10D8`;case"invalid_union":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";case"invalid_element":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${n.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function ZN(){return{localeError:HY()}}var WY=()=>{let e={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function t(n){return e[n]??null}let r={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17
102D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"},o={nan:"NaN",number:"\u179B\u17C1\u1781",array:"\u17A2\u17B6\u179A\u17C1 (Array)",null:"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A instanceof ${n.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${l}`:`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${l}`}case"invalid_value":return n.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${Y(n.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${q(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${n.maximum.toString()} ${a.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${i} ${n.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${i.prefix}"`:i.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${i.suffix}"`:i.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${i.includes}"`:i.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${i.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${n.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${q(n.keys,", ")}`;
vendor: 13,630 bytes, line 102
102case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${n.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${n.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function pg(){return{localeError:WY()}}function VN(){return pg()}var JY=()=>{let e={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function t(n){return e[n]??null}let r={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${n.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${l}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${i}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${l}\uC785\uB2C8\uB2E4`}case"invalid_value":return n.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${Y(n.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${q(n.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let i=n.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=i==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",l=t(n.origin),c=l?.unit??"\uC694\uC18C";return l?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()}${c} ${i}${a}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()} ${i}${a}`}case"too_small":{let i=n.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=i==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",l=t(n.origin),c=l?.unit??"\uC694\uC18C";return l?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()}${c} ${i}${a}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()} ${i}${a}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:i.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${i.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${r[i.format]??n.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${n.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${q(n.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${n.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${n.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function GN(){return{localeError:JY()}}var mp=e=>e.charAt(0).toUpperCase()+e.slice(1);function qN(e){let t=Math.abs(e),r=t%10,o=t%100;return o>=11&&o<=19||r===0?"many":r===1?"one":"few"}var KY=()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne ilgesn\u0117 kaip",notInclusive:"turi b\u016Bti trumpesn\u0117 kaip"},bigger:{inclusive:"turi b\u016Bti ne trumpesn\u0117 kaip",notInclusive:"turi b\u016Bti ilgesn\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne didesnis kaip",notInclusive:"turi b\u016Bti ma\u017Eesnis kaip"},bigger:{inclusive:"turi b\u016Bti ne ma\u017Eesnis kaip",notInclusive:"turi b\u016Bti didesnis kaip"}}},array:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}},set:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}}};function t(n,i,a,l){let c=e[n]??null;return c===null?c:{unit:c.unit[i],verb:c.verb[l][a?"inclusive":"notInclusive"]}}let r={regex:"\u012Fvestis",email:"el. pa\u0161to 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\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\u017Ekoduota eilut\u0117",base64url:"base64url u\u017Ekoduota eilut\u0117",json_string:"JSON eilut\u0117",e164:"E.164 numeris",jwt:"JWT",template_literal:"\u012Fvestis"},o={nan:"NaN",number:"skai\u010Dius",bigint:"sveikasis skai\u010Dius",string:"eilut\u0117",boolean:"login\u0117 reik\u0161m\u0117",undefined:"neapibr\u0117\u017Eta reik\u0161m\u0117",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulin\u0117 reik\u0161m\u0117"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Gautas tipas ${l}, o tik\u0117tasi - instanceof ${n.expected}`:`Gautas tipas ${l}, o tik\u0117tasi - ${i}`}case"invalid_value":return n.values.length===1?`Privalo b\u016Bti ${Y(n.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${q(n.values,"|")} pasirinkim\u0173`;case"too_big":{let i=o[n.origin]??n.origin,a=t(n.origin,qN(Number(n.maximum)),n.inclusive??!1,"smaller");if(a?.verb)return`${mp(i??n.origin??"reik\u0161m\u0117")} ${a.verb} ${n.maximum.toString()} ${a.unit??"element\u0173"}`;let l=n.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${mp(i??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${l} ${n.maximum.toString()} ${a?.unit}`}case"too_small":{let i=o[n.origin]??n.origin,a=t(n.origin,qN(Number(n.minimum)),n.inclusive??!1,"bigger");if(a?.verb)return`${mp(i??n.origin??"reik\u0161m\u0117")} ${a.verb} ${n.minimum.toString()} ${a.unit??"element\u0173"}`;let l=n.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${mp(i??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${l} ${n.minimum.toString()} ${a?.unit}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${i.prefix}"`:i.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${i.suffix}"`:i.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${i.includes}"`:i.format==="regex"?`Eilut\u0117 privalo atitikti ${i.pattern}`:`Neteisingas ${r[i.format]??n.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${n.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${n.keys.length>1?"i":"as"} rakt${n.keys.length>1?"ai":"as"}: ${q(n.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let i=o[n.origin]??n.origin;return`${mp(i??n.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function HN(){return{localeError:KY()}}var XY=()=>{let e={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function t(n){return e[n]??null}let r={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"},o={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${n.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${l}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${l}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${Y(n.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${q(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${i}${n.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0438\u043C\u0430 ${i}${n.minimum.toString()} ${a.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${i.pattern}`:`Invalid ${r[i.format]??n.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u
102041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${q(n.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${n.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${n.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function WN(){return{localeError:XY()}}var YY=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(n){return e[n]??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"},o={nan:"NaN",number:"nombor"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Input tidak sah: dijangka instanceof ${n.expected}, diterima ${l}`:`Input tidak sah: dijangka ${i}, diterima ${l}`}case"invalid_value":return n.values.length===1?`Input tidak sah: dijangka ${Y(n.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${q(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Terlalu besar: dijangka ${n.origin??"nilai"} ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${n.origin??"nilai"} adalah ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Terlalu kecil: dijangka ${n.origin} ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${n.origin} adalah ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`String tidak sah: mesti bermula dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak sah: mesti mengandungi "${i.includes}"`:i.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${i.pattern}`:`${r[i.format]??n.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${q(n.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${n.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${n.origin}`;default:return"Input tidak sah"}}};function JN(){return{localeError:YY()}}var QY=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(n){return e[n]??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"},o={nan:"NaN",number:"getal"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ongeldige invoer: verwacht instanceof ${n.expected}, ontving ${l}`:`Ongeldige invoer: verwacht ${i}, ontving ${l}`}case"invalid_value":return n.values.length===1?`Ongeldige invoer: verwacht ${Y(n.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${q(n.values,"|")}`;
vendor: 7,368 bytes, line 102
102case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin),l=n.origin==="date"?"laat":n.origin==="string"?"lang":"groot";return a?`Te ${l}: verwacht dat ${n.origin??"waarde"} ${i}${n.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${l}: verwacht dat ${n.origin??"waarde"} ${i}${n.maximum.toString()} is`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin),l=n.origin==="date"?"vroeg":n.origin==="string"?"kort":"klein";return a?`Te ${l}: verwacht dat ${n.origin} ${i}${n.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${l}: verwacht dat ${n.origin} ${i}${n.minimum.toString()} is`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ongeldige tekst: moet met "${i.prefix}" beginnen`:i.format==="ends_with"?`Ongeldige tekst: moet op "${i.suffix}" eindigen`:i.format==="includes"?`Ongeldige tekst: moet "${i.includes}" bevatten`:i.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${i.pattern}`:`Ongeldig: ${r[i.format]??n.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${n.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${n.keys.length>1?"s":""}: ${q(n.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${n.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${n.origin}`;default:return"Ongeldige invoer"}}};function KN(){return{localeError:QY()}}var eQ=()=>{let e={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function t(n){return e[n]??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\xE5de",ipv6:"IPv6-omr\xE5de",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"},o={nan:"NaN",number:"tall",array:"liste"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ugyldig input: forventet instanceof ${n.expected}, fikk ${l}`:`Ugyldig input: forventet ${i}, fikk ${l}`}case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventet ${Y(n.values[0])}`:`Ugyldig valg: forventet en av ${q(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${i}${n.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`For lite(n): forventet ${n.origin} til \xE5 ha ${i}${n.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${n.origin} til \xE5 ha ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${r[i.format]??n.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${q(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${n.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${n.origin}`;default:return"Ugyldig input"}}};function XN(){return{localeError:eQ()}}var tQ=()=>{let e={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function t(n){return e[n]??null}let r={regex:"giren",email:"epostag\xE2h",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\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"},o={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`F\xE2sit giren: umulan instanceof ${n.expected}, al\u0131nan ${l}`:`F\xE2sit giren: umulan ${i}, al\u0131nan ${l}`}case"invalid_value":return n.values.length===1?`F\xE2sit giren: umulan ${Y(n.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${q(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${i}${n.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${i}${n.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${i}${n.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${i}${n.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let i=n;return i.format==="starts_with"?`F\xE2sit metin: "${i.prefix}" ile ba\u015Flamal\u0131.`:i.format==="ends_with"?`F\xE2sit metin: "${i.suffix}" ile bitmeli.`:i.format==="includes"?`F\xE2sit metin: "${i.includes}" ihtiv\xE2 etmeli.`:i.format==="regex"?`F\xE2sit metin: ${i.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${r[i.format]??n.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${n.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${n.keys.length>1?"s":""}: ${q(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${n.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function YN(){return{localeError:tQ()}}var rQ=()=>{let e={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function t(n){return e[n]??null}let r={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u
102067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${n.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${l} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${i} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${l} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return n.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${Y(n.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${q(n.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} \u0648\u064A`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} ${a.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} \u0648\u064A`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:i.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:i.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${i.includes}" \u0648\u0644\u0631\u064A`:i.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${i.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${r[i.format]??n.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${n.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${n.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${q(n.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${n.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${n.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function QN(){return{localeError:rQ()}}var nQ=()=>{let e={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function t(n){return e[n]??null}let r={regex:"wyra\u017Cenie",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\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"},o={nan:"NaN",number:"liczba",array:"tablica"};return n=>
vendor: 4,457 bytes, line 102
102{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${n.expected}, otrzymano ${l}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${i}, otrzymano ${l}`}case"invalid_value":return n.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${Y(n.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${q(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${n.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${n.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${i.prefix}"`:i.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${i.suffix}"`:i.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${i.includes}"`:i.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${i.pattern}`:`Nieprawid\u0142ow(y/a/e) ${r[i.format]??n.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${n.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${n.keys.length>1?"s":""}: ${q(n.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${n.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${n.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function eR(){return{localeError:nQ()}}var oQ=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(n){return e[n]??null}let r={regex:"padr\xE3o",email:"endere\xE7o 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\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o 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\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN",number:"n\xFAmero",null:"nulo"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Tipo inv\xE1lido: esperado instanceof ${n.expected}, recebido ${l}`:`Tipo inv\xE1lido: esperado ${i}, recebido ${l}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: esperado ${Y(n.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${q(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Muito grande: esperado que ${n.origin??"valor"} tivesse ${i}${n.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${n.origin??"valor"} fosse ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Muito pequeno: esperado que ${n.origin} tivesse ${i}${n.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${n.origin} fosse ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${i.prefix}"`:i.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${i.suffix}"`:i.format==="includes"?`Texto inv\xE1lido: deve incluir "${i.includes}"`:i.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${i.pattern}`:`${r[i.format]??n.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Chave${n.keys.length>
1021?"s":""} desconhecida${n.keys.length>1?"s":""}: ${q(n.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${n.origin}`;default:return"Campo inv\xE1lido"}}};function tR(){return{localeError:oQ()}}function rR(e,t,r,o){let n=Math.abs(e),i=n%10,a=n%100;return a>=11&&a<=19?o:i===1?t:i>=2&&i<=4?r:o}var iQ=()=>{let e={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function t(n){return e[n]??null}let r={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${n.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${l}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${i}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${l}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${Y(n.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${q(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);if(a){let l=Number(n.maximum),c=rR(l,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${n.maximum.toString()} ${c}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);if(a){let l=Number(n.minimum),c=rR(l,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${n.minimum.toString()} ${c}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin} \u0431\u0443\u0434\u0435\u0442 ${i}${n.minimum.toString()}`}
vendor: 105,380 bytes, lines 102-104
102case"invalid_format":{let i=n;return i.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${n.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0438":""}: ${q(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${n.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function nR(){return{localeError:iQ()}}var aQ=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(n){return e[n]??null}let r={regex:"vnos",email:"e-po\u0161tni 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 \u010Das",date:"ISO datum",time:"ISO \u010Das",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 \u0161tevilka",jwt:"JWT",template_literal:"vnos"},o={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${n.expected}, prejeto ${l}`:`Neveljaven vnos: pri\u010Dakovano ${i}, prejeto ${l}`}case"invalid_value":return n.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${Y(n.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${q(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} imelo ${i}${n.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${n.origin} imelo ${i}${n.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${i.prefix}"`:i.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${i.suffix}"`:i.format==="includes"?`Neveljaven niz: mora vsebovati "${i.includes}"`:i.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${i.pattern}`:`Neveljaven ${r[i.format]??n.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${n.divisor}`;case"unrecognized_keys":return`Neprepoznan${n.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${q(n.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${n.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${n.origin}`;default:return"Neveljaven vnos"}}};function oR(){return{localeError:aQ()}}var sQ=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function t(n){return e[n]??null}let r={regex:"regulj\xE4rt 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\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},o={nan:"NaN",number:"antal",array:"lista"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${n.expected}, fick ${l}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${i}, fick ${l}`}case"invalid_value":return n.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${Y(n.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${q(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${i}${n.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${n.origin??"v\xE4rdet"} att ha ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${i}${n.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${i.prefix}"`:i.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${i.suffix}"`:i.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${i.includes}"`:i.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${i.pattern}"`:`Ogiltig(t) ${r[i.format]??n.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${q(n.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${n.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${n.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function iR(){return{localeError:sQ()}}var lQ=()=>{let e={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function t(n){return e[n]??null}let r={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",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 \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 instanceof ${n.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${l}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${i}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${l}`}case"invalid_value":return n.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${Y(n.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${q(n.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${n.maximum.toString()} ${a.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${n.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin} ${i}${n.minimum.toString()} ${a.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin} ${i}${n.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${i.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${n.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${n.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${q(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${n.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}};function aR(){return{localeError:lQ()}}var cQ=()=>{let e={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function t(n){return e[n]??null}let r={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"},o={nan:"NaN",number:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",array:"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",null:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 instanceof ${n.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${l}`:`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${i} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${l}`}case"invalid_value":return n.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${Y(n.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${q(n.values,"|")}`;case"too_big":{let i=n.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=t(n.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.maximum.toString()} ${a.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",a=t(n.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.minimum.toString()} ${a.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${i.prefix}"`:i.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${i.suffix}"`:i.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${i.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:i.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${i.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${r[i.format]??n.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${n.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${q(n.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${n.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${n.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function sR(){return{localeError:cQ()}}var uQ=()=>{let e={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function t(n){return e[n]??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\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${n.expected}, al\u0131nan ${l}`:`Ge\xE7ersiz de\u011Fer: beklenen ${i}, al\u0131nan ${l}`}case"invalid_value":return n.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${Y(n.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${q(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${i}${n.maximum.toString()} ${a.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${i}${n.minimum.toString()} ${a.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ge\xE7ersiz metin: "${i.prefix}" ile ba\u015Flamal\u0131`:i.format==="ends_with"?`Ge\xE7ersiz metin: "${i.suffix}" ile bitmeli`:i.format==="includes"?`Ge\xE7ersiz metin: "${i.includes}" i\xE7ermeli`:i.format==="regex"?`Ge\xE7ersiz metin: ${i.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${r[i.format]??n.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${n.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${n.keys.length>1?"lar":""}: ${q(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${n.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function lR(){return{localeError:uQ()}}var dQ=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function t(n){return e[n]??null}let r={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F instanceof ${n.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${l}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${i}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${l}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${Y(n.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${q(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin} ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin} \u0431\u0443\u0434\u0435 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0456":""}: ${q(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${n.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function mg(){return{localeError:dQ()}}function cR(){return mg()}var pQ=()=>{let e={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function t(n){return e[n]??null}let r={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"},o={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${n.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${l} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${i} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${l} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return n.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${Y(n.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${q(n.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${i}${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${i}${n.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u06D2 ${i}${n.minimum.toString()} ${a.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u0627 ${i}${n.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${i.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${n.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${n.keys.length>1?"\u0632":""}: ${q(n.keys,"\u060C ")}`;case"invalid_key":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function uR(){return{localeError:pQ()}}var mQ=()=>{let e={string:{unit:"belgi",verb:"bo\u2018lishi kerak"},file:{unit:"bayt",verb:"bo\u2018lishi kerak"},array:{unit:"element",verb:"bo\u2018lishi kerak"},set:{unit:"element",verb:"bo\u2018lishi kerak"}};function t(n){return e[n]??null}let r={regex:"kirish",email:"elektron pochta manzili",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 sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},o={nan:"NaN",number:"raqam",array:"massiv"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${n.expected}, qabul qilingan ${l}`:`Noto\u2018g\u2018ri kirish: kutilgan ${i}, qabul qilingan ${l}`}case"invalid_value":return n.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${Y(n.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${q(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Juda katta: kutilgan ${n.origin??"qiymat"} ${i}${n.maximum.toString()} ${a.unit} ${a.verb}`:`Juda katta: kutilgan ${n.origin??"qiymat"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Juda kichik: kutilgan ${n.origin} ${i}${n.minimum.toString()} ${a.unit} ${a.verb}`:`Juda kichik: kutilgan ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${i.prefix}" bilan boshlanishi kerak`:i.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${i.suffix}" bilan tugashi kerak`:i.format==="includes"?`Noto\u2018g\u2018ri satr: "${i.includes}" ni o\u2018z ichiga olishi kerak`:i.format==="regex"?`Noto\u2018g\u2018ri satr: ${i.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${r[i.format]??n.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${n.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${n.keys.length>1?"lar":""}: ${q(n.keys,", ")}`;case"invalid_key":return`${n.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${n.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}};function dR(){return{localeError:mQ()}}var fQ=()=>{let e={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function t(n){return e[n]??null}let r={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 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\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"},o={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${n.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${l}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${i}, nh\u1EADn \u0111\u01B0\u1EE3c ${l}`}case"invalid_value":return n.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${Y(n.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${q(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${i.prefix}"`:i.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${i.suffix}"`:i.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${i.includes}"`:i.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${i.pattern}`:`${r[i.format]??n.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${n.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${q(n.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${n.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${n.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function pR(){return{localeError:fQ()}}var hQ=()=>{let e={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function t(n){return e[n]??null}let r={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"},o={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${n.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${l}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${i}\uFF0C\u5B9E\u9645\u63A5\u6536 ${l}`}case"invalid_value":return n.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${Y(n.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${q(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${i}${n.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${i}${n.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.prefix}" \u5F00\u5934`:i.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.suffix}" \u7ED3\u5C3E`:i.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${i.pattern}`:`\u65E0\u6548${r[i.format]??n.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${n.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${q(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${n.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function mR(){return{localeError:hQ()}}var gQ=()=>{let e={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function t(n){return e[n]??null}let r={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",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 \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${n.expected}\uFF0C\u4F46\u6536\u5230 ${l}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${i}\uFF0C\u4F46\u6536\u5230 ${l}`}case"invalid_value":return n.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${Y(n.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${q(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${i}${n.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${i}${n.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.prefix}" \u958B\u982D`:i.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.suffix}" \u7D50\u5C3E`:i.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${i.pattern}`:`\u7121\u6548\u7684 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${n.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${n.keys.length>1?"\u5011":""}\uFF1A${q(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function fR(){return{localeError:gQ()}}var vQ=()=>{let e={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"}};function t(n){return e[n]??null}let r={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",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:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"},o={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${n.expected}, \xE0m\u1ECD\u0300 a r\xED ${l}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${i}, \xE0m\u1ECD\u0300 a r\xED ${l}`}case"invalid_value":return n.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${Y(n.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${q(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin??"iye"} ${a.verb} ${i}${n.maximum} ${a.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${n.maximum}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin} ${a.verb} ${i}${n.minimum} ${a.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${n.minimum}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\u1EB9\u0300r\u1EB9\u0300 p\u1EB9\u0300l\xFA "${i.prefix}"`:i.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${i.suffix}"`:i.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${i.includes}"`:i.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${i.pattern}`:`A\u1E63\xEC\u1E63e: ${r[i.format]??n.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${n.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${q(n.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${n.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${n.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function hR(){return{localeError:vQ()}}var gR,Ck=Symbol("ZodOutput"),zk=Symbol("ZodInput"),fg=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){let o=r[0];return this._map.set(t,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){let r=t._zod.parent;if(r){let o={...this.get(r)??{}};delete o.id;let n={...o,...this._map.get(t)};return Object.keys(n).length?n:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function hg(){return new fg}(gR=globalThis).__zod_globalRegistry??(gR.__zod_globalRegistry=hg());var vr=globalThis.__zod_globalRegistry;function Ek(e,t){return new e({type:"string",...ae(t)})}function Ak(e,t){return new e({type:"string",coerce:!0,...ae(t)})}function gg(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...ae(t)})}function hp(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...ae(t)})}function vg(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...ae(t)})}function yg(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...ae(t)})}function bg(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...ae(t)})}function xg(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...ae(t)})}function gp(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...ae(t)})}function wg(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...ae(t)})}function _g(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...ae(t)})}function kg(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...ae(t)})}function Sg(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...ae(t)})}function $g(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...ae(t)})}function Tg(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...ae(t)})}function Ig(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...ae(t)})}function Pg(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...ae(t)})}function Cg(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...ae(t)})}function Mk(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...ae(t)})}function zg(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...ae(t)})}function Eg(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...ae(t)})}function Ag(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...ae(t)})}function Mg(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...ae(t)})}function Ng(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...ae(t)})}function Rg(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...ae(t)})}var Nk={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Rk(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...ae(t)})}function Dk(e,t){return new e({type:"string",format:"date",check:"string_format",...ae(t)})}function Ok(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...ae(t)})}function Lk(e,t){return new e({type:"string",format:"duration",check:"string_format",...ae(t)})}function jk(e,t){return new e({type:"number",checks:[],...ae(t)})}function Uk(e,t){return new e({type:"number",coerce:!0,checks:[],...ae(t)})}function Bk(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...ae(t)})}function Fk(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...ae(t)})}function Zk(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...ae(t)})}function Vk(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...ae(t)})}function Gk(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...ae(t)})}function qk(e,t){return new e({type:"boolean",...ae(t)})}function Hk(e,t){return new e({type:"boolean",coerce:!0,...ae(t)})}function Wk(e,t){return new e({type:"bigint",...ae(t)})}function Jk(e,t){return new e({type:"bigint",coerce:!0,...ae(t)})}function Kk(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...ae(t)})}function Xk(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...ae(t)})}function Yk(e,t){return new e({type:"symbol",...ae(t)})}function Qk(e,t){return new e({type:"undefined",...ae(t)})}function e6(e,t){return new e({type:"null",...ae(t)})}function t6(e){return new e({type:"any"})}function r6(e){return new e({type:"unknown"})}function n6(e,t){return new e({type:"never",...ae(t)})}function o6(e,t){return new e({type:"void",...ae(t)})}function i6(e,t){return new e({type:"date",...ae(t)})}function a6(e,t){return new e({type:"date",coerce:!0,...ae(t)})}function s6(e,t){return new e({type:"nan",...ae(t)})}function _o(e,t){return new eg({check:"less_than",...ae(t),value:e,inclusive:!1})}function fn(e,t){return new eg({check:"less_than",...ae(t),value:e,inclusive:!0})}function ko(e,t){return new tg({check:"greater_than",...ae(t),value:e,inclusive:!1})}function Rr(e,t){return new tg({check:"greater_than",...ae(t),value:e,inclusive:!0})}function Dg(e){return ko(0,e)}function Og(e){return _o(0,e)}function Lg(e){return fn(0,e)}function jg(e){return Rr(0,e)}function da(e,t){return new e2({check:"multiple_of",...ae(t),value:e})}function pa(e,t){return new n2({check:"max_size",...ae(t),maximum:e})}function So(e,t){return new o2({check:"min_size",...ae(t),minimum:e})}function bs(e,t){return new i2({check:"size_equals",...ae(t),size:e})}function xs(e,t){return new a2({check:"max_length",...ae(t),maximum:e})}function si(e,t){return new s2({check:"min_length",...ae(t),minimum:e})}function ws(e,t){return new l2({check:"length_equals",...ae(t),length:e})}function lc(e,t){return new c2({check:"string_format",format:"regex",...ae(t),pattern:e})}function cc(e){return new u2({check:"string_format",format:"lowercase",...ae(e)})}function uc(e){return new d2({check:"string_format",format:"uppercase",...ae(e)})}function dc(e,t){return new p2({check:"string_format",format:"includes",...ae(t),includes:e})}function pc(e,t){return new m2({check:"string_format",format:"starts_with",...ae(t),prefix:e})}function mc(e,t){return new f2({check:"string_format",format:"ends_with",...ae(t),suffix:e})}function Ug(e,t,r){return new h2({check:"property",property:e,schema:t,...ae(r)})}function fc(e,t){return new g2({check:"mime_type",mime:e,...ae(t)})}function Qn(e){return new v2({check:"overwrite",tx:e})}function hc(e){return Qn(t=>t.normalize(e))}function gc(){return Qn(e=>e.trim())}function vc(){return Qn(e=>e.toLowerCase())}function yc(){return Qn(e=>e.toUpperCase())}function bc(){return Qn(e=>h4(e))}function l6(e,t,r){return new e({type:"array",element:t,...ae(r)})}function bQ(e,t,r){return new e({type:"union",options:t,...ae(r)})}function xQ(e,t,r){return new e({type:"union",options:t,inclusive:!1,...ae(r)})}function wQ(e,t,r,o){return new e({type:"union",options:r,discriminator:t,...ae(o)})}function _Q(e,t,r){return new e({type:"intersection",left:t,right:r})}function kQ(e,t,r,o){let n=r instanceof Le,i=n?o:r,a=n?r:null;return new e({type:"tuple",items:t,rest:a,...ae(i)})}function SQ(e,t,r,o){return new e({type:"record",keyType:t,valueType:r,...ae(o)})}function $Q(e,t,r,o){return new e({type:"map",keyType:t,valueType:r,...ae(o)})}function TQ(e,t,r){return new e({type:"set",valueType:t,...ae(r)})}function IQ(e,t,r){let o=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n])):t;return new e({type:"enum",entries:o,...ae(r)})}function PQ(e,t,r){return new e({type:"enum",entries:t,...ae(r)})}function CQ(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...ae(r)})}function c6(e,t){return new e({type:"file",...ae(t)})}function zQ(e,t){return new e({type:"transform",transform:t})}function EQ(e,t){return new e({type:"optional",innerType:t})}function AQ(e,t){return new e({type:"nullable",innerType:t})}function MQ(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():v4(r)}})}function NQ(e,t,r){return new e({type:"nonoptional",innerType:t,...ae(r)})}function RQ(e,t){return new e({type:"success",innerType:t})}function DQ(e,t,r){return new e({type:"catch",innerType:t,catchValue:typeof r=="function"?r:()=>r})}function OQ(e,t,r){return new e({type:"pipe",in:t,out:r})}function LQ(e,t){return new e({type:"readonly",innerType:t})}function jQ(e,t,r){return new e({type:"template_literal",parts:t,...ae(r)})}function UQ(e,t){return new e({type:"lazy",getter:t})}function BQ(e,t){return new e({type:"promise",innerType:t})}function u6(e,t,r){let o=ae(r);return o.abort??(o.abort=!0),new e({type:"custom",check:"custom",fn:t,...o})}function d6(e,t,r){return new e({type:"custom",check:"custom",fn:t,...ae(r)})}function p6(e){let t=vR(r=>(r.addIssue=o=>{if(typeof o=="string")r.issues.push(tc(o,r.value,t._zod.def));else{let n=o;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(tc(n))}},e(r.value,r)));return t}function vR(e,t){let r=new kt({check:"custom",...ae(t)});return r._zod.check=e,r}function m6(e){let t=new kt({check:"describe"});return t._zod.onattach=[r=>{let o=vr.get(r)??{};vr.add(r,{...o,description:e})}],t._zod.check=()=>{},t}function f6(e){let t=new kt({check:"meta"});return t._zod.onattach=[r=>{let o=vr.get(r)??{};vr.add(r,{...o,...e})}],t._zod.check=()=>{},t}function h6(e,t){let r=ae(t),o=r.truthy??["true","1","yes","on","y","enabled"],n=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(o=o.map(g=>typeof g=="string"?g.toLowerCase():g),n=n.map(g=>typeof g=="string"?g.toLowerCase():g));let i=new Set(o),a=new Set(n),l=e.Codec??pp,c=e.Boolean??up,d=e.String??ys,p=new d({type:"string",error:r.error}),m=new c({type:"boolean",error:r.error}),h=new l({type:"pipe",in:p,out:m,transform:((g,w)=>{let $=g;return r.case!=="sensitive"&&($=$.toLowerCase()),i.has($)?!0:a.has($)?!1:(w.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...a],input:w.value,inst:h,continue:!1}),{})}),reverseTransform:((g,w)=>g===!0?o[0]||"true":n[0]||"false"),error:r.error});return h}function xc(e,t,r,o={}){let n=ae(o),i={...ae(o),check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:l=>r.test(l),...n};return r instanceof RegExp&&(i.pattern=r),new e(i)}function ma(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??vr,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 ft(e,t,r={path:[],schemaPath:[]}){var o;let n=e._zod.def,i=t.seen.get(e);if(i)return i.count++,r.schemaPath.includes(e)&&(i.cycle=r.path),i.schema;let a={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,a);let l=e._zod.toJSONSchema?.();if(l)a.schema=l;else{let p={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,p);else{let h=a.schema,g=t.processors[n.type];if(!g)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);g(e,t,h,p)}let m=e._zod.parent;m&&(a.ref||(a.ref=m),ft(m,t,p),t.seen.get(m).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(a.schema,c),t.io==="input"&&Dr(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&a.schema._prefault&&((o=a.schema).default??(o.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function fa(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=new Map;for(let a of e.seen.entries()){let l=e.metadataRegistry.get(a[0])?.id;if(l){let c=o.get(l);if(c&&c!==a[0])throw new Error(`Duplicate schema id "${l}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(l,a[0])}}let n=a=>{let l=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let m=e.external.registry.get(a[0])?.id,h=e.external.uri??(w=>w);if(m)return{ref:h(m)};let g=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=g,{defId:g,ref:`${h("__shared")}#/${l}/${g}`}}if(a[1]===r)return{ref:"#"};let d=`#/${l}/`,p=a[1].schema.id??`__schema${e.counter++}`;return{defId:p,ref:d+p}},i=a=>{if(a[1].schema.$ref)return;let l=a[1],{ref:c,defId:d}=n(a);l.def={...l.schema},d&&(l.defId=d);let p=l.schema;for(let m in p)delete p[m];p.$ref=c};if(e.cycles==="throw")for(let a of e.seen.entries()){let l=a[1];if(l.cycle)throw new Error(`Cycle detected: #/${l.cycle?.join("/")}/<root>
103
104Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of e.seen.entries()){let l=a[1];if(t===a[0]){i(a);continue}if(e.external){let d=e.external.registry.get(a[0])?.id;if(t!==a[0]&&d){i(a);continue}}if(e.metadataRegistry.get(a[0])?.id){i(a);continue}if(l.cycle){i(a);continue}if(l.count>1&&e.reused==="ref"){i(a);continue}}}function ha(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=a=>{let l=e.seen.get(a);if(l.ref===null)return;let c=l.def??l.schema,d={...c},p=l.ref;if(l.ref=null,p){o(p);let h=e.seen.get(p),g=h.schema;if(g.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(g)):Object.assign(c,g),Object.assign(c,d),a._zod.parent===p)for(let $ in c)$==="$ref"||$==="allOf"||$ in d||delete c[$];if(g.$ref&&h.def)for(let $ in c)$==="$ref"||$==="allOf"||$ in h.def&&JSON.stringify(c[$])===JSON.stringify(h.def[$])&&delete c[$]}let m=a._zod.parent;if(m&&m!==p){o(m);let h=e.seen.get(m);if(h?.schema.$ref&&(c.$ref=h.schema.$ref,h.def))for(let g in c)g==="$ref"||g==="allOf"||g in h.def&&JSON.stringify(c[g])===JSON.stringify(h.def[g])&&delete c[g]}e.override({zodSchema:a,jsonSchema:c,path:l.path??[]})};for(let a of[...e.seen.entries()].reverse())o(a[0]);let n={};if(e.target==="draft-2020-12"?n.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?n.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?n.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let a=e.external.registry.get(t)?.id;if(!a)throw new Error("Schema is missing an `id` property");n.$id=e.external.uri(a)}Object.assign(n,r.def??r.schema);let i=e.external?.defs??{};for(let a of e.seen.entries()){let l=a[1];l.def&&l.defId&&(i[l.defId]=l.def)}e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?n.$defs=i:n.definitions=i);try{let a=JSON.parse(JSON.stringify(n));return Object.defineProperty(a,"~standard",{value:{...t["~standard"],jsonSchema:{input:wc(t,"input",e.processors),output:wc(t,"output",e.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}function Dr(e,t){let r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);let o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return Dr(o.element,r);if(o.type==="set")return Dr(o.valueType,r);if(o.type==="lazy")return Dr(o.getter(),r);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return Dr(o.innerType,r);if(o.type==="intersection")return Dr(o.left,r)||Dr(o.right,r);if(o.type==="record"||o.type==="map")return Dr(o.keyType,r)||Dr(o.valueType,r);if(o.type==="pipe")return Dr(o.in,r)||Dr(o.out,r);if(o.type==="object"){for(let n in o.shape)if(Dr(o.shape[n],r))return!0;return!1}if(o.type==="union"){for(let n of o.options)if(Dr(n,r))return!0;return!1}if(o.type==="tuple"){for(let n of o.items)if(Dr(n,r))return!0;return!!(o.rest&&Dr(o.rest,r))}return!1}var g6=(e,t={})=>r=>{let o=ma({...r,processors:t});return ft(e,o),fa(o,e),ha(o,e)},wc=(e,t,r={})=>o=>{let{libraryOptions:n,target:i}=o??{},a=ma({...n??{},target:i,io:t,processors:r});return ft(e,a),fa(a,e),ha(a,e)};var FQ={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},v6=(e,t,r,o)=>{let n=r;n.type="string";let{minimum:i,maximum:a,format:l,patterns:c,contentEncoding:d}=e._zod.bag;if(typeof i=="number"&&(n.minLength=i),typeof a=="number"&&(n.maxLength=a),l&&(n.format=FQ[l]??l,n.format===""&&delete n.format,l==="time"&&delete n.format),d&&(n.contentEncoding=d),c&&c.size>0){let p=[...c];p.length===1?n.pattern=p[0].source:p.length>1&&(n.allOf=[...p.map(m=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:m.source}))])}},y6=(e,t,r,o)=>{let n=r,{minimum:i,maximum:a,format:l,multipleOf:c,exclusiveMaximum:d,exclusiveMinimum:p}=e._zod.bag;typeof l=="string"&&l.includes("int")?n.type="integer":n.type="number",typeof p=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(n.minimum=p,n.exclusiveMinimum=!0):n.exclusiveMinimum=p),typeof i=="number"&&(n.minimum=i,typeof p=="number"&&t.target!=="draft-04"&&(p>=i?delete n.minimum:delete n.exclusiveMinimum)),typeof d=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(n.maximum=d,n.exclusiveMaximum=!0):n.exclusiveMaximum=d),typeof a=="number"&&(n.maximum=a,typeof d=="number"&&t.target!=="draft-04"&&(d<=a?delete n.maximum:delete n.exclusiveMaximum)),typeof c=="number"&&(n.multipleOf=c)},b6=(e,t,r,o)=>{r.type="boolean"},x6=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},w6=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},_6=(e,t,r,o)=>{t.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},k6=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},S6=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},$6=(e,t,r,o)=>{r.not={}},T6=(e,t,r,o)=>{},I6=(e,t,r,o)=>{},P6=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},C6=(e,t,r,o)=>{let n=e._zod.def,i=Qd(n.entries);i.every(a=>typeof a=="number")&&(r.type="number"),i.every(a=>typeof a=="string")&&(r.type="string"),r.enum=i},z6=(e,t,r,o)=>{let n=e._zod.def,i=[];for(let a of n.values)if(a===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");i.push(Number(a))}else i.push(a);if(i.length!==0)if(i.length===1){let a=i[0];r.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?r.enum=[a]:r.const=a}else i.every(a=>typeof a=="number")&&(r.type="number"),i.every(a=>typeof a=="string")&&(r.type="string"),i.every(a=>typeof a=="boolean")&&(r.type="boolean"),i.every(a=>a===null)&&(r.type="null"),r.enum=i},E6=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},A6=(e,t,r,o)=>{let n=r,i=e._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");n.type="string",n.pattern=i.source},M6=(e,t,r,o)=>{let n=r,i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:l,mime:c}=e._zod.bag;a!==void 0&&(i.minLength=a),l!==void 0&&(i.maxLength=l),c?c.length===1?(i.contentMediaType=c[0],Object.assign(n,i)):(Object.assign(n,i),n.anyOf=c.map(d=>({contentMediaType:d}))):Object.assign(n,i)},N6=(e,t,r,o)=>{r.type="boolean"},R6=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},D6=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},O6=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},L6=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},j6=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},U6=(e,t,r,o)=>{let n=r,i=e._zod.def,{minimum:a,maximum:l}=e._zod.bag;typeof a=="number"&&(n.minItems=a),typeof l=="number"&&(n.maxItems=l),n.type="array",n.items=ft(i.element,t,{...o,path:[...o.path,"items"]})},B6=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="object",n.properties={};let a=i.shape;for(let d in a)n.properties[d]=ft(a[d],t,{...o,path:[...o.path,"properties",d]});let l=new Set(Object.keys(a)),c=new Set([...l].filter(d=>{let p=i.shape[d]._zod;return t.io==="input"?p.optin===void 0:p.optout===void 0}));c.size>0&&(n.required=Array.from(c)),i.catchall?._zod.def.type==="never"?n.additionalProperties=!1:i.catchall?i.catchall&&(n.additionalProperties=ft(i.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(n.additionalProperties=!1)},Fg=(e,t,r,o)=>{let n=e._zod.def,i=n.inclusive===!1,a=n.options.map((l,c)=>ft(l,t,{...o,path:[...o.path,i?"oneOf":"anyOf",c]}));i?r.oneOf=a:r.anyOf=a},F6=(e,t,r,o)=>{let n=e._zod.def,i=ft(n.left,t,{...o,path:[...o.path,"allOf",0]}),a=ft(n.right,t,{...o,path:[...o.path,"allOf",1]}),l=d=>"allOf"in d&&Object.keys(d).length===1,c=[...l(i)?i.allOf:[i],...l(a)?a.allOf:[a]];r.allOf=c},Z6=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="array";let a=t.target==="draft-2020-12"?"prefixItems":"items",l=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",c=i.items.map((h,g)=>ft(h,t,{...o,path:[...o.path,a,g]})),d=i.rest?ft(i.rest,t,{...o,path:[...o.path,l,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null;t.target==="draft-2020-12"?(n.prefixItems=c,d&&(n.items=d)):t.target==="openapi-3.0"?(n.items={anyOf:c},d&&n.items.anyOf.push(d),n.minItems=c.length,d||(n.maxItems=c.length)):(n.items=c,d&&(n.additionalItems=d));let{minimum:p,maximum:m}=e._zod.bag;typeof p=="number"&&(n.minItems=p),typeof m=="number"&&(n.maxItems=m)},V6=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="object";let a=i.keyType,c=a._zod.bag?.patterns;if(i.mode==="loose"&&c&&c.size>0){let p=ft(i.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});n.patternProperties={};for(let m of c)n.patternProperties[m.source]=p}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(n.propertyNames=ft(i.keyType,t,{...o,path:[...o.path,"propertyNames"]})),n.additionalProperties=ft(i.valueType,t,{...o,path:[...o.path,"additionalProperties"]});let d=a._zod.values;if(d){let p=[...d].filter(m=>typeof m=="string"||typeof m=="number");p.length>0&&(n.required=p)}},G6=(e,t,r,o)=>{let n=e._zod.def,i=ft(n.innerType,t,o),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=n.innerType,r.nullable=!0):r.anyOf=[i,{type:"null"}]},q6=(e,t,r,o)=>{let n=e._zod.def;ft(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},H6=(e,t,r,o)=>{let n=e._zod.def;ft(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,r.default=JSON.parse(JSON.stringify(n.defaultValue))},W6=(e,t,r,o)=>{let n=e._zod.def;ft(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(n.defaultValue)))},J6=(e,t,r,o)=>{let n=e._zod.def;ft(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType;let a;try{a=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=a},K6=(e,t,r,o)=>{let n=e._zod.def,i=t.io==="input"?n.in._zod.def.type==="transform"?n.out:n.in:n.out;ft(i,t,o);let a=t.seen.get(e);a.ref=i},X6=(e,t,r,o)=>{let n=e._zod.def;ft(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,r.readOnly=!0},Y6=(e,t,r,o)=>{let n=e._zod.def;ft(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},Zg=(e,t,r,o)=>{let n=e._zod.def;ft(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},Q6=(e,t,r,o)=>{let n=e._zod.innerType;ft(n,t,o);let i=t.seen.get(e);i.ref=n},Bg={string:v6,number:y6,boolean:b6,bigint:x6,symbol:w6,null:_6,undefined:k6,void:S6,never:$6,any:T6,unknown:I6,date:P6,enum:C6,literal:z6,nan:E6,template_literal:A6,file:M6,success:N6,custom:R6,function:D6,transform:O6,map:L6,set:j6,array:U6,object:B6,union:Fg,intersection:F6,tuple:Z6,record:V6,nullable:G6,nonoptional:q6,default:H6,prefault:W6,catch:J6,pipe:K6,readonly:X6,promise:Y6,optional:Zg,lazy:Q6};function Vg(e,t){if("_idmap"in e){let o=e,n=ma({...t,processors:Bg}),i={};for(let c of o._idmap.entries()){let[d,p]=c;ft(p,n)}let a={},l={registry:o,uri:t?.uri,defs:i};n.external=l;for(let c of o._idmap.entries()){let[d,p]=c;fa(n,p),a[d]=ha(n,p)}if(Object.keys(i).length>0){let c=n.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[c]:i}}return{schemas:a}}let r=ma({...t,processors:Bg});return ft(e,r),fa(r,e),ha(r,e)}var Gg=class{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(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let r=t?.target??"draft-2020-12";r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),this.ctx=ma({processors:Bg,target:r,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,r={path:[],schemaPath:[]}){return ft(t,this.ctx,r)}emit(t,r){r&&(r.cycles&&(this.ctx.cycles=r.cycles),r.reused&&(this.ctx.reused=r.reused),r.external&&(this.ctx.external=r.external)),fa(this.ctx,t);let o=ha(this.ctx,t),{"~standard":n,...i}=o;return i}};var yR={};var vp={};Zr(vp,{ZodAny:()=>k5,ZodArray:()=>I5,ZodBase64:()=>pv,ZodBase64URL:()=>mv,ZodBigInt:()=>Pc,ZodBigIntFormat:()=>gv,ZodBoolean:()=>Ic,ZodCIDRv4:()=>uv,ZodCIDRv6:()=>dv,ZodCUID:()=>nv,ZodCUID2:()=>ov,ZodCatch:()=>J5,ZodCodec:()=>Sv,ZodCustom:()=>Pp,ZodCustomStringFormat:()=>$c,ZodDate:()=>kp,ZodDefault:()=>Z5,ZodDiscriminatedUnion:()=>C5,ZodE164:()=>fv,ZodEmail:()=>ev,ZodEmoji:()=>tv,ZodEnum:()=>kc,ZodExactOptional:()=>U5,ZodFile:()=>L5,ZodFunction:()=>oS,ZodGUID:()=>yp,ZodIPv4:()=>lv,ZodIPv6:()=>cv,ZodIntersection:()=>z5,ZodJWT:()=>hv,ZodKSUID:()=>sv,ZodLazy:()=>tS,ZodLiteral:()=>O5,ZodMAC:()=>g5,ZodMap:()=>R5,ZodNaN:()=>X5,ZodNanoID:()=>rv,ZodNever:()=>$5,ZodNonOptional:()=>_v,ZodNull:()=>w5,ZodNullable:()=>F5,ZodNumber:()=>Tc,ZodNumberFormat:()=>ks,ZodObject:()=>$p,ZodOptional:()=>wv,ZodPipe:()=>kv,ZodPrefault:()=>G5,ZodPromise:()=>nS,ZodReadonly:()=>Y5,ZodRecord:()=>Ip,ZodSet:()=>D5,ZodString:()=>Sc,ZodStringFormat:()=>bt,ZodSuccess:()=>W5,ZodSymbol:()=>b5,ZodTemplateLiteral:()=>eS,ZodTransform:()=>j5,ZodTuple:()=>A5,ZodType:()=>He,ZodULID:()=>iv,ZodURL:()=>_p,ZodUUID:()=>$o,ZodUndefined:()=>x5,ZodUnion:()=>Tp,ZodUnknown:()=>S5,ZodVoid:()=>T5,ZodXID:()=>av,ZodXor:()=>P5,_ZodString:()=>Qg,_default:()=>V5,_function:()=>$D,any:()=>nD,array:()=>Sp,base64:()=>UR,base64url:()=>BR,bigint:()=>YR,boolean:()=>y5,catch:()=>K5,check:()=>TD,cidrv4:()=>LR,cidrv6:()=>jR,codec:()=>_D,cuid:()=>zR,cuid2:()=>ER,custom:()=>ID,date:()=>iD,describe:()=>PD,discriminatedUnion:()=>dD,e164:()=>FR,email:()=>xR,emoji:()=>PR,enum:()=>bv,exactOptional:()=>B5,file:()=>yD,float32:()=>WR,float64:()=>JR,function:()=>$D,guid:()=>wR,hash:()=>HR,hex:()=>qR,hostname:()=>GR,httpUrl:()=>IR,instanceof:()=>zD,int:()=>Yg,int32:()=>KR,int64:()=>QR,intersection:()=>E5,ipv4:()=>RR,ipv6:()=>OR,json:()=>AD,jwt:()=>ZR,keyof:()=>aD,ksuid:()=>NR,lazy:()=>rS,literal:()=>vD,looseObject:()=>cD,looseRecord:()=>mD,mac:()=>DR,map:()=>fD,meta:()=>CD,nan:()=>wD,nanoid:()=>CR,nativeEnum:()=>gD,never:()=>vv,nonoptional:()=>H5,null:()=>_5,nullable:()=>xp,nullish:()=>bD,number:()=>v5,object:()=>sD,optional:()=>bp,partialRecord:()=>pD,pipe:()=>wp,prefault:()=>q5,preprocess:()=>MD,promise:()=>SD,readonly:()=>Q5,record:()=>N5,refine:()=>iS,set:()=>hD,strictObject:()=>lD,string:()=>Xg,stringFormat:()=>VR,stringbool:()=>ED,success:()=>xD,superRefine:()=>aS,symbol:()=>tD,templateLiteral:()=>kD,transform:()=>xv,tuple:()=>M5,uint32:()=>XR,uint64:()=>eD,ulid:()=>AR,undefined:()=>rD,union:()=>yv,unknown:()=>_s,url:()=>TR,uuid:()=>_R,uuidv4:()=>kR,uuidv6:()=>SR,uuidv7:()=>$R,void:()=>oD,xid:()=>MR,xor:()=>uD});var qg={};Zr(qg,{endsWith:()=>mc,gt:()=>ko,gte:()=>Rr,includes:()=>dc,length:()=>ws,lowercase:()=>cc,lt:()=>_o,lte:()=>fn,maxLength:()=>xs,maxSize:()=>pa,mime:()=>fc,minLength:()=>si,minSize:()=>So,multipleOf:()=>da,negative:()=>Og,nonnegative:()=>jg,nonpositive:()=>Lg,normalize:()=>hc,overwrite:()=>Qn,positive:()=>Dg,property:()=>Ug,regex:()=>lc,size:()=>bs,slugify:()=>bc,startsWith:()=>pc,toLowerCase:()=>vc,toUpperCase:()=>yc,trim:()=>gc,uppercase:()=>uc});var _c={};Zr(_c,{ZodISODate:()=>Wg,ZodISODateTime:()=>Hg,ZodISODuration:()=>Kg,ZodISOTime:()=>Jg,date:()=>t5,datetime:()=>e5,duration:()=>n5,time:()=>r5});var Hg=j("ZodISODateTime",(e,t)=>{E2.init(e,t),bt.init(e,t)});function e5(e){return Rk(Hg,e)}var Wg=j("ZodISODate",(e,t)=>{A2.init(e,t),bt.init(e,t)});function t5(e){return Dk(Wg,e)}var Jg=j("ZodISOTime",(e,t)=>{M2.init(e,t),bt.init(e,t)});function r5(e){return Ok(Jg,e)}var Kg=j("ZodISODuration",(e,t)=>{N2.init(e,t),bt.init(e,t)});function n5(e){return Lk(Kg,e)}var bR=(e,t)=>{op.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>ap(e,r)},flatten:{value:r=>ip(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,Ql,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,Ql,2)}},isEmpty:{get(){return e.issues.length===0}}})},VQ=j("ZodError",bR),Kr=j("ZodError",bR,{Parent:Error});var o5=rc(Kr),i5=nc(Kr),a5=oc(Kr),s5=ic(Kr),l5=V0(Kr),c5=G0(Kr),u5=q0(Kr),d5=H0(Kr),p5=W0(Kr),m5=J0(Kr),f5=K0(Kr),h5=X0(Kr);var He=j("ZodType",(e,t)=>(Le.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:wc(e,"input"),output:wc(e,"output")}}),e.toJSONSchema=g6(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(te.mergeDefs(t,{checks:[...t.checks??[],...r.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]}),{parent:!0}),e.with=e.check,e.clone=(r,o)=>Nr(e,r,o),e.brand=()=>e,e.register=((r,o)=>(r.add(e,o),e)),e.parse=(r,o)=>o5(e,r,o,{callee:e.parse}),e.safeParse=(r,o)=>a5(e,r,o),e.parseAsync=async(r,o)=>i5(e,r,o,{callee:e.parseAsync}),e.safeParseAsync=async(r,o)=>s5(e,r,o),e.spa=e.safeParseAsync,e.encode=(r,o)=>l5(e,r,o),e.decode=(r,o)=>c5(e,r,o),e.encodeAsync=async(r,o)=>u5(e,r,o),e.decodeAsync=async(r,o)=>d5(e,r,o),e.safeEncode=(r,o)=>p5(e,r,o),e.safeDecode=(r,o)=>m5(e,r,o),e.safeEncodeAsync=async(r,o)=>f5(e,r,o),e.safeDecodeAsync=async(r,o)=>h5(e,r,o),e.refine=(r,o)=>e.check(iS(r,o)),e.superRefine=r=>e.check(aS(r)),e.overwrite=r=>e.check(Qn(r)),e.optional=()=>bp(e),e.exactOptional=()=>B5(e),e.nullable=()=>xp(e),e.nullish=()=>bp(xp(e)),e.nonoptional=r=>H5(e,r),e.array=()=>Sp(e),e.or=r=>yv([e,r]),e.and=r=>E5(e,r),e.transform=r=>wp(e,xv(r)),e.default=r=>V5(e,r),e.prefault=r=>q5(e,r),e.catch=r=>K5(e,r),e.pipe=r=>wp(e,r),e.readonly=()=>Q5(e),e.describe=r=>{let o=e.clone();return vr.add(o,{description:r}),o},Object.defineProperty(e,"description",{get(){return vr.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return vr.get(e);let o=e.clone();return vr.add(o,r[0]),o},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=r=>r(e),e)),Qg=j("_ZodString",(e,t)=>{ys.init(e,t),He.init(e,t),e._zod.processJSONSchema=(o,n,i)=>v6(e,o,n,i);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...o)=>e.check(lc(...o)),e.includes=(...o)=>e.check(dc(...o)),e.startsWith=(...o)=>e.check(pc(...o)),e.endsWith=(...o)=>e.check(mc(...o)),e.min=(...o)=>e.check(si(...o)),e.max=(...o)=>e.check(xs(...o)),e.length=(...o)=>e.check(ws(...o)),e.nonempty=(...o)=>e.check(si(1,...o)),e.lowercase=o=>e.check(cc(o)),e.uppercase=o=>e.check(uc(o)),e.trim=()=>e.check(gc()),e.normalize=(...o)=>e.check(hc(...o)),e.toLowerCase=()=>e.check(vc()),e.toUpperCase=()=>e.check(yc()),e.slugify=()=>e.check(bc())}),Sc=j("ZodString",(e,t)=>{ys.init(e,t),Qg.init(e,t),e.email=r=>e.check(gg(ev,r)),e.url=r=>e.check(gp(_p,r)),e.jwt=r=>e.check(Rg(hv,r)),e.emoji=r=>e.check(wg(tv,r)),e.guid=r=>e.check(hp(yp,r)),e.uuid=r=>e.check(vg($o,r)),e.uuidv4=r=>e.check(yg($o,r)),e.uuidv6=r=>e.check(bg($o,r)),e.uuidv7=r=>e.check(xg($o,r)),e.nanoid=r=>e.check(_g(rv,r)),e.guid=r=>e.check(hp(yp,r)),e.cuid=r=>e.check(kg(nv,r)),e.cuid2=r=>e.check(Sg(ov,r)),e.ulid=r=>e.check($g(iv,r)),e.base64=r=>e.check(Ag(pv,r)),e.base64url=r=>e.check(Mg(mv,r)),e.xid=r=>e.check(Tg(av,r)),e.ksuid=r=>e.check(Ig(sv,r)),e.ipv4=r=>e.check(Pg(lv,r)),e.ipv6=r=>e.check(Cg(cv,r)),e.cidrv4=r=>e.check(zg(uv,r)),e.cidrv6=r=>e.check(Eg(dv,r)),e.e164=r=>e.check(Ng(fv,r)),e.datetime=r=>e.check(e5(r)),e.date=r=>e.check(t5(r)),e.time=r=>e.check(r5(r)),e.duration=r=>e.check(n5(r))});function Xg(e){return Ek(Sc,e)}var bt=j("ZodStringFormat",(e,t)=>{yt.init(e,t),Qg.init(e,t)}),ev=j("ZodEmail",(e,t)=>{_2.init(e,t),bt.init(e,t)});function xR(e){return gg(ev,e)}var yp=j("ZodGUID",(e,t)=>{x2.init(e,t),bt.init(e,t)});function wR(e){return hp(yp,e)}var $o=j("ZodUUID",(e,t)=>{w2.init(e,t),bt.init(e,t)});function _R(e){return vg($o,e)}function kR(e){return yg($o,e)}function SR(e){return bg($o,e)}function $R(e){return xg($o,e)}var _p=j("ZodURL",(e,t)=>{k2.init(e,t),bt.init(e,t)});function TR(e){return gp(_p,e)}function IR(e){return gp(_p,{protocol:/^https?$/,hostname:Mn.domain,...te.normalizeParams(e)})}var tv=j("ZodEmoji",(e,t)=>{S2.init(e,t),bt.init(e,t)});function PR(e){return wg(tv,e)}var rv=j("ZodNanoID",(e,t)=>{$2.init(e,t),bt.init(e,t)});function CR(e){return _g(rv,e)}var nv=j("ZodCUID",(e,t)=>{T2.init(e,t),bt.init(e,t)});function zR(e){return kg(nv,e)}var ov=j("ZodCUID2",(e,t)=>{I2.init(e,t),bt.init(e,t)});function ER(e){return Sg(ov,e)}var iv=j("ZodULID",(e,t)=>{P2.init(e,t),bt.init(e,t)});function AR(e){return $g(iv,e)}var av=j("ZodXID",(e,t)=>{C2.init(e,t),bt.init(e,t)});function MR(e){return Tg(av,e)}var sv=j("ZodKSUID",(e,t)=>{z2.init(e,t),bt.init(e,t)});function NR(e){return Ig(sv,e)}var lv=j("ZodIPv4",(e,t)=>{R2.init(e,t),bt.init(e,t)});function RR(e){return Pg(lv,e)}var g5=j("ZodMAC",(e,t)=>{O2.init(e,t),bt.init(e,t)});function DR(e){return Mk(g5,e)}var cv=j("ZodIPv6",(e,t)=>{D2.init(e,t),bt.init(e,t)});function OR(e){return Cg(cv,e)}var uv=j("ZodCIDRv4",(e,t)=>{L2.init(e,t),bt.init(e,t)});function LR(e){return zg(uv,e)}var dv=j("ZodCIDRv6",(e,t)=>{j2.init(e,t),bt.init(e,t)});function jR(e){return Eg(dv,e)}var pv=j("ZodBase64",(e,t)=>{B2.init(e,t),bt.init(e,t)});function UR(e){return Ag(pv,e)}var mv=j("ZodBase64URL",(e,t)=>{F2.init(e,t),bt.init(e,t)});function BR(e){return Mg(mv,e)}var fv=j("ZodE164",(e,t)=>{Z2.init(e,t),bt.init(e,t)});function FR(e){return Ng(fv,e)}var hv=j("ZodJWT",(e,t)=>{V2.init(e,t),bt.init(e,t)});function ZR(e){return Rg(hv,e)}var $c=j("ZodCustomStringFormat",(e,t)=>{G2.init(e,t),bt.init(e,t)});function VR(e,t,r={}){return xc($c,e,t,r)}function GR(e){return xc($c,"hostname",Mn.hostname,e)}function qR(e){return xc($c,"hex",Mn.hex,e)}function HR(e,t){let r=t?.enc??"hex",o=`${e}_${r}`,n=Mn[o];if(!n)throw new Error(`Unrecognized hash format: ${o}`);return xc($c,o,n,t)}var Tc=j("ZodNumber",(e,t)=>{sg.init(e,t),He.init(e,t),e._zod.processJSONSchema=(o,n,i)=>y6(e,o,n,i),e.gt=(o,n)=>e.check(ko(o,n)),e.gte=(o,n)=>e.check(Rr(o,n)),e.min=(o,n)=>e.check(Rr(o,n)),e.lt=(o,n)=>e.check(_o(o,n)),e.lte=(o,n)=>e.check(fn(o,n)),e.max=(o,n)=>e.check(fn(o,n)),e.int=o=>e.check(Yg(o)),e.safe=o=>e.check(Yg(o)),e.positive=o=>e.check(ko(0,o)),e.nonnegative=o=>e.check(Rr(0,o)),e.negative=o=>e.check(_o(0,o)),e.nonpositive=o=>e.check(fn(0,o)),e.multipleOf=(o,n)=>e.check(da(o,n)),e.step=(o,n)=>e.check(da(o,n)),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 v5(e){return jk(Tc,e)}var ks=j("ZodNumberFormat",(e,t)=>{q2.init(e,t),Tc.init(e,t)});function Yg(e){return Bk(ks,e)}function WR(e){return Fk(ks,e)}function JR(e){return Zk(ks,e)}function KR(e){return Vk(ks,e)}function XR(e){return Gk(ks,e)}var Ic=j("ZodBoolean",(e,t)=>{up.init(e,t),He.init(e,t),e._zod.processJSONSchema=(r,o,n)=>b6(e,r,o,n)});function y5(e){return qk(Ic,e)}var Pc=j("ZodBigInt",(e,t)=>{lg.init(e,t),He.init(e,t),e._zod.processJSONSchema=(o,n,i)=>x6(e,o,n,i),e.gte=(o,n)=>e.check(Rr(o,n)),e.min=(o,n)=>e.check(Rr(o,n)),e.gt=(o,n)=>e.check(ko(o,n)),e.gte=(o,n)=>e.check(Rr(o,n)),e.min=(o,n)=>e.check(Rr(o,n)),e.lt=(o,n)=>e.check(_o(o,n)),e.lte=(o,n)=>e.check(fn(o,n)),e.max=(o,n)=>e.check(fn(o,n)),e.positive=o=>e.check(ko(BigInt(0),o)),e.negative=o=>e.check(_o(BigInt(0),o)),e.nonpositive=o=>e.check(fn(BigInt(0),o)),e.nonnegative=o=>e.check(Rr(BigInt(0),o)),e.multipleOf=(o,n)=>e.check(da(o,n));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function YR(e){return Wk(Pc,e)}var gv=j("ZodBigIntFormat",(e,t)=>{H2.init(e,t),Pc.init(e,t)});function QR(e){return Kk(gv,e)}function eD(e){return Xk(gv,e)}var b5=j("ZodSymbol",(e,t)=>{W2.init(e,t),He.init(e,t),e._zod.processJSONSchema=(r,o,n)=>w6(e,r,o,n)});function tD(e){return Yk(b5,e)}var x5=j("ZodUndefined",(e,t)=>{J2.init(e,t),He.init(e,t),e._zod.processJSONSchema=(r,o,n)=>k6(e,r,o,n)});function rD(e){return Qk(x5,e)}var w5=j("ZodNull",(e,t)=>{K2.init(e,t),He.init(e,t),e._zod.processJSONSchema=(r,o,n)=>_6(e,r,o,n)});function _5(e){return e6(w5,e)}var k5=j("ZodAny",(e,t)=>{X2.init(e,t),He.init(e,t),e._zod.processJSONSchema=(r,o,n)=>T6(e,r,o,n)});function nD(){return t6(k5)}var S5=j("ZodUnknown",(e,t)=>{Y2.init(e,t),He.init(e,t),e._zod.processJSONSchema=(r,o,n)=>I6(e,r,o,n)});function _s(){return r6(S5)}var $5=j("ZodNever",(e,t)=>{Q2.init(e,t),He.init(e,t),e._zod.processJSONSchema=(r,o,n)=>$6(e,r,o,n)});function vv(e){return n6($5,e)}var T5=j("ZodVoid",(e,t)=>{ek.init(e,t),He.init(e,t),e._zod.processJSONSchema=(r,o,n)=>S6(e,r,o,n)});function oD(e){return o6(T5,e)}var kp=j("ZodDate",(e,t)=>{tk.init(e,t),He.init(e,t),e._zod.processJSONSchema=(o,n,i)=>P6(e,o,n,i),e.min=(o,n)=>e.check(Rr(o,n)),e.max=(o,n)=>e.check(fn(o,n));let r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function iD(e){return i6(kp,e)}var I5=j("ZodArray",(e,t)=>{rk.init(e,t),He.init(e,t),e._zod.processJSONSchema=(r,o,n)=>U6(e,r,o,n),e.element=t.element,e.min=(r,o)=>e.check(si(r,o)),e.nonempty=r=>e.check(si(1,r)),e.max=(r,o)=>e.check(xs(r,o)),e.length=(r,o)=>e.check(ws(r,o)),e.unwrap=()=>e.element});function Sp(e,t){return l6(I5,e,t)}function aD(e){let t=e._zod.def.shape;return bv(Object.keys(t))}var $p=j("ZodObject",(e,t)=>{nk.init(e,t),He.init(e,t),e._zod.processJSONSchema=(r,o,n)=>B6(e,r,o,n),te.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>bv(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:_s()}),e.loose=()=>e.clone({...e._zod.def,catchall:_s()}),e.strict=()=>e.clone({...e._zod.def,catchall:vv()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>te.extend(e,r),e.safeExtend=r=>te.safeExtend(e,r),e.merge=r=>te.merge(e,r),e.pick=r=>te.pick(e,r),e.omit=r=>te.omit(e,r),e.partial=(...r)=>te.partial(wv,e,r[0]),e.required=(...r)=>te.required(_v,e,r[0])});function sD(e,t){let r={type:"object",shape:e??{},...te.normalizeParams(t)};return new $p(r)}function lD(e,t){return new $p({type:"object",shape:e,catchall:vv(),...te.normalizeParams(t)})}function cD(e,t){return new $p({type:"object",shape:e,catchall:_s(),...te.normalizeParams(t)})}var Tp=j("ZodUnion",(e,t)=>{dp.init(e,t),He.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Fg(e,r,o,n),e.options=t.options});function yv(e,t){return new Tp({type:"union",options:e,...te.normalizeParams(t)})}var P5=j("ZodXor",(e,t)=>{Tp.init(e,t),ok.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Fg(e,r,o,n),e.options=t.options});function uD(e,t){return new P5({type:"union",options:e,inclusive:!1,...te.normalizeParams(t)})}var C5=j("ZodDiscriminatedUnion",(e,t)=>{Tp.init(e,t),ik.init(e,t)});function dD(e,t,r){return new C5({type:"union",options:t,discriminator:e,...te.normalizeParams(r)})}var z5=j("ZodIntersection",(e,t)=>{ak.init(e,t),He.init(e,t),e._zod.processJSONSchema=(r,o,n)=>F6(e,r,o,n)});function E5(e,t){return new z5({type:"intersection",left:e,right:t})}var A5=j("ZodTuple",(e,t)=>{cg.init(e,t),He.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Z6(e,r,o,n),e.rest=r=>e.clone({...e._zod.def,rest:r})});function M5(e,t,r){let o=t instanceof Le,n=o?r:t,i=o?t:null;return new A5({type:"tuple",items:e,rest:i,...te.normalizeParams(n)})}var Ip=j("ZodRecord",(e,t)=>{sk.init(e,t),He.init(e,t),e._zod.processJSONSchema=(r,o,n)=>V6(e,r,o,n),e.keyType=t.keyType,e.valueType=t.valueType});function N5(e,t,r){return new Ip({type:"record",keyType:e,valueType:t,...te.normalizeParams(r)})}function pD(e,t,r){let o=Nr(e);return o._zod.values=void 0,new Ip({type:"record",keyType:o,valueType:t,...te.normalizeParams(r)})}function mD(e,t,r){return new Ip({type:"record",keyType:e,valueType:t,mode:"loose",...te.normalizeParams(r)})}var R5=j("ZodMap",(e,t)=>{lk.init(e,t),He.init(e,t),e._zod.processJSONSchema=(r,o,n)=>L6(e,r,o,n),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...r)=>e.check(So(...r)),e.nonempty=r=>e.check(So(1,r)),e.max=(...r)=>e.check(pa(...r)),e.size=(...r)=>e.check(bs(...r))});function fD(e,t,r){return new R5({type:"map",keyType:e,valueType:t,...te.normalizeParams(r)})}var D5=j("ZodSet",(e,t)=>{ck.init(e,t),He.init(e,t),e._zod.processJSONSchema=(r,o,n)=>j6(e,r,o,n),e.min=(...r)=>e.check(So(...r)),e.nonempty=r=>e.check(So(1,r)),e.max=(...r)=>e.check(pa(...r)),e.size=(...r)=>e.check(bs(...r))});function hD(e,t){return new D5({type:"set",valueType:e,...te.normalizeParams(t)})}var kc=j("ZodEnum",(e,t)=>{uk.init(e,t),He.init(e,t),e._zod.processJSONSchema=(o,n,i)=>C6(e,o,n,i),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(o,n)=>{let i={};for(let a of o)if(r.has(a))i[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new kc({...t,checks:[],...te.normalizeParams(n),entries:i})},e.exclude=(o,n)=>{let i={...t.entries};for(let a of o)if(r.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new kc({...t,checks:[],...te.normalizeParams(n),entries:i})}});function bv(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new kc({type:"enum",entries:r,...te.normalizeParams(t)})}function gD(e,t){return new kc({type:"enum",entries:e,...te.normalizeParams(t)})}var O5=j("ZodLiteral",(e,t)=>{dk.init(e,t),He.init(e,t),e._zod.processJSONSchema=(r,o,n)=>z6(e,r,o,n),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 vD(e,t){return new O5({type:"literal",values:Array.isArray(e)?e:[e],...te.normalizeParams(t)})}var L5=j("ZodFile",(e,t)=>{pk.init(e,t),He.init(e,t),e._zod.processJSONSchema=(r,o,n)=>M6(e,r,o,n),e.min=(r,o)=>e.check(So(r,o)),e.max=(r,o)=>e.check(pa(r,o)),e.mime=(r,o)=>e.check(fc(Array.isArray(r)?r:[r],o))});function yD(e){return c6(L5,e)}var j5=j("ZodTransform",(e,t)=>{mk.init(e,t),He.init(e,t),e._zod.processJSONSchema=(r,o,n)=>O6(e,r,o,n),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new aa(e.constructor.name);r.addIssue=i=>{if(typeof i=="string")r.issues.push(te.issue(i,r.value,t));else{let a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=e),r.issues.push(te.issue(a))}};let n=t.transform(r.value,r);return n instanceof Promise?n.then(i=>(r.value=i,r)):(r.value=n,r)}});function xv(e){return new j5({type:"transform",transform:e})}var wv=j("ZodOptional",(e,t)=>{ug.init(e,t),He.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Zg(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function bp(e){return new wv({type:"optional",innerType:e})}var U5=j("ZodExactOptional",(e,t)=>{fk.init(e,t),He.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Zg(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function B5(e){return new U5({type:"optional",innerType:e})}var F5=j("ZodNullable",(e,t)=>{hk.init(e,t),He.init(e,t),e._zod.processJSONSchema=(r,o,n)=>G6(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function xp(e){return new F5({type:"nullable",innerType:e})}function bD(e){return bp(xp(e))}var Z5=j("ZodDefault",(e,t)=>{gk.init(e,t),He.init(e,t),e._zod.processJSONSchema=(r,o,n)=>H6(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function V5(e,t){return new Z5({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():te.shallowClone(t)}})}var G5=j("ZodPrefault",(e,t)=>{vk.init(e,t),He.init(e,t),e._zod.processJSONSchema=(r,o,n)=>W6(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function q5(e,t){return new G5({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():te.shallowClone(t)}})}var _v=j("ZodNonOptional",(e,t)=>{yk.init(e,t),He.init(e,t),e._zod.processJSONSchema=(r,o,n)=>q6(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function H5(e,t){return new _v({type:"nonoptional",innerType:e,...te.normalizeParams(t)})}var W5=j("ZodSuccess",(e,t)=>{bk.init(e,t),He.init(e,t),e._zod.processJSONSchema=(r,o,n)=>N6(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function xD(e){return new W5({type:"success",innerType:e})}var J5=j("ZodCatch",(e,t)=>{xk.init(e,t),He.init(e,t),e._zod.processJSONSchema=(r,o,n)=>J6(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function K5(e,t){return new J5({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var X5=j("ZodNaN",(e,t)=>{wk.init(e,t),He.init(e,t),e._zod.processJSONSchema=(r,o,n)=>E6(e,r,o,n)});function wD(e){return s6(X5,e)}var kv=j("ZodPipe",(e,t)=>{_k.init(e,t),He.init(e,t),e._zod.processJSONSchema=(r,o,n)=>K6(e,r,o,n),e.in=t.in,e.out=t.out});function wp(e,t){return new kv({type:"pipe",in:e,out:t})}var Sv=j("ZodCodec",(e,t)=>{kv.init(e,t),pp.init(e,t)});function _D(e,t,r){return new Sv({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}var Y5=j("ZodReadonly",(e,t)=>{kk.init(e,t),He.init(e,t),e._zod.processJSONSchema=(r,o,n)=>X6(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Q5(e){return new Y5({type:"readonly",innerType:e})}var eS=j("ZodTemplateLiteral",(e,t)=>{Sk.init(e,t),He.init(e,t),e._zod.processJSONSchema=(r,o,n)=>A6(e,r,o,n)});function kD(e,t){return new eS({type:"template_literal",parts:e,...te.normalizeParams(t)})}var tS=j("ZodLazy",(e,t)=>{Ik.init(e,t),He.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Q6(e,r,o,n),e.unwrap=()=>e._zod.def.getter()});function rS(e){return new tS({type:"lazy",getter:e})}var nS=j("ZodPromise",(e,t)=>{Tk.init(e,t),He.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Y6(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function SD(e){return new nS({type:"promise",innerType:e})}var oS=j("ZodFunction",(e,t)=>{$k.init(e,t),He.init(e,t),e._zod.processJSONSchema=(r,o,n)=>D6(e,r,o,n)});function $D(e){return new oS({type:"function",input:Array.isArray(e?.input)?M5(e?.input):e?.input??Sp(_s()),output:e?.output??_s()})}var Pp=j("ZodCustom",(e,t)=>{Pk.init(e,t),He.init(e,t),e._zod.processJSONSchema=(r,o,n)=>R6(e,r,o,n)});function TD(e){let t=new kt({check:"custom"});return t._zod.check=e,t}function ID(e,t){return u6(Pp,e??(()=>!0),t)}function iS(e,t={}){return d6(Pp,e,t)}function aS(e){return p6(e)}var PD=m6,CD=f6;function zD(e,t={}){let r=new Pp({type:"custom",check:"custom",fn:o=>o instanceof e,abort:!0,...te.normalizeParams(t)});return r._zod.bag.Class=e,r._zod.check=o=>{o.value instanceof e||o.issues.push({code:"invalid_type",expected:e.name,input:o.value,inst:r,path:[...r._zod.def.path??[]]})},r}var ED=(...e)=>h6({Codec:Sv,Boolean:Ic,String:Sc},...e);function AD(e){let t=rS(()=>yv([Xg(e),v5(),y5(),_5(),Sp(t),N5(Xg(),t)]));return t}function MD(e,t){return wp(xv(e),t)}var qQ={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 HQ(e){qt({customError:e})}function WQ(){return qt().customError}var sS;sS||(sS={});var ue={...vp,...qg,iso:_c},JQ=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function KQ(e,t){let r=e.$schema;return r==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":r==="http://json-schema.org/draft-07/schema#"?"draft-7":r==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function XQ(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let r=e.slice(1).split("/").filter(Boolean);if(r.length===0)return t.rootSchema;let o=t.version==="draft-2020-12"?"$defs":"definitions";if(r[0]===o){let n=r[1];if(!n||!t.defs[n])throw new Error(`Reference not found: ${e}`);return t.defs[n]}throw new Error(`Reference not found: ${e}`)}function ND(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return ue.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let n=e.$ref;if(t.refs.has(n))return t.refs.get(n);if(t.processing.has(n))return ue.lazy(()=>{if(!t.refs.has(n))throw new Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);let i=XQ(n,t),a=kr(i,t);return t.refs.set(n,a),t.processing.delete(n),a}if(e.enum!==void 0){let n=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&n.length===1&&n[0]===null)return ue.null();if(n.length===0)return ue.never();if(n.length===1)return ue.literal(n[0]);if(n.every(a=>typeof a=="string"))return ue.enum(n);let i=n.map(a=>ue.literal(a));return i.length<2?i[0]:ue.union([i[0],i[1],...i.slice(2)])}if(e.const!==void 0)return ue.literal(e.const);let r=e.type;if(Array.isArray(r)){let n=r.map(i=>{let a={...e,type:i};return ND(a,t)});return n.length===0?ue.never():n.length===1?n[0]:ue.union(n)}if(!r)return ue.any();let o;switch(r){case"string":{let n=ue.string();if(e.format){let i=e.format;i==="email"?n=n.check(ue.email()):i==="uri"||i==="uri-reference"?n=n.check(ue.url()):i==="uuid"||i==="guid"?n=n.check(ue.uuid()):i==="date-time"?n=n.check(ue.iso.datetime()):i==="date"?n=n.check(ue.iso.date()):i==="time"?n=n.check(ue.iso.time()):i==="duration"?n=n.check(ue.iso.duration()):i==="ipv4"?n=n.check(ue.ipv4()):i==="ipv6"?n=n.check(ue.ipv6()):i==="mac"?n=n.check(ue.mac()):i==="cidr"?n=n.check(ue.cidrv4()):i==="cidr-v6"?n=n.check(ue.cidrv6()):i==="base64"?n=n.check(ue.base64()):i==="base64url"?n=n.check(ue.base64url()):i==="e164"?n=n.check(ue.e164()):i==="jwt"?n=n.check(ue.jwt()):i==="emoji"?n=n.check(ue.emoji()):i==="nanoid"?n=n.check(ue.nanoid()):i==="cuid"?n=n.check(ue.cuid()):i==="cuid2"?n=n.check(ue.cuid2()):i==="ulid"?n=n.check(ue.ulid()):i==="xid"?n=n.check(ue.xid()):i==="ksuid"&&(n=n.check(ue.ksuid()))}typeof e.minLength=="number"&&(n=n.min(e.minLength)),typeof e.maxLength=="number"&&(n=n.max(e.maxLength)),e.pattern&&(n=n.regex(new RegExp(e.pattern))),o=n;break}case"number":case"integer":{let n=r==="integer"?ue.number().int():ue.number();typeof e.minimum=="number"&&(n=n.min(e.minimum)),typeof e.maximum=="number"&&(n=n.max(e.maximum)),typeof e.exclusiveMinimum=="number"?n=n.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(n=n.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?n=n.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(n=n.lt(e.maximum)),typeof e.multipleOf=="number"&&(n=n.multipleOf(e.multipleOf)),o=n;break}case"boolean":{o=ue.boolean();break}case"null":{o=ue.null();break}case"object":{let n={},i=e.properties||{},a=new Set(e.required||[]);for(let[c,d]of Object.entries(i)){let p=kr(d,t);n[c]=a.has(c)?p:p.optional()}if(e.propertyNames){let c=kr(e.propertyNames,t),d=e.additionalProperties&&typeof e.additionalProperties=="object"?kr(e.additionalProperties,t):ue.any();if(Object.keys(n).length===0){o=ue.record(c,d);break}let p=ue.object(n).passthrough(),m=ue.looseRecord(c,d);o=ue.intersection(p,m);break}if(e.patternProperties){let c=e.patternProperties,d=Object.keys(c),p=[];for(let h of d){let g=kr(c[h],t),w=ue.string().regex(new RegExp(h));p.push(ue.looseRecord(w,g))}let m=[];
104if(Object.keys(n).length>0&&m.push(ue.object(n).passthrough()),m.push(...p),m.length===0)o=ue.object({}).passthrough();else if(m.length===1)o=m[0];else{let h=ue.intersection(m[0],m[1]);for(let g=2;g<m.length;g++)h=ue.intersection(h,m[g]);o=h}break}let l=ue.object(n);e.additionalProperties===!1?o=l.strict():typeof e.additionalProperties=="object"?o=l.catchall(kr(e.additionalProperties,t)):o=l.passthrough();break}case"array":{let n=e.prefixItems,i=e.items;if(n&&Array.isArray(n)){let a=n.map(c=>kr(c,t)),l=i&&typeof i=="object"&&!Array.isArray(i)?kr(i,t):void 0;l?o=ue.tuple(a).rest(l):o=ue.tuple(a),typeof e.minItems=="number"&&(o=o.check(ue.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(ue.maxLength(e.maxItems)))}else if(Array.isArray(i)){let a=i.map(c=>kr(c,t)),l=e.additionalItems&&typeof e.additionalItems=="object"?kr(e.additionalItems,t):void 0;l?o=ue.tuple(a).rest(l):o=ue.tuple(a),typeof e.minItems=="number"&&(o=o.check(ue.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(ue.maxLength(e.maxItems)))}else if(i!==void 0){let a=kr(i,t),l=ue.array(a);typeof e.minItems=="number"&&(l=l.min(e.minItems)),typeof e.maxItems=="number"&&(l=l.max(e.maxItems)),o=l}else o=ue.array(ue.any());break}default:throw new Error(`Unsupported type: ${r}`)}return e.description&&(o=o.describe(e.description)),e.default!==void 0&&(o=o.default(e.default)),o}function kr(e,t){if(typeof e=="boolean")return e?ue.any():ue.never();let r=ND(e,t),o=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let l=e.anyOf.map(d=>kr(d,t)),c=ue.union(l);r=o?ue.intersection(r,c):c}if(e.oneOf&&Array.isArray(e.oneOf)){let l=e.oneOf.map(d=>kr(d,t)),c=ue.xor(l);r=o?ue.intersection(r,c):c}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)r=o?r:ue.any();else{let l=o?r:kr(e.allOf[0],t),c=o?0:1;for(let d=c;d<e.allOf.length;d++)l=ue.intersection(l,kr(e.allOf[d],t));r=l}e.nullable===!0&&t.version==="openapi-3.0"&&(r=ue.nullable(r)),e.readOnly===!0&&(r=ue.readonly(r));let n={},i=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let l of i)l in e&&(n[l]=e[l]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let l of a)l in e&&(n[l]=e[l]);for(let l of Object.keys(e))JQ.has(l)||(n[l]=e[l]);return Object.keys(n).length>0&&t.registry.add(r,n),r}function RD(e,t){if(typeof e=="boolean")return e?ue.any():ue.never();let r=KQ(e,t?.defaultTarget),o=e.$defs||e.definitions||{},n={version:r,defs:o,refs:new Map,processing:new Set,rootSchema:e,registry:t?.registry??vr};return kr(e,n)}var lS={};Zr(lS,{bigint:()=>tee,boolean:()=>eee,date:()=>ree,number:()=>QQ,string:()=>YQ});function YQ(e){return Ak(Sc,e)}function QQ(e){return Uk(Tc,e)}function eee(e){return Hk(Ic,e)}function tee(e){return Jk(Pc,e)}function ree(e){return a6(kp,e)}qt(dg());var oee=Object.defineProperty,iee=(e,t)=>{for(var r in t)oee(e,r,{get:t[r],enumerable:!0})},aee="AI_InvalidArgumentError",see=`vercel.ai.error.${aee}`,lee=Symbol.for(see),cee;cee=lee;var uee="AI_InvalidStreamPartError",dee=`vercel.ai.error.${uee}`,pee=Symbol.for(dee),mee;mee=pee;var fee="AI_InvalidToolApprovalError",hee=`vercel.ai.error.${fee}`,gee=Symbol.for(hee),vee;vee=gee;var yee="AI_InvalidToolApprovalSignatureError",bee=`vercel.ai.error.${yee}`,xee=Symbol.for(bee),wee;wee=xee;var _ee="AI_InvalidToolInputError",kee=`vercel.ai.error.${_ee}`,See=Symbol.for(kee),$ee;$ee=See;var Tee="AI_ToolCallNotFoundForApprovalError",Iee=`vercel.ai.error.${Tee}`,Pee=Symbol.for(Iee),Cee;Cee=Pee;var zee="AI_MissingToolResultsError",Eee=`vercel.ai.error.${zee}`,Aee=Symbol.for(Eee),Mee;Mee=Aee;var Nee="AI_NoImageGeneratedError",Ree=`vercel.ai.error.${Nee}`,Dee=Symbol.for(Ree),Oee;Oee=Dee;var DD="AI_NoObjectGeneratedError",OD=`vercel.ai.error.${DD}`,Lee=Symbol.for(OD),LD,ga=class extends it{constructor({message:e="No object generated.",cause:t,text:r,response:o,usage:n,finishReason:i}){super({name:DD,message:e,cause:t}),this[LD]=!0,this.text=r,this.response=o,this.usage=n,this.finishReason=i}static isInstance(e){return it.hasMarker(e,OD)}};LD=Lee;var jee="AI_NoOutputGeneratedError",Uee=`vercel.ai.error.${jee}`,Bee=Symbol.for(Uee),Fee;Fee=Bee;var Zee="AI_NoSpeechGeneratedError",Vee=`vercel.ai.error.${Zee}`,Gee=Symbol.for(Vee),qee;qee=Gee;var Hee="AI_NoTranscriptGeneratedError",Wee=`vercel.ai.error.${Hee}`,Jee=Symbol.for(Wee),Kee;Kee=Jee;var Xee="AI_NoVideoGeneratedError",Yee=`vercel.ai.error.${Xee}`,Qee=Symbol.for(Yee),ete;ete=Qee;var tte="AI_NoSuchToolError",rte=`vercel.ai.error.${tte}`,nte=Symbol.for(rte),ote;ote=nte;var ite="AI_ToolCallRepairError",ate=`vercel.ai.error.${ite}`,ste=Symbol.for(ate),lte;lte=ste;var jD="AI_UIMessageStreamError",UD=`vercel.ai.error.${jD}`,cte=Symbol.for(UD),BD,Cc=class extends it{constructor({chunkType:e,chunkId:t,message:r}){super({name:jD,message:r}),this[BD]=!0,this.chunkType=e,this.chunkId=t}static isInstance(e){return it.hasMarker(e,UD)}};BD=cte;var ute="AI_InvalidDataContentError",dte=`vercel.ai.error.${ute}`,pte=Symbol.for(dte),mte;mte=pte;var fte="AI_InvalidMessageRoleError",hte=`vercel.ai.error.${fte}`,gte=Symbol.for(hte),vte;vte=gte;var yte="AI_MessageConversionError",bte=`vercel.ai.error.${yte}`,xte=Symbol.for(bte),wte;wte=xte;var _te="AI_RetryError",kte=`vercel.ai.error.${_te}`,Ste=Symbol.for(kte),$te;$te=Ste;var Tte="6.0.218",Ite=async({url:e,maxBytes:t,abortSignal:r})=>{var o;let n=e.toString();try{let i=N0({},`ai-sdk/${Tte}`,BM()),a=await LM({url:n,headers:i,abortSignal:r});if(!a.ok)throw await M0(a),new Hr({url:n,statusCode:a.status,statusText:a.statusText});return{data:await jM({response:a,url:n,maxBytes:t??c4}),mediaType:(o=a.headers.get("content-type"))!=null?o:void 0}}catch(i){throw Hr.isInstance(i)?i:new Hr({url:n,cause:i})}};var FD=_.union([_.string(),_.instanceof(Uint8Array),_.instanceof(ArrayBuffer),_.custom(e=>{var t,r;return(r=(t=globalThis.Buffer)==null?void 0:t.isBuffer(e))!=null?r:!1},{message:"Must be a Buffer"})]);var Ss=_.lazy(()=>_.union([_.null(),_.string(),_.number(),_.boolean(),_.record(_.string(),Ss.optional()),_.array(Ss)])),Te=_.record(_.string(),_.record(_.string(),Ss.optional())),ZD=_.object({type:_.literal("text"),text:_.string(),providerOptions:Te.optional()}),Pte=_.object({type:_.literal("image"),image:_.union([FD,_.instanceof(URL)]),mediaType:_.string().optional(),providerOptions:Te.optional()}),VD=_.object({type:_.literal("file"),data:_.union([FD,_.instanceof(URL)]),filename:_.string().optional(),mediaType:_.string(),providerOptions:Te.optional()}),Cte=_.object({type:_.literal("reasoning"),text:_.string(),providerOptions:Te.optional()}),zte=_.object({type:_.literal("tool-call"),toolCallId:_.string(),toolName:_.string(),input
104:_.unknown(),providerOptions:Te.optional(),providerExecuted:_.boolean().optional()}),Ete=_.discriminatedUnion("type",[_.object({type:_.literal("text"),value:_.string(),providerOptions:Te.optional()}),_.object({type:_.literal("json"),value:Ss,providerOptions:Te.optional()}),_.object({type:_.literal("execution-denied"),reason:_.string().optional(),providerOptions:Te.optional()}),_.object({type:_.literal("error-text"),value:_.string(),providerOptions:Te.optional()}),_.object({type:_.literal("error-json"),value:Ss,providerOptions:Te.optional()}),_.object({type:_.literal("content"),value:_.array(_.union([_.object({type:_.literal("text"),text:_.string(),providerOptions:Te.optional()}),_.object({type:_.literal("media"),data:_.string(),mediaType:_.string()}),_.object({type:_.literal("file-data"),data:_.string(),mediaType:_.string(),filename:_.string().optional(),providerOptions:Te.optional()}),_.object({type:_.literal("file-url"),url:_.string(),providerOptions:Te.optional()}),_.object({type:_.literal("file-id"),fileId:_.union([_.string(),_.record(_.string(),_.string())]),providerOptions:Te.optional()}),_.object({type:_.literal("image-data"),data:_.string(),mediaType:_.string(),providerOptions:Te.optional()}),_.object({type:_.literal("image-url"),url:_.string(),providerOptions:Te.optional()}),_.object({type:_.literal("image-file-id"),fileId:_.union([_.string(),_.record(_.string(),_.string())]),providerOptions:Te.optional()}),_.object({type:_.literal("custom"),providerOptions:Te.optional()})]))})]),GD=_.object({type:_.literal("tool-result"),toolCallId:_.string(),toolName:_.string(),output:Ete,providerOptions:Te.optional()}),Ate=_.object({type:_.literal("tool-approval-request"),approvalId:_.string(),toolCallId:_.string()}),Mte=_.object({type:_.literal("tool-approval-response"),approvalId:_.string(),approved:_.boolean(),reason:_.string().optional()}),Nte=_.object({role:_.literal("system"),content:_.string(),providerOptions:Te.optional()}),Rte=_.object({role:_.literal("user"),content:_.union([_.string(),_.array(_.union([ZD,Pte,VD]))]),providerOptions:Te.optional()}),Dte=_.object({role:_.literal("assistant"),content:_.union([_.string(),_.array(_.union([ZD,VD,Cte,zte,GD,Ate]))]),providerOptions:Te.optional()}),Ote=_.object({role:_.literal("tool"),content:_.array(_.union([GD,Mte])),providerOptions:Te.optional()}),M8e=_.union([Nte,Rte,Dte,Ote]);function qD(e,t){if(e===void 0&&t===void 0)return;if(e===void 0)return t;if(t===void 0)return e;let r={...e};for(let o in t)if(!(o==="__proto__"||o==="constructor"||o==="prototype")&&Object.prototype.hasOwnProperty.call(t,o)){let n=t[o];if(n===void 0)continue;let i=o in e?e[o]:void 0,a=n!==null&&typeof n=="object"&&!Array.isArray(n)&&!(n instanceof Date)&&!(n instanceof RegExp),l=i!=null&&typeof i=="object"&&!Array.isArray(i)&&!(i instanceof Date)&&!(i instanceof RegExp);a&&l?r[o]=qD(i,n):r[o]=n}return r}var N8e=new TextEncoder;var Lte={};iee(Lte,{array:()=>Fte,choice:()=>Zte,json:()=>Vte,object:()=>Bte,text:()=>Ute});function jte(e){let t=["ROOT"],r=-1,o=null,n=0;function i(p){return p>="0"&&p<="9"||p>="A"&&p<="F"||p>="a"&&p<="f"}function a(p,m,h){switch(p){case'"':{r=m,t.pop(),t.push(h),t.push("INSIDE_STRING");break}case"f":case"t":case"n":{r=m,o=m,t.pop(),t.push(h),t.push("INSIDE_LITERAL");break}case"-":{t.pop(),t.push(h),t.push("INSIDE_NUMBER");break}case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{r=m,t.pop(),t.push(h),t.push("INSIDE_NUMBER");break}case"{":{r=m,t.pop(),t.push(h),t.push("INSIDE_OBJECT_START");break}case"[":{r=m,t.pop(),t.push(h),t.push("INSIDE_ARRAY_START");break}}}function l(p,m){switch(p){case",":{t.pop(),t.push("INSIDE_OBJECT_AFTER_COMMA");break}case"}":{r=m,t.pop();break}}}function c(p,m){switch(p){case",":{t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{r=m,t.pop();break}}}for(let p=0;p<e.length;p++){let m=e[p];switch(t[t.length-1]){case"ROOT":a(m,p,"FINISH");break;case"INSIDE_OBJECT_START":{switch(m){case'"':{t.pop(),t.push("INSIDE_OBJECT_KEY");break}case"}":{r=p,t.pop();break}}break}case"INSIDE_OBJECT_AFTER_COMMA":{m==='"'&&(t.pop(),t.push("INSIDE_OBJECT_KEY"));break}case"INSIDE_OBJECT_KEY":{m==='"'&&(t.pop(),t.push("INSIDE_OBJECT_AFTER_KEY"));break}case"INSIDE_OBJECT_AFTER_KEY":{m===":"&&(t.pop(),t.push("INSIDE_OBJECT_BEFORE_VALUE"));break}case"INSIDE_OBJECT_BEFORE_VALUE":{a(m,p,"INSIDE_OBJECT_AFTER_VALUE");break}case"INSIDE_OBJECT_AFTER_VALUE":{l(m,p);break}case"INSIDE_STRING":{switch(m){case'"':{t.pop(),r=p;break}case"\\":{t.push("INSIDE_STRING_ESCAPE");break}default:r=p}break}case"INSIDE_ARRAY_START":{m==="]"?(r=p,t.pop()):(r=p,a(m,p,"INSIDE_ARRAY_AFTER_VALUE"));break}case"INSIDE_ARRAY_AFTER_VALUE":{switch(m){case",":{t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{r=p,t.pop();break}default:{r=p;break}}break}case"INSIDE_ARRAY_AFTER_COMMA":{a(m,p,"INSIDE_ARRAY_AFTER_VALUE");break}case"INSIDE_STRING_ESCAPE":{t.pop(),m==="u"?(n=0,t.push("INSIDE_STRING_UNICODE_ESCAPE")):r=p;break}case"INSIDE_STRING_UNICODE_ESCAPE":{i(m)&&(n++,n===4&&(t.pop(),r=p));break}case"INSIDE_NUMBER":{switch(m){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{r=p;break}case"e":case"E":case"-":case".":break;case",":{t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&c(m,p),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&l(m,p);break}case"}":{t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&l(m,p);break}case"]":{t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&c(m,p);break}default:{t.pop();break}}break}case"INSIDE_LITERAL":{let g=e.substring(o,p+1);!"false".startsWith(g)&&!"true".startsWith(g)&&!"null".startsWith(g)?(t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"?l(m,p):t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&c(m,p)):r=p;break}}}let d=e.slice(0,r+1);for(let p=t.length-1;p>=0;p--)switch(t[p]){case"INSIDE_STRING":{d+='"';break}case"INSIDE_OBJECT_KEY":case"INSIDE_OBJECT_AFTER_KEY":case"INSIDE_OBJECT_AFTER_COMMA":case"INSIDE_OBJECT_START":case"INSIDE_OBJECT_BEFORE_VALUE":case"INSIDE_OBJECT_AFTER_VALUE":{d+="}";break}case"INSIDE_ARRAY_START":case"INSIDE_ARRAY_AFTER_COMMA":case"INSIDE_ARRAY_AFTER_VALUE":{d+="]";break}case"INSIDE_LITERAL":{let h=e.substring(o,e.length);"true".startsWith(h)?d+="true".slice(h.length):"false".startsWith(h)?d+="false".slice(h.length):"null".startsWith(h)&&(d+="null".slice(h.length))}}return d}async function Ep(e){if(e===void 0)return{value:void 0,state:"undefined-input"};let t=await ii({text:e});return t.success?{value:t.value,state:"successful-parse"}:(t=await ii({text:jte(e)}),t.success?{value:t.value,state:"repaired-parse"}:{value:void 0,state:"failed-parse"})}var Ute=()=>({name:"text",responseFormat:Promise.resolve({type:"text"}),async parseCompleteOutput({text:e}){return e},async parsePartialOutput({text:e}){return{partial:e}},createElementStreamTransform(){}}
vendor: 5,749 bytes, lines 104-108
104),Bte=({schema:e,name:t,description:r})=>{let o=O0(e);return{name:"object",responseFormat:wo(o.jsonSchema).then(n=>({type:"json",schema:n,...t!=null&&{name:t},...r!=null&&{description:r}})),async parseCompleteOutput({text:n},i){let a=await ii({text:n});if(!a.success)throw new ga({message:"No object generated: could not parse the response.",cause:a.error,text:n,response:i.response,usage:i.usage,finishReason:i.finishReason});let l=await Yl({value:a.value,schema:o});if(!l.success)throw new ga({message:"No object generated: response did not match schema.",cause:l.error,text:n,response:i.response,usage:i.usage,finishReason:i.finishReason});return l.value},async parsePartialOutput({text:n}){let i=await Ep(n);switch(i.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":return{partial:i.value}}},createElementStreamTransform(){}}},Fte=({element:e,name:t,description:r})=>{let o=O0(e);return{name:"array",responseFormat:wo(o.jsonSchema).then(n=>{let{$schema:i,...a}=n;return{type:"json",schema:{$schema:"http://json-schema.org/draft-07/schema#",type:"object",properties:{elements:{type:"array",items:a}},required:["elements"],additionalProperties:!1},...t!=null&&{name:t},...r!=null&&{description:r}}}),async parseCompleteOutput({text:n},i){let a=await ii({text:n});if(!a.success)throw new ga({message:"No object generated: could not parse the response.",cause:a.error,text:n,response:i.response,usage:i.usage,finishReason:i.finishReason});let l=a.value;if(l==null||typeof l!="object"||!("elements"in l)||!Array.isArray(l.elements))throw new ga({message:"No object generated: response did not match schema.",cause:new vo({value:l,cause:"response must be an object with an elements array"}),text:n,response:i.response,usage:i.usage,finishReason:i.finishReason});for(let c of l.elements){let d=await Yl({value:c,schema:o});if(!d.success)throw new ga({message:"No object generated: response did not match schema.",cause:d.error,text:n,response:i.response,usage:i.usage,finishReason:i.finishReason})}return l.elements},async parsePartialOutput({text:n}){let i=await Ep(n);switch(i.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":{let a=i.value;if(a==null||typeof a!="object"||!("elements"in a)||!Array.isArray(a.elements))return;let l=i.state==="repaired-parse"&&a.elements.length>0?a.elements.slice(0,-1):a.elements,c=[];for(let d of l){let p=await Yl({value:d,schema:o});p.success&&c.push(p.value)}return{partial:c}}}},createElementStreamTransform(){let n=0;return new TransformStream({transform({partialOutput:i},a){if(i!=null)for(;n<i.length;n++)a.enqueue(i[n])}})}}},Zte=({options:e,name:t,description:r})=>({name:"choice",responseFormat:Promise.resolve({type:"json",schema:{$schema:"http://json-schema.org/draft-07/schema#",type:"object",properties:{result:{type:"string",enum:e}},required:["result"],additionalProperties:!1},...t!=null&&{name:t},...r!=null&&{description:r}}),async parseCompleteOutput({text:o},n){let i=await ii({text:o});if(!i.success)throw new ga({message:"No object generated: could not parse the response.",cause:i.error,text:o,response:n.response,usage:n.usage,finishReason:n.finishReason});let a=i.value;if(a==null||typeof a!="object"||!("result"in a)||typeof a.result!="string"||!e.includes(a.result))throw new ga({message:"No object generated: response did not match schema.",cause:new vo({value:a,cause:"response must be an object that contains a choice value."}),text:o,response:n.response,usage:n.usage,finishReason:n.finishReason});return a.result},async parsePartialOutput({text:o}){let n=await Ep(o);switch(n.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":{let i=n.value;if(i==null||typeof i!="object"||!("result"in i)||typeof i.result!="string")return;let a=e.filter(l=>l.startsWith(i.result));return n.state==="successful-parse"?a.includes(i.result)?{partial:i.result}:void 0:a.length===1?{partial:a[0]}:void 0}}},createElementStreamTransform(){}}),Vte=({name:e,description:t}={})=>({name:"json",responseFormat:Promise.resolve({type:"json",...e!=null&&{name:e},...t!=null&&{description:t}}),async parseCompleteOutput({text:r},o){let n=await ii({text:r});if(!n.success)throw new ga({message:"No object generated: could not parse the response.",cause:n.error,text:r,response:o.response,usage:o.usage,finishReason:o.finishReason});return n.value},async parsePartialOutput({text:r}){let o=await Ep(r);switch(o.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":return o.value===void 0?void 0:{partial:o.value}}},createElementStreamTransform(){}});var L8e=oi({prefix:"aitxt",size:24});var U8e=class extends TransformStream{constructor(){super({transform(e,t){t.enqueue(`data: ${JSON.stringify(e)}
105
106`)},flush(e){e.enqueue(`data: [DONE]
107
108`)}})}};var Cp=_.record(_.string(),Ss.optional()),Gte=R0(()=>Kd(_.union([_.strictObject({type:_.literal("text-start"),id:_.string(),providerMetadata:Te.optional()}),_.strictObject({type:_.literal("text-delta"),id:_.string(),delta:_.string(),providerMetadata:Te.optional()}),_.strictObject({type:_.literal("text-end"),id:_.string(),providerMetadata:Te.optional()}),_.strictObject({type:_.literal("error"),errorText:_.string()}),_.strictObject({type:_.literal("tool-input-start"),toolCallId:_.string(),toolName:_.string(),providerExecuted:_.boolean().optional(),providerMetadata:Te.optional(),toolMetadata:Cp.optional(),dynamic:_.boolean().optional(),title:_.string().optional()}),_.strictObject({type:_.literal("tool-input-delta"),toolCallId:_.string(),inputTextDelta:_.string()}),_.strictObject({type:_.literal("tool-input-available"),toolCallId:_.string(),toolName:_.string(),input
108:_.unknown(),providerExecuted:_.boolean().optional(),providerMetadata:Te.optional(),toolMetadata:Cp.optional(),dynamic:_.boolean().optional(),title:_.string().optional()}),_.strictObject({type:_.literal("tool-input-error"),toolCallId:_.string(),toolName:_.string(),input:_.unknown(),providerExecuted:_.boolean().optional(),providerMetadata:Te.optional(),toolMetadata:Cp.optional(),dynamic:_.boolean().optional(),errorText:_.string(),title:_.string().optional()}),_.strictObject({type:_.literal("tool-approval-request"),approvalId:_.string(),toolCallId:_.string(),signature:_.string().optional()}),_.strictObject({type:_.literal("tool-output-available"),toolCallId:_.string(),output:_.unknown(),providerExecuted:_.boolean().optional(),providerMetadata:Te.optional(),toolMetadata:Cp.optional(),dynamic:_.boolean().optional(),preliminary:_.boolean().optional()}),_.strictObject({type:_.literal("tool-output-error"),toolCallId:_.string(),errorText:_.string(),providerExecuted:_.boolean().optional(),providerMetadata:Te.optional(),toolMetadata:Cp.optional(),dynamic:_.boolean().optional()}),_.strictObject({type:_.literal("tool-output-denied"),toolCallId:_.string()}),_.strictObject({type:_.literal("reasoning-start"),id:_.string(),providerMetadata:Te.optional()}),_.strictObject({type:_.literal("reasoning-delta"),id:_.string(),delta:_.string(),providerMetadata:Te.optional()}),_.strictObject({type:_.literal("reasoning-end"),id:_.string(),providerMetadata:Te.optional()}),_.strictObject({type:_.literal("source-url"),sourceId:_.string(),url:_.string(),title:_.string().optional(),providerMetadata:Te.optional()}),_.strictObject({type:_.literal("source-document"),sourceId:_.string(),mediaType:_.string(),title:_.string(),filename:_.string().optional(),providerMetadata:Te.optional()}),_.strictObject({type:_.literal("file"),url:_.string(),mediaType:_.string(),providerMetadata:Te.optional()}),_.strictObject({type:_.custom(e=>typeof e=="string"&&e.startsWith("data-"),{message:'Type must start with "data-"'}),id:_.string().optional(),data:_.unknown(),transient:_.boolean().optional()}),_.strictObject({type:_.literal("start-step")}),_.strictObject({type:_.literal("finish-step")}),_.strictObject({type:_.literal("start"),messageId:_.string().optional(),messageMetadata:_.unknown().optional()}),_.strictObject({type:_.literal("finish"),finishReason:_.enum(["stop","length","content-filter","tool-calls","error","other"]).optional(),messageMetadata:_.unknown().optional()}),_.strictObject({type:_.literal("abort"),reason:_.string().optional()}),_.strictObject({type:_.literal("message-metadata"),messageMetadata:_.unknown()})])));function qte(e){return e.type.startsWith("data-")}function zp(){return Object.create(null)}function cS(e){return e.type.startsWith("tool-")}function HD(e){return e.type==="dynamic-tool"}function eo(e){return cS(e)||HD(e)}function uS(e){return e.type.split("-").slice(1).join("-")}function WD(e){return HD(e)?e.toolName:uS(e)}function Hte({lastMessage:e,messageId:t}){return{message:e?.role==="assistant"?e:{id:t,metadata:void 0,role:"assistant",parts:[]},activeTextParts:zp(),activeReasoningParts:zp(),partialToolCalls:zp()}}function Wte({stream:e,messageMetadataSchema:t,dataPartSchemas:r,runUpdateMessageJob:o,onError:n,onToolCall:i,onData:a}){return e.pipeThrough(new TransformStream({async transform(l,c){await o(async({state:d,write:p})=>{var m,h,g,w;function $(k){let E=d.message.parts.filter(eo).find(D=>D.toolCallId===k);if(E==null)throw new Cc({chunkType:"tool-invocation",chunkId:k,message:`No tool invocation found for tool call ID "${k}".`});return E}function T(k){var M;let E=d.message.parts.find(H=>cS(H)&&H.toolCallId===k.toolCallId),D=k,F=E;if(E!=null){E.state=k.state,F.input=D.input,F.output=D.output,F.errorText=D.errorText,F.rawInput=D.rawInput,F.preliminary=D.preliminary,k.title!==void 0&&(F.title=k.title),k.toolMetadata!==void 0&&(F.toolMetadata=k.toolMetadata),F.providerExecuted=(M=D.providerExecuted)!=null?M:E.providerExecuted;let H=D.providerMetadata;if(H!=null)if(k.state==="output-available"||k.state==="output-error"){let Z=E;Z.resultProviderMetadata=H}else E.callProviderMetadata=H}else d.message.parts.push({type:`tool-${k.toolName}`,toolCallId:k.toolCallId,state:k.state,title:k.title,...k.toolMetadata!==void 0?{toolMetadata:k.toolMetadata}:{},input:D.input,output:D.output,rawInput:D.rawInput,errorText:D.errorText,providerExecuted:D.providerExecuted,preliminary:D.preliminary,...D.providerMetadata!=null&&(k.state==="output-available"||
108k.state==="output-error")?{resultProviderMetadata:D.providerMetadata}:{},...D.providerMetadata!=null&&!(k.state==="output-available"||k.state==="output-error")?{callProviderMetadata:D.providerMetadata}:{}})}function z(k){var M,E;let D=d.message.parts.find(Z=>Z.type==="dynamic-tool"&&Z.toolCallId===k.toolCallId),F=k,H=D;if(D!=null){D.state=k.state,H.toolName=k.toolName,H.input=F.input,H.output=F.output,H.errorText=F.errorText,H.rawInput=(M=F.rawInput)!=null?M:H.rawInput,H.preliminary=F.preliminary,k.title!==void 0&&(H.title=k.title),k.toolMetadata!==void 0&&(H.toolMetadata=k.toolMetadata),H.providerExecuted=(E=F.providerExecuted)!=null?E:D.providerExecuted;let Z=F.providerMetadata;if(Z!=null)if(k.state==="output-available"||k.state==="output-error"){let W=D;W.resultProviderMetadata=Z}else D.callProviderMetadata=Z}else d.message.parts.push({type:"dynamic-tool",toolName:k.toolName,toolCallId:k.toolCallId,state:k.state,input:F.input,output:F.output,errorText:F.errorText,preliminary:F.preliminary,providerExecuted:F.providerExecuted,title:k.title,...k.toolMetadata!==void 0?{toolMetadata:k.toolMetadata}:{},...F.providerMetadata!=null&&(k.state==="output-available"||k.state==="output-error")?{resultProviderMetadata:F.providerMetadata}:{},...F.providerMetadata!=null&&!(k.state==="output-available"||k.state==="output-error")?{c
vendor: 7,286 bytes, line 108
108allProviderMetadata:F.providerMetadata}:{}})}async function P(k){if(k!=null){let M=d.message.metadata!=null?qD(d.message.metadata,k):k;t!=null&&await L0({value:M,schema:t,context:{field:"message.metadata",entityId:d.message.id}}),d.message.metadata=M}}switch(l.type){case"text-start":{let k={type:"text",text:"",providerMetadata:l.providerMetadata,state:"streaming"};d.activeTextParts[l.id]=k,d.message.parts.push(k),p();break}case"text-delta":{let k=d.activeTextParts[l.id];if(k==null)throw new Cc({chunkType:"text-delta",chunkId:l.id,message:`Received text-delta for missing text part with ID "${l.id}". Ensure a "text-start" chunk is sent before any "text-delta" chunks.`});k.text+=l.delta,k.providerMetadata=(m=l.providerMetadata)!=null?m:k.providerMetadata,p();break}case"text-end":{let k=d.activeTextParts[l.id];if(k==null)throw new Cc({chunkType:"text-end",chunkId:l.id,message:`Received text-end for missing text part with ID "${l.id}". Ensure a "text-start" chunk is sent before any "text-end" chunks.`});k.state="done",k.providerMetadata=(h=l.providerMetadata)!=null?h:k.providerMetadata,delete d.activeTextParts[l.id],p();break}case"reasoning-start":{let k={type:"reasoning",text:"",providerMetadata:l.providerMetadata,state:"streaming"};d.activeReasoningParts[l.id]=k,d.message.parts.push(k),p();break}case"reasoning-delta":{let k=d.activeReasoningParts[l.id];if(k==null)throw new Cc({chunkType:"reasoning-delta",chunkId:l.id,message:`Received reasoning-delta for missing reasoning part with ID "${l.id}". Ensure a "reasoning-start" chunk is sent before any "reasoning-delta" chunks.`});k.text+=l.delta,k.providerMetadata=(g=l.providerMetadata)!=null?g:k.providerMetadata,p();break}case"reasoning-end":{let k=d.activeReasoningParts[l.id];if(k==null)throw new Cc({chunkType:"reasoning-end",chunkId:l.id,message:`Received reasoning-end for missing reasoning part with ID "${l.id}". Ensure a "reasoning-start" chunk is sent before any "reasoning-end" chunks.`});k.providerMetadata=(w=l.providerMetadata)!=null?w:k.providerMetadata,k.state="done",delete d.activeReasoningParts[l.id],p();break}case"file":{d.message.parts.push({type:"file",mediaType:l.mediaType,url:l.url,...l.providerMetadata!=null?{providerMetadata:l.providerMetadata}:{}}),p();break}case"source-url":{d.message.parts.push({type:"source-url",sourceId:l.sourceId,url:l.url,title:l.title,providerMetadata:l.providerMetadata}),p();break}case"source-document":{d.message.parts.push({type:"source-document",sourceId:l.sourceId,mediaType:l.mediaType,title:l.title,filename:l.filename,providerMetadata:l.providerMetadata}),p();break}case"tool-input-start":{let k=d.message.parts.filter(cS);d.partialToolCalls[l.toolCallId]={text:"",toolName:l.toolName,index:k.length,dynamic:l.dynamic,title:l.title,toolMetadata:l.toolMetadata},l.dynamic?z({toolCallId:l.toolCallId,toolName:l.toolName,state:"input-streaming",input:void 0,providerExecuted:l.providerExecuted,title:l.title,toolMetadata:l.toolMetadata,providerMetadata:l.providerMetadata}):T({toolCallId:l.toolCallId,toolName:l.toolName,state:"input-streaming",input:void 0,providerExecuted:l.providerExecuted,title:l.title,toolMetadata:l.toolMetadata,providerMetadata:l.providerMetadata}),p();break}case"tool-input-delta":{let k=d.partialToolCalls[l.toolCallId];if(k==null)throw new Cc({chunkType:"tool-input-delta",chunkId:l.toolCallId,message:`Received tool-input-delta for missing tool call with ID "${l.toolCallId}". Ensure a "tool-input-start" chunk is sent before any "tool-input-delta" chunks.`});k.text+=l.inputTextDelta;let{value:M}=await Ep(k.text);k.dynamic?z({toolCallId:l.toolCallId,toolName:k.toolName,state:"input-streaming",input:M,title:k.title,toolMetadata:k.toolMetadata}):T({toolCallId:l.toolCallId,toolName:k.toolName,state:"input-streaming",input:M,title:k.title,toolMetadata:k.toolMetadata}),p();break}case"tool-input-available":{l.dynamic?z({toolCallId:l.toolCallId,toolName:l.toolName,state:"input-available",input:l.input,providerExecuted:l.providerExecuted,providerMetadata:l.providerMetadata,title:l.title,toolMetadata:l.toolMetadata}):T({toolCallId:l.toolCallId,toolName:l.toolName,state:"input-available",input:l.input,providerExecuted:l.providerExecuted,providerMetadata:l.providerMetadata,title:l.title,toolMetadata:l.toolMetadata}),p(),i&&!l.providerExecuted&&await i({toolCall:l});break}case"tool-input-error":{let k=d.message.parts.filter(eo).find(E=>E.toolCallId===l.toolCallId);(k!=null?k.type==="dynamic-tool":!!l.dynamic)?z({toolCallId:l.toolCallId,toolName:l.toolName,state:"output-error",input:l.input,errorText:l.errorText,providerExecuted:l.providerExecuted,providerMetadata:l.providerMetadata,toolMetadata:l.toolMetadata}):T({toolCallId:l.toolCallId,toolName:l.toolName,state:"output-error",input:void 0,rawInput:l.input,errorText:l.errorText,providerExecuted:l.providerExecuted,providerMetadata:l.providerMetadata,toolMetadata:l.toolMetadata}),p();break}case"tool-approval-request":{let k=$(l.toolCallId);k.state="approval-requested",k.approval={id:l.approvalId,...l.signature!=null?{signature:l.signature}:{}},p();break}case"tool-output-denied":{let k=$(l.toolCallId);k.state="output-denied",p();break}case"tool-output-available":{let k=$(l.toolCallId);k.type==="dynamic-tool"?z({toolCallId:l.toolCallId,toolName:k.toolName,state:"output-available",input:k.input,output:l.output,preliminary:l.preliminary,providerExecuted:l.providerExecuted,providerMetadata:l.providerMetadata,title:k.title,toolMetadata:k.toolMetadata}):T({toolCallId:l.toolCallId,toolName:uS(k),state:"output-available",input:k.input,output:l.output,providerExecuted:l.providerExecuted,preliminary:l.preliminary,providerMetadata:l.providerMetadata,title:k.title,toolMetadata:k.toolMetadata}),p();break}case"tool-output-error":{let k=$(l.toolCallId);k.type==="dynamic-tool"?z({toolCallId:l.toolCallId,toolName:k.toolName,state:"output-error",input:k.input,errorText:l.errorText,providerExecuted:l.providerExecuted,providerMetadata:l.providerMetadata,title:k.title,toolMetadata:k.toolMetadata}):T({toolCallId:l.toolCallId,toolName:uS(k),state:"output-error",input:k.input,rawInput:k.rawInput,errorText:l.errorText,providerExecuted:l.providerExecuted,providerMetadata:l.providerMetadata,title:k.title,toolMetadata:k.toolMetadata}),p();break}case"start-step":{d.message.parts.push({type:"step-start"});break}case"finish-step":{d.activeTextParts=zp(),d.activeReasoningParts=zp();break}case"start":{l.messageId!=null&&(d.message.id=l.messageId),await P(l.messageMetadata),(l.messageId!=null||l.messageMetadata!=null)&&p();break}case"finish":{l.finishReason!=null&&(d.finishReason=l.finishReason),await P(l.messageMetadata),l.messageMetadata!=null&&p();break}case"message-metadata":{await P(l.messageMetadata),l.messageMetadata!=null&&p();break}case"error":{n?.(new Error(l.errorText));break}default:if(qte(l)){if(r?.[l.type]!=null){let E=d.message.parts.findIndex(F=>"id"in F&&"data"in F&&F.id===l.id&&F.type===l.type),D=E>=0?E:d.message.parts.length;await L0({value:l.data,schema:r[l.type],context:{field:`message.parts[${D}].data`,entityName:l.type,entityId:l.id}})}let k=l;if(k.transient){a?.(k);break}let M=k.id!=null?d.message.parts.find(E=>k.type===E.type&&k.id===E.id):void 0;M!=null?M.data=k.data:d.message.parts.push(k),a?.(k),p()}}c.enqueue(l)})}}))}
108async function Jte({stream:e,onError:t}){let r=e.getReader();try{for(;;){let{done:o}=await r.read();if(o)break}}catch(o){t?.(o)}finally{r.releaseLock()}}var V8e=oi({prefix:"aitxt",size:24});var Xr=_.record(_.string(),Ss.optional()),H8e=R0(()=>Kd(_.array(_.object({id:_.string(),role:_.enum(["system","user","assistant"]),metadata:_.unknown().optional(),parts:_.array(_.union([_.object({type:_.literal("text"),text:_.string(),state:_.enum(["streaming","done"]).optional(),providerMetadata:Te.optional()}),_.object({type:_.literal("reasoning"),text:_.string(),state:_.enum(["streaming","done"]).optional(),providerMetadata:Te.optional()}),_.object({type:_.literal("source-url"),sourceId:_.string(),url:_.string(),title:_.string().optional(),providerMetadata:Te.optional()}),_.object({type:_.literal("source-document"),sourceId:_.string(),mediaType:_.string(),title:_.string(),filename:_.string().optional(),providerMetadata:Te.optional()}),_.object({type:_.literal("file"),mediaType:_.string(),filename:_.string().optional(),url:_.string(),providerMetadata:Te.optional()}),_.object({type:_.literal("step-start")}),_.object({type:_.string().startsWith("data-"),id:_.string().optional(),data:_.unknown()}),_.object({type:_.literal("dynamic-tool"),toolName:_.string(),toolCallId:_.string(),toolMetadata:Xr.optional(),state:_.literal("input-streaming"),input:_.unknown().optional(),providerExecuted:_.boolean().optional(),callProviderMetadata:Te.optional(),output:_.never().optional(),errorText:_.never().optional(),approval:_.never().optional()}),_.object({type:_.literal("dynamic-tool"),toolName:_.string(),toolCallId:_.string(),toolMetadata:Xr.optional(),state:_.literal("input-available"),input:_.unknown(),providerExecuted:_.boolean().optional(),output:_.never().optional(),errorText:_.never().optional(),callProviderMetadata:Te.optional(),approval:_.never().optional()}),_.object({type:_.literal("dynamic-tool"),toolName:_.string(),toolCallId:_.string(),toolMetadata:Xr.optional(),state:_.literal("approval-requested"),input:_.unknown(),providerExecuted:_.boolean().optional(),output:_.never().optional(),errorText:_.never().optional(),callProviderMetadata:Te.optional(),approval:_.object({id:_.string(),approved:_.never().optional(),reason:_.never().optional(),signature:_.string().optional()})}),_.object({type:_.literal("dynamic-tool"),toolName:_.string(),toolCallId:_.string(),toolMetadata:Xr.optional(),state:_.literal("approval-responded"),input:_.unknown(),providerExecuted:_.boolean().optional(),output:_.never().optional(),errorText:_.never().optional(),callProviderMetadata:Te.optional(),approval:_.object({id:_.string(),approved:_.boolean(),reason:_.string().optional(),signature:_.string().optional()})}),_.object({type:_.literal("dynamic-tool"),toolName:_.string(),toolCallId:_.string(),toolMetadata:Xr.optional(),state:_.literal("output-available"),input:_.unknown(),providerExecuted:_.boolean().optional(),output:_.unknown(),errorText:_.never().optional(),callProviderMetadata:Te.optional(),resultProviderMetadata:Te.optional(),preliminary:_.boolean().optional(),approval:_.object({id:_.string(),approved:_.literal(!0),reason:_.string().optional(),signature:_.string().optional()}).optional()}),_.object({type:_.literal("dynamic-tool"),toolName:_.string(),toolCallId:_.string(),toolMetadata:Xr.optional(),state:_.literal("output-error"),input:_.unknown().optional(),rawInput:_.unknown().optional(),providerExecuted:_.boolean().optional(),output:_.never().optional(),errorText:_.string(),callProviderMetadata:Te.optional(),resultProviderMetadata:Te.optional(),approval:_.object({id:_.string(),approved:_.literal(!0),reason:_.string().optional(),signature:_.string().optional()}).optional()}),_.object({type:_.literal("dynamic-tool"),toolName:_.string(),toolCallId:_.string(),toolMetadata:Xr.optional(),state:_.literal("output-denied"),input:_.unknown(),providerExecuted:_.boolean().optional(),output:_.never().optional(),errorText:_.never().optional(),callProviderMetadata:Te.optional(),approval:_.object({id:_.string(),approved:_.literal(!1),reason:_.string().optional(),signature:_.string().optional()})}),_.object({type:_.string().startsWith("tool-"),toolCallId:_.string(),toolMetadata:Xr.optional(),state:_.literal("input-streaming"),providerExecuted:_.boolean().optional(),callProviderMetadata:Te.optional(),input
108:_.unknown().optional(),output:_.never().optional(),errorText:_.never().optional(),approval:_.never().optional()}),_.object({type:_.string().startsWith("tool-"),toolCallId:_.string(),toolMetadata:Xr.optional(),state:_.literal("input-available"),providerExecuted:_.boolean().optional(),input:_.unknown(),output:_.never().optional(),errorText:_.never().optional(),callProviderMetadata:Te.optional(),approval:_.never().optional()}),_.object({type:_.string().startsWith("tool-"),toolCallId:_.string(),toolMetadata:Xr.optional(),state:_.literal("approval-requested"),input:_.unknown(),providerExecuted:_.boolean().optional(),output:_.never().optional(),errorText:_.never().optional(),callProviderMetadata:Te.optional(),approval:_.object({id:_.string(),approved:_.never().optional(),reason:_.never().optional(),signature:_.string().optional()})}),_.object({type:_.string().startsWith("tool-"),toolCallId:_.string(),toolMetadata:Xr.optional(),state:_.literal("approval-responded"),input:_.unknown(),providerExecuted:_.boolean().optional(),output:_.never().optional(),errorText:_.never().optional(),callProviderMetadata:Te.optional(),approval:_.object({id:_.string(),approved:_.boolean(),reason:_.string().optional(),signature:_.string().optional()})}),_.object({type:_.string().startsWith("tool-"),toolCallId:_.string(),toolMetadata:Xr.optional(),state:_.literal("output-available"),providerExecuted:_.boolean().optional(),input:_.unknown(),output:_.unknown(),errorText:_.never().optional(),callProviderMetadata:Te.optional(),resultProviderMetadata:Te.optional(),preliminary:_.boolean().optional(),approval:_.object({id:_.string(),approved:_.literal(!0),reason:_.string().optional(),signature:_.string().optional()}).optional()}),_.object({type:_.string().startsWith("tool-"),toolCallId:_.string(),toolMetadata:Xr.optional(),state:_.literal("output-error"),providerExecuted:_.boolean().optional(),input:_.unknown().optional(),rawInput:_.unknown().optional(),output:_.never().optional(),errorText:_.string(),callProviderMetadata:Te.optional(),resultProviderMetadata:Te.optional(),approval:_.object({id:_.string(),approved:_.literal(!0),reason:_.string().optional(),signature:_.string().optional()}).optional()}),_.object({type:_.string().startsWith("tool-"),toolCallId:_.string(),toolMetadata:Xr.optional(),state:_.literal("output-denied"),providerExecuted:_.boolean().optional(),input:_.unknown(),output:_.never().optional(),errorText:_.never().optional(),callProviderMetadata:Te.optional(),approval:_.object({id:_.string(),approved:_.literal(!1),reason:_.string().optional(),signature:_.string().optional()})})])).nonempty("Message must contain at least one part")})).nonempty("Messages array must not be empty")));var J8e=oi({prefix:"aiobj",size:24});function JD(e){return({url:t,abortSignal:r})=>Ite({url:t,maxBytes:e?.maxBytes,abortSignal:r})}var Kte=class{constructor(){this.queue=[],this.isProcessing=!1}async processQueue(){if(!this.isProcessing){for(this.isProcessing=!0;this.queue.length>0;)await this.queue[0](),this.queue.shift();this.isProcessing=!1}}async run(e){return new Promise((t,r)=>{this.queue.push(async()=>{try{await e(),t()}catch(o){r(o)}}),this.processQueue()})}};var X8e=oi({prefix:"aiobj",size:24});var Y8e=JD();var Xte="AI_NoSuchProviderError",Yte=`vercel.ai.error.${Xte}`,Qte=Symbol.for(Yte),ere;ere=Qte;var Q8e=JD();async function tre(e){if(e==null)return[];if(!globalThis.FileList||!(e instanceof globalThis.FileList))throw new Error("FileList is not supported in the current environment");return Promise.all(Array.from(e).map(async t=>{let{name:r,type:o}=t,n=await new Promise((i,a)=>{let l=new FileReader;l.onload=c=>{var d;i((d=c.target)==null?void 0:d.result)},l.onerror=c=>a(c),l.readAsDataURL(t)});return{type:"file",mediaType:o,filename:r,url:n}}))}var rre=class{constructor({api:e="/api/chat",credentials:t,headers:r,body:o,fetch:n,prepareSendMessagesRequest:i,prepareReconnectToStreamRequest:a}){this.api=e,this.credentials=t,this.headers=r,this.body=o,this.fetch=n,this.prepareSendMessagesRequest=i,this.prepareReconnectToStreamRequest=a}async sendMessages({abortSignal:e,...t}){var r,o,n,i,a;let l=await wo(this.body),c=await wo(this.headers),d=await wo(this.credentials),p={...ia(c),...ia(t.headers)},m=await((r=this.prepareSendMessagesRequest)==null?void 0:r.call(this,{api:this.api,id:t.chatId,messages:t.messages,body:{...l,...t.body},headers:p,credentials:d,requestMetadata:t.metadata,trigger:t.trigger,messageId:t.messageId})),h=(o=m?.api)!=null?o:this.api,g=m?.headers!==void 0?ia(m.headers):p,w=m?.body!==void 0?m.body:{...l,...t.body,id:t.chatId,messages:t.messages,trigger:t.trigger,messageId:t.messageId},$=(n=m?.credentials)!=null?n:d,z=await((i=this.fetch)!=null?i:globalThis.fetch)(h,{method:"POST",headers:{"Content-Type":"application/json",...g},body:JSON.stringify(w),credentials:$,signal:e});if(!z.ok)throw new Error((a=await z.text())!=null?a:"Failed to fetch the chat response.");if(!z.body)throw new Error("The response body is empty.");return this.processResponseStream(z.body)}async reconnectToStream(e){var t,r,o,n,i;let a=await wo(this.body),l=await wo(this.headers),c=await wo(this.credentials),d={...ia(l),...ia(e.headers)},p=await((t=this.prepareReconnectToStreamRequest)==null?void 0:t.call(this,{api:this.api,id:e.chatId,body:{...a,...e.body},headers:d,credentials:c,requestMetadata:e.metadata})),m=(r=p?.api)!=null?r:`${this.api}/${e.chatId}/stream`,h=p?.headers!==void 0?ia(p.headers):d,g=(o=p?.credentials)!=null?o:c,$=await((n=this.fetch)!=null?n:globalThis.fetch)(m,{method:"GET",headers:h,credentials:g});if($.status===204)return null;if(!$.ok)throw new Error((i=await $.text())!=null?i:"Failed to fetch the chat response.");if(!$.body)throw new Error("The response body is empty.");return this.processResponseStream($.body)}},dS=class extends rre{constructor(e={}){super(e)}processResponseStream(e){return qM({stream:e,schema:Gte}).pipeThrough(new TransformStream({async transform(t,r){if(!t.success)throw t.error;r.enqueue(t.value)}}))}}
vendor: 5,099 bytes, line 108
108,KD=class{constructor({generateId:e=UM,id:t=e(),transport:r=new dS,messageMetadataSchema:o,dataPartSchemas:n,state:i,onError:a,onToolCall:l,onFinish:c,onData:d,sendAutomaticallyWhen:p}){this.activeResponse=void 0,this.jobExecutor=new Kte,this.sendMessage=async(m,h)=>{var g,w,$,T;if(m==null){await this.makeRequest({trigger:"submit-message",messageId:(g=this.lastMessage)==null?void 0:g.id,...h});return}let z;if("text"in m||"files"in m?z={parts:[...Array.isArray(m.files)?m.files:await tre(m.files),..."text"in m&&m.text!=null?[{type:"text",text:m.text}]:[]]}:z=m,m.messageId!=null){let P=this.state.messages.findIndex(k=>k.id===m.messageId);if(P===-1)throw new Error(`message with id ${m.messageId} not found`);if(this.state.messages[P].role!=="user")throw new Error(`message with id ${m.messageId} is not a user message`);this.state.messages=this.state.messages.slice(0,P+1),this.state.replaceMessage(P,{...z,id:m.messageId,role:(w=z.role)!=null?w:"user",metadata:m.metadata})}else this.state.pushMessage({...z,id:($=z.id)!=null?$:this.generateId(),role:(T=z.role)!=null?T:"user",metadata:m.metadata});await this.makeRequest({trigger:"submit-message",messageId:m.messageId,...h})},this.regenerate=async({messageId:m,...h}={})=>{let g=m==null?this.state.messages.length-1:this.state.messages.findIndex(w=>w.id===m);if(g===-1)throw new Error(`message ${m} not found`);this.state.messages=this.state.messages.slice(0,this.messages[g].role==="assistant"?g:g+1),await this.makeRequest({trigger:"regenerate-message",messageId:m,...h})},this.resumeStream=async(m={})=>{await this.makeRequest({trigger:"resume-stream",...m})},this.clearError=()=>{this.status==="error"&&(this.state.error=void 0,this.setStatus({status:"ready"}))},this.addToolApprovalResponse=async({id:m,approved:h,reason:g,options:w})=>this.jobExecutor.run(async()=>{let $=this.state.messages,T=$[$.length-1],z=P=>eo(P)&&P.state==="approval-requested"&&P.approval.id===m?{...P,state:"approval-responded",approval:{id:m,approved:h,reason:g}}:P;this.state.replaceMessage($.length-1,{...T,parts:T.parts.map(z)}),this.activeResponse&&(this.activeResponse.state.message.parts=this.activeResponse.state.message.parts.map(z)),this.status!=="streaming"&&this.status!=="submitted"&&this.sendAutomaticallyWhen&&this.shouldSendAutomatically().then(P=>{var k;P&&this.makeRequest({trigger:"submit-message",messageId:(k=this.lastMessage)==null?void 0:k.id,...w})})}),this.addToolOutput=async({state:m="output-available",toolCallId:h,output:g,errorText:w,options:$})=>this.jobExecutor.run(async()=>{let T=this.state.messages,z=T[T.length-1],P=k=>eo(k)&&k.toolCallId===h?{...k,state:m,output:g,errorText:w}:k;this.state.replaceMessage(T.length-1,{...z,parts:z.parts.map(P)}),this.activeResponse&&(this.activeResponse.state.message.parts=this.activeResponse.state.message.parts.map(P)),this.status!=="streaming"&&this.status!=="submitted"&&this.sendAutomaticallyWhen&&this.shouldSendAutomatically().then(k=>{var M;k&&this.makeRequest({trigger:"submit-message",messageId:(M=this.lastMessage)==null?void 0:M.id,...$})})}),this.addToolResult=this.addToolOutput,this.stop=async()=>{var m;this.status!=="streaming"&&this.status!=="submitted"||(m=this.activeResponse)!=null&&m.abortController&&this.activeResponse.abortController.abort()},this.id=t,this.transport=r,this.generateId=e,this.messageMetadataSchema=o,this.dataPartSchemas=n,this.state=i,this.onError=a,this.onToolCall=l,this.onFinish=c,this.onData=d,this.sendAutomaticallyWhen=p}get status(){return this.state.status}setStatus({status:e,error:t}){this.status!==e&&(this.state.status=e,this.state.error=t)}get error(){return this.state.error}get messages(){return this.state.messages}get lastMessage(){return this.state.messages[this.state.messages.length-1]}set messages(e){this.state.messages=e}async shouldSendAutomatically(){if(!this.sendAutomaticallyWhen)return!1;let e=this.sendAutomaticallyWhen({messages:this.state.messages});return e&&typeof e=="object"&&"then"in e?await e:e}async makeRequest({trigger:e,metadata:t,headers:r,body:o,messageId:n}){var i,a,l;let c;if(e==="resume-stream")try{let g=await this.transport.reconnectToStream({chatId:this.id,metadata:t,headers:r,body:o});if(g==null)return;c=g}catch(g){this.onError&&g instanceof Error&&this.onError(g),this.setStatus({status:"error",error:g});return}this.setStatus({status:"submitted",error:void 0});let d=this.lastMessage,p=!1,m=!1,h=!1;try{let g={state:Hte({lastMessage:this.state.snapshot(d),messageId:this.generateId()}),abortController:new AbortController};g.abortController.signal.addEventListener("abort",()=>{p=!0}),this.activeResponse=g;let w;e==="resume-stream"?w=c:w=await this.transport.sendMessages({chatId:this.id,messages:this.state.messages,abortSignal:g.abortController.signal,metadata:t,headers:r,body:o,trigger:e,messageId:n});let $=T=>this.jobExecutor.run(()=>T({state:g.state,write:()=>{var z;this.setStatus({status:"streaming"}),g.state.message.id===((z=this.lastMessage)==null?void 0:z.id)?this.state.replaceMessage(this.state.messages.length-1,g.state.message):this.state.pushMessage(g.state.message)}}));
108await Jte({stream:Wte({stream:w,onToolCall:this.onToolCall,onData:this.onData,messageMetadataSchema:this.messageMetadataSchema,dataPartSchemas:this.dataPartSchemas,runUpdateMessageJob:$,onError:T=>{throw T}}),onError:T=>{throw T}}),this.setStatus({status:"ready"})}catch(g){if(p||g.name==="AbortError")return p=!0,this.setStatus({status:"ready"}),null;h=!0,g instanceof TypeError&&(g.message.toLowerCase().includes("fetch")||g.message.toLowerCase().includes("network"))&&(m=!0),this.onError&&g instanceof Error&&this.onError(g),this.setStatus({status:"error",error:g})}finally{try{(a=this.onFinish)==null||a.call(this,{message:this.activeResponse.state.message,messages:this.state.messages,isAbort:p,isDisconnect:m,isError:h,finishReason:(i=this.activeResponse)==null?void 0:i.state.finishReason})}catch(g){console.error(g)}this.activeResponse=void 0}!h&&await this.shouldSendAutomatically()&&await this.makeRequest({trigger:"submit-message",messageId:(l=this.lastMessage)==null?void 0:l.id,metadata:t,headers:r,body:o})}};function XD({messages:e}){let t=e[e.length-1];if(!t||t.role!=="assistant")return!1;let r=t.parts.reduce((n,i,a)=>i.type==="step-start"?a:n,-1),o=t.parts.slice(r+1).filter(eo);return o.filter(n=>n.state==="approval-responded").length>0&&o.every(n=>n.state==="output-available"||n.state==="output-error"||n.state==="approval-responded")}function YD({messages:e}){let t=e[e.length-1];if(!t||t.role!=="assistant")return!1;let r=t.parts.reduce((n,i,a)=>i.type==="step-start"?a:n,-1),o=t.parts.slice(r+1).filter(eo).filter(n=>!n.providerExecuted);return o.length>0&&o.every(n=>n.state==="output-available"||n.state==="output-error")}var rO=V(Se());var yr=V(Se(),1);var nre={damping:.7,stiffness:.05,mass:1.25},ore=70,ire=1e3/60,are=350,$v=!1;globalThis.document?.addEventListener("mousedown",()=>{$v=!0});globalThis.document?.addEventListener("mouseup",()=>{$v=!1});globalThis.document?.addEventListener("click",()=>{$v=!1});var eO=(e={})=>{let[t,r]=(0,yr.useState)(!1),[o,n]=(0,yr.useState)(e.initial!==!1),[i,a]=(0,yr.useState)(!1),l=(0,yr.useRef)(null);l.current=e;let c=(0,yr.useCallback)(()=>{if(!$v)return!1;let P=window.getSelection();if(!P||!P.rangeCount)return!1;let k=P.getRangeAt(0);return k.commonAncestorContainer.contains(T.current)||T.current?.contains(k.commonAncestorContainer)},[]),d=(0,yr.useCallback)(P=>{m.isAtBottom=P,n(P)},[]),p=(0,yr.useCallback)(P=>{m.escapedFromLock=P,r(P)},[]),m=(0,yr.useMemo)(()=>{let P;return{escapedFromLock:t,isAtBottom:o,resizeDifference:0,accumulated:0,velocity:0,listeners:new Set,get scrollTop(){return T.current?.scrollTop??0},set scrollTop(k){T.current&&(T.current.scrollTop=k,m.ignoreScrollToTop=T.current.scrollTop)},get targetScrollTop(){return!T.current||!z.current?0:T.current.scrollHeight-1-T.current.clientHeight},get calculatedTargetScrollTop(){if(!T.current||!z.current)return 0;let{targetScrollTop:k}=this;if(!e.targetScrollTop)return k;if(P?.targetScrollTop===k)return P.calculatedScrollTop;let M=Math.max(Math.min(e.targetScrollTop(k,{scrollElement:T.current,contentElement:z.current}),k),0);return P={targetScrollTop:k,calculatedScrollTop:M},requestAnimationFrame(()=>{P=void 0}),M},get scrollDifference(){return this.calculatedTargetScrollTop-this.scrollTop},get isNearBottom(){return this.scrollDifference<=ore}}},[]),h=(0,yr.useCallback)((P={})=>{typeof P=="string"&&(P={animation:P}),P.preserveScrollPosition||d(!0);let k=Date.now()+(Number(P.wait)||0),M=mS(l.current,P.animation),{ignoreEscapes:E=!1}=P,D,F=m.calculatedTargetScrollTop;P.duration instanceof Promise?P.duration.finally(()=>{D=Date.now()}):D=k+(P.duration??0);let H=async()=>{let Z=new Promise(requestAnimationFrame).then(()=>{if(!m.isAtBottom)return m.animation=void 0,!1;let{scrollTop:W}=m,ke=performance.now(),ge=(ke-(m.lastTick??ke))/ire;if(m.animation||(m.animation={behavior:M,promise:Z,ignoreEscapes:E}),m.animation.behavior===M&&(m.lastTick=ke),c()||k>Date.now())return H();if(W<Math.min(F,m.calculatedTargetScrollTop)){if(m.animation?.behavior===M){if(M==="instant")return m.scrollTop=m.calculatedTargetScrollTop,H();m.velocity=(M.damping*m.velocity+M.stiffness*m.scrollDifference)/M.mass,m.accumulated+=m.velocity
108*ge,m.scrollTop+=m.accumulated,m.scrollTop!==W&&(m.accumulated=0)}return H()}return D>Date.now()?(F=m.calculatedTargetScrollTop,H()):(m.animation=void 0,m.scrollTop<m.calculatedTargetScrollTop?h({animation:mS(l.current,l.current.resize),ignoreEscapes:E,duration:Math.max(0,D-Date.now())||void 0}):m.isAtBottom)});return Z.then(W=>(requestAnimationFrame(()=>{m.animation||(m.lastTick=void 0,m.velocity=0)}),W))};return P.wait!==!0&&(m.animation=void 0),m.animation?.behavior===M?m.animation.promise:H()},[d,c,m]),g=(0,yr.useCallback)(()=>{p(!0),d(!1)},[p,d]),w=(0,yr.useCallback)(({target:P})=>{if(P!==T.current)return;let{scrollTop:k,ignoreScrollToTop:M}=m,{lastScrollTop:E=k}=m;m.lastScrollTop=k,m.ignoreScrollToTop=void 0,M&&M>k&&(E=M),a(m.isNearBottom),setTimeout(()=>{if(m.resizeDifference||k===M)return;if(c()){p(!0),d(!1);return}let D=k>E,F=k<E;if(m.animation?.ignoreEscapes){m.scrollTop=E;return}F&&(p(!0),d(!1)),D&&p(!1),!m.escapedFromLock&&m.isNearBottom&&d(!0)},1)},[p,d,c,m]),$=(0,yr.useCallback)(({target:P,deltaY:k})=>{let M=P;for(;!["scroll","auto"].includes(getComputedStyle(M).overflow);){if(!M.parentElement)return;M=M.parentElement}M===T.current&&k<0&&T.current.scrollHeight>T.current.clientHeight&&!m.animation?.ignoreEscapes&&(p(!0),d(!1))},[p,d,m]),T=QD(P=>{T.current?.removeEventListener("scroll",w),T.current?.removeEventListener("wheel",$),P?.addEventListener("scroll",w,{passive:!0}),P?.addEventListener("wheel",$,{passive:!0})},[]),z=QD(P=>{if(m.resizeObserver?.disconnect(),!P)return;let k;m.resizeObserver=new ResizeObserver(([M])=>{let{height:E}=M.contentRect,D=E-(k??E);if(m.resizeDifference=D,m.scrollTop>m.targetScrollTop&&(m.scrollTop=m.targetScrollTop),a(m.isNearBottom),D>=0){let F=mS(l.current,k?l.current.resize:l.current.initial);h({animation:F,wait:!0,preserveScrollPosition:!0,duration:F==="instant"?void 0:are})}else m.isNearBottom&&(p(!1),d(!0));k=E,requestAnimationFrame(()=>{setTimeout(()=>{m.resizeDifference===D&&(m.resizeDifference=0)},1)})}),m.resizeObserver?.observe(P)},[]);return{contentRef:z,scrollRef:T,scrollToBottom:h,stopScroll:g,isAtBottom:o||i,isNearBottom:i,escapedFromLock:t,state:m}};function QD(e,t){let r=(0,yr.useCallback)(o=>(r.current=o,e(o)),t);return r}var pS=new Map;function mS(...e){let t={...nre},r=!1;for(let n of e){if(n==="instant"){r=!0;continue}typeof n=="object"&&(r=!1,t.damping=n.damping??t.damping,t.stiffness=n.stiffness??t.stiffness,t.mass=n.mass??t.mass)}let o=JSON.stringify(t);return pS.has(o)||pS.set(o,Object.freeze(t)),r?"instant":pS.get(o)}var $s=V(Se(),1),Yr=V(Se(),1);var tO=(0,Yr.createContext)(null),sre=typeof window<"u"?Yr.useLayoutEffect:Yr.useEffect;function Ap({instance:e,children:t,resize:r,initial:o,mass:n,damping:i,stiffness:a,targetScrollTop:l,contextRef:c,...d}){let p=(0,Yr.useRef)(null),m=$s.useCallback((E,D)=>(M?.targetScrollTop??l)?.(E,D)??E,[l]),h=eO({mass:n,damping:i,stiffness:a,resize:r,initial:o,targetScrollTop:m}),{scrollRef:g,contentRef:w,scrollToBottom:$,stopScroll:T,isAtBottom:z,escapedFromLock:P,state:k}=e??h,M=(0,Yr.useMemo)(()=>({scrollToBottom:$,stopScroll:T,scrollRef:g,isAtBottom:z,escapedFromLock:P,contentRef:w,state:k,get targetScrollTop(){return p.current},set targetScrollTop(E){p.current=E}}),[$,z,w,g,T,P,k]);return(0,Yr.useImperativeHandle)(c,()=>M,[M]),sre(()=>{g.current&&getComputedStyle(g.current).overflow==="visible"&&(g.current.style.overflow="auto")},[]),$s.createElement(tO.Provider,{value:M},$s.createElement("div",{...d},typeof t=="function"?t(M):t))}(function(e){function t({children:r,scrollClassName:o,...n}){let i=fS();return $s.createElement("div",{ref:i.scrollRef,style:{height:"100%",width:"100%",scrollbarGutter:"stable both-edges"},className:o},$s.createElement("div",{...n,ref:i.contentRef},typeof r=="function"?r(i):r))}e.Content=t})(Ap||(Ap={}));function fS(){let e=(0,Yr.useContext)(tO);if(!e)throw new Error("use-stick-to-bottom component context must be used within a StickToBottom component");return e}var Qr=V(le()),nO=({className:e,...t})=>(0,Qr.jsx)(Ap,{className:Pe("relative min-h-0 flex-1 overflow-y-hidden",e),initial:"smooth",resize:"smooth",role:"log",...t}),oO=({className:e,...t})=>(0,Qr.jsx)(Ap.Content,{className:Pe("flex flex-col gap-8 p-4",e),...t}),iO=({className:e,title:t="No messages yet",description:r="Start a conversation to see messages here",icon:o,children:n,...i})=>(0,Qr.jsx)("div",{className:Pe("flex size-full flex-col items-center justify-center gap-3 p-8 text-center",e),...i,children:n??(0,Qr.jsxs)(Qr.Fragment,{children:[o&&(0,Qr.jsx)("div",{className:"text-muted-foreground",children:o}),(0,Qr.jsxs)("div",{className:"space-y-1",children:[(0,Qr.jsx)("h3",{className:"text-sm font-medium",children:t}),r&&(0,Qr.jsx)("p",{className:"text-muted-foreground text-sm",children:r})]})]})}),aO=({className:e,...t})=>{let{isAtBottom:r,scrollToBottom:o}=fS(),n=(0,rO.useCallback)(()=>{o()},[o]);return!r&&(0,Qr.jsx)(pr,{className:Pe("dark:bg-background dark:hover:bg-muted absolute bottom-4 left-[50%] translate-x-[-50%] rounded-full",e),onClick:n,size:"icon",type:"button",variant:"outline",...t,children:(0,Qr.jsx)(C$,{className:"size-4"})})};var x9e=V(Se());var lre=V(le());var cre=V(le()),T9e=Ba("flex w-fit items-stretch [&>*]:focus-visible:z-10 [&>*]:focus-visible:relative [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md has-[>[data-slot=button-group]]:gap-2",{variants:{orientation:{horizontal:"[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none",vertical:"flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none"}},defaultVariants:{orientation:"horizontal"}});var P9e=V(Se());var sO=V(le());var br={carriageReturn:-5,lineFeed:-4,carriageReturnLineFeed:-3,horizontalTab:-2,virtualSpace:-1,eof:null,nul:0,soh:1,stx:2,etx:3,eot:4,enq:5,ack:6,bel:7,bs:8,ht:9,lf:10,vt:11,ff:12,cr:13,so:14,si:15,dle:16,dc1:17,dc2:18,dc3:19,dc4:20,nak:21,syn:22,etb:23,can:24,em:25,sub:26,esc:27,fs:28,gs:29,rs:30,us:31,space:32,exclamationMark:33,quotationMark:34,numberSign:35,dollarSign:36,percentSign:37,ampersand:38,apostrophe:39,leftParenthesis:40,rightParenthesis:41,asterisk:42,plusSign:43,comma:44,dash:45,dot:46,slash:47,digit0:48,digit1:49,digit2:50,digit3:51,digit4:52,digit5:53,digit6:54,digit7:55,digit8:56,digit9:57,colon:58,semicolon:59,lessThan:60,equalsTo:61,greaterThan:62,questionMark:63,atSign:64,uppercaseA:65,uppercaseB:66,uppercaseC:67,uppercaseD:68,uppercaseE:69,uppercaseF:70,uppercaseG:71,uppercaseH:72,uppercaseI:73,uppercaseJ:74,uppercaseK:75,uppercaseL:76,uppercaseM:77,uppercaseN:78,uppercaseO:79,uppercaseP:80,uppercaseQ:81,uppercaseR:82,uppercaseS:83,uppercaseT:84,uppercaseU:85,uppercaseV:86,uppercaseW:87,uppercaseX:88,uppercaseY:89,uppercaseZ:90,leftSquareBracket:91,backslash:92,rightSquareBracket:93,caret:94,underscore:95,graveAccent:96,lowercaseA:97,lowercaseB:98,lowercaseC:99,lowercaseD:100,lowercaseE:101,lowercaseF:102,lowercaseG:103,lowercaseH:104,lowercaseI:105,lowercaseJ:106,lowercaseK:107,lowercaseL:108,lowercaseM:109,lowercaseN:110,lowercaseO:111,lowercaseP:112,lowercaseQ:113,lowercaseR:114,lowercaseS:115,lowercaseT:116,lowercaseU:117,lowercaseV:118,lowercaseW:119,lowercaseX:120,lowercaseY:121,lowercaseZ:122,leftCurlyBrace:123,verticalBar:124,rightCurlyBrace:125,tilde:126,del:127,byteOrderMarker:65279,replacementCharacter:65533};var To={attentionSideAfter:2,attentionSideBefore:1,atxHeadingOpeningFenceSizeMax:6,autolinkDomainSizeMax:63,autolinkSchemeSizeMax:32,cdataOpeningString:"CDATA[",characterGroupPunctuation:2,characterGroupWhitespace:1,characterReferenceDecimalSizeMax:7,characterReferenceHexadecimalSizeMax:6,characterReferenceNamedSizeMax:31,codeFencedSequenceSizeMin:3,contentTypeContent:"content",contentTypeDocument:"document",contentTypeFlow:"flow",contentTypeString:"string",contentTypeText:"text",hardBreakPrefixSizeMin:2,htmlBasic:6,htmlCdata:5,htmlComment:2,htmlComplete:7,htmlDeclaration:4,htmlInstruction:3,htmlRawSizeMax:8,htmlRaw:1,linkResourceDestinationBalanceMax:32,linkReferenceSizeMax:999,listItemValueSizeMax:10,numericBaseDecimal:10,numericBaseHexadecimal:16,tabSize:4,thematicBreakMarkerCountMin:3,v8MaxSafeChunkSize:1e4};var hn={data:"data",whitespace:"whitespace",lineEnding:"lineEnding",lineEndingBlank:"lineEndingBlank",linePrefix:"linePrefix",lineSuffix:"lineSuffix",atxHeading:"atxHeading",atxHeadingSequence:"atxHeadingSequence",atxHeadingText:"atxHeadingText",autolink:"autolink",autolinkEmail:"autolinkEmail",autolinkMarker:"autolinkMarker",autolinkProtocol:"autolinkProtocol",characterEscape:"characterEscape",characterEscapeValue:"characterEscapeValue",characterReference:"characterReference",characterReferenceMarker:"characterReferenceMarker",characterReferenceMarkerNumeric:"characterReferenceMarkerNumeric",characterReferenceMarkerHexadecimal:"characterReferenceMarkerHexadecimal",characterReferenceValue:"characterReferenceValue",codeFenced:"codeFenced",codeFencedFence:"codeFencedFence",codeFencedFenceSequence:"codeFencedFenceSequence",codeFencedFenceInfo:"codeFencedFenceInfo",codeFencedFenceMeta:"codeFencedFenceMeta",codeFlowValue:"codeFlowValue",codeIndented:"codeIndented",codeText:"codeText",codeTextData:"codeTextData",codeTextPadding:"codeTextPadding",codeTextSequence:"codeTextSequence",content:"content",definition:"definition",definitionDestination:"definitionDestination",definitionDestinationLiteral:"definitionDestinationLiteral",definitionDestinationLiteralMarker:"definitionDestinationLiteralMarker",definitionDestinationRaw:"definitionDestinationRaw",definitionDestinationString:"definitionDestinationString",definitionLabel:"definitionLabel",definitionLabelMarker:"definitionLabelMarker",definitionLabelString:"definitionLabelString",definitionMarker:"definitionMarker",definitionTitle:"definitionTitle",definitionTitleMarker:"definitionTitleMarker",definitionTitleString:"definitionTitleString",emphasis:"emphasis",emphasisSequence:"emphasisSequence",emphasisText:"emphasisText",escapeMarker:"escapeMarker",hardBreakEscape:"hardBreakEscape",hardBreakTrailing:"hardBreakTrailing",htmlFlow:"htmlFlow",htmlFlowData:"htmlFlowData",htmlText:"htmlText",htmlTextData:"htmlTextData",image:"image",label:"label",labelText:"labelText",labelLink:"labelLink",labelImage:"labelImage",labelMarker:"labelMarker",labelImageMarker:"labelImageMarker",labelEnd:"labelEnd",link:"link",paragraph:"paragraph",reference:"reference",referenceMarker:"referenceMarker",referenceString:"referenceString",resource:"resource",resourceDestination:"resourceDestination",resourceDestinationLiteral:"resourceDestinationLiteral",resourceDestinationLiteralMarker:"resourceDestinationLiteralMarker",resourceDestinationRaw:"resourceDestinationRaw",resourceDestinationString:"resourceDestinationString",resourceMarker:"resourceMarker",resourceTitle:"resourceTitle",resourceTitleMarker:"resourceTitleMarker",resourceTitleString:"resourceTitleString",setextHeading:"setextHeading",setextHeadingText:"setextHeadingText",setextHeadingLine:"setextHeadingLine",setextHeadingLineSequence:"setextHeadingLineSequence",strong:"strong",strongSequence:"strongSequence",strongText:"strongText",thematicBreak:"thematicBreak",thematicBreakSequence:"thematicBreakSequence",blockQuote:"blockQuote",blockQuotePrefix:"blockQuotePrefix",blockQuoteMarker:"blockQuoteMarker",blockQuotePrefixWhitespace:"blockQuotePrefixWhitespace",listOrdered:"listOrdered",listUnordered:"listUnordered",listItemIndent:"listItemIndent",listItemMarker:"listItemMarker",listItemPrefix:"listItemPrefix",listItemPrefixWhitespace:"listItemPrefixWhitespace",listItemValue:"listItemValue",chunkDocument:"chunkDocument",chunkContent:"chunkContent",chunkFlow:"chunkFlow",chunkText:"chunkText",chunkString:"chunkString"};var Tv=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,23
vendor: 6,599 bytes, line 108
1080,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],Iv=[12288,12288,65281,65376,65504,65510],Pv=[8361,8361,65377,65470,65474,65479,65482,65487,65490,65495,65498,65500,65512,65518],Cv=[32,126,162,163,165,166,172,172,175,175,10214,10221,10629,10630],Mp=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141];var zc=(e,t)=>{let r=0,o=Math.floor(e.length/2)-1;for(;r<=o;){let n=Math.floor((r+o)/2),i=n*2;if(t<e[i])o=n-1;else if(t>e[i+1])r=n+1;else return!0}return!1};var ure=Tv[0],dre=Tv.at(-1),pre=Iv[0],mre=Iv.at(-1),fre=Pv[0],hre=Pv.at(-1),gre=Cv[0],vre=Cv.at(-1),yre=Mp[0],bre=Mp.at(-1),lO=19968,[xre,wre]=_re(Mp);function _re(e){let t=e[0],r=e[1];for(let o=0;o<e.length;o+=2){let n=e[o],i=e[o+1];if(lO>=n&&lO<=i)return[n,i];i-n>r-t&&(t=n,r=i)}return[t,r]}var cO=e=>e<ure||e>dre?!1:zc(Tv,e),uO=e=>e<pre||e>mre?!1:zc(Iv,e),kre=e=>e<fre||e>hre?!1:zc(Pv,e),Sre=e=>e<gre||e>vre?!1:zc(Cv,e),dO=e=>e>=xre&&e<=wre?!0:e<yre||e>bre?!1:zc(Mp,e);function pO(e){return cO(e)?"ambiguous":uO(e)?"fullwidth":kre(e)?"halfwidth":Sre(e)?"narrow":dO(e)?"wide":"neutral"}function $re(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}function mO(e){return $re(e),pO(e)}function Tre(e){return/^\p{Emoji_Presentation}/u.test(String.fromCodePoint(e))}function fO(e){if(!e||e<4352)return!1;switch(mO(e)){case"fullwidth":case"halfwidth":return!0;case"wide":return!Tre(e);case"narrow":return!1;case"ambiguous":return 917760<=e&&e<=917999?null:!1;case"neutral":return/^\p{sc=Hangul}/u.test(String.fromCodePoint(e))}}function hO(e,t){return t!==65025||!e||e<8216?!1:e===8216||e===8217||e===8220||e===8221}function gO(e){return e!==null&&e>=65024&&e<=65038}var vO=bO(/\p{P}|\p{S}/u),yO=bO(/\s/);function bO(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCodePoint(r))}}function ci(e){return!!(e&To.characterGroupWhitespace)}function Ts(e){return(e&Or.cjkPunctuation)===To.characterGroupPunctuation}function Ec(e){return!!(e&Or.cjk)}function gS(e){return e===Or.ivs}function vS(e){return!!(e&Or.cjkOrIvs)}function yS(e){return e===Or.nonEmojiGeneralUseVS}function zv(e){return!!(e&Or.spaceOrPunctuation)}var Or;(function(e){e.spaceOrPunctuation=3,e.cjk=4096,e.cjkPunctuation=4098,e.ivs=8192,e.cjkOrIvs=12288,e.nonEmojiGeneralUseVS=16384,e.variationSelector=24576,e.ivsToCjkRightShift=1})(Or||(Or={}));function ui(e){if(e===br.eof||L$(e)||yO(e))return To.characterGroupWhitespace;let t=0;if(e>=4352){if(gO(e))return Or.nonEmojiGeneralUseVS;switch(fO(e)){case null:return Or.ivs;case!0:t|=Or.cjk;break}}return vO(e)&&(t|=To.characterGroupPunctuation),t}function Np(e,t,r){if(!yS(e))return e;let o=t(),n=ui(o);return!o||ci(n)?e:hO(o,r)?Or.cjkPunctuation:Ire(n)}function Ire(e){return e&~Or.ivs}function Rp(e){return!!(e&&e>=55296&&e<=56319)}function Dp(e){return!!(e&&e>=56320&&e<=57343)}function Op(e,t,r){if(t._bufferIndex<2)return e;let o=r({start:{...t,_bufferIndex:t._bufferIndex-2},end:t}).codePointAt(0);return o&&o>=65536?o:e}function xO(e,t,r){let o=e>=65536?2:1;if(t._bufferIndex<1+o)return null;let n=t._bufferIndex-o-2,i=r({start:{...t,_bufferIndex:n>=0?n:0},end:{...t,_bufferIndex:t._bufferIndex-o}}),a=i.charCodeAt(i.length-1);if(Number.isNaN(a))return null;if(i.length<2||a<56320||57343<a)return a;let l=i.codePointAt(0);return l&&l>=65536?l:a}var Lp=class{cachedValue=void 0;constructor(e,t,r){this.previousCode=e,this.nowPoint=t,this.sliceSerialize=r}value(){return this.cachedValue===void 0&&(this.cachedValue=xO(this.previousCode,this.nowPoint,this.sliceSerialize)),this.cachedValue}};
vendor: 9,069 bytes, line 108
108function jp(e,t,r){let o=r({start:t,end:{...t,_bufferIndex:t._bufferIndex+2}}).codePointAt(0);return o&&o>=65536?o:e}var Ev={name:"attention",resolveAll:Pre,tokenize:Cre};function Pre(e,t){let r=-1,o,n,i,a,l,c,d,p;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(o=r;o--;)if(e[o][0]==="exit"&&e[o][1].type==="attentionSequence"&&e[o][1]._open&&t.sliceSerialize(e[o][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[o][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[o][1].end.offset-e[o][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;c=e[o][1].end.offset-e[o][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;let m={...e[o][1].end},h={...e[r][1].start};wO(m,-c),wO(h,c),a={type:c>1?hn.strongSequence:hn.emphasisSequence,start:m,end:{...e[o][1].end}},l={type:c>1?hn.strongSequence:hn.emphasisSequence,start:{...e[r][1].start},end:h},i={type:c>1?hn.strongText:hn.emphasisText,start:{...e[o][1].end},end:{...e[r][1].start}},n={type:c>1?hn.strong:hn.emphasis,start:{...a.start},end:{...l.end}},e[o][1].end={...a.start},e[r][1].start={...l.end},d=[],e[o][1].end.offset-e[o][1].start.offset&&(d=Xs(d,[["enter",e[o][1],t],["exit",e[o][1],t]])),d=Xs(d,[["enter",n,t],["enter",a,t],["exit",a,t],["enter",i,t]]),t.parser.constructs.insideSpan.null,d=Xs(d,Wm(t.parser.constructs.insideSpan.null,e.slice(o+1,r),t)),d=Xs(d,[["exit",i,t],["enter",l,t],["exit",l,t],["exit",n,t]]),e[r][1].end.offset-e[r][1].start.offset?(p=2,d=Xs(d,[["enter",e[r][1],t],["exit",e[r][1],t]])):p=0,Ks(e,o-1,r-o+3,d),r=o+d.length-p-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function Cre(e,t){let r=this.parser.constructs.attentionMarkers.null,{now:o,sliceSerialize:n,previous:i}=this,a=Dp(i)?Op(i,o(),n):i,l=ui(a),c=new Lp(a,o(),n),d=Np(l,c.value.bind(c),a),p;return m;function m(g){return g===br.asterisk||br.underscore,p=g,e.enter("attentionSequence"),h(g)}function h(g){if(g===p)return e.consume(g),h;let w=e.exit("attentionSequence"),$=ui(Rp(g)?jp(g,o(),n):g);let T=Ts(d),z=T||ci(d),P=Ts($),k=P||ci($),M=vS(d),E=!k||P&&(z||M)||r.includes(g),D=!z||T&&(k||Ec($))||r.includes(a);return w._open=!!(p===br.asterisk?E:E&&(zv(d)||!D)),w._close=!!(p===br.asterisk?D:D&&(zv($)||!E)),t(g)}}function wO(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}function _O(){return{text:{[br.asterisk]:Ev,[br.underscore]:Ev},insideSpan:{null:[Ev]}}}function kO(){let e=this.data();(e.micromarkExtensions||(e.micromarkExtensions=[])).push(_O())}function bS(e){let t=(e||{}).singleTilde,r={name:"strikethrough",tokenize:n,resolveAll:o};return t==null&&(t=!0),{text:{[br.tilde]:r},insideSpan:{null:[r]},attentionMarkers:{null:[br.tilde]}};function o(i,a){let l=-1;for(;++l<i.length;)if(i[l][0]==="enter"&&i[l][1].type==="strikethroughSequenceTemporary"&&i[l][1]._close){let c=l;for(;c--;)if(i[c][0]==="exit"&&i[c][1].type==="strikethroughSequenceTemporary"&&i[c][1]._open&&i[l][1].end.offset-i[l][1].start.offset===i[c][1].end.offset-i[c][1].start.offset){i[l][1].type="strikethroughSequence",i[c][1].type="strikethroughSequence";let d={type:"strikethrough",start:Object.assign({},i[c][1].start),end:Object.assign({},i[l][1].end)},p={type:"strikethroughText",start:Object.assign({},i[c][1].end),end:Object.assign({},i[l][1].start)},m=[["enter",d,a],["enter",i[c][1],a],["exit",i[c][1],a],["enter",p,a]],h=a.parser.constructs.insideSpan.null;h&&Ks(m,m.length,0,Wm(h,i.slice(c+1,l),a)),Ks(m,m.length,0,[["exit",p,a],["enter",i[l][1],a],["exit",i[l][1],a],["exit",d,a]]),Ks(i,c-1,l-c+3,m),l=c+m.length-2;break}}for(l=-1;++l<i.length;)i[l][1].type==="strikethroughSequenceTemporary"&&(i[l][1].type=hn.data);return i}function n(i,a,l){let{now:c,sliceSerialize:d,previous:p}=this,m=Dp(p)?Op(p,c(),d):p,h=ui(m),g=new Lp(m,c(),d),w=Np(h,g.value.bind(g),m),$=this.events,T=0;return z;function z(k){return br.tilde,m===br.tilde&&$[$.length-1][1].type!==hn.characterEscape?l(k):(i.enter("strikethroughSequenceTemporary"),P(k))}function P(k){let M=ui(m);if(k===br.tilde)return T>1?l(k):(i.consume(k),T++,P);if(T<2&&!t)return l(k);let E=i.exit("strikethroughSequenceTemporary"),D=ui(Rp(k)?jp(k,c(),d):k),F=Ts(w)||ci(w),H=Ts(D)||ci(D),Z=Ec(w)||gS(M);return E._open=!H||D===To.attentionSideAfter&&(F||Z),E._close=!F||M===To.attentionSideAfter&&(H||Ec(D)),a(k)}}}function SO(e){let t=this.data();(t.micromarkExtensions||(t.micromarkExtensions=[])).push(bS(e))}var zre=new Set(["\u3002","\uFF0E","\uFF0C","\u3001","\uFF1F","\uFF01","\uFF1A","\uFF1B","\uFF08","\uFF09","\u3010","\u3011","\u300C","\u300D","\u300E","\u300F","\u3008","\u3009","\u300A","\u300B"]),Ere=/^(https?:\/\/|mailto:|www\.)/i,Are=e=>{if(e.children.length!==1)return!1;let t=e.children[0];return t.type==="text"&&t.value===e.url},Mre=e=>{let t=0;for(let r of e){if(zre.has(r))return t;t+=r.length}return null},Nre=(e,t)=>({...t,url:e,children:[{type:"text",value:e}]}),Rre=e=>({type:"text",value:e}),Dre=()=>e=>{F$(e,"link",(t,r,o)=>{if(!o||typeof r!="number"||!Are(t)||!Ere.test(t.url))return;let n=Mre(t.url);if(n===null||n===0)return;let i=t.url.slice(0,n),a=t.url.slice(n),l=Nre(i,t),c=Rre(a);return o.children.splice(r,1,l,c),r+1})};function Ore(){let e=[kO],t=[Dre,SO],r=[...e,...t];return{name:"cjk",type:"cjk",remarkPluginsBefore:e,remarkPluginsAfter:t,remarkPlugins:r}}var $O=Ore();var St=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function Lre(e){return CS(e)}function CS(e){return Array.isArray(e)?jre(e):e instanceof RegExp?e:typeof e=="object"?Ure(e):e}function jre(e){let t=[];for(let r=0,o=e.length;r<o;r++)t[r]=CS(e[r]);return t}function Ure(e){let t={};for(let r in e)t[r]=CS(e[r]);return t}function NO(e,...t){return t.forEach(r=>{for(let o in r)e[o]=r[o]}),e}function RO(e){let t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?RO(e.substring(0,e.length-1)):e.substr(~t+1)}var xS=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Av=class{static hasCaptures(e){return e===null?!1:(xS.lastIndex=0,xS.test(e))}static replaceCaptures(e,t,r){return e.replace(xS,(o,n,i,a)=>{let l=r[parseInt(n||i,10)];if(l){let c=t.substring(l.start,l.end);for(;c[0]===".";)c=c.substring(1);switch(a){case"downcase":return c.toLowerCase();case"upcase":return c.toUpperCase();default:return c}}else return o})}};function DO(e,t){return e<t?-1:e>t?1:0}function OO(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let r=e.length,o=t.length;if(r===o){for(let n=0;n<r;n++){let i=DO(e[n],t[n]);if(i!==0)return i}return 0}return r-o}function TO(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function LO(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var jO=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},Fp=class{constructor(e,t,r){this._colorMap=e,this._defaults=t,this._root=r}static createFromRawTheme(e,t){return this.createFromParsedTheme(Zre(e),t)}static createFromParsedTheme(e,t){return Gre(e,t)}_cachedMatchRoot=new jO(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;let t=e.scopeName,o=this._cachedMatchRoot.get(t).find(n=>Bre(e.parent,n.parentScopes));return o?new UO(o.fontStyle,o.foreground,o.background):null}},wS=class Mv{constructor(t,r){this.parent=t,this.scopeName=r}static push(t,r){for(let o of r)t=new Mv(t,o);return t}static from(...t){let r=null;for(let o=0;o<t.length;o++)r=new Mv(r,t[o]);return r}push(t){return new Mv(this,t)}getSegments(){let t=this,r=[];for(;t;)r.push(t.scopeName),t=t.parent;return r.reverse(),r}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){let r=[],o=this;for(;o&&o!==t;)r.push(o.scopeName),o=o.parent;return o===t?r.reverse():void 0}};function Bre(e,t){if(t.length===0)return!0;for(let r=0;r<t.length;r++){let o=t[r],n=!1;if(o===">"){if(r===t.length-1)return!1;o=t[++r],n=!0}for(;e&&!Fre(e.scopeName,o);){if(n)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function Fre(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var UO=class{constructor(e,t,r){this.fontStyle=e,this.foregroundId=t,this.backgroundId=r}};function Zre(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,r=[],o=0;for(let n=0,i=t.length;n<i;n++){let a=t[n];if(!a.settings)continue;let l;if(typeof a.scope=="string"){let m=a.scope;m=m.replace(/^[,]+/,""),m=m.replace(/[,]+$/,""),l=m.split(",")}else Array.isArray(a.scope)?l=a.scope:l=[""];let c=-1;if(typeof a.settings.fontStyle=="string"){c=0;let m=a.settings.fontStyle.split(" ");for(let h=0,g=m.length;h<g;h++)switch(m[h]){case"italic":c=c|1;break;case"bold":c=c|2;break;case"underline":c=c|4;break;case"strikethrough":c=c|8;break}}let d=null;typeof a.settings.foreground=="string"&&TO(a.settings.foreground)&&
vendor: 13,037 bytes, line 108
108(d=a.settings.foreground);let p=null;typeof a.settings.background=="string"&&TO(a.settings.background)&&(p=a.settings.background);for(let m=0,h=l.length;m<h;m++){let w=l[m].trim().split(" "),$=w[w.length-1],T=null;w.length>1&&(T=w.slice(0,w.length-1),T.reverse()),r[o++]=new Vre($,T,n,c,d,p)}}return r}var Vre=class{constructor(e,t,r,o,n,i){this.scope=e,this.parentScopes=t,this.index=r,this.fontStyle=o,this.foreground=n,this.background=i}},xr=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(xr||{});function Gre(e,t){e.sort((c,d)=>{let p=DO(c.scope,d.scope);return p!==0||(p=OO(c.parentScopes,d.parentScopes),p!==0)?p:c.index-d.index});let r=0,o="#000000",n="#ffffff";for(;e.length>=1&&e[0].scope==="";){let c=e.shift();c.fontStyle!==-1&&(r=c.fontStyle),c.foreground!==null&&(o=c.foreground),c.background!==null&&(n=c.background)}let i=new qre(t),a=new UO(r,i.getId(o),i.getId(n)),l=new Wre(new kS(0,null,-1,0,0),[]);for(let c=0,d=e.length;c<d;c++){let p=e[c];l.insert(0,p.scope,p.parentScopes,p.fontStyle,i.getId(p.foreground),i.getId(p.background))}return new Fp(i,a,l)}var qre=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,r=e.length;t<r;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},Hre=Object.freeze([]),kS=class BO{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,r,o,n,i){this.scopeDepth=t,this.parentScopes=r||Hre,this.fontStyle=o,this.foreground=n,this.background=i}clone(){return new BO(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let r=[];for(let o=0,n=t.length;o<n;o++)r[o]=t[o].clone();return r}acceptOverwrite(t,r,o,n){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,r!==-1&&(this.fontStyle=r),o!==0&&(this.foreground=o),n!==0&&(this.background=n)}},Wre=class SS{constructor(t,r=[],o={}){this._mainRule=t,this._children=o,this._rulesWithParentScopes=r}_rulesWithParentScopes;static _cmpBySpecificity(t,r){if(t.scopeDepth!==r.scopeDepth)return r.scopeDepth-t.scopeDepth;let o=0,n=0;for(;t.parentScopes[o]===">"&&o++,r.parentScopes[n]===">"&&n++,!(o>=t.parentScopes.length||n>=r.parentScopes.length);){let i=r.parentScopes[n].length-t.parentScopes[o].length;if(i!==0)return i;o++,n++}return r.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let o=t.indexOf("."),n,i;if(o===-1?(n=t,i=""):(n=t.substring(0,o),i=t.substring(o+1)),this._children.hasOwnProperty(n))return this._children[n].match(i)}let r=this._rulesWithParentScopes.concat(this._mainRule);return r.sort(SS._cmpBySpecificity),r}insert(t,r,o,n,i,a){if(r===""){this._doInsertHere(t,o,n,i,a);return}let l=r.indexOf("."),c,d;l===-1?(c=r,d=""):(c=r.substring(0,l),d=r.substring(l+1));let p;this._children.hasOwnProperty(c)?p=this._children[c]:(p=new SS(this._mainRule.clone(),kS.cloneArr(this._rulesWithParentScopes)),this._children[c]=p),p.insert(t+1,d,o,n,i,a)}_doInsertHere(t,r,o,n,i){if(r===null){this._mainRule.acceptOverwrite(t,o,n,i);return}for(let a=0,l=this._rulesWithParentScopes.length;a<l;a++){let c=this._rulesWithParentScopes[a];if(OO(c.parentScopes,r)===0){c.acceptOverwrite(t,o,n,i);return}}o===-1&&(o=this._mainRule.fontStyle),n===0&&(n=this._mainRule.foreground),i===0&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new kS(t,r,o,n,i))}},Ps=class Nn{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){let r=Nn.getLanguageId(t),o=Nn.getTokenType(t),n=Nn.getFontStyle(t),i=Nn.getForeground(t),a=Nn.getBackground(t);console.log({languageId:r,tokenType:o,fontStyle:n,foreground:i,background:a})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,r,o,n,i,a,l){let c=Nn.getLanguageId(t),d=Nn.getTokenType(t),p=Nn.containsBalancedBrackets(t)?1:0,m=Nn.getFontStyle(t),h=Nn.getForeground(t),g=Nn.getBackground(t);return r!==0&&(c=r),o!==8&&(d=o),n!==null&&(p=n?1:0),i!==-1&&(m=i),a!==0&&(h=a),l!==0&&(g=l),(c<<0|d<<8|p<<10|m<<11|h<<15|g<<24)>>>0}};function Rv(e,t){let r=[],o=Jre(e),n=o.next();for(;n!==null;){let c=0;if(n.length===2&&n.charAt(1)===":"){switch(n.charAt(0)){case"R":c=1;break;case"L":c=-1;break;default:console.log(`Unknown priority ${n} in scope selector`)}n=o.next()}let d=a();if(r.push({matcher:d,priority:c}),n!==",")break;n=o.next()}return r;function i(){if(n==="-"){n=o.next();let c=i();return d=>!!c&&!c(d)}if(n==="("){n=o.next();let c=l();return n===")"&&(n=o.next()),c}if(IO(n)){let c=[];do c.push(n),n=o.next();while(IO(n));return d=>t(c,d)}return null}function a(){let c=[],d=i();for(;d;)c.push(d),d=i();return p=>c.every(m=>m(p))}function l(){let c=[],d=a();for(;d&&(c.push(d),n==="|"||n===",");){do n=o.next();while(n==="|"||n===",");d=a()}return p=>c.some(m=>m(p))}}function IO(e){return!!e&&!!e.match(/[\w\.:]+/)}function Jre(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,r=t.exec(e);return{next:()=>{if(!r)return null;let o=r[0];return r=t.exec(e),o}}}function FO(e){typeof e.dispose=="function"&&e.dispose()}var Zp=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},Kre=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},Xre=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},Yre=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Zp(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new Xre;for(let r of e)Qre(r,this.initialScopeName,this.repo,t);for(let r of t.references)if(r instanceof Zp){if(this.seenFullScopeRequests.has(r.scopeName))continue;this.seenFullScopeRequests.add(r.scopeName),this.Q.push(r)}else{if(this.seenFullScopeRequests.has(r.scopeName)||this.seenPartialScopeRequests.has(r.toKey()))continue;this.seenPartialScopeRequests.add(r.toKey()),this.Q.push(r)}}};function Qre(e,t,r,o){let n=r.lookup(e.scopeName);if(!n){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}let i=r.lookup(t);e instanceof Zp?Nv({baseGrammar:i,selfGrammar:n},o):$S(e.ruleName,{baseGrammar:i,selfGrammar:n,repository:n.repository},o);let a=r.injections(e.scopeName);if(a)for(let l of a)o.add(new Zp(l))}function $S(e,t,r){if(t.repository&&t.repository[e]){let o=t.repository[e];Dv([o],t,r)}}function Nv(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Dv(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Dv(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Dv(e,t,r){for(let o of e){if(r.visitedRule.has(o))continue;r.visitedRule.add(o);let n=o.repository?NO({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&Dv(o.patterns,{...t,repository:n},r);let i=o.include;if(!i)continue;let a=ZO(i);switch(a.kind){case 0:Nv({...t,selfGrammar:t.baseGrammar},r);break;case 1:Nv(t,r);break;case 2:$S(a.ruleName,{...t,repository:n},r);break;case 3:case 4:let l=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(l){let c={baseGrammar:t.baseGrammar,selfGrammar:l,repository:n};a.kind===4?$S(a.ruleName,c,r):Nv(c,r)}else a.kind===4?r.add(new Kre(a.scopeName,a.ruleName)):r.add(new Zp(a.scopeName));break}}}var ene=class{kind=0},tne=class{kind=1},rne=class{constructor(e){this.ruleName=e}kind=2},nne=class{constructor(e){this.scopeName=e}kind=3},one=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function ZO(e){if(e==="$base")return new ene;if(e==="$self")return new tne;let t=e.indexOf("#");if(t===-1)return new nne(e);if(t===0)return new rne(e.substring(1));{let r=e.substring(0,t),o=e.substring(t+1);return new one(r,o)}}var ine=/\\(\d+)/,PO=/\\(\d+)/g;var ane=-1,VO=-2;var qp=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,r,o){this.$location=e,this.id=t,this._name=r||null,this._nameIsCapturing=Av.hasCaptures(this._name),this._contentName=o||null,this._contentNameIsCapturing=Av.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${RO(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:Av.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Av.replaceCaptures(this._contentName,e,t)}},sne=class extends qp{retokenizeCapturedWithRuleId;constructor(e,t,r,o,n){super(e,t,r,o),this.retokenizeCapturedWithRuleId=n}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,r,o){throw new Error("Not supported!")}},lne=class extends qp{_match;captures;_cachedCompiledPatterns;constructor(e,t,r,o,n){super(e,t,r,null),this._match=new Vp(o,this.id),this.captures=n,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,o){return this._getCachedCompiledPatterns(e).compileAG(e,r,o)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Gp,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},CO=class extends qp{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,r,o,n){super(e,t,r,o),this.patterns=n.patterns,this.hasMissingPatterns=n.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(let r of this.patterns)e.getRule(r).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,o){return this._getCachedCompiledPatterns(e).compileAG(e,r,o)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Gp,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},TS=class extends qp{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,r,o,n,i,a,l,c,d){super(e,t,r,o),this._begin=new Vp(n,this.id),this.beginCaptures=i,this._end=new Vp(a||"\uFFFF",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=l,this.applyEndPatternLast=c||!1,this.patterns=d.patterns,this.hasMissingPatterns=d.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,r,o){return this._getCachedCompiledPatterns(e,t).compileAG(e,r,o)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Gp;for(let r of this.patterns)e.getRule(r).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},Ov=class extends qp{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,r,o,n,i,a,l,c){super(e,t,r,o),this._begin=new Vp(n,this.id),this.beginCaptures=i,this.whileCaptures=l,this._while=ne
vendor: 1,564 bytes, line 108
108w Vp(a,VO),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,o){return this._getCachedCompiledPatterns(e).compileAG(e,r,o)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Gp;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,r,o){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,r,o)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Gp,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"\uFFFF"),this._cachedCompiledWhilePatterns}
vendor: 20,894 bytes, lines 108-110
108},GO=class Sr{static createCaptureRule(t,r,o,n,i){return t.registerRule(a=>new sne(r,a,o,n,i))}static getCompiledRuleId(t,r,o){return t.id||r.registerRule(n=>{if(t.id=n,t.match)return new lne(t.$vscodeTextmateLocation,t.id,t.name,t.match,Sr._compileCaptures(t.captures,r,o));if(typeof t.begin>"u"){t.repository&&(o=NO({},o,t.repository));let i=t.patterns;return typeof i>"u"&&t.include&&(i=[{include:t.include}]),new CO(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,Sr._compilePatterns(i,r,o))}return t.while?new Ov(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Sr._compileCaptures(t.beginCaptures||t.captures,r,o),t.while,Sr._compileCaptures(t.whileCaptures||t.captures,r,o),Sr._compilePatterns(t.patterns,r,o)):new TS(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Sr._compileCaptures(t.beginCaptures||t.captures,r,o),t.end,Sr._compileCaptures(t.endCaptures||t.captures,r,o),t.applyEndPatternLast,Sr._compilePatterns(t.patterns,r,o))}),t.id}static _compileCaptures(t,r,o){let n=[];if(t){let i=0;for(let a in t){if(a==="$vscodeTextmateLocation")continue;let l=parseInt(a,10);l>i&&(i=l)}for(let a=0;a<=i;a++)n[a]=null;for(let a in t){if(a==="$vscodeTextmateLocation")continue;let l=parseInt(a,10),c=0;t[a].patterns&&(c=Sr.getCompiledRuleId(t[a],r,o)),n[l]=Sr.createCaptureRule(r,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,c)}}return n}static _compilePatterns(t,r,o){let n=[];if(t)for(let i=0,a=t.length;i<a;i++){let l=t[i],c=-1;if(l.include){let d=ZO(l.include);switch(d.kind){case 0:case 1:c=Sr.getCompiledRuleId(o[l.include],r,o);break;case 2:let p=o[d.ruleName];p&&(c=Sr.getCompiledRuleId(p,r,o));break;case 3:case 4:let m=d.scopeName,h=d.kind===4?d.ruleName:null,g=r.getExternalGrammar(m,o);if(g)if(h){let w=g.repository[h];w&&(c=Sr.getCompiledRuleId(w,r,g.repository))}else c=Sr.getCompiledRuleId(g.repository.$self,r,g.repository);break}}else c=Sr.getCompiledRuleId(l,r,o);if(c!==-1){let d=r.getRule(c),p=!1;if((d instanceof CO||d instanceof TS||d instanceof Ov)&&d.hasMissingPatterns&&d.patterns.length===0&&(p=!0),p)continue;n.push(c)}}return{patterns:n,hasMissingPatterns:(t?t.length:0)!==n.length}}},Vp=class qO{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,r){if(t&&typeof t=="string"){let o=t.length,n=0,i=[],a=!1;for(let l=0;l<o;l++)if(t.charAt(l)==="\\"&&l+1<o){let d=t.charAt(l+1);d==="z"?(i.push(t.substring(n,l)),i.push("$(?!\\n)(?<!\\n)"),n=l+2):(d==="A"||d==="G")&&(a=!0),l++}this.hasAnchor=a,n===0?this.source=t:(i.push(t.substring(n,o)),this.source=i.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=r,typeof this.source=="string"?this.hasBackReferences=ine.test(this.source):this.hasBackReferences=!1}clone(){return new qO(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,r){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let o=r.map(n=>t.substring(n.start,n.end));return PO.lastIndex=0,this.source.replace(PO,(n,i)=>LO(o[parseInt(i,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],r=[],o=[],n=[],i,a,l,c;for(i=0,a=this.source.length;i<a;i++)l=this.source.charAt(i),t[i]=l,r[i]=l,o[i]=l,n[i]=l,l==="\\"&&i+1<a&&(c=this.source.charAt(i+1),c==="A"?(t[i+1]="\uFFFF",r[i+1]="\uFFFF",o[i+1]="A",n[i+1]="A"):c==="G"?(t[i+1]="\uFFFF",r[i+1]="G",o[i+1]="\uFFFF",n[i+1]="G"):(t[i+1]=c,r[i+1]=c,o[i+1]=c,n[i+1]=c),i++);return{A0_G0:t.join(""),A0_G1:r.join(""),A1_G0:o.join(""),A1_G1:n.join("")}}resolveAnchors(t,r){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?r?this._anchorCache.A1_G1:this._anchorCache.A1_G0:r?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Gp=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(r=>r.source);this._cached=new zO(e,t,this._items.map(r=>r.ruleId))}return this._cached}compileAG(e,t,r){return this._hasAnchors?t?r?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,r)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,r)),this._anchorCache.A1_G0):r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,r)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,r){let o=this._items.map(n=>n.resolveAnchors(t,r));return new zO(e,o,this._items.map(n=>n.ruleId))}},zO=class{constructor(e,t,r){this.regExps=t,this.rules=r,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){let e=[];for(let t=0,r=this.rules.length;t<r;t++)e.push("   - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
109`)}findNextMatchSync(e,t,r){let o=this.scanner.findNextMatchSync(e,t,r);return o?{ruleId:this.rules[o.index],captureIndices:o.captureIndices}:null}},_S=class{constructor(e,t){this.languageId=e,this.tokenType=t}},cne=class IS{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,r){this._defaultAttributes=new _S(t,8),this._embeddedLanguagesMatcher=new une(Object.entries(r||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?IS._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new _S(0,0);_getBasicScopeAttributes=new jO(t=>{let r=this._scopeToLanguage(t),o=this._toStandardTokenType(t);return new _S(r,o)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){let r=t.match(IS.STANDARD_TOKEN_TYPE_REGEXP);if(!r)return 8;switch(r[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},une=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);let t=e.map(([r,o])=>LO(r));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}},APe={InDebugMode:typeof process<"u"&&!!__PROCESS_ENV.VSCODE_TEXTMATE_DEBUG},HO=!1,EO=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function WO(e,t,r,o,n,i,a,l){let c=t.content.length,d=!1,p=-1;if(a){let g=dne(e,t,r,o,n,i);n=g.stack,o=g.linePos,r=g.isFirstLine,p=g.anchorPosition}let m=Date.now();for(;!d;){if(l!==0&&Date.now()-m>l)return new EO(n,!0);h()}return new EO(n,!1);function h(){let g=pne(e,t,r,o,n,p);if(!g){i.produce(n,c),d=!0;return}let w=g.captureIndices,$=g.matchedRuleId,T=w&&w.length>0?w[0].end>o:!1;if($===ane){let z=n.getRule(e);i.produce(n,w[0].start),n=n.withContentNameScopesList(n.nameScopesList),Up(e,t,r,n,i,z.endCaptures,w),i.produce(n,w[0].end);let P=n;if(n=n.parent,p=P.getAnchorPos(),!T&&P.getEnterPos()===o){n=P,i.produce(n,c),d=!0;return}}else{let z=e.getRule($);i.produce(n,w[0].start);let P=n,k=z.getName(t.content,w),M=n.contentNameScopesList.pushAttributed(k,e);if(n=n.push($,o,p,w[0].end===c,null,M,M),z instanceof TS){let E=z;Up(e,t,r,n,i,E.beginCaptures,w),i.produce(n,w[0].end),p=w[0].end;let D=E.getContentName(t.content,w),F=M.pushAttributed(D,e);if(n=n.withContentNameScopesList(F),E.endHasBackReferences&&(n=n.withEndRule(E.getEndWithResolvedBackReferences(t.content,w))),!T&&P.hasSameRuleAs(n)){n=n.pop(),i.produce(n,c),d=!0;return}}else if(z instanceof Ov){let E=z;Up(e,t,r,n,i,E.beginCaptures,w),i.produce(n,w[0].end),p=w[0].end;let D=E.getContentName(t.content,w),F=M.pushAttributed(D,e);if(n=n.withContentNameScopesList(F),E.whileHasBackReferences&&(n=n.withEndRule(E.getWhileWithResolvedBackReferences(t.content,w))),!T&&P.hasSameRuleAs(n)){n=n.pop(),i.produce(n,c),d=!0;return}}else if(Up(e,t,r,n,i,z.captures,w),i.produce(n,w[0].end),n=n.pop(),!T){n=n.safePop(),i.produce(n,c),d=!0;return}}w[0].end>o&&(o=w[0].end,r=!1)}}function dne(e,t,r,o,n,i){let a=n.beginRuleCapturedEOL?0:-1,l=[];for(let c=n;c;c=c.pop()){let d=c.getRule(e);d instanceof Ov&&l.push({rule:d,stack:c})}for(let c=l.pop();c;c=l.pop()){let{ruleScanner:d,findOptions:p}=hne(c.rule,e,c.stack.endRule,r,o===a),m=d.findNextMatchSync(t,o,p);if(m){if(m.ruleId!==VO){n=c.stack.pop();break}m.captureIndices&&m.captureIndices.length&&(i.produce(c.stack,m.captureIndices[0].start),Up(e,t,r,c.stack,i,c.rule.whileCaptures,m.captureIndices),i.produce(c.stack,m.captureIndices[0].end),a=m.captureIndices[0].end,m.captureIndices[0].end>o&&(o=m.captureIndices[0].end,r=!1))}else{n=c.stack.pop();break}}return{stack:n,linePos:o,anchorPosition:a,isFirstLine:r}}function pne(e,t,r,o,n,i){let a=mne(e,t,r,o,n,i),l=e.getInjections();if(l.length===0)return a;let c=fne(l,e,t,r,o,n,i);if(!c)return a;if(!a)return c;let d=a.captureIndices[0].start,p=c.captureIndices[0].start;return p<d||c.priorityMatch&&p===d?c:a}function mne(e,t,r,o,n,i){let a=n.getRule(e),{ruleScanner:l,findOptions:c}=JO(a,e,n.endRule,r,o===i),d=l.findNextMatchSync(t,o,c);return d?{captureIndices:d.captureIndices,matchedRuleId:d.ruleId}:null}function fne(e,t,r,o,n,i,a){let l=Number.MAX_VALUE,c=null,d,p=0,m=i.contentNameScopesList.getScopeNames();for(let h=0,g=e.length;h<g;h++){let w=e[h];if(!w.matcher(m))continue;let $=t.getRule(w.ruleId),{ruleScanner:T,findOptions:z}=JO($,t,null,o,n===a),P=T.findNextMatchSync(r,n,z);if(!P)continue;let k=P.captureIndices[0].start;if(!(k>=l)&&(l=k,c=P.captureIndices,d=P.ruleId,p=w.priority,l===n))break}return c?{priorityMatch:p===-1,captureIndices:c,matchedRuleId:d}:null}function JO(e,t,r,o,n){if(HO){let a=e.compile(t,r),l=KO(o,n);return{ruleScanner:a,findOptions:l}}return{ruleScanner:e.compileAG(t,r,o,n),findOptions:0}}function hne(e,t,r,o,n){if(HO){let a=e.compileWhile(t,r),l=KO(o,n);return{ruleScanner:a,findOptions:l}}return{ruleScanner:e.compileWhileAG(t,r,o,n),findOptions:0}}function KO(e,t){let r=0;return e||(r|=1),t||(r|=4),r}function Up(e,t,r,o,n,i,a){if(i.length===0)return;let l=t.content,c=Math.min(i.length,a.length),d=[],p=a[0].end;for(let m=0;m<c;m++){let h=i[m];if(h===null)continue;let g=a[m];if(g.length===0)continue;if(g.start>p)break;for(;d.length>0&&d[d.length-1].endPos<=g.start;)n.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop();if(d.length>0?n.produceFromScopes(d[d.length-1].scopes,g.start):n.produce(o,g.start),h.retokenizeCapturedWithRuleId){let $=h.getName(l,a),T=o.contentNameScopesList.pushAttributed($,e),z=h.getContentName(l,a),P=T.pushAttributed(z,e),k=o.push(h.retokenizeCapturedWithRuleId,g.start,-1,!1,null,T,P),M=e.createOnigString(l.substring(0,g.end));WO(e,M,r&&g.start===0,g.start,k,n,!1,0),FO(M);continue}let w=h.getName(l,a);if(w!==null){let T=(d.length>0?d[d.length-1].scopes:o.contentNameScopesList).pushAttributed(w,e);d.push(new gne(T,g.end))}}for(;d.length>0;)n.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop()}var gne=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function vne(e,t,r,o,n,i,a,l){return new bne(e,t,r,o,n,i,a,l)}function AO(e,t,r,o,n){let i=Rv(t,Lv),a=GO.getCompiledRuleId(r,o,n.repository);for(let l of i)e.push({debugSelector:t,matcher:l.matcher,ruleId:a,grammar:n,priority:l.priority})}function Lv(e,t){if(t.length<e.length)return!1;let r=0;return e.every(o=>{for(let n=r;n<t.length;n++)if(yne(t[n],o))return r=n+1,!0;return!1})}function yne(e,t){if(!e)return!1;if(e===t)return!0;let r=t.length;return e.length>r&&e.substr(0,r)===t&&e[r]==="."}var bne=class{constructor(e,t,r,o,n,i,a,l){if(this._rootScopeName=e,this.balancedBracketSelectors=i,this._onigLib=l,this._basicScopeAttributesProvider=new cne(r,o),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=a,this._grammar=MO(t,null),this._injections=null,this._tokenTypeMatchers=[],n)for(let c of Object.keys(n)){let d=Rv(c,Lv);for(let p of d)this._tokenTypeMatchers.push({matcher:p.matcher,type:n[c]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e={lookup:n=>n===this._rootScopeName?this._grammar:this.getExternalGrammar(n),injections:n=>this._grammarRepository.injections(n)},t=[],r=this._rootScopeName,o=e.lookup(r);if(o){let n=o.injections;if(n)for(let a in n)AO(t,a,n[a],this,o);let i=this._grammarRepository.injections(r);i&&i.forEach(a=>{let l=this.getExternalGrammar(a);if(l){let c=l.injectionSelector;c&&AO(t,c,l,this,l)}})}return t.sort((n,i)=>n.priority-i.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,r=e(t);return this._ruleId2desc[t]=r,r}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let r=this._grammarRepository.lookup(e);if(r)return this._includedGrammars[e]=MO(r,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,r=0){let o=this._tokenize(e,t,!1,r);return{tokens:o.lineTokens.getResult(o.ruleStack,o.lineLength),ruleStack:o.ruleStack,stoppedEarly:o.stoppedEarly}}tokenizeLine2(e,t,r=0){let o=this._tokenize(e,t,!0,r);return{tokens:o.lineTokens.getBinaryResult(o.ruleStack,o.lineLength),ruleStack:o.ruleStack,stoppedEarly:o.stoppedEarly}}_tokenize(e,t,r,o){this._rootId===-1&&(this._rootId=GO.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let n;if(!t||t===PS.NULL){n=!0;let d=this._basicScopeAttributesProvider.getDefaultAttributes(),p=this.themeProvider.getDefaults(),m=Ps.set(0,d.languageId,d.tokenType,null,p.fontStyle,p.foregroundId,p.backgroundId),h=this.getRule(this._rootId).getName(null,null),g;h?g=Bp.createRootAndLookUpScopeName(h,m,this):g=Bp.createRoot("unknown",m),t=new PS(null,this._rootId,-1,-1,!1,null,g,g)}else n=!1,t.reset();e=e+`
110`;let i=this.createOnigString(e),a=i.content.length,l=new wne(r,e,this._tokenTypeMatchers,this.balancedBracketSelectors),c=WO(this,i,n,0,t,l,!0,o);return FO(i),{lineLength:a,lineTokens:l,ruleStack:c.stack,stoppedEarly:c.stoppedEarly}}};function MO(e,t){return e=Lre(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var Bp=class Io{constructor(t,r,o){this.parent=t,this.scopePath=r,this.tokenAttributes=o}static fromExtension(t,r){let o=t,n=t?.scopePath??null;for(let i of r)n=wS.push(n,i.scopeNames),o=new Io(o,n,i.encodedTokenAttributes);return o}static createRoot(t,r){return new Io(null,new wS(null,t),r)}static createRootAndLookUpScopeName(t,r,o){let n=o.getMetadataForScope(t),i=new wS(null,t),a=o.themeProvider.themeMatch(i),l=Io.mergeAttributes(r,n,a);return new Io(null,i,l)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return Io.equals(this,t)}static equals(t,r){do{if(t===r||!t&&!r)return!0;if(!t||!r||t.scopeName!==r.scopeName||t.tokenAttributes!==r.tokenAttributes)return!1;t=t.parent,r=r.parent}while(!0)}static mergeAttributes(t,r,o){let n=-1,i=0,a=0;return o!==null&&(n=o.fontStyle,i=o.foregroundId,a=o.backgroundId),Ps.set(t,r.languageId,r.tokenType,null,n,i,a)}pushAttributed(t,r){if(t===null)return this;if(t.indexOf(" ")===-1)return Io._pushAttributed(this,t,r);let o=t.split(/ /g),n=this;for(let i of o)n=Io._pushAttributed(n,i,r);return n}static _pushAttributed(t,r,o){let n=o.getMetadataForScope(r),i=t.scopePath.push(r),a=o.themeProvider.themeMatch(i),l=Io.mergeAttributes(t.tokenAttributes,n,a);return new Io(t,i,l)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){let r=[],o=this;for(;o&&o!==t;)r.push({encodedTokenAttributes:o.tokenAttributes,scopeNames:o.scopePath.getExtensionIfDefined(o.parent?.scopePath??null)}),o=o.parent;return o===t?r.reverse():void 0}},PS=class Is{constructor(t,r,o,n,i,a,l,c){this.parent=t,this.ruleId=r,this.beginRuleCapturedEOL=i,this.endRule=a,this.nameScopesList=l,this.contentNameScopesList=c,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=o,this._anchorPos=n}_stackElementBrand=void 0;static NULL=new Is(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:Is._equals(this,t)}static _equals(t,r){return t===r?!0:this._structuralEquals(t,r)?Bp.equals(t.contentNameScopesList,r.contentNameScopesList):!1}static _structuralEquals(t,r){do{if(t===r||!t&&!r)return!0;if(!t||!r||t.depth!==r.depth||t.ruleId!==r.ruleId||t.endRule!==r.endRule)return!1;t=t.parent,r=r.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){Is._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,r,o,n,i,a,l){return new Is(this,t,r,o,n,i,a,l)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){let t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,r){return this.parent&&(r=this.parent._writeString(t,r)),t[r++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,r}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new Is(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let r=this;for(;r&&r._enterPos===t._enterPos;){if(r.ruleId===t.ruleId)return!0;r=r.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,r){let o=Bp.fromExtension(t?.nameScopesList??null,r.nameScopesList);return new Is(t,r.ruleId,r.enterPos??-1,r.anchorPos??-1,r.beginRuleCapturedEOL,r.endRule,o,Bp.fromExtension(o,r.contentNameScopesList))}},xne=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(r=>r==="*"?(this.allowAny=!0,[]):Rv(r,Lv).map(o=>o.matcher)),this.unbalancedBracketScopes=t.flatMap(r=>Rv(r,Lv).map(o=>o.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},wne=class{constructor(e,t,r,o){this.balancedBracketSelectors=o,this._emitBinaryTokens=e,this._tokenTypeOverrides=r,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let o=e?.tokenAttributes??0,n=!1;if(this.balancedBracketSelectors?.matchesAlways&&(n=!0),this._tokenTypeOverrides.length>
vendor: 18,571 bytes, line 110
1100||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let i=e?.getScopeNames()??[];for(let a of this._tokenTypeOverrides)a.matcher(i)&&(o=Ps.set(o,0,a.type,null,-1,0,0));this.balancedBracketSelectors&&(n=this.balancedBracketSelectors.match(i))}if(n&&(o=Ps.set(o,0,8,n,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===o){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(o),this._lastTokenEndIndex=t;return}let r=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:r}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);let r=new Uint32Array(this._binaryTokens.length);for(let o=0,n=this._binaryTokens.length;o<n;o++)r[o]=this._binaryTokens[o];return r}},_ne=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,r,o,n){if(!this._grammars.has(e)){let i=this._rawGrammars.get(e);if(!i)return null;this._grammars.set(e,vne(e,i,t,r,o,n,this,this._onigLib))}return this._grammars.get(e)}},XO=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new _ne(Fp.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(Fp.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,r){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:r})}loadGrammarWithConfiguration(e,t,r){return this._loadGrammar(e,t,r.embeddedLanguages,r.tokenTypes,new xne(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,r,o,n){let i=new Yre(this._syncRegistry,e);for(;i.Q.length>0;)i.Q.map(a=>this._loadSingleGrammar(a.scopeName)),i.processQueue();return this._grammarForScopeName(e,t,r,o,n)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let r=typeof this._options.getInjections=="function"?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,r)}}addGrammar(e,t=[],r=0,o=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,r,o)}_grammarForScopeName(e,t=0,r=null,o=null,n=null){return this._syncRegistry.grammarForScopeName(e,t,r,o,n)}},jv=PS.NULL;function Wp(e,t){let r=typeof e=="string"?{}:{...e.colorReplacements},o=typeof e=="string"?e:e.name;for(let[n,i]of Object.entries(t?.colorReplacements||{}))typeof i=="string"?r[n]=i:n===o&&Object.assign(r,i);return r}function di(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function rL(e){return Array.isArray(e)?e:[e]}async function zS(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function Jp(e){return!e||["plaintext","txt","text","plain"].includes(e)}function nL(e){return e==="ansi"||Jp(e)}function Kp(e){return e==="none"}function oL(e){return Kp(e)}function Ac(e,t=!1){if(e.length===0)return[["",0]];let r=e.split(/(\r?\n)/g),o=0,n=[];for(let i=0;i<r.length;i+=2){let a=t?r[i]+(r[i+1]||""):r[i];n.push([a,o]),o+=r[i].length,o+=r[i+1]?.length||0}return n}var YO={light:"#333333",dark:"#bbbbbb"},QO={light:"#fffffe",dark:"#1e1e1e"},eL="__shiki_resolved";function Uv(e){if(e?.[eL])return e;let t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:r,fg:o}=t;if(!r||!o){let l=t.settings?t.settings.find(c=>!c.name&&!c.scope):void 0;l?.settings?.foreground&&(o=l.settings.foreground),l?.settings?.background&&(r=l.settings.background),!o&&t?.colors?.["editor.foreground"]&&(o=t.colors["editor.foreground"]),!r&&t?.colors?.["editor.background"]&&(r=t.colors["editor.background"]),o||(o=t.type==="light"?YO.light:YO.dark),r||(r=t.type==="light"?QO.light:QO.dark),t.fg=o,t.bg=r}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let n=0,i=new Map;function a(l){if(i.has(l))return i.get(l);n+=1;let c=`#${n.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${c}`]?a(l):(i.set(l,c),c)}t.settings=t.settings.map(l=>{let c=l.settings?.foreground&&!l.settings.foreground.startsWith("#"),d=l.settings?.background&&!l.settings.background.startsWith("#");if(!c&&!d)return l;let p={...l,settings:{...l.settings}};if(c){let m=a(l.settings.foreground);t.colorReplacements[m]=l.settings.foreground,p.settings.foreground=m}if(d){let m=a(l.settings.background);t.colorReplacements[m]=l.settings.background,p.settings.background=m}return p});for(let l of Object.keys(t.colors||{}))if((l==="editor.foreground"||l==="editor.background"||l.startsWith("terminal.ansi"))&&!t.colors[l]?.startsWith("#")){let c=a(t.colors[l]);t.colorReplacements[c]=t.colors[l],t.colors[l]=c}return Object.defineProperty(t,eL,{enumerable:!1,writable:!1,value:!0}),t}async function iL(e){return Array.from(new Set((await Promise.all(e.filter(t=>!nL(t)).map(async t=>await zS(t).then(r=>Array.isArray(r)?r:[r])))).flat()))}async function aL(e){return(await Promise.all(e.map(async t=>oL(t)?null:Uv(await zS(t))))).filter(t=>!!t)}function sL(e,t){if(!t)return e;if(t[e]){let r=new Set([e]);for(;t[e];){if(e=t[e],r.has(e))throw new St(`Circular alias \`${Array.from(r).join(" -> ")} -> ${e}\``);r.add(e)}}return e}var kne=class extends XO{_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(e,t,r,o={}){super(e),this._resolver=e,this._themes=t,this._langs=r,this._alias=o,this._themes.map(n=>this.loadTheme(n)),this.loadLanguages(this._langs)}getTheme(e){return typeof e=="string"?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=Uv(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=Fp.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=sL(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(n=>n.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let r={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let o=this.loadGrammarWithConfiguration(e.scopeName,1,r);if(o.name=e.name,this._resolvedGrammars.set(e.name,o),e.aliases&&e.aliases.forEach(n=>{this._alias[n]=e.name}),this._loadedLanguagesCache=null,t.size)for(let n of t)this._resolvedGrammars.delete(n.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(n.scopeName),this._syncRegistry?._grammars?.delete(n.scopeName),this.loadLanguage(this._langMap.get(n.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let o of e)this.resolveEmbeddedLanguages(o);let t=Array.from(this._langGraph.entries()),r=t.filter(([o,n])=>!n);if(r.length){let o=t.filter(([n,i])=>i?(i.embeddedLanguages||i.embeddedLangs)?.some(a=>r.map(([l])=>l).includes(a)):!1).filter(n=>!r.includes(n));throw new St(`Missing languages ${r.map(([n])=>`\`${n}\``).join(", ")}, required by ${o.map(([n])=>`\`${n}\``).join(", ")}`)}for(let[o,n]of t)this._resolver.addLanguage(n);for(let[o,n]of t)this.loadLanguage(n)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);let t=e.embeddedLanguages??e.embeddedLangs;if(t)for(let r of t)this._langGraph.set(r,this._langMap.get(r))}},Sne=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:r=>e.createScanner(r),createOnigString:r=>e.createString(r)},t.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split("."),r=[];for(let o=1;o<=t.length;o++){let n=t.slice(0,o).join(".");r=[...r,...this._injections.get(n)||[]]}return r}},Hp=0;function ES(e){Hp+=1,e.warnings!==!1&&Hp>=10&&Hp%10===0&&console.warn(`[Shiki] ${Hp} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new St("`engine` option is required for synchronous mode");let r=(e.langs||[]).flat(1),o=(e.themes||[]).flat(1).map(Uv),n=new kne(new Sne(e.engine,r),o,r,e.langAlias),i;function a(P){return sL(P,e.langAlias)}function l(P){T();let k=n.getGrammar(typeof P=="string"?P:P.name);if(!k)throw new St(`Language \`${P}\` not found, you may need to load it first`);return k}function c(P){if(P==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};T();let k=n.getTheme(P);if(!k)throw new St(`Theme \`${P}\` not found, you may need to load it first`);return k}function d(P){T();let k=c(P);return i!==P&&(n.setTheme(k),i=P),{theme:k,colorMap:n.getColorMap()}}function p(){return T(),n.getLoadedThemes()}function m(){return T(),n.getLoadedLanguages()}function h(...P){T(),n.loadLanguages(P.flat(1))}async function g(...P){return h(await iL(P))}function w(...P){T();for(let k of P.flat(1))n.loadTheme(k)}async function $(...P){return T(),w(await aL(P))}function T(){if(t)throw new St("Shiki instance has been disposed")}function z(){t||(t=!0,n.dispose(),Hp-=1)}return{setTheme:d,getTheme:c,getLanguage:l,getLoadedThemes:p,getLoadedLanguages:m,resolveLangAlias:a,loadLanguage:g,loadLanguageSync:h,loadTheme:$,loadThemeSync:w,dispose:z,[Symbol.dispose]:z}}async function AS(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,r,o]=await Promise.all([aL(e.themes||[]),iL(e.langs||[]),e.engine]);return ES({...e,themes:t,langs:r,engine:o})}var lL=new WeakMap;function Xp(e,t){lL.set(e,t)}function Mc(e){return lL.get(e)}var Bv=class cL{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,r){return new cL(Object.fromEntries(rL(r).map(o=>[o,jv])),t)}constructor(...t){if(t.length===2){let[r,o]=t;this.lang=o,this._stacks=r}else{let[r,o,n]=t;this.lang=o,this._stacks={[n]:r}}}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return $ne(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function $ne(e){let t=[],r=new Set;function o(n){if(r.has(n))return;r.add(n);let i=n?.nameScopesList?.scopeName;i&&t.push(i),n.parent&&o(n.parent)}return o(e),t}function Tne(e,t){if(!(e instanceof Bv))throw new St("Invalid grammar state");return e.getInternalStack(t)}function MS(e,t,r={}){let{theme:o=e.getLoadedThemes()[0]}=r;if(Jp(e.resolveLangAlias(r.lang||"text"))||Kp(o))return Ac(t).map(l=>[{content:l[0],offset:l[1]}]);let{theme:n,colorMap:i}=e.setTheme(o),a=e.getLanguage(r.lang||"text");if(r.grammarState){if(r.grammarState.lang!==a.name)throw new St(`Grammar state language "${r.grammarState.lang}" does not match highlight language "${a.name}"`);if(!r.grammarState.themes.includes(n.name))throw new St(`Grammar state themes "${r.grammarState.themes}" do not contain highlight theme "${n.name}"`)}return dL(t,a,n,i,r)}function uL(...e){if(e.length===2)return Mc(e[1]);let[t,r,o={}]=e,{lang:n="text",theme:i=t.getLoadedThemes()[0]}=o;if(Jp(n)||Kp(i))throw new St("Plain language does not have grammar state");if(n==="ansi")throw new St("ANSI language does not have grammar state");let{theme:a,colorMap:l}=t.setTheme(i),c=t.getLanguage(n);return new Bv(NS(r,c,a,l,o).stateStack,c.name,a.name)}function dL(e,t,r,o,n){let i=NS(e,t,r,o,n),a=new Bv(i.stateStack,t.name,r.name);return Xp(i.tokens,a),i.tokens}function NS(e,t,r,o,n){let i=Wp(r,n),{tokenizeMaxLineLength:a=0,tokenizeTimeLimit:l=500}=n,c=Ac(e),d=n.grammarState?Tne(n.grammarState,r.name)??jv:n.grammarContextCode!=null?NS(n.grammarContextCode,t,r,o,{...n,grammarState:void 0,grammarContextCode:void 0}).stateStack:jv,p=[],m=[];for(let h=0,g=c.length;h<g;h++){let[w,$]=c[h];if(w===""){p=[],m.push([]);continue}if(a>0&&w.length>=a){p=[],m.push([{content:w,offset:$,color:"",fontStyle:0}]);continue}let T,z,P;n.includeExplanation&&(T=t.tokenizeLine(w,d,l),z=T.tokens,P=0);let k=t.tokenizeLine2(w,d,l),M=k.tokens.length/2;for(let E=0;E<M;E++){let D=k.tokens[2*E],F=E+1<M?k.tokens[2*E+2]:w.length;if(D===F)continue;let H=k.tokens[2*E+1],Z=di(o[Ps.getForeground(H)],i),W=Ps.getFontStyle(H),ke={content:w.substring(D,F),offset:$+D,color:Z,fontStyle:W};if(n.includeExplanation){let ge=[];if(n.includeExplanation!=="scopeName")for(let Ie of r.settings){let We;switch(typeof Ie.scope){case"string":We=Ie.scope.split(/,/).map(we=>we.trim());break;case"object":We=Ie.scope;break;default:continue}ge.push({settings:Ie,selectors:We.map(we=>we.split(/ /))})}ke.explanation=[];let xt=0;for(;D+xt<F;){let Ie=z[P],We=w.substring(Ie.startIndex,Ie.endIndex);xt+=We.length,ke.explanation.push({content:We,scopes:n.includeExplanation==="scopeName"?Ine(Ie.scopes):Pne(ge,Ie.scopes)}),P+=1}}p.push(ke)}m.push(p),p=[],d=k.ruleStack}return{tokens:m,stateStack:d}}function Ine(e){return e.map(t=>({scopeName:t}))}function Pne(e,t){let r=[];for(let o=0,n=t.length;o<n;o++){let i=t[o];r[o]={scopeName:i,themeMatches:zne(e,i,t.slice(0,o))}}return r}function tL(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function Cne(e,t,r){if(!tL(e[e.length-1],t))return!1;let o=e.length-2,n=r.length-1;for(;o>=0&&n>=0;)tL(e[o],r[n])&&(o-=1),n-=1;return o===-1}function zne(e,t,r){let o=[];for(let{selectors:n,settings:i}of e)for(let a of n)if(Cne(a,t,r)){o.push(i);break}return o}function Fv(e,t,r,o=MS){let n=Object.entries(r.themes).filter(d=>d[1]).map(d=>({color:d[0],theme:d[1]})),i=n.map(d=>{let p=o(e,t,{...r,theme:d.theme});return{tokens:p,state:Mc(p),theme:typeof d.theme=="string"?d.theme:d.theme.name}}),a=Ene(...i.map(d=>d.tokens)),l=a[0].map((d,p)=>d.map((m,h)=>{let g={content:m.content,variants:{},offset:m.offset};return"includeExplanation"in r&&r.includeExplanation&&(g.explanation=m.explanation),a.forEach((w,$)=>{let{content:T,explanation:z,offset:P,...k}=w[p][h];g.variants[n[$].color]=k}),g})),c=i[0].state?new Bv(Object.fromEntries(i.map(d=>[d.theme,d.state?.getInternalStack(d.theme)])),i[0].state.lang):void 0;return c&&Xp(l,c),l}function Ene(...e){let t=e.map(()=>[]),r=e.length;for(let o=0;o<e[0].length;o++){let n=e.map(c=>c[o]),i=t.map(()=>[]);t.forEach((c,d)=>c.push(i[d]));let a=n.map(()=>0),l=n.map(c=>c[0]);for(;l.every(c=>c);){let c=Math.min(...l.map(d=>d.content.length));for(let d=0;d<r;d++){let p=l[d];p.content.length===c?(i[d].push(p),a[d]+=1,l[d]=n[d][a[d]]):(i[d].push({...p,content:p.content.slice(0,c)}),l[d]={...p,content:p.content.slice(c),offset:p.offset+c})}}}return t}var Ane=/["&'<>`]/g,Mne=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Nne=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Rne=/[|\\{}()[\]^$+*?.]/g,pL=new WeakMap;function mL(e,t){if(e=e.replace(t.subset?Dne(t.subset):Ane,o),t.subset||t.escapeOnly)return e;return e.replace(Mne,r).replace(Nne,o);function r(n,i,a){return t.format((n.charCodeAt(0)-55296)*1024+n.charCodeAt(1)-56320+65536,a.charCodeAt(i+2),t)}function o(n,i,a){return t.format(n.charCodeAt(0),a.charCodeAt(i+1),t)}}function Dne(e){let t=pL.get(e);return t||(t=One(e),pL.set(e,t)),t}function One(e){let t=[],r=-1;for(;++r<e.length;)t.push(e[r].replace(Rne,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}var Lne=/[\dA-Fa-f]/;function fL(e,t,r){let o="&#x"+e.toString(16).toUpperCase();return r&&t&&!Lne.test(String.fromCharCode(t))?o:o+";"}var jne=/\d/;function hL(e,t,r){let o="&#"+String(e);return r&&t&&!jne.test(String.fromCharCode(t))?o:o+";"}var gL=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","
110sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"];var Zv={nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",fnof:"\u0192",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",bull:"\u2022",hellip:"\u2026",prime:"\u2032",Prime:"\u2033",oline:"\u203E",frasl:"\u2044",weierp:"\u2118",image:"\u2111",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",quot:'"',amp:"&",lt:"<",gt:">",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",circ:"\u02C6",tilde:"\u02DC",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",permil:"\u2030",lsaquo:"\u2039",rsaquo:"\u203A",euro:"\u20AC"};var vL=["cent","copy","divide","gt","lt","not","para","times"];var yL={}.hasOwnProperty,RS={},Vv;for(Vv in Zv)yL.call(Zv,Vv)&&(RS[Zv[Vv]]=Vv);var Une=/[^\dA-Za-z]/;function bL(e,t,r,o){let n=String.fromCharCode(e);if(yL.call(RS,n)){let i=RS[n],a="&"+i;return r&&gL.includes(i)&&!vL.includes(i)&&(!o||t&&t!==61&&Une.test(String.fromCharCode(t)))?a:a+";"}return""}function xL(e,t,r){let o=fL(e,t,r.omitOptionalSemicolons),n;if((r.useNamedReferences||r.useShortestReferences)&&(n=bL(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!n)&&r.useShortestReferences){let i=hL(e,t,r.omitOptionalSemicolons);i.length<o.length&&(o=i)}return n&&(!r.useShortestReferences||n.length<o.length)?n:o}function pi(e,t){return mL(e,Object.assign({format:xL},t))}var Bne=/^>|^->|<!--|-->|--!>|<!-$/g,Fne=[">"],Zne=["<",">"];function wL(e,t,r,o){return o.settings.bogusComments?"<?"+pi(e.value,Object.assign({},o.settings.characterReferences,{subset:Fne}))+">":"<!--"+e.value.replace(Bne,n)+"-->";function n(i){return pi(i,Object.assign({},o.settings.characterReferences,{subset:Zne}))}}function _L(e,t,r,o){return"<!"+(o.settings.upperDoctype?"DOCTYPE":"doctype")+(o.settings.tightDoctype?"":" ")+"html>"}var Kt=kL(1),DS=kL(-1),Vne=[];function kL(e){return t;function t(r,o,n){let i=r?r.children:Vne,a=(o||0)+e,l=i[a];if(!n)for(;l&&Ys(l);)a+=e,l=i[a];return l}}var Gne={}.hasOwnProperty;function Gv(e){return t;function t(r,o,n){return Gne.call(e,r.tagName)&&e[r.tagName](r,o,n)}}var Yp=Gv({body:Hne,caption:OS,colgroup:OS,dd:Xne,dt:Kne,head:OS,html:qne,li:Jne,optgroup:Yne,option:Qne,p:Wne,rp:SL,rt:SL,tbody:toe,td:$L,tfoot:roe,th:$L,thead:eoe,tr:noe});function OS(e,t,r){let o=Kt(r,t,!0);return!o||o.type!=="comment"&&!(o.type==="text"&&Ys(o.value.charAt(0)))}function qne(e,t,r){let o=Kt(r,t);return!o||o.type!=="comment"}function Hne(e,t,r){let o=Kt(r,t);return!o||o.type!=="comment"}function Wne(e,t,r){let o=Kt(r,t);return o?o.type==="element"&&(o.tagName==="address"||o.tagName==="article"||o.tagName==="aside"||o.tagName==="blockquote"||o.tagName==="details"||o.tagName==="div"||o.tagName==="dl"||o.tagName==="fieldset"||o.tagName==="figcaption"||o.tagName==="figure"||o.tagName==="footer"||o.tagName==="form"||o.tagName==="h1"||o.tagName==="h2"||o.tagName==="h3"||o.tagName==="h4"||o.tagName==="h5"||o.tagName==="h6"||o.tagName==="header"||o.tagName==="hgroup"||o.tagName==="hr"||o.tagName==="main"||o.tagName==="menu"||o.tagName==="nav"||o.tagName==="ol"||o.tagName==="p"||o.tagName==="pre"||o.tagName==="section"||o.tagName==="table"||o.tagName==="ul"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}function Jne(e,t,r){let o=Kt(r,t);return!o||o.type==="element"&&o.tagName==="li"}function Kne(e,t,r){let o=Kt(r,t);return!!(o&&o.type==="element"&&(o.tagName==="dt"||o.tagName==="dd"))}function Xne(e,t,r){let o=Kt(r,t);return!o||o.type==="element"&&(o.tagName==="dt"||o.tagName==="dd")}function SL(e,t,r){let o=Kt(r,t);return!o||o.type==="element"&&(o.tagName==="rp"||o.tagName==="rt")}function Yne(e,t,r){let o=Kt(r,t);return!o||o.type==="element"&&o.tagName==="optgroup"}function Qne(e,t,r){let o=Kt(r,t);return!o||o.type==="element"&&(o.tagName==="option"||o.tagName==="optgroup")}function eoe(e,t,r){let o=Kt(r,t);return!!(o&&o.type==="element"&&(o.tagName==="tbody"||o.tagName==="tfoot"))}function toe(e,t,r){let o=Kt(r,t);return!o||o.type==="element"&&(o.tagName==="tbody"||o.tagName==="tfoot")}function roe(e,t,r){return!Kt(r,t)}function noe(e,t,r){let o=Kt(r,t);return!o||o.type==="element"&&o.tagName==="tr"}function $L(e,t,r){let o=Kt(r,t);return!o||o.type==="element"&&(o.tagName==="td"||o.tagName==="th")}var TL=Gv({body:aoe,colgroup:soe,head:ioe,html:ooe,tbody:loe});function ooe(e){let t=Kt(e,-1);return!t||t.type!=="comment"}function ioe(e){let t=new Set;for(let o of e.children)if(o.type==="element"&&(o.tagName==="base"||o.tagName==="title")){if(t.has(o.tagName))return!1;t.add(o.tagName)}let r=e.children[0];return!r||r.type==="element"}function aoe(e){let t=Kt(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&Ys(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function soe(e,t,r){let o=DS(r,t),n=Kt(e,-1,!0);return r&&o&&o.type==="element"&&o.tagName==="colgroup"&&Yp(o,r.children.indexOf(o),r)?!1:!!(n&&n.type==="element"&&n.tagName==="col")}function loe(e,t,r){let o=DS(r,t),n=Kt(e,-1);return r&&o&&o.type==="element"&&(o.tagName==="thead"||o.tagName==="tbody")&&Yp(o,r.children.indexOf(o),r)?!1:!!(n&&n.type==="element"&&n.tagName==="tr")}var qv={name:[[`	
111\f\r &/=>`.split(""),`	
112\f\r "&'/=>
vendor: 21,171 bytes, lines 112-119
112\``.split("")],[`\0	
113\f\r "&'/<=>`.split(""),`\0	
114\f\r "&'/<=>\``.split("")]],unquoted:[[`	
115\f\r &>`.split(""),`\0	
116\f\r "&'<=>\``.split("")],[`\0	
117\f\r "&'<=>\``.split(""),`\0	
118\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function IL(e,t,r,o){let n=o.schema,i=n.space==="svg"?!1:o.settings.omitOptionalTags,a=n.space==="svg"?o.settings.closeEmptyElements:o.settings.voids.includes(e.tagName.toLowerCase()),l=[],c;n.space==="html"&&e.tagName==="svg"&&(o.schema=Jm);let d=coe(o,e.properties),p=o.all(n.space==="html"&&e.tagName==="template"?e.content:e);return o.schema=n,p&&(a=!1),(d||!i||!TL(e,t,r))&&(l.push("<",e.tagName,d?" "+d:""),a&&(n.space==="svg"||o.settings.closeSelfClosing)&&(c=d.charAt(d.length-1),(!o.settings.tightSelfClosing||c==="/"||c&&c!=='"'&&c!=="'")&&l.push(" "),l.push("/")),l.push(">")),l.push(p),!a&&(!i||!Yp(e,t,r))&&l.push("</"+e.tagName+">"),l.join("")}function coe(e,t){let r=[],o=-1,n;if(t){for(n in t)if(t[n]!==null&&t[n]!==void 0){let i=uoe(e,n,t[n]);i&&r.push(i)}}for(;++o<r.length;){let i=e.settings.tightAttributes?r[o].charAt(r[o].length-1):void 0;o!==r.length-1&&i!=='"'&&i!=="'"&&(r[o]+=" ")}return r.join("")}function uoe(e,t,r){let o=V$(e.schema,t),n=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,i=e.settings.allowDangerousCharacters?0:1,a=e.quote,l;if(o.overloadedBoolean&&(r===o.attribute||r==="")?r=!0:(o.boolean||o.overloadedBoolean)&&(typeof r!="string"||r===o.attribute||r==="")&&(r=!!r),r==null||r===!1||typeof r=="number"&&Number.isNaN(r))return"";let c=pi(o.attribute,Object.assign({},e.settings.characterReferences,{subset:qv.name[n][i]}));return r===!0||(r=Array.isArray(r)?(o.commaSeparated?H$:W$)(r,{padLeft:!e.settings.tightCommaSeparatedLists}):String(r),e.settings.collapseEmptyAttributes&&!r)?c:(e.settings.preferUnquoted&&(l=pi(r,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:qv.unquoted[n][i]}))),l!==r&&(e.settings.quoteSmart&&zb(r,a)>zb(r,e.alternative)&&(a=e.alternative),l=a+pi(r,Object.assign({},e.settings.characterReferences,{subset:(a==="'"?qv.single:qv.double)[n][i],attribute:!0}))+a),c+(l&&"="+l))}var doe=["<","&"];function Hv(e,t,r,o){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?e.value:pi(e.value,Object.assign({},o.settings.characterReferences,{subset:doe}))}function PL(e,t,r,o){return o.settings.allowDangerousHtml?e.value:Hv(e,t,r,o)}function CL(e,t,r,o){return o.all(e)}var zL=q$("type",{invalid:poe,unknown:moe,handlers:{comment:wL,doctype:_L,element:IL,raw:PL,root:CL,text:Hv}});function poe(e){throw new Error("Expected node, not `"+e+"`")}function moe(e){let t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}var foe={},hoe={},goe=[];function LS(e,t){let r=t||foe,o=r.quote||'"',n=o==='"'?"'":'"';if(o!=='"'&&o!=="'")throw new Error("Invalid quote `"+o+"`, expected `'` or `\"`");return{one:voe,all:yoe,settings:{omitOptionalTags:r.omitOptionalTags||!1,allowParseErrors:r.allowParseErrors||!1,allowDangerousCharacters:r.allowDangerousCharacters||!1,quoteSmart:r.quoteSmart||!1,preferUnquoted:r.preferUnquoted||!1,tightAttributes:r.tightAttributes||!1,upperDoctype:r.upperDoctype||!1,tightDoctype:r.tightDoctype||!1,bogusComments:r.bogusComments||!1,tightCommaSeparatedLists:r.tightCommaSeparatedLists||!1,tightSelfClosing:r.tightSelfClosing||!1,collapseEmptyAttributes:r.collapseEmptyAttributes||!1,allowDangerousHtml:r.allowDangerousHtml||!1,voids:r.voids||Z$,characterReferences:r.characterReferences||hoe,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?Jm:G$,quote:o,alternative:n}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function voe(e,t,r){return zL(e,t,r,this)}function yoe(e){let t=[],r=e&&e.children||goe,o=-1;for(;++o<r.length;)t[o]=this.one(r[o],o,e);return t.join("")}function ML(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);let r=Array.isArray(t)?t:t.split(/\s+/g);for(let o of r)o&&!e.properties.class.includes(o)&&e.properties.class.push(o);return e}function boe(e){let t=Ac(e,!0).map(([n])=>n);function r(n){if(n===e.length)return{line:t.length-1,character:t[t.length-1].length};let i=n,a=0;for(let l of t){if(i<l.length)break;i-=l.length,a++}return{line:a,character:i}}function o(n,i){let a=0;for(let l=0;l<n;l++)a+=t[l].length;return a+=i,a}return{lines:t,indexToPos:r,posToIndex:o}}var FS="light-dark()",xoe=["color","background-color"];function woe(e,t){let r=0,o=[];for(let n of t)n>r&&o.push({...e,content:e.content.slice(r,n),offset:e.offset+r}),r=n;return r<e.content.length&&o.push({...e,content:e.content.slice(r),offset:e.offset+r}),o}function _oe(e,t){let r=Array.from(t instanceof Set?t:new Set(t)).sort((o,n)=>o-n);return r.length?e.map(o=>o.flatMap(n=>{let i=r.filter(a=>n.offset<a&&a<n.offset+n.content.length).map(a=>a-n.offset).sort((a,l)=>a-l);return i.length?woe(n,i):n})):e}function koe(e,t,r,o,n="css-vars"){let i={content:e.content,explanation:e.explanation,offset:e.offset},a=t.map(p=>Wv(e.variants[p])),l=new Set(a.flatMap(p=>Object.keys(p))),c={},d=(p,m)=>{let h=m==="color"?"":m==="background-color"?"-bg":`-${m}`;return r+t[p]+(m==="color"?"":h)};return a.forEach((p,m)=>{for(let h of l){let g=p[h]||"inherit";if(m===0&&o&&xoe.includes(h))if(o===FS&&a.length>1){let w=t.findIndex(T=>T==="light"),$=t.findIndex(T=>T==="dark");if(w===-1||$===-1)throw new St('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');c[h]=`light-dark(${a[w][h]||"inherit"}, ${a[$][h]||"inherit"})`,n==="css-vars"&&(c[d(m,h)]=g)}else c[h]=g;else n==="css-vars"&&(c[d(m,h)]=g)}}),i.htmlStyle=c,i}function Wv(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&xr.Italic&&(t["font-style"]="italic"),e.fontStyle&xr.Bold&&(t["font-weight"]="bold");let r=[];e.fontStyle&xr.Underline&&r.push("underline"),e.fontStyle&xr.Strikethrough&&r.push("line-through"),r.length&&(t["text-decoration"]=r.join(" "))}return t}function US(e){return typeof e=="string"?e:Object.entries(e).map(([t,r])=>`${t}:${r}`).join(";")}function Soe(){let e=new WeakMap;function t(r){if(!e.has(r.meta)){let i=function(l){if(typeof l=="number"){if(l<0||l>r.source.length)throw new St(`Invalid decoration offset: ${l}. Code length: ${r.source.length}`);return{...n.indexToPos(l),offset:l}}else{let c=n.lines[l.line];if(c===void 0)throw new St(`Invalid decoration position ${JSON.stringify(l)}. Lines length: ${n.lines.length}`);let d=l.character;if(d<0&&(d=c.length+d),d<0||d>c.length)throw new St(`Invalid decoration position ${JSON.stringify(l)}. Line ${l.line} length: ${c.length}`);return{...l,character:d,offset:n.posToIndex(l.line,d)}}};var o=i;let n=boe(r.source),a=(r.options.decorations||[]).map(l=>({...l,start:i(l.start),end:i(l.end)}));$oe(a),e.set(r.meta,{decorations:a,converter:n,source:r.source})}return e.get(r.meta)}return{name:"shiki:decorations",tokens(r){if(this.options.decorations?.length)return _oe(r,t(this).decorations.flatMap(o=>[o.start.offset,o.end.offset]))},code(r){if(!this.options.decorations?.length)return;let o=t(this),n=Array.from(r.children).filter(p=>p.type==="element"&&p.tagName==="span");if(n.length!==o.converter.lines.length)throw new St(`Number of lines in code element (${n.length}) does not match the number of lines in the source (${o.converter.lines.length}). Failed to apply decorations.`);function i(p,m,h,g){let w=n[p],$="",T=-1,z=-1;if(m===0&&(T=0),h===0&&(z=0),h===Number.POSITIVE_INFINITY&&(z=w.children.length),T===-1||z===-1)for(let k=0;k<w.children.length;k++)$+=NL(w.children[k]),T===-1&&$.length===m&&(T=k+1),z===-1&&$.length===h&&(z=k+1);if(T===-1)throw new St(`Failed to find start index for decoration ${JSON.stringify(g.start)}`);if(z===-1)throw new St(`Failed to find end index for decoration ${JSON.stringify(g.end)}`);let P=w.children.slice(T,z);if(!g.alwaysWrap&&P.length===w.children.length)l(w,g,"line");else if(!g.alwaysWrap&&P.length===1&&P[0].type==="element")l(P[0],g,"token");else{let k={type:"element",tagName:"span",properties:{},children:P};l(k,g,"wrapper"),w.children.splice(T,P.length,k)}}function a(p,m){n[p]=l(n[p],m,"line")}function l(p,m,h){let g=m.properties||{},w=m.transform||($=>$);return p.tagName=m.tagName||"span",p.properties={...p.properties,...g,class:p.properties.class},m.properties?.class&&ML(p,m.properties.class),p=w(p,h)||p,p}let c=[],d=o.decorations.sort((p,m)=>m.start.offset-p.start.offset||p.end.offset-m.end.offset);for(let p of d){let{start:m,end:h}=p;if(m.line===h.line)i(m.line,m.character,h.character,p);else if(m.line<h.line){i(m.line,m.character,Number.POSITIVE_INFINITY,p);for(let g=m.line+1;g<h.line;g++)c.unshift(()=>a(g,p));i(h.line,0,h.character,p)}}c.forEach(p=>p())}}}function $oe(e){for(let t=0;t<e.length;t++){let r=e[t];if(r.start.offset>r.end.offset)throw new St(`Invalid decoration range: ${JSON.stringify(r.start)} - ${JSON.stringify(r.end)}`);for(let o=t+1;o<e.length;o++){let n=e[o],i=r.start.offset<=n.start.offset&&n.start.offset<r.end.offset,a=r.start.offset<n.end.offset&&n.end.offset<=r.end.offset,l=n.start.offset<=r.start.offset&&r.start.offset<n.end.offset,c=n.start.offset<r.end.offset&&r.end.offset<=n.end.offset;if(i||a||l||c){if(i&&a||l&&c||l&&r.start.offset===r.end.offset||a&&n.start.offset===n.end.offset)continue;throw new St(`Decorations ${JSON.stringify(r.start)} and ${JSON.stringify(n.start)} intersect.`)}}}}function NL(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(NL).join(""):""}var Toe=[Soe()];function Jv(e){let t=Ioe(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...Toe]}function Ioe(e){let t=[],r=[],o=[];for(let n of e)switch(n.enforce){case"pre":t.push(n);break;case"post":r.push(n);break;default:o.push(n)}return{pre:t,post:r,normal:o}}var Cs=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],jS={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function Poe(e,t){let r=e.indexOf("\x1B",t);if(r!==-1&&e[r+1]==="["){let o=e.indexOf("m",r);if(o!==-1)return{sequence:e.substring(r+2,o).split(";"),startPosition:r,position:o+1}}return{position:e.length}}function EL(e){let t=e.shift();if(t==="2"){let r=e.splice(0,3).map(o=>Number.parseInt(o));return r.length!==3||r.some(o=>Number.isNaN(o))?void 0:{type:"rgb",rgb:r}}else if(t==="5"){let r=e.shift();if(r)return{type:"table",index:Number(r)}}}function Coe(e){let t=[];for(;e.length>0;){let r=e.shift();if(!r)continue;let o=Number.parseInt(r);if(!Number.isNaN(o))if(o===0)t.push({type:"resetAll"});else if(o<=9)jS[o]&&t.push({type:"setDecoration",value:jS[o]});else if(o<=29){let n=jS[o-20];n&&(t.push({type:"resetDecoration",value:n}),n==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(o<=37)t.push({type:"setForegroundColor",value:{type:"named",name:Cs[o-30]}});else if(o===38){let n=EL(e);n&&t.push({type:"setForegroundColor",value:n})}else if(o===39)t.push({type:"resetForegroundColor"});else if(o<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:Cs[o-40]}});else if(o===48){let n=EL(e);n&&t.push({type:"setBackgroundColor",value:n})}else o===49?t.push({type:"resetBackgroundColor"}):o===53?t.push({type:"setDecoration",value:"overline"}):o===55?t.push({type:"resetDecoration",value:"overline"}):o>=90&&o<=97?t.push({type:"setForegroundColor",value:{type:"named",name:Cs[o-90+8]}}):o>=100&&o<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:Cs[o-100+8]}})}return t}function zoe(){let e=null,t=null,r=new Set;return{parse(o){let n=[],i=0;do{let a=Poe(o,i),l=a.sequence?o.substring(i,a.startPosition):o.substring(i);if(l.length>0&&n.push({value:l,foreground:e,background:t,decorations:new Set(r)}),a.sequence){let c=Coe(a.sequence);for(let d of c)d.type==="resetAll"?(e=null,t=null,r.clear()):d.type==="resetForegroundColor"?e=null:d.type==="resetBackgroundColor"?t=null:d.type==="resetDecoration"&&r.delete(d.value);for(let d of c)d.type==="setForegroundColor"?e=d.value:d.type==="setBackgroundColor"?t=d.value:d.type==="setDecoration"&&r.add(d.value)}i=a.position}while(i<o.length);return n}}}var Eoe={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function Aoe(e=Eoe){function t(l){return e[l]}function r(l){return`#${l.map(c=>Math.max(0,Math.min(c,255)).toString(16).padStart(2,"0")).join("")}`}let o;function n(){if(o)return o;o=[];for(let d=0;d<Cs.length;d++)o.push(t(Cs[d]));let l=[0,95,135,175,215,255];for(let d=0;d<6;d++)for(let p=0;p<6;p++)for(let m=0;m<6;m++)o.push(r([l[d],l[p],l[m]]));let c=8;for(let d=0;d<24;d++,c+=10)o.push(r([c,c,c]));return o}function i(l){return n()[l]}function a(l){switch(l.type){case"named":return t(l.name);case"rgb":return r(l.rgb);case"table":return i(l.index)}}return{value:a}}var Moe={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function Noe(e,t,r){let o=Wp(e,r),n=Ac(t),i=Aoe(Object.fromEntries(Cs.map(l=>{let c=`terminal.ansi${l[0].toUpperCase()}${l.substring(1)}`;return[l,e.colors?.[c]||Moe[l]]}))),a=zoe();return n.map(l=>a.parse(l[0]).map(c=>{let d,p;c.decorations.has("reverse")?(d=c.background?i.value(c.background):e.bg,p=c.foreground?i.value(c.foreground):e.fg):(d=c.foreground?i.value(c.foreground):e.fg,p=c.background?i.value(c.background):void 0),d=di(d,o),p=di(p,o),c.decorations.has("dim")&&(d=Roe(d));let m=xr.None;return c.decorations.has("bold")&&(m|=xr.Bold),c.decorations.has("italic")&&(m|=xr.Italic),c.decorations.has("underline")&&(m|=xr.Underline),c.decorations.has("strikethrough")&&(m|=xr.Strikethrough),{content:c.value,offset:l[1],color:d,bgColor:p,fontStyle:m}}))}function Roe(e){let t=e.match(/#([0-9a-f]{3,8})/i);if(t){let o=t[1];if(o.length===8){let n=Math.round(Number.parseInt(o.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${o.slice(0,6)}${n}`}else{if(o.length===6)return`#${o}80`;if(o.length===4){let n=o[0],i=o[1],a=o[2],l=o[3];return`#${n}${n}${i}${i}${a}${a}${Math.round(Number.parseInt(`${l}${l}`,16)/2).toString(16).padStart(2,"0")}`}else if(o.length===3){let n=o[0],i=o[1],a=o[2];return`#${n}${n}${i}${i}${a}${a}80`}}}let r=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return r?`var(${r[1]}-dim)`:e}function BS(e,t,r={}){let o=e.resolveLangAlias(r.lang||"text"),{theme:n=e.getLoadedThemes()[0]}=r;if(!Jp(o)&&!Kp(n)&&o==="ansi"){let{theme:i}=e.setTheme(n);return Noe(i,t,r)}return MS(e,t,r)}function Kv(e,t,r){let o,n,i,a,l,c;if("themes"in r){let{defaultColor:d="light",cssVariablePrefix:p="--shiki-",colorsRendering:m="css-vars"}=r,h=Object.entries(r.themes).filter(z=>z[1]).map(z=>({color:z[0],theme:z[1]})).sort((z,P)=>z.color===d?-1:P.color===d?1:0);if(h.length===0)throw new St("`themes` option must not be empty");let g=Fv(e,t,r,BS);if(c=Mc(g),d&&FS!==d&&!h.find(z=>z.color===d))throw new St(`\`themes\` option must contain the defaultColor key \`${d}\``);let w=h.map(z=>e.getTheme(z.theme)),$=h.map(z=>z.color);i=g.map(z=>z.map(P=>koe(P,$,p,d,m))),c&&Xp(i,c);let T=h.map(z=>Wp(z.theme,r));n=AL(h,w,T,p,d,"fg",m),o=AL(h,w,T,p,d,"bg",m),a=`shiki-themes ${w.map(z=>z.name).join(" ")}`,l=d?void 0:[n,o].join(";")}else if("theme"in r){let d=Wp(r.theme,r);i=BS(e,t,r);let p=e.getTheme(r.theme);o=di(p.bg,d),n=di(p.fg,d),a=p.name,c=Mc(i)}else throw new St("Invalid options, either `theme` or `themes` must be provided");return{tokens:i,fg:n,bg:o,themeName:a,rootStyle:l,grammarState:c}}function AL(e,t,r,o,n,i,a){return e.map((l,c)=>{let d=di(t[c][i],r[c])||"inherit",p=`${o+l.color}${i==="bg"?"-bg":""}:${d}`;if(c===0&&n){if(n===FS&&e.length>1){let m=e.findIndex(g=>g.color==="light"),h=e.findIndex(g=>g.color==="dark");if(m===-1||h===-1)throw new St('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${di(t[m][i],r[m])||"inherit"}, ${di(t[h][i],r[h])||"inherit"});${p}`}return d}return a==="css-vars"?p:null}).filter(l=>!!l).join(";")}function Xv(e,t,r,o={meta:{},options:r,codeToHast:(n,i)=>Xv(e,n,i),codeToTokens:(n,i)=>Kv(e,n,i)}){let n=t;for(let w of Jv(r))n=w.preprocess?.call(o,n,r)||n;let{tokens:i,fg:a,bg:l,themeName:c,rootStyle:d,grammarState:p}=Kv(e,n,r),{mergeWhitespaces:m=!0,mergeSameStyleTokens:h=!1}=r;m===!0?i=Ooe(i):m==="never"&&(i=Loe(i)),h&&(i=joe(i));let g={...o,get source(){return n}};for(let w of Jv(r))i=w.tokens?.call(g,i)||i;return Doe(i,{...r,fg:a,bg:l,themeName:c,rootStyle:r.rootStyle===!1?!1:r.rootStyle??d},g,p)}function Doe(e,t,r,o=Mc(e)){let n=Jv(t),i=[],a={type:"root",children:[]},{structure:l="classic",tabindex:c="0"}=t,d={class:`shiki ${t.themeName||""}`};t.rootStyle!==!1&&(t.rootStyle!=null?d.style=t.rootStyle:d.style=`background-color:${t.bg};color:${t.fg}`),c!==!1&&c!=null&&(d.tabindex=c.toString());for(let[$,T]of Object.entries(t.meta||{}))$.startsWith("_")||(d[$]=T);let p={type:"element",tagName:"pre",properties:d,children:[],data:t.data},m={type:"element",tagName:"code",properties:{},children:i},h=[],g={...r,structure:l,addClassToHast:ML,get source(){return r.source},get tokens(){return e},get options(){return t},get root(){return a},get pre(){return p},get code(){return m},get lines(){return h}};if(e.forEach(($,T)=>{T&&(l==="inline"?a.children.push({type:"element",tagName:"br",properties:{},children:[]}):l==="classic"&&i.push({type:"text",value:`
119`}));let z={type:"element",tagName:"span",properties:{class:"line"},children:[]},P=0;for(let k of $){let M={type:"element",tagName:"span",properties:{...k.htmlAttrs},children:[{type:"text",value:k.content}]},E=US(k.htmlStyle||Wv(k));E&&(M.properties.style=E);for(let D of n)M=D?.span?.call(g,M,T+1,P,z,k)||M;l==="inline"?a.children.push(M):l==="classic"&&z.children.push(M),P+=k.content.length}if(l==="classic"){for(let k of n)z=k?.line?.call(g,z,T+1)||z;h.push(z),i.push(z)}else l==="inline"&&h.push(z)}),l==="classic"){for(let $ of n)m=$?.code?.call(g,m)||m;p.children.push(m);for(let $ of n)p=$?.pre?.call(g,p)||p;a.children.push(p)}else if(l==="inline"){let $=[],T={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(let P of a.children)P.type==="element"&&P.tagName==="br"?($.push(T),T={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(P.type==="element"||P.type==="text")&&T.children.push(P);$.push(T);let z={type:"element",tagName:"code",properties:{},children:$};for(let P of n)z=P?.code?.call(g,z)||z;a.children=[];for(let P=0;P<z.children.length;P++){P>0&&a.children.push({type:"element",tagName:"br",properties:{},children:[]});let k=z.children[P];k.type==="element"&&a.children.push(...k.children)}}let w=a;for(let $ of n)w=$?.root?.call(g,w)||w;return o&&Xp(w,o),w}function Ooe(e){return e.map(t=>{let r=[],o="",n;return t.forEach((i,a)=>{let l=!(i.fontStyle&&(i.fontStyle&xr.Underline||i.fontStyle&xr.Strikethrough));l&&i.content.match(/^\s+$/)&&t[a+1]?(n===void 0&&(n=i.offset),o+=i.content):o?(l?r.push({...i,offset:n,content:o+i.content}):r.push({content:o,offset:n},i),n=void 0,o=""):r.push(i)}),r})}function Loe(e){return e.map(t=>t.flatMap(r=>{if(r.content.match(/^\s+$/))return r;let o=r.content.match(/^(\s*)(.*?)(\s*)$/);if(!o)return r;let[,n,i,a]=o;if(!n&&!a)return r;let l=[{...r,offset:r.offset+n.length,content:i}];return n&&l.unshift({content:n,offset:r.offset}),a&&l.push({content:a,offset:r.offset+n.length+i.length}),l}))}function joe(e){return e.map(t=>{let r=[];for(let o of t){if(r.length===0){r.push({...o});continue}let n=r[r.length-1],i=US(n.htmlStyle||Wv(n)),a=US(o.htmlStyle||Wv(o)),l=n.fontStyle&&(n.fontStyle&xr.Underline||n.fontStyle&xr.Strikethrough),c=o.fontStyle&&(o.fontStyle&xr.Underline||o.fontStyle&xr.Strikethrough);!l&&!c&&i===a?n.content+=o.content:r.push({...o})}return r})}var Uoe=LS;function Boe(e,t,r){let o={meta:{},options:r,codeToHast:(i,a)=>Xv(e,i,a),codeToTokens:(i,a)=>Kv(e,i,a)},n=Uoe(Xv(e,t,r,o));for(let i of Jv(r))n=i.postprocess?.call(o,n,r)||n;return n}async function RL(e){let t=await AS(e);return{getLastGrammarState:(...r)=>uL(t,...r),codeToTokensBase:(r,o)=>BS(t,r,o),codeToTokensWithThemes:(r,o)=>Fv(t,r,o),codeToTokens:(r,o)=>Kv(t,r,o),codeToHast:(r,o)=>Xv(t,r,o),codeToHtml:(r,o)=>Boe(t,r,o),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}var DL=class{regexps;constructor(e,t={}){this.patterns=e,this.options=t;let{forgiving:r=!1,cache:o,regexConstructor:n}=t;if(!n)throw new Error("Option `regexConstructor` is not provided");this.regexps=e.map(i=>
119{if(typeof i!="string")return i;let a=o?.get(i);if(a){if(a instanceof RegExp)return a;if(r)return null;throw a}try{let l=n(i);return o?.set(i,l),l}catch(l){if(o?.set(i,l),r)return null;throw l}})}findNextMatchSync(e,t,r){let o=typeof e=="string"?e:e.content,n=[];function i(a,l,c=0){return{index:a,captureIndices:l.indices.map(d=>d==null?{start:4294967295,end:4294967295,length:0}:{start:d[0]+c,end:d[1]+c,length:d[1]-d[0]})}}for(let a=0;a<this.regexps.length;a++){let l=this.regexps[a];if(l)try{l.lastIndex=t;let c=l.exec(o);if(!c)continue;if(c.index===t)return i(a,c,0);n.push([a,c,0])}catch(c){if(this.options.forgiving)continue;throw c}}if(n.length){let a=Math.min(...n.map(l=>l[1].index));for(let[l,c,d]of n)if(c.index===a)return i(l,c,d)}return null}};function va(e){if([...e].length!==1)throw new Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function OL(e,t,r){return e.has(t)||e.set(t,r),e.get(t)}var Qp=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),tr=String.raw;function mi(e,t){if(e==null)throw new Error(t??"Value expected");return e}var ZL=tr`\[\^?`,VL=`c.? | C(?:-.?)?|${tr`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${tr`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${tr`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${tr`o\{[^\}]*\}?`}|${tr`\d{1,3}`}`,VS=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,Yv=new RegExp(tr`
120  \\ (?:
121    ${VL}
122    | [gk]<[^>]*>?
123    | [gk]'[^']*'?
124    | .
125  )
126  | \( (?:
127    \? (?:
128      [:=!>({]
129      | <[=!]
130      | <[^>]*>
131      | '[^']*'
132      | ~\|?
133      | #(?:[^)\\]|\\.?)*
134      | [^:)]*[:)]
135    )?
136    | \*[^\)]*\)?
137  )?
138  | (?:${VS.source})+
139  | ${ZL}
140  | .
141`.replace(/\s+/g,""),"gsu"),ZS=new RegExp(tr`
142  \\ (?:
143    ${VL}
144    | .
145  )
146  | \[:(?:\^?\p{Alpha}+|\^):\]
147  | ${ZL}
148  | &&
149  | .
150`.replace(/\s+/g,""),"gsu");function GL(e,t={}){let r={flags:"",...t,rules:{captureGroup:!1,singleline:!1,...t.rules}};if(typeof e!="string")throw new Error("String expected as pattern");let o=aie(r.flags),n=[o.extended],i={captureGroup:r.rules.captureGroup,getCurrentModX(){return n.at(-1)},numOpenGroups:0,popModX(){n.pop()},pushModX(m){n.push(m)},replaceCurrentModX(m){n[n.length-1]=m},singleline:r.rules.singleline},a=[],l;for(Yv.lastIndex=0;l=Yv.exec(e);){let m=Foe(i,e,l[0],Yv.lastIndex);m.tokens?a.push(...m.tokens):m.token&&a.push(m.token),m.lastIndex!==void 0&&(Yv.lastIndex=m.lastIndex)}let c=[],d=0;a.filter(m=>m.type==="GroupOpen").forEach(m=>{m.kind==="capturing"?m.number=++d:m.raw==="("&&c.push(m)}),d||c.forEach((m,h)=>{m.kind="capturing",m.number=h+1});let p=d||c.length;return{tokens:a.map(m=>m.type==="EscapedNumber"?lie(m,p):m).flat(),flags:o}}function Foe(e,t,r,o){let[n,i]=r;if(r==="["||r==="[^"){let a=Zoe(t,r,o);return{tokens:a.tokens,lastIndex:a.lastIndex}}if(n==="\\"){if("AbBGyYzZ".includes(i))return{token:LL(r,r)};if(/^\\g[<']/.test(r)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(r))throw new Error(`Invalid group name "${r}"`);return{token:Qoe(r)}}if(/^\\k[<']/.test(r)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(r))throw new Error(`Invalid group name "${r}"`);return{token:HL(r)}}if(i==="K")return{token:WL("keep",r)};if(i==="N"||i==="R")return{token:zs("newline",r,{negate:i==="N"})};if(i==="O")return{token:zs("any",r)};if(i==="X")return{token:zs("text_segment",r)};let a=qL(r,{inCharClass:!1});return Array.isArray(a)?{tokens:a}:{token:a}}if(n==="("){if(i==="*")return{token:nie(r)};if(r==="(?{")throw new Error(`Unsupported callout "${r}"`);if(r.startsWith("(?#")){if(t[o]!==")")throw new Error('Unclosed comment group "(?#"');return{lastIndex:o+1}}if(/^\(\?[-imx]+[:)]$/.test(r))return{token:rie(r,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,r==="("&&!e.captureGroup||r==="(?:")return{token:Nc("group",r)};if(r==="(?>")return{token:Nc("atomic",r)};if(r==="(?="||r==="(?!"||r==="(?<="||r==="(?<!")return{token:Nc(r[2]==="<"?"lookbehind":"lookahead",r,{negate:r.endsWith("!")})};if(r==="("&&e.captureGroup||r.startsWith("(?<")&&r.endsWith(">")||r.startsWith("(?'")&&r.endsWith("'"))return{token:Nc("capturing",r,{...r!=="("&&{name:r.slice(3,-1)}})};if(r.startsWith("(?~")){if(r==="(?~|")throw new Error(`Unsupported absence function kind "${r}"`);return{token:Nc("absence_repeater",r)}}throw r==="(?("?new Error(`Unsupported conditional "${r}"`):new Error(`Invalid or unsupported group option "${r}"`)}if(r===")"){if(e.popModX(),e.numOpenGroups--,e.numOpenGroups<0)throw new Error('Unmatched ")"');return{token:Koe(r)}}if(e.getCurrentModX()){if(r==="#"){let a=t.indexOf(`
151`,o);return{lastIndex:a===-1?t.length:a}}if(/^\s$/.test(r)){let a=/\s+/y;return a.lastIndex=o,{lastIndex:a.exec(t)?a.lastIndex:o}}}if(r===".")return{token:zs("dot",r)};if(r==="^"||r==="$"){let a=e.singleline?{"^":tr`\A`,$:tr`\Z`}[r]:r;return{token:LL(a,r)}}return r==="|"?{token:Goe(r)}:VS.test(r)?{tokens:cie(r)}:{token:fi(va(r),r)}}function Zoe(e,t,r){let o=[jL(t[1]==="^",t)],n=1,i;for(ZS.lastIndex=r;i=ZS.exec(e);){let a=i[0];if(a[0]==="["&&a[1]!==":")n++,o.push(jL(a[1]==="^",a));else if(a==="]"){if(o.at(-1).type==="CharacterClassOpen")o.push(fi(93,a));
vendor: 18,675 bytes, line 151
151else if(n--,o.push(qoe(a)),!n)break}else{let l=Voe(a);Array.isArray(l)?o.push(...l):o.push(l)}}return{tokens:o,lastIndex:ZS.lastIndex||e.length}}function Voe(e){if(e[0]==="\\")return qL(e,{inCharClass:!0});if(e[0]==="["){let t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!Qp.has(t.groups.name))throw new Error(`Invalid POSIX class "${e}"`);return zs("posix",e,{value:t.groups.name,negate:!!t.groups.negate})}return e==="-"?Hoe(e):e==="&&"?Woe(e):fi(va(e),e)}function qL(e,{inCharClass:t}){let r=e[1];if(r==="c"||r==="C")return tie(e);if("dDhHsSwW".includes(r))return oie(e);if(e.startsWith(tr`\o{`))throw new Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);if(/^\\[pP]\{/.test(e)){if(e.length===3)throw new Error(`Incomplete or invalid Unicode property "${e}"`);return iie(e)}if(/^\\x[89A-Fa-f]\p{AHex}/u.test(e))try{let o=e.split(/\\x/).slice(1).map(a=>parseInt(a,16)),n=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(o)),i=new TextEncoder;return[...n].map(a=>{let l=[...i.encode(a)].map(c=>`\\x${c.toString(16)}`).join("");return fi(va(a),l)})}catch{throw new Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(r==="u"||r==="x")return fi(sie(e),e);if(UL.has(r))return fi(UL.get(r),e);if(/\d/.test(r))return Joe(t,e);if(e==="\\")throw new Error(tr`Incomplete escape "\"`);if(r==="M")throw new Error(`Unsupported meta "${e}"`);if([...e].length===2)return fi(e.codePointAt(1),e);throw new Error(`Unexpected escape "${e}"`)}function Goe(e){return{type:"Alternator",raw:e}}function LL(e,t){return{type:"Assertion",kind:e,raw:t}}function HL(e){return{type:"Backreference",raw:e}}function fi(e,t){return{type:"Character",value:e,raw:t}}function qoe(e){return{type:"CharacterClassClose",raw:e}}function Hoe(e){return{type:"CharacterClassHyphen",raw:e}}function Woe(e){return{type:"CharacterClassIntersector",raw:e}}function jL(e,t){return{type:"CharacterClassOpen",negate:e,raw:t}}function zs(e,t,r={}){return{type:"CharacterSet",kind:e,...r,raw:t}}function WL(e,t,r={}){return e==="keep"?{type:"Directive",kind:e,raw:t}:{type:"Directive",kind:e,flags:mi(r.flags),raw:t}}function Joe(e,t){return{type:"EscapedNumber",inCharClass:e,raw:t}}function Koe(e){return{type:"GroupClose",raw:e}}function Nc(e,t,r={}){return{type:"GroupOpen",kind:e,...r,raw:t}}function Xoe(e,t,r,o){return{type:"NamedCallout",kind:e,tag:t,arguments:r,raw:o}}function Yoe(e,t,r,o){return{type:"Quantifier",kind:e,min:t,max:r,raw:o}}function Qoe(e){return{type:"Subroutine",raw:e}}var eie=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),UL=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function tie(e){let t=e[1]==="c"?e[2]:e[3];if(!t||!/[A-Za-z]/.test(t))throw new Error(`Unsupported control character "${e}"`);return fi(va(t.toUpperCase())-64,e)}function rie(e,t){let{on:r,off:o}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;o??="";let n=(t.getCurrentModX()||r.includes("x"))&&!o.includes("x"),i=FL(r),a=FL(o),l={};if(i&&(l.enable=i),a&&(l.disable=a),e.endsWith(")"))return t.replaceCurrentModX(n),WL("flags",e,{flags:l});if(e.endsWith(":"))return t.pushModX(n),t.numOpenGroups++,Nc("group",e,{...(i||a)&&{flags:l}});throw new Error(`Unexpected flag modifier "${e}"`)}function nie(e){let t=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(e);if(!t)throw new Error(`Incomplete or invalid named callout "${e}"`);let{name:r,tag:o,args:n}=t.groups;if(!r)throw new Error(`Invalid named callout "${e}"`);if(o==="")throw new Error(`Named callout tag with empty value not allowed "${e}"`);let i=n?n.split(",").filter(p=>p!=="").map(p=>/^[+-]?\d+$/.test(p)?+p:p):[],[a,l,c]=i,d=eie.has(r)?r.toLowerCase():"custom";switch(d){case"fail":case"mismatch":case"skip":if(i.length>0)throw new Error(`Named callout arguments not allowed "${i}"`);break;case"error":if(i.length>1)throw new Error(`Named callout allows only one argument "${i}"`);if(typeof a=="string")throw new Error(`Named callout argument must be a number "${a}"`);break;case"max":if(!i.length||i.length>2)throw new Error(`Named callout must have one or two arguments "${i}"`);if(typeof a=="string"&&!/^[A-Za-z_]\w*$/.test(a))throw new Error(`Named callout argument one must be a tag or number "${a}"`);if(i.length===2&&(typeof l=="number"||!/^[<>X]$/.test(l)))throw new Error(`Named callout optional argument two must be '<', '>', or 'X' "${l}"`);break;case"count":case"total_count":if(i.length>1)throw new Error(`Named callout allows only one argument "${i}"`);if(i.length===1&&(typeof a=="number"||!/^[<>X]$/.test(a)))throw new Error(`Named callout optional argument must be '<', '>', or 'X' "${a}"`);break;case"cmp":if(i.length!==3)throw new Error(`Named callout must have three arguments "${i}"`);if(typeof a=="string"&&!/^[A-Za-z_]\w*$/.test(a))throw new Error(`Named callout argument one must be a tag or number "${a}"`);if(typeof l=="number"||!/^(?:[<>!=]=|[<>])$/.test(l))throw new Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${l}"`);if(typeof c=="string"&&!/^[A-Za-z_]\w*$/.test(c))throw new Error(`Named callout argument three must be a tag or number "${c}"`);break;case"custom":throw new Error(`Undefined callout name "${r}"`);default:throw new Error(`Unexpected named callout kind "${d}"`)}return Xoe(d,o??null,n?.split(",")??null,e)}function BL(e){let t=null,r,o;if(e[0]==="{"){let{minStr:n,maxStr:i}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups,a=1e5;if(+n>a||i&&+i>a)throw new Error("Quantifier value unsupported in Oniguruma");if(r=+n,o=i===void 0?+n:i===""?1/0:+i,r>o&&(t="possessive",[r,o]=[o,r]),e.endsWith("?")){if(t==="possessive")throw new Error('Unsupported possessive interval quantifier chain with "?"');t="lazy"}else t||(t="greedy")}else r=e[0]==="+"?1:0,o=e[0]==="?"?1:1/0,t=e[1]==="+"?"possessive":e[1]==="?"?"lazy":"greedy";return Yoe(t,r,o,e)}function oie(e){let t=e[1].toLowerCase();return zs({d:"digit",h:"hex",s:"space",w:"word"}[t],e,{negate:e[1]!==t})}function iie(e){let{p:t,neg:r,value:o}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return zs("property",e,{value:o,negate:t==="P"&&!r||t==="p"&&!!r})}function FL(e){let t={};return e.includes("i")&&(t.ignoreCase=!0),e.includes("m")&&(t.dotAll=!0),e.includes("x")&&(t.extended=!0),Object.keys(t).length?t:null}function aie(e){let t={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let r=0;r<e.length;r++){let o=e[r];if(!"imxDPSWy".includes(o))throw new Error(`Invalid flag "${o}"`);if(o==="y"){if(!/^y{[gw]}/.test(e.slice(r)))throw new Error('Invalid or unspecified flag "y" mode');t.textSegmentMode=e[r+2]==="g"?"grapheme":"word",r+=3;continue}t[{i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"}[o]]=!0}return t}function sie(e){if(/^(?:\\u(?!\p{AHex}{4})|\\x(?!\p{AHex}{1,2}|\{\p{AHex}{1,8}\}))/u.test(e))throw new Error(`Incomplete or invalid escape "${e}"`);let t=e[2]==="{"?/^\\x\{\s*(?<hex>\p{AHex}+)/u.exec(e).groups.hex:e.slice(2);return parseInt(t,16)}function lie(e,t){let{raw:r,inCharClass:o}=e,n=r.slice(1);if(!o&&(n!=="0"&&n.length===1||n[0]!=="0"&&+n<=t))return[HL(r)];let i=[],a=n.match(/^[0-7]+|\d/g);for(let l=0;l<a.length;l++){let c=a[l],d;if(l===0&&c!=="8"&&c!=="9"){if(d=parseInt(c,8),d>127)throw new Error(tr`Octal encoded byte above 177 unsupported "${r}"`)}else d=va(c);i.push(fi(d,(l===0?"\\":"")+c))}return i}function cie(e){let t=[],r=new RegExp(VS,"gy"),o;for(;o=r.exec(e);){let n=o[0];if(n[0]==="{"){let i=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(n);if(i){let{min:a,max:l}=i.groups;if(+a>+l&&n.endsWith("?")){r.lastIndex--,t.push(BL(n.slice(0,-1)));continue}}}t.push(BL(n))}return t}function Qv(e,t){if(!Array.isArray(e.body))throw new Error("Expected node with body array");if(e.body.length!==1)return!1;let r=e.body[0];return!t||Object.keys(t).every(o=>t[o]===r[o])}function JL(e){return uie.has(e.type)}var uie=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function ty(e,t={}){let r={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},o=GL(e,{flags:r.flags,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline}}),n=(h,g)=>{let w=o.tokens[i.nextIndex];switch(i.parent=h,i.nextIndex++,w.type){case"Alternator":return hi();case"Assertion":return die(w);case"Backreference":return pie(w,i);case"Character":return Rc(w.value,{useLastValid:!!g.isCheckingRangeEnd});case"CharacterClassHyphen":return mie(w,i,g);case"CharacterClassOpen":return fie(w,i,g);case"CharacterSet":return hie(w,i);case"Directive":return wie(w.kind,{flags:w.flags});case"GroupOpen":return gie(w,i,g);case"NamedCallout":return kie(w.kind,w.tag,w.arguments);case"Quantifier":return vie(w,i);case"Subroutine":return yie(w,i);default:throw new Error(`Unexpected token type "${w.type}"`)}},i={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:r.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:r.skipBackrefValidation,skipLookbehindValidation:r.skipLookbehindValidation,skipPropertyNameValidation:r.skipPropertyNameValidation,subroutines:[],tokens:o.tokens,unicodePropertyMap:r.unicodePropertyMap,walk:n},a=$ie(_ie(o.flags)),l=a.body[0];for(;i.nextIndex<o.tokens.length;){let h=n(l,{});h.type==="Alternative"?(a.body.push(h),l=h):l.body.push(h)}let{capturingGroups:c,hasNumberedRef:d,namedGroupsByName:p,subroutines:m}=i;if(d&&p.size&&!r.rules.captureGroup)throw new Error("Numbered backref/subroutine not allowed when using named capture");for(let{ref:h}of m)if(typeof h=="number"){if(h>c.length)throw new Error("Subroutine uses a group number that's not defined");h&&(c[h-1].isSubroutined=!0)}else if(p.has(h)){if(p.get(h).length>1)throw new Error(tr`Subroutine uses a duplicate group name "\g<${h}>"`);p.get(h)[0].isSubroutined=!0}else throw new Error(tr`Subroutine uses a group name that's not defined "\g<${h}>"`);return a}function die({kind:e}){return ry(mi({"^":"line_start",$:"line_end","\\A":"string_start","\\b":"word_boundary","\\B":"word_boundary","\\G":"search_start","\\y":"text_segment_boundary","\\Y":"text_segment_boundary","\\z":"string_end","\\Z":"string_end_newline"}[e],`Unexpected assertion kind "${e}"`),{negate:e===tr`\B`||e===tr`\Y`})}function pie({raw:e},t){let r=/^\\k[<']/.test(e),o=r?e.slice(3,-1):e.slice(1),n=(i,a=!1)=>{let l=t.capturingGroups.length,c=!1;if(i>l)if(t.skipBackrefValidation)c=!0;else throw new Error(`Not enough capturing groups defined to the left "${e}"`);return t.hasNumberedRef=!0,ey(a?l+1-i:i,{orphan:c})};if(r){let i=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(o);if(i)return n(+i.groups.num,!!i.groups.sign);if(/[-+]/.test(o))throw new Error(`Invalid backref name "${e}"`);if(!t.namedGroupsByName.has(o))throw new Error(`Group name not defined to the left "${e}"`);return ey(o)}return n(+o)}function mie(e,t,r){let{tokens:o,walk:n}=t,i=t.parent,a=i.body.at(-1),l=o[t.nextIndex];if(!r.isCheckingRangeEnd&&a&&a.type!=="CharacterClass"&&a.type!=="CharacterClassRange"&&l&&l.type!=="CharacterClassOpen"&&l.type!=="CharacterClassClose"&&l.type!=="CharacterClassIntersector"){let c=n(i,{...r,isCheckingRangeEnd:!0});if(a.type==="Character"&&c.type==="Character")return i.body.pop(),xie(a,c);throw new Error("Invalid character class range")}return Rc(va("-"))}function fie({negate:e},t,r){let{tokens:o,walk:n}=t,i=o[t.nextIndex],a=[em()],l=YL(i);for(;l.type!=="CharacterClassClose";){if(l.type==="CharacterClassIntersector")a.push(em()),t.nextIndex++;else{let d=a.at(-1);d.body.push(n(d,r))}l=YL(o[t.nextIndex],i)}let c=em({negate:e});return a.length===1?c.body=a[0].body:(c.kind="intersection",c.body=a.map(d=>d.body.length===1?d.body[0]:d)),t.nextIndex++,c}function hie({kind:e,negate:t,value:r},o){let{normalizeUnknownPropertyNames:n,skipPropertyNameValidation:i,unicodePropertyMap:a}=o;if(e==="property"){let l=Dc(r);if(Qp.has(l)&&!a?.has(l))e="posix",r=l;else return Es(r,{negate:t,normalizeUnknownPropertyNames:n,skipPropertyNameValidation:i,unicodePropertyMap:a})}return e==="posix"?Sie(r,{negate:t}):ny(e,{negate:t})}function gie(e,t,r){let{tokens:o,capturingGroups:n,namedGroupsByName:i,skipLookbehindValidation:a,walk:l}=t,c=Tie(e),d=c.type==="AbsenceFunction",p=XL(c),m=p&&c.negate;if(c.type==="CapturingGroup"&&(n.push(c),c.name&&OL(i,c.name,[]).push(c)),d&&r.isInAbsenceFunction)throw new Error("Nested absence function not supported by Oniguruma");let h=QL(o[t.nextIndex]);for(;h.type!=="GroupClose";){if(h.type==="Alternator")c.body.push(hi()),t.nextIndex++;else{let g=c.body.at(-1),w=l(g,{...r,isInAbsenceFunction:r.isInAbsenceFunction||d,isInLookbehind:r.isInLookbehind||p,isInNegLookbehind:r.isInNegLookbehind||m});if(g.body.push(w),(p||r.isInLookbehind)&&!a){let $="Lookbehind includes a pattern not allowed by Oniguruma";if(m||r.isInNegLookbehind){if(KL(w)||w.type==="CapturingGroup")throw new Error($)}else if(KL(w)||XL(w)&&w.negate)throw new Error($)}}h=QL(o[t.nextIndex])}return t.nextIndex++,c}function vie({kind:e,min:t,max:r},o){let n=o.parent,i=n.body.at(-1);if(!i||!JL(i))throw new Error("Quantifier requires a repeatable token");let a=qS(e,t,r,i);return n.body.pop(),a}function yie({raw:e},t){let{capturingGroups:r,subroutines:o}=t,n=e.slice(3,-1),i=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(n);if(i){let l=+i.groups.num,c=r.length;if(t.hasNumberedRef=!0,n={"":l,"+":c+l,"-":c+1-l}[i.groups.sign],n<1)throw new Error("Invalid subroutine number")}else n==="0"&&(n=0);let a=HS(n);return o.push(a),a}function bie(e,t){if(e!=="repeater")throw new Error(`Unexpected absence function kind "${e}"`);return{type:"AbsenceFunction",kind:e,body:tm(t?.body)}}function hi(e){return{type:"Alternative",body:ej(e?.body)}}function ry(e,t){let r={type:"Assertion",kind:e};return(e==="word_boundary"||e==="text_segment_boundary")&&(r.negate=!!t?.negate),r}function ey(e,t){let r=!!t?.orphan;return{type:"Backreference",ref:e,...r&&{orphan:r}}}function GS(e,t){let r={name:void 0,isSubroutined:!1,...t};if(r.name!==void 0&&!Iie(r.name))throw new Error(`Group name "${r.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:e,...r.name&&{name:r.name},...r.isSubroutined&&{isSubroutined:r.isSubroutined},body:tm(t?.body)}}function Rc(e,t){let r={useLastValid:!1,...t};if(e>1114111){let o=e.toString(16);if(r.useLastValid)e=1114111;else throw e>1310719?new Error(`Invalid code point out of range "\\x{${o}}"`):new Error(`Invalid code point out of range in JS "\\x{${o}}"`)}return{type:"Character",value:e}}function em(e){let t={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:t.kind,negate:t.negate,body:ej(e?.body)}}function xie(e,t){if(t.value<e.value)throw new Error("Character class range out of order");return{type:"CharacterClassRange",min:e,max:t}}function ny(e,t){let r=!!t?.negate,o={type:"CharacterSet",kind:e};return(e==="digit"||e==="hex"||e==="newline"||e==="space"||e==="word")&&(o.negate=r),(e==="text_segment"||e==="newline"&&!r)&&(o.variableLength=!0),o}function wie(e,t={}){if(e==="keep")return{type:"Directive",kind:e};if(e==="flags")return{type:"Directive",kind:e,flags:mi(t.flags)};throw new Error(`Unexpected directive kind "${e}"`)}function _ie(e){return{type:"Flags",...e}}function gn(e){let t=e?.atomic,r=e?.flags;if(t&&r)throw new Error("Atomic group cannot have flags");return{type:"Group",...t&&{atomic:t},...r&&{flags:r},body:tm(e?.body)}}function ya(e){let t={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:t.behind?"lookbehind":"lookahead",negate:t.negate,body:tm(e?.body)}}function kie(e,t,r){return{type:"NamedCallout",kind:e,tag:t,arguments:r}}function Sie(e,t){let r=!!t?.negate;if(!Qp.has(e))throw new Error(`Invalid POSIX class "${e}"`);return{type:"CharacterSet",kind:"posix",value:e,negate:r}}function qS(e,t,r,o){if(t>r)throw new Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:e,min:t,max:r,body:o}}function $ie(e,t){return{type:"Regex",body:tm(t?.body),flags:e}}function HS(e){return{type:"Subroutine",ref:e}}function Es(e,t){let r={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t},o=r.unicodePropertyMap?.get(Dc(e));if(!o){if(r.normalizeUnknownPropertyNames)o=Pie(e);else if(r.unicodePropertyMap&&!r.skipPropertyNameValidation)throw new Error(tr`Invalid Unicode property "\p{${e}}"`)}return{type:"CharacterSet",kind:"property",value:o??e,negate:r.negate}}function Tie({flags:e,kind:t,name:r,negate:o,number:n}){switch(t){case"absence_repeater":return bie("repeater");case"atomic":return gn({atomic:!0});case"capturing":return GS(n,{name:r});case"group":return gn({flags:e});case"lookahead":case"lookbehind":return ya({behind:t==="lookbehind",negate:o});default:throw new Error(`Unexpected group kind "${t}"`)}}function tm(e){if(e===void 0)e=[hi()];else if(!Array.isArray(e)||!e.length||!e.every(t=>t.type==="Alternative"))throw new Error("Invalid body; expected array of one or more Alternative nodes");return e}function ej(e){if(e===void 0)e=[];else if(!Array.isArray(e)||!e.every(t=>!!t.type))throw new Error("Invalid body; expected array of nodes");return e}function KL(e){return e.type==="LookaroundAssertion"&&e.kind==="lookahead"}function XL(e){return e.type==="LookaroundAssertion"&&e.kind==="lookbehind"}function Iie(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function Pie(e){return e.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,t=>t[0].toUpperCase()+t.slice(1).toLowerCase())}function Dc(e){return e.replace(/[- _]+/g,"").toLowerCase()}function YL(e,t){return mi(e,`${t?.type==="Character"&&t.value===93?"Empty":"Unclosed"} character class`)}function QL(e){return mi(e,"Unclosed group")}function As(e,t,r=null){function o(i,a){for(let l=0;l<i.length;l++){let c=n(i[l],a,l,i);l=Math.max(-1,l+c)}}function n(i,a=null,l=null,c=null){let d=0,p=!1,m={node:i,parent:a,key:l,container:c,root:e,remove(){oy(c).splice(Math.max(0,Oc(l)+d),1),d--,p=!0},removeAllNextSiblings(){return oy(c).splice(Oc(l)+1)},removeAllPrevSiblings(){let z=Oc(l)+d;return d-=z,oy(c).splice(0,Math.max(0,z))},replaceWith(z,P={}){let k=!!P.traverse;c?c[Math.max(0,Oc(l)+d)]=z:mi(a,"Can't replace root node")[l]=z,k&&n(z,a,l,c),p=!0},replaceWithMultiple(z,P={}){let k=!!P.traverse;if(oy(c).splice(Math.max(0,Oc(l)+d),1,...z),d+=z.length-1,k){let M=0;for(let E=0;E<z.length;E++)M+=n(z[E],a,Oc(l)+E+M,c)}p=!0},skip(){p=!0}
vendor: 2,761 bytes, line 151
151},{type:h}=i,g=t["*"],w=t[h],$=typeof g=="function"?g:g?.enter,T=typeof w=="function"?w:w?.enter;if($?.(m,r),T?.(m,r),!p)switch(h){case"AbsenceFunction":case"CapturingGroup":case"Group":o(i.body,i);break;case"Alternative":case"CharacterClass":o(i.body,i);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subroutine":break;case"CharacterClassRange":n(i.min,i,"min"),n(i.max,i,"max");break;case"LookaroundAssertion":o(i.body,i);break;case"Quantifier":n(i.body,i,"body");break;case"Regex":o(i.body,i),n(i.flags,i,"flags");break;default:throw new Error(`Unexpected node type "${h}"`)}return w?.exit?.(m,r),g?.exit?.(m,r),d}return n(e),e}function oy(e){if(!Array.isArray(e))throw new Error("Container expected");return e}function Oc(e){if(typeof e!="number")throw new Error("Numeric key expected");return e}var tj=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function rj(e,t){for(let r=0;r<e.length;r++)e[r]>=t&&e[r]++}function nj(e,t,r,o){return e.slice(0,t)+o+e.slice(t+r.length)}var en=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function rm(e,t,r,o){let n=new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,"gsu"),i=[!1],a=0,l="";for(let c of e.matchAll(n)){let{0:d,groups:{$skip:p}}=c;if(!p&&(!o||o===en.DEFAULT==!a)){r instanceof Function?l+=r(c,{context:a?en.CHAR_CLASS:en.DEFAULT,negated:i[i.length-1]}):l+=r;continue}d[0]==="["?(a++,i.push(d[1]==="^")):d==="]"&&a&&(a--,i.pop()),l+=d}return l}function WS(e,t,r,o){rm(e,t,r,o)}function Cie(e,t,r=0,o){if(!new RegExp(t,"su").test(e))return null;let n=new RegExp(`${t}|(?<$skip>\\\\?.)`,"gsu");n.lastIndex=r;let i=0,a;for(;a=n.exec(e);){let{0:l,groups:{$skip:c}}=a;if(!c&&(!o||o===en.DEFAULT==!i))return a;l==="["?i++:l==="]"&&i&&i--,n.lastIndex==a.index&&n.lastIndex++}return null}function nm(e,t,r){return!!Cie(e,t,0,r)}function oj(e,t){let r=/\\?./gsu;r.lastIndex=t;let o=e.length,n=0,i=1,a;for(;a=r.exec(e);){let[l]=a;if(l==="[")n++;else if(n)l==="]"&&n--;else if(l==="(")i++;else if(l===")"&&(i--,!i)){o=a.index;break}}return e.slice(t,o)}var ij=new RegExp(String.raw`(?<noncapturingStart>${tj})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function KS(e,t){let r=t?.hiddenCaptures??[],o=t?.captureTransfers??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:o,hiddenCaptures:r};let n="(?>",i="(?:(?=(",a=[0],l=[],c=0,d=0,p=NaN,m;do{m=!1;let h=0,g=0,w=!1,$;for(ij.lastIndex=Number.isNaN(p)?0:p+i.length;$=ij.exec(e);){let{0:T,index:z,groups:{capturingStart:P,noncapturingStart:k}}=$;if(T==="[")h++;else if(h)T==="]"&&h--;else if(T===n&&!w)p=z,w=!0;else if(w&&k)g++;else if(P)w?g++:(c++,a.push(c+d));else if(T===")"&&w){if(!g){d++;let M=c+d;if(e=`${e.slice(0,p)}${i}${e.slice(p+n.length,z)}
151))<$$${M}>)${e.slice(z+1)}`,m=!0,l.push(M),rj(r,M),o.size){let E=new Map;o.forEach((D,F)=>{E.set(F>=M?F+1:F,D.map(H=>H>=M?H+1:H))}),o=E}break}g--}}}while(m);return r.push(...l),e=rm(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:h,groups:{backrefNum:g,wrappedBackrefNum:w}})=>{if(g){let $=+g;if($>a.length-1)throw new Error(`Backref "${h}" greater than number of captures`);return`\\${a[$]}`}return`\\${w}`},en.DEFAULT),{pattern:e,captureTransfers:o,hiddenCaptures:r}}var aj=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,JS=new RegExp(String.raw`
152\\(?: \d+
153  | c[A-Za-z]
154  | [gk]<[^>]+>
155  | [pPu]\{[^\}]+\}
156  | u[A-Fa-f\d]{4}
157  | x[A-Fa-f\d]{2}
158  )
159| \((?: \? (?: [:=!>]
160  | <(?:[=!]|[^>]+>)
161  | [A-Za-z\-]+:
162  | \(DEFINE\)
163  ))?
164| (?<qBase>${aj})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
165| \\?.
166`.replace(/\s+/g,""),"gsu");function XS(e){if(!new RegExp(`${aj}\\+`).test(e))return{pattern:e};let t=[],r=null,o=null,n="",i=0,a;for(JS.lastIndex=0;a=JS.exec(e);){let{0:l,index:c,groups:{qBase:d,qMod:p,invalidQ:m}}=a;if(l==="[")i||(o=c),i++;else if(l==="]")i?i--:o=null;else if(!i)if(p==="+"&&n&&!n.startsWith("(")){if(m)throw new Error(`Invalid quantifier "${l}"`);let h=-1;if(/^\{\d+\}$/.test(d))e=nj(e,c+d.length,p,"");else{if(n===")"||n==="]"){let g=n===")"?r:o;if(g===null)throw new Error(`Invalid unmatched "${n}"`);e=`${e.slice(0,g)}(?>${e.slice(g,c)}${d})${e.slice(c+l.length)}`}else e=`${e.slice(0,c-n.length)}(?>${n}${d})${e.slice(c+l.length)}`;h+=4}JS.lastIndex+=h}else l[0]==="("?t.push(c):l===")"&&(r=t.length?t.pop():null);n=l}return{pattern:e}}var Rn=String.raw,zie=Rn`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,QS=Rn`\(\?R=(?<rDepth>[^\)]+)\)|${zie}`,iy=Rn`\(\?<(?![=!])(?<captureName>[^>]+)>`,dj=Rn`${iy}|(?<unnamed>\()(?!\?)`,Ms=new RegExp(Rn`${iy}|${QS}|\(\?|\\?.`,"gsu"),YS="Cannot use multiple overlapping recursions";function pj(e,t){let{hiddenCaptures:r,mode:o}={hiddenCaptures:[],mode:"plugin",...t},n=t?.captureTransfers??new Map;if(!new RegExp(QS,"su").test(e))return{pattern:e,captureTransfers:n,hiddenCaptures:r};if(o==="plugin"&&nm(e,Rn`\(\?\(DEFINE\)`,en.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");let i=[],a=nm(e,Rn`\\[1-9]`,en.DEFAULT),l=new Map,c=[],d=!1,p=0,m=0,h;for(Ms.lastIndex=0;h=Ms.exec(e);){let{0:g,groups:{captureName:w,rDepth:$,gRNameOrNum:T,gRDepth:z}}=h;if(g==="[")p++;else if(p)g==="]"&&p--;else if($){if(sj($),d)throw new Error(YS);if(a)throw new Error(`${o==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);let P=e.slice(0,h.index),k=e.slice(Ms.lastIndex);if(nm(k,QS,en.DEFAULT))throw new Error(YS);let M=+$-1;e=lj(P,k,M,!1,r,i,m),n=uj(n,P,M,i.length,0,m);break}else if(T){sj(z);let P=!1;for(let ge of c)if(ge.name===T||ge.num===+T){if(P=!0,ge.hasRecursedWithin)throw new Error(YS);break}if(!P)throw new Error(Rn`Recursive \g cannot be used outside the referenced group "${o==="external"?T:Rn`\g<${T}&R=${z}>`}"`);let k=l.get(T),M=oj(e,k);if(a&&nm(M,Rn`${iy}|\((?!\?)`,en.DEFAULT))throw new Error(`${o==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);let E=e.slice(k,h.index),D=M.slice(E.length+g.length),F=i.length,H=+z-1,Z=lj(E,D,H,!0,r,i,m);n=uj(n,E,H,i.length-F,F,m);let W=e.slice(0,k),ke=e.slice(k+M.length);e=`${W}${Z}${ke}`,Ms.lastIndex+=Z.length-g.length-E.length-D.length,c.forEach(ge=>ge.hasRecursedWithin=!0),d=!0}else if(w)m++,l.set(String(m),Ms.lastIndex),l.set(w,Ms.lastIndex),c.push({num:m,name:w});else if(g[0]==="("){let P=g==="(";P&&(m++,l.set(String(m),Ms.lastIndex)),c.push(P?{num:m}:{})}else g===")"&&c.pop()}return r.push(...i),{pattern:e,captureTransfers:n,hiddenCaptures:r}}function sj(e){let t=`Max depth must be integer between 2 and 100; used ${e}`;if(!/^[1-9]\d*$/.test(e))throw new Error(t);if(e=+e,e<2||e>100)throw new Error(t)}function lj(e,t,r,o,n,i,a){let l=new Set;o&&WS(e+t,iy,({groups:{captureName:d}})=>{l.add(d)},en.DEFAULT);let c=[r,o?l:null,n,i,a];return`${e}${cj(`(?:${e}`,"forward",...c)}(?:)${cj(`${t})`,"backward",...c)}${t}`}function cj(e,t,r,o,n,i,a){let c=p=>t==="forward"?p+2:r-p+2-1,d="";for(let p=0;p<r;p++){let m=c(p);d+=rm(e,Rn`${dj}|\\k<(?<backref>[^>]+)>`,({0:h,groups:{captureName:g,unnamed:w,backref:$}})=>{if($&&o&&!o.has($))return h;let T=`_$${m}`;if(w||g){let z=a+i.length+1;return i.push(z),Eie(n,z),w?h:`(?<${g}${T}>`}return Rn`\k<${$}${T}>`},en.DEFAULT)}return d}function Eie(e,t){for(let r=0;r<e.length;r++)e[r]>=t&&e[r]++}function uj(e,t,r,o,n,i){if(e.size&&o){let a=0;WS(t,dj,()=>a++,en.DEFAULT);let l=i-a+n,c=new Map;return e.forEach((d,p)=>
vendor: 3,425 bytes, lines 166-248
166{let m=(o-a*r)/r,h=a*r,g=p>l+a?p+o:p,w=[];for(let $ of d)if($<=l)w.push($);else if($>l+a+m)w.push($+o);else if($<=l+a)for(let T=0;T<=r;T++)w.push($+a*T);else for(let T=0;T<=r;T++)w.push($+h+m*T);c.set(g,w)}),c}return e}var lr=String.fromCodePoint,Fe=String.raw,to={},sy=globalThis.RegExp;to.flagGroups=(()=>{try{new sy("(?i:)")}catch{return!1}return!0})();to.unicodeSets=(()=>{try{new sy("[[]]","v")}catch{return!1}return!0})();to.bugFlagVLiteralHyphenIsRange=to.unicodeSets?(()=>{try{new sy(Fe`[\d\-a]`,"v")}catch{return!0}return!1})():!1;to.bugNestedClassIgnoresNegation=to.unicodeSets&&new sy("[[^a]]","v").test("a");function ay(e,{enable:t,disable:r}){return{dotAll:!r?.dotAll&&!!(t?.dotAll||e.dotAll),ignoreCase:!r?.ignoreCase&&!!(t?.ignoreCase||e.ignoreCase)}}function om(e,t,r){return e.has(t)||e.set(t,r),e.get(t)}function o3(e,t){return mj[e]>=mj[t]}function Aie(e,t){if(e==null)throw new Error(t??"Value expected");return e}var mj={ES2025:2025,ES2024:2024,ES2018:2018},Mie={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function yj(e={}){if({}.toString.call(e)!=="[object Object]")throw new Error("Unexpected options");if(e.target!==void 0&&!Mie[e.target])throw new Error(`Unexpected target "${e.target}"`);let t={accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,lazyCompileLength:1/0,target:"auto",verbose:!1,...e,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...e.rules}};return t.target==="auto"&&(t.target=to.flagGroups?"ES2025":to.unicodeSets?"ES2024":"ES2018"),t}var Nie="[	-\r ]",Rie=new Set([lr(304),lr(305)]),gi=Fe`[\p{L}\p{M}\p{N}\p{Pc}]`;function bj(e){if(Rie.has(e))return[e];let t=new Set,r=e.toLowerCase(),o=r.toUpperCase(),n=Lie.get(r),i=Die.get(r),a=Oie.get(r);return[...o].length===1&&t.add(o),a&&t.add(a),n&&t.add(n),t.add(r),i&&t.add(i),[...t]}var a3=new Map(`C Other
167Cc Control cntrl
168Cf Format
169Cn Unassigned
170Co Private_Use
171Cs Surrogate
172L Letter
173LC Cased_Letter
174Ll Lowercase_Letter
175Lm Modifier_Letter
176Lo Other_Letter
177Lt Titlecase_Letter
178Lu Uppercase_Letter
179M Mark Combining_Mark
180Mc Spacing_Mark
181Me Enclosing_Mark
182Mn Nonspacing_Mark
183N Number
184Nd Decimal_Number digit
185Nl Letter_Number
186No Other_Number
187P Punctuation punct
188Pc Connector_Punctuation
189Pd Dash_Punctuation
190Pe Close_Punctuation
191Pf Final_Punctuation
192Pi Initial_Punctuation
193Po Other_Punctuation
194Ps Open_Punctuation
195S Symbol
196Sc Currency_Symbol
197Sk Modifier_Symbol
198Sm Math_Symbol
199So Other_Symbol
200Z Separator
201Zl Line_Separator
202Zp Paragraph_Separator
203Zs Space_Separator
204ASCII
205ASCII_Hex_Digit AHex
206Alphabetic Alpha
207Any
208Assigned
209Bidi_Control Bidi_C
210Bidi_Mirrored Bidi_M
211Case_Ignorable CI
212Cased
213Changes_When_Casefolded CWCF
214Changes_When_Casemapped CWCM
215Changes_When_Lowercased CWL
216Changes_When_NFKC_Casefolded CWKCF
217Changes_When_Titlecased CWT
218Changes_When_Uppercased CWU
219Dash
220Default_Ignorable_Code_Point DI
221Deprecated Dep
222Diacritic Dia
223Emoji
224Emoji_Component EComp
225Emoji_Modifier EMod
226Emoji_Modifier_Base EBase
227Emoji_Presentation EPres
228Extended_Pictographic ExtPict
229Extender Ext
230Grapheme_Base Gr_Base
231Grapheme_Extend Gr_Ext
232Hex_Digit Hex
233IDS_Binary_Operator IDSB
234IDS_Trinary_Operator IDST
235ID_Continue IDC
236ID_Start IDS
237Ideographic Ideo
238Join_Control Join_C
239Logical_Order_Exception LOE
240Lowercase Lower
241Math
242Noncharacter_Code_Point NChar
243Pattern_Syntax Pat_Syn
244Pattern_White_Space Pat_WS
245Quotation_Mark QMark
246Radical
247Regional_Indicator RI
248Sentence_Terminal STerm
249Soft_Dotted SD
250Terminal_Punctuation Term
251Unified_Ideograph UIdeo
252Uppercase Upper
253Variation_Selector VS
254White_Space space
255XID_Continue XIDC
256XID_Start XIDS`.split(/\s/).map(e=>[Dc(e),e])),Die=new Map([["s",lr(383)],[lr(383),"s"]]),Oie=new Map([[lr(223),lr(7838)],[lr(107),lr(8490)],[lr(229),lr(8491)],[lr(969),lr(8486)]]),Lie=new Map([ba(453),ba(456),ba(459),ba(498),...e3(8072,8079),...e3(8088,8095),...e3(8104,8111),ba(8124),ba(8140),ba(8188)]),jie=new Map([["alnum",Fe`[\p{Alpha}\p{Nd}]`],["alpha",Fe`\p{Alpha}`],["ascii",Fe`\p{ASCII}`],["blank",Fe`[\p{Zs}\t]`],["cntrl",Fe`\p{Cc}`],["digit",Fe`\p{Nd}`],["graph",Fe`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",Fe`\p{Lower}`],["print",Fe`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",Fe`[\p{P}\p{S}]`],["space",Fe`\p{space}`],["upper",Fe`\p{Upper}`],["word",Fe`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",Fe`\p{AHex}`]]);function Uie(e,t){let r=[];for(let o=e;o<=t;o++)r.push(o);return r}function ba(e){let t=lr(e);return[t.toLowerCase(),t]}function e3(e,t){return Uie(e,t).map(r=>ba(r))}var xj=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function Bie(e,t){let r={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...t};wj(e);let o={accuracy:r.accuracy,asciiWordBoundaries:r.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:o3(r.bestEffortTarget,"ES2024"),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:e.flags.digitIsAscii,spaceIsAscii:e.flags.spaceIsAscii,wordIsAscii:e.flags.wordIsAscii};As(e,Fie,o);let n={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},i={currentFlags:n,prevFlags:null,globalFlags:n,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:o.subroutineRefMap};As(e,Zie,i);let a={groupsByName:i.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:i.reffedNodesByReferencer};return As(e,Vie,a),e._originMap=i.groupOriginByCopy,e._strategy=o.strategy,e}var Fie={AbsenceFunction({node:e,parent:t,replaceWith:r}){let{body:o,kind:n}=e;if(n==="repeater"){let i=gn();i.body[0].body.push(ya({negate:!0,body:o}),Es("Any"));let a=gn();a.body[0].body.push(qS("greedy",0,1/0,i)),r(Xt(a,t),{traverse:!0})}else throw new Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:e,parent:t,key:r},{flagDirectivesByAlt:o}){let n=e.body.filter(i=>i.kind==="flags");for(let i=r+1;i<t.body.length;i++){let a=t.body[i];om(o,a,[]).push(...n)}},exit({node:e},{flagDirectivesByAlt:t}){if(t.get(e)?.length){let r=kj(t.get(e));if(r){let o=gn({flags:r});o.body[0].body=e.body,e.body=[Xt(o,e)]}}}},Assertion({node:e,parent:t,key:r,container:o,root:n,remove:i,replaceWith:a},l){let{kind:c,negate:d}=e,{asciiWordBoundaries:p,avoidSubclass:m,supportedGNodes:h,wordIsAscii:g}=l;if(c==="text_segment_boundary")throw new Error(`Unsupported text segment boundary "\\${d?"Y":"y"}"`);if(c==="line_end")a(Xt(ya({body:[hi({body:[ry("string_end")]}),hi({body:[Rc(10)]})]}),t));else if(c==="line_start")a(Xt(vi(Fe`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if(c==="search_start")if(h.has(e))n.flags.sticky=!0,i();else{let w=o[r-1];if(w&&Kie(w))a(Xt(ya({negate:!0}),t));else{if(m)throw new Error(Fe`Uses "\G" in a way that requires a subclass`);a(xa(ry("string_start"),t)),l.strategy="clip_search"}}else if(!(c==="string_end"||c==="string_start"))if(c==="string_end_newline")a(Xt(vi(Fe`(?=\n?\z)`),t));else if(c==="word_boundary"){if(!g&&!p){let w=`(?:(?<=${gi})(?!${gi})|(?<!${gi})(?=${gi}))`,$=`(?:(?<=${gi})(?=${gi})|(?<!${gi})(?!${gi}))`;a(Xt(vi(d?$:w),t))}}else throw new Error(`Unexpected assertion kind "${c}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:r}=e;typeof r=="string"&&!r3(r)&&(r=t3(r,t),e.ref=r)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:r}){let{name:o}=e;o&&!r3(o)&&(o=t3(o,t),e.name=o),r.set(e.number,e),o&&r.set(o,e)},CharacterClassRange({node:e,parent:t,replaceWith:r}){if(t.kind==="intersection"){let o=em({body:[e]});r(Xt(o,t),{traverse:!0})}},CharacterSet({node:e,parent:t,replaceWith:r},{accuracy:o,minTargetEs2024:n,digitIsAscii:i,spaceIsAscii:a,wordIsAscii:l}){let{kind:c,negate:d,value:p}=e;if(i&&(c==="digit"||p==="digit")){r(xa(ny("digit",{negate:d}),t));return}if(a&&(c==="space"||p==="space")){r(Xt(n3(vi(Nie),d),t));return}if(l&&(c==="word"||p==="word")){r(xa(ny("word",{negate:d}),t));return}if(c==="any")r(xa(Es("Any"),t));else if(c==="digit")r(xa(Es("Nd",{negate:d}),t));
vendor: 17,131 bytes, lines 256-259
256else if(c!=="dot")if(c==="text_segment"){if(o==="strict")throw new Error(Fe`Use of "\X" requires non-strict accuracy`);let m="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",h=Fe`\p{RI}{2}|${m}(?:\u200D${m})*`;r(Xt(vi(Fe`(?>\r\n|${n?Fe`\p{RGI_Emoji}`:h}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if(c==="hex")r(xa(Es("AHex",{negate:d}),t));else if(c==="newline")r(Xt(vi(d?`[^
257]`:`(?>\r
258?|[
259\v\f\x85\u2028\u2029])`),t));else if(c==="posix")if(!n&&(p==="graph"||p==="print")){if(o==="strict")throw new Error(`POSIX class "${p}" requires min target ES2024 or non-strict accuracy`);let m={graph:"!-~",print:" -~"}[p];d&&(m=`\0-${lr(m.codePointAt(0)-1)}${lr(m.codePointAt(2)+1)}-\u{10FFFF}`),r(Xt(vi(`[${m}]`),t))}else r(Xt(n3(vi(jie.get(p)),d),t));else if(c==="property")a3.has(Dc(p))||(e.key="sc");else if(c==="space")r(xa(Es("space",{negate:d}),t));else if(c==="word")r(Xt(n3(vi(gi),d),t));else throw new Error(`Unexpected character set kind "${c}"`)},Directive({node:e,parent:t,root:r,remove:o,replaceWith:n,removeAllPrevSiblings:i,removeAllNextSiblings:a}){let{kind:l,flags:c}=e;if(l==="flags")if(!c.enable&&!c.disable)o();else{let d=gn({flags:c});d.body[0].body=a(),n(Xt(d,t),{traverse:!0})}else if(l==="keep"){let d=r.body[0],m=r.body.length===1&&Qv(d,{type:"Group"})&&d.body[0].body.length===1?d.body[0]:r;if(t.parent!==m||m.body.length>1)throw new Error(Fe`Uses "\K" in a way that's unsupported`);let h=ya({behind:!0});h.body[0].body=i(),n(Xt(h,t))}else throw new Error(`Unexpected directive kind "${l}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw new Error('Unsupported flag "P"');if(e.textSegmentMode==="word")throw new Error('Unsupported flag "y{w}"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach(r=>delete e[r]),Object.assign(e,{global:!1,hasIndices:!1,multiline:!1,sticky:e.sticky??!1}),t.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;let{enable:t,disable:r}=e.flags;t?.extended&&delete t.extended,r?.extended&&delete r.extended,t?.dotAll&&r?.dotAll&&delete t.dotAll,t?.ignoreCase&&r?.ignoreCase&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,r&&!Object.keys(r).length&&delete e.flags.disable,!e.flags.enable&&!e.flags.disable&&delete e.flags},LookaroundAssertion({node:e},t){let{kind:r}=e;r==="lookbehind"&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:r}){let{kind:o}=e;if(o==="fail")r(Xt(ya({negate:!0}),t));else throw new Error(`Unsupported named callout "(*${o.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type==="Quantifier"){let t=gn();t.body[0].body.push(e.body),e.body=Xt(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){let r=[],o=!1,n=!1;for(let i of e.body)if(i.body.length===1&&i.body[0].kind==="search_start")i.body.pop();else{let a=$j(i.body);a?(o=!0,Array.isArray(a)?r.push(...a):r.push(a)):n=!0}o&&!n&&r.forEach(i=>t.add(i))},exit(e,{accuracy:t,passedLookbehind:r,strategy:o}){if(t==="strict"&&r&&o)throw new Error(Fe`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:r}=e;typeof r=="string"&&!r3(r)&&(r=t3(r,t),e.ref=r)}},Zie={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:r}){let{orphan:o,ref:n}=e;o||r.set(e,[...t.get(n).map(({node:i})=>i)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:r,skip:o},{groupOriginByCopy:n,groupsByName:i,multiplexCapturesToLeftByRef:a,openRefs:l,reffedNodesByReferencer:c}){let d=n.get(e);if(d&&l.has(e.number)){let m=xa(fj(e.number),t);c.set(m,l.get(e.number)),r(m);return}l.set(e.number,e),a.set(e.number,[]),e.name&&om(a,e.name,[]);let p=a.get(e.name??e.number);for(let m=0;m<p.length;m++){let h=p[m];if(d===h.node||d&&d===h.origin||e===h.origin){p.splice(m,1);break}}if(a.get(e.number).push({node:e,origin:d}),e.name&&a.get(e.name).push({node:e,origin:d}),e.name){let m=om(i,e.name,new Map),h=!1;if(d)h=!0;else for(let g of m.values())if(!g.hasDuplicateNameToRemove){h=!0;break}i.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:h})}},exit({node:e},{openRefs:t}){t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=ay(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:r},o){let{isRecursive:n,ref:i}=e;if(n){let p=t;for(;(p=p.parent)&&!(p.type==="CapturingGroup"&&(p.name===i||p.number===i)););o.reffedNodesByReferencer.set(e,p);return}let a=o.subroutineRefMap.get(i),l=i===0,c=l?fj(0):_j(a,o.groupOriginByCopy,null),d=c;if(!l){let p=kj(Hie(a,h=>h.type==="Group"&&!!h.flags)),m=p?ay(o.globalFlags,p):o.globalFlags;Gie(m,o.currentFlags)||(d=gn({flags:Wie(m)}),d.body[0].body.push(c))}r(Xt(d,t),{traverse:!l})}},Vie={Backreference({node:e,parent:t,replaceWith:r},o){if(e.orphan){o.highestOrphanBackref=Math.max(o.highestOrphanBackref,e.ref);return}let i=o.reffedNodesByReferencer.get(e).filter(a=>qie(a,e));if(!i.length)r(Xt(ya({negate:!0}),t));else if(i.length>1){let a=gn({atomic:!0,body:i.reverse().map(l=>hi({body:[ey(l.number)]}))});r(Xt(a,t))}else e.ref=i[0].number},CapturingGroup({node:e},t){e.number=++t.numCapturesToLeft,e.name&&t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Regex:{exit({node:e},t){let r=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let o=0;o<r;o++){let n=GS();e.body.at(-1).body.push(n)}}},Subroutine({node:e},t){!e.isRecursive||e.ref===0||(e.ref=t.reffedNodesByReferencer.get(e).number)}};function wj(e){As(e,{"*"({node:t,parent:r}){t.parent=r}})}function Gie(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function qie(e,t){let r=t;do{if(r.type==="Regex")return!1;if(r.type==="Alternative")continue;if(r===e)return!1;let o=Sj(r.parent);for(let n of o){if(n===r)break;if(n===e||Tj(n,e))return!0}}while(r=r.parent);throw new Error("Unexpected path")}function _j(e,t,r,o){let n=Array.isArray(e)?[]:{};for(let[i,a]of Object.entries(e))i==="parent"?n.parent=Array.isArray(r)?o:r:a&&typeof a=="object"?n[i]=_j(a,t,n,r):(i==="type"&&a==="CapturingGroup"&&t.set(n,t.get(e)??e),n[i]=a);return n}function fj(e){let t=HS(e);return t.isRecursive=!0,t}function Hie(e,t){let r=[];for(;e=e.parent;)(!t||t(e))&&r.push(e);return r}function t3(e,t){if(t.has(e))return t.get(e);let r=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return t.set(e,r),r}function kj(e){let t=["dotAll","ignoreCase"],r={enable:{},disable:{}};return e.forEach(({flags:o})=>{t.forEach(n=>{o.enable?.[n]&&(delete r.disable[n],r.enable[n]=!0),o.disable?.[n]&&(r.disable[n]=!0)})}),Object.keys(r.enable).length||delete r.enable,Object.keys(r.disable).length||delete r.disable,r.enable||r.disable?r:null}function Wie({dotAll:e,ignoreCase:t}){let r={};return(e||t)&&(r.enable={},e&&(r.enable.dotAll=!0),t&&(r.enable.ignoreCase=!0)),(!e||!t)&&(r.disable={},!e&&(r.disable.dotAll=!0),!t&&(r.disable.ignoreCase=!0)),r}function Sj(e){if(!e)throw new Error("Node expected");let{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function $j(e){let t=e.find(r=>r.kind==="search_start"||Xie(r,{negate:!1})||!Jie(r));if(!t)return null;if(t.kind==="search_start")return t;if(t.type==="LookaroundAssertion")return t.body[0].body[0];if(t.type==="CapturingGroup"||t.type==="Group"){let r=[];for(let o of t.body){let n=$j(o.body);if(!n)return null;Array.isArray(n)?r.push(...n):r.push(n)}return r}return null}function Tj(e,t){let r=Sj(e)??[];for(let o of r)if(o===t||Tj(o,t))return!0;return!1}function Jie({type:e}){return e==="Assertion"||e==="Directive"||e==="LookaroundAssertion"}function Kie(e){let t=["Character","CharacterClass","CharacterSet"];return t.includes(e.type)||e.type==="Quantifier"&&e.min&&t.includes(e.body.type)}function Xie(e,t){let r={negate:null,...t};return e.type==="LookaroundAssertion"&&(r.negate===null||e.negate===r.negate)&&e.body.length===1&&Qv(e.body[0],{type:"Assertion",kind:"search_start"})}function r3(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function vi(e,t){let o=ty(e,{...t,unicodePropertyMap:a3}).body;return o.length>1||o[0].body.length>1?gn({body:o}):o[0].body[0]}function n3(e,t){return e.negate=t,e}function xa(e,t){return e.parent=t,e}function Xt(e,t){return wj(e),e.parent=t,e}function Yie(e,t){let r=yj(t),o=o3(r.target,"ES2024"),n=o3(r.target,"ES2025"),i=r.rules.recursionLimit;if(!Number.isInteger(i)||i<2||i>20)throw new Error("Invalid recursionLimit; use 2-20");let a=null,l=null;if(!n){let g=[e.flags.ignoreCase];As(e,Qie,{getCurrentModI:()=>g.at(-1),popModI(){g.pop()},pushModI(w){g.push(w)},setHasCasedChar(){g.at(-1)?a=!0:l=!0}})}let c={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||a)&&!l)},d=e,p={accuracy:r.accuracy,appliedGlobalFlags:c,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:d,originMap:e._originMap,recursionLimit:i,useAppliedIgnoreCase:!!(!n&&a&&l),useFlagMods:n,useFlagV:o,verbose:r.verbose};function m(g){return p.lastNode=d,d=g,Aie(eae[g.type],`Unexpected node type "${g.type}"`)(g,p,m)}let h={pattern:e.body.map(m).join("|"),flags:m(e.flags),options:{...e.options}};return o||(delete h.options.force.v,h.options.disable.v=!0,h.options.unicodeSetsPlugin=null),h._captureTransfers=new Map,h._hiddenCaptures=[],p.captureMap.forEach((g,w)=>{g.hidden&&h._hiddenCaptures.push(w),g.transferTo&&om(h._captureTransfers,g.transferTo,[]).push(w)}),h}var Qie={"*":{enter({node:e},t){if(gj(e)){let r=t.getCurrentModI();t.pushModI(e.flags?ay({ignoreCase:r},e.flags).ignoreCase:r)}},exit({node:e},t){gj(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){s3(lr(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},r){t(),Ij(e,{firstOnly:!0}).length&&r.setHasCasedChar()},CharacterSet({node:e},t){e.kind==="property"&&xj.has(e.value)&&t.setHasCasedChar()}},eae={Alternative({body:e},t,r){return e.map(r).join("")},Assertion({kind:e,negate:t}){if(e==="string_end")return"$";if(e==="string_start")return"^";if(e==="word_boundary")return t?Fe`\B`:Fe`\b`;throw new Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if(typeof e!="number")throw new Error("Unexpected named backref in transformed AST");if(!t.useFlagMods&&t.accuracy==="strict"&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw new Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+e},CapturingGroup(e,t,r){let{body:o,name:n,number:i}=e,a={ignoreCase:t.currentFlags.ignoreCase},l=t.originMap.get(e);return l&&(a.hidden=!0,i>l.number&&(a.transferTo=l.number)),t.captureMap.set(i,a),`(${n?`?<${n}>`:""}${o.map(r).join("|")})`},Character({value:e},t){let r=lr(e),o=Lc(e,{escDigit:t.lastNode.type==="Backreference",inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(o!==r)return o;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&s3(r)){let n=bj(r);return t.inCharClass?n.join(""):n.length>1?`[${n.join("")}]`:n[0]}return r},CharacterClass(e,t,r){let{kind:o,negate:n,parent:i}=e,{body:a}=e;if(o==="intersection"&&!t.useFlagV)throw new Error("Use of character class intersection requires min target ES2024");to.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&a.some(vj)&&(a=[Rc(45),...a.filter(d=>!vj(d))]);let l=()=>`[${n?"^":""}${a.map(r).join(o==="intersection"?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||to.bugNestedClassIgnoresNegation)&&!n){let p=a.filter(m=>m.type==="CharacterClass"&&m.kind==="union"&&m.negate);if(p.length){let m=gn(),h=m.body[0];return m.parent=i,h.parent=m,a=a.filter(g=>!p.includes(g)),e.body=a,a.length?(e.parent=h,h.body.push(e)):m.body.pop(),p.forEach(g=>{let w=hi({body:[g]});g.parent=w,w.parent=m,m.body.push(w)}),r(m)}}t.inCharClass=!0;let d=l();return t.inCharClass=!1,d}let c=a[0];if(o==="union"&&!n&&c&&((!t.useFlagV||!t.verbose)&&i.kind==="union"&&!(to.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&i.kind==="intersection"&&a.length===1&&c.type!=="CharacterClassRange"))return a.map(r).join("");if(!t.useFlagV&&i.type==="CharacterClass")throw new Error("Uses nested character class in a way that requires min target ES2024");return l()},CharacterClassRange(e,t){let r=e.min.value,o=e.max.value,n={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},i=Lc(r,n),a=Lc(o,n),l=new Set;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase){let c=Ij(e);iae(c).forEach(p=>{l.add(Array.isArray(p)?`${Lc(p[0],n)}-${Lc(p[1],n)}`:Lc(p,n))})}return`${i}-${a}${[...l].join("")}`},CharacterSet({kind:e,negate:t,value:r,key:o},n){if(e==="dot")return n.currentFlags.dotAll?n.appliedGlobalFlags.dotAll||n.useFlagMods?".":"[^]":Fe`[^\n]`;if(e==="digit")return t?Fe`\D`:Fe`\d`;if(e==="property"){if(n.useAppliedIgnoreCase&&n.currentFlags.ignoreCase&&xj.has(r))throw new Error(`Unicode property "${r}" can't be case-insensitive when other chars have specific case`);return`${t?Fe`\P`:Fe`\p`}{${o?`${o}=`:""}${r}}`}if(e==="word")return t?Fe`\W`:Fe`\w`;throw new Error(`Unexpected character set kind "${e}"`)},Flags(e,t){return(t.appliedGlobalFlags.ignoreCase?"i":"")+(e.dotAll?"s":"")+(e.sticky?"y":"")},Group({atomic:e,body:t,flags:r,parent:o},n,i){let a=n.currentFlags;r&&(n.currentFlags=ay(a,r));let l=t.map(i).join("|"),c=!n.verbose&&t.length===1&&o.type!=="Quantifier"&&!e&&(!n.useFlagMods||!r)?l:`(?${aae(e,r,n.useFlagMods)}${l})`;return n.currentFlags=a,c},LookaroundAssertion({body:e,kind:t,negate:r},o,n){return`(?${`${t==="lookahead"?"":"<"}${r?"!":"="}`}${e.map(n).join("|")})`},Quantifier(e,t,r){return r(e.body)+sae(e)},Subroutine({isRecursive:e,ref:t},r){if(!e)throw new Error("Unexpected non-recursive subroutine in transformed AST");let o=r.recursionLimit;return t===0?`(?R=${o})`:Fe`\g<${t}&R=${o}>`}},tae=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),rae=new Set(["-","\\","]","^","["]),nae=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),hj=new Map([[9,Fe`\t`],[10,Fe`\n`],[11,Fe`\v`],[12,Fe`\f`],[13,Fe`\r`],[8232,Fe`\u2028`],[8233,Fe`\u2029`],[65279,Fe`\uFEFF`]]),oae=/^\p{Cased}$/u;function s3(e){return oae.test(e)}function Ij(e,t){let r=!!t?.firstOnly,o=e.min.value,n=e.max.value,i=[];if(o<65&&(n===65535||n>=131071)||o===65536&&n>=131071)return i;for(let a=o;a<=n;a++){let l=lr(a);if(!s3(l))continue;let c=bj(l).filter(d=>{let p=d.codePointAt(0);return p<o||p>n});if(c.length&&(i.push(...c),r))break}return i}function Lc(e,{escDigit:t,inCharClass:r,useFlagV:o}){if(hj.has(e))return hj.get(e);if(e<32||e>126&&e<160||e>262143||t&&lae(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;let n=r?o?nae:rae:tae,i=lr(e);return(n.has(i)?"\\":"")+i}function iae(e){let t=e.map(n=>n.codePointAt(0)).sort((n,i)=>n-i),r=[],o=null;for(let n=0;n<t.length;n++)t[n+1]===t[n]+1?o??=t[n]:o===null?r.push(t[n]):(r.push([o,t[n]]),o=null);return r}function aae(e,t,r){if(e)return">";let o="";if(t&&r){let{enable:n,disable:i}=t;o=(n?.ignoreCase?"i":"")+(n?.dotAll?"s":"")+(i?"-":"")+(i?.ignoreCase?"i":"")+(i?.dotAll?"s":"")}return`${o}:`}function sae({kind:e,max:t,min:r}){let o;return!r&&t===1?o="?":!r&&t===1/0?o="*":r===1&&t===1/0?o="+":r===t?o=`{${r}}`:o=`{${r},${t===1/0?"":t}}`,o+{greedy:"",lazy:"?",possessive:"+"}[e]}function gj({type:e}){return e==="CapturingGroup"||e==="Group"||e==="LookaroundAssertion"}function lae(e){return e>47&&e<58}function vj({type:e,value:t}){return e==="Character"&&t===45}var cae=class i3 extends RegExp{#t=new Map;#e=null;#n;#r=null;#o=null;rawOptions={};get source(){return this.#n||"(?:)"}constructor(t,r,o){let n=!!o?.lazyCompile;if(t instanceof RegExp){if(o)throw new Error("Cannot provide options when copying a regexp");let i=t;super(i,r),this.#n=i.source,i instanceof i3&&(this.#t=i.#t,this.#r=i.#r,this.#o=i.#o,this.rawOptions=i.rawOptions)}else{let i={hiddenCaptures:[],strategy:null,transfers:[],...o};super(n?"":t,r),this.#n=t,this.#t=dae(i.hiddenCaptures,i.transfers),this.#o=i.strategy,this.rawOptions=o??{}}n||(this.#e=this)}exec(t){if(!this.#e){let{lazyCompile:n,...i}=this.rawOptions;this.#e=new i3(this.#n,this.flags,i)}let r=this.global||this.sticky,o=this.lastIndex;if(this.#o==="clip_search"&&r&&o){this.lastIndex=0;let n=this.#i(t.slice(o));return n&&(uae(n,o,t,this.hasIndices),this.lastIndex+=o),n}return this.#i(t)}#i(t){this.#e.lastIndex=this.lastIndex;let r=super.exec.call(this.#e,t);if(this.lastIndex=this.#e.lastIndex,!r||!this.#t.size)return r;let o=[...r];r.length=1;let n;this.hasIndices&&(n=[...r.indices],r.indices.length=1);let i=[0];for(let a=1;a<o.length;a++){let{hidden:l,transferTo:c}=this.#t.get(a)??{};if(l?i.push(null):(i.push(r.length),r.push(o[a]),this.hasIndices&&r.indices.push(n[a])),c&&o[a]!==void 0){let d=i[c];if(!d)throw new Error(`Invalid capture transfer to "${d}"`);if(r[d]=o[a],this.hasIndices&&(r.indices[d]=n[a]),r.groups){this.#r||(this.#r=pae(this.source));let p=this.#r.get(c);p&&(r.groups[p]=o[a],this.hasIndices&&(r.indices.groups[p]=n[a]))}}}return r}};function uae(e,t,r,o){if(e.index+=t,e.input=r,o){let n=e.indices;for(let a=0;a<n.length;a++){let l=n[a];l&&(n[a]=[l[0]+t,l[1]+t])}let i=n.groups;
vendor: 2,008 bytes, line 259
259i&&Object.keys(i).forEach(a=>{let l=i[a];l&&(i[a]=[l[0]+t,l[1]+t])})}}function dae(e,t){let r=new Map;for(let o of e)r.set(o,{hidden:!0});for(let[o,n]of t)for(let i of n)om(r,i,{}).transferTo=o;return r}function pae(e){let t=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,r=new Map,o=0,n=0,i;for(;i=t.exec(e);){let{0:a,groups:{capture:l,name:c}}=i;a==="["?o++:o?a==="]"&&o--:l&&(n++,c&&r.set(n,c))}return r}function Pj(e,t){let r=mae(e,t);return r.options?new cae(r.pattern,r.flags,r.options):new RegExp(r.pattern,r.flags)}function mae(e,t){let r=yj(t),o=ty(e,{flags:r.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline},skipBackrefValidation:r.rules.allowOrphanBackrefs,unicodePropertyMap:a3}),n=Bie(o,{accuracy:r.accuracy,asciiWordBoundaries:r.rules.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,bestEffortTarget:r.target}),i=Yie(n,r),a=pj(i.pattern,{captureTransfers:i._captureTransfers,hiddenCaptures:i._hiddenCaptures,mode:"external"}),l=XS(a.pattern),c=KS(l.pattern,{captureTransfers:a.captureTransfers,hiddenCaptures:a.hiddenCaptures}),d={pattern:c.pattern,flags:`${r.hasIndices?"d":""}${r.global?"g":""}${i.flags}${i.options.disable.v?"u":"v"}`};if(r.avoidSubclass){if(r.lazyCompileLength!==1/0)throw new Error("Lazy compilation requires subclass")}else{let p=c.hiddenCaptures.sort((w,$)=>w-$),m=Array.from(c.captureTransfers),h=n._strategy,g=d.pattern.length>=r.lazyCompileLength;(p.length||m.length||h||g)&&(d.options={...p.length&&{hiddenCaptures:p},...m.length&&{transfers:m},...h&&{strategy:h},...g&&{lazyCompile:g}})}return d}function Cj(e,t){return Pj(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function l3(e={}){let t=Object.assign({target:"auto",cache:new Map},e);return t.regexConstructor||=r=>Cj(r,{target:t.target}),{createScanner(r){return new DL(r,t)},createString(r){return{content:r}}}}var zj
vendor: 11,376 bytes, line 259
259=Object.freeze(JSON.parse('{"colors":{"activityBar.activeBorder":"#f9826c","activityBar.background":"#24292e","activityBar.border":"#1b1f23","activityBar.foreground":"#e1e4e8","activityBar.inactiveForeground":"#6a737d","activityBarBadge.background":"#0366d6","activityBarBadge.foreground":"#fff","badge.background":"#044289","badge.foreground":"#c8e1ff","breadcrumb.activeSelectionForeground":"#d1d5da","breadcrumb.focusForeground":"#e1e4e8","breadcrumb.foreground":"#959da5","breadcrumbPicker.background":"#2b3036","button.background":"#176f2c","button.foreground":"#dcffe4","button.hoverBackground":"#22863a","button.secondaryBackground":"#444d56","button.secondaryForeground":"#fff","button.secondaryHoverBackground":"#586069","checkbox.background":"#444d56","checkbox.border":"#1b1f23","debugToolBar.background":"#2b3036","descriptionForeground":"#959da5","diffEditor.insertedTextBackground":"#28a74530","diffEditor.removedTextBackground":"#d73a4930","dropdown.background":"#2f363d","dropdown.border":"#1b1f23","dropdown.foreground":"#e1e4e8","dropdown.listBackground":"#24292e","editor.background":"#24292e","editor.findMatchBackground":"#ffd33d44","editor.findMatchHighlightBackground":"#ffd33d22","editor.focusedStackFrameHighlightBackground":"#2b6a3033","editor.foldBackground":"#58606915","editor.foreground":"#e1e4e8","editor.inactiveSelectionBackground":"#3392FF22","editor.lineHighlightBackground":"#2b3036","editor.linkedEditingBackground":"#3392FF22","editor.selectionBackground":"#3392FF44","editor.selectionHighlightBackground":"#17E5E633","editor.selectionHighlightBorder":"#17E5E600","editor.stackFrameHighlightBackground":"#C6902625","editor.wordHighlightBackground":"#17E5E600","editor.wordHighlightBorder":"#17E5E699","editor.wordHighlightStrongBackground":"#17E5E600","editor.wordHighlightStrongBorder":"#17E5E666","editorBracketHighlight.foreground1":"#79b8ff","editorBracketHighlight.foreground2":"#ffab70","editorBracketHighlight.foreground3":"#b392f0","editorBracketHighlight.foreground4":"#79b8ff","editorBracketHighlight.foreground5":"#ffab70","editorBracketHighlight.foreground6":"#b392f0","editorBracketMatch.background":"#17E5E650","editorBracketMatch.border":"#17E5E600","editorCursor.foreground":"#c8e1ff","editorError.foreground":"#f97583","editorGroup.border":"#1b1f23","editorGroupHeader.tabsBackground":"#1f2428","editorGroupHeader.tabsBorder":"#1b1f23","editorGutter.addedBackground":"#28a745","editorGutter.deletedBackground":"#ea4a5a","editorGutter.modifiedBackground":"#2188ff","editorIndentGuide.activeBackground":"#444d56","editorIndentGuide.background":"#2f363d","editorLineNumber.activeForeground":"#e1e4e8","editorLineNumber.foreground":"#444d56","editorOverviewRuler.border":"#1b1f23","editorWarning.foreground":"#ffea7f","editorWhitespace.foreground":"#444d56","editorWidget.background":"#1f2428","errorForeground":"#f97583","focusBorder":"#005cc5","foreground":"#d1d5da","gitDecoration.addedResourceForeground":"#34d058","gitDecoration.conflictingResourceForeground":"#ffab70","gitDecoration.deletedResourceForeground":"#ea4a5a","gitDecoration.ignoredResourceForeground":"#6a737d","gitDecoration.modifiedResourceForeground":"#79b8ff","gitDecoration.submoduleResourceForeground":"#6a737d","gitDecoration.untrackedResourceForeground":"#34d058","input.background":"#2f363d","input.border":"#1b1f23","input.foreground":"#e1e4e8","input.placeholderForeground":"#959da5","list.activeSelectionBackground":"#39414a","list.activeSelectionForeground":"#e1e4e8","list.focusBackground":"#044289","list.hoverBackground":"#282e34","list.hoverForeground":"#e1e4e8","list.inactiveFocusBackground":"#1d2d3e","list.inactiveSelectionBackground":"#282e34","list.inactiveSelectionForeground":"#e1e4e8","notificationCenterHeader.background":"#24292e","notificationCenterHeader.foreground":"#959da5","notifications.background":"#2f363d","notifications.border":"#1b1f23","notifications.foreground":"#e1e4e8","notificationsErrorIcon.foreground":"#ea4a5a","notificationsInfoIcon.foreground":"#79b8ff","notificationsWarningIcon.foreground":"#ffab70","panel.background":"#1f2428","panel.border":"#1b1f23","panelInput.border":"#2f363d","panelTitle.activeBorder":"#f9826c","panelTitle.activeForeground":"#e1e4e8","panelTitle.inactiveForeground":"#959da5","peekViewEditor.background":"#1f242888","peekViewEditor.matchHighlightBackground":"#ffd33d33","peekViewResult.background":"#1f2428","peekViewResult.matchHighlightBackground":"#ffd33d33","pickerGroup.border":"#444d56","pickerGroup.foreground":"#e1e4e8","progressBar.background":"#0366d6","quickInput.background":"#24292e","quickInput.foreground":"#e1e4e8","scrollbar.shadow":"#0008","scrollbarSlider.activeBackground":"#6a737d88","scrollbarSlider.background":"#6a737d33","scrollbarSlider.hoverBackground":"#6a737d44","settings.headerForeground":"#e1e4e8","settings.modifiedItemIndicator":"#0366d6","sideBar.background":"#1f2428","sideBar.border":"#1b1f23","sideBar.foreground":"#d1d5da","sideBarSectionHeader.background":"#1f2428","sideBarSectionHeader.border":"#1b1f23","sideBarSectionHeader.foreground":"#e1e4e8","sideBarTitle.foreground":"#e1e4e8","statusBar.background":"#24292e","statusBar.border":"#1b1f23","statusBar.debuggingBackground":"#931c06","statusBar.debuggingForeground":"#fff","statusBar.foreground":"#d1d5da","statusBar.noFolderBackground":"#24292e","statusBarItem.prominentBackground":"#282e34","statusBarItem.remoteBackground":"#24292e","statusBarItem.remoteForeground":"#d1d5da","tab.activeBackground":"#24292e","tab.activeBorder":"#24292e","tab.activeBorderTop":"#f9826c","tab.activeForeground":"#e1e4e8","tab.border":"#1b1f23","tab.hoverBackground":"#24292e","tab.inactiveBackground":"#1f2428","tab.inactiveForeground":"#959da5","tab.unfocusedActiveBorder":"#24292e","tab.unfocusedActiveBorderTop":"#1b1f23","tab.unfocusedHoverBackground":"#24292e","terminal.ansiBlack":"#586069","terminal.ansiBlue":"#2188ff","terminal.ansiBrightBlack":"#959da5","terminal.ansiBrightBlue":"#79b8ff","terminal.ansiBrightCyan":"#56d4dd","terminal.ansiBrightGreen":"#85e89d","terminal.ansiBrightMagenta":"#b392f0","terminal.ansiBrightRed":"#f97583","terminal.ansiBrightWhite":"#fafbfc","terminal.ansiBrightYellow":"#ffea7f","terminal.ansiCyan":"#39c5cf","terminal.ansiGreen":"#34d058","terminal.ansiMagenta":"#b392f0","terminal.ansiRed":"#ea4a5a","terminal.ansiWhite":"#d1d5da","terminal.ansiYellow":"#ffea7f","terminal.foreground":"#d1d5da","terminal.tab.activeBorder":"#f9826c","terminalCursor.background":"#586069","terminalCursor.foreground":"#79b8ff","textBlockQuote.background":"#24292e","textBlockQuote.border":"#444d56","textCodeBlock.background":"#2f363d","textLink.activeForeground":"#c8e1ff","textLink.foreground":"#79b8ff","textPreformat.foreground":"#d1d5da","textSeparator.foreground":"#586069","titleBar.activeBackground":"#24292e","titleBar.activeForeground":"#e1e4e8","titleBar.border":"#1b1f23","titleBar.inactiveBackground":"#1f2428","titleBar.inactiveForeground":"#959da5","tree.indentGuidesStroke":"#2f363d","welcomePage.buttonBackground":"#2f363d","welcomePage.buttonHoverBackground":"#444d56"},"displayName":"GitHub Dark","name":"github-dark","semanticHighlighting":true,"tokenColors":[{"scope":["comment","punctuation.definition.comment","string.comment"],"settings":{"foreground":"#6a737d"}},{"scope":["constant","entity.name.constant","variable.other.constant","variable.other.enummember","variable.language"],"settings":{"foreground":"#79b8ff"}},{"scope":["entity","entity.name"],"settings":{"foreground":"#b392f0"}},{"scope":"variable.parameter.function","settings":{"foreground":"#e1e4e8"}},{"scope":"entity.name.tag","settings":{"foreground":"#85e89d"}},{"scope":"keyword","settings":{"foreground":"#f97583"}},{"scope":["storage","storage.type"],"settings":{"foreground":"#f97583"}},{"scope":["storage.modifier.package","storage.modifier.import","storage.type.java"],"settings":{"foreground":"#e1e4e8"}},{"scope":["string","punctuation.definition.string","string punctuation.section.embedded source"],"settings":{"foreground":"#9ecbff"}},{"scope":"support","settings":{"foreground":"#79b8ff"}},{"scope":"meta.property-name","settings":{"foreground":"#79b8ff"}},{"scope":"variable","settings":{"foreground":"#ffab70"}},{"scope":"variable.other","settings":{"foreground":"#e1e4e8"}},{"scope":"invalid.broken","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"invalid.deprecated","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"invalid.illegal","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"invalid.unimplemented","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"carriage-return","settings":{"background":"#f97583","content":"^M","fontStyle":"italic underline","foreground":"#24292e"}},{"scope":"message.error","settings":{"foreground":"#fdaeb7"}},{"scope":"string variable","settings":{"foreground":"#79b8ff"}},{"scope":["source.regexp","string.regexp"],"settings":{"foreground":"#dbedff"}},{"scope":["string.regexp.character-class","string.regexp constant.character.escape","string.regexp source.ruby.embedded","string.regexp string.regexp.arbitrary-repitition"],"settings":{"foreground":"#dbedff"}},{"scope":"string.regexp constant.character.escape","settings":{"fontStyle":"bold","foreground":"#85e89d"}},{"scope":"support.constant","settings":{"foreground":"#79b8ff"}},{"scope":"support.variable","settings":{"foreground":"#79b8ff"}},{"scope":"meta.module-reference","settings":{"foreground":"#79b8ff"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#ffab70"}},{"scope":["markup.heading","markup.heading entity.name"],"settings":{"fontStyle":"bold","foreground":"#79b8ff"}},{"scope":"markup.quote","settings":{"foreground":"#85e89d"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#e1e4e8"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#e1e4e8"}},{"scope":["markup.underline"],"settings":{"fontStyle":"underline"}},{"scope":["markup.strikethrough"],"settings":{"fontStyle":"strikethrough"}},{"scope":"markup.inline.raw","settings":{"foreground":"#79b8ff"}},{"scope":["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],"settings":{"background":"#86181d","foreground":"#fdaeb7"}},{"scope":["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],"settings":{"background":"#144620","foreground":"#85e89d"}},{"scope":["markup.changed","punctuation.definition.changed"],"settings":{"background":"#c24e00","foreground":"#ffab70"}},{"scope":["markup.ignored","markup.untracked"],"settings":{"background":"#79b8ff","foreground":"#2f363d"}},{"scope":"meta.diff.range","settings":{"fontStyle":"bold","foreground":"#b392f0"}},{"scope":"meta.diff.header","settings":{"foreground":"#79b8ff"}},{"scope":"meta.separator","settings":{"fontStyle":"bold","foreground":"#79b8ff"}},{"scope":"meta.output","settings":{"foreground":"#79b8ff"}},{"scope":["brackethighlighter.tag","brackethighlighter.curly","brackethighlighter.round","brackethighlighter.square","brackethighlighter.angle","brackethighlighter.quote"],"settings":{"foreground":"#d1d5da"}},{"scope":"brackethighlighter.unmatched","settings":{"foreground":"#fdaeb7"}},{"scope":["constant.other.reference.link","string.other.link"],"settings":{"fontStyle":"underline","foreground":"#dbedff"}}],"type":"dark"}'));
259var Ej=Object.freeze(JSON.parse('{"colors":{"activityBar.activeBorder":"#f9826c","activityBar.background":"#fff","activityBar.border":"#e1e4e8","activityBar.foreground":"#2f363d","activityBar.inactiveForeground":"#959da5","activityBarBadge.background":"#2188ff","activityBarBadge.foreground":"#fff","badge.background":"#dbedff","badge.foreground":"#005cc5","breadcrumb.activeSelectionForeground":"#586069","breadcrumb.focusForeground":"#2f363d","breadcrumb.foreground":"#6a737d","breadcrumbPicker.background":"#fafbfc","button.background":"#159739","button.foreground":"#fff","button.hoverBackground":"#138934","button.secondaryBackground":"#e1e4e8","button.secondaryForeground":"#1b1f23","button.secondaryHoverBackground":"#d1d5da","checkbox.background":"#fafbfc","checkbox.border":"#d1d5da","debugToolBar.background":"#fff","descriptionForeground":"#6a737d","diffEditor.insertedTextBackground":"#34d05822","diffEditor.removedTextBackground":"#d73a4922","dropdown.background":"#fafbfc","dropdown.border":"#e1e4e8","dropdown.foreground":"#2f363d","dropdown.listBackground":"#fff","editor.background":"#fff","editor.findMatchBackground":"#ffdf5d","editor.findMatchHighlightBackgroun
259d":"#ffdf5d66","editor.focusedStackFrameHighlightBackground":"#28a74525","editor.foldBackground":"#d1d5da11","editor.foreground":"#24292e","editor.inactiveSelectionBackground":"#0366d611","editor.lineHighlightBackground":"#f6f8fa","editor.linkedEditingBackground":"#0366d611","editor.selectionBackground":"#0366d625","editor.selectionHighlightBackground":"#34d05840","editor.selectionHighlightBorder":"#34d05800","editor.stackFrameHighlightBackground":"#ffd33d33","editor.wordHighlightBackground":"#34d05800","editor.wordHighlightBorder":"#24943e99","editor.wordHighlightStrongBackground":"#34d05800","editor.wordHighlightStrongBorder":"#24943e50","editorBracketHighlight.foreground1":"#005cc5","editorBracketHighlight.foreground2":"#e36209","editorBracketHighlight.foreground3":"#5a32a3","editorBracketHighlight.foreground4":"#005cc5","editorBracketHighlight.foreground5":"#e36209","editorBracketHighlight.foreground6":"#5a32a3","editorBracketMatch.background":"#34d05840","editorBracketMatch.border":"#34d05800","editorCursor.foreground":"#044289","editorError.foreground":"#cb2431","editorGroup.border":"#e1e4e8","editorGroupHeader.tabsBackground":"#f6f8fa","editorGroupHeader.tabsBorder":"#e1e4e8","editorGutter.addedBackground":"#28a745","editorGutter.deletedBackground":"#d73a49","editorGutter.modifiedBackground":"#2188ff","editorIndentGuide.activeBackground":"#d7dbe0","editorIndentGuide.background":"#eff2f6","editorLineNumber.activeForeground":"#24292e","editorLineNumber.foreground":"#1b1f234d","editorOverviewRuler.border":"#fff","editorWarning.foreground":"#f9c513","editorWhitespace.foreground":"#d1d5da","editorWidget.background":"#f6f8fa","errorForeground":"#cb2431","focusBorder":"#2188ff","foreground":"#444d56","gitDecoration.addedResourceForeground":"#28a745","gitDecoration.conflictingResourceForeground":"#e36209","gitDecoration.deletedResourceForeground":"#d73a49","gitDecoration.ignoredResourceForeground":"#959da5","gitDecoration.modifiedResourceForeground":"#005cc5","gitDecoration.submoduleResourceForeground":"#959da5","gitDecoration.untrackedResourceForeground":"#28a745","input.background":"#fafbfc","input.border":"#e1e4e8","input.foreground":"#2f363d","input.placeholderForeground":"#959da5","list.activeSelectionBackground":"#e2e5e9","list.activeSelectionForeground":"#2f363d","list.focusBackground":"#cce5ff","list.hoverBackground":"#ebf0f4","list.hoverForeground":"#2f363d","list.inactiveFocusBackground":"#dbedff","list.inactiveSelectionBackground":"#e8eaed","list.inactiveSelectionForeground":"#2f363d","notificationCenterHeader.background":"#e1e4e8","notificationCenterHeader.foreground":"#6a737d","notifications.background":"#fafbfc","notifications.border":"#e1e4e8","notifications.foreground":"#2f363d","notificationsErrorIcon.foreground":"#d73a49","notificationsInfoIcon.foreground":"#005cc5","notificationsWarningIcon.foreground":"#e36209","panel.background":"#f6f8fa","panel.border":"#e1e4e8","panelInput.border":"#e1e4e8","panelTitle.activeBorder":"#f9826c","panelTitle.activeForeground":"#2f363d","panelTitle.inactiveForeground":"#6a737d","pickerGroup.border":"#e1e4e8","pickerGroup.foreground":"#2f363d","progressBar.background":"#2188ff","quickInput.background":"#fafbfc","quickInput.foreground":"#2f363d","scrollbar.shadow":"#6a737d33","scrollbarSlider.activeBackground":"#959da588","scrollbarSlider.background":"#959da533","scrollbarSlider.hoverBackground":"#959da544","settings.headerForeground":"#2f363d","settings.modifiedItemIndicator":"#2188ff","sideBar.background":"#f6f8fa","sideBar.border":"#e1e4e8","sideBar.foreground":"#586069","sideBarSectionHeader.background":"#f6f8fa","sideBarSectionHeader.border":"#e1e4e8","sideBarSectionHeader.foreground":"#2f363d","sideBarTitle.foreground":"#2f363d","statusBar.background":"#fff","statusBar.border":"#e1e4e8","statusBar.debuggingBackgroun
259d":"#f9826c","statusBar.debuggingForeground":"#fff","statusBar.foreground":"#586069","statusBar.noFolderBackground":"#fff","statusBarItem.prominentBackground":"#e8eaed","statusBarItem.remoteBackground":"#fff","statusBarItem.remoteForeground":"#586069","tab.activeBackground":"#fff","tab.activeBorder":"#fff","tab.activeBorderTop":"#f9826c","tab.activeForeground":"#2f363d","tab.border":"#e1e4e8","tab.hoverBackground":"#fff","tab.inactiveBackground":"#f6f8fa","tab.inactiveForeground":"#6a737d","tab.unfocusedActiveBorder":"#fff","tab.unfocusedActiveBorderTop":"#e1e4e8","tab.unfocusedHoverBackground":"#fff","terminal.ansiBlack":"#24292e","terminal.ansiBlue":"#0366d6","terminal.ansiBrightBlack":"#959da5","terminal.ansiBrightBlue":"#005cc5","terminal.ansiBrightCyan":"#3192aa","terminal.ansiBrightGreen":"#22863a","terminal.ansiBrightMagenta":"#5a32a3","terminal.ansiBrightRed":"#cb2431","terminal.ansiBrightWhite":"#d1d5da","terminal.ansiBrightYellow":"#b08800","terminal.ansiCyan":"#1b7c83","terminal.ansiGreen":"#28a745","terminal.ansiMagenta":"#5a32a3","terminal.ansiRed":"#d73a49","terminal.ansiWhite":"#6a737d","terminal.ansiYellow":"#dbab09","terminal.foreground":"#586069","terminal.tab.activeBorder":"#f9826c","terminalCursor.background":"#d1d5da","terminalCursor.foreground":"#005cc5","textBlockQuote.background":"#fafbfc","textBlockQuote.border":"#e1e4e8","textCodeBlock.background":"#f6f8fa","textLink.activeForeground":"#005cc5","textLink.foreground":"#0366d6","textPreformat.foreground":"#586069","textSeparator.foreground":"#d1d5da","titleBar.activeBackground":"#fff","titleBar.activeForeground":"#2f363d","titleBar.border":"#e1e4e8","titleBar.inactiveBackground":"#f6f8fa","titleBar.inactiveForeground":"#6a737d","tree.indentGuidesStroke":"#e1e4e8","welcomePage.buttonBackground":"#f6f8fa","welcomePage.buttonHoverBackground":"#e1e4e8"},"displayName":"GitHub Light","name":"github-light","semanticHighlighting":true,"tokenColors":[{"scope":["comment","punctuation.definition.comment","string.comment"],"settings":{"foreground":"#6a737d"}},{"scope":["constant","entity.name.constant","variable.other.constant","variable.other.enummember","variable.language"],"settings":{"foreground":"#005cc5"}},{"scope":["entity","entity.name"],"settings":{"foreground":"#6f42c1"}},{"scope":"variable.parameter.function","settings":{"foreground":"#24292e"}},{"scope":"entity.name.tag","settings":{"foreground":"#22863a"}},{"scope":"keyword","settings":{"foreground":"#d73a49"}},{"scope":["storage","storage.type"],"settings":{"foreground":"#d73a49"}},{"scope":["storage.modifier.package","storage.modifier.import","storage.type.java"],"settings":{"foreground":"#24292e"}},{"scope":["string","punctuation.definition.string","string punctuation.section.embedded source"],"settings":{"foreground":"#032f62"}},{"scope":"support","settings":{"foreground":"#005cc5"}},{"scope":"meta.property-name","settings":{"foreground":"#005cc5"}},{"scope":"variable","settings":{"foreground":"#e36209"}},{"scope":"variable.other","settings":{"foreground":"#24292e"}},{"scope":"invalid.broken","settings":{"fontStyle":"italic","foreground":"#b31d28"}},{"scope":"invalid.deprecated","settings":{"fontStyle":"italic","foreground":"#b31d28"}},{"scope":"invalid.illegal","settings":{"fontStyle":"italic","foreground":"#b31d28"}},{"scope":"invalid.unimplemented","settings":{"fontStyle":"italic","foreground":"#b31d28"}},{"scope":"carriage-return","settings":{"background":"#d73a49","content":"^M","fontStyle":"italic underline","foreground":"#fafbfc"}},{"scope":"message.error","settings":{"foreground":"#b31d28"}},{"scope":"string variable","settings":{"foreground":"#005cc5"}},{"scope":["source.regexp","string.regexp"],"settings":{"foreground":"#032f62"}},{"scope":["string.regexp.character-class","string.regexp constant.character.escape","string.regexp source.ruby.embedded","string.regexp string.regexp.arbitrary-repitition"],"settings":{"foreground":"#032f62"}},{"scope":"string.regexp constant.character.escape","settings":{"fontStyle":"bold","foreground":"#22863a"}},{"scope":"support.constant","settings":{"foreground":"#005cc5"}},{"scope":"support.variable","settings":{"foreground":"#005cc5"}},{"scope":"meta.module-reference","settings":{"foreground":"#005cc5"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#e36209"}},{"scope":["markup.heading","markup.heading entity.name"],"settings":{"fontStyle":"bold","foreground":"#005cc5"}},{"scope":"markup.quote","settings":{"foreground":"#22863a"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#24292e"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#24292e"}},{"scope":["markup.underline"],"settings":{"fontStyle":"underline"}},{"scope":["markup.strikethrough"],"settings":{"fontStyle":"strikethrough"}},{"scope":"markup.inline.raw","settings":{"foreground":"#005cc5"}},{"scope":["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],"settings":{"background":"#ffeef0","foreground":"#b31d28"}},{"scope":["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],"settings":{"background":"#f0fff4","foreground":"#22863a"}},{"scope":["markup.changed","punctuation.definition.changed"],"settings":{"background":"#ffebda","foreground":"#e36209"}},{"scope":["markup.ignored","markup.untracked"],"settings":{"background":"#005cc5","foreground":"#f6f8fa"}},{"scope":"meta.diff.range","settings":{"fontStyle":"bold","foreground":"#6f42c1"}},{"scope":"meta.diff.header","settings":{"foreground":"#005cc5"}},{"scope":"meta.separator","settings":{"fontStyle":"bold","foreground":"#005cc5"}},{"scope":"meta.output","settings":{"foreground":"#005cc5"}},{"scope":["brackethighlighter.tag","brackethighlighter.curly","brackethighlighter.round","brackethighlighter.square","brackethighlighter.angle","brackethighlighter.quote"],"settings":{"foreground":"#586069"}},{"scope":"brackethighlighter.unmatched","settings":{"foreground":"#b31d28"}},{"scope":["constant.other.reference.link","string.other.link"],"settings":{"fontStyle":"underline","foreground":"#032f62"}}],"type":"light"}'));var fae="https://esm.sh/@shikijs/[email protected]/",c3=null;function hae(){return c3||(c3=RL({themes:[Ej,zj],langs:[],engine:l3()})),c3}var Aj=new Set,u3=new Map;async function gae(e,t){if(Aj.has(t))return;let r=u3.get(t);if(r)return r;let o=(async()=>{try{let n=await import(`${fae}${t}.mjs`);await e.loadLanguage(n.default??n)}catch{}finally{Aj.add(t),u3.delete(t)}})();return u3.set(t,o),o}async function Mj(e){let t=await hae();return await gae(t,e),t}var Nj=["github-light","github-dark"],Rj=new Map,jc=new Map;function vae(e,t,r){let o=e.slice(0,100),n=e.length>100?e.slice(-100):"";return`${t}:${r[0]}:${r[1]}:${e.length}:${o}:${n}`}function yae(e){let t=r=>typeof r=="string"?r:r?.name??"custom";return[t(e[0]),t(e[1])]}var Dj={name:"shiki",type:"code-highlighter",supportsLanguage(e){return!0},getSupportedLanguages(){return[]},getThemes(){return[Nj[0],Nj[1]]}
259,highlight(e,t){let{code:r,language:o}=e,n=yae(e.themes),i=vae(r,o,n),a=Rj.get(i);return a||(t&&(jc.has(i)||jc.set(i,new Set),jc.get(i).add(t)),Mj(o).then(l=>{let c=l.getLoadedLanguages().includes(o)?o:"text",d=l.codeToTokens(r,{lang:c,themes:{light:n[0],dark:n[1]}}),p={bg:d.bg??void 0,fg:d.fg??void 0,tokens:d.tokens};Rj.set(i,p);let m=jc.get(i);if(m){for(let h of m)h(p);jc.delete(i)}}).catch(l=>{console.error("[streamdown-code] Failed to highlight:",l),jc.delete(i)}),null)}};function d3(e,t){return Lj(e,t||{})||{type:"root",children:[]}}function Lj(e,t){let r=bae(e,t);return r&&t.afterTransform&&t.afterTransform(e,r),r}function bae(e,t){switch(e.nodeType){case 1:return kae(e,t);case 3:return wae(e);case 8:return _ae(e);case 9:return Oj(e,t);case 10:return xae();case 11:return Oj(e,t);default:return}}function Oj(e,t){return{type:"root",children:jj(e,t)}}function xae(){return{type:"doctype"}}function wae(e){return{type:"text",value:e.nodeValue||""}}function _ae(e){return{type:"comment",value:e.nodeValue||""}}function kae(e,t){let r=e.namespaceURI,o=r===Km.svg?K$:J$,n=r===Km.html?e.tagName.toLowerCase():e.tagName,i=r===Km.html&&n==="template"?e.content:e,a=e.getAttributeNames(),l={},c=-1;for(;++c<a.length;)l[a[c]]=e.getAttribute(a[c])||"";return o(n,l,jj(i,t))}function jj(e,t){let r=e.childNodes,o=[],n=-1;for(;++n<r.length;){let i=Lj(r[n],t);i!==void 0&&o.push(i)}return o}var Sae=new DOMParser;function Uj(e,t){let r=t?.fragment?$ae(e):Sae.parseFromString(e,"text/html");return d3(r)}function $ae(e){let t=document.createElement("template");return t.innerHTML=e,t.content}var ly=(function(e,t,r){let o=j$(r);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof t=="number"){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(t=e.children.indexOf(t),t<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(o(e.children[t],t,e))return e.children[t]});var yi=(function(e){if(e==null)return Pae;if(typeof e=="string")return Iae(e);if(typeof e=="object")return Tae(e);if(typeof e=="function")return p3(e);throw new Error("Expected function, string, or array as `test`")});function Tae(e){let t=[],r=-1;for(;++r<e.length;)t[r]=yi(e[r]);return p3(o);function o(...n){let i=-1;for(;++i<t.length;)if(t[i].apply(this,n))return!0;return!1}}function Iae(e){return p3(t);function t(r){return r.tagName===e}}function p3(e){return t;function t(r,o,n){return!!(Cae(r)&&e.call(this,r,typeof o=="number"?o:void 0,n||void 0))}}function Pae(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function Cae(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}var Bj=/\n/g,Fj=/[\t ]+/g,m3=yi("br"),Zj=yi(Dae),zae=yi("p"),Vj=yi("tr"),Eae=yi(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",Rae,Oae]),Gj=yi(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function f3(e,t){let r=t||{},o="children"in e?e.children:[],n=Gj(e),i=Wj(e,{whitespace:r.whitespace||"normal",breakBefore:!1,breakAfter:!1}),a=[];(e.type==="text"||e.type==="comment")&&a.push(...Hj(e,{whitespace:i,breakBefore:!0,breakAfter:!0}));let l=-1;for(;++l<o.length;)a.push(...qj(o[l],e,{whitespace:i,breakBefore:l?void 0:n,breakAfter:l<o.length-1?m3(o[l+1]):n}));let c=[],d;for(l=-1;++l<a.length;){let p=a[l];typeof p=="number"?d!==void 0&&p>d&&(d=p):p&&(d!==void 0&&d>-1&&c.push(`
260`.repeat(d)||" "),d=-1,c.push(p))}return c.join("")}function qj(e,t,r){return e.type==="element"?Aae(e,t,r):e.type==="text"?r.whitespace==="normal"?Hj(e,r):Mae(e):[]}function Aae(e,t,r){let o=Wj(e,r),n=e.children||[],i=-1,a=[];if(Eae(e))return a;let l,c;for(m3(e)||Vj(e)&&ly(t,e,Vj)?c=`
261`:zae(e)?(l=2,c=2):Gj(e)&&(l=1,c=1);++i<n.length;)a=a.concat(qj(n[i],e,{whitespace:o,breakBefore:i?void 0:l,breakAfter:i<n.length-1?m3(n[i+1]
261):c}));return Zj(e)&&ly(t,e,Zj)&&a.push("	"),l&&a.unshift(l),c&&a.push(c),a}function Hj(e,t){let r=String(e.value),o=[],n=[],i=0;for(;i<=r.length;){Bj.lastIndex=i;let c=Bj.exec(r),d=c&&"index"in c?c.index:r.length;o.push(Nae(r.slice(i,d).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),i===0?t.breakBefore:!0,d===r.length?t.breakAfter:!0)),i=d+1}let a=-1,l;for(;++a<o.length;)o[a].charCodeAt(o[a].length-1)===8203||a<o.length-1&&o[a+1].charCodeAt(0)===8203?(n.push(o[a]),l=void 0):o[a]?(typeof l=="number"&&n.push(l),n.push(o[a]),l=0):(a===0||a===o.length-1)&&n.push(0);return n}function Mae(e){return[String(e.value)]}function Nae(e,t,r){let o=[],n=0,i;for(;n<e.length;){Fj.lastIndex=n;let a=Fj.exec(e);i=a?a.index:e.length,!n&&!i&&a&&!t&&o.push(""),n!==i&&o.push(e.slice(n,i)),n=a?i+a[0].length:i}return n!==i&&!r&&o.push(""),o.join(" ")}function Wj(e,t){if(e.type==="element"){let r=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return r.wrap?"pre-wrap":"pre";case"td":case"th":return r.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap";default:}}return t.whitespace}function Rae(e){return!!(e.properties||{}).hidden}function Dae(e){return e.tagName==="td"||e.tagName==="th"}function Oae(e){return e.tagName==="dialog"&&!(e.properties||{}).open}var ie=class e extends Error{constructor(t,r){var o="KaTeX parse error: "+t,n,i,a=r&&r.loc;if(a&&a.start<=a.end){var l=a.lexer.input;n=a.start,i=a.end,n===l.length?o+=" at end of input: ":o+=" at position "+(n+1)+": ";var c=l.slice(n,i).replace(/[^]/g,"$&\u0332"),d;n>15?d="\u2026"+l.slice(n-15,n):d=l.slice(0,n);var p;i+15<l.length?p=l.slice(i,i+15)+"\u2026":p=l.slice(i),o+=d+c+p}super(o),this.name="ParseError",Object.setPrototypeOf(this,e.prototype),this.position=n,n!=null&&i!=null&&(this.length=i-n),this.rawMessage=t}},Lae=/([A-Z])/g,G3=e=>e.replace(Lae,"-$1").toLowerCase(),jae={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},Uae=/[&><"']/g,Tr=e=>String(e).replace(Uae,t=>jae[t]),xy=e=>e.type==="ordgroup"||e.type==="color"?e.body.length===1?xy(e.body[0]):e:e.type==="font"?xy(e.body):e,Bae=new Set(["mathord","textord","atom"]),_i=e=>Bae.has(xy(e).type),Fae=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(e);return t?t[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():"_relative"},C3={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function Zae(e){if("default"in e)return e.default;var t=e.type,r=Array.isArray(t)?t[0]:t;if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}var cm=class{constructor(t){t===void 0&&(t={}),t=t||{};for(var r of Object.keys(C3)){var o=C3[r],n=t[r];this[r]=n!==void 0?o.processor?o.processor(n):n:Zae(o)}}reportNonstrict(t,r,o){var n=this.strict;if(typeof n=="function"&&(n=n(t,r,o)),!(!n||n==="ignore")){if(n===!0||n==="error")throw new ie("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+t+"]"),o);n==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+n+"': "+r+" ["+t+"]"))}}useStrictBehavior(t,r,o){var n=this.strict;if(typeof n=="function")try{n=n(t,r,o)}catch{n="error"}return!n||n==="ignore"?!1:n===!0||n==="error"?!0:n==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+n+"': "+r+" ["+t+"]")),!1)}isTrusted(t){if("url"in t&&t.url&&!t.protocol){var r=Fae(t.url);if(r==null)return!1;t.protocol=r}var o=typeof this.trust=="function"?this.trust(t):this.trust;return!!o}},Po=class{constructor(t,r,o){this.id=t,this.size=r,this.cramped=o}sup(){return Co[Vae[this.id]]}sub(){return Co[Gae[this.id]]}fracNum(){return Co[qae[this.id]]}fracDen(){return Co[Hae[this.id]]}cramp(){return Co[Wae[this.id]]}text(){return Co[Jae[this.id]]}isTight(){return this.size>=2}},q3=0,_y=1,Bc=2,wi=3,um=4,Dn=5,Fc=6,jr=7,Co=[new Po(q3,0,!1),new Po(_y,0,!0),new Po(Bc,1,!1),new Po(wi,1,!0),new Po(um,2,!1),new Po(Dn,2,!0),new Po(Fc,3,!1),new Po(jr,3,!0)],Vae=[um,Dn,um,Dn,Fc,jr,Fc,jr],Gae=[Dn,Dn,Dn,Dn,jr,jr,jr,
vendor: 5,098 bytes, lines 261-312
261jr],qae=[Bc,wi,um,Dn,Fc,jr,Fc,jr],Hae=[wi,wi,Dn,Dn,jr,jr,jr,jr],Wae=[_y,_y,wi,wi,Dn,Dn,jr,jr],Jae=[q3,_y,Bc,wi,Bc,wi,Bc,wi],je={DISPLAY:Co[q3],TEXT:Co[Bc],SCRIPT:Co[um],SCRIPTSCRIPT:Co[Fc]},z3=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function Kae(e){for(var t=0;t<z3.length;t++)for(var r=z3[t],o=0;o<r.blocks.length;o++){var n=r.blocks[o];if(e>=n[0]&&e<=n[1])return r.name}return null}var wy=[];z3.forEach(e=>e.blocks.forEach(t=>wy.push(...t)));function SU(e){for(var t=0;t<wy.length;t+=2)if(e>=wy[t]&&e<=wy[t+1])return!0;return!1}var Uc=80,Xae=function(t,r){return"M95,"+(622+t+r)+`
262c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
263c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
264c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
265s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
266c69,-144,104.5,-217.7,106.5,-221
267l`+t/2.075+" -"+t+`
268c5.3,-9.3,12,-14,20,-14
269H400000v`+(40+t)+`H845.2724
270s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
271c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
272M`+(834+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},Yae=function(t,r){return"M263,"+(601+t+r)+`c0.7,0,18,39.7,52,119
273c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
274c340,-704.7,510.7,-1060.3,512,-1067
275l`+t/2.084+" -"+t+`
276c4.7,-7.3,11,-11,19,-11
277H40000v`+(40+t)+`H1012.3
278s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
279c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
280s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
281c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
282M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},Qae=function(t,r){return"M983 "+(10+t+r)+`
283l`+t/3.13+" -"+t+`
284c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+`
285H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
286s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
287c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
288c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
289c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
290c53.7,-170.3,84.5,-266.8,92.5,-289.5z
291M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},ese=function(t,r){return"M424,"+(2398+t+r)+`
292c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
293c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
294s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
295s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
296l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000
297v`+(40+t)+`H1014.6
298s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
299c-2,6,-10,9,-24,9
300c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+r+`
301h400000v`+(40+t)+"h-400000z"},tse=function(t,r){return"M473,"+(2713+t+r)+`
302c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+`
303c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7
304s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
305c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
306c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
307s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
308606zM`+(1001+t)+" "+r+"h400000v"+(40+t)+"H1017.7z"},rse=function(t){var r=t/2;return"M400000 "+t+" H0 L"+r+" 0 l65 45 L145 "+(t-80)+" H400000z"},nse=function(t,r,o){var n=o-54-r-t;return"M702 "+(t+r)+"H400000"+(40+t)+`
309H742v`+n+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
310h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
311c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
312219 661 l218 661zM702 `+r+"H400000v"+(40+t)+"H742z"},ose=function(t,r,o){r=1e3*r;var n="";switch(t){case"sqrtMain":n=Xae(r,Uc);break;case"sqrtSize1":n=Yae(r,Uc);break;case"sqrtSize2":n=Qae(r,Uc);break;case"sqrtSize3":n=ese(r,Uc);break;case"sqrtSize4":n=tse(r,Uc);break;case"sqrtTall":n=nse(r,Uc,o)}return n},ise=function(t,r){switch(t){case"\u239C":return"M291 0 H417 V"+r+" H291z M291 0 H417 V"+r+" H291z";case"\u2223":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z";case"\u2225":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z"+("M367 0 H410 V"+r+" H367z M367 0 H410 V"+r+" H367z");case"\u239F":return"M457 0 H583 V"+r+" H457z M457 0 H583 V"+r+" H457z";case"\u23A2":return"M319 0 H403 V"+r+" H319z M319 0 H403 V"+r+" H319z";case"\u23A5":return"M263 0 H347 V"+r+" H263z M263 0 H347 V"+r+" H263z";case"\u23AA":return"M384 0 H504 V"+r+" H384z M384 0 H504 V"+r+" H384z";case"\u23D0":return"M312 0 H355 V"+r+" H312z M312 0 H355 V"+r+" H312z";case"\u2016":return"M257 0 H300 V"+r+" H257z M257 0 H300 V"+r+" H257z"+("M478 0 H521 V"+r+" H478z M478 0 H521 V"+r+" H478z");default:return""}},Jj
vendor: 10,493 bytes, lines 312-433
312={doubleleftarrow:`M262 157
313l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
314 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
315 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
316c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
317 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
318-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
319-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
320m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
321-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
322 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
323-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
324-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
325-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
326c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
327-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
328 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
329-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
330c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
331 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
332 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
333 l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
334-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
335 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
336 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
337 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
338-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
339H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
340 435 0h399565z`,leftgroupunder:`M400000 262
341H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
342 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
343-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
344-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
345-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
346 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
347-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
348-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
349m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
350 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
351 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
352-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
353 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
354-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
355v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
356-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
357-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
358 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
359M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftbracketunder:`M0 0 h120 V290 H399995 v120 H0z
360M0 0 h120 V290 H399995 v120 H0z`,leftbracketover:`M0 440 h120 V150 H399995 v-120 H0z
361M0 440 h120 V150 H399995 v-120 H0z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
362M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
363-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
364c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
365 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
366M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
367c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
368-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
369 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
370 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
371c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
372 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
373 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
374-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
375-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
376m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
37760.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
378-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
379m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
380c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
381-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
382m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
38385.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
384-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
385m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
386c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
387-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
388 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
389 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
390-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
391-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
392 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
393-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
394s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
395c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
396 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
397-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
398 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
399 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
400-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
401-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
402 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
403-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
404 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
405m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
406 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
407-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
408-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
409 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
410 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
411-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
412m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
413 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
414-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
415 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
416M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightbracketunder:`M399995 0 h-120 V290 H0 v120 H400000z
417M399995 0 h-120 V290 H0 v120 H400000z`,rightbracketover:`M399995 440 h-120 V150 H0 v-120 H399995z
418M399995 440 h-120 V150 H0 v-120 H399995z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
419 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
420-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
421-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
422 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
423-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
424-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
425-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
426 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
427c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
428 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
429 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
430-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
431 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
432-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
433 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 
vendor: 5,256 bytes, lines 433-491
4336.525 0
434 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
435-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
436-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
437 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
438c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
439 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
440-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
441 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
442 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
443 -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
444-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
445 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
446 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
447 -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
4483.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
44910.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
450-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
451-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
452H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
453c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
454c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
455-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
456-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
457-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
458-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
459-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
460-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
461-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
462c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
463c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
464s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
465121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
466s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
467c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
468M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
469-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
47013.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
471-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
472-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
473-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
474151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
475c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
476c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
477c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
478c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
479M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
480c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
481-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
482c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
483M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
484c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
4851c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
486-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
487M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
488c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
489-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
490c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
491M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},
vendor: 6,037 bytes, lines 491-519
491ase=function(t,r){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 h347 v-84
492H403z M403 1759 V0 H319 V1759 v`+r+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v1759 H0 v84 H347z
493M347 1759 V0 H263 V1759 v`+r+" v1759 h84z";case"vert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
494c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
495c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+" v585 h43z";case"doublevert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
496c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
497c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+` v585 h43z
498M367 15 v585 v`+r+` v585 c2.667,10,9.667,15,21,15
499c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
500c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+r+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+r+` v1715 h263 v84 H319z
501MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+r+` v1799 H0 v-84 H319z
502MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v602 h84z
503M403 1759 V0 H319 V1759 v`+r+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v602 h84z
504M347 1759 V0 h-84 V1759 v`+r+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
505c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
506-36,557 l0,`+(r+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
507949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
508c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
509-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
510l0,-`+(r+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
511-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
51263,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
513c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(r+9)+`
514c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
515c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
516c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
517c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
518l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
519-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}},ka=class{constructor(t){this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return this.classes.includes(t)}toNode(){for(var t=document.createDocumentFragment(),r=0;r<this.children.length;r++)t.appendChild(this.children[r].toNode());return t}toMarkup(){for(var t="",r=0;r<this.children.length;r++)t+=this.children[r].toMarkup();return t}toText(){var t=r=>r.toText();return this.children.map(t).join("")}},E3={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},sse={ex:!0,em:!0,mu:!0},$U=function(t){return typeof t!="string"&&(t=t.unit),t in E3||t in sse||t==="ex"},Zt=function(t,r){var o;if(t.unit in E3)o=E3[t.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(t.unit==="mu")o=r.fontMetrics().cssEmPerMu;else{var n;if(r.style.isTight()?n=r.havingStyle(r.style.text()):n=r,t.unit==="ex")o=n.fontMetrics().xHeight;else if(t.unit==="em")o=n.fontMetrics().quad;else throw new ie("Invalid unit: '"+t.unit+"'");n!==r&&(o*=n.sizeMultiplier/r.sizeMultiplier)}return Math.min(t.number*o,r.maxSize)},se=function(t){return+t.toFixed(4)+"em"},Sa=function(t){return t.filter(r=>r).join(" ")},TU=function(t,r,o){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=o||{},r){r.style.isTight()&&this.classes.push("mtight");var n=r.getColor();n&&(this.style.color=n)}},IU=function(t){var r=document.createElement(t);r.className=Sa(this.classes);for(var o of Object.keys(this.style))r.style[o]=this.style[o];for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);for(var i=0;i<this.children.length;i++)r.appendChild(this.children[i].toNode());return r},lse=/[\s"'>/=\x00-\x1f]/,PU=function(t){var r="<"+t;this.classes.length&&(r+=' class="'+Tr(Sa(this.classes))+'"');var o="";for(var n of Object.keys(this.style))o+=G3(n)+":"+this.style[n]+";";o&&(r+=' style="'+Tr(o)+'"');for(var i of Object.keys(this.attributes)){if(lse.test(i))throw new ie("Invalid attribute name '"+i+"'");r+=" "+i+'="'+Tr(this.attributes[i])+'"'}r+=">";for(var a=0;a<this.children.length;a++)r+=this.children[a].toMarkup();return r+="</"+t+">",r},$a=class{constructor(t,r,o,n){TU.call(this,t,o,n),this.children=r||[]}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return IU.call(this,"span")}toMarkup(){return PU.call(this,"span")}},Zc=class{constructor(t,r,o,n){TU.call(this,r,n),this.children=o||[],this.setAttribute("href",t)}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return IU.call(this,"a")}toMarkup(){return PU.call(this,"a")}},A3=class{constructor(t,r,o){this.alt=r,this.src=t,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=o}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var r of Object.keys(this.style))t.style[r]=this.style[r];return t}toMarkup(){var t='<img src="'+Tr(this.src)+'"'+(' alt="'+Tr(this.alt)+'"'),r="";for(var o of Object.keys(this.style))r+=G3(o)+":"+this.style[o]+";";return r&&(t+=' style="'+Tr(r)+'"'),t+="'/>",t}},cse={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"},Ur=class{constructor(t,r,o,n,i,a,l,c){this.text=t,this.height=r||0,this.depth=o||0,this.italic=n||
vendor: 2,486 bytes, line 519
5190,this.skew=i||0,this.width=a||0,this.classes=l||[],this.style=c||{},this.maxFontSize=0;var d=Kae(this.text.charCodeAt(0));d&&this.classes.push(d+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=cse[this.text])}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createTextNode(this.text),r=null;this.italic>0&&(r=document.createElement("span"),r.style.marginRight=se(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=Sa(this.classes));for(var o of Object.keys(this.style))r=r||document.createElement("span"),r.style[o]=this.style[o];return r?(r.appendChild(t),r):t}toMarkup(){var t=!1,r="<span";this.classes.length&&(t=!0,r+=' class="',r+=Tr(Sa(this.classes)),r+='"');var o="";this.italic>0&&(o+="margin-right:"+se(this.italic)+";");for(var n of Object.keys(this.style))o+=G3(n)+":"+this.style[n]+";";o&&(t=!0,r+=' style="'+Tr(o)+'"');var i=Tr(this.text);return t?(r+=">",r+=i,r+="</span>",r):i}},ro=class{constructor(t,r){this.children=t||[],this.attributes=r||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"svg");for(var o of Object.keys(this.attributes))r.setAttribute(o,this.attributes[o]);for(var n=0;n<this.children.length;n++)r.appendChild(this.children[n].toNode());return r}toMarkup(){var t='<svg xmlns="http://www.w3.org/2000/svg"';for(var r of Object.keys(this.attributes))t+=" "+r+'="'+Tr(this.attributes[r])+'"';t+=">";for(var o=0;o<this.children.length;o++)t+=this.children[o].toMarkup();return t+="</svg>",t}},Eo=class{constructor(t,r){this.pathName=t,this.alternate=r}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"path");return this.alternate?r.setAttribute("d",this.alternate):r.setAttribute("d",Jj[this.pathName]),r}toMarkup(){return this.alternate?'<path d="'+Tr(this.alternate)+'"/>':'<path d="'+Tr(Jj[this.pathName])+'"/>'}},dm=class{constructor(t){this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"line");for(var o of Object.keys(this.attributes))r.setAttribute(o,this.attributes[o]);return r}toMarkup(){var t="<line";for(var r of Object.keys(this.attributes))t+=" "+r+'="'+Tr(this.attributes[r])+'"';return t+="/>",t}};function use(e){if(e instanceof Ur)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function dse(e){if(e instanceof $a)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var pse=e=>e instanceof $a||e instanceof Zc||e instanceof ka,zo
vendor: 57,629 bytes, line 519
519={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},
vendor: 7,167 bytes, line 519
519cy={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Kj={\u00C5:"A",\u00D0:"D",\u00DE:"o",\u00E5:"a",\u00F0:"d",\u00FE:"o",\u0410:"A",\u0411:"B",\u0412:"B",\u0413:"F",\u0414:"A",\u0415:"E",\u0416:"K",\u0417:"3",\u0418:"N",\u0419:"N",\u041A:"K",\u041B:"N",\u041C:"M",\u041D:"H",\u041E:"O",\u041F:"N",\u0420:"P",\u0421:"C",\u0422:"T",\u0423:"y",\u0424:"O",\u0425:"X",\u0426:"U",\u0427:"h",\u0428:"W",\u0429:"W",\u042A:"B",\u042B:"X",\u042C:"B",\u042D:"3",\u042E:"X",\u042F:"R",\u0430:"a",\u0431:"b",\u0432:"a",\u0433:"r",\u0434:"y",\u0435:"e",\u0436:"m",\u0437:"e",\u0438:"n",\u0439:"n",\u043A:"n",\u043B:"n",\u043C:"m",\u043D:"n",\u043E:"o",\u043F:"n",\u0440:"p",\u0441:"c",\u0442:"o",\u0443:"y",\u0444:"b",\u0445:"x",\u0446:"n",\u0447:"n",\u0448:"w",\u0449:"w",\u044A:"a",\u044B:"m",\u044C:"a",\u044D:"e",\u044E:"m",\u044F:"r"};function mse(e,t){zo[e]=t}function H3(e,t,r){if(!zo[t])throw new Error("Font metrics not found for font: "+t+".");var o=e.charCodeAt(0),n=zo[t][o];if(!n&&e[0]in Kj&&(o=Kj[e[0]].charCodeAt(0),n=zo[t][o]),!n&&r==="text"&&SU(o)&&(n=zo[t][77]),n)return{depth:n[0],height:n[1],italic:n[2],skew:n[3],width:n[4]}}var h3={};function fse(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!h3[t]){var r=h3[t]={cssEmPerMu:cy.quad[t]/18};for(var o in cy)cy.hasOwnProperty(o)&&(r[o]=cy[o][t])}return h3[t]}var hse={bin:1,close:1,inner:1,open:1,punct:1,rel:1},gse={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Mt={math:{},text:{}};function y(e,t,r,o,n,i){Mt[e][n]={font:t,group:r,replace:o},i&&o&&(Mt[e][o]=Mt[e][n])}var b="math",K="text",S="main",A="ams",Nt="accent-token",xe="bin",Br="close",qc="inner",Ee="mathord",nr="op-token",yn="open",mm="punct",N="rel",ki="spacing",O="textord";y(b,S,N,"\u2261","\\equiv",!0);y(b,S,N,"\u227A","\\prec",!0);y(b,S,N,"\u227B","\\succ",!0);y(b,S,N,"\u223C","\\sim",!0);y(b,S,N,"\u22A5","\\perp");y(b,S,N,"\u2AAF","\\preceq",!0);y(b,S,N,"\u2AB0","\\succeq",!0);y(b,S,N,"\u2243","\\simeq",!0);y(b,S,N,"\u2223","\\mid",!0);y(b,S,N,"\u226A","\\ll",!0);y(b,S,N,"\u226B","\\gg",!0);y(b,S,N,"\u224D","\\asymp",!0);y(b,S,N,"\u2225","\\parallel");y(b,S,N,"\u22C8","\\bowtie",!0);y(b,S,N,"\u2323","\\smile",!0);y(b,S,N,"\u2291","\\sqsubseteq",!0);y(b,S,N,"\u2292","\\sqsupseteq",!0);y(b,S,N,"\u2250","\\doteq",!0);y(b,S,N,"\u2322","\\frown",!0);y(b,S,N,"\u220B","\\ni",!0);y(b,S,N,"\u221D","\\propto",!0);y(b,S,N,"\u22A2","\\vdash",!0);y(b,S,N,"\u22A3","\\dashv",!0);y(b,S,N,"\u220B","\\owns");y(b,S,mm,".","\\ldotp");y(b,S,mm,"\u22C5","\\cdotp");y(b,S,mm,"\u22C5","\xB7");y(K,S,O,"\u22C5","\xB7");y(b,S,O,"#","\\#");y(K,S,O,"#","\\#");y(b,S,O,"&","\\&");y(K,S,O,"&","\\&");y(b,S,O,"\u2135","\\aleph",!0);y(b,S,O,"\u2200","\\forall",!0);y(b,S,O,"\u210F","\\hbar",!0);y(b,S,O,"\u2203","\\exists",!0);y(b,S,O,"\u2207","\\nabla",!0);y(b,S,O,"\u266D","\\flat",!0);y(b,S,O,"\u2113","\\ell",!0);y(b,S,O,"\u266E","\\natural",!0);y(b,S,O,"\u2663","\\clubsuit",!0);y(b,S,O,"\u2118","\\wp",!0);y(b,S,O,"\u266F","\\sharp",!0);y(b,S,O,"\u2662","\\diamondsuit",!0);y(b,S,O,"\u211C","\\Re",!0);y(b,S,O,"\u2661","\\heartsuit",!0);y(b,S,O,"\u2111","\\Im",!0);y(b,S,O,"\u2660","\\spadesuit",!0);y(b,S,O,"\xA7","\\S",!0);y(K,S,O,"\xA7","\\S");y(b,S,O,"\xB6","\\P",!0);y(K,S,O,"\xB6","\\P");y(b,S,O,"\u2020","\\dag");y(K,S,O,"\u2020","\\dag");y(K,S,O,"\u2020","\\textdagger");y(b,S,O,"\u2021","\\ddag");y(K,S,O,"\u2021","\\ddag");y(K,S,O,"\u2021","\\textdaggerdbl");y(b,S,Br,"\u23B1","\\rmoustache",!0);y(b,S,yn,"\u23B0","\\lmoustache",!0);y(b,S,Br,"\u27EF","\\rgroup",!0);y(b,S,yn,"\u27EE","\\lgroup",!0);y(b,S,xe,"\u2213","\\mp",!0);y(b,S,xe,"\u2296","\\ominus",!0);y(b,S,xe,"\u228E","\\uplus",!0);y(b,S,xe,"\u2293","\\sqcap",!0);y(b,S,xe,"\u2217","\\ast");y(b,S,xe,"\u2294","\\sqcup",!0);y(b,S,xe,"\u25EF","\\bigcirc",!0);y(b,S,xe,"\u2219","\\bullet",!0);y(b,S,xe,"\u2021","\\ddagger");y(b,S,xe,"\u2240","\\wr",!0);y(b,S,xe,"\u2A3F","\\amalg");y(b,S,xe,"&","\\And");y(b,S,N,"\u27F5","\\longleftarrow",!0);y(b,S,N,"\u21D0","\\Leftarrow",!0);y(b,S,N,"\u27F8","\\Longleftarrow",!0);y(b,S,N,"\u27F6","\\longrightarrow",!0);y(b,S,N,"\u21D2","\\Rightarrow",!0);y(b,S,N,"\u27F9","\\Longrightarrow",!0);y(b,S,N,"\u2194","\\leftrightarrow",!0);y(b,S,N,"\u27F7","\\longleftrightarrow",!0);y(b,S,N,"\u21D4","\\Leftrightarrow",!0);y(b,S,N,"\u27FA","\\Longleftrightarrow",!0);y(b,S,N,"\u21A6","\\mapsto",!0);y(b,S,N,"\u27FC","\\longmapsto",!0);y(b,S,N,"\u2197","\\nearrow",!0);y(b,S,N,"\u21A9","\\hookleftarrow",!0);y(b,S,N,"\u21AA","\\hookrightarrow",!0);y(b,S,N,"\u2198","\\searrow",!0);y(b,S,N,"\u21BC","\\leftharpoonup",!0);y(b,S,N,"\u21C0","\\rightharpoonup",!0);y(b,S,N,"\u2199","\\swarrow",!0);y(b,S,N,"\u21BD","\\leftharpoondown",!0);y(b,S,N,"\u21C1","\\rightharpoondown",!0);y(b,S,N,"\u2196","\\nwarrow",!0);y(b,S,N,"\u21CC","\\rightleftharpoons",!0);y(b,A,N,"\u226E","\\nless",!0);y(b,A,N,"\uE010","\\@nleqslant");y(b,A,N,"\uE011","\\@nleqq");y(b,A,N,"\u2A87","\\lneq",!0);y(b,A,N,"\u2268","\\lneqq",!0);y(b,A,N,"\uE00C","\\@lvertneqq");y(b,A,N,"\u22E6","\\lnsim",!0);y(b,A,N,"\u2A89","\\lnapprox",!0);y(b,A,N,"\u2280","\\nprec",!0);y(b,A,N,"\u22E0","\\npreceq",!0);y(b,A,N,"\u22E8","\\precnsim",!0);y(b,A,N,"\u2AB9","\\precnapprox",!0);y(b,A,N,"\u2241","\\nsim",!0);y(b,A,N,"\uE006","\\@nshortmid");y(b,A,N,"\u2224","\\nmid",!0);y(b,A,N,"\u22AC","\\nvdash",!0);y(b,A,N,"\u22AD","\\nvDash",!0);y(b,A,N,"\u22EA","\\ntriangleleft");y(b,A,N,"\u22EC","\\ntrianglelefteq",!0);y(b,A,N,"\u228A","\\subsetneq",!0);y(b,A,N,"\uE01A","\\@varsubsetneq");y(b,A,N,"\u2ACB","\\subsetneqq",!0);y(b,A,N,"\uE017","\\@varsubsetneqq");y(b,A,N,"\u226F","\\ngtr",!0);y(b,A,N,"\uE00F","\\@ngeqslant");y(b,A,N,"\uE00E","\\@ngeqq");y(b,A,N,"\u2A88","\\gneq",!0);y(b,A,N,"\u2269","\\gneqq",!0);y(b,A,N,"\uE00D","\\@gvertneqq");y(b,A,N,"\u22E7","\\gnsim",!0);y(b,A,N,"\u2A8A","\\gnapprox",!0);y(b,A,N,"\u2281","\\nsucc",!0);y(b,A,N,"\u22E1","\\nsucceq",!0);y(b,A,N,"\u22E9","\\succnsim",!0);y(b,A,N,"\u2ABA","\\succnapprox",!0);y(b,A,N,"\u2246","\\ncong",!0);y(b,A,N,"\uE007","\\@nshortparallel");y(b,A,N,"\u2226","\\nparallel",!0);y(b,A,N,"\u22AF","\\nVDash",!0);y(b,A,N,"\u22EB","\\ntriangleright");y(b,A,N,"\u22ED","\\ntrianglerighteq",!0);y(b,A,N,"\uE018","\\@nsupseteqq");y(b,A,N,"\u228B","\\supsetneq",!0);y(b,A,N,"\uE01B","\\@varsupsetneq");y(b,A,N,"\u2ACC","\\supsetneqq",!0);y(b,A,N,"\uE019","\\@varsupsetneqq");y(b,A,N,"\u22AE","\\nVdash",!0);y(b,A,N,"\u2AB5","\\precneqq",!0);y(b,A,N,"\u2AB6","\\succneqq",!0);
519y(b,A,N,"\uE016","\\@nsubseteqq");y(b,A,xe,"\u22B4","\\unlhd");y(b,A,xe,"\u22B5","\\unrhd");y(b,A,N,"\u219A","\\nleftarrow",!0);y(b,A,N,"\u219B","\\nrightarrow",!0);y(b,A,N,"\u21CD","\\nLeftarrow",!0);y(b,A,N,"\u21CF","\\nRightarrow",!0);y(b,A,N,"\u21AE","\\nleftrightarrow",!0);y(b,A,N,"\u21CE","\\nLeftrightarrow",!0);y(b,A,N,"\u25B3","\\vartriangle");y(b,A,O,"\u210F","\\hslash");y(b,A,O,"\u25BD","\\triangledown");y(b,A,O,"\u25CA","\\lozenge");y(b,A,O,"\u24C8","\\circledS");y(b,A,O,"\xAE","\\circledR");y(K,A,O,"\xAE","\\circledR");y(b,A,O,"\u2221","\\measuredangle",!0);y(b,A,O,"\u2204","\\nexists");y(b,A,O,"\u2127","\\mho");y(b,A,O,"\u2132","\\Finv",!0);y(b,A,O,"\u2141","\\Game",!0);y(b,A,O,"\u2035","\\backprime");y(b,A,O,"\u25B2","\\blacktriangle");y(b,A,O,"\u25BC","\\blacktriangledown");y(b,A,O,"\u25A0","\\blacksquare");y(b,A,O,"\u29EB","\\blacklozenge");y(b,A,O,"\u2605","\\bigstar");y(b,A,O,"\u2222","\\sphericalangle",!0);y(b,A,O,"\u2201","\\complement",!0);y(b,A,O,"\xF0","\\eth",!0);y(K,S,O,"\xF0","\xF0");y(b,A,O,"\u2571","\\diagup");y(b,A,O,"\u2572","\\diagdown");y(b,A,O,"\u25A1","\\square");y(b,A,O,"\u25A1","\\Box");y(b,A,O,"\u25CA","\\Diamond");y(b,A,O,"\xA5","\\yen",!0);y(K,A,O,"\xA5","\\yen",!0);y(b,A,O,"\u2713","\\checkmark",!0);y(K,A,O,"\u2713","\\checkmark");y(b,A,O,"\u2136","\\beth",!0);y(b,A,O,"\u2138","\\daleth",!0);y(b,A,O,"\u2137","\\gimel",!0);y(b,A,O,"\u03DD","\\digamma",!0);y(b,A,O,"\u03F0","\\varkappa");y(b,A,yn,"\u250C","\\@ulcorner",!0);y(b,A,Br,"\u2510","\\@urcorner",!0);y(b,A,yn,"\u2514","\\@llcorner",!0);y(b,A,Br,"\u2518","\\@lrcorner",!0);y(b,A,N,"\u2266","\\leqq",!0);y(b,A,N,"\u2A7D","\\leqslant",!0);y(b,A,N,"\u2A95","\\eqslantless",!0);y(b,A,N,"\u2272","\\lesssim",!0);y(b,A,N,"\u2A85","\\lessapprox",!0);y(b,A,N,"\u224A","\\approxeq",!0);y(b,A,xe,"\u22D6","\\lessdot");y(b,A,N,"\u22D8","\\lll",!0);y(b,A,N,"\u2276","\\lessgtr",!0);y(b,A,N,"\u22DA","\\lesseqgtr",!0);y(b,A,N,"\u2A8B","\\lesseqqgtr",!0);y(b,A,N,"\u2251","\\doteqdot");y(b,A,N,"\u2253","\\risingdotseq",!0);y(b,A,N,"\u2252","\\fallingdotseq",!0);y(b,A,N,"\u223D","\\backsim",!0);y(b,A,N,"\u22CD","\\backsimeq",!0);y(b,A,N,"\u2AC5","\\subseteqq",!0);y(b,A,N,"\u22D0","\\Subset",!0);y(b,A,N,"\u228F","\\sqsubset",!0);y(b,A,N,"\u227C","\\preccurlyeq",!0);y(b,A,N,"\u22DE","\\curlyeqprec",!0);y(b,A,N,"\u227E","\\precsim",!0);y(b,A,N,"\u2AB7","\\precapprox",!0);y(b,A,N,"\u22B2","\\vartriangleleft");y(b,A,N,"\u22B4","\\trianglelefteq");y(b,A,N,"\u22A8","\\vDash",!0);y(b,A,N,"\u22AA","\\Vvdash",!0);y(b,A,N,"\u2323","\\smallsmile");y(b,A,N,"\u2322","\\smallfrown");y(b,A,N,"\u224F","\\bumpeq",!0);y(b,A,N,"\u224E","\\Bumpeq",!0);y(b,A,N,"\u2267","\\geqq",!0);y(b,A,N,"\u2A7E","\\geqslant",!0);y(b,A,N,"\u2A96","\\eqslantgtr",!0);y(b,A,N,"\u2273","\\gtrsim",!0);y(b,A,N,"\u2A86","\\gtrapprox",!0);y(b,A,xe,"\u22D7","\\gtrdot");y(b,A,N,"\u22D9","\\ggg",!0);y(b,A,N,"\u2277","\\gtrless",!0);y(b,A,N,"\u22DB","\\gtreqless",!0);y(b,A,N,"\u2A8C","\\gtreqqless",!0);y(b,A,N,"\u2256","\\eqcirc",!0);y(b,A,N,"\u2257","\\circeq",!0);y(b,A,N,"\u225C","\\triangleq",!0);y(b,A,N,"\u223C","\\thicksim");y(b,A,N,"\u2248","\\thickapprox");y(b,A,N,"\u2AC6","\\supseteqq",!0);y(b,A,N,"\u22D1","\\Supset",!0);y(b,A,N,"\u2290","\\sqsupset",!0);y(b,A,N,"\u227D","\\succcurlyeq",!0);y(b,A,N,"\u22DF","\\curlyeqsucc",!0);y(b,A,N,"\u227F","\\succsim",!0);y(b,A,N,"\u2AB8","\\succapprox",!0);y(b,A,N,"\u22B3","\\vartriangleright");y(b,A,N,"\u22B5","\\trianglerighteq");y(b,A,N,"\u22A9","\\Vdash",!0);y(b,A,N,"\u2223","\\shortmid");y(b,A,N,"\u2225","\\shortparallel");y(b,A,N,"\u226C","\\between",!0);y(b,A,N,"\u22D4","\\pitchfork",!0);y(b,A,N,"\u221D","\\varpropto");y(b,A,N,"\u25C0","\\blacktriangleleft");y(b,A,N,"\u2234","\\therefore",!0);y(b,A,N,"\u220D","\\backepsilon");y(b,A,N,"\u25B6","\\blacktriangleright");y(b,A,N,"\u2235","\\because",!0);y(b,A,N,"\u22D8","\\llless");y(b,A,N,"\u22D9","\\gggtr");y(b,A,xe,"\u22B2","\\lhd");y(b,A,xe,"\u22B3","\\rhd");y(b,A,N,"\u2242","\\eqsim",!0);y(b,S,N,"\u22C8","\\Join");y(b,A,N,"\u2251","\\Doteq",!0);y(b,A,xe,"\u2214","\\dotplus",!0);y(b,A,xe,"\u2216","\\smallsetminus");y(b,A,xe,"\u22D2","\\Cap",!0);y(b,A,xe,"\u22D3","\\Cup",!0);y(b,A,xe,"\u2A5E","\\doublebarwedge",!0);y(b,A,xe,"\u229F","\\boxminus",!0);y(b,A,xe,"\u229E","\\boxplus",!0);
519y(b,A,xe,"\u22C7","\\divideontimes",!0);y(b,A,xe,"\u22C9","\\ltimes",!0);y(b,A,xe,"\u22CA","\\rtimes",!0);y(b,A,xe,"\u22CB","\\leftthreetimes",!0);y(b,A,xe,"\u22CC","\\rightthreetimes",!0);y(b,A,xe,"\u22CF","\\curlywedge",!0);y(b,A,xe,"\u22CE","\\curlyvee",!0);y(b,A,xe,"\u229D","\\circleddash",!0);y(b,A,xe,"\u229B","\\circledast",!0);y(b,A,xe,"\u22C5","\\centerdot");y(b,A,xe,"\u22BA","\\intercal",!0);y(b,A,xe,"\u22D2","\\doublecap");y(b,A,xe,"\u22D3","\\doublecup");y(b,A,xe,"\u22A0","\\boxtimes",!0);y(b,A,N,"\u21E2","\\dashrightarrow",!0);y(b,A,N,"\u21E0","\\dashleftarrow",!0);y(b,A,N,"\u21C7","\\leftleftarrows",!0);y(b,A,N,"\u21C6","\\leftrightarrows",!0);y(b,A,N,"\u21DA","\\Lleftarrow",!0);y(b,A,N,"\u219E","\\twoheadleftarrow",!0);y(b,A,N,"\u21A2","\\leftarrowtail",!0);y(b,A,N,"\u21AB","\\looparrowleft",!0);y(b,A,N,"\u21CB","\\leftrightharpoons",!0);y(b,A,N,"\u21B6","\\curvearrowleft",!0);y(b,A,N,"\u21BA","\\circlearrowleft",!0);y(b,A,N,"\u21B0","\\Lsh",!0);y(b,A,N,"\u21C8","\\upuparrows",!0);y(b,A,N,"\u21BF","\\upharpoonleft",!0);y(b,A,N,"\u21C3","\\downharpoonleft",!0);y(b,S,N,"\u22B6","\\origof",!0);y(b,S,N,"\u22B7","\\imageof",!0);y(b,A,N,"\u22B8","\\multimap",!0);y(b,A,N,"\u21AD","\\leftrightsquigarrow",!0);y(b,A,N,"\u21C9","\\rightrightarrows",!0);y(b,A,N,"\u21C4","\\rightleftarrows",!0);y(b,A,N,"\u21A0","\\twoheadrightarrow",!0);y(b,A,N,"\u21A3","\\rightarrowtail",!0);y(b,A,N,"\u21AC","\\looparrowright",!0);y(b,A,N,"\u21B7","\\curvearrowright",!0);y(b,A,N,"\u21BB","\\circlearrowright",!0);y(b,A,N,"\u21B1","\\Rsh",!0);y(b,A,N,"\u21CA","\\downdownarrows",!0);y(b,A,N,"\u21BE","\\upharpoonright",!0);y(b,A,N,"\u21C2","\\downharpoonright",!0);y(b,A,N,"\u21DD","\\rightsquigarrow",!0);y(b,A,N,"\u21DD","\\leadsto");y(b,A,N,"\u21DB","\\Rrightarrow",!0);y(b,A,N,"\u21BE","\\restriction");y(b,S,O,"\u2018","`");y(b,S,O,"$","\\$");y(K,S,O,"$","\\$");y(K,S,O,"$","\\textdollar");y(b,S,O,"%","\\%");y(K,S,O,"%","\\%");y(b,S,O,"_","\\_");y(K,S,O,"_","\\_");y(K,S,O,"_","\\textunderscore");y(b,S,O,"\u2220","\\angle",!0);y(b,S,O,"\u221E","\\infty",!0);y(b,S,O,"\u2032","\\prime");y(b,S,O,"\u25B3","\\triangle");y(b,S,O,"\u0393","\\Gamma",!0);y(b,S,O,"\u0394","\\Delta",!0);y(b,S,O,"\u0398","\\Theta",!0);y(b,S,O,"\u039B","\\Lambda",!0);y(b,S,O,"\u039E","\\Xi",!0);y(b,S,O,"\u03A0","\\Pi",!0);y(b,S,O,"\u03A3","\\Sigma",!0);y(b,S,O,"\u03A5","\\Upsilon",!0);y(b,S,O,"\u03A6","\\Phi",!0);y(b,S,O,"\u03A8","\\Psi",!0);y(b,S,O,"\u03A9","\\Omega",!0);y(b,S,O,"A","\u0391");y(b,S,O,"B","\u0392");y(b,S,O,"E","\u0395");y(b,S,O,"Z","\u0396");y(b,S,O,"H","\u0397");y(b,S,O,"I","\u0399");y(b,S,O,"K","\u039A");y(b,S,O,"M","\u039C");y(b,S,O,"N","\u039D");y(b,S,O,"O","\u039F");y(b,S,O,"P","\u03A1");y(b,S,O,"T","\u03A4");y(b,S,O,"X","\u03A7");y(b,S,O,"\xAC","\\neg",!0);y(b,S,O,"\xAC","\\lnot");y(b,S,O,"\u22A4","\\top");y(b,S,O,"\u22A5","\\bot");y(b,S,O,"\u2205","\\emptyset");y(b,A,O,"\u2205","\\varnothing");y(b,S,Ee,"\u03B1","\\alpha",!0);y(b,S,Ee,"\u03B2","\\beta",!0);y(b,S,Ee,"\u03B3","\\gamma",!0);y(b,S,Ee,"\u03B4","\\delta",!0);y(b,S,Ee,"\u03F5","\\epsilon",!0);y(b,S,Ee,"\u03B6","\\zeta",!0);y(b,S,Ee,"\u03B7","\\eta",!0);y(b,S,Ee,"\u03B8","\\theta",!0);y(b,S,Ee,"\u03B9","\\iota",!0);y(b,S,Ee,"\u03BA","\\kappa",!0);y(b,S,Ee,"\u03BB","\\lambda",!0);y(b,S,Ee,"\u03BC","\\mu",!0);y(b,S,Ee,"\u03BD","\\nu",!0);y(b,S,Ee,"\u03BE","\\xi",!0);y(b,S,Ee,"\u03BF","\\omicron",!0);y(b,S,Ee,"\u03C0","\\pi",!0);y(b,S,Ee,"\u03C1","\\rho",!0);y(b,S,Ee,"\u03C3","\\sigma",!0);y(b,S,Ee,"\u03C4","\\tau",!0);y(b,S,Ee,"\u03C5","\\upsilon",!0);y(b,S,Ee,"\u03D5","\\phi",!0);y(b,S,Ee,"\u03C7","\\chi",!0);y(b,S,Ee,"\u03C8","\\psi",!0);y(b,S,Ee,"\u03C9","\\omega",!0);y(b,S,Ee,"\u03B5","\\varepsilon",!0);y(b,S,Ee,"\u03D1","\\vartheta",!0);y(b,S,Ee,"\u03D6","\\varpi",!0);y(b,S,Ee,"\u03F1","\\varrho",!0);y(b,S,Ee,"\u03C2","\\varsigma",!0);y(b,S,Ee,"\u03C6","\\varphi",!0);y(b,S,xe,"\u2217","*",!0);y(b,S,xe,"+","+");y(b,S,xe,"\u2212","-",!0);y(b,S,xe,"\u22C5","\\cdot",!0);y(b,S,xe,"\u2218","\\circ",!0);y(b,S,xe,"\xF7","\\div",!0);y(b,S,xe,"\xB1","\\pm",!0);y(b,S,xe,"\xD7","\\times",!0);y(b,S,xe,"\u2229","\\cap",!0);y(b,S,xe,"\u222A","\\cup",!0);y(b,S,xe,"\u2216","\\setminus",!0);y(b,S,xe,"\u2227","\\land");y(b,S,xe,"\u2228","\\lor");y(b,S,xe,"\u2227","\\wedge",!0);y(b,S,xe,"\u2228","\\vee",!0);y(b,S,O,"\u221A","\\surd");y(b,S,yn,"\u27E8","\\langle",!0);y(b,S,yn,"\u2223","\\lvert");y(b,S,yn,"\u2225","\\lVert");y(b,S,Br,"?","?");y(b,S,Br,"!","!");y(b,S,Br,"\u27E9","\\rangle",!0);y(b,S,Br,"\u2223","\\rvert");y(b,S,Br,"\u2225","\\rVert");y(b,S,N,"=","=");y(b,S,N,":",":");y(b,S,N,"\u2248","\\approx",!0);y(b,S,N,"\u2245","\\cong",!0);y(b,S,N,"\u2265","\\ge");y(b,S,N,"\u2265","\\geq",!0);y(b,S,N,"\u2190","\\gets");y(b,S,N,">","\\gt",!0);y(b,S,N,"\u2208","\\in",!0);y(b,S,N,"\uE020","\\@not");y(b,S,N,"\u2282","\\subset",!0);y(b,S,N,"\u2283","\\supset",!0);y(b,S,N,"\u2286","\\subseteq",!0);y(b,S,N,"\u2287","\\supseteq",!0);y(b,A,N,"\u2288","\\nsubseteq",!0);y(b,A,N,"\u2289","\\nsupseteq",!0);y(b,S,N,"\u22A8","\\models");y(b,S,N,"\u2190","\\leftarrow",!0);y(b,S,N,"\u2264","\\le");y(b,S,N,"\u2264","\\leq",!0);y(b,S,N,"<","\\lt",!0);y(b,S,N,"\u2192","\\rightarrow",!0);y(b,S,N,"\u2192","\\to");y(b,A,N,"\u2271","\\ngeq",!0);y(b,A,N,"\u2270","\\nleq",!0);y(b,S,ki,"\xA0","\\ ");y(b,S,ki,"\xA0","\\space");y(b,S,ki,"\xA0","\\nobreakspace");y(K,S,ki,"\xA0","\\ ");y(K,S,ki,"\xA0"," ");y(K,S,ki,"\xA0","\\space");y(K,S,ki,"\xA0","\\nobreakspace");y(b,S,ki,null,"\\nobreak");y(b,S,ki,null,"\\allowbreak");y(b,S,mm,",",",");y(b,S,mm,";",";");y(b,A,xe,"\u22BC","\\barwedge",!0);y(b,A,xe,"\u22BB","\\veebar",!0);y(b,S,xe,"\u2299","\\odot",!0);y(b,S,xe,"\u2295","\\oplus",!0);y(b,S,xe,"\u2297","\\otimes",!0);y(b,S,O,"\u2202","\\partial",!0);y(b,S,xe,"\u2298","\\oslash",!0);y(b,A,xe,"\u229A","\\circledcirc",!0);y(b,A,xe,"\u22A1","\\boxdot",!0);
vendor: 50,577 bytes, lines 519-520
519y(b,S,xe,"\u25B3","\\bigtriangleup");y(b,S,xe,"\u25BD","\\bigtriangledown");y(b,S,xe,"\u2020","\\dagger");y(b,S,xe,"\u22C4","\\diamond");y(b,S,xe,"\u22C6","\\star");y(b,S,xe,"\u25C3","\\triangleleft");y(b,S,xe,"\u25B9","\\triangleright");y(b,S,yn,"{","\\{");y(K,S,O,"{","\\{");y(K,S,O,"{","\\textbraceleft");y(b,S,Br,"}","\\}");y(K,S,O,"}","\\}");y(K,S,O,"}","\\textbraceright");y(b,S,yn,"{","\\lbrace");y(b,S,Br,"}","\\rbrace");y(b,S,yn,"[","\\lbrack",!0);y(K,S,O,"[","\\lbrack",!0);y(b,S,Br,"]","\\rbrack",!0);y(K,S,O,"]","\\rbrack",!0);y(b,S,yn,"(","\\lparen",!0);y(b,S,Br,")","\\rparen",!0);y(K,S,O,"<","\\textless",!0);y(K,S,O,">","\\textgreater",!0);y(b,S,yn,"\u230A","\\lfloor",!0);y(b,S,Br,"\u230B","\\rfloor",!0);y(b,S,yn,"\u2308","\\lceil",!0);y(b,S,Br,"\u2309","\\rceil",!0);y(b,S,O,"\\","\\backslash");y(b,S,O,"\u2223","|");y(b,S,O,"\u2223","\\vert");y(K,S,O,"|","\\textbar",!0);y(b,S,O,"\u2225","\\|");y(b,S,O,"\u2225","\\Vert");y(K,S,O,"\u2225","\\textbardbl");y(K,S,O,"~","\\textasciitilde");y(K,S,O,"\\","\\textbackslash");y(K,S,O,"^","\\textasciicircum");y(b,S,N,"\u2191","\\uparrow",!0);y(b,S,N,"\u21D1","\\Uparrow",!0);y(b,S,N,"\u2193","\\downarrow",!0);y(b,S,N,"\u21D3","\\Downarrow",!0);y(b,S,N,"\u2195","\\updownarrow",!0);y(b,S,N,"\u21D5","\\Updownarrow",!0);y(b,S,nr,"\u2210","\\coprod");y(b,S,nr,"\u22C1","\\bigvee");y(b,S,nr,"\u22C0","\\bigwedge");y(b,S,nr,"\u2A04","\\biguplus");y(b,S,nr,"\u22C2","\\bigcap");y(b,S,nr,"\u22C3","\\bigcup");y(b,S,nr,"\u222B","\\int");y(b,S,nr,"\u222B","\\intop");y(b,S,nr,"\u222C","\\iint");y(b,S,nr,"\u222D","\\iiint");y(b,S,nr,"\u220F","\\prod");y(b,S,nr,"\u2211","\\sum");y(b,S,nr,"\u2A02","\\bigotimes");y(b,S,nr,"\u2A01","\\bigoplus");y(b,S,nr,"\u2A00","\\bigodot");y(b,S,nr,"\u222E","\\oint");y(b,S,nr,"\u222F","\\oiint");y(b,S,nr,"\u2230","\\oiiint");y(b,S,nr,"\u2A06","\\bigsqcup");y(b,S,nr,"\u222B","\\smallint");y(K,S,qc,"\u2026","\\textellipsis");y(b,S,qc,"\u2026","\\mathellipsis");y(K,S,qc,"\u2026","\\ldots",!0);y(b,S,qc,"\u2026","\\ldots",!0);y(b,S,qc,"\u22EF","\\@cdots",!0);y(b,S,qc,"\u22F1","\\ddots",!0);y(b,S,O,"\u22EE","\\varvdots");y(K,S,O,"\u22EE","\\varvdots");y(b,S,Nt,"\u02CA","\\acute");y(b,S,Nt,"\u02CB","\\grave");y(b,S,Nt,"\xA8","\\ddot");y(b,S,Nt,"~","\\tilde");y(b,S,Nt,"\u02C9","\\bar");y(b,S,Nt,"\u02D8","\\breve");y(b,S,Nt,"\u02C7","\\check");y(b,S,Nt,"^","\\hat");y(b,S,Nt,"\u20D7","\\vec");y(b,S,Nt,"\u02D9","\\dot");y(b,S,Nt,"\u02DA","\\mathring");y(b,S,Ee,"\uE131","\\@imath");y(b,S,Ee,"\uE237","\\@jmath");y(b,S,O,"\u0131","\u0131");y(b,S,O,"\u0237","\u0237");y(K,S,O,"\u0131","\\i",!0);y(K,S,O,"\u0237","\\j",!0);y(K,S,O,"\xDF","\\ss",!0);y(K,S,O,"\xE6","\\ae",!0);y(K,S,O,"\u0153","\\oe",!0);y(K,S,O,"\xF8","\\o",!0);y(K,S,O,"\xC6","\\AE",!0);y(K,S,O,"\u0152","\\OE",!0);y(K,S,O,"\xD8","\\O",!0);y(K,S,Nt,"\u02CA","\\'");y(K,S,Nt,"\u02CB","\\`");y(K,S,Nt,"\u02C6","\\^");y(K,S,Nt,"\u02DC","\\~");y(K,S,Nt,"\u02C9","\\=");y(K,S,Nt,"\u02D8","\\u");y(K,S,Nt,"\u02D9","\\.");y(K,S,Nt,"\xB8","\\c");y(K,S,Nt,"\u02DA","\\r");y(K,S,Nt,"\u02C7","\\v");y(K,S,Nt,"\xA8",'\\"');y(K,S,Nt,"\u02DD","\\H");y(K,S,Nt,"\u25EF","\\textcircled");var CU={"--":!0,"---":!0,"``":!0,"''":!0};y(K,S,O,"\u2013","--",!0);y(K,S,O,"\u2013","\\textendash");y(K,S,O,"\u2014","---",!0);y(K,S,O,"\u2014","\\textemdash");y(K,S,O,"\u2018","`",!0);y(K,S,O,"\u2018","\\textquoteleft");y(K,S,O,"\u2019","'",!0);y(K,S,O,"\u2019","\\textquoteright");y(K,S,O,"\u201C","``",!0);y(K,S,O,"\u201C","\\textquotedblleft");y(K,S,O,"\u201D","''",!0);y(K,S,O,"\u201D","\\textquotedblright");y(b,S,O,"\xB0","\\degree",!0);y(K,S,O,"\xB0","\\degree");y(K,S,O,"\xB0","\\textdegree",!0);y(b,S,O,"\xA3","\\pounds");y(b,S,O,"\xA3","\\mathsterling",!0);y(K,S,O,"\xA3","\\pounds");y(K,S,O,"\xA3","\\textsterling",!0);y(b,A,O,"\u2720","\\maltese");y(K,A,O,"\u2720","\\maltese");var Xj='0123456789/@."';for(uy=0;uy<Xj.length;uy++)g3=Xj.charAt(uy),y(b,S,O,g3,g3);var g3,uy,Yj='0123456789!@*()-=+";:?/.,';for(dy=0;dy<Yj.length;dy++)v3=Yj.charAt(dy),y(K,S,O,v3,v3);var v3,dy,ky="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(py=0;py<ky.length;py++)im=ky.charAt(py),y(b,S,Ee,im,im),y(K,S,O,im,im);var im,py;y(b,A,O,"C","\u2102");y(K,A,O,"C","\u2102");y(b,A,O,"H","\u210D");y(K,A,O,"H","\u210D");y(b,A,O,"N","\u2115");y(K,A,O,"N","\u2115");y(b,A,O,"P","\u2119");y(K,A,O,"P","\u2119");y(b,A,O,"Q","\u211A");y(K,A,O,"Q","\u211A");y(b,A,O,"R","\u211D");y(K,A,O,"R","\u211D");y(b,A,O,"Z","\u2124");y(K,A,O,"Z","\u2124");y(b,S,Ee,"h","\u210E");y(K,S,Ee,"h","\u210E");var Oe="";for($r=0;$r<ky.length;$r++)Bt=ky.charAt($r),Oe=String.fromCharCode(55349,56320+$r),y(b,S,Ee,Bt,Oe),y(K,S,O,Bt,Oe),Oe=String.fromCharCode(55349,56372+$r),y(b,S,Ee,Bt,Oe),y(K,S,O,Bt,Oe),Oe=String.fromCharCode(55349,56424+$r),y(b,S,Ee,Bt,Oe),y(K,S,O,Bt,Oe),Oe=String.fromCharCode(55349,56580+$r),y(b,S,Ee,Bt,Oe),y(K,S,O,Bt,Oe),Oe=String.fromCharCode(55349,56684+$r),y(b,S,Ee,Bt,Oe),y(K,S,O,Bt,Oe),Oe=String.fromCharCode(55349,56736+$r),y(b,S,Ee,Bt,Oe),y(K,S,O,Bt,Oe),Oe=String.fromCharCode(55349,56788+$r),y(b,S,Ee,Bt,Oe),y(K,S,O,Bt,Oe),Oe=String.fromCharCode(55349,56840+$r),y(b,S,Ee,Bt,Oe),y(K,S,O,Bt,Oe),Oe=String.fromCharCode(55349,56944+$r),y(b,S,Ee,Bt,Oe),y(K,S,O,Bt,Oe),$r<26&&(Oe=String.fromCharCode(55349,56632+$r),y(b,S,Ee,Bt,Oe),y(K,S,O,Bt,Oe),Oe=String.fromCharCode(55349,56476+$r),y(b,S,Ee,Bt,Oe),y(K,S,O,Bt,Oe));var Bt,$r;Oe="\u{1D55C}";y(b,S,Ee,"k",Oe);y(K,S,O,"k",Oe);for(wa=0;wa<10;wa++)bi=wa.toString(),Oe=String.fromCharCode(55349,57294+wa),y(b,S,Ee,bi,Oe),y(K,S,O,bi,Oe),Oe=String.fromCharCode(55349,57314+wa),y(b,S,Ee,bi,Oe),y(K,S,O,bi,Oe),Oe=String.fromCharCode(55349,57324+wa),y(b,S,Ee,bi,Oe),y(K,S,O,bi,Oe),Oe=String.fromCharCode(55349,57334+wa),y(b,S,Ee,bi,Oe),y(K,S,O,bi,Oe);var bi,wa,M3="\xD0\xDE\xFE";for(my=0;my<M3.length;my++)am=M3.charAt(my),y(b,S,Ee,am,am),y(K,S,O,am,am);var am,my,fy=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],Qj=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],vse=(e,t)=>{var r=e.charCodeAt(0),o=e.charCodeAt(1),n=(r-55296)*1024+(o-56320)+65536,i=t==="math"?0:1;if(119808<=n&&n<120484){var a=Math.floor((n-119808)/26);return[fy[a][2],fy[a][i]]}else if(120782<=n&&n<=120831){var l=Math.floor((n-120782)/10);return[Qj[l][2],Qj[l][i]]}else{if(n===120485||n===120486)return[fy[0][2],fy[0][i]];if(120486<n&&n<120782)return["",""];throw new ie("Unsupported character: "+e)}},Ey=function(t,r,o){if(Mt[o][t]){var n=Mt[o][t].replace;n&&(t=n)}return{value:t,metrics:H3(t,r,o)}},Lr=function(t,r,o,n,i){var a=Ey(t,r,o),l=a.metrics;t=a.value;var c;if(l){var d=l.italic;(o==="text"||n&&n.font==="mathit")&&(d=0),c=new Ur(t,l.height,l.depth,d,l.skew,l.width,i)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+r+"' and mode '"+o+"'")),c=new Ur(t,0,0,0,0,0,i);if(n){c.maxFontSize=n.sizeMultiplier,n.style.isTight()&&c.classes.push("mtight");var p=n.getColor();p&&(c.style.color=p)}return c},W3=function(t,r,o,n){return n===void 0&&(n=[]),o.font==="boldsymbol"&&Ey(t,"Main-Bold",r).metrics?Lr(t,"Main-Bold",r,o,n.concat(["mathbf"])):t==="\\"||Mt[r][t].font==="main"?Lr(t,"Main-Regular",r,o,n):Lr(t,"AMS-Regular",r,o,n.concat(["amsrm"]))},yse=function(t,r,o,n,i){return i!=="textord"&&Ey(t,"Math-BoldItalic",r).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Ay=function(t,r,o){var n=t.mode,i=t.text,a=["mord"],l=n==="math"||n==="text"&&r.font,c=l?r.font:r.fontFamily,d="",p="";if(i.charCodeAt(0)===55349&&([d,p]=vse(i,n)),d.length>0)return Lr(i,d,n,r,a.concat(p));if(c){var m,h;if(c==="boldsymbol"){var g=yse(i,n,r,a,o);m=g.fontName,h=[g.fontClass]}else l?(m=N3[c].fontName,h=[c]):(m=hy(c,r.fontWeight,r.fontShape),h=[c,r.fontWeight,r.fontShape]);if(Ey(i,m,n).metrics)return Lr(i,m,n,r,a.concat(h));if(CU.hasOwnProperty(i)&&m.slice(0,10)==="Typewriter"){for(var w=[],$=0;$<i.length;$++)w.push(Lr(i[$],m,n,r,a.concat(h)));return Si(w)}}if(o==="mathord")return Lr(i,"Math-Italic",n,r,a.concat(["mathnormal"]));if(o==="textord"){var T=Mt[n][i]&&Mt[n][i].font;if(T==="ams"){var z=hy("amsrm",r.fontWeight,r.fontShape);return Lr(i,z,n,r,a.concat("amsrm",r.fontWeight,r.fontShape))}else if(T==="main"||!T){var P=hy("textrm",r.fontWeight,r.fontShape);return Lr(i,P,n,r,a.concat(r.fontWeight,r.fontShape))}else{var k=hy(T,r.fontWeight,r.fontShape);return Lr(i,k,n,r,a.concat(k,r.fontWeight,r.fontShape))}}else throw new Error("unexpected type: "+o+" in makeOrd")},bse=(e,t)=>{if(Sa(e.classes)!==Sa(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||e.italic!==0&&e.hasClass("mathnormal"))return!1;if(e.classes.length===1){var r=e.classes[0];if(r==="mbin"||r==="mord")return!1}for(var o of Object.keys(e.style))if(e.style[o]!==t.style[o])return!1;for(var n of Object.keys(t.style))if(e.style[n]!==t.style[n])return!1;return!0},zU=e=>{for(var t=0;t<e.length-1;t++){var r=e[t],o=e[t+1];r instanceof Ur&&o instanceof Ur&&bse(r,o)&&(r.text+=o.text,r.height=Math.max(r.height,o.height),r.depth=Math.max(r.depth,o.depth),r.italic=o.italic,e.splice(t+1,1),t--)}return e},J3=function(t){for(var r=0,o=0,n=0,i=0;i<t.children.length;i++){var a=t.children[i];a.height>r&&(r=a.height),a.depth>o&&(o=a.depth),a.maxFontSize>n&&(n=a.maxFontSize)}t.height=r,t.depth=o,t.maxFontSize=n},X=function(t,r,o,n){var i=new $a(t,r,o,n);return J3(i),i},Ta=(e,t,r,o)=>new $a(e,t,r,o),Vc=function(t,r,o){var n=X([t],[],r);return n.height=Math.max(o||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),n.style.borderBottomWidth=se(n.height),n.maxFontSize=1,n},xse=function(t,r,o,n){var i=new Zc(t,r,o,n);return J3(i),i},Si=function(t){var r=new ka(t);return J3(r),r},Gc=function(t,r){return t instanceof ka?X([],[t],r):t},wse=function(t){if(t.positionType==="individualShift"){for(var r=t.children,o=[r[0]],n=-r[0].shift-r[0].elem.depth,i=n,a=1;a<r.length;a++){var l=-r[a].shift-i-r[a].elem.depth,c=l-(r[a-1].elem.height+r[a-1].elem.depth);i=i+l,o.push({type:"kern",size:c}),o.push(r[a])}return{children:o,depth:n}}var d;if(t.positionType==="top"){for(var p=t.positionData,m=0;m<t.children.length;m++){var h=t.children[m];p-=h.type==="kern"?h.size:h.elem.height+h.elem.depth}d=p}else if(t.positionType==="bottom")d=-t.positionData;else{var g=t.children[0];if(g.type!=="elem")throw new Error('First child must have type "elem".');if(t.positionType==="shift")d=-g.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")d=-g.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:d}},dt=function(t,r){for(var{children:o,depth:n}=wse(t),i=0,a=0;a<o.length;a++){var l=o[a];if(l.type==="elem"){var c=l.elem;i=Math.max(i,c.maxFontSize,c.height)}}i+=2;var d=X(["pstrut"],[]);d.style.height=se(i);for(var p=[],m=n,h=n,g=n,w=0;w<o.length;w++){var $=o[w];if($.type==="kern")g+=$.size;else{var T=$.elem,z=$.wrapperClasses||[],P=$.wrapperStyle||{},k=X(z,[d,T],void 0,P);k.style.top=se(-i-g-T.depth),$.marginLeft&&(k.style.marginLeft=$.marginLeft),$.marginRight&&(k.style.marginRight=$.marginRight),p.push(k),g+=T.height+T.depth}m=Math.min(m,g),h=Math.max(h,g)}var M=X(["vlist"],p);M.style.height=se(h);var E;if(m<0){var D=X([],[]),F=X(["vlist"],[D]);F.style.height=se(-m);var H=X(["vlist-s"],[new Ur("\u200B")]);E=[X(["vlist-r"],[M,H]),X(["vlist-r"],[F])]}else E=[X(["vlist-r"],[M])];var Z=X(["vlist-t"],E);return E.length===2&&Z.classes.push("vlist-t2"),Z.height=h,Z.depth=-m,Z},EU=(e,t)=>{var r=X(["mspace"],[],t),o=Zt(e,t);return r.style.marginRight=se(o),r},hy=function(t,r,o){var n="";switch(t){case"amsrm":n="AMS";break;case"textrm":n="Main";break;case"textsf":n="SansSerif";break;case"texttt":n="Typewriter";break;default:n=t}var i;return r==="textbf"&&o==="textit"?i="BoldItalic":r==="textbf"?i="Bold":r==="textit"?i="Italic":i="Regular",n+"-"+i},N3={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},AU={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},MU=function(t,r){var[o,n,i]=AU[t],a=new Eo(o),l=new ro([a],{width:se(n),height:se(i),style:"width:"+se(n),viewBox:"0 0 "+1e3*n+" "+1e3*i,preserveAspectRatio:"xMinYMin"}),c=Ta(["overlay"],[l],r);return c.height=i,c.style.height=se(i),c.style.width=se(n),c},Ft={number:3,unit:"mu"},Ns={number:4,unit:"mu"},xi={number:5,unit:"mu"},_se={mord:{mop:Ft,mbin:Ns,mrel:xi,minner:Ft},mop:{mord:Ft,mop:Ft,mrel:xi,minner:Ft},mbin:{mord:Ns,mop:Ns,mopen:Ns,minner:Ns},mrel:{mord:xi,mop:xi,mopen:xi,minner:xi},mopen:{},mclose:{mop:Ft,mbin:Ns,mrel:xi,minner:Ft},mpunct:{mord:Ft,mop:Ft,mrel:xi,mopen:Ft,mclose:Ft,mpunct:Ft,minner:Ft},minner:{mord:Ft,mop:Ft,mbin:Ns,mrel:xi,mopen:Ft,mpunct:Ft,minner:Ft}},kse={mord:{mop:Ft},mop:{mord:Ft,mop:Ft},mbin:{},mrel:{},mopen:{},mclose:{mop:Ft},mpunct:{},minner:{mop:Ft}},NU={},Sy={},$y={};function me(e){for(var{type:t,names:r,props:o,handler:n,htmlBuilder:i,mathmlBuilder:a}=e,l={type:t,numArgs:o.numArgs,argTypes:o.argTypes,allowedInArgument:!!o.allowedInArgument,allowedInText:!!o.allowedInText,allowedInMath:o.allowedInMath===void 0?!0:o.allowedInMath,numOptionalArgs:o.numOptionalArgs||0,infix:!!o.infix,primitive:!!o.primitive,handler:n},c=0;c<r.length;++c)NU[r[c]]=l;t&&(i&&(Sy[t]=i),a&&($y[t]=a))}function Rs(e){var{type:t,htmlBuilder:r,mathmlBuilder:o}=e;me({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:r,mathmlBuilder:o})}var Ty=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},rr=function(t){return t.type==="ordgroup"?t.body:[t]},Sse=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),$se=new Set(["rightmost","mrel","mclose","mpunct"]),Tse={display:je.DISPLAY,text:je.TEXT,script:je.SCRIPT,scriptscript:je.SCRIPTSCRIPT},Ise={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},cr=function(t,r,o,n){n===void 0&&(n=[null,null]);for(var i=[],a=0;a<t.length;a++){var l=pt(t[a],r);if(l instanceof ka){var c=l.children;i.push(...c)}else i.push(l)}if(zU(i),!o)return i;var d=r;if(t.length===1){var p=t[0];p.type==="sizing"?d=r.havingSize(p.size):p.type==="styling"&&(d=r.havingStyle(Tse[p.style]))}var m=X([n[0]||"leftmost"],[],r),h=X([n[1]||"rightmost"],[],r),g=o==="root";return R3(i,(w,$)=>{var T=$.classes[0],z=w.classes[0];T==="mbin"&&$se.has(z)?$.classes[0]="mord":z==="mbin"&&Sse.has(T)&&(w.classes[0]="mord")},{node:m},h,g),R3(i,(w,$)=>{var T,z,P=O3($),k=O3(w),M=P&&k?w.hasClass("mtight")?(T=kse[P])==null?void 0:T[k]:(z=_se[P])==null?void 0:z[k]:null;if(M)return EU(M,d)},{node:m},h,g),i},R3=function(t,r,o,n,i){n&&t.push(n);for(var a=0;a<t.length;a++){var l=t[a],c=RU(l);if(c){R3(c.children,r,o,null,i);continue}var d=!l.hasClass("mspace");if(d){var p=r(l,o.node);p&&(o.insertAfter?o.insertAfter(p):(t.unshift(p),a++))}d?o.node=l:i&&l.hasClass("newline")&&(o.node=X(["leftmost"])),o.insertAfter=(m=>h=>{t.splice(m+1,0,h),a++})(a)}n&&t.pop()},RU=function(t){return t instanceof ka||t instanceof Zc||t instanceof $a&&t.hasClass("enclosing")?t:null},D3=function(t,r){var o=RU(t);if(o){var n=o.children;if(n.length){if(r==="right")return D3(n[n.length-1],"right");if(r==="left")return D3(n[0],"left")}}return t},O3=function(t,r){if(!t)return null;r&&(t=D3(t,r));var o=t.classes[0];return Ise[o]||null},pm=function(t,r){var o=["nulldelimiter"].concat(t.baseSizingClasses());return X(r.concat(o))},pt=function(t,r,o){if(!t)return X();if(Sy[t.type]){var n=Sy[t.type](t,r);if(o&&r.size!==o.size){n=X(r.sizingClasses(o),[n],r);var i=r.sizeMultiplier/o.sizeMultiplier;n.height*=i,n.depth*=i}return n}else throw new ie("Got group of unknown type: '"+t.type+"'")};function gy(e,t){var r=X(["base"],e,t),o=X(["strut"]);return o.style.height=se(r.height+r.depth),r.depth&&(o.style.verticalAlign=se(-r.depth)),r.children.unshift(o),r}function L3(e,t){var r=null;e.length===1&&e[0].type==="tag"&&(r=e[0].tag,e=e[0].body);var o=cr(e,t,"root"),n;o.length===2&&o[1].hasClass("tag")&&(n=o.pop());for(var i=[],a=[],l=0;l<o.length;l++)if(a.push(o[l]),o[l].hasClass("mbin")||o[l].hasClass("mrel")||o[l].hasClass("allowbreak")){for(var c=!1;l<o.length-1&&o[l+1].hasClass("mspace")&&!o[l+1].hasClass("newline");)l++,a.push(o[l]),o[l].hasClass("nobreak")&&(c=!0);c||(i.push(gy(a,t)),a=[])}else o[l].hasClass("newline")&&(a.pop(),a.length>0&&(i.push(gy(a,t)),a=[]),i.push(o[l]));a.length>0&&i.push(gy(a,t));var d;r?(d=gy(cr(r,t,!0),t),d.classes=["tag"],i.push(d)):n&&i.push(n);var p=X(["katex-html"],i);if(p.setAttribute("aria-hidden","true"),d){var m=d.children[0];m.style.height=se(p.height+p.depth),p.depth&&(m.style.verticalAlign=se(-p.depth))}return p}function DU(e){return new ka(e)}var re=class{constructor(t,r,o){this.type=t,this.attributes={},this.children=r||[],this.classes=o||[]}setAttribute(t,r){this.attributes[t]=r}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&t.setAttribute(r,this.attributes[r]);this.classes.length>0&&(t.className=Sa(this.classes));for(var o=0;o<this.children.length;o++)if(this.children[o]instanceof Ht&&this.children[o+1]instanceof Ht){for(var n=this.children[o].toText()+this.children[++o].toText();this.children[o+1]instanceof Ht;)n+=this.children[++o].toText();t.appendChild(new Ht(n).toNode())}else t.appendChild(this.children[o].toNode());return t}toMarkup(){var t="<"+this.type;for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(t+=" "+r+'="',t+=Tr(this.attributes[r]),t+='"');this.classes.length>0&&(t+=' class ="'+Tr(Sa(this.classes))+'"'),t+=">";for(var o=0;o<this.children.length;o++)t+=this.children[o].toMarkup();return t+="</"+this.type+">",t}toText(){return this.children.map(t=>t.toText()).join("")}},Ht=class{constructor(t){this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return Tr(this.toText())}toText(){return this.text}},Iy=class{constructor(t){this.width=t,t>=.05555&&t<=.05556?this.character="\u200A":t>=.1666&&t<=.1667?this.character="\u2009":t>=.2222&&t<=.2223?this.character="\u2005":t>=.2777&&t<=.2778?this.character="\u2005\u200A":t>=-.05556&&t<=-.05555?this.character="\u200A\u2063":t>=-.1667&&t<=-.1666?this.character="\u2009\u2063":t>=-.2223&&t<=-.2222?this.character="\u205F\u2063":t>=-.2778&&t<=-.2777?this.character="\u2005\u2063":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",se(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+se(this.width)+'"/>'}toText(){return this.character?this.character:" "}},Pse=new Set(["\\imath","\\jmath"]),Cse=new Set(["mrow","mtable"]),On=function(t,r,o){return Mt[r][t]&&Mt[r][t].replace&&t.charCodeAt(0)!==55349&&!(CU.hasOwnProperty(t)&&o&&(o.fontFamily&&o.fontFamily.slice(4,6)==="tt"||o.font&&o.font.slice(4,6)==="tt"))&&(t=Mt[r][t].replace),new Ht(t)},K3=function(t){return t.length===1?t[0]:new re("mrow",t)},X3=function(t,r){if(r.fontFamily==="texttt")return"monospace";if(r.fontFamily==="textsf")return r.fontShape==="textit"&&r.fontWeight==="textbf"?"sans-serif-bold-italic":r.fontShape==="textit"?"sans-serif-italic":r.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(r.fontShape==="textit"&&r.fontWeight==="textbf")return"bold-italic";if(r.fontShape==="textit")return"italic";if(r.fontWeight==="textbf")return"bold";var o=r.font;if(!o||o==="mathnormal")return null;var n=t.mode;if(o==="mathit")return"italic";if(o==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(o==="mathbf")return"bold";if(o==="mathbb")return"double-struck";if(o==="mathsfit")return"sans-serif-italic";if(o==="mathfrak")return"fraktur";if(o==="mathscr"||o==="mathcal")return"script";if(o==="mathsf")return"sans-serif";if(o==="mathtt")return"monospace";var i=t.text;if(Pse.has(i))return null;if(Mt[n][i]){var a=Mt[n][i].replace;a&&(i=a)}var l=N3[o].fontName;return H3(i,l,n)?N3[o].variant:null};function y3(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof Ht&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var r=e.children[0];return r instanceof Ht&&r.text===","}else return!1}var bn=function(t,r,o){if(t.length===1){var n=$t(t[0],r);return o&&n instanceof re&&n.type==="mo"&&(n.setAttribute("lspace","0em"),n.setAttribute("rspace","0em")),[n]}for(var i=[],a,l=0;l<t.length;l++){var c=$t(t[l],r);if(c instanceof re&&a instanceof re){if(c.type==="mtext"&&a.type==="mtext"&&c.getAttribute("mathvariant")===a.getAttribute("mathvariant")){a.children.push(...c.children);continue}else if(c.type==="mn"&&a.type==="mn"){a.children.push(...c.children);continue}else if(y3(c)&&a.type==="mn"){a.children.push(...c.children);continue}else if(c.type==="mn"&&y3(a))c.children=[...a.children,...c.children],i.pop();else if((c.type==="msup"||c.type==="msub")&&c.children.length>=1&&(a.type==="mn"||y3(a))){var d=c.children[0];d instanceof re&&d.type==="mn"&&(d.children=[...a.children,...d.children],i.pop())}else if(a.type==="mi"&&a.children.length===1){var p=a.children[0];if(p instanceof Ht&&p.text==="\u0338"&&(c.type==="mo"||c.type==="mi"||c.type==="mn")){var m=c.children[0];m instanceof Ht&&m.text.length>0&&(m.text=m.text.slice(0,1)+"\u0338"+m.text.slice(1),i.pop())}}}i.push(c),a=c}return i},Ia=function(t,r,o){return K3(bn(t,r,o))},$t=function(t,r){if(!t)return new re("mrow");if($y[t.type]){var o=$y[t.type](t,r);return o}else throw new ie("Got group of unknown type: '"+t.type+"'")};function eU(e,t,r,o,n){var i=bn(e,r),a;i.length===1&&i[0]instanceof re&&Cse.has(i[0].type)?a=i[0]:a=new re("mrow",i);var l=new re("annotation",[new Ht(t)]);l.setAttribute("encoding","application/x-tex");var c=new re("semantics",[a,l]),d=new re("math",[c]);d.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),o&&d.setAttribute("display","block");var p=n?"katex":"katex-mathml";return X([p],[d])}var zse=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],tU=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],rU=function(t,r){return r.size<2?t:zse[t-1][r.size-1]},Py=class e{constructor(t){this.style=t.style,this.color=t.color,this.size=t.size||e.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=tU[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var r={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};return Object.assign(r,t),new e(r)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:rU(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:tU[t-1]})}havingBaseStyle(t){t=t||this.style.text();var r=rU(e.BASESIZE,t);return this.size===r&&this.textSize===e.BASESIZE&&this.style===t?this:this.extend({style:t,size:r})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==e.BASESIZE?["sizing","reset-size"+this.size,"size"+e.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=fse(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}};Py.BASESIZE=6;var OU=function(t){return new Py({style:t.displayMode?je.DISPLAY:je.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},LU=function(t,r){if(r.displayMode){var o=["katex-display"];r.leqno&&o.push("leqno"),r.fleqn&&o.push("fleqn"),t=X(o,[t])}return t},Ese=function(t,r,o){var n=OU(o),i;if(o.output==="mathml")return eU(t,r,n,o.displayMode,!0);if(o.output==="html"){var a=L3(t,n);i=X(["katex"],[a])}else{var l=eU(t,r,n,o.displayMode,!1),c=L3(t,n);i=X(["katex"],[l,c])}return LU(i,o)},Ase=function(t,r,o){var n=OU(o),i=L3(t,n),a=X(["katex"],[i]);return LU(a,o)},Mse={widehat:"^",widecheck:"\u02C7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23DF",overbrace:"\u23DE",underbracket:"\u23B5",overbracket:"\u23B4",overgroup:"\u23E0",undergroup:"\u23E1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21D2",xRightarrow:"\u21D2",overleftharpoon:"\u21BC",xleftharpoonup:"\u21BC",overrightharpoon:"\u21C0",xrightharpoonup:"\u21C0",xLeftarrow:"\u21D0",xLeftrightarrow:"\u21D4",xhookleftarrow:"\u21A9",xhookrightarrow:"\u21AA",xmapsto:"\u21A6",xrightharpoondown:"\u21C1",xleftharpoondown:"\u21BD",xrightleftharpoons:"\u21CC",xleftrightharpoons:"\u21CB",xtwoheadleftarrow:"\u219E",xtwoheadrightarrow:"\u21A0",xlongequal:"=",xtofrom:"\u21C4",xrightleftarrows:"\u21C4",xrightequilibrium:"\u21CC",xleftequilibrium:"\u21CB","\\cdrightarrow":"\u2192","\\cdleftarrow":"\u2190","\\cdlongequal":"="},My=function(t){var r=new re("mo",[new Ht(Mse[t.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},Nse={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overbracket:[["leftbracketover","rightbracketover"],1.6,440],underbracket:[["leftbracketunder","rightbracketunder"],1.6,410],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Rse=new Set(["widehat","widecheck","widetilde","utilde"]),Ny=function(t,r){function o(){var l=4e5,c=t.label.slice(1);if(Rse.has(c)){var d=t,p=d.base.type==="ordgroup"?d.base.body.length:1,m,h,g;if(p>5)c==="widehat"||c==="widecheck"?(m=420,l=2364,g=.42,h=c+"4"):(m=312,l=2340,g=.34,h="tilde4");else{var w=[1,1,2,2,3,3][p];c==="widehat"||c==="widecheck"?(l=[0,1062,2364,2364,2364][w],m=[0,239,300,360,420][w],g=[0,.24,.3,.3,.36,.42][w],h=c+w):(l=[0,600,1033,2339,2340][w],m=[0,260,286,306,312][w],g=[0,.26,.286,.3,.306,.34][w],h="tilde"+w)}var $=new Eo(h),T=new ro([$],{width:"100%",height:se(g),viewBox:"0 0 "+l+" "+m,preserveAspectRatio:"none"});return{span:Ta([],[T],r),minWidth:0,height:g}}else{var z=[],P=Nse[c],[k,M,E]=P,D=E/1e3,F=k.length,H,Z;if(F===1){var W=P[3];H=["hide-tail"],Z=[W]}else if(F===2)H=["halfarrow-left","halfarrow-right"],Z=["xMinYMin","xMaxYMin"];else if(F===3)H=["brace-left","brace-center","brace-right"],Z=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
520                    `+F+" children.");for(var ke=0;ke<F;ke++){var ge=new Eo(k[ke]),xt=new ro([ge],{width:"400em",height:se(D),viewBox:"0 0 "+l+" "+E,preserveAspectRatio:Z[ke]+" slice"}),Ie=Ta([H[ke]],[xt],r);if(F===1)return{span:Ie,minWidth:M,height:D};Ie.style.height=se(D),z.push(Ie)}return{span:X(["stretchy"],z,r),minWidth:M,height:D}}}var{span:n,minWidth:i,height:a}=o();return n.height=a,n.style.height=se(a),i>0&&(n.style.minWidth=se(i)),n},Dse=function(t,r,o,n,i){var a,l=t.height+t.depth+o+n;if(/fbox|color|angl/.test(r)){if(a=X(["stretchy",r],[],i),r==="fbox"){var c=i.color&&i.getColor();c&&(a.style.borderColor=c)}}else{var d=[];/^[bx]cancel$/.test(r)&&d.push(new dm({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&d.push(new dm({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var p=new ro(d,{width:"100%",height:se(l)});a=Ta([],[p],i)}return a.height=l,a.style.height=se(l),a};function Ke(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function Ry(e){var t=Dy(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function Dy(e){return e&&(e.type==="atom"||gse.hasOwnProperty(e.type))?e:null}var jU=e=>{if(e instanceof Ur)return e;if(pse(e)&&e.children.length===1)return jU(e.children[0])},Y3=(e,t)=>{var r,o,n;e&&e.type==="supsub"?(o=Ke(e.base,"accent"),r=o.base,e.base=r,n=dse(pt(e,t)),e.base=o):(o=Ke(e,"accent"),r=o.base);var i=pt(r,t.havingCrampedStyle()),a=o.isShifty&&_i(r),l=0;if(a){var c,d;l=(c=(d=jU(i))==null?void 0:d.skew)!=null?c:0}var p=o.label==="\\c",m=p?i.height+i.depth:Math.min(i.height,t.fontMetrics().xHeight),h;if(o.isStretchy)h=Ny(o,t),h=dt({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"elem",elem:h,wrapperClasses:["svg-align"],wrapperStyle:l>0?{width:"calc(100% - "+se(2*l)+")",marginLeft:se(2*l)}:void 0}]});else{var g,w;o.label==="\\vec"?(g=MU("vec",t),w=AU.vec[1]):(g=Ay({type:"textord",mode:o.mode,text:o.label},t,"textord"),g=use(g),g.italic=0,w=g.width,p&&(m+=g.depth)),h=X(["accent-body"],[g]);var $=o.label==="\\textcircled";$&&(h.classes.push("accent-full"),m=i.height);var T=l;$||(T-=w/2),h.style.left=se(T),o.label==="\\textcircled"&&(h.style.top=".2em"),h=dt({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:-m},{type:"elem",elem:h}]})}var z=X(["mord","accent"],[h],t);return n?(n.children[0]=z,n.height=Math.max(z.height,n.height),n.classes[0]="mord",n):z},UU=(e,t)=>{var r=e.isStretchy?My(e.label):new re("mo",[On(e.label,e.mode)]),o=new re("mover",[$t(e.base,t),r]);return o.setAttribute("accent","true"),o},Ose=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));me({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var r=Ty(t[0]),o=!Ose.test(e.funcName),n=!o||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:o,isShifty:n,base:r}},htmlBuilder:Y3,mathmlBuilder:UU});me({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var r=t[0],o=e.parser.mode;return o==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),o="text"),{type:"accent",mode:o,label:e.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:Y3,mathmlBuilder:UU});me({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:o}=e,n=t[0];return{type:"accentUnder",mode:r.mode,label:o,base:n}},htmlBuilder:(e,t)=>{var r=pt(e.base,t),o=Ny(e,t),n=e.label==="\\utilde"?.12:0,i=dt({positionType:"top",positionData:r.height,children:[{type:"elem",elem:o,wrapperClasses:["svg-align"]},{type:"kern",size:n},{type:"elem",elem:r}]});return X(["mord","accentunder"],[i],t)},mathmlBuilder:(e,t)=>{var r=My(e.label),o=new re("munder",[$t(e.base,t),r]);return o.setAttribute("accentunder","true"),o}});var vy=e=>{var t=new re("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};me({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:o,funcName:n}=e;return{type:"xArrow",mode:o.mode,label:n,body:t[0],below:r[0]}},htmlBuilder(e,t){var r=t.style,o=t.havingStyle(r.sup()),n=Gc(pt(e.body,o,t),t),i=e.label.slice(0,2)==="\\x"?"x":"cd";n.classes.push(i+"-arrow-pad");var a;e.below&&(o=t.havingStyle(r.sub()),a=Gc(pt(e.below,o,t),t),a.classes.push(i+"-arrow-pad"));var l=Ny(e,t),c=-t.fontMetrics().axisHeight+.5*l.height,d=-t.fontMetrics().axisHeight-.5*l.height-.111;(n.depth>.25||e.label==="\\xleftequilibrium")&&(d-=n.depth);var p;if(a){var m=-t.fontMetrics().axisHeight+a.height+.5*l.height+.111;p=dt({positionType:"individualShift",children:[{type:"elem",elem:n,shift:d},{type:"elem",elem:l,shift:c},{type:"elem",elem:a,shift:m}]})}else p=dt({positionType:"individualShift",children:[{type:"elem",elem:n,shift:d},{type:"elem",elem:l,shift:c}]});return p.children[0].children[0].children[1].classes.push("svg-align"),X(["mrel","x-arrow"],[p],t)},mathmlBuilder(e,t){var r=My(e.label);r.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var o;if(e.body){var n=vy($t(e.body,t));if(e.below){var i=vy($t(e.below,t));o=new re("munderover",[r,i,n])}else o=new re("mover",[r,n])}else if(e.below){var a=vy($t(e.below,t));o=new re("munder",[r,a])}else o=vy(),o=new re("mover",[r,o]);return o}});function BU(e,t){var r=cr(e.body,t,!0);return X([e.mclass],r,t)}function FU(e,t){var r,o=bn(e.body,t);return e.mclass==="minner"?r=new re("mpadded",o):e.mclass==="mord"?e.isCharacterBox?(r=o[0],r.type="mi"):r=new re("mi",o):(e.isCharacterBox?(r=o[0],r.type="mo"):r=new re("mo",o),e.mclass==="mbin"?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):e.mclass==="mpunct"?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(r.attributes.lspace="0em",r.attributes.rspace="0em"):e.mclass==="minner"&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}me({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:r,funcName:o}=e,n=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+o.slice(5),body:rr(n),isCharacterBox:_i(n)}},htmlBuilder:BU,mathmlBuilder:FU});var Oy=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};me({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:r}=e;return{type:"mclass",mode:r.mode,mclass:Oy(t[0]),body:rr(t[1]),isCharacterBox:_i(t[1])}}});me({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:r,funcName:o}=e,n=t[1],i=t[0],a;o!=="\\stackrel"?a=Oy(n):a="mrel";var l={type:"op",mode:n.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:o!=="\\stackrel",body:rr(n)},c={type:"supsub",mode:i.mode,base:l,sup:o==="\\underset"?null:i,sub:o==="\\underset"?i:null};return{type:"mclass",mode:r.mode,mclass:a,body:[c],isCharacterBox:_i(c)}},htmlBuilder:BU,mathmlBuilder:FU});me({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:Oy(t[0]),body:rr(t[0])}},htmlBuilder(e,t){var r=cr(e.body,t,!0),o=X([e.mclass],r,t);return o.style.textShadow="0.02em 0.01em 0.04px",o},mathmlBuilder(e,t){var r=bn(e.body,t),o=new re("mstyle",r);return o.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),o}});var Lse={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},nU=()=>({type:"styling",body:[],mode:"math",style:"display"}),oU=e=>e.type==="textord"&&e.text==="@",jse=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function Use(e,t,r){var o=Lse[e];switch(o){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(o,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var n=r.callFunction("\\\\cdleft",[t[0]],[]),i={type:"atom",text:o,mode:"math",family:"rel"},a=r.callFunction("\\Big",[i],[]),l=r.callFunction("\\\\cdright",[t[1]],[]),c={type:"ordgroup",mode:"math",body:[n,a,l]};return r.callFunction("\\\\cdparent",[c],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var d={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[d],[])}default:return{type:"textord",text:" ",mode:"math"}}}function Bse(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var r=e.fetch().text;if(r==="&"||r==="\\\\")e.consume();else if(r==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new ie("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var o=[],n=[o],i=0;i<t.length;i++){for(var a=t[i],l=nU(),c=0;c<a.length;c++)if(!oU(a[c]))l.body.push(a[c]);else{o.push(l),c+=1;var d=Ry(a[c]).text,p=new Array(2);if(p[0]={type:"ordgroup",mode:"math",body:[]},p[1]={type:"ordgroup",mode:"math",body:[]},!"=|.".includes(d))if("<>AV".includes(d))for(var m=0;m<2;m++){for(var h=!0,g=c+1;g<a.length;g++){if(jse(a[g],d)){h=!1,c=g;break}if(oU(a[g]))throw new ie("Missing a "+d+" character to complete a CD arrow.",a[g]);p[m].body.push(a[g])}if(h)throw new ie("Missing a "+d+" character to complete a CD arrow.",a[c])}else throw new ie('Expected one of "<>AV=|." after @',a[c]);var w=Use(d,p,e),$={type:"styling",body:[w],mode:"math",style:"display"};o.push($),l=nU()}i%2===0?o.push(l):o.shift(),o=[],n.push(o)}e.gullet.endGroup(),e.gullet.endGroup();var T=new Array(n[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:n,arraystretch:1,addJot:!0,rowGaps:[null],cols:T,colSeparationType:"CD",hLinesBeforeRow:new Array(n.length+1).fill([])}}me({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:o}=e;return{type:"cdlabel",mode:r.mode,side:o.slice(4),label:t[0]}},htmlBuilder(e,t){var r=t.havingStyle(t.style.sup()),o=Gc(pt(e.label,r,t),t);return o.classes.push("cd-label-"+e.side),o.style.bottom=se(.8-o.depth),o.height=0,o.depth=0,o},mathmlBuilder(e,t){var r=new re("mrow",[$t(e.label,t)]);return r=new re("mpadded",[r]),r.setAttribute("width","0"),e.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new re("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}});me({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:r}=e;return{type:"cdlabelparent",mode:r.mode,fragment:t[0]}},htmlBuilder(e,t){var r=Gc(pt(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(e,t){return new re("mrow",[$t(e.fragment,t)])}});me({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:r}=e,o=Ke(t[0],"ordgroup"),n=o.body,i="",a=0;a<n.length;a++){var l=Ke(n[a],"textord");i+=l.text}var c=parseInt(i),d;if(isNaN(c))throw new ie("\\@char has non-numeric argument "+i);if(c<0||c>=1114111)throw new ie("\\@char with invalid code point "+i);return c<=65535?d=String.fromCharCode(c):(c-=65536,d=String.fromCharCode((c>>10)+55296,(c&1023)+56320)),{type:"textord",mode:r.mode,text:d}}});var ZU=(e,t)=>{var r=cr(e.body,t.withColor(e.color),!1);return Si(r)},VU=(e,t)=>{var r=bn(e.body,t.withColor(e.color)),o=new re("mstyle",r);return o.setAttribute("mathcolor",e.color),o};me({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:r}=e,o=Ke(t[0],"color-token").color,n=t[1];return{type:"color",mode:r.mode,color:o,body:rr(n)}},htmlBuilder:ZU,mathmlBuilder:VU});me({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:r,breakOnTokenText:o}=e,n=Ke(t[0],"color-token").color;r.gullet.macros.set("\\current@color",n);var i=r.parseExpression(!0,o);return{type:"color",mode:r.mode,color:n,body:i}},htmlBuilder:ZU,mathmlBuilder:VU});me({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,r){var{parser:o}=e,n=o.gullet.future().text==="["?o.parseSizeGroup(!0):null,i=!o.settings.displayMode||!o.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:o.mode,newLine:i,size:n&&Ke(n,"size").value}},htmlBuilder(e,t){var r=X(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=se(Zt(e.size,t)))),r},mathmlBuilder(e,t){var r=new re("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",se(Zt(e.size,t)))),r}});var j3={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},GU=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new ie("Expected a control sequence",e);return t},Fse=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},qU=(e,t,r,o)=>{var n=e.gullet.macros.get(r.text);n==null&&(r.noexpand=!0,n={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,n,o)};me({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:r}=e;t.consumeSpaces();var o=t.fetch();if(j3[o.text])return(r==="\\global"||r==="\\\\globallong")&&(o.text=j3[o.text]),Ke(t.parseFunction(),"internal");throw new ie("Invalid token after macro prefix",o)}});me({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,o=t.gullet.popToken(),n=o.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(n))throw new ie("Expected a control sequence",o);for(var i=0,a,l=[[]];t.gullet.future().text!=="{";)if(o=t.gullet.popToken(),o.text==="#"){if(t.gullet.future().text==="{"){a=t.gullet.future(),l[i].push("{");break}if(o=t.gullet.popToken(),!/^[1-9]$/.test(o.text))throw new ie('Invalid argument number "'+o.text+'"');if(parseInt(o.text)!==i+1)throw new ie('Argument number "'+o.text+'" out of order');i++,l.push([])}else{if(o.text==="EOF")throw new ie("Expected a macro definition");l[i].push(o.text)}var{tokens:c}=t.gullet.consumeArg();return a&&c.unshift(a),(r==="\\edef"||r==="\\xdef")&&(c=t.gullet.expandTokens(c),c.reverse()),t.gullet.macros.set(n,{tokens:c,numArgs:i,delimiters:l},r===j3[r]),{type:"internal",mode:t.mode}}});me({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,o=GU(t.gullet.popToken());t.gullet.consumeSpaces();var n=Fse(t);return qU(t,o,n,r==="\\\\globallet"),{type:"internal",mode:t.mode}}});me({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,o=GU(t.gullet.popToken()),n=t.gullet.popToken(),i=t.gullet.popToken();return qU(t,o,i,r==="\\\\globalfuture"),t.gullet.pushToken(i),t.gullet.pushToken(n),{type:"internal",mode:t.mode}}});var sm=function(t,r,o){var n=Mt.math[t]&&Mt.math[t].replace,i=H3(n||t,r,o);if(!i)throw new Error("Unsupported symbol "+t+" and font size "+r+".");return i},Q3=function(t,r,o,n){var i=o.havingBaseStyle(r),a=X(n.concat(i.sizingClasses(o)),[t],o),l=i.sizeMultiplier/o.sizeMultiplier;return a.height*=l,a.depth*=l,a.maxFontSize=i.sizeMultiplier,a},HU=function(t,r,o){var n=r.havingBaseStyle(o),i=(1-r.sizeMultiplier/n.sizeMultiplier)*r.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=se(i),t.height-=i,t.depth+=i},Zse=function(t,r,o,n,i,a){var l=Lr(t,"Main-Regular",i,n),c=Q3(l,r,n,a);return o&&HU(c,n,r),c},Vse=function(t,r,o,n){return Lr(t,"Size"+r+"-Regular",o,n)},WU=function(t,r,o,n,i,a){var l=Vse(t,r,i,n),c=Q3(X(["delimsizing","size"+r],[l],n),je.TEXT,n,a);return o&&HU(c,n,je.TEXT),c},b3=function(t,r,o){var n;r==="Size1-Regular"?n="delim-size1":n="delim-size4";var i=X(["delimsizinginner",n],[X([],[Lr(t,r,o)])]);return{type:"elem",elem:i}},x3=function(t,r,o){var n=zo["Size4-Regular"][t.charCodeAt(0)]?zo["Size4-Regular"][t.charCodeAt(0)][4]:zo["Size1-Regular"][t.charCodeAt(0)][4],i=new Eo("inner",ise(t,Math.round(1e3*r))),a=new ro([i],{width:se(n),height:se(r),style:"width:"+se(n),viewBox:"0 0 "+1e3*n+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),l=Ta([],[a],o);return l.height=r,l.style.height=se(r),l.style.width=se(n),{type:"elem",elem:l}},U3=.008,yy={type:"kern",size:-1*U3},Gse=new Set(["|","\\lvert","\\rvert","\\vert"]),qse=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),JU=function(t,r,o,n,i,a){var l,c,d,p,m="",h=0;l=d=p=t,c=null;var g="Size1-Regular";t==="\\uparrow"?d=p="\u23D0":t==="\\Uparrow"?d=p="\u2016":t==="\\downarrow"?l=d="\u23D0":t==="\\Downarrow"?l=d="\u2016":t==="\\updownarrow"?(l="\\uparrow",d="\u23D0",p="\\downarrow"):t==="\\Updownarrow"?(l="\\Uparrow",d="\u2016",p="\\Downarrow"):Gse.has(t)?(d="\u2223",m="vert",h=333):qse.has(t)?(d="\u2225",m="doublevert",h=556):t==="["||t==="\\lbrack"?(l="\u23A1",d="\u23A2",p="\u23A3",g="Size4-Regular",m="lbrack",h=667):t==="]"||t==="\\rbrack"?(l="\u23A4",d="\u23A5",p="\u23A6",g="Size4-Regular",m="rbrack",h=667):t==="\\lfloor"||t==="\u230A"?(d=l="\u23A2",p="\u23A3",g="Size4-Regular",m="lfloor",h=667):t==="\\lceil"||t==="\u2308"?(l="\u23A1",d=p="\u23A2",g="Size4-Regular",m="lceil",h=667):t==="\\rfloor"||t==="\u230B"?(d=l="\u23A5",p="\u23A6",g="Size4-Regular",m="rfloor",h=667):t==="\\rceil"||t==="\u2309"?(l="\u23A4",d=p="\u23A5",g="Size4-Regular",m="rceil",h=667):t==="("||t==="\\lparen"?(l="\u239B",d="\u239C",p="\u239D",g="Size4-Regular",m="lparen",h=875):t===")"||t==="\\rparen"?(l="\u239E",d="\u239F",p="\u23A0",g="Size4-Regular",m="rparen",h=875):t==="\\{"||t==="\\lbrace"?(l="\u23A7",c="\u23A8",p="\u23A9",d="\u23AA",g="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(l="\u23AB",c="\u23AC",p="\u23AD",d="\u23AA",g="Size4-Regular"):t==="\\lgroup"||t==="\u27EE"?(l="\u23A7",p="\u23A9",d="\u23AA",g="Size4-Regular"):t==="\\rgroup"||t==="\u27EF"?(l="\u23AB",p="\u23AD",d="\u23AA",g="Size4-Regular"):t==="\\lmou
520stache"||t==="\u23B0"?(l="\u23A7",p="\u23AD",d="\u23AA",g="Size4-Regular"):(t==="\\rmoustache"||t==="\u23B1")&&(l="\u23AB",p="\u23A9",d="\u23AA",g="Size4-Regular");var w=sm(l,g,i),$=w.height+w.depth,T=sm(d,g,i),z=T.height+T.depth,P=sm(p,g,i),k=P.height+P.depth,M=0,E=1;if(c!==null){var D=sm(c,g,i);M=D.height+D.depth,E=2}var F=$+k+M,H=Math.max(0,Math.ceil((r-F)/(E*z))),Z=F+H*E*z,W=n.fontMetrics().axisHeight;o&&(W*=n.sizeMultiplier);var ke=Z/2-W,ge=[];if(m.length>0){var xt=Z-$-k,Ie=Math.round(Z*1e3),We=ase(m,Math.round(xt*1e3)),we=new Eo(m,We),xn=se(h/1e3),fe=se(Ie/1e3),Ze=new ro([we],{width:xn,height:fe,viewBox:"0 0 "+h+" "+Ie}),st=Ta([],[Ze],n);st.height=Ie/1e3,st.style.width=xn,st.style.height=fe,ge.push({type:"elem",elem:st})}else{if(ge.push(b3(p,g,i)),ge.push(yy),c===null){var lt=Z-$-k+2*U3;ge.push(x3(d,lt,n))}else{var _e=(Z-$-k-M)/2+2*U3;ge.push(x3(d,_e,n)),ge.push(yy),ge.push(b3(c,g,i)),ge.push(yy),ge.push(x3(d,_e,n))}ge.push(yy),ge.push(b3(l,g,i))}var ve=n.havingBaseStyle(je.TEXT),de=dt({positionType:"bottom",positionData:ke,children:ge});return Q3(X(["delimsizing","mult"],[de],ve),je.TEXT,n,a)},w3=80,_3=.08,k3=function(t,r,o,n,i){var a=ose(t,n,o),l=new Eo(t,a),c=new ro([l],{width:"400em",height:se(r),viewBox:"0 0 400000 "+o,preserveAspectRatio:"xMinYMin slice"});return Ta(["hide-tail"],[c],i)},Hse=function(t,r){var o=r.havingBaseSizing(),n=eB("\\surd",t*o.sizeMultiplier,QU,o),i=o.sizeMultiplier,a=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),l,c=0,d=0,p=0,m;return n.type==="small"?(p=1e3+1e3*a+w3,t<1?i=1:t<1.4&&(i=.7),c=(1+a+_3)/i,d=(1+a)/i,l=k3("sqrtMain",c,p,a,r),l.style.minWidth="0.853em",m=.833/i):n.type==="large"?(p=(1e3+w3)*lm[n.size],d=(lm[n.size]+a)/i,c=(lm[n.size]+a+_3)/i,l=k3("sqrtSize"+n.size,c,p,a,r),l.style.minWidth="1.02em",m=1/i):(c=t+a+_3,d=t+a,p=Math.floor(1e3*t+a)+w3,l=k3("sqrtTall",c,p,a,r),l.style.minWidth="0.742em",m=1.056),l.height=d,l.style.height=se(c),{span:l,advanceWidth:m,ruleWidth:(r.fontMetrics().sqrtRuleThickness+a)*i}},KU=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"]),Wse=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"]),XU=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),lm=[0,1.2,1.8,2.4,3],YU=function(t,r,o,n,i){if(t==="<"||t==="\\lt"||t==="\u27E8"?t="\\langle":(t===">"||t==="\\gt"||t==="\u27E9")&&(t="\\rangle"),KU.has(t)||XU.has(t))return WU(t,r,!1,o,n,i);if(Wse.has(t))return JU(t,lm[r],!1,o,n,i);throw new ie("Illegal delimiter: '"+t+"'")},Jse=[{type:"small",style:je.SCRIPTSCRIPT},{type:"small",style:je.SCRIPT},{type:"small",style:je.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Kse=[{type:"small",style:je.SCRIPTSCRIPT},{type:"small",style:je.SCRIPT},{type:"small",style:je.TEXT},{type:"stack"}],QU=[{type:"small",style:je.SCRIPTSCRIPT},{type:"small",style:je.SCRIPT},{type:"small",style:je.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Xse=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";var r=t.type;throw new Error("Add support for delim type '"+r+"' here.")},eB=function(t,r,o,n){for(var i=Math.min(2,3-n.style.size),a=i;a<o.length;a++){var l=o[a];if(l.type==="stack")break;var c=sm(t,Xse(l),"math"),d=c.height+c.depth;if(l.type==="small"){var p=n.havingBaseStyle(l.style);d*=p.sizeMultiplier}if(d>r)return l}return o[o.length-1]},B3=function(t,r,o,n,i,a){t==="<"||t==="\\lt"||t==="\u27E8"?t="\\langle":(t===">"||t==="\\gt"||t==="\u27E9")&&(t="\\rangle");var l;XU.has(t)?l=Jse:KU.has(t)?l=QU:l=Kse;var c=eB(t,r,l,n);return c.type==="small"?Zse(t,c.style,o,n,i,a):c.type==="large"?WU(t,c.size,o,n,i,a):JU(t,r,o,n,i,a)},S3=function(t,r,o,n,i,a){var l=n.fontMetrics().axisHeight*n.sizeMultiplier,c=901,d=5/n.fontMetrics().ptPerEm,p=Math.max(r-l,o+l),m=Math.max(p/500*c,2*p-d);return B3(t,m,!0,n,i,a)},iU={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Yse=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27E8","\\rangle","\u27E9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."]);function Ly(e,t){var r=Dy(e);if(r&&Yse.has(r.text))return r;
vendor: 7,530 bytes, line 520
520throw r?new ie("Invalid delimiter '"+r.text+"' after '"+t.funcName+"'",e):new ie("Invalid delimiter type '"+e.type+"'",e)}me({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var r=Ly(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:iU[e.funcName].size,mclass:iU[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>e.delim==="."?X([e.mclass]):YU(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(On(e.delim,e.mode));var r=new re("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var o=se(lm[e.size]);return r.setAttribute("minsize",o),r.setAttribute("maxsize",o),r}});function aU(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}me({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=e.parser.gullet.macros.get("\\current@color");if(r&&typeof r!="string")throw new ie("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:Ly(t[0],e).text,color:r}}});me({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=Ly(t[0],e),o=e.parser;++o.leftrightDepth;var n=o.parseExpression(!1);--o.leftrightDepth,o.expect("\\right",!1);var i=Ke(o.parseFunction(),"leftright-right");return{type:"leftright",mode:o.mode,body:n,left:r.text,right:i.delim,rightColor:i.color}},htmlBuilder:(e,t)=>{aU(e);for(var r=cr(e.body,t,!0,["mopen","mclose"]),o=0,n=0,i=!1,a=0;a<r.length;a++)r[a].isMiddle?i=!0:(o=Math.max(r[a].height,o),n=Math.max(r[a].depth,n));o*=t.sizeMultiplier,n*=t.sizeMultiplier;var l;if(e.left==="."?l=pm(t,["mopen"]):l=S3(e.left,o,n,t,e.mode,["mopen"]),r.unshift(l),i)for(var c=1;c<r.length;c++){var d=r[c],p=d.isMiddle;p&&(r[c]=S3(p.delim,o,n,p.options,e.mode,[]))}var m;if(e.right===".")m=pm(t,["mclose"]);else{var h=e.rightColor?t.withColor(e.rightColor):t;m=S3(e.right,o,n,h,e.mode,["mclose"])}return r.push(m),X(["minner"],r,t)},mathmlBuilder:(e,t)=>{aU(e);var r=bn(e.body,t);if(e.left!=="."){var o=new re("mo",[On(e.left,e.mode)]);o.setAttribute("fence","true"),r.unshift(o)}if(e.right!=="."){var n=new re("mo",[On(e.right,e.mode)]);n.setAttribute("fence","true"),e.rightColor&&n.setAttribute("mathcolor",e.rightColor),r.push(n)}return K3(r)}});me({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=Ly(t[0],e);if(!e.parser.leftrightDepth)throw new ie("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{var r;if(e.delim===".")r=pm(t,[]);else{r=YU(e.delim,1,t,e.mode,[]);var o={delim:e.delim,options:t};r.isMiddle=o}return r},mathmlBuilder:(e,t)=>{var r=e.delim==="\\vert"||e.delim==="|"?On("|","text"):On(e.delim,e.mode),o=new re("mo",[r]);return o.setAttribute("fence","true"),o.setAttribute("lspace","0.05em"),o.setAttribute("rspace","0.05em"),o}});var jy=(e,t)=>{var r=Gc(pt(e.body,t),t),o=e.label.slice(1),n=t.sizeMultiplier,i,a=0,l=_i(e.body);if(o==="sout")i=X(["stretchy","sout"]),i.height=t.fontMetrics().defaultRuleThickness/n,a=-.5*t.fontMetrics().xHeight;else if(o==="phase"){var c=Zt({number:.6,unit:"pt"},t),d=Zt({number:.35,unit:"ex"},t),p=t.havingBaseSizing();n=n/p.sizeMultiplier;var m=r.height+r.depth+c+d;r.style.paddingLeft=se(m/2+c);var h=Math.floor(1e3*m*n),g=rse(h),w=new ro([new Eo("phase",g)],{width:"400em",height:se(h/1e3),viewBox:"0 0 400000 "+h,preserveAspectRatio:"xMinYMin slice"});i=Ta(["hide-tail"],[w],t),i.style.height=se(m),a=r.depth+c+d}else{/cancel/.test(o)?l||r.classes.push("cancel-pad"):o==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var $=0,T=0,z=0;/box/.test(o)?(z=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),$=t.fontMetrics().fboxsep+(o==="colorbox"?0:z),T=$):o==="angl"?(z=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),$=4*z,T=Math.max(0,.25-r.depth)):($=l?.2:0,T=$),i=Dse(r,o,$,T,t),/fbox|boxed|fcolorbox/.test(o)?(i.style.borderStyle="solid",i.style.borderWidth=se(z)):o==="angl"&&z!==.049&&(i.style.borderTopWidth=se(z),i.style.borderRightWidth=se(z)),a=r.depth+T,e.backgroundColor&&(i.style.backgroundColor=e.backgroundColor,e.borderColor&&(i.style.borderColor=e.borderColor))}var P;if(e.backgroundColor)P=dt({positionType:"individualShift",children:[{type:"elem",elem:i,shift:a},{type:"elem",elem:r,shift:0}]});else{var k=/cancel|phase/.test(o)?["svg-align"]:[];P=dt({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:i,shift:a,wrapperClasses:k}]})}return/cancel/.test(o)&&(P.height=r.height,P.depth=r.depth),/cancel/.test(o)&&!l?X(["mord","cancel-lap"],[P],t):X(["mord"],[P],t)},Uy=(e,t)=>{var r=0,o=new re(e.label.includes("colorbox")?"mpadded":"menclose",[$t(e.body,t)]);switch(e.label){case"\\cancel":o.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":o.setAttribute("notation","downdiagonalstrike");break;case"\\phase":o.setAttribute("notation","phasorangle");break;case"\\sout":o.setAttribute("notation","horizontalstrike");break;case"\\fbox":o.setAttribute("notation","box");break;case"\\angl":o.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,o.setAttribute("width","+"+2*r+"pt"),o.setAttribute("height","+"+2*r+"pt"),o.setAttribute("lspace",r+"pt"),o.setAttribute("voffset",r+"pt"),e.label==="\\fcolorbox"){var n=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);o.setAttribute("style","border: "+se(n)+" solid "+e.borderColor)}break;case"\\xcancel":o.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&o.setAttribute("mathbackground",e.backgroundColor),o};me({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,r){var{parser:o,funcName:n}=e,i=Ke(t[0],"color-token").color,a=t[1];return{type:"enclose",mode:o.mode,label:n,backgroundColor:i,body:a}},htmlBuilder:jy,mathmlBuilder:Uy});me({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,r){var{parser:o,funcName:n}=e,i=Ke(t[0],"color-token").color,a=Ke(t[1],"color-token").color,l=t[2];return{type:"enclose",mode:o.mode,label:n,backgroundColor:a,borderColor:i,body:l}},htmlBuilder:jy,mathmlBuilder:Uy});me({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\fbox",body:t[0]}}});me({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\phase"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:o}=e,n=t[0];return{type:"enclose",mode:r.mode,label:o,body:n}},htmlBuilder:jy,mathmlBuilder:Uy});me({type:"enclose",names:["\\sout"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r,funcName:o}=e;r.mode==="math"&&r.settings.reportNonstrict("mathVsSout","LaTeX's \\sout works only in text mode");var n=t[0];return{type:"enclose",mode:r.mode,label:o,body:n}},htmlBuilder:jy,mathmlBuilder:Uy});me({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\angl",body:t[0]}}});var tB={};function Ao(e){for(var{type:t,names:r,props:o,handler:n,htmlBuilder:i,mathmlBuilder:
vendor: 2,738 bytes, line 520
520a}=e,l={type:t,numArgs:o.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:n},c=0;c<r.length;++c)tB[r[c]]=l;i&&(Sy[t]=i),a&&($y[t]=a)}var rB={};function C(e,t){rB[e]=t}var tn=class e{constructor(t,r,o){this.lexer=t,this.start=r,this.end=o}static range(t,r){return r?!t||!t.loc||!r.loc||t.loc.lexer!==r.loc.lexer?null:new e(t.loc.lexer,t.loc.start,r.loc.end):t&&t.loc}},vn=class e{constructor(t,r){this.text=t,this.loc=r}range(t,r){return new e(r,tn.range(this,t))}};function sU(e){var t=[];e.consumeSpaces();var r=e.fetch().text;for(r==="\\relax"&&(e.consume(),e.consumeSpaces(),r=e.fetch().text);r==="\\hline"||r==="\\hdashline";)e.consume(),t.push(r==="\\hdashline"),e.consumeSpaces(),r=e.fetch().text;return t}var By=e=>{var t=e.parser.settings;if(!t.displayMode)throw new ie("{"+e.envName+"} can be used only in display mode.")},Qse=new Set(["gather","gather*"]);function e7(e){if(!e.includes("ed"))return!e.includes("*")}function Pa(e,t,r){var{hskipBeforeAndAfter:o,addJot:n,cols:i,arraystretch:a,colSeparationType:l,autoTag:c,singleRow:d,emptySingleRow:p,maxNumCols:m,leqno:h}=t;if(e.gullet.beginGroup(),d||e.gullet.macros.set("\\cr","\\\\\\relax"),!a){var g=e.gullet.expandMacroAsText("\\arraystretch");if(g==null)a=1;else if(a=parseFloat(g),!a||a<0)throw new ie("Invalid \\arraystretch: "+g)}e.gullet.beginGroup();var w=[],$=[w],T=[],z=[],P=c!=null?[]:void 0;function k(){c&&e.gullet.macros.set("\\@eqnsw","1",!0)}function M(){P&&(e.gullet.macros.get("\\df@tag")?(P.push(e.subparse([new vn("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):P.push(!!c&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(k(),z.push(sU(e));;){var E=e.parseExpression(!1,d?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup();var D={type:"ordgroup",mode:e.mode,body:E};r&&(D={type:"styling",mode:e.mode,style:r,body:[D]}),w.push(D);var F=e.fetch().text;if(F==="&"){if(m&&w.length===m){if(d||l)throw new ie("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(F==="\\end"){M(),w.length===1&&D.type==="styling"&&D.body.length===1&&D.body[0].type==="ordgroup"&&D.body[0].body.length===0&&($.length>1||!p)&&$.pop(),z.length<$.length+1&&z.push([]);break}else if(F==="\\\\"){e.consume();var H=void 0;e.gullet.future().text!==" "&&(H=e.parseSizeGroup(!0)),T.push(H?H.value:null),M(),z.push(sU(e)),w=[],$.push(w),k()}else throw new ie("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:n,arraystretch:a,body:$,cols:i,rowGaps:T,hskipBeforeAndAfter:o,hLinesBeforeRow:z,colSeparationType:l,tags:P,leqno:h}}function t7(e){return e.slice(0,1)==="d"?"display":"text"}
vendor: 49,664 bytes, lines 520-524
520var Mo=function(t,r){var o,n,i=t.body.length,a=t.hLinesBeforeRow,l=0,c=new Array(i),d=[],p=Math.max(r.fontMetrics().arrayRuleWidth,r.minRuleThickness),m=1/r.fontMetrics().ptPerEm,h=5*m;if(t.colSeparationType&&t.colSeparationType==="small"){var g=r.havingStyle(je.SCRIPT).sizeMultiplier;h=.2778*(g/r.sizeMultiplier)}var w=t.colSeparationType==="CD"?Zt({number:3,unit:"ex"},r):12*m,$=3*m,T=t.arraystretch*w,z=.7*T,P=.3*T,k=0;function M(Na){for(var Ra=0;Ra<Na.length;++Ra)Ra>0&&(k+=.25),d.push({pos:k,isDashed:Na[Ra]})}for(M(a[0]),o=0;o<t.body.length;++o){var E=t.body[o],D=z,F=P;l<E.length&&(l=E.length);var H=new Array(E.length);for(n=0;n<E.length;++n){var Z=pt(E[n],r);F<Z.depth&&(F=Z.depth),D<Z.height&&(D=Z.height),H[n]=Z}var W=t.rowGaps[o],ke=0;W&&(ke=Zt(W,r),ke>0&&(ke+=P,F<ke&&(F=ke),ke=0)),t.addJot&&o<t.body.length-1&&(F+=$),H.height=D,H.depth=F,k+=D,H.pos=k,k+=F+ke,c[o]=H,M(a[o+1])}var ge=k/2+r.fontMetrics().axisHeight,xt=t.cols||[],Ie=[],We,we,xn=[];if(t.tags&&t.tags.some(Na=>Na))for(o=0;o<i;++o){var fe=c[o],Ze=fe.pos-ge,st=t.tags[o],lt=void 0;st===!0?lt=X(["eqn-num"],[],r):st===!1?lt=X([],[],r):lt=X([],cr(st,r,!0),r),lt.depth=fe.depth,lt.height=fe.height,xn.push({type:"elem",elem:lt,shift:Ze})}for(n=0,we=0;n<l||we<xt.length;++n,++we){for(var _e,ve=xt[we],de=!0;((nt=ve)==null?void 0:nt.type)==="separator";){var nt;if(de||(We=X(["arraycolsep"],[]),We.style.width=se(r.fontMetrics().doubleRuleSep),Ie.push(We)),ve.separator==="|"||ve.separator===":"){var Dt=ve.separator==="|"?"solid":"dashed",or=X(["vertical-separator"],[],r);or.style.height=se(k),or.style.borderRightWidth=se(p),or.style.borderRightStyle=Dt,or.style.margin="0 "+se(-p/2);var Vt=k-ge;Vt&&(or.style.verticalAlign=se(-Vt)),Ie.push(or)}else throw new ie("Invalid separator type: "+ve.separator);we++,ve=xt[we],de=!1}if(!(n>=l)){var hr=void 0;if(n>0||t.hskipBeforeAndAfter){var Ir,no;hr=(Ir=(no=ve)==null?void 0:no.pregap)!=null?Ir:h,hr!==0&&(We=X(["arraycolsep"],[]),We.style.width=se(hr),Ie.push(We))}var $m=[];for(o=0;o<i;++o){var Ea=c[o],Aa=Ea[n];if(Aa){var Qc=Ea.pos-ge;Aa.depth=Ea.depth,Aa.height=Ea.height,$m.push({type:"elem",elem:Aa,shift:Qc})}}var Ds=dt({positionType:"individualShift",children:$m}),Ky=X(["col-align-"+(((_e=ve)==null?void 0:_e.align)||"c")],[Ds]);if(Ie.push(Ky),n<l-1||t.hskipBeforeAndAfter){var eu,Os;hr=(eu=(Os=ve)==null?void 0:Os.postgap)!=null?eu:h,hr!==0&&(We=X(["arraycolsep"],[]),We.style.width=se(hr),Ie.push(We))}}}var Ma=X(["mtable"],Ie);if(d.length>0){for(var Tm=Vc("hline",r,p),Xy=Vc("hdashline",r,p),tu=[{type:"elem",elem:Ma,shift:0}];d.length>0;){var Ls=d.pop(),ru=Ls.pos-ge;Ls.isDashed?tu.push({type:"elem",elem:Xy,shift:ru}):tu.push({type:"elem",elem:Tm,shift:ru})}Ma=dt({positionType:"individualShift",children:tu})}if(xn.length===0)return X(["mord"],[Ma],r);var Im=dt({positionType:"individualShift",children:xn}),Yy=X(["tag"],[Im],r);return Si([Ma,Yy])},ele={c:"center ",l:"left ",r:"right "},No=function(t,r){for(var o=[],n=new re("mtd",[],["mtr-glue"]),i=new re("mtd",[],["mml-eqn-num"]),a=0;a<t.body.length;a++){for(var l=t.body[a],c=[],d=0;d<l.length;d++)c.push(new re("mtd",[$t(l[d],r)]));t.tags&&t.tags[a]&&(c.unshift(n),c.push(n),t.leqno?c.unshift(i):c.push(i)),o.push(new re("mtr",c))}var p=new re("mtable",o),m=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);p.setAttribute("rowspacing",se(m));var h="",g="";if(t.cols&&t.cols.length>0){var w=t.cols,$="",T=!1,z=0,P=w.length;w[0].type==="separator"&&(h+="top ",z=1),w[w.length-1].type==="separator"&&(h+="bottom ",P-=1);for(var k=z;k<P;k++){var M=w[k];M.type==="align"?(g+=ele[M.align],T&&($+="none "),T=!0):M.type==="separator"&&T&&($+=M.separator==="|"?"solid ":"dashed ",T=!1)}p.setAttribute("columnalign",g.trim()),/[sd]/.test($)&&p.setAttribute("columnlines",$.trim())}if(t.colSeparationType==="align"){for(var E=t.cols||[],D="",F=1;F<E.length;F++)D+=F%2?"0em ":"1em ";p.setAttribute("columnspacing",D.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?p.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?p.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?p.setAttribute("columnspacing","0.5em"):p.setAttribute("columnspacing","1em");var H="",Z=t.hLinesBeforeRow;h+=Z[0].length>0?"left ":"",h+=Z[Z.length-1].length>0?"right ":"";for(var W=1;W<Z.length-1;W++)H+=Z[W].length===0?"none ":Z[W][0]?"dashed ":"solid ";return/[sd]/.test(H)&&p.setAttribute("rowlines",H.trim()),h!==""&&(p=new re("menclose",[p]),p.setAttribute("notation",h.trim())),t.arraystretch&&t.arraystretch<1&&(p=new re("mstyle",[p]),p.setAttribute("scriptlevel","1")),p},nB=function(t,r){t.envName.includes("ed")||By(t);var o=[],n=t.envName.includes("at")?"alignat":"align",i=t.envName==="split",a=Pa(t.parser,{cols:o,addJot:!0,autoTag:i?void 0:e7(t.envName),emptySingleRow:!0,colSeparationType:n,maxNumCols:i?2:void 0,leqno:t.parser.settings.leqno},"display"),l=0,c=0,d={type:"ordgroup",mode:t.mode,body:[]};if(r[0]&&r[0].type==="ordgroup"){for(var p="",m=0;m<r[0].body.length;m++){var h=Ke(r[0].body[m],"textord");p+=h.text}l=Number(p),c=l*2}var g=!c;a.body.forEach(function(z){for(var P=1;P<z.length;P+=2){var k=Ke(z[P],"styling"),M=Ke(k.body[0],"ordgroup");M.body.unshift(d)}if(g)c<z.length&&(c=z.length);else{var E=z.length/2;if(l<E)throw new ie("Too many math in a row: "+("expected "+l+", but got "+E),z[0])}});for(var w=0;w<c;++w){var $="r",T=0;w%2===1?$="l":w>0&&g&&(T=1),o[w]={type:"align",align:$,pregap:T,postgap:0}}return a.colSeparationType=g?"align":"alignat",a};Ao({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=Dy(t[0]),o=r?[t[0]]:Ke(t[0],"ordgroup").body,n=o.map(function(a){var l=Ry(a),c=l.text;if("lcr".includes(c))return{type:"align",align:c};if(c==="|")return{type:"separator",separator:"|"};if(c===":")return{type:"separator",separator:":"};throw new ie("Unknown column alignment: "+c,a)}),i={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return Pa(e.parser,i,t7(e.envName))},htmlBuilder:Mo,mathmlBuilder:No});Ao({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],r="c",o={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if(e.envName.charAt(e.envName.length-1)==="*"){var n=e.parser;if(n.consumeSpaces(),n.fetch().text==="["){if(n.consume(),n.consumeSpaces(),r=n.fetch().text,!"lcr".includes(r))throw new ie("Expected l or c or r",n.nextToken);n.consume(),n.consumeSpaces(),n.expect("]"),n.consume(),o.cols=[{type:"align",align:r}]}}var i=Pa(e.parser,o,t7(e.envName)),a=Math.max(0,...i.body.map(l=>l.length));return i.cols=new Array(a).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[i],left:t[0],right:t[1],rightColor:void 0}:i},htmlBuilder:Mo,mathmlBuilder:No});Ao({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},r=Pa(e.parser,t,"script");return r.colSeparationType="small",r},htmlBuilder:Mo,mathmlBuilder:No});Ao({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=Dy(t[0]),o=r?[t[0]]:Ke(t[0],"ordgroup").body,n=o.map(function(l){var c=Ry(l),d=c.text;if("lc".includes(d))return{type:"align",align:d};throw new ie("Unknown column alignment: "+d,l)});if(n.length>1)throw new ie("{subarray} can contain only one column");var i={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5},a=Pa(e.parser,i,"script");if(a.body.length>0&&a.body[0].length>1)throw new ie("{subarray} can contain only one column");return a},htmlBuilder:Mo,mathmlBuilder:No});Ao({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},r=Pa(e.parser,t,t7(e.envName));return{type:"leftright",mode:e.mode,body:[r],left:e.envName.includes("r")?".":"\\{",right:e.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:Mo,mathmlBuilder:No});Ao({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:nB,htmlBuilder:Mo,mathmlBuilder:No});Ao({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){Qse.has(e.envName)&&By(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:e7(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Pa(e.parser,t,"display")},htmlBuilder:Mo,mathmlBuilder:No});Ao({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:nB,htmlBuilder:Mo,mathmlBuilder:No});Ao({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){By(e);var t={autoTag:e7(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Pa(e.parser,t,"display")},htmlBuilder:Mo,mathmlBuilder:No});Ao({type:"array",names:["CD"],props:{numArgs:0},handler(e){return By(e),Bse(e.parser)},htmlBuilder:Mo,mathmlBuilder:No});C("\\nonumber","\\gdef\\@eqnsw{0}");C("\\notag","\\nonumber");me({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new ie(e.funcName+" valid only within array environment")}});var lU=tB;me({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:r,funcName:o}=e,n=t[0];if(n.type!=="ordgroup")throw new ie("Invalid environment name",n);for(var i="",a=0;a<n.body.length;++a)i+=Ke(n.body[a],"textord").text;if(o==="\\begin"){if(!lU.hasOwnProperty(i))throw new ie("No such environment: "+i,n);var l=lU[i],{args:c,optArgs:d}=r.parseArguments("\\begin{"+i+"}",l),p={mode:r.mode,envName:i,parser:r},m=l.handler(p,c,d);r.expect("\\end",!1);var h=r.nextToken,g=Ke(r.parseFunction(),"environment");if(g.name!==i)throw new ie("Mismatch: \\begin{"+i+"} matched by \\end{"+g.name+"}",h);return m}return{type:"environment",mode:r.mode,name:i,nameGroup:n}}});var oB=(e,t)=>{var r=e.font,o=t.withFont(r);return pt(e.body,o)},iB=(e,t)=>{var r=e.font,o=t.withFont(r);return $t(e.body,o)},cU={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};me({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:o}=e,n=Ty(t[0]),i=o;return i in cU&&(i=cU[i]),{type:"font",mode:r.mode,font:i.slice(1),body:n}},htmlBuilder:oB,mathmlBuilder:iB});me({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:r}=e,o=t[0];return{type:"mclass",mode:r.mode,mclass:Oy(o),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:o}],isCharacterBox:_i(o)}}});me({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:o,breakOnTokenText:n}=e,{mode:i}=r,a=r.parseExpression(!0,n),l="math"+o.slice(1);return{type:"font",mode:i,font:l,body:{type:"ordgroup",mode:r.mode,body:a}}},htmlBuilder:oB,mathmlBuilder:iB});var tle=(e,t)=>{var r=t.style,o=r.fracNum(),n=r.fracDen(),i;i=t.havingStyle(o);var a=pt(e.numer,i,t);if(e.continued){var l=8.5/t.fontMetrics().ptPerEm,c=3.5/t.fontMetrics().ptPerEm;a.height=a.height<l?l:a.height,a.depth=a.depth<c?c:a.depth}i=t.havingStyle(n);var d=pt(e.denom,i,t),p,m,h;e.hasBarLine?(e.barSize?(m=Zt(e.barSize,t),p=Vc("frac-line",t,m)):p=Vc("frac-line",t),m=p.height,h=p.height):(p=null,m=0,h=t.fontMetrics().defaultRuleThickness);var g,w,$;r.size===je.DISPLAY.size?(g=t.fontMetrics().num1,m>0?w=3*h:w=7*h,$=t.fontMetrics().denom1):(m>0?(g=t.fontMetrics().num2,w=h):(g=t.fontMetrics().num3,w=3*h),$=t.fontMetrics().denom2);var T;if(p){var P=t.fontMetrics().axisHeight;g-a.depth-(P+.5*m)<w&&(g+=w-(g-a.depth-(P+.5*m))),P-.5*m-(d.height-$)<w&&($+=w-(P-.5*m-(d.height-$)));var k=-(P-.5*m);T=dt({positionType:"individualShift",children:[{type:"elem",elem:d,shift:$},{type:"elem",elem:p,shift:k},{type:"elem",elem:a,shift:-g}]})}else{var z=g-a.depth-(d.height-$);z<w&&(g+=.5*(w-z),$+=.5*(w-z)),T=dt({positionType:"individualShift",children:[{type:"elem",elem:d,shift:$},{type:"elem",elem:a,shift:-g}]})}i=t.havingStyle(r),T.height*=i.sizeMultiplier/t.sizeMultiplier,T.depth*=i.sizeMultiplier/t.sizeMultiplier;var M;r.size===je.DISPLAY.size?M=t.fontMetrics().delim1:r.size===je.SCRIPTSCRIPT.size?M=t.havingStyle(je.SCRIPT).fontMetrics().delim2:M=t.fontMetrics().delim2;var E,D;return e.leftDelim==null?E=pm(t,["mopen"]):E=B3(e.leftDelim,M,!0,t.havingStyle(r),e.mode,["mopen"]),e.continued?D=X([]):e.rightDelim==null?D=pm(t,["mclose"]):D=B3(e.rightDelim,M,!0,t.havingStyle(r),e.mode,["mclose"]),X(["mord"].concat(i.sizingClasses(t)),[E,X(["mfrac"],[T]),D],t)},rle=(e,t)=>{var r=new re("mfrac",[$t(e.numer,t),$t(e.denom,t)]);if(!e.hasBarLine)r.setAttribute("linethickness","0px");else if(e.barSize){var o=Zt(e.barSize,t);r.setAttribute("linethickness",se(o))}if(e.leftDelim!=null||e.rightDelim!=null){var n=[];if(e.leftDelim!=null){var i=new re("mo",[new Ht(e.leftDelim.replace("\\",""))]);i.setAttribute("fence","true"),n.push(i)}if(n.push(r),e.rightDelim!=null){var a=new re("mo",[new Ht(e.rightDelim.replace("\\",""))]);a.setAttribute("fence","true"),n.push(a)}return K3(n)}return r},aB=(e,t)=>{if(!t)return e;var r={type:"styling",mode:e.mode,style:t,body:[e]};return r};me({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:o}=e,n=t[0],i=t[1],a,l=null,c=null;switch(o){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":a=!0;break;case"\\\\atopfrac":a=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":a=!1,l="(",c=")";break;case"\\\\bracefrac":a=!1,l="\\{",c="\\}";break;case"\\\\brackfrac":a=!1,l="[",c="]";break;default:throw new Error("Unrecognized genfrac command")}var d=o==="\\cfrac",p=null;return d||o.startsWith("\\d")?p="display":o.startsWith("\\t")&&(p="text"),aB({type:"genfrac",mode:r.mode,numer:n,denom:i,continued:d,hasBarLine:a,leftDelim:l,rightDelim:c,barSize:null},p)},htmlBuilder:tle,mathmlBuilder:rle});me({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:r,token:o}=e,n;switch(r){case"\\over":n="\\frac";break;case"\\choose":n="\\binom";break;case"\\atop":n="\\\\atopfrac";break;case"\\brace":n="\\\\bracefrac";break;case"\\brack":n="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:n,token:o}}});var uU=["display","text","script","scriptscript"],dU=function(t){var r=null;return t.length>0&&(r=t,r=r==="."?null:r),r};me({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:r}=e,o=t[4],n=t[5],i=Ty(t[0]),a=i.type==="atom"&&i.family==="open"?dU(i.text):null,l=Ty(t[1]),c=l.type==="atom"&&l.family==="close"?dU(l.text):null,d=Ke(t[2],"size"),p,m=null;d.isBlank?p=!0:(m=d.value,p=m.number>0);var h=null,g=t[3];if(g.type==="ordgroup"){if(g.body.length>0){var w=Ke(g.body[0],"textord");h=uU[Number(w.text)]}}else g=Ke(g,"textord"),h=uU[Number(g.text)];return aB({type:"genfrac",mode:r.mode,numer:o,denom:n,continued:!1,hasBarLine:p,barSize:m,leftDelim:a,rightDelim:c},h)}});me({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:r,funcName:o,token:n}=e;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:Ke(t[0],"size").value,token:n}}});me({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:r,funcName:o}=e,n=t[0],i=Ke(t[1],"infix").size;if(!i)throw new Error("\\\\abovefrac expected size, but got "+String(i));var a=t[2],l=i.number>0;return{type:"genfrac",mode:r.mode,numer:n,denom:a,continued:!1,hasBarLine:l,barSize:i,leftDelim:null,rightDelim:null}}});var sB=(e,t)=>{var r=t.style,o,n;e.type==="supsub"?(o=e.sup?pt(e.sup,t.havingStyle(r.sup()),t):pt(e.sub,t.havingStyle(r.sub()),t),n=Ke(e.base,"horizBrace")):n=Ke(e,"horizBrace");var i=pt(n.base,t.havingBaseStyle(je.DISPLAY)),a=Ny(n,t),l;if(n.isOver?(l=dt({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:.1},{type:"elem",elem:a}]}),l.children[0].children[0].children[1].classes.push("svg-align")):(l=dt({positionType:"bottom",positionData:i.depth+.1+a.height,children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:i}]}),l.children[0].children[0].children[0].classes.push("svg-align")),o){var c=X(["minner",n.isOver?"mover":"munder"],[l],t);n.isOver?l=dt({positionType:"firstBaseline",children:[{type:"elem",elem:c},{type:"kern",size:.2},{type:"elem",elem:o}]}):l=dt({positionType:"bottom",positionData:c.depth+.2+o.height+o.depth,children:[{type:"elem",elem:o},{type:"kern",size:.2},{type:"elem",elem:c}]})}return X(["minner",n.isOver?"mover":"munder"],[l],t)},nle=(e,t)=>{var r=My(e.label);return new re(e.isOver?"mover":"munder",[$t(e.base,t),r])};me({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:o}=e;return{type:"horizBrace",mode:r.mode,label:o,isOver:o.includes("\\over"),base:t[0]}},htmlBuilder:sB,mathmlBuilder:nle});me({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,o=t[1],n=Ke(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:n})?{type:"href",mode:r.mode,href:n,body:rr(o)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var r=cr(e.body,t,!1);return xse(e.href,[],r,t)},mathmlBuilder:(e,t)=>{var r=Ia(e.body,t);return r instanceof re||(r=new re("mrow",[r])),r.setAttribute("href",e.href),r}});me({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,o=Ke(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:o}))return r.formatUnsupportedCmd("\\url");for(var n=[],i=0;i<o.length;i++){var a=o[i];a==="~"&&(a="\\textasciitilde"),n.push({type:"textord",mode:"text",text:a})}var l={type:"text",mode:r.mode,font:"\\texttt",body:n};return{type:"href",mode:r.mode,href:o,body:rr(l)}}});me({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:r}=e;return{type:"hbox",mode:r.mode,body:rr(t[0])}},htmlBuilder(e,t){var r=cr(e.body,t,!1);return Si(r)},mathmlBuilder(e,t){return new re("mrow",bn(e.body,t))}});me({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:o,token:n}=e,i=Ke(t[0],"raw").string,a=t[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var l,c={};switch(o){case"\\htmlClass":c.class=i,l={command:"\\htmlClass",class:i};break;case"\\htmlId":c.id=i,l={command:"\\htmlId",id:i};break;case"\\htmlStyle":c.style=i,l={command:"\\htmlStyle",style:i};break;case"\\htmlData":{for(var d=i.split(","),p=0;p<d.length;p++){var m=d[p],h=m.indexOf("=");if(h<0)throw new ie("\\htmlData key/value '"+m+"' missing equals sign");var g=m.slice(0,h),w=m.slice(h+1);c["data-"+g.trim()]=w}l={command:"\\htmlData",attributes:c};break}default:throw new Error("Unrecognized html command")}return r.settings.isTrusted(l)?{type:"html",mode:r.mode,attributes:c,body:rr(a)}:r.formatUnsupportedCmd(o)},htmlBuilder:(e,t)=>{var r=cr(e.body,t,!1),o=["enclosing"];e.attributes.class&&o.push(...e.attributes.class.trim().split(/\s+/));var n=X(o,r,t);for(var i in e.attributes)i!=="class"&&e.attributes.hasOwnProperty(i)&&n.setAttribute(i,e.attributes[i]);return n},mathmlBuilder:(e,t)=>Ia(e.body,t)});me({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"htmlmathml",mode:r.mode,html:rr(t[0]),mathml:rr(t[1])}},htmlBuilder:(e,t)=>{var r=cr(e.html,t,!1);return Si(r)},mathmlBuilder:(e,t)=>Ia(e.mathml,t)});var $3=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!r)throw new ie("Invalid size: '"+t+"' in \\includegraphics");var o={number:+(r[1]+r[2]),unit:r[3]};if(!$U(o))throw new ie("Invalid unit: '"+o.unit+"' in \\includegraphics.");return o};me({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,r)=>{var{parser:o}=e,n={number:0,unit:"em"},i={number:.9,unit:"em"},a={number:0,unit:"em"},l="";if(r[0])for(var c=Ke(r[0],"raw").string,d=c.split(","),p=0;p<d.length;p++){var m=d[p].split("=");if(m.length===2){var h=m[1].trim();switch(m[0].trim()){case"alt":l=h;break;case"width":n=$3(h);break;case"height":i=$3(h);break;case"totalheight":a=$3(h);break;default:throw new ie("Invalid key: '"+m[0]+"' in \\includegraphics.")}}}var g=Ke(t[0],"url").url;return l===""&&(l=g,l=l.replace(/^.*[\\/]/,""),l=l.substring(0,l.lastIndexOf("."))),o.settings.isTrusted({command:"\\includegraphics",url:g})?{type:"includegraphics",mode:o.mode,alt:l,width:n,height:i,totalheight:a,src:g}:o.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var r=Zt(e.height,t),o=0;e.totalheight.number>0&&(o=Zt(e.totalheight,t)-r);var n=0;e.width.number>0&&(n=Zt(e.width,t));var i={height:se(r+o)};n>0&&(i.width=se(n)),o>0&&(i.verticalAlign=se(-o));var a=new A3(e.src,e.alt,i);return a.height=r,a.depth=o,a},mathmlBuilder:(e,t)=>{var r=new re("mglyph",[]);r.setAttribute("alt",e.alt);var o=Zt(e.height,t),n=0;if(e.totalheight.number>0&&(n=Zt(e.totalheight,t)-o,r.setAttribute("valign",se(-n))),r.setAttribute("height",se(o+n)),e.width.number>0){var i=Zt(e.width,t);r.setAttribute("width",se(i))}return r.setAttribute("src",e.src),r}});me({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:o}=e,n=Ke(t[0],"size");if(r.settings.strict){var i=o[1]==="m",a=n.value.unit==="mu";i?(a||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+o+" supports only mu units, "+("not "+n.value.unit+" units")),r.mode!=="math"&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+o+" works only in math mode")):a&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+o+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:n.value}},htmlBuilder(e,t){return EU(e.dimension,t)},mathmlBuilder(e,t){var r=Zt(e.dimension,t);return new Iy(r)}});me({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:o}=e,n=t[0];return{type:"lap",mode:r.mode,alignment:o.slice(5),body:n}},htmlBuilder:(e,t)=>{var r;e.alignment==="clap"?(r=X([],[pt(e.body,t)]),r=X(["inner"],[r],t)):r=X(["inner"],[pt(e.body,t)]);var o=X(["fix"],[]),n=X([e.alignment],[r,o],t),i=X(["strut"]);return i.style.height=se(n.height+n.depth),n.depth&&(i.style.verticalAlign=se(-n.depth)),n.children.unshift(i),n=X(["thinbox"],[n],t),X(["mord","vbox"],[n],t)},mathmlBuilder:(e,t)=>{var r=new re("mpadded",[$t(e.body,t)]);if(e.alignment!=="rlap"){var o=e.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",o+"width")}return r.setAttribute("width","0px"),r}});me({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:r,parser:o}=e,n=o.mode;o.switchMode("math");var i=r==="\\("?"\\)":"$",a=o.parseExpression(!1,i);return o.expect(i),o.switchMode(n),{type:"styling",mode:o.mode,style:"text",body:a}}});me({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new ie("Mismatched "+e.funcName)}});var pU=(e,t)=>{switch(t.style.size){case je.DISPLAY.size:return e.display;case je.TEXT.size:return e.text;case je.SCRIPT.size:return e.script;case je.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};me({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"mathchoice",mode:r.mode,display:rr(t[0]),text:rr(t[1]),script:rr(t[2]),scriptscript:rr(t[3])}},htmlBuilder:(e,t)=>{var r=pU(e,t),o=cr(r,t,!1);return Si(o)},mathmlBuilder:(e,t)=>{var r=pU(e,t);return Ia(r,t)}});var lB=(e,t,r,o,n,i,a)=>{e=X([],[e]);var l=r&&_i(r),c,d;if(t){var p=pt(t,o.havingStyle(n.sup()),o);d={elem:p,kern:Math.max(o.fontMetrics().bigOpSpacing1,o.fontMetrics().bigOpSpacing3-p.depth)}}if(r){var m=pt(r,o.havingStyle(n.sub()),o);c={elem:m,kern:Math.max(o.fontMetrics().bigOpSpacing2,o.fontMetrics().bigOpSpacing4-m.height)}}var h;if(d&&c){var g=o.fontMetrics().bigOpSpacing5+c.elem.height+c.elem.depth+c.kern+e.depth+a;h=dt({positionType:"bottom",positionData:g,children:[{type:"kern",size:o.fontMetrics().bigOpSpacing5},{type:"elem",elem:c.elem,marginLeft:se(-i)},{type:"kern",size:c.kern},{type:"elem",elem:e},{type:"kern",size:d.kern},{type:"elem",elem:d.elem,marginLeft:se(i)},{type:"kern",size:o.fontMetrics().bigOpSpacing5}]})}else if(c){var w=e.height-a;h=dt({positionType:"top",positionData:w,children:[{type:"kern",size:o.fontMetrics().bigOpSpacing5},{type:"elem",elem:c.elem,marginLeft:se(-i)},{type:"kern",size:c.kern},{type:"elem",elem:e}]})}else if(d){var $=e.depth+a;h=dt({positionType:"bottom",positionData:$,children:[{type:"elem",elem:e},{type:"kern",size:d.kern},{type:"elem",elem:d.elem,marginLeft:se(i)},{type:"kern",size:o.fontMetrics().bigOpSpacing5}]})}else return e;var T=[h];if(c&&i!==0&&!l){var z=X(["mspace"],[],o);z.style.marginRight=se(i),T.unshift(z)}return X(["mop","op-limits"],T,o)},cB=new Set(["\\smallint"]),Hc=(e,t)=>{var r,o,n=!1,i;e.type==="supsub"?(r=e.sup,o=e.sub,i=Ke(e.base,"op"),n=!0):i=Ke(e,"op");var a=t.style,l=!1;a.size===je.DISPLAY.size&&i.symbol&&!cB.has(i.name)&&(l=!0);var c;if(i.symbol){var d=l?"Size2-Regular":"Size1-Regular",p="";if((i.name==="\\oiint"||i.name==="\\oiiint")&&(p=i.name.slice(1),i.name=p==="oiint"?"\\iint":"\\iiint"),c=Lr(i.name,d,"math",t,["mop","op-symbol",l?"large-op":"small-op"]),p.length>0){var m=c.italic,h=MU(p+"Size"+(l?"2":"1"),t);c=dt({positionType:"individualShift",children:[{type:"elem",elem:c,shift:0},{type:"elem",elem:h,shift:l?.08:0}]}),i.name="\\"+p,c.classes.unshift("mop"),c.italic=m}}else if(i.body){var g=cr(i.body,t,!0);g.length===1&&g[0]instanceof Ur?(c=g[0],c.classes[0]="mop"):c=X(["mop"],g,t)}else{for(var w=[],$=1;$<i.name.length;$++)w.push(W3(i.name[$],i.mode,t));c=X(["mop"],w,t)}var T=0,z=0;return(c instanceof Ur||i.name==="\\oiint"||i.name==="\\oiiint")&&!i.suppressBaseShift&&(T=(c.height-c.depth)/2-t.fontMetrics().axisHeight,z=c.italic||0),n?lB(c,r,o,t,a,z,T):(T&&(c.style.position="relative",c.style.top=se(T)),c)},fm=(e,t)=>{var r;if(e.symbol)r=new re("mo",[On(e.name,e.mode)]),cB.has(e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new re("mo",bn(e.body,t));else{r=new re("mi",[new Ht(e.name.slice(1))]);var o=new re("mo",[On("\u2061","text")]);e.parentIsSupSub?r=new re("mrow",[r,o]):r=DU([r,o])}return r},ole={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};me({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","\u220F","\u2210","\u2211","\u22C0","\u22C1","\u22C2","\u22C3","\u2A00","\u2A01","\u2A02","\u2A04","\u2A06"],props:{numArgs:0},handler:(e,t)=>{var{parser:r,funcName:o}=e,n=o;return n.length===1&&(n=ole[n]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:Hc,mathmlBuilder:fm});me({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:r}=e,o=t[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:rr(o)}},htmlBuilder:Hc,mathmlBuilder:fm});var ile={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};me({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:Hc,mathmlBuilder:fm});me({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:Hc,mathmlBuilder:fm});me({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:r}=e,o=r;return o.length===1&&(o=ile[o]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:o}},htmlBuilder:Hc,mathmlBuilder:fm});var uB=(e,t)=>{var r,o,n=!1,i;e.type==="supsub"?(r=e.sup,o=e.sub,i=Ke(e.base,"operatorname"),n=!0):i=Ke(e,"operatorname");var a;if(i.body.length>0){for(var l=i.body.map(m=>{var h="text"in m?m.text:void 0;return typeof h=="string"?{type:"textord",mode:m.mode,text:h}:m}),c=cr(l,t.withFont("mathrm"),!0),d=0;d<c.length;d++){var p=c[d];p instanceof Ur&&(p.text=p.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}a=X(["mop"],c,t)}else a=X(["mop"],[],t);return n?lB(a,r,o,t,t.style,0,0):a},ale=(e,t)=>{for(var r=bn(e.body,t.withFont("mathrm")),o=!0,n=0;n<r.length;n++){var i=r[n];if(!(i instanceof Iy))if(i instanceof re)switch(i.type){case"mi":case"mn":case"mspace":case"mtext":break;case"mo":{var a=i.children[0];i.children.length===1&&a instanceof Ht?a.text=a.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):o=!1;break}default:o=!1}else o=!1}if(o){var l=r.map(p=>p.toText()).join("");r=[new Ht(l)]}var c=new re("mi",r);c.setAttribute("mathvariant","normal");var d=new re("mo",[On("\u2061","text")]);return e.parentIsSupSub?new re("mrow",[c,d]):DU([c,d])};me({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:o}=e,n=t[0];return{type:"operatorname",mode:r.mode,body:rr(n),alwaysHandleSupSub:o==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:uB,mathmlBuilder:ale});C("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");Rs({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?Si(cr(e.body,t,!1)):X(["mord"],cr(e.body,t,!0),t)},mathmlBuilder(e,t){return Ia(e.body,t,!0)}});me({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:r}=e,o=t[0];return{type:"overline",mode:r.mode,body:o}},htmlBuilder(e,t){var r=pt(e.body,t.havingCrampedStyle()),o=Vc("overline-line",t),n=t.fontMetrics().defaultRuleThickness,i=dt({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*n},{type:"elem",elem:o},{type:"kern",size:n}]});return X(["mord","overline"],[i],t)},mathmlBuilder(e,t){var r=new re("mo",[new Ht("\u203E")]);r.setAttribute("stretchy","true");var o=new re("mover",[$t(e.body,t),r]);return o.setAttribute("accent","true"),o}});me({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,o=t[0];return{type:"phantom",mode:r.mode,body:rr(o)}},htmlBuilder:(e,t)=>{var r=cr(e.body,t.withPhantom(),!1);return Si(r)},mathmlBuilder:(e,t)=>{var r=bn(e.body,t);return new re("mphantom",r)}});C("\\hphantom","\\smash{\\phantom{#1}}");me({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,o=t[0];return{type:"vphantom",mode:r.mode,body:o}},htmlBuilder:(e,t)=>{var r=X(["inner"],[pt(e.body,t.withPhantom())]),o=X(["fix"],[]);return X(["mord","rlap"],[r,o],t)},mathmlBuilder:(e,t)=>{var r=bn(rr(e.body),t),o=new re("mphantom",r),n=new re("mpadded",[o]);return n.setAttribute("width","0px"),n}});me({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e,o=Ke(t[0],"size").value,n=t[1];return{type:"raisebox",mode:r.mode,dy:o,body:n}},htmlBuilder(e,t){var r=pt(e.body,t),o=Zt(e.dy,t);return dt({positionType:"shift",positionData:-o,children:[{type:"elem",elem:r}]})},mathmlBuilder(e,t){var r=new re("mpadded",[$t(e.body,t)]),o=e.dy.number+e.dy.unit;return r.setAttribute("voffset",o),r}});me({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});me({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,r){var{parser:o}=e,n=r[0],i=Ke(t[0],"size"),a=Ke(t[1],"size");return{type:"rule",mode:o.mode,shift:n&&Ke(n,"size").value,width:i.value,height:a.value}},htmlBuilder(e,t){var r=X(["mord","rule"],[],t),o=Zt(e.width,t),n=Zt(e.height,t),i=e.shift?Zt(e.shift,t):0;return r.style.borderRightWidth=se(o),r.style.borderTopWidth=se(n),r.style.bottom=se(i),r.width=o,r.height=n+i,r.depth=-i,r.maxFontSize=n*1.125*t.sizeMultiplier,r},mathmlBuilder(e,t){var r=Zt(e.width,t),o=Zt(e.height,t),n=e.shift?Zt(e.shift,t):0,i=t.color&&t.getColor()||"black",a=new re("mspace");a.setAttribute("mathbackground",i),a.setAttribute("width",se(r)),a.setAttribute("height",se(o));var l=new re("mpadded",[a]);return n>=0?l.setAttribute("height",se(n)):(l.setAttribute("height",se(n)),l.setAttribute("depth",se(-n))),l.setAttribute("voffset",se(n)),l}});function dB(e,t,r){for(var o=cr(e,t,!1),n=t.sizeMultiplier/r.sizeMultiplier,i=0;i<o.length;i++){var a=o[i].classes.indexOf("sizing");a<0?Array.prototype.push.apply(o[i].classes,t.sizingClasses(r)):o[i].classes[a+1]==="reset-size"+t.size&&(o[i].classes[a+1]="reset-size"+r.size),o[i].height*=n,o[i].depth*=n}return Si(o)}var mU=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],sle=(e,t)=>{var r=t.havingSize(e.size);return dB(e.body,r,t)};me({type:"sizing",names:mU,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:r,funcName:o,parser:n}=e,i=n.parseExpression(!1,r);return{type:"sizing",mode:n.mode,size:mU.indexOf(o)+1,body:i}},htmlBuilder:sle,mathmlBuilder:(e,t)=>{var r=t.havingSize(e.size),o=bn(e.body,r),n=new re("mstyle",o);return n.setAttribute("mathsize",se(r.sizeMultiplier)),n}});me({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,r)=>{var{parser:o}=e,n=!1,i=!1,a=r[0]&&Ke(r[0],"ordgroup");if(a)for(var l="",c=0;c<a.body.length;++c){var d=a.body[c];if(l=Ry(d).text,l==="t")n=!0;else if(l==="b")i=!0;else{n=!1,i=!1;break}}else n=!0,i=!0;var p=t[0];return{type:"smash",mode:o.mode,body:p,smashHeight:n,smashDepth:i}},htmlBuilder:(e,t)=>{var r=X([],[pt(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return r;if(e.smashHeight&&(r.height=0),e.smashDepth&&(r.depth=0),e.smashHeight&&e.smashDepth)return X(["mord","smash"],[r],t);if(r.children)for(var o=0;o<r.children.length;o++)e.smashHeight&&(r.children[o].height=0),e.smashDepth&&(r.children[o].depth=0);var n=dt({positionType:"firstBaseline",children:[{type:"elem",elem:r}]});return X(["mord"],[n],t)},mathmlBuilder:(e,t)=>{var r=new re("mpadded",[$t(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}});me({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:o}=e,n=r[0],i=t[0];return{type:"sqrt",mode:o.mode,body:i,index:n}},htmlBuilder(e,t){var r=pt(e.body,t.havingCrampedStyle());r.height===0&&(r.height=t.fontMetrics().xHeight),r=Gc(r,t);var o=t.fontMetrics(),n=o.defaultRuleThickness,i=n;t.style.id<je.TEXT.id&&(i=t.fontMetrics().xHeight);var a=n+i/4,l=r.height+r.depth+a+n,{span:c,ruleWidth:d,advanceWidth:p}=Hse(l,t),m=c.height-d;m>r.height+r.depth+a&&(a=(a+m-r.height-r.depth)/2);var h=c.height-r.height-a-d;r.style.paddingLeft=se(p);var g=dt({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+h)},{type:"elem",elem:c},{type:"kern",size:d}]});if(e.index){var w=t.havingStyle(je.SCRIPTSCRIPT),$=pt(e.index,w,t),T=.6*(g.height-g.depth),z=dt({positionType:"shift",positionData:-T,children:[{type:"elem",elem:$}]}),P=X(["root"],[z]);return X(["mord","sqrt"],[P,g],t)}else return X(["mord","sqrt"],[g],t)},mathmlBuilder(e,t){var{body:r,index:o}=e;return o?new re("mroot",[$t(r,t),$t(o,t)]):new re("msqrt",[$t(r,t)])}});var fU={display:je.DISPLAY,text:je.TEXT,script:je.SCRIPT,scriptscript:je.SCRIPTSCRIPT};me({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:r,funcName:o,parser:n}=e,i=n.parseExpression(!0,r),a=o.slice(1,o.length-5);return{type:"styling",mode:n.mode,style:a,body:i}},htmlBuilder(e,t){var r=fU[e.style],o=t.havingStyle(r).withFont("");return dB(e.body,o,t)},mathmlBuilder(e,t){var r=fU[e.style],o=t.havingStyle(r),n=bn(e.body,o),i=new re("mstyle",n),a={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},l=a[e.style];return i.setAttribute("scriptlevel",l[0]),i.setAttribute("displaystyle",l[1]),i}});var lle=function(t,r){var o=t.base;if(o)if(o.type==="op"){var n=o.limits&&(r.style.size===je.DISPLAY.size||o.alwaysHandleSupSub);return n?Hc:null}else if(o.type==="operatorname"){var i=o.alwaysHandleSupSub&&(r.style.size===je.DISPLAY.size||o.limits);return i?uB:null}else{if(o.type==="accent")return _i(o.base)?Y3:null;if(o.type==="horizBrace"){var a=!t.sub;return a===o.isOver?sB:null}else return null}else return null};Rs({type:"supsub",htmlBuilder(e,t){var r=lle(e,t);if(r)return r(e,t);var{base:o,sup:n,sub:i}=e,a=pt(o,t),l,c,d=t.fontMetrics(),p=0,m=0,h=o&&_i(o);if(n){var g=t.havingStyle(t.style.sup());l=pt(n,g,t),h||(p=a.height-g.fontMetrics().supDrop*g.sizeMultiplier/t.sizeMultiplier)}if(i){var w=t.havingStyle(t.style.sub());c=pt(i,w,t),h||(m=a.depth+w.fontMetrics().subDrop*w.sizeMultiplier/t.sizeMultiplier)}var $;t.style===je.DISPLAY?$=d.sup1:t.style.cramped?$=d.sup3:$=d.sup2;var T=t.sizeMultiplier,z=se(.5/d.ptPerEm/T),P=null;if(c){var k=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(a instanceof Ur||k)&&(P=se(-a.italic))}var M;if(l&&c){p=Math.max(p,$,l.depth+.25*d.xHeight),m=Math.max(m,d.sub2);var E=d.defaultRuleThickness,D=4*E;if(p-l.depth-(c.height-m)<D){m=D-(p-l.depth)+c.height;var F=.8*d.xHeight-(p-l.depth);F>0&&(p+=F,m-=F)}var H=[{type:"elem",elem:c,shift:m,marginRight:z,marginLeft:P},{type:"elem",elem:l,shift:-p,marginRight:z}];M=dt({positionType:"individualShift",children:H})}else if(c){m=Math.max(m,d.sub1,c.height-.8*d.xHeight);var Z=[{type:"elem",elem:c,marginLeft:P,marginRight:z}];M=dt({positionType:"shift",positionData:m,children:Z})}else if(l)p=Math.max(p,$,l.depth+.25*d.xHeight),M=dt({positionType:"shift",positionData:-p,children:[{type:"elem",elem:l,marginRight:z}]});else throw new Error("supsub must have either sup or sub.");var W=O3(a,"right")||"mord";return X([W],[a,X(["msupsub"],[M])],t)},mathmlBuilder(e,t){var r=!1,o,n;e.base&&e.base.type==="horizBrace"&&(n=!!e.sup,n===e.base.isOver&&(r=!0,o=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var i=[$t(e.base,t)];e.sub&&i.push($t(e.sub,t)),e.sup&&i.push($t(e.sup,t));var a;if(r)a=o?"mover":"munder";else if(e.sub)if(e.sup){var d=e.base;d&&d.type==="op"&&d.limits&&t.style===je.DISPLAY||d&&d.type==="operatorname"&&d.alwaysHandleSupSub&&(t.style===je.DISPLAY||d.limits)?a="munderover":a="msubsup"}else{var c=e.base;c&&c.type==="op"&&c.limits&&(t.style===je.DISPLAY||c.alwaysHandleSupSub)||c&&c.type==="operatorname"&&c.alwaysHandleSupSub&&(c.limits||t.style===je.DISPLAY)?a="munder":a="msub"}else{var l=e.base;l&&l.type==="op"&&l.limits&&(t.style===je.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||t.style===je.DISPLAY)?a="mover":a="msup"}return new re(a,i)}});Rs({type:"atom",htmlBuilder(e,t){return W3(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var r=new re("mo",[On(e.text,e.mode)]);if(e.family==="bin"){var o=X3(e,t);o==="bold-italic"&&r.setAttribute("mathvariant",o)}else e.family==="punct"?r.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&r.setAttribute("stretchy","false");return r}});var pB={mi:"italic",mn:"normal",mtext:"normal"};Rs({type:"mathord",htmlBuilder(e,t){return Ay(e,t,"mathord")},mathmlBuilder(e,t){var r=new re("mi",[On(e.text,e.mode,t)]),o=X3(e,t)||"italic";return o!==pB[r.type]&&r.setAttribute("mathvariant",o),r}});Rs({type:"textord",htmlBuilder(e,t){return Ay(e,t,"textord")},mathmlBuilder(e,t){var r=On(e.text,e.mode,t),o=X3(e,t)||"normal",n;return e.mode==="text"?n=new re("mtext",[r]):/[0-9]/.test(e.text)?n=new re("mn",[r]):e.text==="\\prime"?n=new re("mo",[r]):n=new re("mi",[r]),o!==pB[n.type]&&n.setAttribute("mathvariant",o),n}});var T3={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},I3={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Rs({type:"spacing",htmlBuilder(e,t){if(I3.hasOwnProperty(e.text)){var r=I3[e.text].className||"";if(e.mode==="text"){var o=Ay(e,t,"textord");return o.classes.push(r),o}else return X(["mspace",r],[W3(e.text,e.mode,t)],t)}else{if(T3.hasOwnProperty(e.text))return X(["mspace",T3[e.text]],[],t);throw new ie('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var r;if(I3.hasOwnProperty(e.text))r=new re("mtext",[new Ht("\xA0")]);else{if(T3.hasOwnProperty(e.text))return new re("mspace");throw new ie('Unknown type of space "'+e.text+'"')}return r}});var hU=()=>{var e=new re("mtd",[]);return e.setAttribute("width","50%"),e};Rs({type:"tag",mathmlBuilder(e,t){var r=new re("mtable",[new re("mtr",[hU(),new re("mtd",[Ia(e.body,t)]),hU(),new re("mtd",[Ia(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var gU={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},vU={"\\textbf":"textbf","\\textmd":"textmd"},cle={"\\textit":"textit","\\textup":"textup"},yU=(e,t)=>{var r=e.font;if(r){if(gU[r])return t.withTextFontFamily(gU[r]);if(vU[r])return t.withTextFontWeight(vU[r]);if(r==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(cle[r])};me({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:o}=e,n=t[0];return{type:"text",mode:r.mode,body:rr(n),font:o}},htmlBuilder(e,t){var r=yU(e,t),o=cr(e.body,r,!0);return X(["mord","text"],o,r)},mathmlBuilder(e,t){var r=yU(e,t);return Ia(e.body,r)}});me({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"underline",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=pt(e.body,t),o=Vc("underline-line",t),n=t.fontMetrics().defaultRuleThickness,i=dt({positionType:"top",positionData:r.height,children:[{type:"kern",size:n},{type:"elem",elem:o},{type:"kern",size:3*n},{type:"elem",elem:r}]});return X(["mord","underline"],[i],t)},mathmlBuilder(e,t){var r=new re("mo",[new Ht("\u203E")]);r.setAttribute("stretchy","true");var o=new re("munder",[$t(e.body,t),r]);return o.setAttribute("accentunder","true"),o}});me({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"vcenter",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=pt(e.body,t),o=t.fontMetrics().axisHeight,n=.5*(r.height-o-(r.depth+o));return dt({positionType:"shift",positionData:n,children:[{type:"elem",elem:r}]})},mathmlBuilder(e,t){return new re("mpadded",[$t(e.body,t)],["vcenter"])}});me({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new ie("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var r=bU(e),o=[],n=t.havingStyle(t.style.text()),i=0;i<r.length;i++){var a=r[i];a==="~"&&(a="\\textasciitilde"),o.push(Lr(a,"Typewriter-Regular",e.mode,n,["mord","texttt"]))}return X(["mord","text"].concat(n.sizingClasses(t)),zU(o),n)},mathmlBuilder(e,t){var r=new Ht(bU(e)),o=new re("mtext",[r]);return o.setAttribute("mathvariant","monospace"),o}});var bU=e=>e.body.replace(/ /g,e.star?"\u2423":"\xA0"),_a=NU,mB=`[ \r
521	]`,ule="\\\\[a-zA-Z@]+",dle="\\\\[^\uD800-\uDFFF]",ple="("+ule+")"+mB+"*",mle=`\\\\(
522|[ \r	]+
523?)[ \r	]*`,F3="[\u0300-\u036F]",fle=new RegExp(F3+"+$"),hle="("+mB+"+)|"+(mle+"|")+"([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(F3+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(F3+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+ple)+("|"+dle+")"),Cy=class{constructor(t,r){this.input=t,this.settings=r,this.tokenRegex=new RegExp(hle,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,r){this.catcodes[t]=r}lex(){var t=this.input,r=this.tokenRegex.lastIndex;if(r===t.length)return new vn("EOF",new tn(this,r,r));var o=this.tokenRegex.exec(t);if(o===null||o.index!==r)throw new ie("Unexpected character: '"+t[r]+"'",new vn(t[r],new tn(this,r,r+1)));var n=o[6]||o[3]||(o[2]?"\\ ":" ");if(this.catcodes[n]===14){var i=t.indexOf(`
524`,this.tokenRegex.lastIndex);return i===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=i+1,this.lex()}return new vn(n,new tn(this,r,this.tokenRegex.lastIndex))}},Z3=class{constructor(t,r){t===void 0&&(t={}),r===void 0&&(r={}),this.current=r,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new ie("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var r in t)t.hasOwnProperty(r)&&(t[r]==null?delete this.current[r]:this.current[r]=t[r])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,r,o){if(o===void 0&&(o=!1),o){for(var n=0;n<this.undefStack.length;n++)delete this.undefStack[n][t];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][t]=r)}else{var i=this.undefStack[this.undefStack.length-1];i&&!i.hasOwnProperty(t)&&(i[t]=this.current[t])}r==null?delete this.current[t]:this.current[t]=r}},gle=rB;C("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});C("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});C("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});C("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});C("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var r=e.future();return t[0].length===1&&t[0][0].text===r.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});C("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");C("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var xU={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};C("\\char",function(e){var t=e.popToken(),r,o=0;if(t.text==="'")r=8,t=e.popToken();else if(t.text==='"')r=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")o=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new ie("\\char` missing argument");o=t.text.charCodeAt(0)}else r=10;if(r){if(o=xU[t.text],o==null||o>=r)throw new ie("Invalid base-"+r+" digit "+t.text);for(var n;(n=xU[e.future().text])!=null&&n<r;)o*=r,o+=n,e.popToken()}return"\\@char{"+o+"}"});var r7=(e,t,r,o)=>{var n=e.consumeArg().tokens;if(n.length!==1)throw new ie("\\newcommand's first argument must be a macro name");var i=n[0].text,a=e.isDefined(i);if(a&&!t)throw new ie("\\newcommand{"+i+"} attempting to redefine "+(i+"; use \\renewcommand"));if(!a&&!r)throw new ie("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var l=0;if(n=e.consumeArg().tokens,n.length===1&&n[0].text==="["){for(var c="",d=e.expandNextToken();d.text!=="]"&&d.text!=="EOF";)c+=d.text,d=e.expandNextToken();if(!c.match(/^\s*[0-9]+\s*$/))throw new ie("Invalid number of arguments: "+c);l=parseInt(c),n=e.consumeArg().tokens}return a&&o||e.macros.set(i,{tokens:n,numArgs:l}),""};C("\\newcommand",e=>r7(e,!1,!0,!1));C("\\renewcommand",e=>r7(e,!0,!1,!1));C("\\providecommand",e=>r7(e,!0,!0,!0));C("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(r=>r.text).join("")),""});C("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(r=>r.text).join("")),""});C("\\show",e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),_a[r],Mt.math[r],Mt.text[r]),""});C("\\bgroup","{");C("\\egroup","}");
524C("~","\\nobreakspace");C("\\lq","`");C("\\rq","'");C("\\aa","\\r a");C("\\AA","\\r A");C("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}");C("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");C("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}");C("\u212C","\\mathscr{B}");C("\u2130","\\mathscr{E}");C("\u2131","\\mathscr{F}");C("\u210B","\\mathscr{H}");C("\u2110","\\mathscr{I}");C("\u2112","\\mathscr{L}");C("\u2133","\\mathscr{M}");C("\u211B","\\mathscr{R}");C("\u212D","\\mathfrak{C}");C("\u210C","\\mathfrak{H}");C("\u2128","\\mathfrak{Z}");C("\\Bbbk","\\Bbb{k}");C("\\llap","\\mathllap{\\textrm{#1}}");C("\\rlap","\\mathrlap{\\textrm{#1}}");C("\\clap","\\mathclap{\\textrm{#1}}");C("\\mathstrut","\\vphantom{(}");C("\\underbar","\\underline{\\text{#1}}");C("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');C("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}");C("\\ne","\\neq");C("\u2260","\\neq");C("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}");
vendor: 5,312 bytes, line 524
524C("\u2209","\\notin");C("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}");C("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}");C("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}");C("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}");C("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}");C("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}");C("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}");C("\u27C2","\\perp");C("\u203C","\\mathclose{!\\mkern-0.8mu!}");C("\u220C","\\notni");C("\u231C","\\ulcorner");C("\u231D","\\urcorner");C("\u231E","\\llcorner");C("\u231F","\\lrcorner");C("\xA9","\\copyright");C("\xAE","\\textregistered");C("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');C("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');C("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');C("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');C("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");C("\u22EE","\\vdots");C("\\varGamma","\\mathit{\\Gamma}");C("\\varDelta","\\mathit{\\Delta}");C("\\varTheta","\\mathit{\\Theta}");C("\\varLambda","\\mathit{\\Lambda}");C("\\varXi","\\mathit{\\Xi}");C("\\varPi","\\mathit{\\Pi}");C("\\varSigma","\\mathit{\\Sigma}");C("\\varUpsilon","\\mathit{\\Upsilon}");C("\\varPhi","\\mathit{\\Phi}");C("\\varPsi","\\mathit{\\Psi}");C("\\varOmega","\\mathit{\\Omega}");C("\\substack","\\begin{subarray}{c}#1\\end{subarray}");C("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");C("\\boxed","\\fbox{$\\displaystyle{#1}$}");C("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");C("\\implies","\\DOTSB\\;\\Longrightarrow\\;");C("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");C("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");C("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var wU={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"},vle=new Set(["bin","rel"]);C("\\dots",function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in wU?t=wU[r]:(r.slice(0,4)==="\\not"||r in Mt.math&&vle.has(Mt.math[r].group))&&(t="\\dotsb"),t});var n7={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};C("\\dotso",function(e){var t=e.future().text;return t in n7?"\\ldots\\,":"\\ldots"});C("\\dotsc",function(e){var t=e.future().text;return t in n7&&t!==","?"\\ldots\\,":"\\ldots"});C("\\cdots",function(e){var t=e.future().text;return t in n7?"\\@cdots\\,":"\\@cdots"});C("\\dotsb","\\cdots");C("\\dotsm","\\cdots");C("\\dotsi","\\!\\cdots");C("\\dotsx","\\ldots\\,");C("\\DOTSI","\\relax");C("\\DOTSB","\\relax");C("\\DOTSX","\\relax");C("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");C("\\,","\\tmspace+{3mu}{.1667em}");C("\\thinspace","\\,");C("\\>","\\mskip{4mu}");C("\\:","\\tmspace+{4mu}{.2222em}");C("\\medspace","\\:");C("\\;","\\tmspace+{5mu}{.2777em}");C("\\thickspace","\\;");C("\\!","\\tmspace-{3mu}{.1667em}");C("\\negthinspace","\\!");C("\\negmedspace","\\tmspace-{4mu}{.2222em}");C("\\negthickspace","\\tmspace-{5mu}{.277em}");C("\\enspace","\\kern.5em ");C("\\enskip","\\hskip.5em\\relax");C("\\quad","\\hskip1em\\relax");C("\\qquad","\\hskip2em\\relax");C("\\tag","\\@ifstar\\tag@literal\\tag@paren");C("\\tag@paren","\\tag@literal{({#1})}");C("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new ie("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});C("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");C("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");C("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");C("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");C("\\newline","\\\\\\relax");C("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var fB=se(zo["Main-Regular"][84][1]-.7*zo["Main-Regular"][65][1]);
524C("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+fB+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");C("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+fB+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");C("\\hspace","\\@ifstar\\@hspacer\\@hspace");C("\\@hspace","\\hskip #1\\relax");C("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");C("\\ordinarycolon",":");C("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");C("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');C("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');C("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');C("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');C("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');C("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');C("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');C("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');C("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');C("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');C("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');C("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');C("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');C("\u2237","\\dblcolon");C("\u2239","\\eqcolon");C("\u2254","\\coloneqq");C("\u2255","\\eqqcolon");C("\u2A74","\\Coloneqq");C("\\ratio","\\vcentcolon");C("\\coloncolon","\\dblcolon");C("\\colonequals","\\coloneqq");C("\\coloncolonequals","\\Coloneqq");C("\\equalscolon","\\eqqcolon");C("\\equalscoloncolon","\\Eqqcolon");C("\\colonminus","\\coloneq");C("\\coloncolonminus","\\Coloneq");C("\\minuscolon","\\eqcolon");C("\\minuscoloncolon","\\Eqcolon");C("\\coloncolonapprox","\\Colonapprox");C("\\coloncolonsim","\\Colonsim");C("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");C("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");C("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");C("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");C("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}");C("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");C("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");C("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");C("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");C("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");C("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");C("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");C("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");C("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}");C("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}");C("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}");C("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}");C("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}");C("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}");C("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}");C("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}");C("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}");C("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}");C("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}");C("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}");C("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}");C("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}");C("\\imath","\\html@mathml{\\@imath}{\u0131}");C("\\jmath","\\html@mathml{\\@jmath}{\u0237}");C("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}
524{\\mathopen{\\char`\u27E6}}");C("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}");C("\u27E6","\\llbracket");C("\u27E7","\\rrbracket");C("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}");C("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}");C("\u2983","\\lBrace");C("\u2984","\\rBrace");C("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`\u29B5}}");C("\u29B5","\\minuso");C("\\darr","\\downarrow");C("\\dArr","\\Downarrow");C("\\Darr","\\Downarrow");C("\\lang","\\langle");C("\\rang","\\rangle");C("\\uarr","\\uparrow");C("\\uArr","\\Uparrow");C("\\Uarr","\\Uparrow");C("\\N","\\mathbb{N}");C("\\R","\\mathbb{R}");C("\\Z","\\mathbb{Z}");C("\\alef","\\aleph");C("\\alefsym","\\aleph");C("\\Alpha","\\mathrm{A}");C("\\Beta","\\mathrm{B}");C("\\bull","\\bullet");C("\\Chi","\\mathrm{X}");C("\\clubs","\\clubsuit");C("\\cnums","\\mathbb{C}");C("\\Complex","\\mathbb{C}");C("\\Dagger","\\ddagger");C("\\diamonds","\\diamondsuit");C("\\empty","\\emptyset");C("\\Epsilon","\\mathrm{E}");C("\\Eta","\\mathrm{H}");C("\\exist","\\exists");C("\\harr","\\leftrightarrow");C("\\hArr","\\Leftrightarrow");C("\\Harr","\\Leftrightarrow");C("\\hearts","\\heartsuit");C("\\image","\\Im");C("\\infin","\\infty");C("\\Iota","\\mathrm{I}");C("\\isin","\\in");C("\\Kappa","\\mathrm{K}");C("\\larr","\\leftarrow");C("\\lArr","\\Leftarrow");C("\\Larr","\\Leftarrow");C("\\lrarr","\\leftrightarrow");C("\\lrArr","\\Leftrightarrow");C("\\Lrarr","\\Leftrightarrow");C("\\Mu","\\mathrm{M}");C("\\natnums","\\mathbb{N}");C("\\Nu","\\mathrm{N}");C("\\Omicron","\\mathrm{O}");C("\\plusmn","\\pm");C("\\rarr","\\rightarrow");C("\\rArr","\\Rightarrow");C("\\Rarr","\\Rightarrow");C("\\real","\\Re");C("\\reals","\\mathbb{R}");C("\\Reals","\\mathbb{R}");C("\\Rho","\\mathrm{P}");C("\\sdot","\\cdot");C("\\sect","\\S");C("\\spades","\\spadesuit");C("\\sub","\\subset");C("\\sube","\\subseteq");C("\\supe","\\supseteq");C("\\Tau","\\mathrm{T}");C("\\thetasym","\\vartheta");C("\\weierp","\\wp");C("\\Zeta","\\mathrm{Z}");C("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");C("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");C("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");C("\\bra","\\mathinner{\\langle{#1}|}");C("\\ket","\\mathinner{|{#1}\\rangle}");C("\\braket","\\mathinner{\\langle{#1}\\rangle}");C("\\Bra","\\left\\langle#1\\right|");C("\\Ket","\\left|#1\\right\\rangle");var hB=e=>t=>{var r=t.consumeArg().tokens,o=t.consumeArg().tokens,n=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.macros.get("|"),l=t.macros.get("\\|");t.macros.beginGroup();var c=m=>h=>{e&&(h.macros.set("|",a),n.length&&h.macros.set("\\|",l));var g=m;if(!m&&n.length){var w=h.future();w.text==="|"&&(h.popToken(),g=!0)}return{tokens:g?n:o,numArgs:0}};t.macros.set("|",c(!1)),n.length&&t.macros.set("\\|",c(!0));var d=t.consumeArg().tokens,p=t.expandTokens([...i,...d,...r]);return t.macros.endGroup(),{tokens:p.reverse(),numArgs:0}};C("\\bra@ket",hB(!1));C("\\bra@set",hB(!0));C("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");C("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");C("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");C("\\angln","{\\angl n}");C("\\blue","\\textcolor{##6495ed}{#1}");C("\\orange","\\textcolor{##ffa500}{#1}");C("\\pink","\\textcolor{##ff00af}{#1}");C("\\red","\\textcolor{##df0030}{#1}");C("\\green","\\textcolor{##28ae7b}{#1}");C("\\gray","\\textcolor{gray}{#1}");C("\\purple","\\textcolor{##9d38bd}{#1}");C("\\blueA","\\textcolor{##ccfaff}{#1}");C("\\blueB","\\textcolor{##80f6ff}{#1}");C("\\blueC","\\textcolor{##63d9ea}{#1}");C("\\blueD","\\textcolor{##11accd}{#1}");C("\\blueE","\\textcolor{##0c7f99}{#1}");C("\\tealA","\\textcolor{##94fff5}{#1}");C("\\tealB","\\textcolor{##26edd5}{#1}");C("\\tealC","\\textcolor{##01d1c1}{#1}");C("\\tealD","\\textcolor{##01a995}{#1}");C("\\tealE","\\textcolor{##208170}{#1}");C("\\greenA","\\textcolor{##b6ffb0}{#1}");
vendor: 13,090 bytes, line 524
524C("\\greenB","\\textcolor{##8af281}{#1}");C("\\greenC","\\textcolor{##74cf70}{#1}");C("\\greenD","\\textcolor{##1fab54}{#1}");C("\\greenE","\\textcolor{##0d923f}{#1}");C("\\goldA","\\textcolor{##ffd0a9}{#1}");C("\\goldB","\\textcolor{##ffbb71}{#1}");C("\\goldC","\\textcolor{##ff9c39}{#1}");C("\\goldD","\\textcolor{##e07d10}{#1}");C("\\goldE","\\textcolor{##a75a05}{#1}");C("\\redA","\\textcolor{##fca9a9}{#1}");C("\\redB","\\textcolor{##ff8482}{#1}");C("\\redC","\\textcolor{##f9685d}{#1}");C("\\redD","\\textcolor{##e84d39}{#1}");C("\\redE","\\textcolor{##bc2612}{#1}");C("\\maroonA","\\textcolor{##ffbde0}{#1}");C("\\maroonB","\\textcolor{##ff92c6}{#1}");C("\\maroonC","\\textcolor{##ed5fa6}{#1}");C("\\maroonD","\\textcolor{##ca337c}{#1}");C("\\maroonE","\\textcolor{##9e034e}{#1}");C("\\purpleA","\\textcolor{##ddd7ff}{#1}");C("\\purpleB","\\textcolor{##c6b9fc}{#1}");C("\\purpleC","\\textcolor{##aa87ff}{#1}");C("\\purpleD","\\textcolor{##7854ab}{#1}");C("\\purpleE","\\textcolor{##543b78}{#1}");C("\\mintA","\\textcolor{##f5f9e8}{#1}");C("\\mintB","\\textcolor{##edf2df}{#1}");C("\\mintC","\\textcolor{##e0e5cc}{#1}");C("\\grayA","\\textcolor{##f6f7f7}{#1}");C("\\grayB","\\textcolor{##f0f1f2}{#1}");C("\\grayC","\\textcolor{##e3e5e6}{#1}");C("\\grayD","\\textcolor{##d6d8da}{#1}");C("\\grayE","\\textcolor{##babec2}{#1}");C("\\grayF","\\textcolor{##888d93}{#1}");C("\\grayG","\\textcolor{##626569}{#1}");C("\\grayH","\\textcolor{##3b3e40}{#1}");C("\\grayI","\\textcolor{##21242c}{#1}");C("\\kaBlue","\\textcolor{##314453}{#1}");C("\\kaGreen","\\textcolor{##71B307}{#1}");var gB={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},V3=class{constructor(t,r,o){this.settings=r,this.expansionCount=0,this.feed(t),this.macros=new Z3(gle,r.macros),this.mode=o,this.stack=[]}feed(t){this.lexer=new Cy(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var r,o,n;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken(),{tokens:n,end:o}=this.consumeArg(["]"])}else({tokens:n,start:r,end:o}=this.consumeArg());return this.pushToken(new vn("EOF",o.loc)),this.pushTokens(n),new vn("",tn.range(r,o))}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var r=[],o=t&&t.length>0;o||this.consumeSpaces();var n=this.future(),i,a=0,l=0;do{if(i=this.popToken(),r.push(i),i.text==="{")++a;else if(i.text==="}"){if(--a,a===-1)throw new ie("Extra }",i)}else if(i.text==="EOF")throw new ie("Unexpected end of input in a macro argument, expected '"+(t&&o?t[l]:"}")+"'",i);if(t&&o)if((a===0||a===1&&t[l]==="{")&&i.text===t[l]){if(++l,l===t.length){r.splice(-l,l);break}}else l=0}while(a!==0||o);return n.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:n,end:i}}consumeArgs(t,r){if(r){if(r.length!==t+1)throw new ie("The length of delimiters doesn't match the number of args!");for(var o=r[0],n=0;n<o.length;n++){var i=this.popToken();if(o[n]!==i.text)throw new ie("Use of the macro doesn't match its definition",i)}}for(var a=[],l=0;l<t;l++)a.push(this.consumeArg(r&&r[l+1]).tokens);return a}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new ie("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var r=this.popToken(),o=r.text,n=r.noexpand?null:this._getExpansion(o);if(n==null||t&&n.unexpandable){if(t&&n==null&&o[0]==="\\"&&!this.isDefined(o))throw new ie("Undefined control sequence: "+o);return this.pushToken(r),!1}this.countExpansion(1);var i=n.tokens,a=this.consumeArgs(n.numArgs,n.delimiters);if(n.numArgs){i=i.slice();for(var l=i.length-1;l>=0;--l){var c=i[l];if(c.text==="#"){if(l===0)throw new ie("Incomplete placeholder at end of macro body",c);if(c=i[--l],c.text==="#")i.splice(l+1,1);else if(/^[1-9]$/.test(c.text))i.splice(l,2,...a[+c.text-1]);else throw new ie("Not a valid argument number",c)}}}return this.pushTokens(i),i.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}}expandMacro(t){return this.macros.has(t)?this.expandTokens([new vn(t)]):void 0}expandTokens(t){var r=[],o=this.stack.length;for(this.pushTokens(t);this.stack.length>o;)if(this.expandOnce(!0)===!1){var n=this.stack.pop();n.treatAsRelax&&(n.noexpand=!1,n.treatAsRelax=!1),r.push(n)}return this.countExpansion(r.length),r}expandMacroAsText(t){var r=this.expandMacro(t);return r&&r.map(o=>o.text).join("")}_getExpansion(t){var r=this.macros.get(t);if(r==null)return r;if(t.length===1){var o=this.lexer.catcodes[t];if(o!=null&&o!==13)return}var n=typeof r=="function"?r(this):r;if(typeof n=="string"){var i=0;if(n.includes("#"))for(var a=n.replace(/##/g,"");a.includes("#"+(i+1));)++i;for(var l=new Cy(n,this.settings),c=[],d=l.lex();d.text!=="EOF";)c.push(d),d=l.lex();c.reverse();var p={tokens:c,numArgs:i};return p}return n}isDefined(t){return this.macros.has(t)||_a.hasOwnProperty(t)||Mt.math.hasOwnProperty(t)||Mt.text.hasOwnProperty(t)||gB.hasOwnProperty(t)}isExpandable(t){var r=this.macros.get(t);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:_a.hasOwnProperty(t)&&!_a[t].primitive}},_U=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,by=Object.freeze({"\u208A":"+","\u208B":"-","\u208C":"=","\u208D":"(","\u208E":")","\u2080":"0","\u2081":"1","\u2082":"2","\u2083":"3","\u2084":"4","\u2085":"5","\u2086":"6","\u2087":"7","\u2088":"8","\u2089":"9","\u2090":"a","\u2091":"e","\u2095":"h","\u1D62":"i","\u2C7C":"j","\u2096":"k","\u2097":"l","\u2098":"m","\u2099":"n","\u2092":"o","\u209A":"p","\u1D63":"r","\u209B":"s","\u209C":"t","\u1D64":"u","\u1D65":"v","\u2093":"x","\u1D66":"\u03B2","\u1D67":"\u03B3","\u1D68":"\u03C1","\u1D69":"\u03D5","\u1D6A":"\u03C7","\u207A":"+","\u207B":"-","\u207C":"=","\u207D":"(","\u207E":")","\u2070":"0","\xB9":"1","\xB2":"2","\xB3":"3","\u2074":"4","\u2075":"5","\u2076":"6","\u2077":"7","\u2078":"8","\u2079":"9","\u1D2C":"A","\u1D2E":"B","\u1D30":"D","\u1D31":"E","\u1D33":"G","\u1D34":"H","\u1D35":"I","\u1D36":"J","\u1D37":"K","\u1D38":"L","\u1D39":"M","\u1D3A":"N","\u1D3C":"O","\u1D3E":"P","\u1D3F":"R","\u1D40":"T","\u1D41":"U","\u2C7D":"V","\u1D42":"W","\u1D43":"a","\u1D47":"b","\u1D9C":"c","\u1D48":"d","\u1D49":"e","\u1DA0":"f","\u1D4D":"g",\u02B0:"h","\u2071":"i",\u02B2:"j","\u1D4F":"k",\u02E1:"l","\u1D50":"m",\u207F:"n","\u1D52":"o","\u1D56":"p",\u02B3:"r",\u02E2:"s","\u1D57":"t","\u1D58":"u","\u1D5B":"v",\u02B7:"w",\u02E3:"x",\u02B8:"y","\u1DBB":"z","\u1D5D":"\u03B2","\u1D5E":"\u03B3","\u1D5F":"\u03B4","\u1D60":"\u03D5","\u1D61":"\u03C7","\u1DBF":"\u03B8"}),P3={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030C":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030A":{text:"\\r",math:"\\mathring"},"\u030B":{text:"\\H"},"\u0327":{text:"\\c"}},kU={\u00E1:"a\u0301",\u00E0:"a\u0300",\u00E4:"a\u0308",\u01DF:"a\u0308\u0304",\u00E3:"a\u0303",\u0101:"a\u0304",\u0103:"a\u0306",\u1EAF:"a\u0306\u0301",\u1EB1:"a\u0306\u0300",\u1EB5:"a\u0306\u0303",\u01CE:"a\u030C",\u00E2:"a\u0302",\u1EA5:"a\u0302\u0301",\u1EA7:"a\u0302\u0300",\u1EAB:"a\u0302\u0303",\u0227:"a\u0307",\u01E1:"a\u0307\u0304",\u00E5:"a\u030A",\u01FB:"a\u030A\u0301",\u1E03:"b\u0307",\u0107:"c\u0301",\u1E09:"c\u0327\u0301",\u010D:"c\u030C",\u0109:"c\u0302",\u010B:"c\u0307",\u00E7:"c\u0327",\u010F:"d\u030C",\u1E0B:"d\u0307",\u1E11:"d\u0327",\u00E9:"e\u0301",\u00E8:"e\u0300",\u00EB:"e\u0308",\u1EBD:"e\u0303",\u0113:"e\u0304",\u1E17:"e\u0304\u0301",\u1E15:"e\u0304\u0300",\u0115:"e\u0306",\u1E1D:"e\u0327\u0306",\u011B:"e\u030C",\u00EA:"e\u0302",\u1EBF:"e\u0302\u0301",\u1EC1:"e\u0302\u0300",\u1EC5:"e\u0302\u0303",\u0117:"e\u0307",\u0229:"e\u0327",\u1E1F:"f\u0307",\u01F5:"g\u0301",\u1E21:"g\u0304",\u011F:"g\u0306",\u01E7:"g\u030C",\u011D:"g\u0302",\u0121:"g\u0307",\u0123:"g\u0327",\u1E27:"h\u0308",\u021F:"h\u030C",\u0125:"h\u0302",\u1E23:"h\u0307",\u1E29:"h\u0327",\u00ED:"i\u0301",\u00EC:"i\u0300",\u00EF:"i\u0308",\u1E2F:"i\u0308\u0301",\u0129:"i\u0303",\u012B:"i\u0304",\u012D:"i\u0306",\u01D0:"i\u030C",\u00EE:"i\u0302",\u01F0:"j\u030C",\u0135:"j\u0302",\u1E31:"k\u0301",\u01E9:"k\u030C",\u0137:"k\u0327",\u013A:"l\u0301",\u013E:"l\u030C",\u013C:"l\u0327",\u1E3F:"m\u0301",\u1E41:"m\u0307",\u0144:"n\u0301",\u01F9:"n\u0300",\u00F1:"n\u0303",\u0148:"n\u030C",\u1E45:"n\u0307",\u0146:"n\u0327",\u00F3:"o\u0301",\u00F2:"o\u0300",\u00F6:"o\u0308",\u022B:"o\u0308\u0304",\u00F5:"o\u0303",\u1E4D:"o\u0303\u0301",\u1E4F:"o\u0303\u0308",\u022D:"o\u0303\u0304",\u014D:"o\u0304",\u1E53:"o\u0304\u0301",\u1E51:"o\u0304\u0300",\u014F:"o\u0306",\u01D2:"o\u030C",\u00F4:"o\u0302",\u1ED1:"o\u0302\u0301",\u1ED3:"o\u0302\u0300",\u1ED7:"o\u0302\u0303",\u022F:"o\u0307",\u0231:"o\u0307\u0304",\u0151:"o\u030B",\u1E55:"p\u0301",\u1E57:"p\u0307",\u0155:"r\u0301",\u0159:"r\u030C",\u1E59:"r\u0307",\u0157:"r\u0327",\u015B:"s\u0301",\u1E65:"s\u0301\u0307",\u0161:"s\u030C",\u1E67:"s\u030C\u0307",\u015D:"s\u0302",\u1E61:"s\u0307",\u015F:"s\u0327",\u1E97:"t\u0308",\u0165:"t\u030C",\u1E6B:"t\u0307",\u0163:"t\u0327",\u00FA:"u\u0301",\u00F9:"u\u0300",\u00FC:"u\u0308",\u01D8:"u\u0308\u0301",\u01DC:"u\u0308\u0300",\u01D6:"u\u0308\u0304",\u01DA:"u\u0308\u030C",\u0169:"u\u0303",\u1E79:"u\u0303\u0301",\u016B:"u\u0304",\u1E7B:"u\u0304\u0308",\u016D:"u\u0306",\u01D4:"u\u030C",\u00FB:"u\u0302",\u016F:"u\u030A",\u0171:"u\u030B",\u1E7D:"v\u0303",\u1E83:"w\u0301",\u1E81:"w\u0300",\u1E85:"w\u0308",\u0175:"w\u0302",\u1E87:"w\u0307",\u1E98:"w\u030A",\u1E8D:"x\u0308",\u1E8B:"x\u0307",\u00FD:"y\u0301",\u1EF3:"y\u0300",\u00FF:"y\u0308",\u1EF9:"y\u0303",\u0233:"y\u0304",\u0177:"y\u0302",\u1E8F:"y\u0307",\u1E99:"y\u030A",\u017A:"z\u0301",\u017E:"z\u030C",\u1E91:"z\u0302",\u017C:"z\u0307",\u00C1:"A\u0301",\u00C0:"A\u0300",\u00C4:"A\u0308",\u01DE:"A\u0308\u0304",\u00C3:"A\u0303",\u0100:"A\u0304",\u0102:"A\u0306",\u1EAE:"A\u0306\u0301",\u1EB0:"A\u0306\u0300",\u1EB4:"A\u0306\u0303",\u01CD:"A\u030C",\u00C2:"A\u0302",\u1EA4:"A\u0302\u0301",\u1EA6:"A\u0302\u0300",\u1EAA:"A\u0302\u0303",\u0226:"A\u0307",\u01E0:"A\u0307\u0304",\u00C5:"A\u030A",\u01FA:"A\u030A\u0301",\u1E02:"B\u0307",\u0106:"C\u0301",\u1E08:"C\u0327\u0301",\u010C:"C\u030C",\u0108:"C\u0302",\u010A:"C\u0307",\u00C7:"C\u0327",\u010E:"D\u030C",\u1E0A:"D\u0307",\u1E10:"D\u0327",\u00C9:"E\u0301",\u00C8:"E\u0300",\u00CB:"E\u0308",\u1EBC:"E\u0303",\u0112:"E\u0304",\u1E16:"E\u0304\u0301",\u1E14:"E\u0304\u0300",\u0114:"E\u0306",\u1E1C:"E\u0327\u0306",\u011A:"E\u030C",\u00CA:"E\u0302",\u1EBE:"E\u0302\u0301",\u1EC0:"E\u0302\u0300",\u1EC4:"E\u0302\u0303",\u0116:"E\u0307",\u0228:"E\u0327",\u1E1E:"F\u0307",\u01F4:"G\u0301",\u1E20:"G\u0304",\u011E:"G\u0306",\u01E6:"G\u030C",\u011C:"G\u0302",\u0120:"G\u0307",\u0122:"G\u0327",\u1E26:"H\u0308",\u021E:"H\u030C",\u0124:"H\u0302",\u1E22:"H\u0307",\u1E28:"H\u0327",\u00CD:"I\u0301",\u00CC:"I\u0300",\u00CF:"I\u0308",\u1E2E:"I\u0308\u0301",\u0128:"I\u0303",\u012A:"I\u0304",\u012C:"I\u0306",\u01CF:"I\u030C",\u00CE:"I\u0302",\u0130:"I\u0307",\u0134:"J\u0302",\u1E30:"K\u0301",\u01E8:"K\u030C",\u0136:"K\u0327",\u0139:"L\u0301",\u013D:"L\u030C",\u013B:"L\u0327",\u1E3E:"M\u0301",\u1E40:"M\u0307",\u0143:"N\u0301",\u01F8:"N\u0300",\u00D1:"N\u0303",\u0147:"N\u030C",\u1E44:"N\u0307",\u0145:"N\u0327",\u00D3:"O\u0301",\u00D2:"O\u0300",\u00D6:"O\u0308",\u022A:"O\u0308\u0304",\u00D5:"O\u0303",\u1E4C:"O\u0303\u0301",\u1E4E:"O\u0303\u0308",\u022C:"O\u0303\u0304",\u014C:"O\u0304",\u1E52:"O\u0304\u0301",\u1E50:"O\u0304\u0300",\u014E:"O\u0306",\u01D1:"O\u030C",\u00D4:"O\u0302",\u1ED0:"O\u0302\u0301",\u1ED2:"O\u0302\u0300",\u1ED6:"O\u0302\u0303",\u022E:"O\u0307",\u0230:"O\u0307\u0304",\u0150:"O\u030B",\u1E54:"P\u0301",\u1E56:"P\u0307",\u0154:"R\u0301",\u0158:"R\u030C",\u1E58:"R\u0307",\u0156:"R\u0327",\u015A:"S\u0301",\u1E64:"S\u0301\u0307",\u0160:"S\u030C",\u1E66:"S\u030C\u0307",\u015C:"S\u0302",\u1E60:"S\u0307",\u015E:"S\u0327",\u0164:"T\u030C",\u1E6A:"T\u0307",\u0162:"T\u0327",\u00DA:"U\u0301",\u00D9:"U\u0300",\u00DC:"U\u0308",\u01D7:"U\u0308\u0301",\u01DB:"U\u0308\u0300",\u01D5:"U\u0308\u0304",\u01D9:"U\u0308\u030C",\u0168:"U\u0303",\u1E78:"U\u0303\u0301",\u016A:"U\u0304",\u1E7A:"U\u0304\u0308",\u016C:"U\u0306",\u01D3:"U\u030C",\u00DB:"U\u0302",\u016E:"U\u030A",\u0170:"U\u030B",\u1E7C:"V\u0303",\u1E82:"W\u0301",\u1E80:"W\u0300",\u1E84:"W\u0308",\u0174:"W\u0302",\u1E86:"W\u0307",\u1E8C:"X\u0308",\u1E8A:"X\u0307",\u00DD:"Y\u0301",\u1EF2:"Y\u0300",\u0178:"Y\u0308",\u1EF8:"Y\u0303",\u0232:"Y\u0304",\u0176:"Y\u
5240302",\u1E8E:"Y\u0307",\u0179:"Z\u0301",\u017D:"Z\u030C",\u1E90:"Z\u0302",\u017B:"Z\u0307",\u03AC:"\u03B1\u0301",\u1F70:"\u03B1\u0300",\u1FB1:"\u03B1\u0304",\u1FB0:"\u03B1\u0306",\u03AD:"\u03B5\u0301",\u1F72:"\u03B5\u0300",\u03AE:"\u03B7\u0301",\u1F74:"\u03B7\u0300",\u03AF:"\u03B9\u0301",\u1F76:"\u03B9\u0300",\u03CA:"\u03B9\u0308",\u0390:"\u03B9\u0308\u0301",\u1FD2:"\u03B9\u0308\u0300",\u1FD1:"\u03B9\u0304",\u1FD0:"\u03B9\u0306",\u03CC:"\u03BF\u0301",\u1F78:"\u03BF\u0300",\u03CD:"\u03C5\u0301",\u1F7A:"\u03C5\u0300",\u03CB:"\u03C5\u0308",\u03B0:"\u03C5\u0308\u0301",\u1FE2:"\u03C5\u0308\u0300",\u1FE1:"\u03C5\u0304",\u1FE0:"\u03C5\u0306",\u03CE:"\u03C9\u0301",\u1F7C:"\u03C9\u0300",\u038E:"\u03A5\u0301",\u1FEA:"\u03A5\u0300",\u03AB:"\u03A5\u0308",\u1FE9:"\u03A5\u0304",\u1FE8:"\u03A5\u0306",\u038F:"\u03A9\u0301",\u1FFA:"\u03A9\u0300"},zy=class e{constructor(t,r){this.mode="math",this.gullet=new V3(t,r,this.mode),this.settings=r,this.leftrightDepth=0,this.nextToken=null}expect(t,r){if(r===void 0&&(r=!0),this.fetch().text!==t)throw new ie("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());r&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var r=this.nextToken;this.consume(),this.gullet.pushToken(new vn("}")),this.gullet.pushTokens(t);var o=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,o}parseExpression(t,r){for(var o=[];;){this.mode==="math"&&this.consumeSpaces();var n=this.fetch();if(e.endOfExpression.has(n.text)||r&&n.text===r||t&&_a[n.text]&&_a[n.text].infix)break;var i=this.parseAtom(r);if(i){if(i.type==="internal")continue}else break;o.push(i)}return this.mode==="text"&&this.formLigatures(o),this.handleInfixNodes(o)}handleInfixNodes(t){for(var r=-1,o,n=0;n<t.length;n++){var i=t[n];if(i.type==="infix"){if(r!==-1)throw new ie("only one infix operator per group",i.token);r=n,o=i.replaceWith}}if(r!==-1&&o){var a,l,c=t.slice(0,r),d=t.slice(r+1);c.length===1&&c[0].type==="ordgroup"?a=c[0]:a={type:"ordgroup",mode:this.mode,body:c},d.length===1&&d[0].type==="ordgroup"?l=d[0]:l={type:"ordgroup",mode:this.mode,body:d};var p;return o==="\\\\abovefrac"?p=this.callFunction(o,[a,t[r],l],[]):p=this.callFunction(o,[a,l],[]),[p]}else return t}handleSupSubscript(t){var r=this.fetch(),o=r.text;this.consume(),this.consumeSpaces();var n;do{var i;n=this.parseGroup(t)}while(((i=n)==null?void 0:i.type)==="internal");if(!n)throw new ie("Expected group after '"+o+"'",r);return n}formatUnsupportedCmd(t){for(var r=[],o=0;o<t.length;o++)r.push({type:"textord",mode:"text",text:t[o]});var n={type:"text",mode:this.mode,body:r},i={type:"color",mode:this.mode,color:this.settings.errorColor,body:[n]};return i}parseAtom(t){var r=this.parseGroup("atom",t);if(r?.type==="internal"||this.mode==="text")return r;for(var o,n;;){this.consumeSpaces();var i=this.fetch();if(i.text==="\\limits"||i.text==="\\nolimits"){if(r&&r.type==="op"){var a=i.text==="\\limits";r.limits=a,r.alwaysHandleSupSub=!0}else if(r&&r.type==="operatorname")r.alwaysHandleSupSub&&(r.limits=i.text==="\\limits");else throw new ie("Limit controls must follow a math operator",i);this.consume()}else if(i.text==="^"){if(o)throw new ie("Double superscript",i);o=this.handleSupSubscript("superscript")}else if(i.text==="_"){if(n)throw new ie("Double subscript",i);n=this.handleSupSubscript("subscript")}else if(i.text==="'"){if(o)throw new ie("Double superscript",i);var l={type:"textord",mode:this.mode,text:"\\prime"},c=[l];for(this.consume();this.fetch().text==="'";)c.push(l),this.consume();this.fetch().text==="^"&&c.push(this.handleSupSubscript("superscript")),o={type:"ordgroup",mode:this.mode,body:c}}else if(by[i.text]){var d=_U.test(i.text),p=[];for(p.push(new vn(by[i.text])),this.consume();;){var m=this.fetch().text;if(!by[m]||_U.test(m)!==d)break;p.unshift(new vn(by[m])),this.consume()}var h=this.subparse(p);d?n={type:"ordgroup",mode:"math",body:h}:o={type:"ordgroup",mode:"math",body:h}}else break}return o||n?{type:"supsub",mode:this.mode,base:r,sup:o,sub:n}:r}parseFunction(t,r){var o=this.fetch(),n=o.text,i=_a[n];if(!i)return null;if(this.consume(),r&&r!=="atom"&&!i.allowedInArgument)throw new ie("Got function '"+n+"' with no arguments"+(r?" as "+r:""),o);if(this.mode==="text"&&!i.allowedInText)throw new ie("Can't use function '"+n+"' in text mode",o);if(this.mode==="math"&&i.allowedInMath===!1)throw new ie("Can't use function '"+n+"' in math mode",o);var{args:a,optArgs:l}=this.parseArguments(n,i);return this.callFunction(n,a,l,o,t)}callFunction(t,r,o,n,i){var a={funcName:t,parser:this,token:n,breakOnTokenText:i},l=_a[t];if(l&&l.handler)return l.handler(a,r,o);throw new ie("No function handler for "+t)}parseArguments(t,r){var o=r.numArgs+r.numOptionalArgs;if(o===0)return{args:[],optArgs:[]};for(var n=[],i=[],a=0;a<o;a++){var l=r.argTypes&&r.argTypes[a],c=a<r.numOptionalArgs;("primitive"in r&&r.primitive&&l==null||r.type==="sqrt"&&a===1&&i[0]==null)&&(l="primitive");var d=this.parseGroupOfType("argument to '"+t+"'",l,c);if(c)i.push(d);else if(d!=null)n.push(d);else throw new ie("Null argument, please report this as a bug")}return{args:n,optArgs:i}}parseGroupOfType(t,r,o){switch(r){case"color":return this.parseColorGroup(o);case"size":return this.parseSizeGroup(o);case"url":return this.parseUrlGroup(o);case"math":case"text":return this.parseArgumentGroup(o,r);case"hbox":{var n=this.parseArgumentGroup(o,"text");return n!=null?{type:"styling",mode:n.mode,body:[n],style:"text"}:null}case"raw":{var i=this.parseStringGroup("raw",o);return i!=null?{type:"raw",mode:"text",string:i.text}:null}case"primitive":{if(o)throw new ie("A primitive argument cannot be optional");var a=this.parseGroup(t);
vendor: 6,423 bytes, lines 524-525
524if(a==null)throw new ie("Expected group as "+t,this.fetch());return a}case"original":case null:case void 0:return this.parseArgumentGroup(o);default:throw new ie("Unknown group type as "+t,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(t,r){var o=this.gullet.scanArgument(r);if(o==null)return null;for(var n="",i;(i=this.fetch()).text!=="EOF";)n+=i.text,this.consume();return this.consume(),o.text=n,o}parseRegexGroup(t,r){for(var o=this.fetch(),n=o,i="",a;(a=this.fetch()).text!=="EOF"&&t.test(i+a.text);)n=a,i+=n.text,this.consume();if(i==="")throw new ie("Invalid "+r+": '"+o.text+"'",o);return o.range(n,i)}parseColorGroup(t){var r=this.parseStringGroup("color",t);if(r==null)return null;var o=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(r.text);if(!o)throw new ie("Invalid color: '"+r.text+"'",r);var n=o[0];return/^[0-9a-f]{6}$/i.test(n)&&(n="#"+n),{type:"color-token",mode:this.mode,color:n}}parseSizeGroup(t){var r,o=!1;if(this.gullet.consumeSpaces(),!t&&this.gullet.future().text!=="{"?r=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):r=this.parseStringGroup("size",t),!r)return null;!t&&r.text.length===0&&(r.text="0pt",o=!0);var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(r.text);if(!n)throw new ie("Invalid size: '"+r.text+"'",r);var i={number:+(n[1]+n[2]),unit:n[3]};if(!$U(i))throw new ie("Invalid unit: '"+i.unit+"'",r);return{type:"size",mode:this.mode,value:i,isBlank:o}}parseUrlGroup(t){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var r=this.parseStringGroup("url",t);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),r==null)return null;var o=r.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:o}}parseArgumentGroup(t,r){var o=this.gullet.scanArgument(t);if(o==null)return null;var n=this.mode;r&&this.switchMode(r),this.gullet.beginGroup();var i=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var a={type:"ordgroup",mode:this.mode,loc:o.loc,body:i};return r&&this.switchMode(n),a}parseGroup(t,r){var o=this.fetch(),n=o.text,i;if(n==="{"||n==="\\begingroup"){this.consume();var a=n==="{"?"}":"\\endgroup";this.gullet.beginGroup();var l=this.parseExpression(!1,a),c=this.fetch();this.expect(a),this.gullet.endGroup(),i={type:"ordgroup",mode:this.mode,loc:tn.range(o,c),body:l,semisimple:n==="\\begingroup"||void 0}}else if(i=this.parseFunction(r,t)||this.parseSymbol(),i==null&&n[0]==="\\"&&!gB.hasOwnProperty(n)){if(this.settings.throwOnError)throw new ie("Undefined control sequence: "+n,o);i=this.formatUnsupportedCmd(n),this.consume()}return i}formLigatures(t){for(var r=t.length-1,o=0;o<r;++o){var n=t[o];if(n.type==="textord"){var i=n.text,a=t[o+1];if(!(!a||a.type!=="textord")){if(i==="-"&&a.text==="-"){var l=t[o+2];o+1<r&&l&&l.type==="textord"&&l.text==="-"?(t.splice(o,3,{type:"textord",mode:"text",loc:tn.range(n,l),text:"---"}),r-=2):(t.splice(o,2,{type:"textord",mode:"text",loc:tn.range(n,a),text:"--"}),r-=1)}(i==="'"||i==="`")&&a.text===i&&(t.splice(o,2,{type:"textord",mode:"text",loc:tn.range(n,a),text:i+i}),r-=1)}}}}parseSymbol(){var t=this.fetch(),r=t.text;if(/^\\verb[^a-zA-Z]/.test(r)){this.consume();var o=r.slice(5),n=o.charAt(0)==="*";if(n&&(o=o.slice(1)),o.length<2||o.charAt(0)!==o.slice(-1))throw new ie(`\\verb assertion failed --
525                    please report what input caused this bug`);return o=o.slice(1,-1),{type:"verb",mode:"text",body:o,star:n}}kU.hasOwnProperty(r[0])&&!Mt[this.mode][r[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+r[0]+'" used in math mode',t),r=kU[r[0]]+r.slice(1));var i=fle.exec(r);i&&(r=r.substring(0,i.index),r==="i"?r="\u0131":r==="j"&&(r="\u0237"));var a;if(Mt[this.mode][r]){this.settings.strict&&this.mode==="math"&&M3.includes(r)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+r[0]+'" used in math mode',t);var l=Mt[this.mode][r].group,c=tn.range(t),d;if(hse.hasOwnProperty(l)){var p=l;d={type:"atom",mode:this.mode,family:p,loc:c,text:r}}else d={type:l,mode:this.mode,loc:c,text:r};a=d}else if(r.charCodeAt(0)>=128)this.settings.strict&&(SU(r.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+r[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),t)),a={type:"textord",mode:"text",loc:tn.range(t),text:r};else return null;if(this.consume(),i)for(var m=0;m<i[0].length;m++){var h=i[0][m];if(!P3[h])throw new ie("Unknown accent ' "+h+"'",t);var g=P3[h][this.mode]||P3[h].text;if(!g)throw new ie("Accent "+h+" unsupported in "+this.mode+" mode",t);a={type:"accent",mode:this.mode,loc:tn.range(t),label:g,isStretchy:!1,isShifty:!0,base:a}}return a}};zy.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var o7=function(t,r){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var o=new zy(t,r);delete o.gullet.macros.current["\\df@tag"];var n=o.parse();if(delete o.gullet.macros.current["\\current@color"],delete o.gullet.macros.current["\\color"],o.gullet.macros.get("\\df@tag")){if(!r.displayMode)throw new ie("\\tag works only in display equations");n=[{type:"tag",mode:"text",body:n,tag:o.subparse([new vn("\\df@tag")])}]}return n},vB=function(t,r,o){r.textContent="";var n=i7(t,o).toNode();r.appendChild(n)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),vB=function(){throw new ie("KaTeX doesn't work in quirks mode.")});var yle=function(t,r){var o=i7(t,r).toMarkup();return o},ble=function(t,r){var o=new cm(r);return o7(t,o)},yB=function(t,r,o){if(o.throwOnError||!(t instanceof ie))throw t;var n=X(["katex-error"],[new Ur(r)]);return n.setAttribute("title",t.toString()),n.setAttribute("style","color:"+o.errorColor),n},i7=function(t,r){var o=new cm(r);try{var n=o7(t,o);return Ese(n,t,o)}catch(i){return yB(i,t,o)}},xle=function(t,r){var o=new cm(r);try{var n=o7(t,o);return Ase(n,t,o)}catch(i){return yB(i,t,o)}},wle="0.16.44",_le={Span:$a,Anchor:Zc,SymbolNode:Ur,SvgNode:ro,PathNode:Eo,LineN
vendor: 6,461 bytes, lines 525-529
525ode:dm},a7={version:wle,render:vB,renderToString:yle,ParseError:ie,SETTINGS_SCHEMA:C3,__parse:ble,__renderToDomTree:i7,__renderToHTMLTree:xle,__setFontMetrics:mse,__defineSymbol:y,__defineFunction:me,__defineMacro:C,__domTree:_le};var kle={},Sle=[];function Fy(e){let t=e||kle;return function(r,o){B$(r,"element",function(n,i){let a=Array.isArray(n.properties.className)?n.properties.className:Sle,l=a.includes("language-math"),c=a.includes("math-display"),d=a.includes("math-inline"),p=c;if(!l&&!c&&!d)return;let m=i[i.length-1],h=n;if(n.tagName==="code"&&l&&m&&m.type==="element"&&m.tagName==="pre"&&(h=m,m=i[i.length-2],p=!0),!m)return;let g=f3(h,{whitespace:"pre"}),w;try{w=a7.renderToString(g,{...t,displayMode:p,throwOnError:!0})}catch(T){let z=T,P=z.name.toLowerCase();o.message("Could not render math with KaTeX",{ancestors:[...i,n],cause:z,place:n.position,ruleId:P,source:"rehype-katex"});try{w=a7.renderToString(g,{...t,displayMode:p,strict:"ignore",throwOnError:!1})}catch{w=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(t.errorColor||"#cc0000"),title:String(T)},children:[{type:"text",value:g}]}]}}typeof w=="string"&&(w=Uj(w,{fragment:!0}).children);let $=m.children.indexOf(h);return m.children.splice($,1,...w),U$})}}function s7(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:i},exit:{mathFlow:n,mathFlowFence:o,mathFlowFenceMeta:r,mathFlowValue:l,mathText:a,mathTextData:l}};function e(c){let d={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[d]}},c)}function t(){this.buffer()}function r(){let c=this.resume(),d=this.stack[this.stack.length-1];d.type,d.meta=c}function o(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function n(c){let d=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),p=this.stack[this.stack.length-1];p.type,this.exit(c),p.value=d;let m=p.data.hChildren[0];m.type,m.tagName,m.children.push({type:"text",value:d}),this.data.mathFlowInside=void 0}function i(c){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},c),this.buffer()}function a(c){let d=this.resume(),p=this.stack[this.stack.length-1];p.type,this.exit(c),p.value=d,p.data.hChildren.push({type:"text",value:d})}function l(c){this.config.enter.data.call(this,c),this.config.exit.data.call(this,c)}}function l7(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),o.peek=n,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
526`,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:r,inlineMath:o}};function r(i,a,l,c){let d=i.value||"",p=l.createTracker(c),m="$".repeat(Math.max(X$(d,"$")+1,2)),h=l.enter("mathFlow"),g=p.move(m);if(i.meta){let w=l.enter("mathFlowMeta");g+=p.move(l.safe(i.meta,{after:`
527`,before:g,encode:["$"],...p.current()})),w()}return g+=p.move(`
528`),d&&(g+=p.move(d+`
529`)),g+=p.move(m),h(),g}function o(i,a,l){let c=i.value||"",d=1;for(t||d++;new RegExp("(^|[^$])"+"\\$".repeat(d)+"([^$]|$)").test(c);)d++;let p="$".repeat(d);/[^ \r\n]/.test(c)&&(/^[ \r\n]/.test(c)&&/[ \r\n]$/.test(c)||/^\$|\$$/.test(c))&&(c=" "+c+" ");let m=-1;for(;++m<l.unsafe.length;){let h=l.unsafe[m];if(!h.atBreak)continue;let g=l.compilePattern(h),w;for(;w=g.exec(c);){let $=w.index;c.codePointAt($)===10&&c.codePointAt($-1)===13&&$--,c=c.slice(0,$)+" "+c.slice(w.index+1)}}return p+c+p}function n(){return"$"}}var xB={tokenize:$le,concrete:!0,name:"mathFlow"},bB={tokenize:Tle,partial:!0};function $le(e,t,r){let o=this,n=o.events[o.events.length-1],i=n&&n[1].type==="linePrefix"?n[2].sliceSerialize(n[1],!0).length:0,a=0;return l;function l(P){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),c(P)}function c(P){return P===36?(e.consume(P),a++,c):a<2?r(P):(e.exit("mathFlowFenceSequence"),vu(e,d,"whitespace")(P))}function d(P){return P===null||Bo(P)?m(P):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(P))}function p(P){return P===null||Bo(P)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),m(P)):P===36?r(P):(e.consume(P),p)}function m(P){return e.exit("mathFlowFence"),o.interrupt?t(P):e.attempt(bB,h,T)(P)}function h(P){return e.attempt({tokenize:z,partial:!0},T,g)(P)}function g(P){return(i?vu(e,w,"linePrefix",i+1):w)(P)}function w(P){return P===null?T(P):Bo(P)?e.attempt(bB,h,T)(P):(e.enter("mathFlowValue"),$(P))}function $(P){return P===null||Bo(P)?(e.exit("mathFlowValue"),w(P)):(e.consume(P),$)}function T(P){return e.exit("mathFlow"),t(P)}function z(P,k,M){let E=0;return vu(P,D,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function D(Z){return P.enter("mathFlowFence"),P.enter("mathFlowFenceSequence"),F(Z)}function F(Z){return Z===36?(E++,P.consume(Z),F):E<a?M(Z):(P.exit("mathFlowFenceSequence"),vu(P,H,"whitespace")(Z))}function H(Z){return Z===null||Bo(Z)?(P.exit("mathFlowFence"),k(Z)):M(Z)}}}function Tle(e,t,r){let o=this;return n;function n(a){return a===null?t(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i)}function i(a){return o.parser.lazy[o.now().line]?r(a):t(a)}}function wB(e){let r=(e||{}).singleDollarTextMath;return r==null&&(r=!0),{tokenize:o,resolve:Ile,previous:Ple,name:"mathText"};function o(n,i,a){let l=this,c=0,d,p;return m;function m(T){return n.enter("mathText"),n.enter("mathTextSequence"),h(T)}function h(T){return T===36?(n.consume(T),c++,h):c<2&&!r?a(T):(n.exit("mathTextSequence"),g(T))}function g(T){return T===null?a(T):T===36?(p=n.enter("mathTextSequence"),d=0,$(T)):T===32?(n.enter("space"),n.consume(T),n.exit("space"),g):Bo(T)?(n.enter("lineEnding"),n.consume(T),n.exit("lineEnding"),g):(n.enter("mathTextData"),w(T))}function w(T){return T===null||T===32||T===36||Bo(T)?(n.exit("mathTextData"),g(T)):(n.consume(T),w)}function $(T){return T===36?(n.consume(T),d++,$):d===c?(n.exit("mathTextSequence"),n.exit("mathText"),i(T)):(p.type="mathTextData",w(T))}}}function Ile(e){let t=e.length-4,r=3,o,n;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(o=r;++o<t;)if(e[o][1].type==="mathTextData"){e[t][1].type="mathTextPadding",e[r][1].type="mathTextPadding",r+=2,t-=2;break}}for(o=r-1,t++;++o<=t;
529)n===void 0?o!==t&&e[o][1].type!=="lineEnding"&&(n=o):(o===t||e[o][1].type==="lineEnding")&&(e[n][1].type="mathTextData",o!==n+2&&(e[n][1].end=e[o-1][1].end,e.splice(n+2,o-n-2),t-=o-n-2,o=n+2),n=void 0);return e}function Ple(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function c7(e){return{flow:{36:xB},text:{36:wB(e)}}}var Cle={};function Zy(e){let t=this,r=e||Cle,o=t.data(),n=o.micromarkExtensions||(o.micromarkExtensions=[]),i=o.fromMarkdownExtensions||(o.fromMarkdownExtensions=[]),a=o.toMarkdownExtensions||(o.toMarkdownExtensions=[]);n.push(c7(r)),i.push(s7()),a.push(l7(r))}function zle(e={}){var t,r;let o=[Zy,{singleDollarTextMath:(t=e.singleDollarTextMath)!=null?t:!1}],n=[Fy,{errorColor:(r=e.errorColor)!=null?r:"var(--color-muted-foreground)"}];return{name:"katex",type:"math",remarkPlugin:o,rehypePlugin:n,getStyles(){return"katex/dist/katex.min.css"}}}var _B=zle();var Ele="11.14.0",Ale=`https://esm.sh/mermaid@${Ele}`,Mle={startOnLoad:!1,theme:"default",securityLevel:"strict",fontFamily:"monospace",suppressErrorRendering:!0},u7=null,d7=!1;function Nle(){return u7||(u7=import(Ale)),u7}var kB={name:"mermaid",type:"diagram",language:"mermaid",getMermaid(e){let t={...Mle,...e};return{initialize(r){Object.assign(t,r),d7=!1},async render(r,o){let i=(await Nle()).default;return d7||(i.initialize(t),d7=!0),i.render(r,o)}}}};var $i=V(Se());var hm=V(le()),SB=({className:e,from:t,...r})=>(0,hm.jsx)("div",{className:Pe("group flex w-full max-w-[95%] flex-col gap-2",t==="user"?"is-user ml-auto justify-end":"is-assistant",e),...r}),$B=({children:e,className:t,...r})=>(0,hm.jsx)("div",{className:Pe("is-user:dark flex w-fit min-w-0 max-w-full flex-col gap-2 overflow-hidden text-sm","group-[.is-user]:ml-auto group-[.is-user]:rounded-lg group-[.is-user]:bg-secondary group-[.is-user]:px-4 group-[.is-user]:py-3 group-[.is-user]:text-foreground","group-[.is-assistant]:text-foreground",t),...r,children:e});var sMe=(0,$i.createContext)(null);var Lle={cjk:$O,code:Dj,math:_B,mermaid:kB},Vy=(0,$i.memo)(({className:e,...t})=>(0,hm.jsx)(Eb,{className:Pe("size-full [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",e),plugins:Lle,...t}),(e,t)=>e.children===t.children&&t.isAnimating===e.isAnimating);Vy.displayName="MessageResponse";var TB="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";var p7=(e=21)=>{let t="",r=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+=TB[r[e]&63];return t};var Be=V(Se());var xMe=V(Se());var pMe=V(Se());var IB=V(le());var PB=V(le());var SMe=V(Se());var jle=V(le());var IMe=V(Se());var gm=V(le());function CB({className:e,...t}){return(0,gm.jsx)("div",{"data-slot":"input-group",role:"group",className:Pe("group/input-group border-input dark:bg-input/30 relative flex w-full items-center rounded-md border shadow-xs transition-[color,box-shadow] outline-none","h-9 has-[>textarea]:h-auto","has-[>[data-align=inline-start]]:[&>input]:pl-2","has-[>[data-align=inline-end]]:[&>input]:pr-2","has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-3","has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3","has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot=input-group-control]:focus-visible]:ring-[3px]","has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[[data-slot][aria-invalid=true]]:border-destructive dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40",e),...t})}var Ule=Ba("text-muted-foreground flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium select-none [&>svg:not([class*='size-'])]:size-4 [&>kbd]:rounded-[calc(var(--radius)-5px)] group-data-[disabled=true]/input-group:opacity-50",{variants:{align:{"inline-start":"order-first pl-3 has-[>button]:ml-[-0.45rem] has-[>kbd]:ml-[-0.35rem]","inline-end":"order-last pr-3 has-[>button]:mr-[-0.45rem] has-[>kbd]:mr-[-0.35rem]","block-start":"order-first w-full justify-start px-3 pt-3 [.border-b]:pb-3 group-has-[>input]/input-group:pt-2.5","block-end":"order-last w-full justify-start px-3 pb-3 [.border-t]:pt-3 group-has-[>input]/input-group:pb-2.5"}},defaultVariants:{align:"inline-start"}});function zB({className:e,align:t="inline-start",...r}){return(0,gm.jsx)("div",{role:"group","data-slot":"input-group-addon","data-align":t,className:Pe(Ule({align:t}),e),onClick:o=>{o.target.closest("button")||o.currentTarget.parentElement?.querySelector("input")?.focus()},...r})}var Ble=Ba("text-sm shadow-none flex gap-2 items-center",{variants:{size:{xs:"h-6 gap-1 px-2 rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-3.5 has-[>svg]:px-2",sm:"h-8 px-2.5 gap-1.5 rounded-md has-[>svg]:px-2.5","icon-xs":"size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0","icon-sm":"size-8 p-0 has-[>svg]:p-0"}},defaultVariants:{size:"xs"}}
529);function EB({className:e,type:t="button",variant:r="ghost",size:o="xs",...n}){return(0,gm.jsx)(pr,{type:t,"data-size":o,variant:r,className:Pe(Ble({size:o}),e),...n})}function AB({className:e,...t}){return(0,gm.jsx)(Cb,{"data-slot":"input-group-control",className:Pe("flex-1 resize-none rounded-none border-0 bg-transparent py-3 shadow-none focus-visible:ring-0 dark:bg-transparent",e),...t})}var ur=V(le()),Fle=async e=>{try{let r=await(await fetch(e)).blob();return new Promise(o=>{let n=new FileReader;n.onloadend=()=>o(n.result),n.onerror=()=>o(null),n.readAsDataURL(r)})}catch{return null}};var Zle=(0,Be.createContext)(null),Vle=(0,Be.createContext)(null);var MB=()=>(0,Be.useContext)(Zle);var Gle=()=>(0,Be.useContext)(Vle);var NB=(0,Be.createContext)(null),qle=()=>{let e=Gle(),r=(0,Be.useContext)(NB)??e;if(!r)throw new Error("usePromptInputAttachments must be used within a PromptInput or PromptInputProvider");return r},Hle=(0,Be.createContext)(null);var RB=({className:e,accept:t,multiple:r,globalDrop:o,syncHiddenInput:n,maxFiles:i,maxFileSize:a,onError:l,onSubmit:c,children:d,...p})=>{let m=MB(),h=!!m,g=(0,Be.useRef)(null),w=(0,Be.useRef)(null),[$,T]=(0,Be.useState)([]),z=h?m.attachments.files:$,[P,k]=(0,Be.useState)([]),M=(0,Be.useRef)(z);(0,Be.useEffect)(()=>{M.current=z},[z]);let E=(0,Be.useCallback)(()=>{g.current?.click()},[]),D=(0,Be.useCallback)(_e=>!t||t.trim()===""?!0:t.split(",").map(de=>de.trim()).filter(Boolean).some(de=>{if(de.endsWith("/*")){let nt=de.slice(0,-1);return _e.type.startsWith(nt)}return _e.type===de}),[t]),F=(0,Be.useCallback)(_e=>{let ve=[..._e],de=ve.filter(or=>D(or));if(ve.length&&de.length===0){l?.({code:"accept",message:"No files match the accepted types."});return}let nt=or=>a?or.size<=a:!0,Dt=de.filter(nt);if(de.length>0&&Dt.length===0){l?.({code:"max_file_size",message:"All files exceed the maximum size."});return}T(or=>{let Vt=typeof i=="number"?Math.max(0,i-or.length):void 0,hr=typeof Vt=="number"?Dt.slice(0,Vt):Dt;typeof Vt=="number"&&Dt.length>Vt&&l?.({code:"max_files",message:"Too many files. Some were not added."});let Ir=[];for(let no of hr)Ir.push({filename:no.name,id:p7(),mediaType:no.type,type:"file",url:URL.createObjectURL(no)});return[...or,...Ir]})},[D,i,a,l]),H=(0,Be.useCallback)(_e=>T(ve=>{let de=ve.find(nt=>nt.id===_e);return de?.url&&URL.revokeObjectURL(de.url),ve.filter(nt=>nt.id!==_e)}),[]),Z=(0,Be.useCallback)(_e=>{let ve=[..._e],de=ve.filter(Ir=>D(Ir));if(ve.length&&de.length===0){l?.({code:"accept",message:"No files match the accepted types."});return}let nt=Ir=>a?Ir.size<=a:!0,Dt=de.filter(nt);if(de.length>0&&Dt.length===0){l?.({code:"max_file_size",message:"All files exceed the maximum size."});return}let or=z.length,Vt=typeof i=="number"?Math.max(0,i-or):void 0,hr=typeof Vt=="number"?Dt.slice(0,Vt):Dt;typeof Vt=="number"&&Dt.length>Vt&&l?.({code:"max_files",message:"Too many files. Some were not added."}),hr.length>0&&m?.attachments.add(hr)},[D,a,i,l,z.length,m]),W=(0,Be.useCallback)(()=>h?m?.attachments.clear():T(_e=>{for(let ve of _e)ve.url&&URL.revokeObjectURL(ve.url);return[]}),[h,m]),ke=(0,Be.useCallback)(()=>k([]),[]),ge=h?Z:F,xt=h?m.attachments.remove:H,Ie=h?m.attachments.openFileDialog:E,We=(0,Be.useCallback)(()=>{W(),ke()},[W,ke]);(0,Be.useEffect)(()=>{h&&m.__registerFileInput(g,()=>g.current?.click())},[h,m]),(0,Be.useEffect)(()=>{n&&g.current&&z.length===0&&(g.current.value="")},[z,n]),(0,Be.useEffect)(()=>{let _e=w.current;if(!_e||o)return;let ve=nt=>{nt.dataTransfer?.types?.includes("Files")&&nt.preventDefault()},de=nt=>{nt.dataTransfer?.types?.includes("Files")&&nt.preventDefault(),nt.dataTransfer?.files&&nt.dataTransfer.files.length>0&&ge(nt.dataTransfer.files)};return _e.addEventListener("dragover",ve),_e.addEventListener("drop",de),()=>{_e.removeEventListener("dragover",ve),_e.removeEventListener("drop",de)}},[ge,o]),(0,Be.useEffect)(()=>{if(!o)return;let _e=de=>{de.dataTransfer?.types?.includes("Files")&&de.preventDefault()},ve=de=>{de.dataTransfer?.types?.includes("Files")&&de.preventDefault(),de.dataTransfer?.files&&de.dataTransfer.files.length>0&&ge(de.dataTransfer.files)};return document.addEventListener("dragover",_e),document.addEventListener("drop",ve),()=>{document.removeEventListener("dragover",_e),document.removeEventListener("drop",ve)}},[ge,o]),(0,Be.useEffect)(()=>()=>{if(!h)for(let _e of M.current)_e.url&&URL.revokeObjectURL(_e.url)},[h]);let we=(0,Be.useCallback)(_e=>{let ve=_e.currentTarget;ve.files&&ge(ve.files),ve.value=""},[ge]),xn=(0,Be.useMemo)(()=>({add:ge,clear:W,fileInputRef:g,files:z.map(_e=>({..._e,id:_e.id})),openFileDialog:Ie,remove:xt}),[z,ge,xt,W,Ie]),fe=(0,Be.useMemo)(()=>({add:_e=>{let ve=Array.isArray(_e)?_e:[_e];k(de=>[...de,...ve.map(nt=>({...nt,id:p7()}))])},clear:ke,remove:_e=>{k(ve=>ve.filter(de=>de.id!==_e))},sources:P}),[P,ke]),Ze=(0,Be.useCallback)(async _e=>{_e.preventDefault();let ve=_e.currentTarget,de=h?m.textInput.value:new FormData(ve).get("message")||"";h||ve.reset();try{let nt=await Promise.all(z.map(async({id:or,...Vt})=>{if(Vt.url?.startsWith("blob:")){let hr=await Fle(Vt.url);return{...Vt,url:hr??Vt.url}}return Vt})),Dt=c({files:nt,text:de},_e);if(Dt instanceof Promise)try{await Dt,We(),h&&m.textInput.clear()}catch{}else We(),h&&m.textInput.clear()}catch{}},[h,m,z,c,We]),st=(0,ur.jsxs)(ur.Fragment,{children:[(0,ur.jsx)("input",{accept:t,"aria-label":"Upload files",className:"hidden",multiple:r,onChange:we,ref:g,title:"Upload files",type:"file"}),(0,ur.jsx)("form",{className:Pe("w-full",e),onSubmit:Ze,ref:w,...p,children:(0,ur.jsx)(CB,{className:"overflow-hidden",children:d})})]}),lt=(0,ur.jsx)(Hle.Provider,{value:fe,children:st});return(0,ur.jsx)(NB.Provider,{value:xn,children:lt})},DB=({className:e,...t})=>(0,ur.jsx)("div",{className:Pe("contents",e),...t}),OB=({onChange:e,onKeyDown:t,className:r,placeholder:o="What would you like to know?",...n})=>{let i=MB(),a=qle(),[l,c]=(0,Be.useState)(!1),d=(0,Be.useCallback)(w=>{if(t?.(w),!w.defaultPrevented){if(w.key==="Enter"){if(l||w.nativeEvent.isComposing||w.shiftKey)return;w.preventDefault();let{form:$}=w.currentTarget;if($?.querySelector('button[type="submit"]')?.disabled)return;$?.requestSubmit()}if(w.key==="Backspace"&&w.currentTarget.value===""&&a.files.length>0){w.preventDefault();let $=a.files.at(-1);$&&a.remove($.id)}}},[t,l,a]),p=(0,Be.useCallback)(w=>{let $=w.clipboardData?.items;if(!$)return;let T=[];for(let z of $)if(z.kind==="file"){let P=z.getAsFile();P&&T.push(P)}T.length>0&&(w.preventDefault(),a.add(T))},[a]),m=(0,Be.useCallback)(()=>c(!1),[]),h=(0,Be.useCallback)(()=>c(!0),[]),g=i?{onChange:w=>{i.textInput.setInput(w.currentTarget.value),e?.(w)},value:i.textInput.value}:{onChange:e};return(0,ur.jsx)(AB,{className:Pe("field-sizing-content max-h-48 min-h-16 resize-y",r),name:"message",onCompositionEnd:m,onCompositionStart:h,onKeyDown:d,onPaste:p,placeholder:o,...n,...g})};var LB=({className:e,...t})=>
529(0,ur.jsx)(zB,{align:"block-end",className:Pe("justify-between gap-1",e),...t}),jB=({className:e,...t})=>(0,ur.jsx)("div",{className:Pe("flex min-w-0 items-center gap-1",e),...t});var UB=({className:e,variant:t="default",size:r="icon-sm",status:o,onStop:n,onClick:i,children:a,...l})=>{let c=o==="submitted"||o==="streaming",d=(0,ur.jsx)(z$,{className:"size-4"});o==="submitted"?d=(0,ur.jsx)(dx,{}):o==="streaming"?d=(0,ur.jsx)(M$,{className:"size-4"}):o==="error"&&(d=(0,ur.jsx)(Hm,{className:"size-4"}));let p=(0,Be.useCallback)(m=>{if(c&&n){m.preventDefault(),n();return}i?.(m)},[c,n,i]);return(0,ur.jsx)(EB,{"aria-label":c?"Stop":"Submit",className:Pe(e),onClick:p,size:r,type:c&&n?"button":"submit",variant:t,...l,children:a??d})};var BB=V(Se()),Wc=V(le()),FB=({className:e,children:t,...r})=>(0,Wc.jsxs)(ux,{className:"w-full overflow-x-auto whitespace-nowrap",...r,children:[(0,Wc.jsx)("div",{className:Pe("flex w-max flex-nowrap items-center gap-2",e),children:t}),(0,Wc.jsx)(Mh,{className:"hidden",orientation:"horizontal"})]}),ZB=({suggestion:e,onClick:t,className:r,variant:o="outline",size:n="sm",children:i,...a})=>{let l=(0,BB.useCallback)(()=>{t?.(e)},[t,e]);return(0,Wc.jsx)(pr,{className:Pe("cursor-pointer rounded-full px-4",r),onClick:l,size:n,type:"button",variant:o,...a,children:i||e})};var mt=V(le()),VB=["What can you help me with?","Give me a quick overview","Summarize what I have here","What should I look at first?"];function Wle(e){return e.parts.filter(t=>t.type==="text").map(t=>t.text).join("")}function Jle(e){return e.parts.some(t=>eo(t))}var Kle={"input-streaming":"Working on it...","input-available":"Working on it...","approval-requested":"Needs your approval","approval-responded":"Working on it...","output-available":"Done","output-error":"Something went wrong","output-denied":"Skipped"};function Xle(e){return WD(e).split(/[_\s-]+/).filter(Boolean).map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ")}function m7({messages:e,onSend:t,busy:r=!1,status:o,onStop:n,onApprove:i,errorMessage:a,suggestions:l=VB,title:c="Assistant",placeholder:d="Ask me anything\u2026",emptyTitle:p="How can I help?",emptyDescription:m="Ask a question or pick a starter below.",className:h}){let g=e.length===0,w=o??(r?"submitted":void 0),$=T=>{let z=T.text.trim();if(!(!z||r))return t(z)};return(0,mt.jsxs)(Uo,{className:Pe("bg-card text-card-foreground flex h-full min-h-0 flex-col overflow-hidden",h),children:[(0,mt.jsxs)("div",{className:"flex items-center gap-2 border-b px-4 py-3",children:[(0,mt.jsx)(Pb,{className:"text-muted-foreground size-4","aria-hidden":!0}),(0,mt.jsx)("span",{className:"text-foreground text-sm font-semibold",children:c})]}),(0,mt.jsxs)(nO,{children:[(0,mt.jsx)(oO,{children:g?(0,mt.jsx)(iO,{title:p,description:m,icon:(0,mt.jsx)(Pb,{className:"size-6","aria-hidden":!0})}):e.map(T=>(0,mt.jsx)(SB,{from:T.role,children:(0,mt.jsx)($B,{children:Jle(T)?T.parts.map((z,P)=>z.type==="text"?(0,mt.jsx)(Vy,{children:z.text},P):eo(z)?(0,mt.jsxs)("div",{className:"text-muted-foreground my-1 flex flex-wrap items-center gap-2 text-xs",children:[(0,mt.jsxs)("span",{className:"italic",children:[Xle(z)," \xB7 ",Kle[z.state]]}),z.state==="approval-requested"&&z.approval!=null&&i!=null?(0,mt.jsxs)("span",{className:"flex gap-1.5",children:[(0,mt.jsx)(pr,{type:"button",size:"sm",onClick:()=>i(z.approval.id,!0),children:"Approve"}),(0,mt.jsx)(pr,{type:"button",size:"sm",variant:"outline",onClick:()=>i(z.approval.id,!1),children:"Deny"})]}):null]},P):null):(0,mt.jsx)(Vy,{children:Wle(T)})})},T.id))}),(0,mt.jsx)(aO,{})]}),a!=null&&a!==""?(0,mt.jsx)("p",{className:"text-destructive px-4 pb-2 text-xs",role:"alert",children:a}):null,l.length>0?(0,mt.jsx)("div",{className:"px-4 pb-2",children:(0,mt.jsx)(FB,{children:l.map(T=>(0,mt.jsx)(ZB,{suggestion:T,onClick:t,disabled:r},T))})}):null,(0,mt.jsx)("div",{className:"p-4 pt-0",children:(0,mt.jsxs)(RB,{onSubmit:$,children:[(0,mt.jsx)(DB,{children:(0,mt.jsx)(OB,{placeholder:d,disabled:r})}),(0,mt.jsxs)(LB,{children:[(0,mt.jsx)(jB,{}),(0,mt.jsx)(UB,{status:w,onStop:n})]})]})})]})}var jn=V(Se(),1);var WB=V(qB(),1);
529var xm=V(Se(),1);var Wy=V(Se(),1);var HB=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},Pt=(e,t,r)=>(HB(e,t,"read from private field"),r?r.call(e):t.get(e)),Ro=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},Ca=(e,t,r,o)=>(HB(e,t,"write to private field"),o?o.call(e,r):t.set(e,r),r);function Qle(e,t){return t!=null?(0,WB.default)(e,t):e}var Ln,Gy,qy,vm,ym,bm,Jc,f7,h7,ece=class{constructor(e=[]){Ro(this,Ln,void 0),Ro(this,Gy,"ready"),Ro(this,qy,void 0),Ro(this,vm,new Set),Ro(this,ym,new Set),Ro(this,bm,new Set),this.pushMessage=t=>{Ca(this,Ln,Pt(this,Ln).concat(t)),Pt(this,Jc).call(this)},this.popMessage=()=>{Ca(this,Ln,Pt(this,Ln).slice(0,-1)),Pt(this,Jc).call(this)},this.replaceMessage=(t,r)=>{Ca(this,Ln,[...Pt(this,Ln).slice(0,t),this.snapshot(r),...Pt(this,Ln).slice(t+1)]),Pt(this,Jc).call(this)},this.snapshot=t=>structuredClone(t),this["~registerMessagesCallback"]=(t,r)=>{let o=r?Qle(t,r):t;return Pt(this,vm).add(o),()=>{Pt(this,vm).delete(o)}},this["~registerStatusCallback"]=t=>(Pt(this,ym).add(t),()=>{Pt(this,ym).delete(t)}),this["~registerErrorCallback"]=t=>(Pt(this,bm).add(t),()=>{Pt(this,bm).delete(t)}),Ro(this,Jc,()=>{Pt(this,vm).forEach(t=>t())}),Ro(this,f7,()=>{Pt(this,ym).forEach(t=>t())}),Ro(this,h7,()=>{Pt(this,bm).forEach(t=>t())}),Ca(this,Ln,e)}get status(){return Pt(this,Gy)}set status(e){Ca(this,Gy,e),Pt(this,f7).call(this)}get error(){return Pt(this,qy)}set error(e){Ca(this,qy,e),Pt(this,h7).call(this)}get messages(){return Pt(this,Ln)}set messages(e){Ca(this,Ln,[...e]),Pt(this,Jc).call(this)}};Ln=new WeakMap;Gy=new WeakMap;qy=new WeakMap;vm=new WeakMap;ym=new WeakMap;bm=new WeakMap;Jc=new WeakMap;f7=new WeakMap;h7=new WeakMap;var Kc,Hy=class extends KD{constructor({messages:e,...t}){let r=new ece(e);super({...t,state:r}),Ro(this,Kc,void 0),this["~registerMessagesCallback"]=(o,n)=>Pt(this,Kc)["~registerMessagesCallback"](o,n),this["~registerStatusCallback"]=o=>Pt(this,Kc)["~registerStatusCallback"](o),this["~registerErrorCallback"]=o=>Pt(this,Kc)["~registerErrorCallback"](o),Ca(this,Kc,r)}};Kc=new WeakMap;function JB({experimental_throttle:e,resume:t=!1,...r}={}){let o=(0,jn.useRef)("chat"in r?{}:{onToolCall:r.onToolCall,onData:r.onData,onFinish:r.onFinish,onError:r.onError,sendAutomaticallyWhen:r.sendAutomaticallyWhen});"chat"in r||(o.current={onToolCall:r.onToolCall,onData:r.onData,onFinish:r.onFinish,onError:r.onError,sendAutomaticallyWhen:r.sendAutomaticallyWhen});let n={...r,onToolCall:h=>{var g,w;return(w=(g=o.current).onToolCall)==null?void 0:w.call(g,h)},onData:h=>{var g,w;return(w=(g=o.current).onData)==null?void 0:w.call(g,h)},onFinish:h=>{var g,w;return(w=(g=o.current).onFinish)==null?void 0:w.call(g,h)},onError:h=>{var g,w;return(w=(g=o.current).onError)==null?void 0:w.call(g,h)},sendAutomaticallyWhen:h=>{var g,w,$;return($=(w=(g=o.current).sendAutomaticallyWhen)==null?void 0:w.call(g,h))!=null?$:!1}},i=(0,jn.useRef)("chat"in r?r.chat:new Hy(n));("chat"in r&&r.chat!==i.current||"id"in r&&i.current.id!==r.id)&&(i.current="chat"in r?r.chat:new Hy(n));let l=(0,jn.useCallback)(h=>i.current["~registerMessagesCallback"](h,e),[e,i.current.id]),c=(0,jn.useSyncExternalStore)(l,()=>i.current.messages,()=>i.current.messages),d=(0,jn.useSyncExternalStore)(i.current["~registerStatusCallback"],()=>i.current.status,()=>i.current.status),p=(0,jn.useSyncExternalStore)(i.current["~registerErrorCallback"],()=>i.current.error,()=>i.current.error),m=(0,jn.useCallback)(h=>{typeof h=="function"&&(h=h(i.current.messages)),i.current.messages=h},[i]);return(0,jn.useEffect)(()=>{t&&i.current.resumeStream()},[t,i]),{id:i.current.id,messages:c,setMessages:m,sendMessage:i.current.sendMessage,regenerate:i.current.regenerate,clearError:i.current.clearError,stop:i.current.stop,error:p,resumeStream:i.current.resumeStream,status:d,addToolResult:i.current.addToolOutput,addToolOutput:i.current.addToolOutput,addToolApprovalResponse:i.current.addToolApprovalResponse}}var Ii=V(Se());function wm(e){if(!Xc(e))throw new Error("Parameter was not an error")}function Xc(e){return!!e&&typeof e=="object"&&tce(e)==="[object Error]"||e instanceof Error}function tce(e){return Object.prototype.toString.call(e)}var rce="Layerr",nce=rce;function g7(){return nce}function KB(e){let t,r="";if(e.length===0)t={};else if(Xc(e[0]))t={cause:e[0]},r=e.slice(1).join(" ")||"";else if(e[0]&&typeof e[0]=="object")t=Object.assign({},e[0]),r=e.slice(1).join(" ")||"";else if(typeof e[0]=="string")t={},r=r=e.join(" ")||"";else throw new Error("Invalid arguments passed to Layerr");return{options:t,shortMessage:r}}
529var Ti=class e extends Error{constructor(t,r){let o=[...arguments],{options:n,shortMessage:i}=KB(o),a=i;if(n.cause&&(a=`${a}: ${n.cause.message}`),super(a),this.message=a,n.name&&typeof n.name=="string"?this.name=n.name:this.name=g7(),n.cause&&Object.defineProperty(this,"_cause",{value:n.cause}),Object.defineProperty(this,"_info",{value:{}}),n.info&&typeof n.info=="object"&&Object.assign(this._info,n.info),Error.captureStackTrace){let l=n.constructorOpt||this.constructor;Error.captureStackTrace(this,l)}}static cause(t){return wm(t),t._cause&&Xc(t._cause)?t._cause:null}static fullStack(t){wm(t);let r=e.cause(t);return r?`${t.stack}
530caused by: ${e.fullStack(r)}`:t.stack??""}static info(t){wm(t);let r={},o=e.cause(t);return o&&Object.assign(r,e.info(o)),t._info&&Object.assign(r,t._info),r}toString(){let t=this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(t=`${t}: ${this.message}`),t}};var YB="0123456789ABCDEFGHJKMNPQRSTVWXYZ",km=32,XB=0xffffffffffff,oce=10,ice=16,_m=Object.freeze({source:"ulid"});function ace(e){let t=e||sce(),r=t&&(t.crypto||t.msCrypto)||null;if(typeof r?.getRandomValues=="function")return()=>{let o=new Uint8Array(1);return r.getRandomValues(o),o[0]/255};if(typeof r?.randomBytes=="function")return()=>r.randomBytes(1).readUInt8()/255;throw new Ti({info:{code:"PRNG_DETECT",..._m}},"Failed to find a reliable PRNG")}function sce(){return uce()?self:typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:null}function lce(e,t){let r="";for(;e>0;e--)r=dce(t)+r;return r}function cce(e,t){if(isNaN(e))throw new Ti({info:{code:"ENC_TIME_NAN",..._m}},`Time must be a number: ${e}`);if(e>XB)throw new Ti({info:{code:"ENC_TIME_SIZE_EXCEED",..._m}},`Cannot encode a time larger than ${XB}: ${e}`);if(e<0)throw new Ti({info:{code:"ENC_TIME_NEG",..._m}},`Time must be positive: ${e}`);if(Number.isInteger(e)===!1)throw new Ti({info:{code:"ENC_TIME_TYPE",..._m}},`Time must be an integer: ${e}`);let r,o="";for(let n=t;n>0;n--)r=e%km,o=YB.charAt(r)+o,e=(e-r)/km;return o}function uce(){return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope}function dce(e){let t=Math.floor(e()*km);return t===km&&(t=km-1),YB.charAt(t)}function Jy(e,t){let r=t||ace(),o=isNaN(e)?Date.now():e;return cce(o,oce)+lce(ice,r)}function pce(e){return e==null||e.trim().length===0}async function v7(e,t){if(pce(e))throw new Error("Agent ID cannot be empty");let o=`${t?.baseUrl??""}/api/taskade/agents/${encodeURIComponent(e)}/public-conversations`,n=await fetch(o,{method:"POST",headers:{"Content-Type":"application/json"}}),i=n.headers.get("content-type")||"",a=await n.text().catch(()=>"");if(!n.ok)throw new Error(`Failed to create conversation: ${n.status} ${a||"Unknown error"}`);if(!i.includes("application/json"))throw new Error(`Invalid response format: expected JSON, got ${i}. Response: ${a.substring(0,100)}`);try{return JSON.parse(a)}catch(l){throw new Error(`Failed to parse JSON response: ${l instanceof Error?l.message:"Unknown error"}. Response: ${a.substring(0,200)}`)}}function mce(e){if(e.length===0)return{history:e,messages:[]};let t=e.length-1,r=e[t];if(r==null)return{history:e,messages:[]};if(r.role==="user")return{history:e.slice(0,t),messages:[r]};if(r.role==="assistant"){let n=r.parts;if(n!=null&&n.length>0){let i=n[n.length-1];if(i!=null&&eo(i)&&(i.state==="output-available"||i.state==="output-error"))return{history:e.slice(0,t),messages:[r]}}}return{history:e.slice(0,t),messages:[r]}}var fce=6;function y7(e,t,r){let n=`${r?.baseUrl??""}/api/taskade/agents/${encodeURIComponent(e)}/public-conversations/${encodeURIComponent(t)}/chat`,i=new Hy({messages:[],transport:new dS({api:n,prepareSendMessagesRequest:a=>{let{history:l,messages:c}=mce(a.messages),d=Math.max(0,fce-c.length),p=d===0?[]:l.slice(-d);return{body:{messages:c,history:p}}}}),id:t,generateId:Jy,sendAutomaticallyWhen:a=>!(!(YD(a)||XD(a))||i.error!=null)});return i}var Ct=V(le()),hce={1:"bg-chart-1",2:"bg-chart-2",3:"bg-chart-3",4:"bg-chart-4",5:"bg-chart-5"};function b7({agentId:e,publicAgentId:t,title:r="Assistant",accent:o,suggestions:n,placeholder:i,defaultOpen:a=!1,className:l}){let[c,d]=(0,Ii.useState)(a),[p,m]=(0,Ii.useState)(null),[h,g]=(0,Ii.useState)(!1),[w,$]=(0,Ii.useState)(!1),T=e!=null&&e!=="",z=t!=null&&t!==""?`https://www.taskade.com/a/${encodeURIComponent(t)}`:null,P=(0,Ii.useCallback)(async()=>
530{if(!(!T||p!=null||w)){$(!0);try{let{conversationId:M}=await v7(e);m(y7(e,M)),g(!1)}catch{g(!0)}finally{$(!1)}}},[T,p,w,e]);if((0,Ii.useEffect)(()=>{c&&T&&p==null&&!h&&!w&&P()},[c,T,p,h,w,P]),!T&&z==null)return null;let k=()=>{d(!0),P()};return(0,Ct.jsxs)(Ct.Fragment,{children:[(0,Ct.jsx)(H1,{children:c?(0,Ct.jsxs)(Ct.Fragment,{children:[(0,Ct.jsx)("div",{className:"bg-foreground/20 fixed inset-0 z-40 sm:hidden",onClick:()=>d(!1),"aria-hidden":!0}),(0,Ct.jsx)(rx.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},exit:{opacity:0,y:16},className:Pe("fixed inset-0 z-50 h-full w-full sm:inset-auto sm:bottom-6 sm:right-6 sm:h-[600px] sm:w-[400px]",l),children:(0,Ct.jsxs)("div",{className:"bg-card text-card-foreground flex h-full flex-col overflow-hidden border shadow-lg sm:rounded-xl",children:[(0,Ct.jsxs)("div",{className:"flex items-center justify-between border-b px-4 py-3",children:[(0,Ct.jsx)("span",{className:"text-foreground text-sm font-semibold",children:r}),(0,Ct.jsx)(pr,{variant:"ghost",size:"icon",onClick:()=>d(!1),"aria-label":"Close chat",children:(0,Ct.jsx)(Hm,{className:"size-4","aria-hidden":!0})})]}),T&&p!=null?(0,Ct.jsx)(gce,{chat:p,title:r,suggestions:n,placeholder:i}):T&&h?(0,Ct.jsxs)("div",{className:"flex flex-1 flex-col items-center justify-center gap-3 p-6 text-center",children:[(0,Ct.jsx)("p",{className:"text-muted-foreground text-sm",children:"The assistant is warming up - try again."}),(0,Ct.jsx)(pr,{onClick:()=>{P()},disabled:w,children:"Try again"}),z!=null?(0,Ct.jsx)("a",{href:z,target:"_blank",rel:"noreferrer",className:"text-muted-foreground text-xs underline",children:"Open hosted chat"}):null]}):T?(0,Ct.jsx)("div",{className:"text-muted-foreground flex flex-1 items-center justify-center text-sm",children:"Connecting..."}):z!=null?(0,Ct.jsx)("iframe",{src:z,title:r,allow:"clipboard-read; clipboard-write",className:"h-full w-full flex-1 border-0"}):null]})})]}):null}),c?null:(0,Ct.jsx)(pr,{onClick:k,"aria-label":`Open ${r}`,className:Pe("fixed bottom-6 right-6 z-50 size-14 rounded-full shadow-lg",o!=null?hce[o]:"bg-primary text-primary-foreground"),children:(0,Ct.jsx)(A$,{className:"size-6","aria-hidden":!0})})]})}function gce({chat:e,title:t,suggestions:r,placeholder:o}){let{messages:n,status:i,stop:a,error:l,addToolApprovalResponse:c}=JB({chat:e,id:e.id});return(0,Ct.jsx)(m7,{messages:n,onSend:async m=>{try{await e.sendMessage({id:Jy(),role:"user",parts:[{type:"text",text:m}]})}catch{}},busy:i==="submitted"||i==="streaming",status:i,onStop:a,errorMessage:l!=null?"Something went wrong - please try again.":void 0,onApprove:(m,h)=>c({id:m,approved:h}),title:t,suggestions:r,placeholder:o,className:"rounded-none border-0"})}var Sm=V(Se());var nRe=V(Se());var QB=V(le());var aRe=V(Se());var vce=V(le());var eF=V(le());var x7=V(le());var GRe=V(Se());var MRe=V(Se());var yce=V(le());var DRe=V(Se());var bce=V(le());var tF=V(le());var Rt=V(le()),xce=(0,za.lazy)(()=>import("/chunks/LoginPage-NBM4K5ZU.js")),wce=(0,za.lazy)(()=>import("/chunks/Dashboard-KTXLKMOO.js")),_ce=(0,za.lazy)(()=>import("/chunks/ResidentDetail-GCGE2722.js")),kce=(0,za.lazy)(()=>import("/chunks/AdminPanel-DKXS6PXT.js")),Sce=(0,za.lazy)(()=>import("/chunks/MonthlyReport-FPFSHHYG.js"));function $ce(){let e=qm();return(0,za.useEffect)(()=>{document.title=eT},[]),e.isLoading?(0,Rt.jsx)("div",{className:"flex min-h-screen items-center justify-center bg-background",children:(0,Rt.jsx)("div",{className:"genesis__spinner-ring"})}):e.isAuthenticated?(0,Rt.jsxs)(P$,{children:[(0,Rt.jsxs)(I$,{children:[(0,Rt.jsx)(Ws,{path:"/",element:(0,Rt.jsx)(xu,{name:"Dashboard",children:(0,Rt.jsx)(wce,{})})}),(0,Rt.jsx)(Ws,{path:"/residente/:id",element:(0,Rt.jsx)(xu,{name:"Detalhes",children:(0,Rt.jsx)(_ce,{})})}),(0,Rt.jsx)(Ws,{path:"/admin",element:(0,Rt.jsx)(xu,{name:"Admin",children:(0,Rt.jsx)(kce,{})})}),(0,Rt.jsx)(Ws,{path:"/relatorio/:id",element:(0,Rt.jsx)(xu,{name:"Relat\xF3rio",children:(0,Rt.jsx)(Sce,{})})}),(0,Rt.jsx)(Ws,{path:"*",element:(0,Rt.jsx)(T$,{to:"/",replace:!0})})]}),(0,Rt.jsx)(b7,{agentId:Y$,publicAgentId:Q$,title:"Assistente Casa Idman",accent:4})]}):(0,Rt.jsx)(xce,{})}var Tce=function(){return(0,Rt.jsx)(pT,{children:(0,Rt.jsx)($ce,{})})},rF=Tce;var nF="taskade-theme-overrides";function Ice(e){let t=e.trim().split(/\s+/);if(t.length<3)return null;let r=parseFloat(t[0]),o=parseFloat(t[1]),n=parseFloat(t[2]);return isNaN(r)||isNaN(o)||isNaN(n)?null:{h:r,s:o,l:n}}function Pce(e,t){let r=Ice(t);if(r==null)return t;let{h:o,s:n,l:i}=r;if(e==="--radius")return t;let a,l=n;return["--background","--card","--popover"].includes(e)?a=Math.max(3,Math.min(8,100-i)):["--foreground","--card-foreground","--popover-foreground"].includes(e)?a=Math.min(95,Math.max(85,100-i)):e==="--primary"?a=i<=50?Math.min(98,100-i):Math.max(2,100-i):e==="--primary-foreground"?a=i>50?Math.max(2,100-i):Math.min(98,100-i):["--accent","--muted","--border","--input","--ring"].includes(e)?(a=Math.max(10,Math.min(20,100-i)),l=Math.min(n,50)):e==="--accent-foreground"||e==="--muted-foreground"?a=Math.min(98,Math.max(55,100-i)):e==="--secondary"||e==="--secondary-foreground"?a=i>50?Math.max(8,100-i):Math.min(98,100-i):e==="--destructive"?(a=Math.max(25,i*.65),l=Math.min(n,70)):e==="--destructive-foreground"?a=Math.min(98,Math.max(90,100-i)):a=100-i,`${o} ${l}% ${Math.round(a)}%`}function oF(e,t){let r=Object.entries(t).map(([o,n])=>`  ${o}: ${n};`).join(`
531`);return`${e} {
532${r}
533}`}function iF(){let e=new Set;window.addEventListener("message",t=>{if(t.source===window.parent){if(t.data?.type==="TASKADE_THEME_UPDATE"){let r=t.data.data?.vars;if(r==null)return;let o=new Set(e),n={},i={};e.clear();for(let[l,c]of Object.entries(r))c!==""&&(n[l]=c,i[l]=Pce(l,c),e.add(l));for(let l of o)document.documentElement.style.removeProperty(l);let a=document.getElementById(nF);Object.keys(n).length===0?a?.remove():(a==null&&(a=document.createElement("style"),a.id=nF,document.head.appendChild(a)),a.textContent=[oF(":root",n),oF(".dark",i)].join(`
534
535`)),window.parent.postMessage({type:"TASKADE_THEME_APPLIED"},"*");return}if(t.data?.type==="TASKADE_THEME_READ"){let r=t.data.data?.keys;if(r==null)return;let o=getComputedStyle(document.documentElement),n={};for(let i of r){let a=o.getPropertyValue(i).trim();a&&(n[i]=a)}window.parent.postMessage({type:"TASKADE_THEME_CURRENT",data:{vars:n}},"*");return}}})}var Pi=V(le());iF();var sF=document.getElementById("root");function Cce(){for(let e of sF.querySelectorAll("script:not([src])")){let t=e.textContent??"";if(t.includes("documentElement")&&t.includes("localStorage"))return!0}return!1}function zce(){try{let e=document.cookie.match(/(?:^|;\s*)director-preview-access-token=([^;
535]+)/),t=new URLSearchParams(window.location.search).get("accessToken")??window.sessionStorage.getItem("director-preview-access-token")??(e?e[1]:null);if(t!=null){let r=t.split("."),o=r.length===3?r[1]:null;if(o!=null){let n=JSON.parse(atob(o.replace(/-/g,"+").replace(/_/g,"/")));if(n!=null&&n.appId!=null)return`theme:${n.spaceId}:${n.appId}`}}}catch{}return"theme"}var Ece=zce();function Ace({children:e}){let[t,r]=(0,Yc.useState)(!1);return(0,Yc.useLayoutEffect)(()=>{Cce()||r(!0)},[]),t?(0,Pi.jsx)(k$,{attribute:"class",defaultTheme:"dark",enableSystem:!1,disableTransitionOnChange:!0,storageKey:Ece,children:e}):(0,Pi.jsx)(Pi.Fragment,{children:e})}(0,aF.createRoot)(sF).render((0,Pi.jsx)(Yc.StrictMode,{children:(0,Pi.jsx)(wT,{children:(0,Pi.jsx)(Ace,{children:(0,Pi.jsx)(rF,{})})})}));
536/*! Bundled license information:
537
538leaflet/dist/leaflet-src.js:
539  (* @preserve
540   * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
541   * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
542   *)
543
544use-stick-to-bottom/dist/useStickToBottom.js:
545use-stick-to-bottom/dist/StickToBottom.js:
546  (*!---------------------------------------------------------------------------------------------
547   *  Copyright (c) StackBlitz. All rights reserved.
548   *  Licensed under the MIT License. See License.txt in the project root for license information.
549   *--------------------------------------------------------------------------------------------*)
550*/

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.