vendor: 12,892 bytes, lines 1-3
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CInZ1AQS.js","./DTZt3mMf.js","./CpVWKG-n.js","./Cov8HS8S.js","./Dr5xsqbB.js","./BjM1rf-M.js","./C7TRuyjM.js","./build-svg-sprite.dMuXroMU.css","./CPX7qHyV.js","./bg_placeholder_400x225.D9RLaDB4.css","./8MxZ3zkU.js","./CrJFwzsr.js","./CyoOy95w.js","./DohhGFmI.js","./BamNFeS5.js","./BiR0Q1En.js","./CdhFNpuy.js","./masthead-cta.Ch-ZWZZY.css","./DgF3-J0K.js","./D9A_-ErT.js","./common.RMmy5I9X.css","./CYrso7x_.js","./kebab-menu.BdtuglE3.css","./thumbnail-issue.BR9HvOyH.css","./DYQKutyz.js","./BkxZYWcA.js","./carousel-slider.TUl8tOKi.css","./DUuZxIT0.js","./modal-dialog.CuSkwEeT.css","./DEOIOO9l.js","./tab-nav-item.C646h7eS.css","./CEoj_zc9.js","./Cr_sXJnK.js","./share-button.CZ50fOci.css","./masthead-action-buttons.B9CWw8HA.css","./nJIBW7ao.js","./_readerActive_.CODCU8Lj.css","./Bgw9tot2.js","./DjUJ3NSp.js","./BFe5w4az.js","./carousel-progress.-r39Fekr.css","./ChCqJOJg.js","./masthead-hero.DMgyO4Oz.css","./_uuid_.BzENlsTa.css","./DtItKokX.js","./BvhPW0G3.js","./infinite-loader.BHPfp5hP.css","./B5OrqXSl.js","./DhyNIBl9.js","./pull-list-tooltip.CsT35DOm.css","./filter-bar.5b9crPYH.css","./CRG4I7WK.js","./DXzGbZMI.js","./B7sqgqNW.js","./Fe--gpZd.js","./Mnm7rH79.js","./CP8NqId9.js","./DifxiNfE.js","./comics.BNEMNDIm.css","./DMkXrl6b.js","./D_kzKcsB.js","./no-access.DZJuV8R4.css","./pending.z67X4Hv7.css","./Bh50wV6X.js","./Amr-cTj9.js","./PnfiiJ6-.js","./B272SHzq.js","./BhFPzlye.js","./C93NK0wa.js","./scan.DFDqZPlI.css","./CBXpt6tv.js","./CHEFU1ur.js","./CxBzH8sd.js","./BTJcRsPG.js","./Ud5zRkY4.js","./CqFkilNt.js","./DGze4bf8.js","./wQokyZW5.js","./nFKqxE6s.js","./Dfr5VgFC.js","./DGjSBOpO.js","./marketing-locale-selector.CXpA8mDG.css","./C-zD2SDM.js","./age-gate.BDaW_atd.css","./YAYgHfsC.js","./age-gate-modal.DfH8REXd.css","./v2.DT8iSDGV.css","./BP8UV2Jh.js","./DRB3BCRu.js","./DYO4CeLa.js","./DB1aj5SX.js","./library-masthead.DlwXfzvb.css","./CR_TE3Vf.js","./CF5SJGyX.js","./language-picker.ALdvKgLt.css","./jsonbag-editor.CXMhq5eG.css","./DojLN05Q.js","./page-tabs.DRlqKSC5.css","./CJrMxaUx.js","./DAnSwxUU.js","./list-display.BvqN4YWO.css","./_filter_.6TPQdU5V.css","./Csr8ZY-V.js","./Db-yi_J9.js","./CcUd6Cs3.js","./D71b9uSu.js","./TATK0CGC.js","./CUZP0Bkd.js","./thumbnail-user-list.Sxq-qMeI.css","./_slug_.Ca4S6sxR.css","./Ds-wOZuj.js","./xQn3S3L6.js","./DgkL0ttt.js","./image-content-column.Cu-XVuXj.css","./CzHUYNpM.js","./premium-catalog.BnXHWqGR.css","./C2NnBCHH.js","./_path_.EYvxxOXr.css","./Bzkvt1Dg.js","./CZeMACqk.js","./_path_.DzFcBSQ6.css","./C4W6ibBN.js","./lajeLM6x.js","./_path_.1-9zr6tt.css","./CcG1UJ-r.js","./CN25LU4S.js","./activate.DSuBUHxm.css","./DOyIqvbG.js","./coming-soon.BqAWAd8Q.css","./DnzlozCe.js","./Uh_BjCov.js","./coming-soon-apps.DBZfm8gQ.css","./CzSaxgrs.js","./Dl_yG5MF.js","./BlSCaaqv.js","./index.DxATj7je.css","./UqXtEB1A.js","./D8g2QSgJ.js","./Dy5QFXtL.js","./CQMANzLo.js","./CnVT1HHb.js","./avatar-icon.3n58BmjC.css","./C9aoy3Pj.js","./CfQYKv-S.js","./dc-footer.DREKziu9.css","./C4jcmoUt.js","./dMeX0dqw.js","./BYayqVgL.js","./go.D-emyMxP.css","./_NSGkzdn.js","./CzPYXqC9.js","./BZ7-O8r2.js","./iN9caL5r.js","./Buj2610B.js","./create-list.DwrZbKvM.css","./mydc._UoVi2x3.css","./thC4WzMq.js","./BgJkwfDu.js","./dive-back-in.Cwx00pO5.css","./9ZUNiwX8.js","./history.kN65uAKT.css","./DW5qxjbW.js","./_filter_.rWPQ-dxa.css","./BWxvZfMa.js","./following.DY13DVaB.css","./BzIJ-ouR.js","./inbox.C0OPYuxs.css","./Blq6ctIz.js","./index.BG2dPysn.css","./Dxf-54z7.js","./1H_Lgodw.js","./transition-overlay.CQuMUxle.css","./profile.jl7tKU09.css","./BbP-a3Zl.js","./qrcode.hXl_kLfD.css","./bhlThZoA.js","./1Zo-YL9C.js","./hub-layout.C2aD7bzE.css","./D0-tQUya.js","./peacemaker.Czh46rmd.css","./CTyEMif9.js","./pride.BUHHtktd.css","./BVI_iQaA.js","./search.CvCGgJpB.css","./fz_hyW-U.js","./Dj4yD8b3.js","./P-1AyYe9.js","./active-subscription.BdnwZLSO.css","./oMux4HsY.js","./-4KiGP59.js","./payment-method.aa7Mr0oa.css","./qWBELLz2.js","./payment-methods.yXG2c1Ys.css","./CvrdKgQg.js","./error-note.F7vGgOH3.css","./DuKPMNSw.js","./confirm-modal.Dxnsf_ZB.css","./BocqKu0x.js","./e3kFbcxx.js","./settings.DM0ODFsT.css","./BUPY1z4t.js","./BOm2BJu1.js","./settings-success.BcIm4GuC.css","./cancel.BPf4ZjTH.css","./CJjlgZmW.js","./CiDbh_D-.js","./pci-monitoring.78lkyhag.css","./BoODpJou.js","./change-email.66vi4Hkr.css","./B-3r-l27.js","./change-password.DiLuZpne.css","./DAiM448G.js","./index.BeMeMkvd.css","./BTFn3-0U.js","./marketing-preferences.CxLzCEDe.css","./DA4qq92l.js","./CZhg4P3P.js","./verify-email.fl18zTnC.css","./eMlvnuEm.js","./comics.V3kccSYq.css","./DwsH94aD.js","./BOkEU_R7.js","./sso-scope.Cu0Bu2Q7.css","./3OxkIYJ1.js","./subscribe.D3kFUVKu.css","./DhtJL101.js","./CpzbqPQD.js","./superheroesmission_es.DL3ZPJ8m.css","./CXeL_IlS.js","./superheroesmission_it.BMBOs6U1.css","./klLG0sEG.js","./terms.D68wRqFv.css","./DTyyERq5.js","./thebatman.CfjTfzVw.css","./BKXES_2y.js","./D-Vq8BII.js","./index.BIoPLnmc.css","./BNJGaXdz.js","./DfOO8wA9.js","./CUPpCWrC.js","./CPj9qucq.js","./layout-global-components.BygfNaK8.css","./default.DrKjVKjF.css","./CYrFETbH.js","./empty-layout.BA4P5h_H.css","./DPMKSe2i.js","./DBRnGomc.js","./event-staff.1jkYrkpE.css","./DrnqpAGV.js","./join.YHAMI4Vy.css","./BpDdmMpe.js","./regflow-fullpage.BOybqkAT.css"])))=>i.map(i=>d[i]); 2(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();function zn(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const it={},Io=[],Qn=()=>{},fg=()=>!1,ra=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Pl=e=>e.startsWith("onUpdate:"),vt=Object.assign,Qu=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},sT=Object.prototype.hasOwnProperty,ct=(e,t)=>sT.call(e,t),je=Array.isArray,Ao=e=>Wo(e)==="[object Map]",Ji=e=>Wo(e)==="[object Set]",Nf=e=>Wo(e)==="[object Date]",BI=e=>Wo(e)==="[object RegExp]",Ye=e=>typeof e=="function",pt=e=>typeof e=="string",Un=e=>typeof e=="symbol",dt=e=>e!==null&&typeof e=="object",ed=e=>(dt(e)||Ye(e))&&Ye(e.then)&&Ye(e.catch),pg=Object.prototype.toString,Wo=e=>pg.call(e),FI=e=>Wo(e).slice(8,-1),$l=e=>Wo(e)==="[object Object]",Ml=e=>pt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Fi=zn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),aT=zn("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),td=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},lT=/-\w/g,zt=td(e=>e.replace(lT,t=>t.slice(1).toUpperCase())),cT=/\B([A-Z])/g,In=td(e=>e.replace(cT,"-$1").toLowerCase()),ia=td(e=>e.charAt(0).toUpperCase()+e.slice(1)),ks=td(e=>e?`on${ia(e)}`:""),rn=(e,t)=>!Object.is(e,t),wo=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},gg=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Dl=e=>{const t=parseFloat(e);return isNaN(t)?e:t},ll=e=>{const t=pt(e)?Number(e):NaN;return isNaN(t)?e:t};let py;const Bl=()=>py||(py=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),uT=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function dT(e){return uT.test(e)?`__props.${e}`:`__props[${JSON.stringify(e)}]`}function hT(e,t){return e+JSON.stringify(t,(n,r)=>typeof r=="function"?r.toString():r)}const fT={TEXT:1,1:"TEXT",CLASS:2,2:"CLASS",STYLE:4,4:"STYLE",PROPS:8,8:"PROPS",FULL_PROPS:16,16:"FULL_PROPS",NEED_HYDRATION:32,32:"NEED_HYDRATION",STABLE_FRAGMENT:64,64:"STABLE_FRAGMENT",KEYED_FRAGMENT:128,128:"KEYED_FRAGMENT",UNKEYED_FRAGMENT:256,256:"UNKEYED_FRAGMENT",NEED_PATCH:512,512:"NEED_PATCH",DYNAMIC_SLOTS:1024,1024:"DYNAMIC_SLOTS",DEV_ROOT_FRAGMENT:2048,2048:"DEV_ROOT_FRAGMENT",CACHED:-1,"-1":"CACHED",BAIL:-2,"-2":"BAIL"},pT={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"NEED_HYDRATION",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"CACHED",[-2]:"BAIL"},gT={ELEMENT:1,1:"ELEMENT",FUNCTIONAL_COMPONENT:2,2:"FUNCTIONAL_COMPONENT",STATEFUL_COMPONENT:4,4:"STATEFUL_COMPONENT",TEXT_CHILDREN:8,8:"TEXT_CHILDREN",ARRAY_CHILDREN:16,16:"ARRAY_CHILDREN",SLOTS_CHILDREN:32,32:"SLOTS_CHILDREN",TELEPORT:64,64:"TELEPORT",SUSPENSE:128,128:"SUSPENSE",COMPONENT_SHOULD_KEEP_ALIVE:256,256:"COMPONENT_SHOULD_KEEP_ALIVE",COMPONENT_KEPT_ALIVE:512,512:"COMPONENT_KEPT_ALIVE",COMPONENT:6,6:"COMPONENT"},mT={STABLE:1,1:"STABLE",DYNAMIC:2,2:"DYNAMIC",FORWARDED:3,3:"FORWARDED"},yT={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},bT="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol",mg=zn(bT),vT=mg,gy=2;function CT(e,t=0,n=e.length){if(t=Math.max(0,Math.min(t,e.length)),n=Math.max(0,Math.min(n,e.length)),t>n)return"";let r=e.split(/(\r?\n)/);const i=r.filter((a,c)=>c%2===1);r=r.filter((a,c)=>c%2===0);let s=0;const o=[];for(let a=0;a<r.length;a++)if(s+=r[a].length+(i[a]&&i[a].length||0),s>=t){for(let c=a-gy;c<=a+gy||n>s;c++){if(c<0||c>=r.length)continue;const l=c+1;o.push(`${l}${" ".repeat(Math.max(3-String(l).length,0))}| ${r[c]}`);const d=r[c].length,v=i[c]&&i[c].length||0;if(c===a){const R=t-(s-(d+v)),O=Math.max(1,n>s?d-R:n-t);o.push(" | "+" ".repeat(R)+"^".repeat(O))}else if(c>a){if(n>s){const R=Math.max(Math.min(n-s,d),1);o.push(" | "+"^".repeat(R))}s+=d+v}}break}return o.join(` 3`)}function Vo(e){if(je(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=pt(r)?HI(r):Vo(r);if(i)for(const s in i)t[s]=i[s]}return t}else if(pt(e)||dt(e))return e}const IT=/;(?![^(]*\))/g,AT=/:([^]+)/,wT=/\/\*[^]*?\*\//g;function HI(e){const t={};return e.replace(wT,"").split(IT).forEach(n=>{if(n){const r=n.split(AT);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function _T(e){if(!e)return"";if(pt(e))return e;let t="";for(const n in e){const r=e[n];if(pt(r)||typeof r=="number"){const i=n.startsWith("--")?n:In(n);t+=`${i}:${r};`}}return t}function wr(e){let t="";if(pt(e))t=e;else if(je(e))for(let n=0;n<e.length;n++){const r=wr(e[n]);r&&(t+=r+" ")}else if(dt(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function WI(e){if(!e)return null;let{class:t,style:n}=e;return t&&!pt(t)&&(e.class=wr(t)),n&&(e.style=Vo(n)),e}const ST="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",ET="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",xT="annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics",TT="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",kT=zn(ST),RT=zn(ET),LT=zn(xT),OT=zn(TT),VI="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",GI=zn(VI),NT=zn(VI+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,
3checked,muted,multiple,selected");function yg(e){return!!e||e===""}const PT=/[>/="'\u0009\u000a\u000c\u0020]/,gh={};function $T(e){if(gh.hasOwnProperty(e))return gh[e];const t=PT.test(e);return gh[e]=!t}const MT={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DT=zn("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),BT=zn("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode
3-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan"),FT=zn("accent,accentunder,actiontype,align,alignmentscope,altimg,altimg-height,altimg-valign,altimg-width,alttext,bevelled,close,columnsalign,columnlines,columnspan,denomalign,depth,dir,display,displaystyle,encoding,equalcolumns,equalrows,fence,fontstyle,fontweight,form,frame,framespacing,groupalign,height,href,id,indentalign,indentalignfirst,indentalignlast,indentshift,indentshiftfirst,indentshiftlast,indextype,justify,largetop,largeop,lquote,lspace,mathbackground,mathcolor,mathsize,mathvariant,maxsize,minlabelspacing,mode,other,overflow,position,rowalign,rowlines,rowspan,rquote,rspace,scriptlevel,scriptminsize,scriptsizemultiplier,selection,separator,separators,shift,side,src,stackalign,stretchy,subscriptshift,superscriptshift,symmetric,voffset,width,widths,xlink:href,xlink:show,xlink:type,xmlns");function HT(e){if(e==null)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"}const WT=/["'&<>]/;function VT(e){const t=""+e,n=WT.exec(t);if(!n)return t;let r="",i,s,o=0;for(s=n.index;s<t.length;s++){switch(t.charCodeAt(s)){case 34:i=""";break;case 38:i="&";break;case 39:i="'";break;case 60:i="<";break;case 62:i=">";break;default:continue}o!==s&&(r+=t.slice(o,s)),o=s+1,r+=i}return o!==s?r+t.slice(o,s):r}const GT=/^-?>|<!--|-->|--!>|<!-$/g;function UT(e){return e.replace(GT,"")}const UI=/[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;function jT(e,t){return e.replace(UI,n=>t?n==='"'?'\\\\\\"':`\\\\${n}`:`\\${n}`)}function zT(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=zr(e[r],t[r]);return n}function zr(e,t){if(e===t)return!0;let n=Nf(e),r=Nf(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Un(e),r=Un(t),n||r)return e===t;if(n=je(e),r=je(t),n||r)return n&&r?zT(e,t):!1;if(n=dt(e),r=dt(t),n||r){if(!n||!r)return!1;const i=Object.keys(e).length,s=Object.keys(t).length;if(i!==s)return!1;for(const o in e){const a=e.hasOwnProperty(o),c=t.hasOwnProperty(o);if(a&&!c||!a&&c||!zr(e[o],t[o]))return!1}}return String(e)===String(t)}function Fl(e,t){return e.findIndex(n=>zr(n,t))}const jI=e=>!!(e&&e.__v_isRef===!0),ar=e=>pt(e)?e:e==null?"":je(e)||dt(e)&&(e.toString===pg||!Ye(e.toString))?jI(e)?ar(e.value):JSON.stringify(e,zI,2):String(e),zI=(e,t)=>jI(t)?zI(e,t.value):Ao(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i],s)=>(n[mh(r,s)+" =>"]=i,n),{})}:Ji(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>mh(n))}:Un(t)?mh(t):dt(t)&&!je(t)&&!$l(t)?String(t):t,mh=(e,t="")=>{var n;return Un(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};function ZI(e){return e==null?"initial":typeof e=="string"?e===""?" ":e:String(e)}const Joe=Object.freeze(Object.defineProperty({__proto__:null,EMPTY_ARR:Io,EMPTY_OBJ:it,NO:fg,NOOP:Qn,PatchFlagNames:pT,PatchFlags:fT,ShapeFlags:gT,SlotFlags:mT,camelize:zt,capitalize:ia,cssVarNameEscapeSymbolsRE:UI,def:gg,escapeHtml:VT,escapeHtmlComment:UT,extend:vt,genCacheKey:hT,genPropsAccessExp:dT,generateCodeFrame:CT,getEscapedCssVarName:jT,getGlobalThis:Bl,hasChanged:rn,hasOwn:ct,hyphenate:In,includeBooleanAttr:yg,invokeArrayFns:wo,isArray:je,isBooleanAttr:NT,isBuiltInDirective:aT,isDate:Nf,isFunction:Ye,isGloballyAllowed:mg,isGloballyWhitelisted:vT,isHTMLTag:kT,isIntegerKey:Ml,isKnownHtmlAttr:DT,isKnownMathMLAttr:FT,isKnownSvgAttr:BT,isMap:Ao,isMathMLTag:LT,isModelListener:Pl,isObject:dt,isOn:ra,isPlainObject:$l,isPromise:ed,isRegExp:BI,isRenderableAttrValue:HT,isReservedProp:Fi,isSSRSafeAttrName:$T,isSVGTag:RT,isSet:Ji,isSpecialBooleanAttr:GI,isString:pt,isSymbol:Un,isVoidTag:OT,looseEqual:zr,looseIndexOf:Fl,looseToNumber:Dl,makeMap:zn,normalizeClass:wr,normalizeCssVarValue:ZI,normalizeProps:WI,normalizeStyle:Vo,objectToString:pg,parseStringStyle:HI,propsToAttrMap:MT,remove:Qu,slotFlagsText:yT,stringifyStyle:_T,toDisplayString:ar,toHandlerKey:ks,toNumber:ll,toRawType:FI,toTypeString:Wo},Symbol.toStringTag,{value:"Module"}));let qt;class bg{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&qt&&(qt.active?(this.parent=qt,this.index=(qt.scopes||(qt.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=qt;try{return qt=this,t()}finally{qt=n}}}on(){++this._on===1&&(this.prevScope=qt,qt=this)}off(){if(this._on>0&&--this._on===0){if(qt===this)qt=this.prevScope;else{let t=qt;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function Hl(e){return new bg(e)}function qi(){return qt}function Zr(e,t=!1){qt&&qt.cleanups.push(e)}let St;const yh=new WeakSet;class cl{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler
vendor: 4,131 bytes, line 3
3=void 0,qt&&(qt.active?qt.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,yh.has(this)&&(yh.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||YI(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,my(this),XI(this);const t=St,n=Cr;St=this,Cr=!0;try{return this.fn()}finally{JI(this),St=t,Cr=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Ig(t);this.deps=this.depsTail=void 0,my(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?yh.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Pf(this)&&this.run()}get dirty(){return Pf(this)}}let KI=0,Xa,Ja;function YI(e,t=!1){if(e.flags|=8,t){e.next=Ja,Ja=e;return}e.next=Xa,Xa=e}function vg(){KI++}function Cg(){if(--KI>0)return;if(Ja){let t=Ja;for(Ja=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Xa;){let t=Xa;for(Xa=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function XI(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function JI(e){let t,n=e.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),Ig(r),ZT(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}e.deps=t,e.depsTail=n}function Pf(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(qI(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function qI(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ul)||(e.globalVersion=ul,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Pf(e))))return;e.flags|=2;const t=e.dep,n=St,r=Cr;St=e,Cr=!0;try{XI(e);const i=e.fn(e._value);(t.version===0||rn(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{St=n,Cr=r,JI(e),e.flags&=-3}}function Ig(e,t=!1){const{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let s=n.computed.deps;s;s=s.nextDep)Ig(s,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function ZT(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function KT(e,t){e.effect instanceof cl&&(e=e.effect.fn);const n=new cl(e);t&&vt(n,t);try{n.run()}catch(i){throw n.stop(),i}const r=n.run.bind(n);return r.effect=n,r}function YT(e){e.effect.stop()}let Cr=!0;const QI=[];function fi(){QI.push(Cr),Cr=!1}function pi(){const e=QI.pop();Cr=e===void 0?!0:e}function my(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=St;St=void 0;try{t()}finally{St=n}}}let ul=0;class XT{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class nd{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!St||!Cr||St===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==St)n=this.activeLink=new XT(St,this),St.deps?(n.prevDep=St.depsTail,St.depsTail.nextDep=n,St.depsTail=n):St.deps=St.depsTail=n,e0(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=St.depsTail,n.nextDep=void 0,St.depsTail.nextDep=n,St.depsTail=n,St.deps===n&&(St.deps=r)}return n}trigger(t){this.version++,ul++,this.notify(t)}notify(t){vg();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Cg()}}}function e0(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)e0(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const uu=new WeakMap,_o=Symbol(""),$f=Symbol(""),dl=Symbol("");function Cn(e,t,n){if(Cr&&St){let r=uu.get(e);r||uu.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new nd),i.map=r,i.key=n),i.track()}}function ei(e,t,n,r,i,s){const o=uu.get(e);if(!o){ul++;return}const a=c=>{c&&c.trigger()};
3if(vg(),t==="clear")o.forEach(a);else{const c=je(e),l=c&&Ml(n);if(c&&n==="length"){const d=Number(r);o.forEach((v,R)=>{(R==="length"||R===dl||!Un(R)&&R>=d)&&a(v)})}else switch((n!==void 0||o.has(void 0))&&a(o.get(n)),l&&a(o.get(dl)),t){case"add":c?l&&a(o.get("length")):(a(o.get(_o)),Ao(e)&&a(o.get($f)));break;case"delete":c||(a(o.get(_o)),Ao(e)&&a(o.get($f)));break;case"set":Ao(e)&&a(o.get(_o));break}}Cg()}function JT(e,t){const n=uu.get(e);return n&&n.get(t)}function Qo(e){const t=at(e);return t===e?t:(Cn(t,"iterate",dl),Hn(e)?t:t.map(Sr))}function rd(e){return Cn(e=at(e),"iterate",dl),e}function Vr(e,t){return _r(e)?Bs(li(e)?Sr(t):t):Sr(t)}const qT={__proto__:null,[Symbol.iterator](){return bh(this,Symbol.iterator,e=>Vr(this,e))},concat(...e){return Qo(this).concat(...e.map(t=>je(t)?Qo(t):t))},entries(){return bh(this,"entries",e=>(e[1]=Vr(this,e[1]),e))},every(e,t){return Yr(this,"every",e,t,void 0,arguments)},filter(e,t){return Yr(this,"filter",e,t,n=>n.map(r=>Vr(this,r)),arguments)},find(e,t){return Yr(this,"find",e,t,n=>Vr(this,n),arguments)},findIndex(e,t){return Yr(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Yr(this,"findLast",e,t,n=>Vr(this,n),arguments)},findLastIndex(e,t){return Yr(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Yr(this,"forEach",e,t,void 0,arguments)},includes(...e){return vh(this,"includes",e)},indexOf(...e){return vh(this,"indexOf",e)},join(e){return Qo(this).join(e)},lastIndexOf(...e){return vh(this,"lastIndexOf",e)},map(e,t){return Yr(this,"map",e,t,void 0,arguments)},pop(){return Ta(this,"pop")},push(...e){return Ta(this,"push",e)},reduce(e,...t){return yy(this,"reduce",e,t)},reduceRight(e,...t){return yy(this,"reduceRight",e,t)},shift(){return Ta(this,"shift")},some(e,t){return Yr(this,"some",e,t,void 0,arguments)},splice(...e){return Ta(this,"splice",e)},toReversed(){return Qo(this).toReversed()},toSorted(e){return Qo(this).toSorted(e)},toSpliced(...e){return Qo(this).toSpliced(...e)},unshift(...e){return Ta(this,"unshift",e)},values(){return bh(this,"values",e=>Vr(this,e))}};function bh(e,t,n){const r=rd(e),i=r[t]();return r!==e&&!Hn(e)&&(i._next=i.next,i.next=()=>{const s=i._next();return s.done||(s.value=n(s.value)),s}),i}const QT=Array.prototype;function Yr(e,t,n,r,i,s){const o=rd(e),a=o!==e&&!Hn(e),c=o[t];if(c!==QT[t]){const v=c.apply(e,s);return a?Sr(v):v}let l=n;o!==e&&(a?l=function(v,R){return n.call(this,Vr(e,v),R,e)}:n.length>2&&(l=function(v,R){return n.call(this,v,R,e)}));const d=c.call(o,l,r);return a&&i?i(d):d}function yy(e,t,n,r){const i=rd(e),s=i!==e&&!Hn(e);let o=n,a=!1;i!==e&&(s?(a=r.length===0,o=function(l,d,v){return a&&(a=!1,l=Vr(e,l)),n.call(this,l,Vr(e,d),v,e)}):n.length>3&&(o=function(l,d,v){return n.call(this,l,d,v,e)}));const c=i[t](o,...r);return a?Vr(e,c):c}function vh(e,t,n){const r=at(e);Cn(r,"iterate",dl);const i=r[t](...n);return(i===-1||i===!1)&&Wl(n[0])?(n[0]=at(n[0]),r[t](...n)):i}function Ta(e,t,n=[]){fi(),vg();const r=at(e)[t].apply(e,n);return Cg(),pi(),r}const ek=zn("__proto__,__v_isRef,__isVue"),t0=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Un));function tk(e){Un(e)||(e=String(e));const t=at(this);return Cn(t,"has",e),t.hasOwnProperty(e)}class n0{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const i=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return s;if(n==="__v_raw")return r===(i?s?l0:a0:s?s0:o0).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=je(t);if(!i){let c;if(o&&(c=qT[n]))return c;if(n==="hasOwnProperty")return tk}const a=Reflect.get(t,n,Et(t)?t:r);if((Un(n)?t0.has(n):ek(n))||(i||Cn(t,"get",n),s))return a;if(Et(a)){const c=o&&Ml(n)?a:a.value;return i&&dt(c)?hl(c):c}return dt(a)?i?hl(a):Pn(a):a}}class r0 extends n0{constructor(t=!1){super(!1,t)}set(t,n,r,i){let s=t[n];const o=je(t)&&Ml(n);if(!this._isShallow){const l=_r(s);if(!Hn(r)&&!_r(r)&&(s=at(s),r=at(r)),!o&&Et(s)&&!Et(r))return l||(s.value=r),!0}const a=o?Number(n)<t.length:ct(t,n),c=Reflect.set(t,n,r,Et(t)?t:i);return t===at(i)&&(a?rn(r,s)&&ei(t,"set",n,r):ei(t,"add",n,r)),c}deleteProperty(t,n){const r=ct(t,n);t[n];const i=Reflect.deleteProperty(t,n);return i&&r&&ei(t,"delete",n,void 0),i}has(t,n){const r=Reflect.has(t,n);return(!Un(n)||!t0.has(n))&&Cn(t,"has",n),r}ownKeys(t){return Cn(t,"iterate",je(t)?"length":_o),Reflect.ownKeys(t)}}class i0 extends n0{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const nk=new r0,rk=new i0,ik=new r0(!0),ok=new i0(!0),Mf=e=>e,gc=e=>Reflect.getPrototypeOf(e);function sk(e,t,n){return function(...r){const i=this.__v_raw,s=at(i),o=Ao(s),a=e==="entries"||e===Symbol.iterator&&o,c=e==="keys"&&o,l=i[e](...r),d=n?Mf:t?Bs:Sr;return!t&&Cn(s,"iterate",c?$f:_o),vt(Object.create(l),{next(){const{value:v,done:R}=l.next();return R?{value:v,done:R}:{value:a?[d(v[0]),d(v[1])]:d(v),done:R}}})}}function mc(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ak(e,t){const n={get(i){const s=this.__v_raw,o=at(s),a=at(i);e||(rn(i,a)&&Cn(o,"get",i),Cn(o,"get",a));const{has:c}=gc(o),l=t?Mf:e?Bs:Sr;if(c.call(o,i))return l(s.get(i));if(c.call(o,a))return l(s.get(a));s!==o&&s.get(i)},get size(){const i=this.__v_raw;return!e&&Cn(at(i),"iterate",_o),i.size},has(i){const s=this.__v_raw,o=at(s),a=at(i);return e||(rn(i,a)&&Cn(o,"has",i),Cn(o,"has",a)),i===a?s.has(i):s.has(i)||s.has(a)}
3,forEach(i,s){const o=this,a=o.__v_raw,c=at(a),l=t?Mf:e?Bs:Sr;return!e&&Cn(c,"iterate",_o),a.forEach((d,v)=>i.call(s,l(d),l(v),o))}};return vt(n,e?{add:mc("add"),set:mc("set"),delete:mc("delete"),clear:mc("clear")}:{add(i){const s=at(this),o=gc(s),a=at(i),c=!t&&!Hn(i)&&!_r(i)?a:i;return o.has.call(s,c)||rn(i,c)&&o.has.call(s,i)||rn(a,c)&&o.has.call(s,a)||(s.add(c),ei(s,"add",c,c)),this},set(i,s){!t&&!Hn(s)&&!_r(s)&&(s=at(s));const o=at(this),{has:a,get:c}=gc(o);let l=a.call(o,i);l||(i=at(i),l=a.call(o,i));const d=c.call(o,i);return o.set(i,s),l?rn(s,d)&&ei(o,"set",i,s):ei(o,"add",i,s),this},delete(i){const s=at(this),{has:o,get:a}=gc(s);let c=o.call(s,i);c||(i=at(i),c=o.call(s,i)),a&&a.call(s,i);const l=s.delete(i);return c&&ei(s,"delete",i,void 0),l},clear(){const i=at(this),s=i.size!==0,o=i.clear();return s&&ei(i,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=sk(i,e,t)}),n}function id(e,t){const n=ak(e,t);return(r,i,s)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(ct(n,i)&&i in r?n:r,i,s)}const lk={get:id(!1,!1)},ck={get:id(!1,!0)},uk={get:id(!0,!1)},dk={get:id(!0,!0)},o0=new WeakMap,s0=new WeakMap,a0=new WeakMap,l0=new WeakMap;function hk(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function fk(e){return e.__v_skip||!Object.isExtensible(e)?0:hk(FI(e))}function Pn(e){return _r(e)?e:od(e,!1,nk,lk,o0)}function or(e){return od(e,!1,ik,ck,s0)}function hl(e){return od(e,!0,rk,uk,a0)}function pk(e){return od(e,!0,ok,dk,l0)}function od(e,t,n,r,i){if(!dt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=fk(e);if(s===0)return e;const o=i.get(e);if(o)return o;const a=new Proxy(e,s===2?r:n);return i.set(e,a),a}function li(e){return _r(e)?li(e.__v_raw):!!(e&&e.__v_isReactive)}function _r(e){return!!(e&&e.__v_isReadonly)}function Hn(e){return!!(e&&e.__v_isShallow)}function Wl(e){return e?!!e.__v_raw:!1}function at(e){const t=e&&e.__v_raw;return t?at(t):e}function Ag(e){return!ct(e,"__v_skip")&&Object.isExtensible(e)&&gg(e,"__v_skip",!0),e}const Sr=e=>dt(e)?Pn(e):e,Bs=e=>dt(e)?hl(e):e;function Et(e){return e?e.__v_isRef===!0:!1}function yt(e){return c0(e,!1)}function wn(e){return c0(e,!0)}function c0(e,t){return Et(e)?e:new gk(e,t)}class gk{constructor(t,n){this.dep=new nd,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:at(t),this._value=n?t:Sr(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Hn(t)||_r(t);t=r?t:at(t),rn(t,n)&&(this._rawValue=t,this._value=r?t:Sr(t),this.dep.trigger())}}function mk(e){e.dep&&e.dep.trigger()}function Ze(e){return Et(e)?e.value:e}function br(e){return Ye(e)?e():Ze(e)}const yk={get:(e,t,n)=>t==="__v_raw"?e:Ze(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return Et(i)&&!Et(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function wg(e){return li(e)?e:new Proxy(e,yk)}class bk{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new nd,{get:r,set:i}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=i}get value(){return this._value=this._get()}set value(t){this._set(t)}}function _g(e){return new bk(e)}function vk(e){const t=je(e)?new Array(e.length):{};for(const n in e)t[n]=u0(e,n);return t}class Ck{constructor(t,n,r){this._object=t,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._key=Un(n)?n:String(n),this._raw=at(t);let i=!0,s=t;if(!je(t)||Un(this._key)||!Ml(this._key))do i=!Wl(s)||Hn(s);while(i&&(s=s.__v_raw));this._shallow=i}get value(){let t=this._object[this._key];return this._shallow&&(t=Ze(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Et(this._raw[this._key])){const n=this._object[this._key];if(Et(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return JT(this._raw,this._key)}}class Ik{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function sd(e,t,n){return Et(e)?e:Ye(e)?new Ik(e):dt(e)&&arguments.length>1?u0(e,t,n):yt(e)}function u0(e,t,n){return new Ck(e,t,n)}class Ak{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new nd(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ul-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&St!==this)return YI(this,!0),!0}get value(){const t=this.dep.track();return qI(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function wk(e,t,n=!1){let r,i;return Ye(e)?r=e:(r=e.get,i=e.set),new Ak(r,i,n)}const _k={GET:"get",HAS:"has",ITERATE:"iterate"}
vendor: 5,095 bytes, line 3
3,Sk={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},yc={},du=new WeakMap;let ki;function Ek(){return ki}function d0(e,t=!1,n=ki){if(n){let r=du.get(n);r||du.set(n,r=[]),r.push(e)}}function xk(e,t,n=it){const{immediate:r,deep:i,once:s,scheduler:o,augmentJob:a,call:c}=n,l=S=>i?S:Hn(S)||i===!1||i===0?ti(S,1):ti(S);let d,v,R,O,$=!1,P=!1;if(Et(e)?(v=()=>e.value,$=Hn(e)):li(e)?(v=()=>l(e),$=!0):je(e)?(P=!0,$=e.some(S=>li(S)||Hn(S)),v=()=>e.map(S=>{if(Et(S))return S.value;if(li(S))return l(S);if(Ye(S))return c?c(S,2):S()})):Ye(e)?t?v=c?()=>c(e,2):e:v=()=>{if(R){fi();try{R()}finally{pi()}}const S=ki;ki=d;try{return c?c(e,3,[O]):e(O)}finally{ki=S}}:v=Qn,t&&i){const S=v,b=i===!0?1/0:i;v=()=>ti(S(),b)}const T=qi(),C=()=>{d.stop(),T&&T.active&&Qu(T.effects,d)};if(s&&t){const S=t;t=(...b)=>{S(...b),C()}}let N=P?new Array(e.length).fill(yc):yc;const x=S=>{if(!(!(d.flags&1)||!d.dirty&&!S))if(t){const b=d.run();if(i||$||(P?b.some((p,g)=>rn(p,N[g])):rn(b,N))){R&&R();const p=ki;ki=d;try{const g=[b,N===yc?void 0:P&&N[0]===yc?[]:N,O];N=b,c?c(t,3,g):t(...g)}finally{ki=p}}}else d.run()};return a&&a(x),d=new cl(v),d.scheduler=o?()=>o(x,!1):x,O=S=>d0(S,!1,d),R=d.onStop=()=>{const S=du.get(d);if(S){if(c)c(S,4);else for(const b of S)b();du.delete(d)}},t?r?x(!0):N=d.run():o?o(x.bind(null,!0),!0):d.run(),C.pause=d.pause.bind(d),C.resume=d.resume.bind(d),C.stop=C,C}function ti(e,t=1/0,n){if(t<=0||!dt(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Et(e))ti(e.value,t,n);else if(je(e))for(let r=0;r<e.length;r++)ti(e[r],t,n);else if(Ji(e)||Ao(e))e.forEach(r=>{ti(r,t,n)});else if($l(e)){for(const r in e)ti(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&ti(e[r],t,n)}return e}const h0=[];function Tk(e){h0.push(e)}function kk(){h0.pop()}function Rk(e,t){}const Lk={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},Ok={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function oa(e,t,n,r){try{return r?e(...r):e()}catch(i){Go(i,t,n)}}function fr(e,t,n,r){if(Ye(e)){const i=oa(e,t,n,r);return i&&ed(i)&&i.catch(s=>{Go(s,t,n)}),i}if(je(e)){const i=[];for(let s=0;s<e.length;s++)i.push(fr(e[s],t,n,r));return i}}function Go(e,t,n,r=!0){const i=t?t.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||it;if(t){let a=t.parent;const c=t.proxy,l=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const d=a.ec;if(d){for(let v=0;v<d.length;v++)if(d[v](e,c,l)===!1)return}a=a.parent}if(s){fi(),oa(s,null,10,[e,c,l]),pi();return}}Nk(e,n,i,r,o)}function Nk(e,t,n,r=!0,i=!1){if(i)throw e}const Ln=[];let Fr=-1;const Rs=[];let Ri=null,hs=0;const f0=Promise.resolve();let hu=null;function Wn(e){const t=hu||f0;return e?t.then(this?e.bind(this):e):t}function Pk(e){let t=Fr+1,n=Ln.length;for(;t<n;){const r=t+n>>>1,i=Ln[r],s=fl(i);s<e||s===e&&i.flags&2?t=r+1:n=r}return t}function Sg(e){if(!(e.flags&1)){const t=fl(e),n=Ln[Ln.length-1];!n||!(e.flags&2)&&t>=fl(n)?Ln.push(e):Ln.splice(Pk(t),0,e),e.flags|=1,p0()}}function p0(){hu||(hu=f0.then(g0))}function Lo(e){je(e)?Rs.push(...e):Ri&&e.id===-1?Ri.splice(hs+1,0,e):e.flags&1||(Rs.push(e),e.flags|=1),p0()}function by(e,t,n=Fr+1){for(;n<Ln.length;n++){const r=Ln[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Ln.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function fu(e){if(Rs.length){const t=[...new Set(Rs)].sort((n,r)=>fl(n)-fl(r));if(Rs.length=0,Ri){Ri.push(...t);return}for(Ri=t,hs=0;hs<Ri.length;hs++){const n=Ri[hs];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Ri=null,hs=0}}const fl=e=>e.id==null?e.flags&2?-1:1/0:e.id;function g0(e){try{for(Fr=0;Fr<Ln.length;Fr++){const t=Ln[Fr];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),oa(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Fr<Ln.length;Fr++){const t=Ln[Fr];t&&(t.flags&=-2)}Fr=-1,Ln.length=0,fu(),hu=null,(Ln.length||Rs.length)&&g0()}}let fs,bc=[];function m0(e,t){var n,r;
3fs=e,fs?(fs.enabled=!0,bc.forEach(({event:i,args:s})=>fs.emit(i,...s)),bc=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(s=>{m0(s,t)}),setTimeout(()=>{fs||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,bc=[])},3e3)):bc=[]}let fn=null,ad=null;function pl(e){const t=fn;return fn=e,ad=e&&e.type.__scopeId||null,t}function $k(e){ad=e}function Mk(){ad=null}const Dk=e=>Bn;function Bn(e,t=fn,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&bl(-1);const s=pl(t);let o;try{o=e(...i)}finally{pl(s),r._d&&bl(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function Bk(e,t){if(fn===null)return e;const n=jl(fn),r=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[s,o,a,c=it]=t[i];s&&(Ye(s)&&(s={mounted:s,updated:s}),s.deep&&ti(o),r.push({dir:s,instance:n,value:o,oldValue:void 0,arg:a,modifiers:c}))}return e}function Hr(e,t,n,r){const i=e.dirs,s=t&&t.dirs;for(let o=0;o<i.length;o++){const a=i[o];s&&(a.oldValue=s[o].value);let c=a.dir[r];c&&(fi(),fr(c,n,8,[e.el,a,e,t]),pi())}}function Ir(e,t){if(un){let n=un.provides;const r=un.parent&&un.parent.provides;r===n&&(n=un.provides=Object.create(r)),n[e]=t}}function Nt(e,t,n=!1){const r=Mt();if(r||So){let i=So?So._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&Ye(t)?t.call(r&&r.proxy):t}}function sa(){return!!(Mt()||So)}const y0=Symbol.for("v-scx"),b0=()=>Nt(y0);function Eg(e,t){return Vl(e,null,t)}function Fk(e,t){return Vl(e,null,{flush:"post"})}function v0(e,t){return Vl(e,null,{flush:"sync"})}function xt(e,t,n){return Vl(e,t,n)}function Vl(e,t,n=it){const{immediate:r,deep:i,flush:s,once:o}=n,a=vt({},n),c=t&&r||!t&&s!=="post";let l;if(No){if(s==="sync"){const O=b0();l=O.__watcherHandles||(O.__watcherHandles=[])}else if(!c){const O=()=>{};return O.stop=Qn,O.resume=Qn,O.pause=Qn,O}}const d=un;a.call=(O,$,P)=>fr(O,d,$,P);let v=!1;s==="post"?a.scheduler=O=>{Kt(O,d&&d.suspense)}:s!=="sync"&&(v=!0,a.scheduler=(O,$)=>{$?O():Sg(O)}),a.augmentJob=O=>{t&&(O.flags|=4),v&&(O.flags|=2,d&&(O.id=d.uid,O.i=d))};const R=xk(e,t,a);return No&&(l?l.push(R):c&&R()),R}function Hk(e,t,n){const r=this.proxy,i=pt(e)?e.includes(".")?C0(r,e):()=>r[e]:e.bind(r,r);let s;Ye(t)?s=t:(s=t.handler,n=t);const o=aa(this),a=Vl(i,s.bind(r),n);return o(),a}function C0(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i<n.length&&r;i++)r=r[n[i]];return r}}const xi=new WeakMap,I0=Symbol("_vte"),A0=e=>e.__isTeleport,yo=e=>e&&(e.disabled||e.disabled===""),Wk=e=>e&&(e.defer||e.defer===""),vy=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Cy=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Df=(e,t)=>{const n=e&&e.to;return pt(n)?t?t(n):null:n},Vk={name:"Teleport",__isTeleport:!0,process(e,t,n,r,i,s,o,a,c,l){const{mc:d,pc:v,pbc:R,o:{insert:O,querySelector:$,createText:P,createComment:T,parentNode:C}}=l,N=yo(t.props);let{dynamicChildren:x}=t;const S=(g,u,y)=>{g.shapeFlag&16&&d(g.children,u,y,i,s,o,a,c)},b=(g=t)=>{const u=yo(g.props),y=g.target=Df(g.props,$),m=Bf(y,g,P,O);y&&(o!=="svg"&&vy(y)?o="svg":o!=="mathml"&&Cy(y)&&(o="mathml"),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(y),u||(S(g,y,m),ja(g,!1)))},p=g=>{const u=()=>{if(xi.get(g)===u){if(xi.delete(g),yo(g.props)){const y=C(g.el)||n;S(g,y,g.anchor),ja(g,!0)}b(g)}};xi.set(g,u),Kt(u,s)};if(e==null){const g=t.el=P(""),u=t.anchor=P("");if(O(g,n,r),O(u,n,r),Wk(t.props)||s&&s.pendingBranch){p(t);return}N&&(S(t,n,u),ja(t,!0)),b()}else{t.el=e.el;const g=t.anchor=e.anchor,u=xi.get(e);if(u){u.flags|=8,xi.delete(e),p(t);return}t.targetStart=e.targetStart;const y=t.target=e.target,m=t.targetAnchor=e.targetAnchor,I=yo(e.props),_=I?n:y,h=I?g:m;if(o==="svg"||vy(y)?o="svg":(o==="mathml"||Cy(y))&&(o="mathml"),x?(R(e.dynamicChildren,x,_,i,s,o,a),Wg(e,t,!0)):c||v(e,t,_,h,i,s,o,a,!1),N)I?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):vc(t,n,g,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const f=t.target=Df(t.props,$);f&&vc(t,f,null,l,0)}else I&&vc(t,y,m,l,1);
3ja(t,N)}},remove(e,t,n,{um:r,o:{remove:i}},s){const{shapeFlag:o,children:a,anchor:c,targetStart:l,targetAnchor:d,target:v,props:R}=e;let O=s||!yo(R);const $=xi.get(e);if($&&($.flags|=8,xi.delete(e),O=!1),v&&(i(l),i(d)),s&&i(c),o&16)for(let P=0;P<a.length;P++){const T=a[P];r(T,t,n,O,!!T.dynamicChildren)}},move:vc,hydrate:Gk};function vc(e,t,n,{o:{insert:r},m:i},s=2){s===0&&r(e.targetAnchor,t,n);const{el:o,anchor:a,shapeFlag:c,children:l,props:d}=e,v=s===2;if(v&&r(o,t,n),!xi.has(e)&&(!v||yo(d))&&c&16)for(let R=0;R<l.length;R++)i(l[R],t,n,2);v&&r(a,t,n)}function Gk(e,t,n,r,i,s,{o:{nextSibling:o,parentNode:a,querySelector:c,insert:l,createText:d}},v){function R(T,C){let N=C;for(;N;){if(N&&N.nodeType===8){if(N.data==="teleport start anchor")t.targetStart=N;else if(N.data==="teleport anchor"){t.targetAnchor=N,T._lpa=t.targetAnchor&&o(t.targetAnchor);break}}N=o(N)}}function O(T,C){C.anchor=v(o(T),C,a(T),n,r,i,s)}const $=t.target=Df(t.props,c),P=yo(t.props);if($){const T=$._lpa||$.firstChild;t.shapeFlag&16&&(P?(O(e,t),R($,T),t.targetAnchor||Bf($,t,d,l,a(e)===$?e:null)):(t.anchor=o(e),R($,T),t.targetAnchor||Bf($,t,d,l),v(T&&o(T),t,$,n,r,i,s))),ja(t,P)}else P&&t.shapeFlag&16&&(O(e,t),t.targetStart=e,t.targetAnchor=o(e));return t.anchor&&o(t.anchor)}const Uk=Vk;function ja(e,t){const n=e.ctx;if(n&&n.ut){let r,i;for(t?(r=e.el,i=e.anchor):(r=e.targetStart,i=e.targetAnchor);r&&r!==i;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function Bf(e,t,n,r,i=null){const s=t.targetStart=n(""),o=t.targetAnchor=n("");return s[I0]=o,e&&(r(s,e,i),r(o,e,i)),o}const Wr=Symbol("_leaveCb"),ka=Symbol("_enterCb");function xg(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return tr(()=>{e.isMounted=!0}),Ci(()=>{e.isUnmounting=!0}),e}const nr=[Function,Array],Tg={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:nr,onEnter:nr,onAfterEnter:nr,onEnterCancelled:nr,onBeforeLeave:nr,onLeave:nr,onAfterLeave:nr,onLeaveCancelled:nr,onBeforeAppear:nr,onAppear:nr,onAfterAppear:nr,onAppearCancelled:nr},w0=e=>{const t=e.subTree;return t.component?w0(t.component):t},jk={name:"BaseTransition",props:Tg,setup(e,{slots:t}){const n=Mt(),r=xg();return()=>{const i=t.default&&ld(t.default(),!0),s=i&&i.length?_0(i):n.subTree?lr():void 0;if(!s)return;const o=at(e),{mode:a}=o;if(r.isLeaving)return Ch(s);const c=Iy(s);if(!c)return Ch(s);let l=Fs(c,o,r,n,v=>l=v);c.type!==Ut&&gi(c,l);let d=n.subTree&&Iy(n.subTree);if(d&&d.type!==Ut&&!vr(d,c)&&w0(n).type!==Ut){let v=Fs(d,o,r,n);if(gi(d,v),a==="out-in"&&c.type!==Ut)return r.isLeaving=!0,v.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete v.afterLeave,d=void 0},Ch(s);a==="in-out"&&c.type!==Ut?v.delayLeave=(R,O,$)=>{const P=E0(r,d);P[String(d.key)]=d,R[Wr]=()=>{O(),R[Wr]=void 0,delete l.delayedLeave,d=void 0},l.delayedLeave=()=>{$(),delete l.delayedLeave,d=void 0}}:d=void 0}else d&&(d=void 0);return s}}};function _0(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==Ut){t=n;break}}return t}const S0=jk;function E0(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Fs(e,t,n,r,i){const{appear:s,mode:o,persisted:a=!1,onBeforeEnter:c,onEnter:l,onAfterEnter:d,onEnterCancelled:v,onBeforeLeave:R,onLeave:O,onAfterLeave:$,onLeaveCancelled:P,onBeforeAppear:T,onAppear:C,onAfterAppear:N,onAppearCancelled:x}=t,S=String(e.key),b=E0(n,e),p=(y,m)=>{y&&fr(y,r,9,m)},g=(y,m)=>{const I=m[1];p(y,m),je(y)?y.every(_=>_.length<=1)&&I():y.length<=1&&I()},u={mode:o,persisted:a,beforeEnter(y){let m=c;if(!n.isMounted)if(s)m=T||c;else return;y[Wr]&&y[Wr](!0);const I=b[S];I&&vr(e,I)&&I.el[Wr]&&I.el[Wr](),p(m,[y])},enter(y){if(b[S]===e)return;let m=l,I=d,_=v;if(!n.isMounted)if(s)m=C||l,I=N||d,_=x||v;else return;let h=!1;y[ka]=w=>{h||(h=!0,w?p(_,[y]):p(I,[y]),u.delayedLeave&&u.delayedLeave(),y[ka]=void 0)};const f=y[ka].bind(null,!1);m?g(m,[y,f]):f()},leave(y,m){const I=String(e.key);if(y[ka]&&y[ka](!0),n.isUnmounting)return m();p(R,[y]);let _=!1;y[Wr]=f=>{_||(_=!0,m(),f?p(P,[y]):p($,[y]),y[Wr]=void 0,b[I]===e&&delete b[I])};const h=y[Wr].bind(null,!1);b[I]=e,O?g(O,[y,h]):h()},clone(y){const m=Fs(y,t,n,r,i);return i&&i(m),m}};return u}function Ch(e){if(Gl(e))return e=Er(e),e.children=null,e}function Iy(e){if(!Gl(e))return A0(e.type)&&e.children?_0(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&Ye(n.default))return n.default()}}function gi(e,t){e.shapeFlag&6&&e.component?(e.transition=t,gi(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ld(e,t=!1,n){let r=[],i=0;for(let s=0;s<e.length;s++){let o=e[s];const a=n==null?o.key:String(n)+String(o.key!=null?o.key:s);o.type===Lt?(o.patchFlag&128&&i++,r=r.concat(ld(o.children,t,a))):(t||o.type!==Ut)&&r.push(a!=null?Er(o,{key:a}):o)}if(i>1)for(let s=0;s<r.length;s++)r[s].patchFlag=-2;return r}function an(e,t){return Ye(e)?vt({name:e.name},t,{setup:e}):e}function zk(){const e=Mt();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}
vendor: 64,620 bytes, lines 3-5
3function kg(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Zk(e){const t=Mt(),n=wn(null);if(t){const i=t.refs===it?t.refs={}:t.refs;Object.defineProperty(i,e,{enumerable:!0,get:()=>n.value,set:s=>n.value=s})}return n}function Ay(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const pu=new WeakMap;function Ls(e,t,n,r,i=!1){if(je(e)){e.forEach((P,T)=>Ls(P,t&&(je(t)?t[T]:t),n,r,i));return}if(ci(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Ls(e,t,n,r.component.subTree);return}const s=r.shapeFlag&4?jl(r.component):r.el,o=i?null:s,{i:a,r:c}=e,l=t&&t.r,d=a.refs===it?a.refs={}:a.refs,v=a.setupState,R=at(v),O=v===it?fg:P=>Ay(d,P)?!1:ct(R,P),$=(P,T)=>!(T&&Ay(d,T));if(l!=null&&l!==c){if(wy(t),pt(l))d[l]=null,O(l)&&(v[l]=null);else if(Et(l)){const P=t;$(l,P.k)&&(l.value=null),P.k&&(d[P.k]=null)}}if(Ye(c))oa(c,a,12,[o,d]);else{const P=pt(c),T=Et(c);if(P||T){const C=()=>{if(e.f){const N=P?O(c)?v[c]:d[c]:$()||!e.k?c.value:d[e.k];if(i)je(N)&&Qu(N,s);else if(je(N))N.includes(s)||N.push(s);else if(P)d[c]=[s],O(c)&&(v[c]=d[c]);else{const x=[s];$(c,e.k)&&(c.value=x),e.k&&(d[e.k]=x)}}else P?(d[c]=o,O(c)&&(v[c]=o)):T&&($(c,e.k)&&(c.value=o),e.k&&(d[e.k]=o))};if(o){const N=()=>{C(),pu.delete(e)};N.id=-1,pu.set(e,N),Kt(N,n)}else wy(e),C()}}}function wy(e){const t=pu.get(e);t&&(t.flags|=8,pu.delete(e))}let _y=!1;const es=()=>{_y||(_y=!0)},Kk=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",Yk=e=>e.namespaceURI.includes("MathML"),Cc=e=>{if(e.nodeType===1){if(Kk(e))return"svg";if(Yk(e))return"mathml"}},Cs=e=>e.nodeType===8;function Xk(e){const{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:s,parentNode:o,remove:a,insert:c,createComment:l}}=e,d=(x,S)=>{if(!S.hasChildNodes()){n(null,x,S),fu(),S._vnode=x;return}v(S.firstChild,x,null,null,null),fu(),S._vnode=x},v=(x,S,b,p,g,u=!1)=>{u=u||!!S.dynamicChildren;const y=Cs(x)&&x.data==="[",m=()=>P(x,S,b,p,g,y),{type:I,ref:_,shapeFlag:h,patchFlag:f}=S;let w=x.nodeType;S.el=x,f===-2&&(u=!1,S.dynamicChildren=null);let E=null;switch(I){case ui:w!==3?S.children===""?(c(S.el=i(""),o(x),x),E=x):E=m():(x.data!==S.children&&(es(),x.data=S.children),E=s(x));break;case Ut:N(x)?(E=s(x),C(S.el=x.content.firstChild,x,b)):w!==8||y?E=m():E=s(x);break;case Eo:if(y&&(x=s(x),w=x.nodeType),w===1||w===3){E=x;const k=!S.children.length;for(let L=0;L<S.staticCount;L++)k&&(S.children+=E.nodeType===1?E.outerHTML:E.data),L===S.staticCount-1&&(S.anchor=E),E=s(E);return y?s(E):E}else m();break;case Lt:y?E=$(x,S,b,p,g,u):E=m();break;default:if(h&1)(w!==1||S.type.toLowerCase()!==x.tagName.toLowerCase())&&!N(x)?E=m():E=R(x,S,b,p,g,u);else if(h&6){S.slotScopeIds=g;const k=o(x);if(y?E=T(x):Cs(x)&&x.data==="teleport start"?E=T(x,x.data,"teleport end"):E=s(x),t(S,k,null,b,p,Cc(k),u),ci(S)&&!S.type.__asyncResolved){let L;y?(L=st(Lt),L.anchor=E?E.previousSibling:k.lastChild):L=x.nodeType===3?$i(""):st("div"),L.el=x,S.component.subTree=L}}else h&64?w!==8?E=m():E=S.type.hydrate(x,S,b,p,g,u,e,O):h&128&&(E=S.type.hydrate(x,S,b,p,Cc(o(x)),g,u,e,v))}return _!=null&&Ls(_,null,p,S),E},R=(x,S,b,p,g,u)=>{u=u||!!S.dynamicChildren;const{type:y,props:m,patchFlag:I,shapeFlag:_,dirs:h,transition:f}=S,w=y==="input"||y==="option";if(w||I!==-1){h&&Hr(S,null,b,"created");let E=!1;if(N(x)){E=q0(null,f)&&b&&b.vnode.props&&b.vnode.props.appear;const L=x.content.firstChild;if(E){const M=L.getAttribute("class");M&&(L.$cls=M),f.beforeEnter(L)}C(L,x,b),S.el=x=L}if(_&16&&!(m&&(m.innerHTML||m.textContent))){let L=O(x.firstChild,S,x,b,p,g,u);for(;L;){Ic(x,1)||es();const M=L;L=L.nextSibling,a(M)}}else if(_&8){let L=S.children;L[0]===` 4`&&(x.tagName==="PRE"||x.tagName==="TEXTAREA")&&(L=L.slice(1));const{textContent:M}=x;M!==L&&M!==L.replace(/\r\n|\r/g,` 5`)&&(Ic(x,0)||es(),x.textContent=S.children)}if(m){if(w||!u||I&48){const L=x.tagName.includes("-");for(const M in m)(w&&(M.endsWith("value")||M==="indeterminate")||ra(M)&&!Fi(M)||M[0]==="."||L&&!Fi(M))&&r(x,M,null,m[M],void 0,b)}else if(m.onClick)r(x,"onClick",null,m.onClick,void 0,b);else if(I&4&&li(m.style))for(const L in m.style)m.style[L]}let k;(k=m&&m.onVnodeBeforeMount)&&Mn(k,b,S),h&&Hr(S,null,b,"beforeMount"),((k=m&&m.onVnodeMounted)||h||E)&&nA(()=>{k&&Mn(k,b,S),E&&f.enter(x),h&&Hr(S,null,b,"mounted")},p)}return x.nextSibling},O=(x,S,b,p,g,u,y)=>{y=y||!!S.dynamicChildren;const m=S.children,I=m.length;for(let _=0;_<I;_++){const h=y?m[_]:m[_]=Fn(m[_]),f=h.type===ui;x?(f&&!y&&_+1<I&&Fn(m[_+1]).type===ui&&(c(i(x.data.slice(h.children.length)),b,s(x)),x.data=h.children),x=v(x,h,p,g,u,y)):f&&!h.children?c(h.el=i(""),b):(Ic(b,1)||es(),n(null,h,b,null,p,g,Cc(b),u))}return x},$=(x,S,b,p,g,u)=>{const{slotScopeIds:y}=S;y&&(g=g?g.concat(y):y);const m=o(x),I=O(s(x),S,m,b,p,g,u);return I&&Cs(I)&&I.data==="]"?s(S.anchor=I):(es(),c(S.anchor=l("]"),m,I),I)},P=(x,S,b,p,g,u)=>{if(Ic(x.parentElement,1)||es(),S.el=null,u){const I=T(x);for(;;){const _=s(x);if(_&&_!==I)a(_);else break}}const y=s(x),m=o(x);return a(x),n(null,S,m,y,b,p,Cc(m),g),b&&(b.vnode.el=S.el,fd(b,S.el)),y},T=(x,S="[",b="]")=>{let p=0;for(;x;)if(x=s(x),x&&Cs(x)&&(x.data===S&&p++,x.data===b)){if(p===0)return s(x);p--}return x},C=(x,S,b)=>{const p=S.parentNode;p&&p.replaceChild(x,S);let g=b;for(;g;)g.vnode.el===S&&(g.vnode.el=g.subTree.el=x),g=g.parent},N=x=>x.nodeType===1&&x.tagName==="TEMPLATE";return[d,v]}const Sy="data-allow-mismatch",Jk={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Ic(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(Sy);)e=e.parentElement;const n=e&&e.getAttribute(Sy);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:r.includes(Jk[t])}}const qk=Bl().requestIdleCallback||(e=>setTimeout(e,1)),Qk=Bl().cancelIdleCallback||(e=>clearTimeout(e)),eR=(e=1e4)=>t=>{const n=qk(t,{timeout:e});return()=>Qk(n)};function tR(e){const{top:t,left:n,bottom:r,right:i}=e.getBoundingClientRect(),{innerHeight:s,innerWidth:o}=window;return(t>0&&t<s||r>0&&r<s)&&(n>0&&n<o||i>0&&i<o)}const nR=e=>(t,n)=>{const r=new IntersectionObserver(i=>{for(const s of i)if(s.isIntersecting){r.disconnect(),t();break}},e);return n(i=>{if(i instanceof Element){if(tR(i))return t(),r.disconnect(),!1;r.observe(i)}}),()=>r.disconnect()},rR=e=>t=>{if(e){const n=matchMedia(e);if(n.matches)t();else return n.addEventListener("change",t,{once:!0}),()=>n.removeEventListener("change",t)}},iR=(e=[])=>(t,n)=>{pt(e)&&(e=[e]);let r=!1;const i=o=>{r||(r=!0,s(),t(),o.target.dispatchEvent(new o.constructor(o.type,o)))},s=()=>{n(o=>{for(const a of e)o.removeEventListener(a,i)})};return n(o=>{for(const a of e)o.addEventListener(a,i,{once:!0})}),s};function oR(e,t){if(Cs(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(Cs(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const ci=e=>!!e.type.__asyncLoader;function Li(e){Ye(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,hydrate:s,timeout:o,suspensible:a=!0,onError:c}=e;let l=null,d,v=0;const R=()=>(v++,l=null,O()),O=()=>{let $;return l||($=l=t().catch(P=>{if(P=P instanceof Error?P:new Error(String(P)),c)return new Promise((T,C)=>{c(P,()=>T(R()),()=>C(P),v+1)});throw P}).then(P=>$!==l&&l?l:(P&&(P.__esModule||P[Symbol.toStringTag]==="Module")&&(P=P.default),d=P,P)))};return an({name:"AsyncComponentWrapper",__asyncLoader:O,__asyncHydrate($,P,T){let C=!1;(P.bu||(P.bu=[])).push(()=>C=!0);const N=()=>{C||T()},x=s?()=>{const S=s(N,b=>oR($,b));S&&(P.bum||(P.bum=[])).push(S)}:N;d?x():O().then(()=>!P.isUnmounted&&x())},get __asyncResolved(){return d},setup(){const $=un;if(kg($),d)return()=>Ac(d,$);const P=x=>{l=null,Go(x,$,13,!r)};if(a&&$.suspense||No)return O().then(x=>()=>Ac(x,$)).catch(x=>(P(x),()=>r?st(r,{error:x}):null));const T=yt(!1),C=yt(),N=yt(!!i);return i&&setTimeout(()=>{N.value=!1},i),o!=null&&setTimeout(()=>{if(!T.value&&!C.value){const x=new Error(`Async component timed out after ${o}ms.`);P(x),C.value=x}},o),O().then(()=>{T.value=!0,$.parent&&Gl($.parent.vnode)&&$.parent.update()}).catch(x=>{P(x),C.value=x}),()=>{if(T.value&&d)return Ac(d,$);if(C.value&&r)return st(r,{error:C.value});if(n&&!N.value)return Ac(n,$)}}})}function Ac(e,t){const{ref:n,props:r,children:i,ce:s}=t.vnode,o=st(e,r,i);return o.ref=n,o.ce=s,delete t.vnode.ce,o}const Gl=e=>e.type.__isKeepAlive,sR={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Mt(),r=n.ctx;if(!r.renderer)return()=>{const N=t.default&&t.default();return N&&N.length===1?N[0]:N};const i=new Map,s=new Set;let o=null;const a=n.suspense,{renderer:{p:c,m:l,um:d,o:{createElement:v}}}=r,R=v("div");r.activate=(N,x,S,b,p)=>{const g=N.component;l(N,x,S,0,a),c(g.vnode,N,x,S,g,a,b,N.slotScopeIds,p),Kt(()=>{g.isDeactivated=!1,g.a&&wo(g.a);const u=N.props&&N.props.onVnodeMounted;u&&Mn(u,g.parent,N)},a)},r.deactivate=N=>{const x=N.component;mu(x.m),mu(x.a),l(N,R,null,1,a),Kt(()=>{x.da&&wo(x.da);const S=N.props&&N.props.onVnodeUnmounted;S&&Mn(S,x.parent,N),x.isDeactivated=!0},a)};function O(N){Ih(N),d(N,n,a,!0)}function $(N){i.forEach((x,S)=>{const b=Zf(ci(x)?x.type.__asyncResolved||{}:x.type);b&&!N(b)&&P(S)})}function P(N){const x=i.get(N);x&&(!o||!vr(x,o))?O(x):o&&Ih(o),i.delete(N),s.delete(N)}xt(()=>[e.include,e.exclude],([N,x])=>{N&&$(S=>za(N,S)),x&&$(S=>!za(x,S))},{flush:"post",deep:!0});let T=null;const C=()=>{T!=null&&(yu(n.subTree.type)?Kt(()=>{i.set(T,wc(n.subTree))},n.subTree.suspense):i.set(T,wc(n.subTree)))};return tr(C),Ul(C),Ci(()=>{i.forEach(N=>{const{subTree:x,suspense:S}=n,b=wc(x);if(N.type===b.type&&N.key===b.key){Ih(b);const p=b.component.da;p&&Kt(p,S);return}O(N)})}),()=>{if(T=null,!t.default)return o=null;const N=t.default(),x=N[0];if(N.length>1)return o=null,N;if(!mi(x)||!(x.shapeFlag&4)&&!(x.shapeFlag&128))return o=null,x;let S=wc(x);if(S.type===Ut)return o=null,S;const b=S.type,p=Zf(ci(S)?S.type.__asyncResolved||{}:b),{include:g,exclude:u,max:y}=e;if(g&&(!p||!za(g,p))||u&&p&&za(u,p))return S.shapeFlag&=-257,o=S,x;const m=S.key==null?b:S.key,I=i.get(m);return S.el&&(S=Er(S),x.shapeFlag&128&&(x.ssContent=S)),T=m,I?(S.el=I.el,S.component=I.component,S.transition&&gi(S,S.transition),S.shapeFlag|=512,s.delete(m),s.add(m)):(s.add(m),y&&s.size>parseInt(y,10)&&P(s.values().next().value)),S.shapeFlag|=256,o=S,yu(x.type)?x:S}}},x0=sR;function za(e,t){return je(e)?e.some(n=>za(n,t)):pt(e)?e.split(",").includes(t):BI(e)?(e.lastIndex=0,e.test(t)):!1}function cd(e,t){T0(e,"a",t)}function ud(e,t){T0(e,"da",t)}function T0(e,t,n=un){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(dd(t,r,n),n){let i=n.parent;for(;i&&i.parent;)Gl(i.parent.vnode)&&aR(r,t,n,i),i=i.parent}}function aR(e,t,n,r){const i=dd(t,e,r,!0);Ii(()=>{Qu(r[t],i)},n)}function Ih(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function wc(e){return e.shapeFlag&128?e.ssContent:e}function dd(e,t,n=un,r=!1){if(n){const i=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...o)=>{fi();const a=aa(n),c=fr(t,n,e,o);return a(),pi(),c});return r?i.unshift(s):i.push(s),s}}const vi=e=>(t,n=un)=>{(!No||e==="sp")&&dd(e,(...r)=>t(...r),n)},Rg=vi("bm"),tr=vi("m"),Lg=vi("bu"),Ul=vi("u"),Ci=vi("bum"),Ii=vi("um"),k0=vi("sp"),R0=vi("rtg"),L0=vi("rtc");function Og(e,t=un){dd("ec",e,t)}const Ng="components",lR="directives";function gl(e,t){return Pg(Ng,e,!0,t)||e}const O0=Symbol.for("v-ndc");function N0(e){return pt(e)?Pg(Ng,e,!1)||e:e||O0}function cR(e){return Pg(lR,e)}function Pg(e,t,n=!0,r=!1){const i=fn||un;if(i){const s=i.type;if(e===Ng){const a=Zf(s,!1);if(a&&(a===t||a===zt(t)||a===ia(zt(t))))return s}const o=Ey(i[e]||s[e],t)||Ey(i.appContext[e],t);return!o&&r?s:o}}function Ey(e,t){return e&&(e[t]||e[zt(t)]||e[ia(zt(t))])}function $g(e,t,n,r){let i;const s=n&&n[r],o=je(e);if(o||pt(e)){const a=o&&li(e);let c=!1,l=!1;a&&(c=!Hn(e),l=_r(e),e=rd(e)),i=new Array(e.length);for(let d=0,v=e.length;d<v;d++)i[d]=t(c?l?Bs(Sr(e[d])):Sr(e[d]):e[d],d,void 0,s&&s[d])}else if(typeof e=="number"){i=new Array(e);for(let a=0;a<e;a++)i[a]=t(a+1,a,void 0,s&&s[a])}else if(dt(e))if(e[Symbol.iterator])i=Array.from(e,(a,c)=>t(a,c,void 0,s&&s[c]));else{const a=Object.keys(e);i=new Array(a.length);for(let c=0,l=a.length;c<l;c++){const d=a[c];i[c]=t(e[d],d,c,s&&s[c])}}else i=[];return n&&(n[r]=i),i}function uR(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(je(r))for(let i=0;i<r.length;i++)e[r[i].name]=r[i].fn;else r&&(e[r.name]=r.key?(...i)=>{const s=r.fn(...i);return s&&(s.key=r.key),s}:r.fn)}return e}function Mg(e,t,n={},r,i){if(fn.ce||fn.parent&&ci(fn.parent)&&fn.parent.ce){const l=Object.keys(n).length>0;return t!=="default"&&(n.name=t),It(),sr(Lt,null,[st("slot",n,r&&r())],l?-2:64)}let s=e[t];s&&s._c&&(s._d=!1),It();const o=s&&Dg(s(n)),a=n.key||o&&o.key,c=sr(Lt,{key:(a&&!Un(a)?a:`_${t}`)+(!o&&r?"_fb":"")},o||(r?r():[]),o&&e._===1?64:-2);return!i&&c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),s&&s._c&&(s._d=!0),c}function Dg(e){return e.some(t=>mi(t)?!(t.type===Ut||t.type===Lt&&!Dg(t.children)):!0)?e:null}function dR(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:ks(r)]=e[r];return n}const Ff=e=>e?lA(e)?jl(e):Ff(e.parent):null,qa=vt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ff(e.parent),$root:e=>Ff(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Bg(e),$forceUpdate:e=>e.f||(e.f=()=>{Sg(e.update)}),$nextTick:e=>e.n||(e.n=Wn.bind(e.proxy)),$watch:e=>Hk.bind(e)}),Ah=(e,t)=>e!==it&&!e.__isScriptSetup&&ct(e,t),Hf={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:s,accessCache:o,type:a,appContext:c}=e;if(t[0]!=="$"){const R=o[t];if(R!==void 0)switch(R){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return s[t]}else{if(Ah(r,t))return o[t]=1,r[t];if(i!==it&&ct(i,t))return o[t]=2,i[t];if(ct(s,t))return o[t]=3,s[t];if(n!==it&&ct(n,t))return o[t]=4,n[t];Wf&&(o[t]=0)}}const l=qa[t];let d,v;if(l)return t==="$attrs"&&Cn(e.attrs,"get",""),l(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(n!==it&&ct(n,t))return o[t]=4,n[t];if(v=c.config.globalProperties,ct(v,t))return v[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:s}=e;return Ah(i,t)?(i[t]=n,!0):r!==it&&ct(r,t)?(r[t]=n,!0):ct(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,props:s,type:o}},a){let c;return!!(n[a]||e!==it&&a[0]!=="$"&&ct(e,a)||Ah(t,a)||ct(s,a)||ct(r,a)||ct(qa,a)||ct(i.config.globalProperties,a)||(c=o.__cssModules)&&c[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ct(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},hR=vt({},Hf,{get(e,t){if(t!==Symbol.unscopables)return Hf.get(e,t,e)},has(e,t){return t[0]!=="_"&&!mg(t)}});function fR(){return null}function pR(){return null}function gR(e){}function mR(e){}function yR(){return null}function bR(){}function vR(e,t){return null}function P0(){return $0().slots}function CR(){return $0().attrs}function $0(e){const t=Mt();return t.setupContext||(t.setupContext=dA(t))}function ml(e){return je(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function IR(e,t){const n=ml(e);for(const r in t){if(r.startsWith("__skip"))continue;let i=n[r];i?je(i)||Ye(i)?i=n[r]={type:i,default:t[r]}:i.default=t[r]:i===null&&(i=n[r]={default:t[r]}),i&&t[`__skip_${r}`]&&(i.skipFactory=!0)}return n}function AR(e,t){return!e||!t?e||t:je(e)&&je(t)?e.concat(t):vt({},ml(e),ml(t))}function wR(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function _R(e){const t=Mt(),n=No;let r=e();vl(),n&&Ns(!1);const i=()=>{aa(t),n&&Ns(!0)},s=()=>{Mt()!==t&&t.scope.off(),vl(),n&&Ns(!1)};return ed(r)&&(r=r.catch(o=>{throw i(),Promise.resolve().then(()=>Promise.resolve().then(s)),o})),[r,()=>{i(),Promise.resolve().then(s)}]}let Wf=!0;function SR(e){const t=Bg(e),n=e.proxy,r=e.ctx;Wf=!1,t.beforeCreate&&xy(t.beforeCreate,e,"bc");const{data:i,computed:s,methods:o,watch:a,provide:c,inject:l,created:d,beforeMount:v,mounted:R,beforeUpdate:O,updated:$,activated:P,deactivated:T,beforeDestroy:C,beforeUnmount:N,destroyed:x,unmounted:S,render:b,renderTracked:p,renderTriggered:g,errorCaptured:u,serverPrefetch:y,expose:m,inheritAttrs:I,components:_,directives:h,filters:f}=t;if(l&&ER(l,r,null),o)for(const k in o){const L=o[k];Ye(L)&&(r[k]=L.bind(n))}if(i){const k=i.call(n,n);dt(k)&&(e.data=Pn(k))}if(Wf=!0,s)for(const k in s){const L=s[k],M=Ye(L)?L.bind(n,n):Ye(L.get)?L.get.bind(n,n):Qn,B=!Ye(L)&&Ye(L.set)?L.set.bind(n):Qn,j=Xe({get:M,set:B});Object.defineProperty(r,k,{enumerable:!0,configurable:!0,get:()=>j.value,set:z=>j.value=z})}if(a)for(const k in a)M0(a[k],r,n,k);if(c){const k=Ye(c)?c.call(n):c;Reflect.ownKeys(k).forEach(L=>{Ir(L,k[L])})}d&&xy(d,e,"c");function E(k,L){je(L)?L.forEach(M=>k(M.bind(n))):L&&k(L.bind(n))}if(E(Rg,v),E(tr,R),E(Lg,O),E(Ul,$),E(cd,P),E(ud,T),E(Og,u),E(L0,p),E(R0,g),E(Ci,N),E(Ii,S),E(k0,y),je(m))if(m.length){const k=e.exposed||(e.exposed={});m.forEach(L=>{Object.defineProperty(k,L,{get:()=>n[L],set:M=>n[L]=M,enumerable:!0})})}else e.exposed||(e.exposed={});b&&e.render===Qn&&(e.render=b),I!=null&&(e.inheritAttrs=I),_&&(e.components=_),h&&(e.directives=h),y&&kg(e)}function ER(e,t,n=Qn){je(e)&&(e=Vf(e));for(const r in e){const i=e[r];let s;dt(i)?"default"in i?s=Nt(i.from||r,i.default,!0):s=Nt(i.from||r):s=Nt(i),Et(s)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:o=>s.value=o}):t[r]=s}}function xy(e,t,n){fr(je(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function M0(e,t,n,r){let i=r.includes(".")?C0(n,r):()=>n[r];if(pt(e)){const s=t[e];Ye(s)&&xt(i,s)}else if(Ye(e))xt(i,e.bind(n));else if(dt(e))if(je(e))e.forEach(s=>M0(s,t,n,r));else{const s=Ye(e.handler)?e.handler.bind(n):t[e.handler];Ye(s)&&xt(i,s,e)}}function Bg(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:s,config:{optionMergeStrategies:o}}=e.appContext,a=s.get(t);let c;return a?c=a:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(l=>gu(c,l,o,!0)),gu(c,t,o)),dt(t)&&s.set(t,c),c}function gu(e,t,n,r=!1){const{mixins:i,extends:s}=t;s&&gu(e,s,n,!0),i&&i.forEach(o=>gu(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const a=xR[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const xR={data:Ty,props:ky,emits:ky,methods:Za,computed:Za,beforeCreate:kn,created:kn,beforeMount:kn,mounted:kn,beforeUpdate:kn,updated:kn,beforeDestroy:kn,beforeUnmount:kn,destroyed:kn,unmounted:kn,activated:kn,deactivated:kn,errorCaptured:kn,serverPrefetch:kn,components:Za,directives:Za,watch:kR,provide:Ty,inject:TR};function Ty(e,t){return t?e?function(){return vt(Ye(e)?e.call(this,this):e,Ye(t)?t.call(this,this):t)}:t:e}function TR(e,t){return Za(Vf(e),Vf(t))}function Vf(e){if(je(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function kn(e,t){return e?[...new Set([].concat(e,t))]:t}function Za(e,t){return e?vt(Object.create(null),e,t):t}function ky(e,t){return e?je(e)&&je(t)?[...new Set([...e,...t])]:vt(Object.create(null),ml(e),ml(t??{})):t}function kR(e,t){if(!e)return t;if(!t)return e;const n=vt(Object.create(null),e);for(const r in t)n[r]=kn(e[r],t[r]);return n}function D0(){return{app:null,config:{isNativeTag:fg,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let RR=0;function LR(e,t){return function(r,i=null){Ye(r)||(r=vt({},r)),i!=null&&!dt(i)&&(i=null);const s=D0(),o=new WeakSet,a=[];let c=!1;const l=s.app={_uid:RR++,_component:r,_props:i,_container:null,_context:s,_instance:null,version:fA,get config(){return s.config},set config(d){},use(d,...v){return o.has(d)||(d&&Ye(d.install)?(o.add(d),d.install(l,...v)):Ye(d)&&(o.add(d),d(l,...v))),l},mixin(d){return s.mixins.includes(d)||s.mixins.push(d),l},component(d,v){return v?(s.components[d]=v,l):s.components[d]},directive(d,v){return v?(s.directives[d]=v,l):s.directives[d]},mount(d,v,R){if(!c){const O=l._ceVNode||st(r,i);return O.appContext=s,R===!0?R="svg":R===!1&&(R=void 0),v&&t?t(O,d):e(O,d,R),c=!0,l._container=d,d.__vue_app__=l,jl(O.component)}},onUnmount(d){a.push(d)},unmount(){c&&(fr(a,l._instance,16),e(null,l._container),delete l._container.__vue_app__)},provide(d,v){return s.provides[d]=v,l},runWithContext(d){const v=So;So=l;try{return d()}finally{So=v}}};return l}}let So=null;function OR(e,t,n=it){const r=Mt(),i=zt(t),s=In(t),o=B0(e,i),a=_g((c,l)=>{let d,v=it,R;return v0(()=>{const O=e[i];rn(d,O)&&(d=O,l())}),{get(){return c(),n.get?n.get(d):d},set(O){const $=n.set?n.set(O):O;if(!rn($,d)&&!(v!==it&&rn(O,v)))return;const P=r.vnode.props;P&&(t in P||i in P||s in P)&&(`onUpdate:${t}`in P||`onUpdate:${i}`in P||`onUpdate:${s}`in P)||(d=O,l()),r.emit(`update:${t}`,$),rn(O,$)&&rn(O,v)&&!rn($,R)&&l(),v=O,R=$}}});return a[Symbol.iterator]=()=>{let c=0;return{next(){return c<2?{value:c++?o||it:a,done:!1}:{done:!0}}}},a}const B0=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${zt(t)}Modifiers`]||e[`${In(t)}Modifiers`];function NR(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||it;let i=n;const s=t.startsWith("update:"),o=s&&B0(r,t.slice(7));o&&(o.trim&&(i=n.map(d=>pt(d)?d.trim():d)),o.number&&(i=n.map(Dl)));let a,c=r[a=ks(t)]||r[a=ks(zt(t))];!c&&s&&(c=r[a=ks(In(t))]),c&&fr(c,e,6,i);const l=r[a+"Once"];if(l){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,fr(l,e,6,i)}}const PR=new WeakMap;function F0(e,t,n=!1){const r=n?PR:t.emitsCache,i=r.get(e);if(i!==void 0)return i;const s=e.emits;let o={},a=!1;if(!Ye(e)){const c=l=>{const d=F0(l,t,!0);d&&(a=!0,vt(o,d))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!s&&!a?(dt(e)&&r.set(e,null),null):(je(s)?s.forEach(c=>o[c]=null):vt(o,s),dt(e)&&r.set(e,o),o)}function hd(e,t){return!e||!ra(t)?!1:(t=t.slice(2).replace(/Once$/,""),ct(e,t[0].toLowerCase()+t.slice(1))||ct(e,In(t))||ct(e,t))}function Xc(e){const{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[s],slots:o,attrs:a,emit:c,render:l,renderCache:d,props:v,data:R,setupState:O,ctx:$,inheritAttrs:P}=e,T=pl(e);let C,N;try{if(n.shapeFlag&4){const S=i||r,b=S;C=Fn(l.call(b,S,d,v,O,R,$)),N=a}else{const S=t;C=Fn(S.length>1?S(v,{attrs:a,slots:o,emit:c}):S(v,null)),N=t.props?a:MR(a)}}catch(S){Qa.length=0,Go(S,e,1),C=st(Ut)}let x=C;if(N&&P!==!1){const S=Object.keys(N),{shapeFlag:b}=x;S.length&&b&7&&(s&&S.some(Pl)&&(N=DR(N,s)),x=Er(x,N,!1,!0))}return n.dirs&&(x=Er(x,null,!1,!0),x.dirs=x.dirs?x.dirs.concat(n.dirs):n.dirs),n.transition&&gi(x,n.transition),C=x,pl(T),C}function $R(e,t=!0){let n;for(let r=0;r<e.length;r++){const i=e[r];if(mi(i)){if(i.type!==Ut||i.children==="v-if"){if(n)return;n=i}}else return}return n}const MR=e=>{let t;for(const n in e)(n==="class"||n==="style"||ra(n))&&((t||(t={}))[n]=e[n]);return t},DR=(e,t)=>{const n={};for(const r in e)(!Pl(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function BR(e,t,n){const{props:r,children:i,component:s}=e,{props:o,children:a,patchFlag:c}=t,l=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?Ry(r,o,l):!!o;if(c&8){const d=t.dynamicProps;for(let v=0;v<d.length;v++){const R=d[v];if(H0(o,r,R)&&!hd(l,R))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:r===o?!1:r?o?Ry(r,o,l):!0:!!o;return!1}function Ry(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){const s=r[i];if(H0(t,e,s)&&!hd(n,s))return!0}return!1}function H0(e,t,n){const r=e[n],i=t[n];return n==="style"&&dt(r)&&dt(i)?!zr(r,i):r!==i}function fd({vnode:e,parent:t,suspense:n},r){for(;t;){const i=t.subTree;if(i.suspense&&i.suspense.activeBranch===e&&(i.suspense.vnode.el=i.el=r,e=i),i===e)(e=t.vnode).el=r,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=r)}const W0={},V0=()=>Object.create(W0),G0=e=>Object.getPrototypeOf(e)===W0;function FR(e,t,n,r=!1){const i={},s=V0();e.propsDefaults=Object.create(null),U0(e,t,i,s);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);n?e.props=r?i:or(i):e.type.props?e.props=i:e.props=s,e.attrs=s}function HR(e,t,n,r){const{props:i,attrs:s,vnode:{patchFlag:o}}=e,a=at(i),[c]=e.propsOptions;let l=!1;if((r||o>0)&&!(o&16)){if(o&8){const d=e.vnode.dynamicProps;for(let v=0;v<d.length;v++){let R=d[v];if(hd(e.emitsOptions,R))continue;const O=t[R];if(c)if(ct(s,R))O!==s[R]&&(s[R]=O,l=!0);else{const $=zt(R);i[$]=Gf(c,a,$,O,e,!1)}else O!==s[R]&&(s[R]=O,l=!0)}}}else{U0(e,t,i,s)&&(l=!0);let d;for(const v in a)(!t||!ct(t,v)&&((d=In(v))===v||!ct(t,d)))&&(c?n&&(n[v]!==void 0||n[d]!==void 0)&&(i[v]=Gf(c,a,v,void 0,e,!0)):delete i[v]);if(s!==a)for(const v in s)(!t||!ct(t,v))&&(delete s[v],l=!0)}l&&ei(e.attrs,"set","")}function U0(e,t,n,r){const[i,s]=e.propsOptions;let o=!1,a;if(t)for(let c in t){if(Fi(c))continue;const l=t[c];let d;i&&ct(i,d=zt(c))?!s||!s.includes(d)?n[d]=l:(a||(a={}))[d]=l:hd(e.emitsOptions,c)||(!(c in r)||l!==r[c])&&(r[c]=l,o=!0)}if(s){const c=at(n),l=a||it;for(let d=0;d<s.length;d++){const v=s[d];n[v]=Gf(i,c,v,l[v],e,!ct(l,v))}}return o}function Gf(e,t,n,r,i,s){const o=e[n];if(o!=null){const a=ct(o,"default");if(a&&r===void 0){const c=o.default;if(o.type!==Function&&!o.skipFactory&&Ye(c)){const{propsDefaults:l}=i;if(n in l)r=l[n];else{const d=aa(i);r=l[n]=c.call(null,t),d()}}else r=c;i.ce&&i.ce._setProp(n,r)}o[0]&&(s&&!a?r=!1:o[1]&&(r===""||r===In(n))&&(r=!0))}return r}const WR=new WeakMap;function j0(e,t,n=!1){const r=n?WR:t.propsCache,i=r.get(e);if(i)return i;const s=e.props,o={},a=[];let c=!1;if(!Ye(e)){const d=v=>{c=!0;const[R,O]=j0(v,t,!0);vt(o,R),O&&a.push(...O)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!s&&!c)return dt(e)&&r.set(e,Io),Io;if(je(s))for(let d=0;d<s.length;d++){const v=zt(s[d]);Ly(v)&&(o[v]=it)}else if(s)for(const d in s){const v=zt(d);if(Ly(v)){const R=s[d],O=o[v]=je(R)||Ye(R)?{type:R}:vt({},R),$=O.type;let P=!1,T=!0;if(je($))for(let C=0;C<$.length;++C){const N=$[C],x=Ye(N)&&N.name;if(x==="Boolean"){P=!0;break}else x==="String"&&(T=!1)}else P=Ye($)&&$.name==="Boolean";O[0]=P,O[1]=T,(P||ct(O,"default"))&&a.push(v)}}const l=[o,a];return dt(e)&&r.set(e,l),l}function Ly(e){return e[0]!=="$"&&!Fi(e)}const Fg=e=>e==="_"||e==="_ctx"||e==="$stable",Hg=e=>je(e)?e.map(Fn):[Fn(e)],VR=(e,t,n)=>{if(t._n)return t;const r=Bn((...i)=>Hg(t(...i)),n);return r._c=!1,r},z0=(e,t,n)=>{const r=e._ctx;for(const i in e){if(Fg(i))continue;const s=e[i];if(Ye(s))t[i]=VR(i,s,r);else if(s!=null){const o=Hg(s);t[i]=()=>o}}},Z0=(e,t)=>{const n=Hg(t);e.slots.default=()=>n},K0=(e,t,n)=>{for(const r in t)(n||!Fg(r))&&(e[r]=t[r])},GR=(e,t,n)=>{const r=e.slots=V0();if(e.vnode.shapeFlag&32){const i=t._;i?(K0(r,t,n),n&&gg(r,"_",i,!0)):z0(t,r)}else t&&Z0(e,t)},UR=(e,t,n)=>{const{vnode:r,slots:i}=e;let s=!0,o=it;if(r.shapeFlag&32){const a=t._;a?n&&a===1?s=!1:K0(i,t,n):(s=!t.$stable,z0(t,i)),o=t}else t&&(Z0(e,t),o={default:1});if(s)for(const a in i)!Fg(a)&&o[a]==null&&delete i[a]},Kt=nA;function Y0(e){return J0(e)}function X0(e){return J0(e,Xk)}function J0(e,t){const n=Bl();n.__VUE__=!0;const{insert:r,remove:i,patchProp:s,createElement:o,createText:a,createComment:c,setText:l,setElementText:d,parentNode:v,nextSibling:R,setScopeId:O=Qn,insertStaticContent:$}=e,P=(X,q,ne,se=null,he=null,ie=null,oe=void 0,de=null,me=!!q.dynamicChildren)=>{if(X===q)return;X&&!vr(X,q)&&(se=A(X),z(X,he,ie,!0),X=null),q.patchFlag===-2&&(me=!1,q.dynamicChildren=null);const{type:be,ref:Se,shapeFlag:V}=q;switch(be){case ui:T(X,q,ne,se);break;case Ut:C(X,q,ne,se);break;case Eo:X==null&&N(q,ne,se,oe);break;case Lt:_(X,q,ne,se,he,ie,oe,de,me);break;default:V&1?b(X,q,ne,se,he,ie,oe,de,me):V&6?h(X,q,ne,se,he,ie,oe,de,me):(V&64||V&128)&&be.process(X,q,ne,se,he,ie,oe,de,me,U)}Se!=null&&he?Ls(Se,X&&X.ref,ie,q||X,!q):Se==null&&X&&X.ref!=null&&Ls(X.ref,null,ie,X,!0)},T=(X,q,ne,se)=>{if(X==null)r(q.el=a(q.children),ne,se);else{const he=q.el=X.el;q.children!==X.children&&l(he,q.children)}},C=(X,q,ne,se)=>{X==null?r(q.el=c(q.children||""),ne,se):q.el=X.el},N=(X,q,ne,se)=>{[X.el,X.anchor]=$(X.children,q,ne,se,X.el,X.anchor)},x=({el:X,anchor:q},ne,se)=>{let he;for(;X&&X!==q;)he=R(X),r(X,ne,se),X=he;r(q,ne,se)},S=({el:X,anchor:q})=>{let ne;for(;X&&X!==q;)ne=R(X),i(X),X=ne;i(q)},b=(X,q,ne,se,he,ie,oe,de,me)=>{if(q.type==="svg"?oe="svg":q.type==="math"&&(oe="mathml"),X==null)p(q,ne,se,he,ie,oe,de,me);else{const be=X.el&&X.el._isVueCE?X.el:null;try{be&&be._beginPatch(),y(X,q,he,ie,oe,de,me)}finally{be&&be._endPatch()}}},p=(X,q,ne,se,he,ie,oe,de)=>{let me,be;const{props:Se,shapeFlag:V,transition:te,dirs:re}=X;if(me=X.el=o(X.type,ie,Se&&Se.is,Se),V&8?d(me,X.children):V&16&&u(X.children,me,null,se,he,wh(X,ie),oe,de),re&&Hr(X,null,se,"created"),g(me,X,X.scopeId,oe,se),Se){for(const G in Se)G!=="value"&&!Fi(G)&&s(me,G,null,Se[G],ie,se);"value"in Se&&s(me,"value",null,Se.value,ie),(be=Se.onVnodeBeforeMount)&&Mn(be,se,X)}re&&Hr(X,null,se,"beforeMount");const le=q0(he,te);le&&te.beforeEnter(me),r(me,q,ne),((be=Se&&Se.onVnodeMounted)||le||re)&&Kt(()=>{be&&Mn(be,se,X),le&&te.enter(me),re&&Hr(X,null,se,"mounted")},he)},g=(X,q,ne,se,he)=>{if(ne&&O(X,ne),se)for(let ie=0;ie<se.length;ie++)O(X,se[ie]);if(he){let ie=he.subTree;if(q===ie||yu(ie.type)&&(ie.ssContent===q||ie.ssFallback===q)){const oe=he.vnode;g(X,oe,oe.scopeId,oe.slotScopeIds,he.parent)}}},u=(X,q,ne,se,he,ie,oe,de,me=0)=>{for(let be=me;be<X.length;be++){const Se=X[be]=de?Qr(X[be]):Fn(X[be]);P(null,Se,q,ne,se,he,ie,oe,de)}},y=(X,q,ne,se,he,ie,oe)=>{const de=q.el=X.el;let{patchFlag:me,dynamicChildren:be,dirs:Se}=q;me|=X.patchFlag&16;const V=X.props||it,te=q.props||it;let re;if(ne&&lo(ne,!1),(re=te.onVnodeBeforeUpdate)&&Mn(re,ne,q,X),Se&&Hr(q,X,ne,"beforeUpdate"),ne&&lo(ne,!0),(V.innerHTML&&te.innerHTML==null||V.textContent&&te.textContent==null)&&d(de,""),be?m(X.dynamicChildren,be,de,ne,se,wh(q,he),ie):oe||L(X,q,de,null,ne,se,wh(q,he),ie,!1),me>0){if(me&16)I(de,V,te,ne,he);else if(me&2&&V.class!==te.class&&s(de,"class",null,te.class,he),me&4&&s(de,"style",V.style,te.style,he),me&8){const le=q.dynamicProps;for(let G=0;G<le.length;G++){const Z=le[G],J=V[Z],ae=te[Z];(ae!==J||Z==="value")&&s(de,Z,J,ae,he,ne)}}me&1&&X.children!==q.children&&d(de,q.children)}else!oe&&be==null&&I(de,V,te,ne,he);((re=te.onVnodeUpdated)||Se)&&Kt(()=>{re&&Mn(re,ne,q,X),Se&&Hr(q,X,ne,"updated")},se)},m=(X,q,ne,se,he,ie,oe)=>{for(let de=0;de<q.length;de++){const me=X[de],be=q[de],Se=me.el&&(me.type===Lt||!vr(me,be)||me.shapeFlag&198)?v(me.el):ne;P(me,be,Se,null,se,he,ie,oe,!0)}},I=(X,q,ne,se,he)=>{if(q!==ne){if(q!==it)for(const ie in q)!Fi(ie)&&!(ie in ne)&&s(X,ie,q[ie],null,he,se);for(const ie in ne){if(Fi(ie))continue;const oe=ne[ie],de=q[ie];oe!==de&&ie!=="value"&&s(X,ie,de,oe,he,se)}"value"in ne&&s(X,"value",q.value,ne.value,he)}},_=(X,q,ne,se,he,ie,oe,de,me)=>{const be=q.el=X?X.el:a(""),Se=q.anchor=X?X.anchor:a("");let{patchFlag:V,dynamicChildren:te,slotScopeIds:re}=q;re&&(de=de?de.concat(re):re),X==null?(r(be,ne,se),r(Se,ne,se),u(q.children||[],ne,Se,he,ie,oe,de,me)):V>0&&V&64&&te&&X.dynamicChildren&&X.dynamicChildren.length===te.length?(m(X.dynamicChildren,te,ne,he,ie,oe,de),(q.key!=null||he&&q===he.subTree)&&Wg(X,q,!0)):L(X,q,ne,Se,he,ie,oe,de,me)},h=(X,q,ne,se,he,ie,oe,de,me)=>{q.slotScopeIds=de,X==null?q.shapeFlag&512?he.ctx.activate(q,ne,se,oe,me):f(q,ne,se,he,ie,oe,me):w(X,q,me)},f=(X,q,ne,se,he,ie,oe)=>{const de=X.component=aA(X,se,he);if(Gl(X)&&(de.ctx.renderer=U),cA(de,!1,oe),de.asyncDep){if(he&&he.registerDep(de,E,oe),!X.el){const me=de.subTree=st(Ut);C(null,me,q,ne),X.placeholder=me.el}}else E(de,X,q,ne,he,ie,oe)},w=(X,q,ne)=>{const se=q.component=X.component;if(BR(X,q,ne))if(se.asyncDep&&!se.asyncResolved){k(se,q,ne);return}else se.next=q,se.update();else q.el=X.el,se.vnode=q},E=(X,q,ne,se,he,ie,oe)=>{const de=()=>{if(X.isMounted){let{next:V,bu:te,u:re,parent:le,vnode:G}=X;{const we=Q0(X);if(we){V&&(V.el=G.el,k(X,V,oe)),we.asyncDep.then(()=>{Kt(()=>{X.isUnmounted||be()},he)});return}}let Z=V,J;lo(X,!1),V?(V.el=G.el,k(X,V,oe)):V=G,te&&wo(te),(J=V.props&&V.props.onVnodeBeforeUpdate)&&Mn(J,le,V,G),lo(X,!0);const ae=Xc(X),fe=X.subTree;X.subTree=ae,P(fe,ae,v(fe.el),A(fe),X,he,ie),V.el=ae.el,Z===null&&fd(X,ae.el),re&&Kt(re,he),(J=V.props&&V.props.onVnodeUpdated)&&Kt(()=>Mn(J,le,V,G),he)}else{let V;const{el:te,props:re}=q,{bm:le,m:G,parent:Z,root:J,type:ae}=X,fe=ci(q);if(lo(X,!1),le&&wo(le),!fe&&(V=re&&re.onVnodeBeforeMount)&&Mn(V,Z,q),lo(X,!0),te&&ee){const we=()=>{X.subTree=Xc(X),ee(te,X.subTree,X,he,null)};fe&&ae.__asyncHydrate?ae.__asyncHydrate(te,X,we):we()}else{J.ce&&J.ce._hasShadowRoot()&&J.ce._injectChildStyle(ae,X.parent?X.parent.type:void 0);const we=X.subTree=Xc(X);P(null,we,ne,se,X,he,ie),q.el=we.el}if(G&&Kt(G,he),!fe&&(V=re&&re.onVnodeMounted)){const we=q;Kt(()=>Mn(V,Z,we),he)}(q.shapeFlag&256||Z&&ci(Z.vnode)&&Z.vnode.shapeFlag&256)&&X.a&&Kt(X.a,he),X.isMounted=!0,q=ne=se=null}};X.scope.on();const me=X.effect=new cl(de);X.scope.off();const be=X.update=me.run.bind(me),Se=X.job=me.runIfDirty.bind(me);Se.i=X,Se.id=X.uid,me.scheduler=()=>Sg(Se),lo(X,!0),be()},k=(X,q,ne)=>{q.component=X;const se=X.vnode.props;X.vnode=q,X.next=null,HR(X,q.props,se,ne),UR(X,q.children,ne),fi(),by(X),pi()},L=(X,q,ne,se,he,ie,oe,de,me=!1)=>{const be=X&&X.children,Se=X?X.shapeFlag:0,V=q.children,{patchFlag:te,shapeFlag:re}=q;if(te>0){if(te&128){B(be,V,ne,se,he,ie,oe,de,me);return}else if(te&256){M(be,V,ne,se,he,ie,oe,de,me);return}}re&8?(Se&16&&H(be,he,ie),V!==be&&d(ne,V)):Se&16?re&16?B(be,V,ne,se,he,ie,oe,de,me):H(be,he,ie,!0):(Se&8&&d(ne,""),re&16&&u(V,ne,se,he,ie,oe,de,me))},M=(X,q,ne,se,he,ie,oe,de,me)=>{X=X||Io,q=q||Io;const be=X.length,Se=q.length,V=Math.min(be,Se);let te;for(te=0;te<V;te++){const re=q[te]=me?Qr(q[te]):Fn(q[te]);P(X[te],re,ne,null,he,ie,oe,de,me)}be>Se?H(X,he,ie,!0,!1,V):u(q,ne,se,he,ie,oe,de,me,V)},B=(X,q,ne,se,he,ie,oe,de,me)=>{let be=0;const Se=q.length;let V=X.length-1,te=Se-1;for(;be<=V&&be<=te;){const re=X[be],le=q[be]=me?Qr(q[be]):Fn(q[be]);if(vr(re,le))P(re,le,ne,null,he,ie,oe,de,me);else break;be++}for(;be<=V&&be<=te;){const re=X[V],le=q[te]=me?Qr(q[te]):Fn(q[te]);if(vr(re,le))P(re,le,ne,null,he,ie,oe,de,me);else break;V--,te--}if(be>V){if(be<=te){const re=te+1,le=re<Se?q[re].el:se;for(;be<=te;)P(null,q[be]=me?Qr(q[be]):Fn(q[be]),ne,le,he,ie,oe,de,me),be++}}else if(be>te)for(;be<=V;)z(X[be],he,ie,!0),be++;else{const re=be,le=be,G=new Map;for(be=le;be<=te;be++){const ce=q[be]=me?Qr(q[be]):Fn(q[be]);ce.key!=null&&G.set(ce.key,be)}let Z,J=0;const ae=te-le+1;let fe=!1,we=0;const Ee=new Array(ae);for(be=0;be<ae;be++)Ee[be]=0;for(be=re;be<=V;be++){const ce=X[be];if(J>=ae){z(ce,he,ie,!0);continue}let ge;if(ce.key!=null)ge=G.get(ce.key);else for(Z=le;Z<=te;Z++)if(Ee[Z-le]===0&&vr(ce,q[Z])){ge=Z;break}ge===void 0?z(ce,he,ie,!0):(Ee[ge-le]=be+1,ge>=we?we=ge:fe=!0,P(ce,q[ge],ne,null,he,ie,oe,de,me),J++)}const $e=fe?jR(Ee):Io;for(Z=$e.length-1,be=ae-1;be>=0;be--){const ce=le+be,ge=q[ce],pe=q[ce+1],Ce=ce+1<Se?pe.el||eA(pe):se;Ee[be]===0?P(null,ge,ne,Ce,he,ie,oe,de,me):fe&&(Z<0||be!==$e[Z]?j(ge,ne,Ce,2):Z--)}}},j=(X,q,ne,se,he=null)=>{const{el:ie,type:oe,transition:de,children:me,shapeFlag:be}=X;if(be&6){j(X.component.subTree,q,ne,se);return}if(be&128){X.suspense.move(q,ne,se);return}if(be&64){oe.move(X,q,ne,U);return}if(oe===Lt){r(ie,q,ne);for(let V=0;V<me.length;V++)j(me[V],q,ne,se);r(X.anchor,q,ne);return}if(oe===Eo){x(X,q,ne);return}if(se!==2&&be&1&&de)if(se===0)de.beforeEnter(ie),r(ie,q,ne),Kt(()=>de.enter(ie),he);else{const{leave:V,delayLeave:te,afterLeave:re}=de,le=()=>{X.ctx.isUnmounted?i(ie):r(ie,q,ne)},G=()=>{ie._isLeaving&&ie[Wr](!0),V(ie,()=>{le(),re&&re()})};te?te(ie,le,G):G()}else r(ie,q,ne)},z=(X,q,ne,se=!1,he=!1)=>{const{type:ie,props:oe,ref:de,children:me,dynamicChildren:be,shapeFlag:Se,patchFlag:V,dirs:te,cacheIndex:re,memo:le}=X;if(V===-2&&(he=!1),de!=null&&(fi(),Ls(de,null,ne,X,!0),pi()),re!=null&&(q.renderCache[re]=void 0),Se&256){q.ctx.deactivate(X);return}const G=Se&1&&te,Z=!ci(X);let J;if(Z&&(J=oe&&oe.onVnodeBeforeUnmount)&&Mn(J,q,X),Se&6)K(X.component,ne,se);else{if(Se&128){X.suspense.unmount(ne,se);return}G&&Hr(X,null,q,"beforeUnmount"),Se&64?X.type.remove(X,q,ne,U,se):be&&!be.hasOnce&&(ie!==Lt||V>0&&V&64)?H(be,q,ne,!1,!0):(ie===Lt&&V&384||!he&&Se&16)&&H(me,q,ne),se&&Q(X)}const ae=le!=null&&re==null;(Z&&(J=oe&&oe.onVnodeUnmounted)||G||ae)&&Kt(()=>{J&&Mn(J,q,X),G&&Hr(X,null,q,"unmounted"),ae&&(X.el=null)},ne)},Q=X=>{const{type:q,el:ne,anchor:se,transition:he}=X;if(q===Lt){D(ne,se);return}if(q===Eo){S(X);return}const ie=()=>{i(ne),he&&!he.persisted&&he.afterLeave&&he.afterLeave()};if(X.shapeFlag&1&&he&&!he.persisted){const{leave:oe,delayLeave:de}=he,me=()=>oe(ne,ie);de?de(X.el,ie,me):me()}else ie()},D=(X,q)=>{let ne;for(;X!==q;)ne=R(X),i(X),X=ne;i(q)},K=(X,q,ne)=>{const{bum:se,scope:he,job:ie,subTree:oe,um:de,m:me,a:be}=X;mu(me),mu(be),se&&wo(se),he.stop(),ie&&(ie.flags|=8,z(oe,X,q,ne)),de&&Kt(de,q),Kt(()=>{X.isUnmounted=!0},q)},H=(X,q,ne,se=!1,he=!1,ie=0)=>{for(let oe=ie;oe<X.length;oe++)z(X[oe],q,ne,se,he)},A=X=>{if(X.shapeFlag&6)return A(X.component.subTree);if(X.shapeFlag&128)return X.suspense.next();const q=R(X.anchor||X.el),ne=q&&q[I0];return ne?R(ne):q};let W=!1;const F=(X,q,ne)=>{let se;X==null?q._vnode&&(z(q._vnode,null,null,!0),se=q._vnode.component):P(q._vnode||null,X,q,null,null,null,ne),q._vnode=X,W||(W=!0,by(se),fu(),W=!1)},U={p:P,um:z,m:j,r:Q,mt:f,mc:u,pc:L,pbc:m,n:A,o:e};let Y,ee;return t&&([Y,ee]=t(U)),{render:F,hydrate:Y,createApp:LR(F,Y)}}function wh({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function lo({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function q0(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Wg(e,t,n=!1){const r=e.children,i=t.children;if(je(r)&&je(i))for(let s=0;s<r.length;s++){const o=r[s];let a=i[s];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[s]=Qr(i[s]),a.el=o.el),!n&&a.patchFlag!==-2&&Wg(o,a)),a.type===ui&&(a.patchFlag===-1&&(a=i[s]=Qr(a)),a.el=o.el),a.type===Ut&&!a.el&&(a.el=o.el)}}function jR(e){const t=e.slice(),n=[0];let r,i,s,o,a;const c=e.length;for(r=0;r<c;r++){const l=e[r];if(l!==0){if(i=n[n.length-1],e[i]<l){t[r]=i,n.push(r);continue}for(s=0,o=n.length-1;s<o;)a=s+o>>1,e[n[a]]<l?s=a+1:o=a;l<e[n[s]]&&(s>0&&(t[r]=n[s-1]),n[s]=r)}}for(s=n.length,o=n[s-1];s-- >0;)n[s]=o,o=t[o];return n}function Q0(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Q0(t)}function mu(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function eA(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?eA(t.subTree):null}const yu=e=>e.__isSuspense;let Uf=0;const zR={name:"Suspense",__isSuspense:!0,process(e,t,n,r,i,s,o,a,c,l){if(e==null)ZR(t,n,r,i,s,o,a,c,l);else{if(s&&s.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}KR(e,t,n,r,i,o,a,c,l)}},hydrate:YR,normalize:XR},pd=zR;function yl(e,t){const n=e.props&&e.props[t];Ye(n)&&n()}function ZR(e,t,n,r,i,s,o,a,c){const{p:l,o:{createElement:d}}=c,v=d("div"),R=e.suspense=tA(e,i,r,t,v,n,s,o,a,c);l(null,R.pendingBranch=e.ssContent,v,null,r,R,s,o),R.deps>0?(yl(e,"onPending"),yl(e,"onFallback"),l(null,e.ssFallback,t,n,r,null,s,o),Os(R,e.ssFallback)):R.resolve(!1,!0)}function KR(e,t,n,r,i,s,o,a,{p:c,um:l,o:{createElement:d}}){const v=t.suspense=e.suspense;v.vnode=t,t.el=e.el;const R=t.ssContent,O=t.ssFallback,{activeBranch:$,pendingBranch:P,isInFallback:T,isHydrating:C}=v;if(P)v.pendingBranch=R,vr(P,R)?(c(P,R,v.hiddenContainer,null,i,v,s,o,a),v.deps<=0?v.resolve():T&&(C||(c($,O,n,r,i,null,s,o,a),Os(v,O)))):(v.pendingId=Uf++,C?(v.isHydrating=!1,v.activeBranch=P):l(P,i,v),v.deps=0,v.effects.length=0,v.hiddenContainer=d("div"),T?(c(null,R,v.hiddenContainer,null,i,v,s,o,a),v.deps<=0?v.resolve():(c($,O,n,r,i,null,s,o,a),Os(v,O))):$&&vr($,R)?(c($,R,n,r,i,v,s,o,a),v.resolve(!0)):(c(null,R,v.hiddenContainer,null,i,v,s,o,a),v.deps<=0&&v.resolve()));else if($&&vr($,R))c($,R,n,r,i,v,s,o,a),Os(v,R);else if(yl(t,"onPending"),v.pendingBranch=R,R.shapeFlag&512?v.pendingId=R.component.suspenseId:v.pendingId=Uf++,c(null,R,v.hiddenContainer,null,i,v,s,o,a),v.deps<=0)v.resolve();else{const{timeout:N,pendingId:x}=v;N>0?setTimeout(()=>{v.pendingId===x&&v.fallback(O)},N):N===0&&v.fallback(O)}}function tA(e,t,n,r,i,s,o,a,c,l,d=!1){const{p:v,m:R,um:O,n:$,o:{parentNode:P,remove:T}}=l;let C;const N=JR(e);N&&t&&t.pendingBranch&&(C=t.pendingId,t.deps++);const x=e.props?ll(e.props.timeout):void 0,S=s,b={vnode:e,parent:t,parentComponent:n,namespace:o,container:r,hiddenContainer:i,deps:0,pendingId:Uf++,timeout:typeof x=="number"?x:-1,activeBranch:null,isFallbackMountPending:!1,pendingBranch:null,isInFallback:!d,isHydrating:d,isUnmounted:!1,effects:[],resolve(p=!1,g=!1){const{vnode:u,activeBranch:y,pendingBranch:m,pendingId:I,effects:_,parentComponent:h,container:f,isInFallback:w}=b;let E=!1;if(b.isHydrating)b.isHydrating=!1;else if(!p){E=y&&m.transition&&m.transition.mode==="out-in";let M=!1;E&&(y.transition.afterLeave=()=>{I===b.pendingId&&(R(m,f,s===S&&!M?$(y):s,0),Lo(_),w&&u.ssFallback&&(u.ssFallback.el=null))}),y&&!b.isFallbackMountPending&&(P(y.el)===f&&(s=$(y),M=!0),O(y,h,b,!0),!E&&w&&u.ssFallback&&Kt(()=>u.ssFallback.el=null,b)),E||R(m,f,s,0)}b.isFallbackMountPending=!1,Os(b,m),b.pendingBranch=null,b.isInFallback=!1;let k=b.parent,L=!1;for(;k;){if(k.pendingBranch){k.effects.push(..._),L=!0;break}k=k.parent}!L&&!E&&Lo(_),b.effects=[],N&&t&&t.pendingBranch&&C===t.pendingId&&(t.deps--,t.deps===0&&!g&&t.resolve()),yl(u,"onResolve")},fallback(p){if(!b.pendingBranch)return;const{vnode:g,activeBranch:u,parentComponent:y,container:m,namespace:I}=b;yl(g,"onFallback");const _=$(u),h=()=>{b.isFallbackMountPending=!1,b.isInFallback&&(v(null,p,m,_,y,null,I,a,c),Os(b,p))},f=p.transition&&p.transition.mode==="out-in";f&&(b.isFallbackMountPending=!0,u.transition.afterLeave=h),b.isInFallback=!0,O(u,y,null,!0),f||h()},move(p,g,u){b.activeBranch&&R(b.activeBranch,p,g,u),b.container=p},next(){return b.activeBranch&&$(b.activeBranch)},registerDep(p,g,u){const y=!!b.pendingBranch;y&&b.deps++;const m=p.vnode.el;p.asyncDep.catch(I=>{Go(I,p,0)}).then(I=>{if(p.isUnmounted||b.isUnmounted||b.pendingId!==p.suspenseId)return;vl(),p.asyncResolved=!0;const{vnode:_}=p;jf(p,I,!1),m&&(_.el=m);const h=!m&&p.subTree.el;g(p,_,P(m||p.subTree.el),m?null:$(p.subTree),b,o,u),h&&(_.placeholder=null,T(h)),fd(p,_.el),y&&--b.deps===0&&b.resolve()})},unmount(p,g){b.isUnmounted=!0,b.activeBranch&&O(b.activeBranch,n,p,g),b.pendingBranch&&O(b.pendingBranch,n,p,g)}};return b}function YR(e,t,n,r,i,s,o,a,c){const l=t.suspense=tA(t,r,n,e.parentNode,document.createElement("div"),null,i,s,o,a,!0),d=c(e,l.pendingBranch=t.ssContent,n,l,s,o);return l.deps===0&&l.resolve(!1,!0),d}function XR(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Oy(r?n.default:n),e.ssFallback=r?Oy(n.fallback):st(Ut)}function Oy(e){let t;if(Ye(e)){const n=Oo&&e._c;n&&(e._d=!1,It()),e=e(),n&&(e._d=!0,t=An,rA())}return je(e)&&(e=$R(e)),e=Fn(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function nA(e,t){t&&t.pendingBranch?je(e)?t.effects.push(...e):t.effects.push(e):Lo(e)}function Os(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,fd(r,i))}function JR(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Lt=Symbol.for("v-fgt"),ui=Symbol.for("v-txt"),Ut=Symbol.for("v-cmt"),Eo=Symbol.for("v-stc"),Qa=[];let An=null;function It(e=!1){Qa.push(An=e?null:[])}function rA(){Qa.pop(),An=Qa[Qa.length-1]||null}let Oo=1;function bl(e,t=!1){Oo+=e,e<0&&An&&t&&(An.hasOnce=!0)}function iA(e){return e.dynamicChildren=Oo>0?An||Io:null,rA(),Oo>0&&An&&An.push(e),e}function on(e,t,n,r,i,s){return iA(Qt(e,t,n,r,i,s,!0))}function sr(e,t,n,r,i){return iA(st(e,t,n,r,i,!0))}function mi(e){return e?e.__v_isVNode===!0:!1}function vr(e,t){return e.type===t.type&&e.key===t.key}function qR(e){}const oA=({key:e})=>e??null,Jc=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?pt(e)||Et(e)||Ye(e)?{i:fn,r:e,k:t,f:!!n}:e:null);function Qt(e,t=null,n=null,r=0,i=null,s=e===Lt?0:1,o=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&oA(t),ref:t&&Jc(t),scopeId:ad,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:fn};return a?(Vg(c,n),s&128&&e.normalize(c)):n&&(c.shapeFlag|=pt(n)?8:16),Oo>0&&!o&&An&&(c.patchFlag>0||s&6)&&c.patchFlag!==32&&An.push(c),c}const st=QR;function QR(e,t=null,n=null,r=0,i=null,s=!1){if((!e||e===O0)&&(e=Ut),mi(e)){const a=Er(e,t,!0);return n&&Vg(a,n),Oo>0&&!s&&An&&(a.shapeFlag&6?An[An.indexOf(e)]=a:An.push(a)),a.patchFlag=-2,a}if(aL(e)&&(e=e.__vccOpts),t){t=sA(t);let{class:a,style:c}=t;a&&!pt(a)&&(t.class=wr(a)),dt(c)&&(Wl(c)&&!je(c)&&(c=vt({},c)),t.style=Vo(c))}const o=pt(e)?1:yu(e)?128:A0(e)?64:dt(e)?4:Ye(e)?2:0;return Qt(e,t,n,r,i,o,s,!0)}function sA(e){return e?Wl(e)||G0(e)?vt({},e):e:null}function Er(e,t,n=!1,r=!1){const{props:i,ref:s,patchFlag:o,children:a,transition:c}=e,l=t?Gg(i||{},t):i,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&oA(l),ref:t&&t.ref?n&&s?je(s)?s.concat(Jc(t)):[s,Jc(t)]:Jc(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Lt?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Er(e.ssContent),ssFallback:e.ssFallback&&Er(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&gi(d,c.clone(d)),d}function $i(e=" ",t=0){return st(ui,null,e,t)}function eL(e,t){const n=st(Eo,null,e);return n.staticCount=t,n}function lr(e="",t=!1){return t?(It(),sr(Ut,null,e)):st(Ut,null,e)}function Fn(e){return e==null||typeof e=="boolean"?st(Ut):je(e)?st(Lt,null,e.slice()):mi(e)?Qr(e):st(ui,null,String(e))}function Qr(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Er(e)}function Vg(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(je(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),Vg(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!G0(t)?t._ctx=fn:i===3&&fn&&(fn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ye(t)?(t={default:t,_ctx:fn},n=32):(t=String(t),r&64?(n=16,t=[$i(t)]):n=8);e.children=t,e.shapeFlag|=n}function Gg(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const i in r)if(i==="class")t.class!==r.class&&(t.class=wr([t.class,r.class]));else if(i==="style")t.style=Vo([t.style,r.style]);else if(ra(i)){const s=t[i],o=r[i];o&&s!==o&&!(je(s)&&s.includes(o))?t[i]=s?[].concat(s,o):o:o==null&&s==null&&!Pl(i)&&(t[i]=o)}else i!==""&&(t[i]=r[i])}return t}function Mn(e,t,n,r=null){fr(e,t,7,[n,r])}const tL=D0();let nL=0;function aA(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||tL,s={uid:nL++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new bg(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:j0(r,i),emitsOptions:F0(r,i),emit:null,emitted:null,propsDefaults:it,inheritAttrs:r.inheritAttrs,ctx:it,data:it,props:it,attrs:it,slots:it,refs:it,setupState:it,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return s.ctx={_:s},s.root=t?t.root:s,s.emit=NR.bind(null,s),e.ce&&e.ce(s),s}let un=null;const Mt=()=>un||fn;let bu,Ns;{const e=Bl(),t=(n,r)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(r),s=>{i.length>1?i.forEach(o=>o(s)):i[0](s)}};bu=t("__VUE_INSTANCE_SETTERS__",n=>un=n),Ns=t("__VUE_SSR_SETTERS__",n=>No=n)}const aa=e=>{const t=un;return bu(e),e.scope.on(),()=>{e.scope.off(),bu(t)}},vl=()=>{un&&un.scope.off(),bu(null)};function lA(e){return e.vnode.shapeFlag&4}let No=!1;function cA(e,t=!1,n=!1){t&&Ns(t);const{props:r,children:i}=e.vnode,s=lA(e);FR(e,r,s,t),GR(e,i,n||t);const o=s?rL(e,t):void 0;return t&&Ns(!1),o}function rL(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Hf);const{setup:r}=n;if(r){fi();const i=e.setupContext=r.length>1?dA(e):null,s=aa(e),o=oa(r,e,0,[e.props,i]),a=ed(o);if(pi(),s(),(a||e.sp)&&!ci(e)&&kg(e),a){if(o.then(vl,vl),t)return o.then(c=>{jf(e,c,t)}).catch(c=>{Go(c,e,0)});e.asyncDep=o}else jf(e,o,t)}else uA(e,t)}function jf(e,t,n){Ye(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:dt(t)&&(e.setupState=wg(t)),uA(e,n)}let vu,zf;function iL(e){vu=e,zf=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,hR))}}const oL=()=>!vu;function uA(e,t,n){const r=e.type;if(!e.render){if(!t&&vu&&!r.render){const i=r.template||Bg(e).template;if(i){const{isCustomElement:s,compilerOptions:o}=e.appContext.config,{delimiters:a,compilerOptions:c}=r,l=vt(vt({isCustomElement:s,delimiters:a},o),c);r.render=vu(i,l)}}e.render=r.render||Qn,zf&&zf(e)}{const i=aa(e);fi();try{SR(e)}finally{pi(),i()}}}const sL={get(e,t){return Cn(e,"get",""),e[t]}};function dA(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,sL),slots:e.slots,emit:e.emit,expose:t}}function jl(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(wg(Ag(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in qa)return qa[n](e)},has(t,n){return n in t||n in qa}})):e.proxy}function Zf(e,t=!0){return Ye(e)?e.displayName||e.name:e.name||t&&e.__name}function aL(e){return Ye(e)&&"__vccOpts"in e}const Xe=(e,t)=>wk(e,t,No);function At(e,t,n){try{bl(-1);const r=arguments.length;return r===2?dt(t)&&!je(t)?mi(t)?st(e,null,[t]):st(e,t):st(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&mi(n)&&(n=[n]),st(e,t,n))}finally{bl(1)}}function lL(){}function cL(e,t,n,r){const i=n[r];if(i&&hA(i,e))return i;const s=t();return s.memo=e.slice(),s.cacheIndex=r,n[r]=s}function hA(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r<n.length;r++)if(rn(n[r],t[r]))return!1;return Oo>0&&An&&An.push(e),!0}const fA="3.5.34",uL=Qn,dL=Ok,hL=fs,fL=m0,pL={createComponentInstance:aA,setupComponent:cA,renderComponentRoot:Xc,setCurrentRenderingInstance:pl,isVNode:mi,normalizeVNode:Fn,getComponentPublicInstance:jl,ensureValidVNode:Dg,pushWarningContext:Tk,popWarningContext:kk},gL=pL,mL=null,yL=null,bL=null;let Kf;const Ny=typeof window<"u"&&window.trustedTypes;if(Ny)try{Kf=Ny.createPolicy("vue",{createHTML:e=>e})}catch{}const pA=Kf?e=>Kf.createHTML(e):e=>e,vL="http://www.w3.org/2000/svg",CL="http://www.w3.org/1998/Math/MathML",qr=typeof document<"u"?document:null,Py=qr&&qr.createElement("template"),gA={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i=t==="svg"?qr.createElementNS(vL,e):t==="mathml"?qr.createElementNS(CL,e):n?qr.createElement(e,{is:n}):qr.createElement(e);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>qr.createTextNode(e),createComment:e=>qr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>qr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,s){const o=n?n.previousSibling:t.lastChild;if(i&&(i===s||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===s||!(i=i.nextSibling)););else{Py.innerHTML=pA(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const a=Py.content;if(r==="svg"||r==="mathml"){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}t.insertBefore(a,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},_i="transition",Ra="animation",Hs=Symbol("_vtc"),mA={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},yA=vt({},Tg,mA),IL=e=>(e.displayName="Transition",e.props=yA,e),bA=IL((e,{slots:t})=>At(S0,vA(e),t)),co=(e,t=[])=>{je(e)?e.forEach(n=>n(...t)):e&&e(...t)},$y=e=>e?je(e)?e.some(t=>t.length>1):e.length>1:!1;function vA(e){const t={};for(const _ in e)_ in mA||(t[_]=e[_]);if(e.css===!1)return t;const{name:n="v",type:r,duration:i,enterFromClass:s=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:c=s,appearActiveClass:l=o,appearToClass:d=a,leaveFromClass:v=`${n}-leave-from`,leaveActiveClass:R=`${n}-leave-active`,leaveToClass:O=`${n}-leave-to`}=e,$=AL(i),P=$&&$[0],T=$&&$[1],{onBeforeEnter:C,onEnter:N,onEnterCancelled:x,onLeave:S,onLeaveCancelled:b,onBeforeAppear:p=C,onAppear:g=N,onAppearCancelled:u=x}=t,y=(_,h,f,w)=>{_._enterCancelled=w,Ti(_,h?d:a),Ti(_,h?l:o),f&&f()},m=(_,h)=>{_._isLeaving=!1,Ti(_,v),Ti(_,O),Ti(_,R),h&&h()},I=_=>(h,f)=>{const w=_?g:N,E=()=>y(h,_,f);co(w,[h,E]),My(()=>{Ti(h,_?c:s),Br(h,_?d:a),$y(w)||Dy(h,r,P,E)})};return vt(t,{onBeforeEnter(_){co(C,[_]),Br(_,s),Br(_,o)},onBeforeAppear(_){co(p,[_]),Br(_,c),Br(_,l)},onEnter:I(!1),onAppear:I(!0),onLeave(_,h){_._isLeaving=!0;const f=()=>m(_,h);Br(_,v),_._enterCancelled?(Br(_,R),Yf(_)):(Yf(_),Br(_,R)),My(()=>{_._isLeaving&&(Ti(_,v),Br(_,O),$y(S)||Dy(_,r,T,f))}),co(S,[_,f])},onEnterCancelled(_){y(_,!1,void 0,!0),co(x,[_])},onAppearCancelled(_){y(_,!0,void 0,!0),co(u,[_])},onLeaveCancelled(_){m(_),co(b,[_])}})}function AL(e){if(e==null)return null;if(dt(e))return[_h(e.enter),_h(e.leave)];{const t=_h(e);return[t,t]}}function _h(e){return ll(e)}function Br(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Hs]||(e[Hs]=new Set)).add(t)}function Ti(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Hs];n&&(n.delete(t),n.size||(e[Hs]=void 0))}function My(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let wL=0;function Dy(e,t,n,r){const i=e._endId=++wL,s=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(s,n);const{type:o,timeout:a,propCount:c}=CA(e,t);if(!o)return r();const l=o+"end";let d=0;const v=()=>{e.removeEventListener(l,R),s()},R=O=>{O.target===e&&++d>=c&&v()};setTimeout(()=>{d<c&&v()},a+1),e.addEventListener(l,R)}function CA(e,t){const n=window.getComputedStyle(e),r=$=>(n[$]||"").split(", "),i=r(`${_i}Delay`),s=r(`${_i}Duration`),o=By(i,s),a=r(`${Ra}Delay`),c=r(`${Ra}Duration`),l=By(a,c);let d=null,v=0,R=0;t===_i?o>0&&(d=_i,v=o,R=s.length):t===Ra?l>0&&(d=Ra,v=l,R=c.length):(v=Math.max(o,l),d=v>0?o>l?_i:Ra:null,R=d?d===_i?s.length:c.length:0);const O=d===_i&&/\b(?:transform|all)(?:,|$)/.test(r(`${_i}Property`).toString());return{type:d,timeout:v,propCount:R,hasTransform:O}}function By(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>Fy(n)+Fy(e[r])))}function Fy(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Yf(e){return(e?e.ownerDocument:document).body.offsetHeight}function _L(e,t,n){const r=e[Hs];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Cu=Symbol("_vod"),IA=Symbol("_vsh"),AA={name:"show",beforeMount(e,{value:t},{transition:n}){e[Cu]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):La(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),La(e,!0),r.enter(e)):r.leave(e,()=>{La(e,!1)}):La(e,t))},beforeUnmount(e,{value:t}){La(e,t)}};function La(e,t){e.style.display=t?e[Cu]:"none",e[IA]=!t}function SL(){AA.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const wA=Symbol("");function EL(e){const t=Mt();if(!t)return;const n=t.ut=(i=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(s=>Iu(s,i))},r=()=>{const i=e(t.proxy);t.ce?Iu(t.ce,i):Xf(t.subTree,i),n(i)};Lg(()=>{Lo(r)}),tr(()=>{xt(r,Qn,{flush:"post"});const i=new MutationObserver(r);i.observe(t.subTree.el.parentNode,{childList:!0}),Ii(()=>i.disconnect())})}function Xf(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Xf(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Iu(e.el,t);else if(e.type===Lt)e.children.forEach(n=>Xf(n,t));else if(e.type===Eo){let{el:n,anchor:r}=e;for(;n&&(Iu(n,t),n!==r);)n=n.nextSibling}}function Iu(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const i in t){const s=ZI(t[i]);n.setProperty(`--${i}`,s),r+=`--${i}: ${s};`}n[wA]=r}}const xL=/(?:^|;)\s*display\s*:/;function TL(e,t,n){const r=e.style,i=pt(n);let s=!1;if(n&&!i){if(t)if(pt(t))for(const o of t.split(";")){const a=o.slice(0,o.indexOf(":")).trim();n[a]==null&&Ka(r,a,"")}else for(const o in t)n[o]==null&&Ka(r,o,"");for(const o in n){o==="display"&&(s=!0);const a=n[o];a!=null?RL(e,o,!pt(t)&&t?t[o]:void 0,a)||Ka(r,o,a):Ka(r,o,"")}}else if(i){if(t!==n){const o=r[wA];o&&(n+=";"+o),r.cssText=n,s=xL.test(n)}}else t&&e.removeAttribute("style");Cu in e&&(e[Cu]=s?r.display:"",e[IA]&&(r.display="none"))}const Hy=/\s*!important$/;function Ka(e,t,n){if(je(n))n.forEach(r=>Ka(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=kL(e,t);Hy.test(n)?e.setProperty(In(r),n.replace(Hy,""),"important"):e[r]=n}}const Wy=["Webkit","Moz","ms"],Sh={};function kL(e,t){const n=Sh[t];if(n)return n;let r=zt(t);if(r!=="filter"&&r in e)return Sh[t]=r;r=ia(r);for(let i=0;i<Wy.length;i++){const s=Wy[i]+r;if(s in e)return Sh[t]=s}return t}function RL(e,t,n,r){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&pt(r)&&n===r}const Vy="http://www.w3.org/1999/xlink";function Gy(e,t,n,r,i,s=GI(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Vy,t.slice(6,t.length)):e.setAttributeNS(Vy,t,n):n==null||s&&!yg(n)?e.removeAttribute(t):e.setAttribute(t,s?"":Un(n)?String(n):n)}function Uy(e,t,n,r,i){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?pA(n):n);return}const s=e.tagName;if(t==="value"&&s!=="PROGRESS"&&!s.includes("-")){const a=s==="OPTION"?e.getAttribute("value")||"":e.value,c=n==null?e.type==="checkbox"?"on":"":String(n);(a!==c||!("_value"in e))&&(e.value=c),n==null&&e.removeAttribute(t),e._value=n;return}let o=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=yg(n):n==null&&a==="string"?(n="",o=!0):a==="number"&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(i||t)}function ni(e,t,n,r){e.addEventListener(t,n,r)}function LL(e,t,n,r){e.removeEventListener(t,n,r)}const jy=Symbol("_vei");function OL(e,t,n,r,i=null){const s=e[jy]||(e[jy]={}),o=s[t];if(r&&o)o.value=r;else{const[a,c]=NL(t);if(r){const l=s[t]=ML(r,i);ni(e,a,l,c)}else o&&(LL(e,a,o,c),s[t]=void 0)}}const zy=/(?:Once|Passive|Capture)$/;function NL(e){let t;if(zy.test(e)){t={};let r;for(;r=e.match(zy);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):In(e.slice(2)),t]}let Eh=0;const PL=Promise.resolve(),$L=()=>Eh||(PL.then(()=>Eh=0),Eh=Date.now());function ML(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;fr(DL(r,n.value),t,5,[r])};return n.value=e,n.attached=$L(),n}function DL(e,t){if(je(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>i=>!i._stopped&&r&&r(i))}else return t}const Zy=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,_A=(e,t,n,r,i,s)=>{const o=i==="svg";t==="class"?_L(e,r,o):t==="style"?TL(e,n,r):ra(t)?Pl(t)||OL(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):BL(e,t,r,o))?(Uy(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Gy(e,t,r,o,s,t!=="value")):e._isVueCE&&(FL(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!pt(r)))?Uy(e,zt(t),r,s,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Gy(e,t,r,o))};function BL(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Zy(t)&&Ye(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Zy(t)&&pt(n)?!1:t in e}function FL(e,t){const n=e._def.props;if(!n)return!1;const r=zt(t);return Array.isArray(n)?n.some(i=>zt(i)===r):Object.keys(n).some(i=>zt(i)===r)}const Ky={};function SA(e,t,n){let r=an(e,t);$l(r)&&(r=vt({},r,t));class i extends gd{constructor(o){super(r,o,n)}}return i.def=r,i}const HL=((e,t)=>SA(e,t,zg)),WL=typeof HTMLElement<"u"?HTMLElement:class{};class gd extends WL{constructor(t,n={},r=Su){super(),this._def=t,this._props=n,this._createApp=r,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._styleAnchors=new WeakMap,this._ob=null,this.shadowRoot&&r!==Su?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow(vt({},t.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.assignedSlot||t.parentNode||t.host);)if(t instanceof gd){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._inheritParentContext(t))}_inheritParentContext(t=this._parent){t&&this._app&&Object.setPrototypeOf(this._app._context.provides,t._instance.provides)}disconnectedCallback(){this._connected=!1,Wn(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(t){for(const n of t)this._setAttr(n.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let r=0;r<this.attributes.length;r++)this._setAttr(this.attributes[r].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});const t=(r,i=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:s,styles:o}=r;let a;if(s&&!je(s))for(const c in s){const l=s[c];(l===Number||l&&l.type===Number)&&(c in this._props&&(this._props[c]=ll(this._props[c])),(a||(a=Object.create(null)))[zt(c)]=!0)}this._numberProps=a,this._resolveProps(r),this.shadowRoot&&this._applyStyles(o),this._mount(r)},n=this._def.__asyncLoader;n?this._pendingResolve=n().then(r=>{r.configureApp=this._def.configureApp,t(this._def=r,!0)}):t(this._def)}_mount(t){this._app=this._createApp(t),this._inheritParentContext(),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const n=this._instance&&this._instance.exposed;if(n)for(const r in n)ct(this,r)||Object.defineProperty(this,r,{get:()=>Ze(n[r])})}_resolveProps(t){const{props:n}=t,r=je(n)?n:Object.keys(n||{});for(const i of Object.keys(this))i[0]!=="_"&&r.includes(i)&&this._setProp(i,this[i]);for(const i of r.map(zt))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(s){this._setProp(i,s,!0,!this._patching)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const n=this.hasAttribute(t);let r=n?this.getAttribute(t):Ky;const i=zt(t);n&&this._numberProps&&this._numberProps[i]&&(r=ll(r)),this._setProp(i,r,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,i=!1){if(n!==this._props[t]&&(this._dirty=!0,n===Ky?delete this._props[t]:(this._props[t]=n,t==="
5key"&&this._app&&(this._app._ceVNode.key=n)),i&&this._instance&&this._update(),r)){const s=this._ob;s&&(this._processMutations(s.takeRecords()),s.disconnect()),n===!0?this.setAttribute(In(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(In(t),n+""):n||this.removeAttribute(In(t)),s&&s.observe(this,{attributes:!0})}}_update(){const t=this._createVNode();this._app&&(t.appContext=this._app._context),_u(t,this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const n=st(this._def,vt(t,this._props));return this._instance||(n.ce=r=>{this._instance=r,r.ce=this,r.isCE=!0;const i=(s,o)=>{this.dispatchEvent(new CustomEvent(s,$l(o[0])?vt({detail:o},o[0]):{detail:o}))};r.emit=(s,...o)=>{i(s,o),In(s)!==s&&i(In(s),o)},this._setParent()}),n}_applyStyles(t,n,r){if(!t)return;if(n){if(n===this._def||this._styleChildren.has(n))return;this._styleChildren.add(n)}const i=this._nonce,s=this.shadowRoot,o=r?this._getStyleAnchor(r)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(s);let a=null;for(let c=t.length-1;c>=0;c--){const l=document.createElement("style");i&&l.setAttribute("nonce",i),l.textContent=t[c],s.insertBefore(l,a||o),a=l,c===0&&(r||this._styleAnchors.set(this._def,l),n&&this._styleAnchors.set(n,l))}}_getStyleAnchor(t){if(!t)return null;const n=this._styleAnchors.get(t);return n&&n.parentNode===this.shadowRoot?n:(n&&this._styleAnchors.delete(t),null)}_getRootStyleInsertionAnchor(t){for(let n=0;n<t.childNodes.length;n++){const r=t.childNodes[n];if(!(r instanceof HTMLStyleElement))return r}return null}_parseSlots(){const t=this._slots={};let n;for(;n=this.firstChild;){const r=n.nodeType===1&&n.getAttribute("slot")||"default";(t[r]||(t[r]=[])).push(n),this.removeChild(n)}}_renderSlots(){const t=this._getSlots(),n=this._instance.type.__scopeId;for(let r=0;r<t.length;r++){const i=t[r],s=i.getAttribute("name")||"default",o=this._slots[s],a=i.parentNode;if(o)for(const c of o){if(n&&c.nodeType===1){const l=n+"-s",d=document.createTreeWalker(c,1);c.setAttribute(l,"");let v;for(;v=d.nextNode();)v.setAttribute(l,"")}a.insertBefore(c,i)}else for(;i.firstChild;)a.insertBefore(i.firstChild,i);a.removeChild(i)}}_getSlots(){const t=[this];this._teleportTargets&&t.push(...this._teleportTargets);const n=new Set;for(const r of t){const i=r.querySelectorAll("slot");for(let s=0;s<i.length;s++)n.add(i[s])}return Array.from(n)}_injectChildStyle(t,n){this._applyStyles(t.styles,t,n)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_hasShadowRoot(){return this._def.shadowRoot!==!1}_removeChildStyle(t){}}function EA(e){const t=Mt(),n=t&&t.ce;return n||null}function VL(){const e=EA();return e&&e.shadowRoot}function GL(e="$style"){{const t=Mt();if(!t)return it;const n=t.type.__cssModules;if(!n)return it;const r=n[e];return r||it}}const xA=new WeakMap,TA=new WeakMap,Au=Symbol("_moveCb"),Yy=Symbol("_enterCb"),UL=e=>(delete e.props.mode,e),jL=UL({name:"TransitionGroup",props:vt({},yA,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Mt(),r=xg();let i,s;return Ul(()=>{if(!i.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!XL(i[0].el,n.vnode.el,o)){i=[];return}i.forEach(ZL),i.forEach(KL);const a=i.filter(YL);Yf(n.vnode.el),a.forEach(c=>{const l=c.el,d=l.style;Br(l,o),d.transform=d.webkitTransform=d.transitionDuration="";const v=l[Au]=R=>{R&&R.target!==l||(!R||R.propertyName.endsWith("transform"))&&(l.removeEventListener("transitionend",v),l[Au]=null,Ti(l,o))};l.addEventListener("transitionend",v)}),i=[]}),()=>{const o=at(e),a=vA(o);let c=o.tag||Lt;if(i=[],s)for(let l=0;l<s.length;l++){const d=s[l];d.el&&d.el instanceof Element&&(i.push(d),gi(d,Fs(d,a,r,n)),xA.set(d,kA(d.el)))}s=t.default?ld(t.default()):[];for(let l=0;l<s.length;l++){const d=s[l];d.key!=null&&gi(d,Fs(d,a,r,n))}return st(c,null,s)}}}),zL=jL;function ZL(e){const t=e.el;t[Au]&&t[Au](),t[Yy]&&t[Yy]()}function KL(e){TA.set(e,kA(e.el))}function YL(e){const t=xA.get(e),n=TA.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){const s=e.el,o=s.style,a=s.getBoundingClientRect();let c=1,l=1;return s.offsetWidth&&(c=a.width/s.offsetWidth),s.offsetHeight&&(l=a.height/s.offsetHeight),(!Number.isFinite(c)||c===0)&&(c=1),(!Number.isFinite(l)||l===0)&&(l=1),Math.abs(c-1)<.01&&(c=1),Math.abs(l-1)<.01&&(l=1),o.transform=o.webkitTransform=`translate(${r/c}px,${i/l}px)`,o.transitionDuration="0s",e}}function kA(e){const t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function XL(e,t,n){const r=e.cloneNode(),i=e[Hs];
vendor: 8,732 bytes, line 5
5i&&i.forEach(a=>{a.split(/\s+/).forEach(c=>c&&r.classList.remove(c))}),n.split(/\s+/).forEach(a=>a&&r.classList.add(a)),r.style.display="none";const s=t.nodeType===1?t:t.parentNode;s.appendChild(r);const{hasTransform:o}=CA(r);return s.removeChild(r),o}const Ui=e=>{const t=e.props["onUpdate:modelValue"]||!1;return je(t)?n=>wo(t,n):t};function JL(e){e.target.composing=!0}function Xy(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const dr=Symbol("_assign");function Jy(e,t,n){return t&&(e=e.trim()),n&&(e=Dl(e)),e}const wu={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[dr]=Ui(i);const s=r||i.props&&i.props.type==="number";ni(e,t?"change":"input",o=>{o.target.composing||e[dr](Jy(e.value,n,s))}),(n||s)&&ni(e,"change",()=>{e.value=Jy(e.value,n,s)}),t||(ni(e,"compositionstart",JL),ni(e,"compositionend",Xy),ni(e,"change",Xy))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:s}},o){if(e[dr]=Ui(o),e.composing)return;const a=(s||e.type==="number")&&!/^0\d/.test(e.value)?Dl(e.value):e.value,c=t??"";if(a===c)return;const l=e.getRootNode();(l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===e&&e.type!=="range"&&(r&&t===n||i&&e.value.trim()===c)||(e.value=c)}},Ug={deep:!0,created(e,t,n){e[dr]=Ui(n),ni(e,"change",()=>{const r=e._modelValue,i=Ws(e),s=e.checked,o=e[dr];if(je(r)){const a=Fl(r,i),c=a!==-1;if(s&&!c)o(r.concat(i));else if(!s&&c){const l=[...r];l.splice(a,1),o(l)}}else if(Ji(r)){const a=new Set(r);s?a.add(i):a.delete(i),o(a)}else o(LA(e,s))})},mounted:qy,beforeUpdate(e,t,n){e[dr]=Ui(n),qy(e,t,n)}};function qy(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(je(t))i=Fl(t,r.props.value)>-1;else if(Ji(t))i=t.has(r.props.value);else{if(t===n)return;i=zr(t,LA(e,!0))}e.checked!==i&&(e.checked=i)}const jg={created(e,{value:t},n){e.checked=zr(t,n.props.value),e[dr]=Ui(n),ni(e,"change",()=>{e[dr](Ws(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[dr]=Ui(r),t!==n&&(e.checked=zr(t,r.props.value))}},RA={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=Ji(t);ni(e,"change",()=>{const s=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>n?Dl(Ws(o)):Ws(o));e[dr](e.multiple?i?new Set(s):s:s[0]),e._assigning=!0,Wn(()=>{e._assigning=!1})}),e[dr]=Ui(r)},mounted(e,{value:t}){Qy(e,t)},beforeUpdate(e,t,n){e[dr]=Ui(n)},updated(e,{value:t}){e._assigning||Qy(e,t)}};function Qy(e,t){const n=e.multiple,r=je(t);if(!(n&&!r&&!Ji(t))){for(let i=0,s=e.options.length;i<s;i++){const o=e.options[i],a=Ws(o);if(n)if(r){const c=typeof a;c==="string"||c==="number"?o.selected=t.some(l=>String(l)===String(a)):o.selected=Fl(t,a)>-1}else o.selected=t.has(a);else if(zr(Ws(o),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Ws(e){return"_value"in e?e._value:e.value}function LA(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const OA={created(e,t,n){_c(e,t,n,null,"created")},mounted(e,t,n){_c(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){_c(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){_c(e,t,n,r,"updated")}};function NA(e,t){switch(e){case"SELECT":return RA;case"TEXTAREA":return wu;default:switch(t){case"checkbox":return Ug;case"radio":return jg;default:return wu}}}function _c(e,t,n,r,i){const o=NA(e.tagName,n.props&&n.props.type)[i];o&&o(e,t,n,r)}function qL(){wu.getSSRProps=({value:e})=>({value:e}),jg.getSSRProps=({value:e},t)=>{if(t.props&&zr(t.props.value,e))return{checked:!0}},Ug.getSSRProps=({value:e},t)=>{if(je(e)){if(t.props&&Fl(e,t.props.value)>-1)return{checked:!0}}else if(Ji(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},OA.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=NA(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const QL=["ctrl","shift","alt","meta"],eO={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>QL.some(n=>e[`${n}Key`]&&!t.includes(n))},tO=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=((i,...s)=>{for(let o=0;o<t.length;o++){const a=eO[t[o]];if(a&&a(i,t))return}return e(i,...s)}))},nO={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},rO=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=(i=>{if(!("key"in i))return;const s=In(i.key);if(t.some(o=>o===s||nO[o]===s))return e(i)}))},PA=vt({patchProp:_A},gA);let el,eb=!1;function $A(){return el||(el=Y0(PA))}function MA(){return el=eb?el:X0(PA),eb=!0,el}const _u=((...e)=>{$A().render(...e)}),iO=((...e)=>{MA().hydrate(...e)}),Su=((...e)=>{const t=$A().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=BA(r);if(!i)return;const s=t._component;!Ye(s)&&!s.render&&!s.template&&(s.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const o=n(i,!1,DA(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t}),zg=((...e)=>{const t=MA().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=BA(r);if(i)return n(i,!0,DA(i))},t});function DA(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function BA(e){return pt(e)?document.querySelector(e):e}let tb=!1;const oO=()=>{tb||(tb=!0,qL(),SL())},qoe=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:S0,BaseTransitionPropsValidators:Tg,Comment:Ut,DeprecationTypes:bL,EffectScope:bg,ErrorCodes:Lk,ErrorTypeStrings:dL,Fragment:Lt,KeepAlive:x0,ReactiveEffect:cl,Static:Eo,Suspense:pd,Teleport:Uk,Text:ui,TrackOpTypes:_k,Transition:bA,TransitionGroup:zL,TriggerOpTypes:Sk,VueElement:gd,assertNumber:Rk,callWithAsyncErrorHandling:fr,callWithErrorHandling:oa,camelize:zt,capitalize:ia,cloneVNode:Er,compatUtils:yL,computed:Xe,createApp:Su,createBlock:sr,createCommentVNode:lr,createElementBlock:on,createElementVNode:Qt,createHydrationRenderer:X0,createPropsRestProxy:wR,createRenderer:Y0,createSSRApp:zg,createSlots:uR,createStaticVNode:eL,createTextVNode:$i,createVNode:st,customRef:_g,defineAsyncComponent:Li,defineComponent:an,defineCustomElement:SA,defineEmits:pR,defineExpose:gR,defineModel:bR,defineOptions:mR,defineProps:fR,defineSSRCustomElement:HL,defineSlots:yR,devtools:hL,effect:KT,effectScope:Hl,getCurrentInstance:Mt,getCurrentScope:qi,getCurrentWatcher:Ek,getTransitionRawChildren:ld,guardReactiveProps:sA,h:At,handleError:Go,hasInjectionContext:sa,hydrate:iO,hydrateOnIdle:eR,hydrateOnInteraction:iR,hydrateOnMediaQuery:rR,hydrateOnVisible:nR,initCustomFormatter:lL,initDirectivesForSSR:oO,inject:Nt,isMemoSame:hA,isProxy:Wl,isReactive:li,isReadonly:_r,isRef:Et,isRuntimeOnly:oL,isShallow:Hn,isVNode:mi,markRaw:Ag,mergeDefaults:IR,mergeModels:AR,mergeProps:Gg,nextTick:Wn,nodeOps:gA,normalizeClass:wr,normalizeProps:WI,normalizeStyle:Vo,onActivated:cd,onBeforeMount:Rg,onBeforeUnmount:Ci,onBeforeUpdate:Lg,onDeactivated:ud,onErrorCaptured:Og,onMounted:tr,onRenderTracked:L0,onRenderTriggered:R0,onScopeDispose:Zr,onServerPrefetch:k0,onUnmounted:Ii,onUpdated:Ul,onWatcherCleanup:d0,openBlock:It,patchProp:_A,popScopeId:Mk,provide:Ir,proxyRefs:wg,pushScopeId:$k,queuePostFlushCb:Lo,reactive:Pn,readonly:hl,ref:yt,registerRuntimeCompiler:iL,render:_u,renderList:$g,renderSlot:Mg,resolveComponent:gl,resolveDirective:cR,resolveDynamicComponent:N0,resolveFilter:mL,resolveTransitionHooks:Fs,setBlockTracking:bl,setDevtoolsHook:fL,setTransitionHooks:gi,shallowReactive:or,shallowReadonly:pk,shallowRef:wn,ssrContextKey:y0,ssrUtils:gL,stop:YT,toDisplayString:ar,toHandlerKey:ks,toHandlers:dR,toRaw:at,toRef:sd,toRefs:vk,toValue:br,transformVNodeArgs:qR,triggerRef:mk,unref:Ze,useAttrs:CR,useCssModule:GL,useCssVars:EL,useHost:EA,useId:zk,useModel:OR,useSSRContext:b0,useShadowRoot:VL,useSlots:P0,useTemplateRef:Zk,useTransitionState:xg,vModelCheckbox:Ug,vModelDynamic:OA,vModelRadio:jg,vModelSelect:RA,vModelText:wu,vShow:AA,version:fA,warn:uL,watch:xt,watchEffect:Eg,watchPostEffect:Fk,watchSyncEffect:v0,withAsyncContext:_R,withCtx:Bn,withDefaults:vR,withDirectives:Bk,withKeys:rO,withMemo:cL,withModifiers:tO,withScopeId:Dk},Symbol.toStringTag,{value:"Module"})),sO=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,aO=/"(?: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*:/,lO
5=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function cO(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){return}return t}function uO(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const n=e.trim();if(n.length<=9)switch(n.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!lO.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(sO.test(e)||aO.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,cO)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}const FA=/#/g,HA=/&/g,dO=/\//g,hO=/=/g,fO=/\?/g,md=/\+/g,pO=/%5e/gi,gO=/%60/gi,mO=/%7c/gi,yO=/%20/gi,bO=/%2f/gi,vO=/%252f/gi;function WA(e){return encodeURI(""+e).replace(mO,"|")}function Jf(e){return WA(typeof e=="string"?e:JSON.stringify(e)).replace(md,"%2B").replace(yO,"+").replace(FA,"%23").replace(HA,"%26").replace(gO,"`").replace(pO,"^").replace(dO,"%2F")}function xh(e){return Jf(e).replace(hO,"%3D")}function CO(e){return WA(e).replace(FA,"%23").replace(fO,"%3F").replace(vO,"%2F").replace(HA,"%26").replace(md,"%2B")}function Cl(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function IO(e){return Cl(e.replace(bO,"%252F"))}function AO(e){return Cl(e.replace(md," "))}function wO(e){return Cl(e.replace(md," "))}function yd(e=""){const t=Object.create(null);e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const i=AO(r[1]);if(i==="__proto__"||i==="constructor")continue;const s=wO(r[2]||"");t[i]===void 0?t[i]=s:Array.isArray(t[i])?t[i].push(s):t[i]=[t[i],s]}return t}function _O(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${xh(e)}=${Jf(n)}`).join("&"):`${xh(e)}=${Jf(t)}`:xh(e)}function SO(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>_O(t,e[t])).filter(Boolean).join("&")}const EO=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,xO=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,TO=/^([/\\]\s*){2,}[^/\\]/,kO=/^[\s\0]*(blob|data|javascript|vbscript):$/i,RO=/\/$|\/\?|\/#/,LO=/^\.?\//;function kr(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?EO.test(e):xO.test(e)||(t.acceptRelative?TO.test(e):!1)}function OO(e){return!!e&&kO.test(e)}function qf(e="",t){return t?RO.test(e):e.endsWith("/")}function Vs(e="",t){if(!t)return(qf(e)?e.slice(0,-1):e)||"/";if(!qf(e,!0))return e||"/";let n=e,r="";const i=e.indexOf("#");i!==-1&&(n=e.slice(0,i),r=e.slice(i));const[s,...o]=n.split("?");return((s.endsWith("/")?s.slice(0,-1):s)||"/")+(o.length>0?`?${o.join("?")}`:"")+r}function VA(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(qf(e,!0))return e||"/";let n=e,r="";const i=e.indexOf("#");if(i!==-1&&(n=e.slice(0,i),r=e.slice(i),!n))return r;const[s,...o]=n.split("?");return s+"/"+(o.length>0?`?${o.join("?")}`:"")+r}function NO(e,t){if(GA(t)||kr(e))return e;const n=Vs(t);if(e.startsWith(n)){const r=e[n.length];if(!r||r==="/"||r==="?")return e}return Hi(n,e)}function nb(e,t){if(GA(t))return e;const n=Vs(t);if(!e.startsWith(n))return e;const r=e[n.length];return r&&r!=="/"&&r!=="?"?e:"/"+e.slice(n.length).replace(/^\/+/,"")}function bd(e,t){const n=Zg(e),r={...yd(n.search),...t};return n.search=SO(r),$O(n)}function GA(e){return!e||e==="/"}function PO(e){return e&&e!=="/"}function Hi(e,...t){let n=e||"";for(const r of t.filter(i=>PO(i)))if(n){const i=r.replace(LO,"");n=VA(n)+i}else n=r;return n}function UA(...e){const t=/\/(?!\/)/,n=e.filter(Boolean),r=[];let i=0;for(const o of n)if(!(!o||o==="/")){for(const[a,c]of o.split(t).entries())if(!(!c||c===".")){if(c===".."){if(r.length===1&&kr(r[0]))continue;r.pop(),i--;continue}if(a===1&&r[r.length-1]?.endsWith(":/")){r[r.length-1]+="/"+c;continue}r.push(c),i++}}let s=r.join("/");return i>=0?n[0]?.startsWith("/")&&!s.startsWith("/")?s="/"+s:n[0]?.startsWith("./")&&!s.startsWith("./")&&(s="./"
5+s):s="../".repeat(-1*i)+s,n[n.length-1]?.endsWith("/")&&!s.endsWith("/")&&(s+="/"),s}function jA(e,t){return Cl(Vs(e))===Cl(Vs(t))}const zA=Symbol.for("ufo:protocolRelative");function Zg(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,v,R=""]=n;return{protocol:v.toLowerCase(),pathname:R,href:v+R,auth:"",host:"",search:"",hash:""}}if(!kr(e,{acceptRelative:!0}))return Qf(e);const[,r="",i,s=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,o="",a=""]=s.match(/([^#/?]*)(.*)?/)||[];r==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:c,search:l,hash:d}=Qf(a);return{protocol:r.toLowerCase(),auth:i?i.slice(0,Math.max(0,i.length-1)):"",host:o,pathname:c,search:l,hash:d,[zA]:!r}}function Qf(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function $O(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",r=e.hash||"",i=e.auth?e.auth+"@":"",s=e.host||"";return(e.protocol||e[zA]?(e.protocol||"")+"//":"")+i+s+t+n+r}class MO extends Error{constructor(t,n){super(t,n),this.name="FetchError",n?.cause&&!this.cause&&(this.cause=n.cause)}}function DO(e){const t=e.error?.message||e.error?.toString()||"",n=e.request?.method||e.options?.method||"GET",r=e.request?.url||String(e.request)||"/",i=`[${n}] ${JSON.stringify(r)}`,s=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",o=`${i}: ${s}${t?` ${t}`:""}`,a=new MO(o,e.error?{cause:e.error}:void 0);for(const c of["request","options","response"])Object.defineProperty(a,c,{get(){return e[c]}});for(const[c,l]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,c,{get(){return e.response&&e.response[l]}});return a}const BO=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function rb(e="GET"){return BO.has(e.toUpperCase())}function FO(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer||e instanceof FormData||e instanceof URLSearchParams?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const HO=new Set(["image/svg","application/xml","application/xhtml","application/html"]),WO=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function VO(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return WO.test(t)?"json":t==="text/event-stream"?"stream":HO.has(t)||t.startsWith("text/")?"text":"blob"}function GO(e,t,n,r){const i=UO(t?.headers??e?.headers,n?.headers,r);let s;return(n?.query||n?.params||t?.params||t?.query)&&(s={...n?.params,...n?.query,...t?.params,...t?.query}),{...n,...t,query:s,params:s,headers:i}}function UO(e,t,n){if(!t)return new n(e);const r=new n(t);if(e)for(const[i,s]of Symbol.iterator in e||Array.isArray(e)?e:new n(e))r.set(i,s);return r}async function Sc(e,t){if(t)if(Array.isArray(t))for(const n of t)await n(e);else await t(e)}const jO=new Set([408,409,425,429,500,502,503,504]),zO=new Set([101,204,205,304]);function ZA(e={}){const{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=e;async function i(a){const c=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!c){let d;typeof a.options.retry=="number"?d=a.options.retry:d=rb(a.options.method)?0:1;const v=a.response&&a.response.status||500;if(d>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(v):jO.has(v))){const R=typeof a.options.retryDelay=="function"?a.options.retryDelay(a):a.options.retryDelay||0;return R>0&&await new Promise(O=>setTimeout(O,R)),s(a.request,{...a.options,retry:d-1})}}const l=DO(a);throw Error.captureStackTrace&&Error.captureStackTrace(l,s),l}const s=async function(c,l={}){const d={request:c,options:GO(c,l,e.defaults,n),response:void 0,error:void 0};if(d.options.method&&(d.options.method=d.options.method.toUpperCase()),d.options.onRequest&&(await Sc(d,d.options.onRequest),d.options.headers instanceof n||(d.options.headers=new n(d.options.headers||{}))),typeof d.request=="string"&&(d.options.baseURL&&(d.request=NO(d.request,d.options.baseURL)),d.options.query&&(d.request=bd(d.request,d.options.query),delete d.options.query),"query"in d.options&&delete d.options.query,"params"in d.options&&delete d.options.params),d.options.body&&rb(d.options.method))if(FO(d.options.body)){const O=d.options.headers.get("content-type");typeof d.options.body!="string"&&(d.options.body=O==="application/x-www-form-urlencoded"?new URLSearchParams(d.options.body).toString():JSON.stringify(d.options.body)),O||d.options.headers.set("content-type","application/json"),d.options.headers.has("accept")||d.options.headers.set("accept","application/json")}else("pipeTo"in d.options.body&&typeof d.options.body.pipeTo=="function"||typeof d.options.body.pipe=="function")&&("duplex"in d.options||(d.options.duplex="half"));let v;if(!d.options.signal&&d.options.timeout){const O=new r;v=setTimeout(()=>{const $=new Error("[TimeoutError]: The operation was aborted due to timeout");$.name="TimeoutError",$.code=23,O.abort($)},d.options.timeout),d.options.signal=O.signal}try{d.response=await t(d.request,d.options)}catch(O){return d.error=O,d.options.onRequestError&&await Sc(d,d.options.onRequestError),await i(d)}finally{v&&clearTimeout(v)}if((d.response.body||d.response._bodyInit)&&!zO.has(d.response.status)&&d.options.method!=="HEAD"){const O=(d.options.parseResponse?"json":d.options.responseType)||VO(d.response.headers.get("content-type")||"");switch(O){case"json":{const $=await d.response.text(),P=d.options.parseResponse||uO;d.response._data=P($);break}case"stream":{d.response._data=d.response.body||d.response._bodyInit;break}default:d.response._data=await d.response[O]()}}return d.options.onResponse&&await Sc(d,d.options.onResponse),!d.options.ignoreResponseError&&d.response.status>=400&&d.response.status<600?(d.options.onResponseError&&await Sc(d,d.options.onResponseError),await i(d)):d.response},o=async function(c,l){return(await s(c,l))._data};return o.raw=s,o.native=(...a)=>t(...a),o.create=(a={},c={})=>ZA({...e,...c,defaults:{...e.defaults,...c.defaults,...a}}),o}const Eu=(function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")})(),ZO=Eu.fetch?(...e)=>Eu.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),KO=Eu.Headers,YO=Eu.AbortController,XO=ZA({fetch:ZO,Headers:KO,AbortController:YO}),JO=XO,qO=()=>window?.__NUXT__?.config||window?.useNuxtApp?.().payload?.config,Kg=()=>qO().app,QO=()=>Kg().baseURL,eN=()=>Kg().buildAssetsDir,Yg=(...e)=>UA(KA(),eN(),...e),KA=(...e)=>{const t=Kg(),n=t.cdnURL||t.baseURL;return e.length?UA(n,...e):n};globalThis.__buildAssetsURL=Yg,globalThis.__publicAssetsURL=KA;globalThis.$fetch||(globalThis.$fetch=JO.create({baseURL:QO()}));"global"in globalThis||(globalThis.global=globalThis);function ep(e,t={},n){for(const r in e){const i=e[r],s=n?`${n}:${r}`:r;typeof i=="object"&&i!==null?ep(i,t,s):typeof i=="function"&&(t[s]=i)}return t}const YA=(()=>
5{if(console.createTask)return console.createTask;const e={run:t=>t()};return()=>e})();function XA(e,t,n,r){for(let i=n;i<e.length;i+=1)try{const s=r?r.run(()=>e[i](...t)):e[i](...t);if(s&&typeof s.then=="function")return Promise.resolve(s).then(()=>XA(e,t,i+1,r))}catch(s){return Promise.reject(s)}}function tN(e,t,n){if(e.length>0)return XA(e,t,0,YA(n))}function nN(e,t,n){if(e.length>0){const r=YA(n);return Promise.all(e.map(i=>r.run(()=>i(...t))))}}function Th(e,t){for(const n of[...e])n(t)}var rN=class{_hooks;_before;_after;_deprecatedHooks;_deprecatedMessages;constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,t,n={}){if(!e||typeof t!="function")return()=>{};const r=e;let i;for(;this._deprecatedHooks[e];)i=this._deprecatedHooks[e],e=i.to;if(i&&!n.allowDeprecated){let s=i.message;s||(s=`${r} hook has been deprecated`+(i.to?`, please use ${i.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(s)||this._deprecatedMessages.add(s)}if(!t.name)try{Object.defineProperty(t,"name",{get:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&(this.removeHook(e,t),t=void 0)}}hookOnce(e,t){let n,r=(...i)=>(typeof n=="function"&&n(),n=void 0,r=void 0,t(...i));return n=this.hook(e,r),n}removeHook(e,t){const n=this._hooks[e];if(n){const r=n.indexOf(t);r!==-1&&n.splice(r,1),n.length===0&&(this._hooks[e]=void 0)}}clearHook(e){this._hooks[e]=void 0}deprecateHook(e,t){this._deprecatedHooks[e]=typeof t=="string"?{to:t}:t;const n=this._hooks[e]||[];this._hooks[e]=void 0;for(const r of n)this.hook(e,r)}deprecateHooks(e){for(const t in e)this.deprecateHook(t,e[t])}addHooks(e){const t=ep(e),n=Object.keys(t).map(r=>this.hook(r,t[r]));return()=>{for(const r of n)r();n.length=0}}removeHooks(e){const t=ep(e);for(const n in t)this.removeHook(n,t[n])}removeAllHooks(){this._hooks={}}callHook(e,...t){return this.callHookWith(tN,e,t)}callHookParallel(e,...t){return this.callHookWith(nN,e,t)}callHookWith(e,t,n){const r=this._before||this._after?{name:t,args:n,context:{}}:void 0;this._before&&Th(this._before,r);const i=e(this._hooks[t]?[...this._hooks[t]]:[],n,t);return i instanceof Promise?i.finally(()=>{this._after&&r&&Th(this._after,r)}):(this._after&&r&&Th(this._after,r),i)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){const t=this._before.indexOf(e);t!==-1&&this._before.splice(t,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){const t=this._after.indexOf(e);t!==-1&&this._after.splice(t,1)}}}};function JA(){return new rN}function iN(e={}){let t,n=!1;const r=o=>{if(t&&t!==o)throw new Error("Context conflict")};let i;if(e.asyncContext){const o=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;o&&(i=new o)}const s=()=>
5{if(i){const o=i.getStore();if(o!==void 0)return o}return t};return{use:()=>{const o=s();if(o===void 0)throw new Error("Context is not available");return o},tryUse:()=>s(),set:(o,a)=>{a||r(o),t=o,n=!0},unset:()=>{t=void 0,n=!1},call:(o,a)=>{r(o),t=o;try{return i?i.run(o,a):a()}finally{n||(t=void 0)}},async callAsync(o,a){t=o;const c=()=>{t=o},l=()=>t===o?c:void 0;tp.add(l);try{const d=i?i.run(o,a):a();return n||(t=void 0),await d}finally{tp.delete(l)}}}}function oN(e={}){const t={};return{get(n,r={}){return t[n]||(t[n]=iN({...e,...r})),t[n]}}}const xu=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},ib="__unctx__",sN=xu[ib]||(xu[ib]=oN()),aN=(e,t={})=>sN.get(e,t),ob="__unctx_async_handlers__",tp=xu[ob]||(xu[ob]=new Set);function di(e){const t=[];for(const i of tp){const s=i();s&&t.push(s)}const n=()=>{for(const i of t)i()};let r=e();return r&&typeof r=="object"&&"catch"in r&&(r=r.catch(i=>{throw n(),i})),[r,n]}const sb={name:"page",mode:"out-in"},ab={name:"layout",mode:"out-in"},lN=!1,lb={id:"__nuxt-loader"},cN={prefetch:!1,componentName:"NuxtLink",prefetchOn:{visibility:!0}},uN={deep:!1},dN={},hN="#__nuxt",qA="nuxt-app",cb=36e5,fN="vite:preloadError";function QA(e=qA){return aN(e,{asyncContext:!1})}const pN="__nuxt_plugin";function gN(e){let t=0;const n={_id:e.id||qA||"nuxt-app",_scope:Hl(),provide:void 0,versions:{get nuxt(){return"4.4.5"},get vue(){return n.vueApp.version}},payload:or({...e.ssrContext?.payload||{},data:or({}),state:Pn({}),once:new Set,_errors:or({})}),static:{data:{}},runWithContext(i){return n._scope.active&&!qi()?n._scope.run(()=>ub(n,i)):ub(n,i)},isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};t++;let i=!1;return()=>{if(!i&&(i=!0,t--,t===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:or({}),_state:or({}),_payloadRevivers:{},...e};{const i=window.__NUXT__;if(i)for(const s in i)switch(s){case"data":case"state":case"_errors":Object.assign(n.payload[s],i[s]);break;default:n.payload[s]=i[s]}}n.hooks=JA(),n.hook=n.hooks.hook;{const i=n.hooks.callHook;n.hooks.callHook=(s,...o)=>Promise.resolve().then(()=>i(s,...o))}n.callHook=n.hooks.callHook,n.provide=(i,s)=>{const o="$"+i;Ec(n,o,s),Ec(n.vueApp.config.globalProperties,o,s)},Ec(n.vueApp,"$nuxt",n),Ec(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener(fN,s=>{n.callHook("app:chunkError",{error:s.payload}),s.payload.message.includes("Unable to preload CSS")&&s.preventDefault()}),window.useNuxtApp||=Ue;const i=n.hook("app:error",(...s)=>{});n.hook("app:mounted",i)}const r=n.payload.config;return n.provide("config",r),n}function mN(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function yN(e,t){if(typeof t=="function"){const{provide:n}=await e.runWithContext(()=>t(e))||{};if(n&&typeof n=="object")for(const r in n)e.provide(r,n[r])}}async function bN(e,t){const n=new Set,r=[],i=[];let s,o=0;async function a(c){const l=c.dependsOn?.filter(d=>t.some(v=>v._name===d)&&!n.has(d))??[];if(l.length>0)r.push([new Set(l),c]);else{const d=yN(e,c).then(async()=>{c._name&&(n.add(c._name),await Promise.all(r.map(async([v,R])=>{v.has(c._name)&&(v.delete(c._name),v.size===0&&(o++,await a(R)))})))}).catch(v=>{if(!c.parallel&&!e.payload.error)throw v;s||=v});c.parallel?i.push(d):await d}}for(const c of t)mN(e,c);for(const c of t)await a(c);if(await Promise.all(i),o)for(let c=0;c<o;c++)await Promise.all(i);if(s)throw e.payload.error||s}function Je(e){if(typeof e=="function")return e;const t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[pN]:!0,_name:t})}const ew=Je;function ub(e,t,n){const r=()=>t();return QA(e._id).set(e),e.vueApp.runWithContext(r)}function tw(e){let t;return sa()&&(t=Mt()?.appContext.app.$nuxt),t||=QA(e).tryUse(),t||null}function Ue(e){const t=tw(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function ln(e){return Ue().$config}function Ec(e,t,n){Object.defineProperty(e,t,{get:()=>n})}function kh(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function np(e,t,n=".",r){if(!kh(t))return np(e,{},n,r);const i={...t};for(const s of Object.keys(e)){if(s==="__proto__"||s==="constructor")continue;const o=e[s];o!=null&&(r&&r(i,s,o,n)||(Array.isArray(o)&&Array.isArray(i[s])?i[s]=[...o,...i[s]]:kh(o)&&kh(i[s])?i[s]=np(o,i[s],(n?`${n}.`:"")+s.toString(),r):i[s]=o))}return i}function nw(e){return(...t)=>t.reduce((n,r)=>np(n,r,"",e),{})}const Xg=nw();function vN(e,t){try{return t in e}catch{return!1}}
5class db extends Error{static __h3_error__=!0;statusCode=500;fatal=!1;unhandled=!1;statusMessage;data;cause;constructor(t,n={}){super(t,n),n.cause&&!this.cause&&(this.cause=n.cause)}toJSON(){const t={message:this.message,statusCode:rp(this.statusCode,500)};return this.statusMessage&&(t.statusMessage=rw(this.statusMessage)),this.data!==void 0&&(t.data=this.data),t}}function CN(e){if(typeof e=="string")return new db(e);if(IN(e))return e;const t=new db(e.message??e.statusMessage??"",{cause:e.cause||e});if(vN(e,"stack"))try{Object.defineProperty(t,"stack",{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=rp(e.statusCode,t.statusCode):e.status&&(t.statusCode=rp(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage,r=rw(t.statusMessage)}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function IN(e){return e?.constructor?.__h3_error__===!0}const AN=/[^\u0009\u0020-\u007E]/g;function rw(e=""){return e.replace(AN,"")}function rp(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const iw=Symbol("layout-meta"),Po=Symbol("route");import.meta.url.replace(/\/app\/.*$/,"/");const Dt=()=>Ue()?.$router,gr=()=>sa()?Nt(Po,Ue()._route):Ue()._route;function Qoe(e){return e}const ow=()=>{try{if(Ue()._processingMiddleware)return!0}catch{return!1}return!1},Kr=(e,t)=>{e||="/";const n=typeof e=="string"?e:"path"in e?ip(e):Dt().resolve(e).href;if(t?.open){const{target:l="_blank",windowFeatures:d={}}=t.open,v=[];for(const[R,O]of Object.entries(d))O!==void 0&&v.push(`${R.toLowerCase()}=${O}`);return open(n,l,v.join(", ")),Promise.resolve()}const r=kr(n,{acceptRelative:!0}),i=t?.external||r;if(i){if(!t?.external)throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const{protocol:l}=new URL(n,window.location.href);if(l&&OO(l))throw new Error(`Cannot navigate to a URL with '${l}' protocol.`)}const s=ow();if(!i&&s){if(t?.replace){if(typeof e=="string"){const{pathname:l,search:d,hash:v}=Zg(e);return{path:l,...d&&{query:yd(d)},...v&&{hash:v},replace:!0}}return{...e,replace:!0}}return e}const o=Dt(),a=Ue();if(i)return a._scope.stop(),t?.replace?location.replace(n):location.href=n,s?a.isHydrating?new Promise(()=>{}):!1:Promise.resolve();const c=typeof e=="string"?sw(e):e;return t?.replace?o.replace(c):o.push(c)},ese=(e,t)=>{const n=Ue(),r=ow();if(r||n.isHydrating){const i=Dt().beforeResolve(s=>{s.meta.layout=e,s.meta.layoutProps=t,i()})}if(!r){const i=gr();i.meta.layout=e,i.meta.layoutProps=t}};function ip(e){return bd(e.path||"",e.query||{})+(e.hash||"")}function sw(e){const t=Zg(e);return CO(IO(t.pathname))+t.search+t.hash}const aw="__nuxt_error",la=()=>sd(Ue().payload,"error"),go=e=>{const t=Wi(e);try{const n=la();Ue().hooks.callHook("app:error",t),n.value||=t}catch{throw t}return t},wN=async(e={})=>{const t=Ue(),n=la();t.callHook("app:error:cleared",e),e.redirect&&await Dt().replace(e.redirect),n.value=void 0},lw=e=>!!e&&typeof e=="object"&&aw in e,Wi=e=>{typeof e!="string"&&e.statusText&&(e.message??=e.statusText);const t=CN(e);return Object.defineProperty(t,aw,{value:!0,configurable:!1,writable:!1}),Object.defineProperty(t,"status",{get:()=>t.statusCode,configurable:!0}),Object.defineProperty(t,"statusText",{get:()=>t.statusMessage,configurable:!0}),t};function cw(e,t){return function(){return e.apply(t,arguments)}}const{toString:_N}=Object.prototype,{getPrototypeOf:Gs}=Object,{iterator:zl,toStringTag:uw}=Symbol,Tu=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Il=(e,t)=>{let n=e;const r=[];for(;n!=null&&n!==Object.prototype;){if(r.indexOf(n)!==-1)return!1;if(r.push(n),Tu(n,t))return!0;n=Gs(n)}return!1},SN=(e,t)=>e!=null&&Il(e,t)?e[t]:void 0,Jg=(e=>t=>{const n=_N.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Rr=e=>(e=e.toLowerCase(),t=>Jg(t)===e),vd=e=>t=>typeof t===e,{isArray:$o}=Array,Us=vd("undefined");function ca(e){return e!==null&&!Us(e)&&e.constructor!==null&&!Us(e.constructor)&&Vn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const dw=Rr("ArrayBuffer");function EN(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&dw(e.buffer),t}const xN=vd("string"),Vn=vd("function"),hw=vd("number"),ua=e=>e!==null&&typeof e=="object",TN=e=>e===!0||e===!1,qc=e=>{if(!ua(e))return!1;const t=Gs(e);return(t===null||t===Object.prototype||Gs(t)===null)&&!Il(e,uw)&&!Il(e,zl)},kN=e=>{if(!ua(e)||ca(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},RN=Rr("Date"),LN=Rr("File"),ON=e=>!!(e&&typeof e.uri<"u"),NN=e=>e&&typeof e.getParts<"u",PN=Rr("Blob"),$N=Rr("FileList"),MN=e=>ua(e)&&Vn(e.pipe);function DN(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const hb=DN(),fb=typeof hb.FormData<"u"?hb.FormData:void 0,BN=e=>{if(!e)return!1;if(fb&&e instanceof fb)return!0;const t=Gs(e);if(!t||t===Object.prototype||!Vn(e.append))return!1;const n=Jg(e);return n==="formdata"||n==="object"&&Vn(e.toString)&&e.toString()==="[object FormData]"},FN=Rr("URLSearchParams"),[HN,WN,VN,GN]=["ReadableStream","Request","Response","Headers"].map(Rr),UN=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Zl(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),$o(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(ca(e))return;const s=n?Object.getOwnPropertyNames(e):Object.keys(e),o=s.length;let a;for(r=0;r<o;r++)a=s[r],t.call(null,e[a],a,e)}}function fw(e,t){if(ca(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const bo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,pw=e=>!Us(e)&&e!==bo;function op(...e){const{caseless:t,skipUndefined:n}=pw(this)&&this||{},r={},i=(s,o)=>
vendor: 41,705 bytes, lines 5-13
5{if(o==="__proto__"||o==="constructor"||o==="prototype")return;const a=t&&typeof o=="string"&&fw(r,o)||o,c=Tu(r,a)?r[a]:void 0;qc(c)&&qc(s)?r[a]=op(c,s):qc(s)?r[a]=op({},s):$o(s)?r[a]=s.slice():(!n||!Us(s))&&(r[a]=s)};for(let s=0,o=e.length;s<o;s++){const a=e[s];if(!a||ca(a)||(Zl(a,i),typeof a!="object"||$o(a)))continue;const c=Object.getOwnPropertySymbols(a);for(let l=0;l<c.length;l++){const d=c[l];nP.call(a,d)&&i(a[d],d)}}return r}const jN=(e,t,n,{allOwnKeys:r}={})=>(Zl(t,(i,s)=>{n&&Vn(i)?Object.defineProperty(e,s,{__proto__:null,value:cw(i,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,s,{__proto__:null,value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),zN=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ZN=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},KN=(e,t,n,r)=>{let i,s,o;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)o=i[s],(!r||r(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=n!==!1&&Gs(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},YN=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},XN=e=>{if(!e)return null;if($o(e))return e;let t=e.length;if(!hw(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},JN=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Gs(Uint8Array)),qN=(e,t)=>{const r=(e&&e[zl]).call(e);let i;for(;(i=r.next())&&!i.done;){const s=i.value;t.call(e,s[0],s[1])}},QN=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},eP=Rr("HTMLFormElement"),tP=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),{propertyIsEnumerable:nP}=Object.prototype,rP=Rr("RegExp"),gw=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Zl(n,(i,s)=>{let o;(o=t(i,s,e))!==!1&&(r[s]=o||i)}),Object.defineProperties(e,r)},iP=e=>{gw(e,(t,n)=>{if(Vn(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(Vn(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},oP=(e,t)=>{const n={},r=i=>{i.forEach(s=>{n[s]=!0})};return $o(e)?r(e):r(String(e).split(t)),n},sP=()=>{},aP=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function lP(e){return!!(e&&Vn(e.append)&&e[uw]==="FormData"&&e[zl])}const cP=e=>{const t=new WeakSet,n=r=>{if(ua(r)){if(t.has(r))return;if(ca(r))return r;if(!("toJSON"in r)){t.add(r);const i=$o(r)?[]:{};return Zl(r,(s,o)=>{const a=n(s);!Us(a)&&(i[o]=a)}),t.delete(r),i}}return r};return n(e)},uP=Rr("AsyncFunction"),dP=e=>e&&(ua(e)||Vn(e))&&Vn(e.then)&&Vn(e.catch),mw=((e,t)=>e?setImmediate:t?((n,r)=>(bo.addEventListener("message",({source:i,data:s})=>{i===bo&&s===n&&r.length&&r.shift()()},!1),i=>{r.push(i),bo.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Vn(bo.postMessage)),hP=typeof queueMicrotask<"u"?queueMicrotask.bind(bo):typeof process<"u"&&process.nextTick||mw,yw=e=>e!=null&&Vn(e[zl]),fP=e=>e!=null&&Il(e,zl)&&yw(e),Ie={isArray:$o,isArrayBuffer:dw,isBuffer:ca,isFormData:BN,isArrayBufferView:EN,isString:xN,isNumber:hw,isBoolean:TN,isObject:ua,isPlainObject:qc,isEmptyObject:kN,isReadableStream:HN,isRequest:WN,isResponse:VN,isHeaders:GN,isUndefined:Us,isDate:RN,isFile:LN,isReactNativeBlob:ON,isReactNative:NN,isBlob:PN,isRegExp:rP,isFunction:Vn,isStream:MN,isURLSearchParams:FN,isTypedArray:JN,isFileList:$N,forEach:Zl,merge:op,extend:jN,trim:UN,stripBOM:zN,inherits:ZN,toFlatObject:KN,kindOf:Jg,kindOfTest:Rr,endsWith:YN,toArray:XN,forEachEntry:qN,matchAll:QN,isHTMLForm:eP,hasOwnProperty:Tu,hasOwnProp:Tu,hasOwnInPrototypeChain:Il,getSafeProp:SN,reduceDescriptors:gw,freezeMethods:iP,toObjectSet:oP,toCamelCase:tP,noop:sP,toFiniteNumber:aP,findKey:fw,global:bo,isContextDefined:pw,isSpecCompliantForm:lP,toJSONObject:cP,isAsyncFn:uP,isThenable:dP,setImmediate:mw,asap:hP,isIterable:yw,isSafeIterable:fP},pP=Ie.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),gP=e=>{const t={};let n,r,i;return e&&e.split(` 6`).forEach(function(o){i=o.indexOf(":"),n=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!n||t[n]&&pP[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};function mP(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const yP=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),bP=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function qg(e,t){return Ie.isArray(e)?e.map(n=>qg(n,t)):mP(String(e).replace(t,""))}const vP=e=>qg(e,yP),CP=e=>qg(e,bP);function bw(e){const t=Object.create(null);return Ie.forEach(e.toJSON(),(n,r)=>{t[r]=CP(n)}),t}const pb=Symbol("internals");function Oa(e){return e&&String(e).trim().toLowerCase()}function Qc(e){return e===!1||e==null?e:Ie.isArray(e)?e.map(Qc):vP(String(e))}function IP(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const AP=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Rh(e,t,n,r,i){if(Ie.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!Ie.isString(t)){if(Ie.isString(r))return t.indexOf(r)!==-1;if(Ie.isRegExp(r))return r.test(t)}}function wP(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function _P(e,t){const n=Ie.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(i,s,o){return this[r].call(this,t,i,s,o)},configurable:!0})})}let _n=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function s(a,c,l){const d=Oa(c);if(!d)return;const v=Ie.findKey(i,d);(!v||i[v]===void 0||l===!0||l===void 0&&i[v]!==!1)&&(i[v||c]=Qc(a))}const o=(a,c)=>Ie.forEach(a,(l,d)=>s(l,d,c));if(Ie.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(Ie.isString(t)&&(t=t.trim())&&!AP(t))o(gP(t),n);else if(Ie.isObject(t)&&Ie.isSafeIterable(t)){let a=Object.create(null),c,l;for(const d of t){if(!Ie.isArray(d))throw new TypeError("Object iterator must return a key-value pair");l=d[0],Ie.hasOwnProp(a,l)?(c=a[l],a[l]=Ie.isArray(c)?[...c,d[1]]:[c,d[1]]):a[l]=d[1]}o(a,n)}else t!=null&&s(n,t,r);return this}get(t,n){if(t=Oa(t),t){const r=Ie.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return IP(i);if(Ie.isFunction(n))return n.call(this,i,r);if(Ie.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Oa(t),t){const r=Ie.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Rh(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function s(o){if(o=Oa(o),o){const a=Ie.findKey(r,o);a&&(!n||Rh(r,r[a],a,n))&&(delete r[a],i=!0)}}return Ie.isArray(t)?t.forEach(s):s(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const s=n[r];(!t||Rh(this,this[s],s,t,!0))&&(delete this[s],i=!0)}return i}normalize(t){const n=this,r={};return Ie.forEach(this,(i,s)=>{const o=Ie.findKey(r,s);if(o){n[o]=Qc(i),delete n[s];return}const a=t?wP(s):String(s).trim();a!==s&&delete n[s],n[a]=Qc(i),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Ie.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&Ie.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` 7`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[pb]=this[pb]={accessors:{}}).accessors,i=this.prototype;function s(o){const a=Oa(o);r[a]||(_P(i,o),r[a]=!0)}return Ie.isArray(t)?t.forEach(s):s(t),this}};_n.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Ie.reduceDescriptors(_n.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Ie.freezeMethods(_n);const SP="[REDACTED ****]";function EP(e){if(Ie.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(Ie.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function xP(e,t){const n=new Set(t.map(s=>String(s).toLowerCase())),r=[],i=s=>{if(s===null||typeof s!="object"||Ie.isBuffer(s))return s;if(r.indexOf(s)!==-1)return;s instanceof _n&&(s=s.toJSON()),r.push(s);let o;if(Ie.isArray(s))o=[],s.forEach((a,c)=>{const l=i(a);Ie.isUndefined(l)||(o[c]=l)});else{if(!Ie.isPlainObject(s)&&EP(s))return r.pop(),s;o=Object.create(null);for(const[a,c]of Object.entries(s)){const l=n.has(a.toLowerCase())?SP:i(c);Ie.isUndefined(l)||(o[a]=l)}}return r.pop(),o};return i(e)}let Be=class vw extends Error{static from(t,n,r,i,s,o){const a=new vw(t.message,n||t.code,r,i,s);return Object.defineProperty(a,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),a.name=t.name,t.status!=null&&a.status==null&&(a.status=t.status),o&&Object.assign(a,o),a}constructor(t,n,r,i,s){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),i&&(this.request=i),s&&(this.response=s,this.status=s.status)}toJSON(){const t=this.config,n=t&&Ie.hasOwnProp(t,"redact")?t.redact:void 0,r=Ie.isArray(n)&&n.length>0?xP(t,n):Ie.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}};Be.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";Be.ERR_BAD_OPTION="ERR_BAD_OPTION";Be.ECONNABORTED="ECONNABORTED";Be.ETIMEDOUT="ETIMEDOUT";Be.ECONNREFUSED="ECONNREFUSED";Be.ERR_NETWORK="ERR_NETWORK";Be.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";Be.ERR_DEPRECATED="ERR_DEPRECATED";Be.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";Be.ERR_BAD_REQUEST="ERR_BAD_REQUEST";Be.ERR_CANCELED="ERR_CANCELED";Be.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";Be.ERR_INVALID_URL="ERR_INVALID_URL";Be.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const TP=null,Cw=100;function sp(e){return Ie.isPlainObject(e)||Ie.isArray(e)}function Iw(e){return Ie.endsWith(e,"[]")?e.slice(0,-2):e}function Lh(e,t,n){return e?e.concat(t).map(function(i,s){return i=Iw(i),!n&&s?"["+i+"]":i}).join(n?".":""):t}function kP(e){return Ie.isArray(e)&&!e.some(sp)}const RP=Ie.toFlatObject(Ie,{},null,function(t){return/^is[A-Z]/.test(t)});function Cd(e,t,n){if(!Ie.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Ie.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(N,x){return!Ie.isUndefined(x[N])});const r=n.metaTokens,i=n.visitor||$,s=n.dots,o=n.indexes,a=n.Blob||typeof Blob<"u"&&Blob,c=n.maxDepth===void 0?Cw:n.maxDepth,l=a&&Ie.isSpecCompliantForm(t),d=[];if(!Ie.isFunction(i))throw new TypeError("visitor must be a function");function v(C){if(C===null)return"";if(Ie.isDate(C))return C.toISOString();if(Ie.isBoolean(C))return C.toString();if(!l&&Ie.isBlob(C))throw new Be("Blob is not supported. Use a Buffer instead.");if(Ie.isArrayBuffer(C)||Ie.isTypedArray(C)){if(l&&typeof a=="function")return new a([C]);if(typeof Buffer<"u")return Buffer.from(C);throw new Be("Blob is not supported. Use a Buffer instead.",Be.ERR_NOT_SUPPORT)}return C}function R(C){if(C>c)throw new Be("Object is too deeply nested ("+C+" levels). Max depth: "+c,Be.ERR_FORM_DATA_DEPTH_EXCEEDED)}function O(C,N){if(c===1/0)return JSON.stringify(C);const x=[];return JSON.stringify(C,function(b,p){if(!Ie.isObject(p))return p;for(;x.length&&x[x.length-1]!==this;)x.pop();return x.push(p),R(N+x.length-1),p})}function $(C,N,x){let S=C;if(Ie.isReactNative(t)&&Ie.isReactNativeBlob(C))return t.append(Lh(x,N,s),v(C)),!1;if(C&&!x&&typeof C=="object"){if(Ie.endsWith(N,"{}"))N=r?N:N.slice(0,-2),C=O(C,1);else if(Ie.isArray(C)&&kP(C)||(Ie.isFileList(C)||Ie.endsWith(N,"[]"))&&(S=Ie.toArray(C)))return N=Iw(N),S.forEach(function(p,g){!(Ie.isUndefined(p)||p===null)&&t.append(o===!0?Lh([N],g,s):o===null?N:N+"[]",v(p))}),!1}return sp(C)?!0:(t.append(Lh(x,N,s),v(C)),!1)}const P=Object.assign(RP,{defaultVisitor:$,convertValue:v,isVisitable:sp});function T(C,N,x=0){if(!Ie.isUndefined(C)){if(R(x),d.indexOf(C)!==-1)throw new Error("Circular reference detected in "+N.join("."));d.push(C),Ie.forEach(C,function(b,p){(!(Ie.isUndefined(b)||b===null)&&i.call(t,b,Ie.isString(p)?p.trim():p,N,P))===!0&&T(b,N?N.concat(p):[p],x+1)}),d.pop()}}if(!Ie.isObject(e))throw new TypeError("data must be an object");return T(e),t}function gb(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function Qg(e,t){this._pairs=[],e&&Cd(e,this,t)}const Aw=Qg.prototype;Aw.append=function(t,n){this._pairs.push([t,n])};Aw.toString=function(t){const n=t?r=>t.call(this,r,gb):gb;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function LP(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function ww(e,t,n){if(!t)return e;e=e||"";const r=Ie.isFunction(n)?{serialize:n}:n,i=Ie.getSafeProp(r,"encode")||LP,s=Ie.getSafeProp(r,"serialize");let o;if(s?o=s(t,r):o=Ie.isURLSearchParams(t)?t.toString():new Qg(t,r).toString(i),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}let mb=class{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Ie.forEach(this.handlers,function(r){r!==null&&t(r)})}};const em={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},OP=typeof URLSearchParams<"u"?URLSearchParams:Qg,NP=typeof FormData<"u"?FormData:null,PP=typeof Blob<"u"?Blob:null,$P={isBrowser:!0,classes:{URLSearchParams:OP,FormData:NP,Blob:PP},protocols:["http","https","file","blob","url","data"]},tm=typeof window<"u"&&typeof document<"u",ap=typeof navigator=="object"&&navigator||void 0,MP=tm&&(!ap||["ReactNative","NativeScript","NS"].indexOf(ap.product)<0),DP=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",BP=tm&&window.location.href||"http://localhost",FP=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:tm,hasStandardBrowserEnv:MP,hasStandardBrowserWebWorkerEnv:DP,navigator:ap,origin:BP},Symbol.toStringTag,{value:"Module"})),dn={...FP,...$P};function HP(e,t){return Cd(e,new dn.classes.URLSearchParams,{visitor:function(n,r,i,s){return dn.isNode&&Ie.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}const yb=Cw;function _w(e){if(e>yb)throw new Be("FormData field is too deeply nested ("+e+" levels). Max depth: "+yb,Be.ERR_FORM_DATA_DEPTH_EXCEEDED)}function WP(e){const t=[],n=/\w+|\[(\w*)]/g;let r;for(;(r=n.exec(e))!==null;)_w(t.length),t.push(r[0]==="[]"?"":r[1]||r[0]);return t}function VP(e){const t={},n=Object.keys(e);let r;const i=n.length;let s;for(r=0;r<i;r++)s=n[r],t[s]=e[s];return t}function Sw(e){function t(n,r,i,s){_w(s);let o=n[s++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),c=s>=n.length;return o=!o&&Ie.isArray(i)?i.length:o,c?(Ie.hasOwnProp(i,o)?i[o]=Ie.isArray(i[o])?i[o].concat(r):[i[o],r]:i[o]=r,!a):((!Ie.hasOwnProp(i,o)||!Ie.isObject(i[o]))&&(i[o]=[]),t(n,r,i[o],s)&&Ie.isArray(i[o])&&(i[o]=VP(i[o])),!a)}if(Ie.isFormData(e)&&Ie.isFunction(e.entries)){const n={};return Ie.forEachEntry(e,(r,i)=>{t(WP(r),i,n,0)}),n}return null}const ts=(e,t)=>e!=null&&Ie.hasOwnProp(e,t)?e[t]:void 0;function GP(e,t,n){if(Ie.isString(e))try{return(t||JSON.parse)(e),Ie.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Kl={transitional:em,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,s=Ie.isObject(t);if(s&&Ie.isHTMLForm(t)&&(t=new FormData(t)),Ie.isFormData(t))return i?JSON.stringify(Sw(t)):t;if(Ie.isArrayBuffer(t)||Ie.isBuffer(t)||Ie.isStream(t)||Ie.isFile(t)||Ie.isBlob(t)||Ie.isReadableStream(t))return t;if(Ie.isArrayBufferView(t))return t.buffer;if(Ie.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(s){const c=ts(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return HP(t,c).toString();if((a=Ie.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=ts(this,"env"),d=l&&l.FormData;return Cd(a?{"files[]":t}:t,d&&new d,c)}}return s||i?(n.setContentType("application/json",!1),GP(t)):t}],transformResponse:[function(t){const n=ts(this,"transitional")||Kl.transitional,r=n&&n.forcedJSONParsing,i=ts(this,"responseType"),s=i==="json";if(Ie.isResponse(t)||Ie.isReadableStream(t))return t;if(t&&Ie.isString(t)&&(r&&!i||s)){const a=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t,ts(this,"parseReviver"))}catch(c){if(a)throw c.name==="SyntaxError"?Be.from(c,Be.ERR_BAD_RESPONSE,this,null,ts(this,"response")):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:dn.classes.FormData,Blob:dn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ie.forEach(["delete","get","head","post","put","patch","query"],e=>{Kl.headers[e]={}});function Oh(e,t){const n=this||Kl,r=t||n,i=_n.from(r.headers);let s=r.data;return Ie.forEach(e,function(a){s=a.call(n,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function Ew(e){return!!(e&&e.__CANCEL__)}let Yl=class extends Be{constructor(t,n,r){super(t??"canceled",Be.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function xw(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Be("Request failed with status code "+n.status,n.status>=400&&n.status<500?Be.ERR_BAD_REQUEST:Be.ERR_BAD_RESPONSE,n.config,n.request,n))}function UP(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function jP(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,s=0,o;return t=t!==void 0?t:1e3,function(c){const l=Date.now(),d=r[s];o||(o=l),n[i]=c,r[i]=l;let v=s,R=0;for(;v!==i;)R+=n[v++],v=v%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),l-o<t)return;const O=d&&l-d;return O?Math.round(R*1e3/O):void 0}}function zP(e,t){let n=0,r=1e3/t,i,s;const o=(l,d=Date.now())=>{n=d,i=null,s&&(clearTimeout(s),s=null),e(...l)};return[(...l)=>{const d=Date.now(),v=d-n;v>=r?o(l,d):(i=l,s||(s=setTimeout(()=>{s=null,o(i)},r-v)))},()=>i&&o(i)]}const ku=(e,t,n=3)=>{let r=0;const i=jP(50,250);return zP(s=>{if(!s||typeof s.loaded!="number")return;const o=s.loaded,a=s.lengthComputable?s.total:void 0,c=a!=null?Math.min(o,a):o,l=Math.max(0,c-r),d=i(l);r=Math.max(r,c);const v={loaded:c,total:a,progress:a?c/a:void 0,bytes:l,rate:d||void 0,estimated:d&&a?(a-c)/d:void 0,event:s,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(v)},n)},bb=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},vb=e=>(...t)=>Ie.asap(()=>e(...t)),ZP=dn.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,dn.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(dn.origin),dn.navigator&&/(msie|trident)/i.test(dn.navigator.userAgent)):()=>!0,KP=dn.hasStandardBrowserEnv?{write(e,t,n,r,i,s,o){if(typeof document>"u")return;const a=[`${e}=${encodeURIComponent(t)}`];Ie.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),Ie.isString(r)&&a.push(`path=${r}`),Ie.isString(i)&&a.push(`domain=${i}`),s===!0&&a.push("secure"),Ie.isString(o)&&a.push(`SameSite=${o}`),document.cookie=a.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),i=r.indexOf("=");if(i!==-1&&r.slice(0,i)===e)try{return decodeURIComponent(r.slice(i+1))}catch{return r.slice(i+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function YP(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function XP(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}const JP=/^https?:(?!\/\/)/i,qP=/[\t\n\r]/g;function QP(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}function e$(e){return QP(e).replace(qP,"")}function Cb(e,t){if(typeof e=="string"&&JP.test(e$(e)))throw new Be('Invalid URL: missing "//" after protocol',Be.ERR_INVALID_URL,t)}function Tw(e,t,n,r){Cb(t,r);let i=!YP(t);return e&&(i||n===!1)?(Cb(e,r),XP(e,t)):t}const Ib=e=>e instanceof _n?{...e}:e;function Mo(e,t){e=e||{},t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(d,v,R,O){return Ie.isPlainObject(d)&&Ie.isPlainObject(v)?Ie.merge.call({caseless:O},d,v):Ie.isPlainObject(v)?Ie.merge({},v):Ie.isArray(v)?v.slice():v}function i(d,v,R,O){if(Ie.isUndefined(v)){if(!Ie.isUndefined(d))return r(void 0,d,R,O)}else return r(d,v,R,O)}function s(d,v){if(!Ie.isUndefined(v))return r(void 0,v)}function o(d,v){if(Ie.isUndefined(v)){if(!Ie.isUndefined(d))return r(void 0,d)}else return r(void 0,v)}function a(d){const v=Ie.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!Ie.isUndefined(v))if(Ie.isPlainObject(v)){if(Ie.hasOwnProp(v,d))return v[d]}else return;const R=Ie.hasOwnProp(e,"transitional")?e.transitional:void 0;if(Ie.isPlainObject(R)&&Ie.hasOwnProp(R,d))return R[d]}function c(d,v,R){if(Ie.hasOwnProp(t,R))return r(d,v);if(Ie.hasOwnProp(e,R))return r(void 0,d)}const l={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,allowedSocketPaths:o,responseEncoding:o,validateStatus:c,headers:(d,v,R)=>i(Ib(d),Ib(v),R,!0)};return Ie.forEach(Object.keys({...e,...t}),function(v){if(v==="__proto__"||v==="constructor"||v==="prototype")return;const R=Ie.hasOwnProp(l,v)?l[v]:i,O=Ie.hasOwnProp(e,v)?e[v]:void 0,$=Ie.hasOwnProp(t,v)?t[v]:void 0,P=R(O,$,v);Ie.isUndefined(P)&&R!==c||(n[v]=P)}),Ie.hasOwnProp(t,"validateStatus")&&Ie.isUndefined(t.validateStatus)&&a("validateStatusUndefinedResolves")===!1&&(Ie.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}const t$=["content-type","content-length"];function n$(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t||{}).forEach(([r,i])=>{t$.includes(r.toLowerCase())&&e.set(r,i)})}const r$=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function kw(e){const t=Mo({},e),n=R=>Ie.hasOwnProp(t,R)?t[R]:void 0,r=n("data");let i=n("withXSRFToken");const s=n("xsrfHeaderName"),o=n("xsrfCookieName");let a=n("headers");const c=n("auth"),l=n("baseURL"),d=n("allowAbsoluteUrls"),v=n("url");if(t.headers=a=_n.from(a),t.url=ww(Tw(l,v,d,t),n("params"),n("paramsSerializer")),c){const R=Ie.getSafeProp(c,"username")||"",O=Ie.getSafeProp(c,"password")||"";try{a.set("Authorization","Basic "+btoa(R+":"+(O?r$(O):"")))}catch($){throw Be.from($,Be.ERR_BAD_OPTION_VALUE,e)}}if(Ie.isFormData(r)&&(dn.hasStandardBrowserEnv||dn.hasStandardBrowserWebWorkerEnv||Ie.isReactNative(r)?a.setContentType(void 0):Ie.isFunction(r.getHeaders)&&n$(a,r.getHeaders(),n("formDataHeaderPolicy"))),dn.hasStandardBrowserEnv&&(Ie.isFunction(i)&&(i=i(t)),i===!0||i==null&&ZP(t.url))){const O=s&&o&&KP.read(o);O&&a.set(s,O)}return t}const i$=typeof XMLHttpRequest<"u",o$=i$&&function(e){return new Promise(function(n,r){const i=kw(e);let s=i.data;const o=_n.from(i.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:l}=i,d,v,R,O,$;function P(){O&&O(),$&&$(),i.cancelToken&&i.cancelToken.unsubscribe(d),i.signal&&i.signal.removeEventListener("abort",d)}let T=new XMLHttpRequest;T.open(i.method.toUpperCase(),i.url,!0),T.timeout=i.timeout;function C(){if(!T)return;const x=_n.from("getAllResponseHeaders"in T&&T.getAllResponseHeaders()),b={data:!a||a==="text"||a==="json"?T.responseText:T.response,status:T.status,statusText:T.statusText,headers:x,config:e,request:T};xw(function(g){n(g),P()},function(g){r(g),P()},b),T=null}"onloadend"in T?T.onloadend=C:T.onreadystatechange=function(){!T||T.readyState!==4||T.status===0&&!(T.responseURL&&T.responseURL.startsWith("file:"))||setTimeout(C)},T.onabort=function(){T&&(r(new Be("Request aborted",Be.ECONNABORTED,e,T)),P(),T=null)},T.onerror=function(S){const b=S&&S.message?S.message:"Network Error",p=new Be(b,Be.ERR_NETWORK,e,T);p.event=S||null,r(p),P(),T=null},T.ontimeout=function(){let S=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const b=i.transitional||em;i.timeoutErrorMessage&&(S=i.timeoutErrorMessage),r(new Be(S,b.clarifyTimeoutError?Be.ETIMEDOUT:Be.ECONNABORTED,e,T)),P(),T=null},s===void 0&&o.setContentType(null),"setRequestHeader"in T&&Ie.forEach(bw(o),function(S,b){T.setRequestHeader(b,S)}),Ie.isUndefined(i.withCredentials)||(T.withCredentials=!!i.withCredentials),a&&a!=="json"&&(T.responseType=i.responseType),l&&([R,$]=ku(l,!0),T.addEventListener("progress",R)),c&&T.upload&&([v,O]=ku(c),T.upload.addEventListener("progress",v),T.upload.addEventListener("loadend",O)),(i.cancelToken||i.signal)&&(d=x=>{T&&(r(!x||x.type?new Yl(null,e,T):x),T.abort(),P(),T=null)},i.cancelToken&&i.cancelToken.subscribe(d),i.signal&&(i.signal.aborted?d():i.signal.addEventListener("abort",d)));const N=UP(i.url);if(N&&!dn.protocols.includes(N)){r(new Be("Unsupported protocol "+N+":",Be.ERR_BAD_REQUEST,e)),P();return}T.send(s||null)})},s$=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const i=function(c){if(!r){r=!0,o();const l=c instanceof Error?c:this.reason;n.abort(l instanceof Be?l:new Yl(l instanceof Error?l.message:l))}};let s=t&&setTimeout(()=>{s=null,i(new Be(`timeout of ${t}ms exceeded`,Be.ETIMEDOUT))},t);const o=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i,{once:!0}));const{signal:a}=n;return a.unsubscribe=()=>Ie.asap(o),a},a$=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},l$=async function*(e,t){for await(const n of c$(e))yield*a$(n,t)},c$=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Ab=(e,t,n,r)=>{const i=l$(e,t);let s=0,o,a=c=>{o||(o=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:l,value:d}=await i.next();if(l){a(),c.close();return}let v=d.byteLength;if(n){let R=s+=v;n(R)}c.enqueue(new Uint8Array(d))}catch(l){throw a(l),l}},cancel(c){return a(c),i.return()}},{highWaterMark:2})},Ru=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,u$=(e,t,n)=>t+2<n&&Ru(e.charCodeAt(t+1))&&Ru(e.charCodeAt(t+2));function d$(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let o=r.length;const a=r.length;for(let O=0;O<a;O++)if(r.charCodeAt(O)===37&&O+2<a){const $=r.charCodeAt(O+1),P=r.charCodeAt(O+2);Ru($)&&Ru(P)&&(o-=2,O+=2)}let c=0,l=a-1;const d=O=>O>=2&&r.charCodeAt(O-2)===37&&r.charCodeAt(O-1)===51&&(r.charCodeAt(O)===68||r.charCodeAt(O)===100);l>=0&&(r.charCodeAt(l)===61?(c++,l--):d(l)&&(c++,l-=3)),c===1&&l>=0&&(r.charCodeAt(l)===61||d(l))&&c++;const R=Math.floor(o/4)*3-(c||0);return R>0?R:0}let s=0;for(let o=0,a=r.length;o<a;o++){const c=r.charCodeAt(o);if(c===37&&u$(r,o,a))s+=1,o+=2;else if(c<128)s+=1;else if(c<2048)s+=2;else if(c>=55296&&c<=56319&&o+1<a){const l=r.charCodeAt(o+1);l>=56320&&l<=57343?(s+=4,o++):s+=3}else s+=3}return s}const nm="1.18.1",wb=64*1024,{isFunction:xc}=Ie,h$=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),_b=e=>{if(!Ie.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},Sb=(e,...t)=>{try{return!!e(...t)}catch{return!1}},f$=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},p$=e=>{const t=Ie.global!==void 0&&Ie.global!==null?Ie.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=Ie.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:i,Request:s,Response:o}=e,a=i?xc(i):typeof fetch=="function",c=xc(s),l=xc(o);if(!a)return!1;const d=a&&xc(n),v=a&&(typeof r=="function"?(C=>N=>C.encode(N))(new r):async C=>new Uint8Array(await new s(C).arrayBuffer())),R=c&&d&&Sb(()=>{let C=!1;const N=new s(dn.origin,{body:new n,method:"POST",get duplex(){return C=!0,"half"}}),x=N.headers.has("Content-Type");return N.body!=null&&N.body.cancel(),C&&!x}),O=l&&d&&Sb(()=>Ie.isReadableStream(new o("").body)),$={stream:O&&(C=>C.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(C=>{!$[C]&&($[C]=(N,x)=>{let S=N&&N[C];if(S)return S.call(N);throw new Be(`Response type '${C}' is not supported`,Be.ERR_NOT_SUPPORT,x)})});const P=async C=>{if(C==null)return 0;if(Ie.isBlob(C))return C.size;if(Ie.isSpecCompliantForm(C))return(await new s(dn.origin,{method:"POST",body:C}).arrayBuffer()).byteLength;if(Ie.isArrayBufferView(C)||Ie.isArrayBuffer(C))return C.byteLength;if(Ie.isURLSearchParams(C)&&(C=C+""),Ie.isString(C))return(await v(C)).byteLength},T=async(C,N)=>{const x=Ie.toFiniteNumber(C.getContentLength());return x??P(N)};return async C=>{let{url:N,method:x,data:S,signal:b,cancelToken:p,timeout:g,onDownloadProgress:u,onUploadProgress:y,responseType:m,headers:I,withCredentials:_="same-origin",fetchOptions:h,maxContentLength:f,maxBodyLength:w}=kw(C);const E=Ie.isNumber(f)&&f>-1,k=Ie.isNumber(w)&&w>-1,L=H=>Ie.hasOwnProp(C,H)?C[H]:void 0;let M=i||fetch;m=m?(m+"").toLowerCase():"text";let B=s$([b,p&&p.toAbortSignal()],g),j=null;const z=B&&B.unsubscribe&&(()=>{B.unsubscribe()});let Q,D=null;const K=()=>new Be("Request body larger than maxBodyLength limit",Be.ERR_BAD_REQUEST,C,j);try{let H;const A=L("auth");if(A){const se=Ie.getSafeProp(A,"username")||"",he=Ie.getSafeProp(A,"password")||"";H={username:se,password:he}}if(f$(N)){const se=new URL(N,dn.origin);if(!H&&(se.username||se.password)){const he=_b(se.username),ie=_b(se.password);H={username:he,password:ie}}(se.username||se.password)&&(se.username="",se.password="",N=se.href)}if(H&&(I.delete("authorization"),I.set("Authorization","Basic "+btoa(h$((H.username||"")+":"+(H.password||""))))),E&&typeof N=="string"&&N.startsWith("data:")&&d$(N)>f)throw new Be("maxContentLength size of "+f+" exceeded",Be.ERR_BAD_RESPONSE,C,j);if(k&&x!=="get"&&x!=="head"){const se=await P(S);if(typeof se=="number"&&isFinite(se)&&(Q=se,se>w))throw K()}const W=k&&(Ie.isReadableStream(S)||Ie.isStream(S)),F=(se,he,ie)=>Ab(se,wb,oe=>{if(k&&oe>w)throw D=K();he&&he(oe)},ie);if(R&&x!=="get"&&x!=="head"&&(y||W)){if(Q=Q??await T(I,S),Q!==0||W){let se=new s(N,{method:"POST",body:S,duplex:"half"}),he;if(Ie.isFormData(S)&&(he=se.headers.get("content-type"))&&I.setContentType(he),se.body){const[ie,oe]=y&&bb(Q,ku(vb(y)))||[];S=F(se.body,ie,oe)}}}else if(W&&!c&&d&&x!=="get"&&x!=="head")S=F(S);else if(W&&c&&!R&&x!=="get"&&x!=="head")throw new Be("Stream request bodies are not supported by the current fetch implementation",Be.ERR_NOT_SUPPORT,C,j);Ie.isString(_)||(_=_?"include":"omit");const U=c&&"credentials"in s.prototype;if(Ie.isFormData(S)){const se=I.getContentType();se&&/^multipart\/form-data/i.test(se)&&!/boundary=/i.test(se)&&I.delete("content-type")}I.set("User-Agent","axios/"+nm,!1);const Y={...h,signal:B,method:x.toUpperCase(),headers:bw(I.normalize()),body:S,duplex:"half",credentials:U?_:void 0};j=c&&new s(N,Y);let ee=await(c?M(j,h):M(N,Y));const X=_n.from(ee.headers);if(E){const se=Ie.toFiniteNumber(X.getContentLength());if(se!=null&&se>f)throw new Be("maxContentLength size of "+f+" exceeded",Be.ERR_BAD_RESPONSE,C,j)}const q=O&&(m==="stream"||m==="response");if(O&&ee.body&&(u||E||q&&z)){const se={};["status","statusText","headers"].forEach(be=>{se[be]=ee[be]});const he=Ie.toFiniteNumber(X.getContentLength()),[ie,oe]=u&&bb(he,ku(vb(u),!0))||[];let de=0;const me=be=>{if(E&&(de=be,de>f))throw new Be("maxContentLength size of "+f+" exceeded",Be.ERR_BAD_RESPONSE,C,j);ie&&ie(be)};ee=new o(Ab(ee.body,wb,me,()=>{oe&&oe(),z&&z()}),se)}m=m||"text";let ne=await $[Ie.findKey($,m)||"text"](ee,C);if(E&&!O&&!q){let se;if(ne!=null&&(typeof ne.byteLength=="number"?se=ne.byteLength:typeof ne.size=="number"?se=ne.size:typeof ne=="string"&&(se=typeof r=="function"?new r().encode(ne).byteLength:ne.length)),typeof se=="number"&&se>f)throw new Be("maxContentLength size of "+f+" exceeded",Be.ERR_BAD_RESPONSE,C,j)}return!q&&z&&z(),await new Promise((se,he)=>{xw(se,he,{data:ne,headers:_n.from(ee.headers),status:ee.status,statusText:ee.statusText,config:C,request:j})})}catch(H){if(z&&z(),B&&B.aborted&&B.reason instanceof Be){const A=B.reason;throw A.config=C,j&&(A.request=j),H!==A&&Object.defineProperty(A,"cause",{__proto__:null,value:H,writable:!0,enumerable:!1,configurable:!0}),A}if(D)throw j&&!D.request&&(D.request=j),D;if(H instanceof Be)throw j&&!H.request&&(H.request=j),H;if(H&&H.name==="TypeError"&&/Load failed|fetch/i.test(H.message)){const A=new Be("Network Error",Be.ERR_NETWORK,C,j,H&&H.response);throw Object.defineProperty(A,"cause",{__proto__:null,value:H.cause||H,writable:!0,enumerable:!1,configurable:!0}),A}throw Be.from(H,H&&H.code,C,j,H&&H.response)}}},g$=new Map,Rw=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:i}=t,s=[r,i,n];let o=s.length,a=o,c,l,d=g$;for(;a--;)c=s[a],l=d.get(c),l===void 0&&d.set(c,l=a?new Map:p$(t)),d=l;return l};Rw();const rm={http:TP,xhr:o$,fetch:{get:Rw}};Ie.forEach(rm,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const Eb=e=>`- ${e}`,m$=e=>Ie.isFunction(e)||e===null||e===!1;function y$(e,t){e=Ie.isArray(e)?e:[e];const{length:n}=e;let r,i;const s={};for(let o=0;o<n;o++){r=e[o];let a;if(i=r,!m$(r)&&(i=rm[(a=String(r)).toLowerCase()],i===void 0))throw new Be(`Unknown adapter '${a}'`);if(i&&(Ie.isFunction(i)||(i=i.get(t))))break;s[a||"#"+o]=i}if(!i){const o=Object.entries(s).map(([c,l])=>`adapter ${c} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=n?o.length>1?`since : 8`+o.map(Eb).join(` 9`):" "+Eb(o[0]):"as no adapter specified";throw new Be("There is no suitable adapter to dispatch the request "+a,Be.ERR_NOT_SUPPORT)}return i}const Lw={getAdapter:y$,adapters:rm};function Nh(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Yl(null,e)}function xb(e){return Nh(e),e.headers=_n.from(e.headers),e.data=Oh.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Lw.getAdapter(e.adapter||Kl.adapter,e)(e).then(function(r){Nh(e),e.response=r;try{r.data=Oh.call(e,e.transformResponse,r)}finally{delete e.response}return r.headers=_n.from(r.headers),r},function(r){if(!Ew(r)&&(Nh(e),r&&r.response)){e.response=r.response;try{r.response.data=Oh.call(e,e.transformResponse,r.response)}finally{delete e.response}r.response.headers=_n.from(r.response.headers)}return Promise.reject(r)})}const Id={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Id[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Tb={};Id.transitional=function(t,n,r){function i(s,o){return"[Axios v"+nm+"] Transitional option '"+s+"'"+o+(r?". "+r:"")}return(s,o,a)=>{if(t===!1)throw new Be(i(o," has been removed"+(n?" in "+n:"")),Be.ERR_DEPRECATED);return n&&!Tb[o]&&(Tb[o]=!0),t?t(s,o,a):!0}};Id.spelling=function(t){return(n,r)=>!0};function b$(e,t,n){if(typeof e!="object"||e===null)throw new Be("options must be an object",Be.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const s=r[i],o=Object.prototype.hasOwnProperty.call(t,s)?t[s]:void 0;if(o){const a=e[s],c=a===void 0||o(a,s,e);if(c!==!0)throw new Be("option "+s+" must be "+c,Be.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Be("Unknown option "+s,Be.ERR_BAD_OPTION)}}const eu={assertOptions:b$,validators:Id},gn=eu.validators;let xo=class{constructor(t){this.defaults=t||{},this.interceptors={request:new mb,response:new mb}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const s=(()=>{if(!i.stack)return"";const o=i.stack.indexOf(` 10`);return o===-1?"":i.stack.slice(o+1)})();try{if(!r.stack)r.stack=s;else if(s){const o=s.indexOf(` 11`),a=o===-1?-1:s.indexOf(` 12`,o+1),c=a===-1?"":s.slice(a+1);String(r.stack).endsWith(c)||(r.stack+=` 13`+s)}}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Mo(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:s}=n;r!==void 0&&eu.assertOptions(r,{silentJSONParsing:gn.transitional(gn.boolean),forcedJSONParsing:gn.transitional(gn.boolean),clarifyTimeoutError:gn.transitional(gn.boolean),legacyInterceptorReqResOrdering:gn.transitional(gn.boolean),advertiseZstdAcceptEncoding:gn.transitional(gn.boolean),validateStatusUndefinedResolves:gn.transitional(gn.boolean)},!1),i!=null&&(Ie.isFunction(i)?n.paramsSerializer={serialize:i}:eu.assertOptions(i,{encode:gn.function,serialize:gn.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),eu.assertOptions(n,{baseUrl:gn.spelling("baseURL"),withXsrfToken:gn.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=s&&Ie.merge(s.common,s[n.method]);s&&Ie.forEach(["delete","get","head","post","put","patch","query","common"],$=>{delete s[$]}),n.headers=_n.concat(o,s);const a=[];let c=!0;this.interceptors.request.forEach(function(P){if(typeof P.runWhen=="function"&&P.runWhen(n)===!1)return;c=c&&P.synchronous;const T=n.transitional||em;T&&T.legacyInterceptorReqResOrdering?a.unshift(P.fulfilled,P.rejected):a.push(P.fulfilled,P.rejected)});const l=[];this.interceptors.response.forEach(function(P){l.push(P.fulfilled,P.rejected)});let d,v=0,R;if(!c){const $=[xb.bind(this),void 0];for($.unshift(...a),$.push(...l),R=$.length,d=Promise.resolve(n);v<R;)d=d.then($[v++],$[v++]);return d}R=a.length;let O=n;for(;v<R;){const $=a[v++],P=a[v++];try{O=$(O)}catch(T){P.call(this,T);break}}try{d=xb.call(this,O)}catch($){return Promise.reject($)}for(v=0,R=l.length;v<R;)d=d.then(l[v++],l[v++]);return d}getUri(t){t=Mo(this.defaults,t);const n=Tw(t.baseURL,t.url,t.allowAbsoluteUrls,t);return ww(n,t.params,t.paramsSerializer)}};Ie.forEach(["delete","get","head","options"],function(t){xo.prototype[t]=function(n,r){return this.request(Mo(r||{},{method:t,url:n,data:r&&Ie.hasOwnProp(r,"data")?r.data:void 0}))}});Ie.forEach(["post","put","patch","query"],function(t){function n(r){return function(s,o,a){return this.request(Mo(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:o}))}}xo.prototype[t]=n(),t!=="query"&&(xo.prototype[t+"Form"]=n(!0))});let v$=class Ow{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(i=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](i);r._listeners=null}),this.promise.then=i=>{let s;const o=new Promise(a=>{r.subscribe(a),s=a}).then(i);return o.cancel=function(){r.unsubscribe(s)},o},t(function(s,o,a){r.reason||(r.reason=new Yl(s,o,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Ow(function(i){t=i}),cancel:t}}};function C$(e){return function(n){return e.apply(null,n)}}function I$(e){return Ie.isObject(e)&&e.isAxiosError===!0}const lp={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
13alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(lp).forEach(([e,t])=>{lp[t]=e});function Nw(e){const t=new xo(e),n=cw(xo.prototype.request,t);return Ie.extend(n,xo.prototype,t,{allOwnKeys:!0}),Ie.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Nw(Mo(e,i))},n}const Zt=Nw(Kl);Zt.Axios=xo;Zt.CanceledError=Yl;Zt.CancelToken=v$;Zt.isCancel=Ew;Zt.VERSION=nm;Zt.toFormData=Cd;Zt.AxiosError=Be;Zt.Cancel=Zt.CanceledError;Zt.all=function(t){return Promise.all(t)};Zt.spread=C$;Zt.isAxiosError=I$;Zt.mergeConfig=Mo;Zt.AxiosHeaders=_n;Zt.formToJSON=e=>Sw(Ie.isHTMLForm(e)?new FormData(e):e);Zt.getAdapter=Lw.getAdapter;Zt.HttpStatusCode=lp;Zt.default=Zt;const{Axios:ose,AxiosError:sse,CanceledError:ase,isCancel:lse,CancelToken:cse,VERSION:use,all:dse,Cancel:hse,isAxiosError:fse,spread:pse,toFormData:gse,AxiosHeaders:mse,HttpStatusCode:yse,formToJSON:bse,getAdapter:vse,mergeConfig:Cse,create:Ise}=Zt;class A${constructor(){this.axios=Zt,this.client=null,this.consumerSecret=null,this.authorizationToken=null}setConsumerSecret(t){this.consumerSecret=t,this.setClientHeaders()}setAuthorizationToken(t){this.authorizationToken=t,this.setClientHeaders()}setLanguageParam(t){this.lang=t}createClient(t){this.client=this.axios.create({...t}),this.client.interceptors.request.use(this.requestInterceptor.bind(this),this.requestInterceptorError.bind(this)),this.client.interceptors.response.use(this.responseInterceptor.bind(this),this.responseInterceptorError.bind(this)),this.setClientHeaders()}setClientHeaders(){if(!this.client)return;const t=this.client.defaults.headers;this.consumerSecret?t["X-Consumer-Key"]=this.consumerSecret:delete t["X-Consumer-Key"],this.authorizationToken?t.Authorization=`Token ${this.authorizationToken}`:delete t.Authorization}addClientHeader(t,n){const r=this.client.defaults.headers;r[t]=n}removeClientHeader(t){const n=this.client.defaults.headers;delete n[t]}requestInterceptor(t){const n=t?.params?.lang||this.lang||"en";return t.params=t.params||{},t.params.trans=n,delete t.params.lang,t}requestInterceptorError(t){return Promise.reject(t)}responseInterceptor(t){return t}responseInterceptorError(t){return t.message==="Network Error"?Promise.reject({networkError:!0}):(this._isInvalidSessionResponse(t.response)&&(t.response.sessionExpired=!0),Promise.reject(t.response))}_isInvalidSessionResponse(t){if(t?.status===401&&typeof t.data=="object"){const n=t?.data?.errors?.[0]?.code;if(n==="SESSION_EXPIRED"||n==="UNAUTHENTICATED"||t?.data?.message==="Invalid Session"||t?.data?.message==="Unable to authenticate. Please login and try again")return!0}return!1}}const Oe=new A$,Pw=6048e5,w$=864e5,$w=6e4,Mw=36e5,kb=Symbol.for("constructDateFrom");function yi(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&kb in e?e[kb](t):e instanceof Date?new e.constructor(t):new Date(t)}function pn(e,t){return yi(t||e,e)}let _$={};function Ad(){return _$}function Al(e,t){const n=Ad(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=pn(e,t?.in),s=i.getDay(),o=(s<r?7:0)+s-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function Lu(e,t){return Al(e,{...t,weekStartsOn:1}
13)}function Dw(e,t){const n=pn(e,t?.in),r=n.getFullYear(),i=yi(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const s=Lu(i),o=yi(n,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);const a=Lu(o);return n.getTime()>=s.getTime()?r+1:n.getTime()>=a.getTime()?r:r-1}function Rb(e){const t=pn(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function S$(e,...t){const n=yi.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function Lb(e,t){const n=pn(e,t?.in);return n.setHours(0,0,0,0),n}function E$(e,t,n){const[r,i]=S$(n?.in,e,t),s=Lb(r),o=Lb(i),a=+s-Rb(s),c=+o-Rb(o);return Math.round((a-c)/w$)}function x$(e,t){const n=Dw(e,t),r=yi(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Lu(r)}function T$(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Ou(e){return!(!T$(e)&&typeof e!="number"||isNaN(+pn(e)))}function k$(e,t){const n=pn(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const R$={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},L$=(e,t,n)=>{let r;const i=R$[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Ph(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const O$={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},N$={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},P$={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},$$={date:Ph({formats:O$,defaultWidth:"full"}),time:Ph({formats:N$,defaultWidth:"full"}),dateTime:Ph({formats:P$,defaultWidth:"full"})},M$={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},D$=(e,t,n,r)=>M$[e];function Na(e){return(t,n)=>{const r=n?.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,a=n?.width?String(n.width):o;i=e.formattingValues[a]||e.formattingValues[o]}else{const o=e.defaultWidth,a=n?.width?String(n.width):e.defaultWidth;i=e.values[a]||e.values[o]}const s=e.argumentCallback?e.argumentCallback(t):t;return i[s]}}const B$={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},F$={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},H$={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},W$={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},V$={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},G$={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},U$=(e,t)=>
13{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},j$={ordinalNumber:U$,era:Na({values:B$,defaultWidth:"wide"}),quarter:Na({values:F$,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Na({values:H$,defaultWidth:"wide"}),day:Na({values:W$,defaultWidth:"wide"}),dayPeriod:Na({values:V$,defaultWidth:"wide",formattingValues:G$,defaultFormattingWidth:"wide"})};function Pa(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],s=t.match(i);if(!s)return null;const o=s[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(a)?Z$(a,v=>v.test(o)):z$(a,v=>v.test(o));let l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;const d=t.slice(o.length);return{value:l,rest:d}}}function z$(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Z$(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function K$(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],s=t.match(e.parsePattern);if(!s)return null;let o=e.valueCallback?e.valueCallback(s[0]):s[0];o=n.valueCallback?n.valueCallback(o):o;const a=t.slice(i.length);return{value:o,rest:a}}}const Y$=/^(\d+)(th|st|nd|rd)?/i,X$=/\d+/i,J$={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},q$={any:[/^b/i,/^(a|c)/i]},Q$={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},eM={any:[/1/i,/2/i,/3/i,/4/i]},tM={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},nM={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},rM={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},iM={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},oM={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},sM={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},aM={ordinalNumber:K$({matchPattern:Y$,parsePattern:X$,valueCallback:e=>parseInt(e,10)}),era:Pa({matchPatterns:J$,defaultMatchWidth:"wide",parsePatterns:q$,defaultParseWidth:"any"}),quarter:Pa({matchPatterns:Q$,defaultMatchWidth:"wide",parsePatterns:eM,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Pa({matchPatterns:tM,defaultMatchWidth:"wide",parsePatterns:nM,defaultParseWidth:"any"}),day:Pa({matchPatterns:rM,defaultMatchWidth:"wide",parsePatterns:iM,defaultParseWidth:"any"}),dayPeriod:Pa({matchPatterns:oM,defaultMatchWidth:"any",parsePatterns:sM,defaultParseWidth:"any"})},lM={code:"en-US",formatDistance:L$,formatLong:$$,formatRelative:D$,localize:j$,match:aM,options:{weekStartsOn:0,firstWeekContainsDate:1}};function cM(e,t){const n=pn(e,t?.in);return E$(n,k$(n))+1}function uM(e,t){const n=pn(e,t?.in),r=+Lu(n)-+x$(n);return Math.round(r/Pw)+1}function Bw(e,t){const n=pn(e,t?.in),r=n.getFullYear(),i=Ad(),s=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,o=yi(t?.in||e,0);o.setFullYear(r+1,0,s),o.setHours(0,0,0,0);const a=Al(o,t),c=yi(t?.in||e,0);c.setFullYear(r,0,s),c.setHours(0,0,0,0);const l=Al(c,t);return+n>=+a?r+1:+n>=+l?r:r-1}function dM(e,t){const n=Ad(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=Bw(e,t),s=yi(t?.in||e,0);return s.setFullYear(i,0,r),s.setHours(0,0,0,0),Al(s,t)}function hM(e,t){const n=pn(e,t?.in),r=+Al(n,t)-+dM(n,t);return Math.round(r/Pw)+1}function Ct(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Si={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Ct(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Ct(n+1,2)},d(e,t){return Ct(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Ct(e.getHours()%12||12,t.length)},H(e,t){return Ct(e.getHours(),t.length)},m(e,t){return Ct(e.getMinutes(),t.length)},s(e,t){return Ct(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return Ct(i,t.length)}},ns={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Ob={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return Si.y(e,t)},Y:function(e,t,n,r){const i=Bw(e,r),s=i>0?i:1-i;if(t==="YY"){const o=s%100;return Ct(o,2)}return t==="Yo"?n.ordinalNumber(s,{unit:"year"}):Ct(s,t.length)},R:function(e,t){const n=Dw(e);return Ct(n,t.length)},u:function(e,t){const n=e.getFullYear();return Ct(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Ct(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Ct(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Si.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Ct(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=hM(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):Ct(i,t.length)},I:function(e,t,n){const r=uM(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Ct(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Si.d(e,t)},D:function(e,t,n){const r=cM(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Ct(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),s=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return Ct(s,2);case"eo":return n.ordinalNumber(s,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),s=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return Ct(s,t.length);case"co":return n.ordinalNumber(s,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return Ct(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=ns.noon:r===0?i=ns.midnight:i=r/12>
13=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=ns.evening:r>=12?i=ns.afternoon:r>=4?i=ns.morning:i=ns.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Si.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Si.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Ct(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Ct(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Si.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Si.s(e,t)},S:function(e,t){return Si.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Pb(r);case"XXXX":case"XX":return mo(r);default:return mo(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Pb(r);case"xxxx":case"xx":return mo(r);default:return mo(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Nb(r,":");default:return"GMT"+mo(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Nb(r,":");default:return"GMT"+mo(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return Ct(r,t.length)},T:function(e,t,n){return Ct(+e,t.length)}};function Nb(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),s=r%60;return s===0?n+String(i):n+String(i)+t+Ct(s,2)}function Pb(e,t){return e%60===0?(e>0?"-":"+")+Ct(Math.abs(e)/60,2):mo(e,t)}function mo(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Ct(Math.trunc(r/60),2),s=Ct(r%60,2);return n+i+t+s}const $b=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},Fw=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},fM=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return $b(e,t);let s;switch(r){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",$b(r,t)).replace("{{time}}",Fw(i,t))},pM={p:Fw,P:fM},gM=/^D+$/,mM=/^Y+$/,yM=["D","DD","YY","YYYY"];function bM(e){return gM.test(e)}function vM(e){return mM.test(e)}function CM(e,t,n){const r=IM(e,t,n);if(yM.includes(e))throw new RangeError(r)}function IM(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const AM=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,wM=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,_M=/^'([^]*?)'?$/,SM=/''/g,EM=/[a-zA-Z]/;function xM(e,t,n){const r=Ad(),i=r.locale??lM,s=r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=pn(e,n?.in);if(!Ou(a))throw new RangeError("Invalid time value");let c=t.match(wM).map(d=>{const v=d[0];if(v==="p"||v==="P"){const R=pM[v];return R(d,i.formatLong)}return d}).join("").match(AM).map(d=>{if(d==="''")return{isToken:!1,value:"'"};const v=d[0];if(v==="'")return{isToken:!1,value:TM(d)};if(Ob[v])return{isToken:!0,value:d};
13if(v.match(EM))throw new RangeError("Format string contains an unescaped latin alphabet character `"+v+"`");return{isToken:!1,value:d}});i.localize.preprocessor&&(c=i.localize.preprocessor(a,c));const l={firstWeekContainsDate:s,weekStartsOn:o,locale:i};return c.map(d=>{if(!d.isToken)return d.value;const v=d.value;(vM(v)||bM(v))&&CM(v,t,String(e));const R=Ob[v[0]];return R(a,v,i.localize,l)}).join("")}function TM(e){const t=e.match(_M);return t?t[1].replace(SM,"'"):e}function Mb(e,t){return+pn(e)>+pn(t)}function Db(e,t){return+pn(e)<+pn(t)}function cp(e,t){const n=()=>yi(t?.in,NaN),i=OM(e);let s;if(i.date){const l=NM(i.date,2);s=PM(l.restDateString,l.year)}if(!s||isNaN(+s))return n();const o=+s;let a=0,c;if(i.time&&(a=$M(i.time),isNaN(a)))return n();if(i.timezone){if(c=MM(i.timezone),isNaN(c))return n()}else{const l=new Date(o+a),d=pn(0,t?.in);return d.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),d.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),d}return pn(o+a+c,t?.in)}const Tc={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},kM=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,RM=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,LM=/^([+-])(\d{2})(?::?(\d{2}))?$/;function OM(e){const t={},n=e.split(Tc.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Tc.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Tc.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const i=Tc.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function NM(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const i=r[1]?parseInt(r[1]):null,s=r[2]?parseInt(r[2]):null;return{year:s===null?i:s*100,restDateString:e.slice((r[1]||r[2]).length)}}function PM(e,t){if(t===null)return new Date(NaN);const n=e.match(kM);if(!n)return new Date(NaN);const r=!!n[4],i=$a(n[1]),s=$a(n[2])-1,o=$a(n[3]),a=$a(n[4]),c=$a(n[5])-1;if(r)return WM(t,a,c)?DM(t,a,c):new Date(NaN);{const l=new Date(0);return!FM(t,s,o)||!HM(t,i)?new Date(NaN):(l.setUTCFullYear(t,s,Math.max(i,o)),l)}}function $a(e){return e?parseInt(e):1}function $M(e){const t=e.match(RM);if(!t)return NaN;const n=$h(t[1]),r=$h(t[2]),i=$h(t[3]);return VM(n,r,i)?n*Mw+r*$w+i*1e3:NaN}function $h(e){return e&&parseFloat(e.replace(",","."))||0}function MM(e){if(e==="Z")return 0;const t=e.match(LM);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return GM(r,i)?n*(r*Mw+i*$w):NaN}function DM(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const i=r.getUTCDay()||7,s=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+s),r}const BM=[31,null,31,30,31,30,31,31,30,31,30,31];function Hw(e){return e%400===0||e%4===0&&e%100!==0}function FM(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(BM[t]||(Hw(e)?29:28))}function HM(e,t){return t>=1&&t<=(Hw(e)?366:365)}function WM(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function VM(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function GM(e,t){return t>=0&&t<=59}function ps(e){return Object.prototype.toString.call(e).replace(/[\[\]]/g,"").replace(/object /,"").toLowerCase()}function Vi(e){if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map(Vi);if(e instanceof Date)return new Date(e.getTime());const t={};for(const n of Object.keys(e))t[n]=Vi(e[n]);return t}function Ww(e){return Object.entries(e).forEach(([t,n])=>{n?typeof e[t]=="object"&&(e[t]=Ww(e[t])):delete e[t]}),e}function up(e,t,n){return e&&(typeof t=="string"?up(e,t.split("."),n):t.length===1&&n!==void 0?(e[t[0]]=n,e[t[0]]):t.length===0?e:up(e[t[0]],t.slice(1),n))}function Bb(e,t){if(typeof t=="string")return t.split(".").reduce((n,r)=>{if(n)return n[r]},e)}class Vw{constructor(t){const n=Vi(t);this.map=n,this.config={map:n,invertedMap:Nu(Vi(n))}}mapProperties(t,n,r){if(r?n&&(r=Nu(Vi(r))):n?r=this.config.invertedMap:r=this.config.map,!t)return{};const i={};return Object.keys(r).forEach(s=>{let o;
13(t[s]!==void 0||ps(r[s])==="function")&&(ps(r[s])==="string"?i[r[s]]=t[s]:ps(r[s])==="object"?(o=s,r[s]._REMAP&&(o=r[s]._REMAP),t[s]!==null?i[o]=this.mapProperties(t[s],!1,r[s]):i[o]=null):ps(r[s])==="array"?(o=s,r[s][0]._REMAP&&(o=r[s][0]._REMAP),i[o]=[],Array.isArray(t?.[s])?t[s].forEach(a=>{i[o].push(this.mapProperties(a,!1,r[s][0]))}):i[o]=null):ps(r[s])==="function"&&r[s](t[s],t,!n)!==null&&(i[s]=r[s](t[s],t,!n)))}),i}}function Nu(e){const t={};return Object.keys(e).map(n=>{let r;const i=ps(e[n]);i==="string"?t[e[n]]=n:i==="object"?(r=n,e[n]._REMAP&&(r=e[n]._REMAP),delete e[n]._REMAP,t[r]=Nu(e[n]),t[r]._REMAP=n):i==="array"?(r=n,e[n][0]._REMAP&&(r=e[n][0]._REMAP),delete e[n][0]._REMAP,t[r]=[],t[r][0]=Nu(e[n][0]),t[r][0]._REMAP=n):i==="function"&&(t[n]=e[n])}),t}class He{constructor(t={},n={}){!n.metadata&&n.metadata!==null&&(n.metadata="metadata"),typeof n.metadata=="object"&&n.metadata!==null&&typeof t.metadata=="object"&&Object.keys(t.metadata).forEach(r=>{!n.metadata[r]&&n.metadata[r]!==null&&(n.metadata[r]=r)}),Object.defineProperty(this,"_rawProperties",{value:t,writable:!0,enumerable:!0,configurable:!0}),this.copyObjectToInstance(this.mapProperties(t,n))}mapProperties(t,n){let r=Vi(t);return Object.keys(n).length===0&&n.constructor===Object||(r=new Vw(n).mapProperties(t)),r}copyObjectToInstance(t){Object.keys(t).forEach(n=>{this[n]=t[n]})}mapDates(t){t.forEach(n=>{if(typeof n=="string")if(n.indexOf("[]")>-1){const r=n.split("[]"),i=Bb(this,r[0]);i&&i.forEach(s=>{this.mapDate(s,r[1])})}else this.mapDate(this,n)})}mapDate(t,n){if(typeof n!="string")return;const r=Bb(t,n);if(!r)return;const i=typeof r=="string"&&/^\d{4}-\d{2}-\d{2}/.test(r)?cp(r):new Date(r),s=Ou(i)?xM(i,"yyyy-MM-dd"):r;up(t,n,s)}mapPaginationMeta(t){this.copyObjectToInstance(this.mapProperties(t,{meta:{count:"count",num_pages:"numPages",page_number:"pageNumber",per_page:"perPage"},links:{next:"next",prev:"prev",url:"url"}}))}}class Xl extends He{constructor(t){const n={accepted:"accepted",content_type:"contentType",date_accepted:"dateAccepted",date_revised:"dateRevised",error:"error",revision_
13id:"revisionId",text:"text"};super(t,n),super.mapDates(["dateAccepted","dateRevised"]),this._type="AgreementsModel"}}const Mh={1e3:{code:"1000",message:"Invalid password token."},1001:{code:"1001",message:"Invalid user password, must be at least 8 characters long."},1002:{code:"1002",message:"Passwords do not match."},1003:{code:"1003",message:"Invalid user token"},1004:{code:"1004",message:"Invalid user data, must be object type."},1005:{code:"1005",message:"Invalid username, must be at least 6 characters long."},1006:{code:"1006",message:"Invalid email format."},1007:{code:"1007",message:"Username already exists."},1008:{code:"1008",message:"Email already exists."},1009:{code:"1009",message:"Invalid username or password."},1010:{code:"1010",message:"Email is required"},1011:{code:"1011",message:"Missing user preference."},1012:{code:"1012",message:"Email token is required."},1013:{code:"1013",message:"Invalid email token."},1014:{code:"1014",message:"User not found"},1015:{code:"1015",message:"Too many requests"},1016:{code:"1016",message:"Error decoding facebook profile."},1017:{code:"1017",message:"Missing facebook authentication user ID."},1018:{code:"1018",message:"Missing facebook profile."},1019:{code:"1019",message:"User must be registered."},1020:{code:"1020",message:"Invalid language."},1021:{code:"1021",message:"The username may contain only letters, numbers and @/./+/-/_ characters."},1022:{code:"1022",message:"Your login session has expired. Please logout and login again."},1023:{code:"1023",message:"This call is not allowed for this environment."},1024:{code:"1024",message:"Invalid username, must be less than 30 characters long."},1025:{code:"1025",message:"Missing new or old password."},1031:{code:"1031",message:"Account Locked"},1032:{code:"1032",message:"Invalid requires_password_reset"},1033:{code:"1033",message:"Invalid marketing language."},1034:{code:"1034",message:"Invalid marketing country."},1035:{code:"1035",message:"Invalid marketing language and country."},1040:{code:"1040",message:"Invalid cohort experiment"},1051:{code:"1051",message:"Experiment does not exist."},1055:{code:"1055",message:"Page out of bounds."},1070:{code:"1070",message:"Invalid viewer pin"},1071:{code:"1071",message:"Invalid age rating."},1072:{code:"1072",message:"Invalid TV rating."},1073:{code:"1073",message:"Password is too short"},1074:{code:"1074",message:"This password must not match any of the last 8 passwords used."},1075:{code:"1075",message:"Password is too similar to username, first/last name, or email"},1076:{code:"1076",message:"Password is too common"},1077:{code:"1077",message:"Password cannot contain only number"},1078:{code:"1078",message:"Password does not meet the requirements"},1079:{code:"1079",message:"Password was recently changed; try again later"},1085:{code:"1085",message:"Invalid confirmation token"},1086:{code:"1086",message:"Missing confirmation token"},1200:{code:"1200",message:"Invalid application config."},1201:{code:"1201",message:"Invalid country code."},1400:{code:"1400",message:"Device Linking Failed"},1401:{code:"1401",message:"Missing Short Code"},1402:{code:"1402",message:"Ensure this value has at most 5 characters"},1403:{code:"1403",message:"The code does not exist or has expired."},1404:{code:"1404",message:"User not linked"},1405:{code:"1405",message:"Device login failed"},1715:{code:"1715",message:"Invalid UUID"},1716:{code:"1716",message:"Invalid contentType"},1717:{code:"1717",message:"Invalid JWT token"},1718:{code:"1718",message:"Failed to parse JWT token"},1719:{code:"1719",message:"Insufficient rights"},1720:{code:"1720",message:"Invalid param value"},1721:{code:"1721",message:"Resource not found"},1722:{code:"1722",message:"Invalid bookType"},1723:{code:"1723",message:"Invalid startingBookIndex"},1724:{code:"1724",message:"Not found"},1725:{code:"1725",message:"JWT token is expired"},1800:{code:"1800",message:"Product not found"},1850:{code:"1850",message:"No Homepage Found"},1875:{code:"1875",message:"No Jsonbag Found"},1876:{code:"1876",message:"Invalid Jsonbag Slug"},1877:{code:"1877",message:"Invalid Jsonbag UUID"},1900:{code:"1900",message:"Invalid Form. One of first name, last name, gender, default_lang, day, month or year is required."},1901:{code:"1901",message:"Invalid user profile."},1902:{code:"1902",message:"Invalid date."},1903:{code:"1903",message:"Invalid marketing country."},1904:{code:"1904",message:"Invalid marketing language."},2e3:{code:"2000",message:"Invalid Collection Slug."},2001:{code:"2001",message:"Invalid Collection Type."},2002:{code:"2002",message:"Collection Id is not a supported parameter of this method."},2003:{code:"2003",message:"Collection Id or Type/Slug is required."},2004:{code:"2004",message:'"tag" is a required parameter.'},2005:{code:"2005",message:'"value" is a required parameter.'},2006:{code:"2006",message:"tag/value combination is not supported."},2007:{code:"2007",message:"Invalid Collection Uuid"},2008:{code:"2008",message:"Collection Uuid is required"},2100:{code:"2100",message:"Clip not Found"},2101:{code:"2101",message:"Invalid ClipId"},2102:{code:"2102",message:"Invalid page number"},2103:{code:"2103",message:"Invalid object type"},2200:{code:"2200",message:"Not authorized"},2201:{code:"2201",message:"Invalid title"},2202:{code:"2202",message:"Invalid user list uuid"},2203:{code:"2203",message:"Invalid content type"},2204:{code:"2204",message:"Invalid content uuid"},2205:{code:"2205",message:"Content uuid already exists"},2206:{code:"2206",message:"Invalid user lists guid"},2207:{code:"2207",message:"A user cannot follow their own list"},2999:{code:"2999",message:"Invalid subscription guid or payment method guid"},3e3:{code:"3000",message:"Invalid subscription guid"},3001:{code:"3001",message:"Invalid payment method guid"},3002:{code:"3002",message:"Invalid product id"},3003:{code:"3003",message:"User already has premium plan"},3004:{code:"3004",message:"Invalid free trial days"},3005:{code:"3005",message:"Invalid reference url"},3006:{code:"3006",message:"Subscription transaction declined"},3007:{code:"3007",message:"Merchant nonce is required"},3008:{code:"3008",message:"Unable to save payment method"},3009:{code:"3009",message:"PromoCode matching query does not exist"},3010:{code:"3010",message:"User is not premium"},3011:{code:"3011",message:"unsupported merchant type"},3012:{code:"3012",message:"The promo code does not exist"}
13,3013:{code:"3013",message:"The promo code was used the maximum number of times provisioned"},3014:{code:"3014",message:"The promo code has expired"},3015:{code:"3015",message:"The promo code is invalid"},3016:{code:"3016",message:"Unable to disable payment method, feature not available."},3017:{code:"3017",message:"Subscription status is already in a final state"},3018:{code:"3018",message:"Unable to change product, feature not available"},3019:{code:"3019",message:"Unable to change payment method, feature not available"},3020:{code:"3020",message:"The promo code has already been applied"},3021:{code:"3021",message:"braintree_nonce is required"},3022:{code:"3022",message:"Invalid merchantType"},3023:{code:"3023",message:"Promo code not found"},3024:{code:"3024",message:"User needs to cancel before using this promo code"},3025:{code:"3025",message:"User needs to be in a paid state to redeem this code"},3026:{code:"3026",message:"External propery not supplied"},3027:{code:"3027",message:"Promo code product unavailable"},3028:{code:"3028",message:"Promo code is not EST"},3029:{code:"3029",message:"Invalid data in est promo code redemption history request"},3030:{code:"3030",message:"Invalid page for est promo code redemption history"},3031:{code:"3031",message:"Invalid page size for est promo code redemption history"},3032:{code:"3032",message:"Invalid sort order for est promo code redemption history"},3033:{code:"3033",message:"Tax rate not found "},3034:{code:"3034",message:"Failed to create subscription"},3040:{code:"3040",message:"Missing either paymentmethod_token or paymentmethod_guid"},3041:{code:"3041",message:"Invalid start_date"},3042:{code:"3042",message:"Missing or invalid purchase email"},3043:{code:"3043",message:"Invalid product_id"},3044:{code:"3044",message:"Invalid payment method"},3045:{code:"3045",message:"Failed to create gift"},3046:{code:"3046",message:"Invalid reciever email"},3047:{code:"3047",message:"Invalid reciever name"},3048:{code:"3048",message:"Invalid sender email"},3049:{code:"3049",message:"Invalid sender name"},3050:{code:"3050",message:"Insufficient preview credits"},3051:{code:"3051",message:"Invalid preview token"},3052:{code:"3052",message:"Invalid series id"},3053:{code:"3053",message:"Invalid episode id"},3054:{code:"3054",message:"Transaction failed"},5001:{code:"5001",message:"API Not Found"},5002:{code:"5002",message:"Invalid Resource Id"},5004:{code:"5004",message:"Parameter page must be an int"},5008:{code:"5008",message:"Invalid parameter value"},5100:{code:"5100",message:"No terms provisioned"},5101:{code:"5101",message:"Missing revision id"},5102:{code:"5102",message:"Invalid revision id"},6e3:{code:"6000",message:"Required field missing",field:""},6001:{code:"6001",message:"Invalid field format",field:""},6002:{code:"6002",message:"Invalid value",field:"",values:[]},6003:{code:"6003",message:"Value too short",field:"",minLength:0},6004:{code:"6004",message:"Value too long",field:"",maxLength:0},6005:{code:"6005",message:"Invalid type",field:""},6500:{code:"6500",message:"Failed to load encrypted image"},6501:{code:"6501",message:"Failed to find page matching url"},6502:{code:"6502",message:"Failed to decrypt image"},6503:{code:"6503",message:"Failed to load unencrypted image"},7e3:{code:"7000",message:"Oauth provider is not configured."},7500:{code:"7500",message:"The user could not be found"},7501:{code:"7501",message:"The token provided was invalid"},7502:{code:"7502",message:"The request body was malformed or not JSON"},7503:{code:"7503",message:"Missing the token in the POST body"},7504:{code:"7504",message:"Email verification resend rate limit hit"}
13,7700:{code:"7700",message:"The avatar was invalid, corrupted, missing, or otherwise unusable."},7701:{code:"7701",message:"Image exceeds max dimensions"},7702:{code:"7702",message:"Uploaded image filesize was too large"},7750:{code:"7750",message:"Must Be Admin"},7751:{code:"7751",message:"Not Found"},7752:{code:"7752",message:"Invalid Data"},7800:{code:"7800",message:"The banner was invalid, corrupted, missing, or otherwise unusable."},7801:{code:"7801",message:"Image exceeds max dimensions"},7802:{code:"7802",message:"Uploaded image filesize was too large"},7900:{code:"7900",message:"Invalid type"},8e3:{code:"8000",message:"Invalid permissions type."},8100:{code:"8100",message:"There was invalid data within the request"},8101:{code:"8101",message:"Invalid page parameter"},8102:{code:"8102",message:"Invalid page size parameter"},8103:{code:"8103",message:"Invalid order parameter"},8104:{code:"8104",message:"Invalid inactive parameter"},8105:{code:"8105",message:"Invalid model parameter"},8106:{code:"8106",message:"Invalid source parameter"},8200:{code:"8200",message:"User not registered with rewards program."},9001:{code:"9001",message:"Required Field Missing."},9002:{code:"9002",message:"Must include user token"},9003:{code:"9003",message:"Page size invalid."},9004:{code:"9004",message:"Page count invalid."},9005:{code:"9005",message:"Consumer not found."},9998:{code:"9998",message:"Network error."},9999:{code:"9999",message:"Unknown error."}};class xe{constructor(){this.errors=[]}log(t,n){const r={code:t,raw:n};this.errors.push(r)}hasErrors(){return this.errors.length>0}clearErrors(){this.errors=[]}getErrors(){return this.errors.map(n=>{const r=Vi(Mh[n.code]||Mh[parseInt(n.code)+5e3]||Mh[9999]);return n.raw!==void 0&&(r.raw=n.raw),r})}resolve(t){this.hasErrors()||this.logDefaultErrors(t);const n=this.getErrors();return this.clearErrors(),n}logDefaultErrors(t){t&&t.sessionExpired?this.log(1003,t):t&&t.networkError?this.log(9998,t):Array.isArray(t)?t.forEach(n=>{this.logDefaultErrors(n)}):t&&t.data&&t.data.errors&&Array.isArray(t.data.errors)?t.data.errors.forEach(n=>{this.logDefaultErrors(n)}):t&&t.code&&t.raw?this.logDefaultErrors(t.raw):t&&t.code===11?this.log(5001,t):this.log(9999,t)}}function UM(e={}){const t={revision_id:e.revisionId};return e.flavor&&(t.flavor=e.flavor),new Promise((n,r)=>{function i(o){const a=new Xl(o.data);n(a)}function s(o){const a=new xe;switch(o.data?.error){case"No terms provisioned":a.log(5100);break;case"Missing required revision id in POST":a.log(5101);break;case"Failed to parse the revision id in the POST body as a UUID":a.log(5102);break;case"Trying to accept old or non-existant Privacy Policy!":a.log(5102);break}r(a.resolve(o))}Oe.client.post("/api/agreements/privacy",t).then(i).catch(s)})}function jM(e={}){const t={revision_id:e.revisionId},n=e.anon?"/api/agreements/anon_terms":"/api/agreements/terms";return e.flavor&&(t.flavor=e.flavor),new Promise((r,i)=>{function s(a){const c=new Xl(a.data);r(c)}function o(a){const c=new xe;switch(a.data?.error){case"No terms provisioned":c.log(5100);break;case"Missing required revision id in POST":c.log(5101);break;case"Failed to parse the revision id in the POST body as a UUID":c.log(5102);break;case"Trying to accept old or non-existant Terms and Conditions!":c.log(5102);break}i(c.resolve(a))}Oe.client.post(n,t).then(s).catch(o)})}function zM(e={}){return new Promise((t,n)=>{function r(s){const o=new Xl(s.data);t(o)}function i(s){const o=new xe;s.data?.error==="No terms provisioned"&&o.log(5100),n(o.resolve(s))}Oe.client.get("/api/agreements/privacy",{params:e}).then(r).catch(i)})}function ZM(e={}){return new Promise((t,n)=>{function r(c){const l=new Xl(c.data);t(l)}function i(c){const l=new xe;c.data?.error==="No terms provisioned"&&l.log(5100),n(l.resolve(c))}const{anon:s,...o}=e,a=s?"/api/agreements/anon_terms":"/api/agreements/terms";Oe.client.get(a,{params:o}).then(r).catch(i)})}const KM={acceptPrivacy:UM,acceptTerms:jM,getPrivacy:zM,getTerms:ZM};function YM({event:e,timestamp:t,contentId:n,seriesId:r,containerType:i="series",containerUUID:s,pageIndex:o,panelIndex:a,persistentUserId:c,browserId:l,sessionId:d,playerVersion:v,deviceModel:R,deviceOS:O,isOffline:$=!1}){return new Promise((P,T)=>{const C="/api/5/log/comic/",N=new xe;
13let x={persistent_user_cookie:c,browser_id:l,player_version:v,events:[{event_type:e,object_type:"comic",session_id:d,content_uuid:n,series_uuid:r,page_index:o,panel_index:typeof a=="number"?a:-1,view_date:t,is_offline:$,container_type:i,container_uuid:s}]};R&&(x.device_model=R),O&&(x.device_os=O);const S=p=>{P(p)},b=p=>{T(N.resolve(p))};Oe.client.post(C,x,{headers:{"X-Client-Time":new Date().toISOString()}}).then(S).catch(b)})}const XM={logComicEvent:YM};class im extends He{constructor(t){const n={consumer_name:"consumerName",currency_code:"currencyCode",currency_symbol:"currencySymbol",descriptors:"descriptors",display_order:"displayOrder",free_trial_days:"freeTrialDays",id:"id",is_gift:"isGift",market_type:"marketType",merchant_plan_id:"merchantPlanId",merchant_type:"merchantType",name:"name",next_billing_date:"nextBillingDate",period:"period",plan:"plan",prorated_refund:"proratedRefund",predicted_free_trial_end_date:"predictedFreeTrialEndDate",premium_level:"premiumLevel",price:"price",recurring:"recurring"};super(t,n),this._type="ProductModel"}}class wd extends He{constructor(t){const n={base_price:"basePrice",code:"code",comp_duration:"compDuration",descriptors:"descriptors",discount_amount:"discountAmount",discount_percent:"discountPercent",discounted_price:"discountedPrice",fixed_term:"fixedTerm",free_trial_days:"freeTrialDays",marketing_description:"marketingDescription",number_of_billing_cycles:"numberOfBillingCycles",product_id:"productId",requires_paymentmethod:"requiresPaymentmethod",type:"type",is_retention_offer:"isRetentionOffer",is_applicable:"isApplicable"};super(t,n),this.mapProduct(t),this._type="PromocodeModel"}mapProduct(t){t.product&&(this.product=new im(t.product))}}class Gw extends He{constructor(t){const n={descriptors:{annual_billing_period:"annualBillingPeriod",annual_discount:"annualDiscount",annual_discount_percentage:"annualDiscountPercentage",available_perks:"availablePerks",background_color:"backgroundColor",billing_period:"billingPeriod",button_title:"buttonTitle",discount:"discount",display_price:"displayPrice",monthly_billing_period:"monthlyBillingPeriod",plan_order:"planOrder",purchase_terms:"purchaseTerms",short_description:"shortDescription",subtitle:"subtitle",title:"title",unavailable_perks:"unavailablePerks",discount_badge_large:"discountBadgeLarge",discount_badge_small:"discountBadgeSmall",highlight_color:"highlightColor"},name:"name"};super(t,n),this.mapProducts({modelProperties:t,apiProperty:"products",remappedProperty:"products",model:im}),this.mapProducts({modelProperties:t,apiProperty:"promo_products",remappedProperty:"promoProducts",model:wd}),this._type="PlanModel"}mapProducts({modelProperties:t,apiProperty:n,remappedProperty:r,model:i}){t[n]&&(this[r]=t[n].map(s=>new i(s)))}}class Uw extends He{constructor(t){const n={catalog_guid:"guid",consumer_name:"consumerName",default_product_id:"defaultProductId",descriptors:{catalog_purchase_terms:"purchaseTerms",plan_order:"planOrder"},name:"name",promotion:"promotion",template:"template"};super(t,n),this.mapPlans(t),this._type="CatalogModel"}mapPlans(t){t.plans&&(this.plans=t.plans.map(n=>new Gw(n)))}}function JM(e={}){return new Promise((t,n)=>{function r(s){const o=new Uw(s.data);t(o)}function i(s){const o=new xe;n(o.resolve(s))}Oe.client.get("/api/premium/2/catalog/",{params:e}).then(r).catch(i)})}const qM={list:JM};class om extends He{constructor(t){const n={id:"id",moddate:"modifiedDate",note:"note",status:"status",user_uuid:"userUuid"},r={event_item:"id",event_item_description:"description",event_item_name:"name",event_item_note:"note",event_uuid:"eventId"};super(t,n),this.copyObjectToInstance({eventItem:this.mapProperties(t,r)}),this.mapDates(["modifiedDate"]),this._type="EventItemModel"}}class _d extends He{constructor(t){const n={page:"page",page_size:"pageSize",num_pages:"numPages"};super(t,n),this.eventItems=[],t&&t.values&&this.mapEventItems(t.values),this._type="EventItemListModel"}mapEventItems(t){this.eventItems=t.map(n=>new om(n))}}function QM({guid:e,eventUuid:t}){return new Promise((n,r)=>{const i=new xe;if(!e||!t){i.log(7752),r(i.resolve());return}function s(a){n(new _d({values:a.data}))}function o(a){a?.status===403&&i.log(7750),a?.status===404&&i.log(7751),r(i.resolve(a))}Oe.client.get(`/api/checkin/1/events/${e}/${t}`).then(s).catch(o)})}class jw extends He{constructor(t){const n={in_free_trial:"inFreeTrial",is_premium:"isPremium",premium_status:"premiumStatus",member_since:"memberSince",premium_plan_period:"premiumPlanPeriod",username:"username"};super(t,n),this.mapDates(["memberSince"]),this._type="EventUserDetailsModel"}}function eD({guid:e=null}){return new Promise((t,n)=>{const r=new xe;if(!e||e===""){r.log(7751),n(r.resolve());return}function i(o){t(new jw(o.data))}function s(o){if(o)switch(o.status){case 403:r.log(7750);break;case 404:r.log(7751);break}n(r.resolve(o))}Oe.client.get(`/api/checkin/1/users/${e}/`).then(i).catch(s)})}class zw extends He{constructor(t){const n={id:"id",description:"description",end_date:"endDate",name:"name",note:"note",start_date:"startDate"},r={address_city:"city",address_country_code:"countryCode",address_line_1:"line1",address_line_2:"line2",address_postalcode:"postalCode"};super(t,n),this.copyObjectToInstance({address:this.mapProperties(t,r)}
13),this.mapDates(["startDate","endDate"]),this._type="EventModel"}}class Zw extends He{constructor(t){const n={page:"page",page_size:"pageSize",num_pages:"numPages"};super(t,n),this.events=[],t&&t.values&&this.mapEvents(t.values),this._type="EventListModel"}mapEvents(t){this.events=t.map(n=>new zw(n))}}function tD(e={}){return new Promise((t,n)=>{function r(s){t(new Zw(s.data))}function i(s){const o=new xe;s&&s.status===403&&o.log(7750),n(o.resolve(s))}Oe.client.get("/api/checkin/1/events",{params:e}).then(r).catch(i)})}function nD({eventUuid:e,page:t=1}){return new Promise((n,r)=>{const i=new xe;if(e||i.log(7752),t&&isNaN(Number(t))&&i.log(5004),i.hasErrors())return r(i.resolve());function s(c){const l=c.data.values.map(d=>({event_item:d.id,event_item_description:d.description,event_item_name:d.name,event_item_note:d.note,event_uuid:d.eventId}));n(new _d({...c.data,values:l}))}function o(c){c?.status===403&&i.log(7750),c?.status===404&&i.log(7751),r(i.resolve(c))}const a={page:t};Oe.client.get(`/api/checkin/1/event_items/${e}/`,{params:a}).then(s).catch(o)})}function rD({guid:e,page:t=1}){return new Promise((n,r)=>{const i=new xe;if(!e){i.log(7752),r(i.resolve());return}function s(a){n(new _d(a.data))}function o(a){a?.status===403&&i.log(7750),a?.status===404&&i.log(7751),r(i.resolve(a))}Oe.client.get(`/api/checkin/1/events/${e}`,{params:{page:t}}).then(s).catch(o)})}function iD({guid:e,eventUuid:t,id:n,status:r=!1,note:i=null}){return new Promise((s,o)=>{const a=new xe;if(!e||!t||!n){a.log(7752),o(a.resolve());return}const c={};r!==null&&(c.status=r),i!==null&&(c.note=i);function l(v){s(new om(v.data))}function d(v){v&&v.status===403&&a.log(7750),v&&v.status===404&&a.log(7751),v&&v.status===400&&a.log(7752),o(a.resolve(v))}Oe.client.post(`/api/checkin/1/events/${e}/${t}/${n}`,c,{headers:{"Content-Type":"application/json"}}).then(l).catch(d)})}const oD={getEventItems:QM,getUserDetails:eD,list:tD,listEventItems:nD,listItems:rD,updateItem:iD};class Sd extends He{constructor(t){const n={can_create_public_userlists:"canCreatePublicUserlists",can_view_public_userlists:"canViewPublicUserlists",checkin_admin:"checkinAdmin",display_ad_code:"displayAdCode",dsr_request_do_not_sell:"dsrRequestDoNotSell",enable_upsell:"enableUpsell",featured_collectionId:"featuredCollectionId",has_airplay:"hasAirplay",has_chromecast:"hasChromecast",has_offline:"hasOffline",plan:"plan",show_offline_downloads:"showOfflineDownloads",show_offline_downloads_ios:"showOfflineDownloadsIOS",suggest_show_restore_sub_button:"suggestShowRestoreSubButton",user_request_do_not_sell:"userRequestDoNotSell",user_type:"userType",video_ad_code:"videoAdCode",preferred_sort_order:"preferredSortOrder"};super(t,n),this._convertIntsToBools(),this._type="ClaimPremiumModel"}static get intToBoolProps(){return["canCreatePublicUserlists","canViewPublicUserlists","checkinAdmin","dsrRequestDoNotSell","enableUpsell","hasAirplay","hasOffline","hasChromecast","showOfflineDownloads","showOfflineDownloadsIOS","userRequestDoNotSell"]}_convertIntsToBools(){const t=this._rawProperties.show_no_ads?this._rawProperties.show_no_ads:0;this.showAds=!parseInt(t,10),Sd.intToBoolProps.forEach(n=>{this[n]=!!parseInt(this[n],10)})}}class Kw extends He{constructor(t){const n={amp:"amp",email_status:"emailStatus",is_staff:"isStaff",is_user_allowed_to_subscribe:"isUserAllowedToSubscribe",premium_status:"premiumStatus",url:"url",user_guid:"userGuid",username:"username"};super(t,n),this._type="ClaimProfileModel"}}class Yw extends He{constructor(t){const n={require_username_on_registration:"requireUsernameOnRegistration",use_premium_apiv2:"usePremiumApiV2"};super(t,n),this._type="ClaimFeatureModel"}}class sm extends He{constructor(t){const n={aud:"audience",exp:"expiration",iat:"issuedAtTime",nbf:"notBeforeTime",sub:"subscriptionId"};super(t,n),super.mapDates(["expiration","issuedAtTime","notBeforeTime"]);for(var r in t)if(typeof t[r]=="object")switch(r){case"urn:df:clm:premium":this.premium=new Sd(t["urn:df:clm:premium"]);break;case"urn:df:clm:profile":this.profile=new Kw(t["urn:df:clm:profile"]);break;case"urn:df:clm:feature":this.feature=new Yw(t["urn:df:clm:feature"]);break;default:this[r]=t[r];break}this._type="ClaimModel"}}function sD(){return new Promise((e,t)=>
13{function n(i){const s=new sm(i.data.data);e(s)}function r(i){const s=new xe;t(s.resolve(i))}Oe.client.get("/api/claims/").then(n).catch(r)})}function aD({name:e,value:t}){return new Promise((n,r)=>{const i=new xe;function s(a){const c=new sm(a.data.data.result);n(c)}function o(a){a?.data?.errors&&a.data.errors.forEach(c=>{c.code==="INVALID_VALUE_SELECTION"&&i.log(6002)}),r(i.resolve(a))}if(!e||!t)return i.log(9001),r(i.resolve());Oe.client.post("/api/premium/2/claims/update",{claim_name:e,claim_value:t}).then(s).catch(o)})}const lD={get:sD,updatePremiumClaim:aD};class Uo{mapTypes(t){Object.keys(t).forEach(n=>{this[n]=t[n]})}}class cD extends Uo{constructor(){super();const t={md:{resolvePath:n=>n.assetKey?`${n.artSourceUrl}asset/banners/${n.id}/${n.assetKey}/md.jpg`:`${n.artSourceUrl}art-banners/${n.id}${n.imageType}.png`,size:{width:1084,height:285}},banner:{resolvePath:n=>`${n.artSourceUrl}asset/jsonbag/${n.id}/${n.assetKey}/banner.jpg`,size:{width:1200,height:323}},bannerMobile:{resolvePath:n=>`${n.artSourceUrl}asset/jsonbag/${n.id}/${n.assetKey}/banner-mobile.jpg`},bannerTablet:{resolvePath:n=>`${n.artSourceUrl}asset/jsonbag/${n.id}/${n.assetKey}/banner-tablet.jpg`},heroC:{resolvePath:n=>`${n.artSourceUrl}asset/jsonbag/${n.id}/${n.assetKey}/hero-c.jpg`,size:{width:1626,height:915}}};super.mapTypes(t)}}class uD extends Uo{constructor(){super();const t={cover:{resolvePath:n=>`${n.artSourceUrl}ingest/book/preview/${n.uuid}/${n.jobId}/${n.previewImages[0]}.jpg`,size:{width:1073,height:1650}},preview1:{resolvePath:n=>`${n.artSourceUrl}ingest/book/preview/${n.uuid}/${n.jobId}/${n.previewImages[1]}.jpg`,size:{width:1073,height:1650}},preview2:{resolvePath:n=>`${n.artSourceUrl}ingest/book/preview/${n.uuid}/${n.jobId}/${n.previewImages[2]}.jpg`,size:{width:1073,height:1650}},preview3:{resolvePath:n=>`${n.artSourceUrl}ingest/book/preview/${n.uuid}/${n.jobId}/${n.previewImages[3]}.jpg`,size:{width:1073,height:1650}},heroC2:{resolvePath:n=>`${n.artSourceUrl}asset/comics.book/${n.uuid}/${n.assetKey}/hero-c2.jpg`,size:{width:3840,height:2160}}};super.mapTypes(t)}}class dD extends Uo{constructor(){super();const t={thumbnail:{resolvePath:n=>n.assetKey?`${n.artSourceUrl}asset/clip/${n.id}/${n.assetKey}
13/thumb.jpg`:`${n.artSourceUrl}art-clips/${n.id}.jpg`,size:{width:720,height:480}}};super.mapTypes(t)}}class hD extends Uo{constructor(){super();const t={hero:{resolvePath:n=>n.assetKey?`${n.artSourceUrl}asset/collection/${this.addPrefix(n.id)}/${n.assetKey}/hero.jpg`:`${n.artSourceUrl}art-collections/${n.imageType}/${n.id}.jpg`,size:{width:1800,height:514}},box:{resolvePath:n=>n.assetKey?`${n.artSourceUrl}asset/collection/${this.addPrefix(n.id)}/${n.assetKey}/box.jpg`:`${n.artSourceUrl}art-collections/${n.imageType}/${n.id}.jpg`,size:{width:800,height:600}},logo:{resolvePath:n=>n.assetKey?`${n.artSourceUrl}asset/collection/${this.addPrefix(n.id)}/${n.assetKey}/logo.png`:`${n.artSourceUrl}art-collections/${n.imageType}/${n.id}.png`,size:{width:850,height:460}},logoWhite:{resolvePath:n=>n.assetKey?`${n.artSourceUrl}asset/collection/${this.addPrefix(n.id)}/${n.assetKey}/logo-white.png`:`${n.artSourceUrl}art-collections/logo-white/${n.id}.png`,size:{width:850,height:460}},playlist:{resolvePath:n=>n.assetKey?`${n.artSourceUrl}asset/collection/${this.addPrefix(n.id)}/${n.assetKey}
13/playlist.jpg`:`${n.artSourceUrl}art-collections/playlists/${n.id}.jpg`,size:{width:100,height:100}},headshot:{resolvePath:({artSourceUrl:n,id:r,assetKey:i})=>i?`${n}asset/collection/${this.addPrefix(r)}/${i}/headshot.jpg`:`${n}art-collection/headshot/${r}.jpg`,size:{width:830,height:830}},heroR:{resolvePath:({artSourceUrl:n,id:r,assetKey:i})=>i?`${n}asset/collection/${this.addPrefix(r)}/${i}/hero-r.jpg`:`${n}art-collection/hero-r/${r}.jpg`,size:{width:2e3,height:1500}},heroC:{resolvePath:({artSourceUrl:n,id:r,assetKey:i})=>i?`${n}asset/collection/${this.addPrefix(r)}/${i}/hero-c.jpg`:`${n}art-collection/hero-c/${r}.jpg`,size:{width:2e3,height:1500}},heroC2:{resolvePath:({artSourceUrl:n,id:r,assetKey:i})=>i?`${n}asset/collection/${this.addPrefix(r)}/${i}/hero-c2.jpg`:`${n}art-collection/hero-c2/${r}.jpg`,size:{width:3840,height:2160}},heroS:{resolvePath:({artSourceUrl:n,id:r,assetKey:i})=>i?`${n}asset/collection/${this.addPrefix(r)}/${i}/hero-s.jpg`:`${n}art-collections/hero-s/${r}.jpg`,size:{width:750,height:750}}};super.mapTypes(t)}addPrefix(t){return String(t).startsWith("c")?t:`c${t}`}}class fD extends Uo{constructor(){super();const t={box:{resolvePath:n=>n.assetKey?`${n.artSourceUrl}asset/comics.series/${n.uuid}/${n.assetKey}
13/box.jpg`:`${n.artSourceUrl}art-comicseries/box/${n.uuid}.jpg`,size:{width:600,height:600}},heroR:{resolvePath:n=>n.assetKey?`${n.artSourceUrl}asset/comics.series/${n.uuid}/${n.assetKey}/hero.jpg`:`${n.artSourceUrl}art-comicseries/hero/${n.uuid}.jpg`,size:{width:2e3,height:1500}},heroC:{resolvePath:n=>n.assetKey?`${n.artSourceUrl}asset/comics.series/${n.uuid}/${n.assetKey}/hero-c.jpg`:`${n.artSourceUrl}art-comicseries/hero-c/${n.uuid}.jpg`,size:{width:2e3,height:1500}},heroC2:{resolvePath:n=>n.assetKey?`${n.artSourceUrl}asset/comics.series/${n.uuid}/${n.assetKey}/hero-c2.jpg`:`${n.artSourceUrl}art-comicseries/hero-c2/${n.uuid}.jpg`,size:{width:3840,height:2160}}};super.mapTypes(t)}}class pD extends Uo{constructor(){super();const t={thumb:{resolvePath:n=>`${n.artSourceUrl}art-shopifyproduct/${n.imageType}/${n.uuid}.jpg`,size:{width:1360,height:780}}};super.mapTypes(t)}}const Fb={banners:cD,book:uD,clips:dD,collection:hD,comicseries:fD,shopify:pD};class gD{constructor(){Object.keys(Fb).forEach(t=>{this[t]=new Fb[t]})}}class mD{constructor(){this.artSourceUrl="/",this.types=new gD}addType(t){this.types[t.assetType]||(this.types[t.assetType]=new Uo);const n={};n[t.imageType]={resolvePath:t.resolvePath,size:t.size},this.types[t.assetType].mapTypes(n)}setSupportedTypes(t){Object.keys(this.types).forEach(n=>{t[n]?Object.keys(this.types[n]).forEach(r=>{t[n].indexOf(r)===-1&&delete this.types[n][r]}):delete this.types[n]})}setArtSourceUrl(t){t&&(this.artSourceUrl=t)}unsetArtSourceUrl(){this.artSourceUrl="/"}}const tl=new mD;function Xw(e){const t={...e},n={};if(e&&(t.assetType=e.assetType||"comicseries",t.imageType=e.imageType||"thumb",tl.types[t.assetType]?.[t.imageType])){const r=tl.types[t.assetType][t.imageType];t.artSourceUrl=tl.artSourceUrl,n.url=r.resolvePath(t),n.size=Vi(r.size)}return n}function yD(e){e.assetType=e.assetType||"comicseries";const t={};return Object.keys(tl.types[e.assetType]).forEach(n=>{e.imageType=n,t[n]=Xw(e);let r=n.replace(/\-\w/,i=>i[1].toUpperCase());n!==r&&(t[r]=t[n])}),t}const Qi={get:Xw,getAll:yD,types:tl};class am extends He{constructor(t){const n={program_schedule:[{_REMAP:"schedule",start_time:"startTime",end_time:"endTime",type:"type",name:"name",plan:"plan"}],metadata:null};super(t,n),this._convertDates(),this._type="ProgramScheduleModel"}minTypeAllowed(){const t=["anonymous","registered","premium"];let n="no-access";return t.some(r=>{if(this.userTypeHasAccess(r))return n=r,!0}),n==="no-access"&&this.plansForPremium().length?"premium-w-plan":n}plansForPremium(){const n=this.schedule.filter(this.isActiveWall.bind(this)).reduce((i,s)=>s.type.includes("premium")&&s.plan.length?i.concat(s.plan):i,[]);return Array.from(new Set(n))}userTypeHasAccess(t,n){const r=t.toLowerCase(),s=this.schedule.filter(this.isActiveWall.bind(this)).reduce((d,v)=>v.plan.length&&!v.plan.includes(n)?d.concat(v.type.filter(R=>R!=="premium")):d.concat(v.type),[]),o=Array.from(new Set(s)),a=o.filter(d=>d[0]!=="-");let c=o.filter(d=>d[0]==="-");return c=c.map(d=>d.replace("-","")),a.indexOf(r)>-1&&c.indexOf(r)===-1}isActiveWall(t){let{startTime:n,endTime:r}=t;if(!n&&!r)return!0;const i=new Date;return n&&Ou(new Date(n))&&(n=new Date(n)),r&&Ou(new Date(r))&&(r=new Date(r)),!r&&n?Mb(i,n):(!n&&r||Mb(i,n))&&Db(i,r)}_convertDates(){this.schedule&&this.schedule.forEach(t=>{t.startTime&&(t.startTime=cp(t.startTime)),t.endTime&&(t.endTime=cp(t.endTime))})}}class Ed extends He{constructor(t){const n={asset_key:"assetKey",clip_type:"clipType",description:"description",duration:"duration",guid:"guid",id:"id",publish_date:"publishDate",thumbnail:"thumbnail",title:"title",uuid:"uuid",video_uuid:"videoUUID"};super(t,n),super.mapDates(["publishDate"]),t.program_schedule&&(this.programSchedule=new am({program_schedule:t.program_schedule})),this.images=Qi.getAll({uuid:this.uuid,assetKey:this.assetKey,id:this.id,assetType:"clips"}),this._type="ClipModel"}}function bD({uuid:e}){return new Promise((t,n)=>{const r=new xe;function i(a){t(new Ed(a.data))}function s(a){a.status===404&&r.log(2100),n(r.resolve(a))}if(!e)return r.log(1715),n(r.resolve());const o=`/api/5/2/clips/${e}`;Oe.client.get(o).then(i).catch(s)})}class Jw extends He{constructor(t){const n={page_size:"pageSize",values:"clips"};super(t,n),this.clips=[],t.values&&this.mapClips(t.values),this._type="ClipListModel"}mapClips(t){this.clips=t.map(n=>new Ed(n))}}function vD({containerType:e,containerUuid:t,objectType:n,objectUuid:r,clipType:i}){return new Promise((s,o)=>{const a=new xe;function c(R){const O=new Jw(R.data);s(O)}function l(R){o(a.resolve(R))}
13if(!r)return a.log(1715),o(a.resolve());if(!n)return a.log(2103),o(a.resolve());const d={params:{}};i&&(d.params.clip_type=i);let v="";!e||!t?v=`/api/5/2/${n}/${r}/clips`:v=`/api/5/2/${e}/${t}/${n}/${r}/clips`,Oe.client.get(v,d).then(c).catch(l)})}const CD={get:bD,list:vD};class eo extends He{constructor(t){const n={age_rating:"ageRating",asset_key:"assetKey",authors:"authors",available_formats:"availableFormats",available_plans:"availablePlans",colorists:"colorists",cover_artists:"coverArtists",description:"description",est_available:"estAvailable",exclusive_to_plans:"exclusiveToPlans",first_released:"firstReleased",imprint:"imprint",inkers:"inkers",issue_number:"issueNumber",job_id:"jobId",metadata:"metadata",modified_on:"modifiedOn",pages:"pages",pencillers:"pencillers",preorder_date:"preorderDate",preview_images:"previewImages",print_release:"printRelease",publisher:"publisher",reading_direction:"readingDirection",release_date:"releaseDate",series_index:"seriesIndex",series_title:"seriesTitle",series_uuid:"seriesUuid",slug:"slug",sort_index:"sortIndex",tags:"tags",title:"title",uuid:"uuid"};super(t,n),!this.modifiedOn&&t.mod_dt&&(this.modifiedOn=t.mod_dt),super.mapDates(["printRelease","preorderDate","modifiedOn","releaseDate","firstReleased"]),t.program_schedule&&(this.programSchedule=new am({program_schedule:t.program_schedule})),this.previewImages=this.previewImages||[0,1,2,3],this.images=Qi.getAll({uuid:this.uuid,assetKey:this.assetKey,jobId:this.jobId,assetType:"book",previewImages:this.previewImages}),this._type="ComicBookModel"}}class qw extends He{constructor(t){const n={description:"description",metadata:{collection_id:"collectionId",collection_slug:"collectionSlug",end:"end",start:"start",title:"title"}};super(t,n),this.metadata&&(Object.keys(this.metadata).forEach(r=>{this[r]=this.metadata[r]}),delete this.metadata),super.mapDates(["start","end"]),this._type="DatabagModel"}}class xd extends He{constructor(t){const n={age_rating:"ageRating",asset_key:"assetKey",description:"description",slug:"slug",title:"title",uuid:"uuid",tags:"tags"};super(t,n),t&&t.num_books&&this.convertBookTypesCase(t),this._getImages(),this._type="ComicSeriesModel"}convertBookTypesCase(t){this.numBooks={};let n;for(n in t.num_books)this.numBooks[n.toLowerCase()]=t.num_books[n]}_getImages(){this.images=Qi.getAll({uuid:this.uuid,assetKey:this.assetKey,assetType:"comicseries"})}}class Qw extends He{constructor(t){const n={asset_key:"assetKey",created_at:"createdAt",description:"description",premium_only:"premiumOnly",price:"price",title:"title",updated_at:"updatedAt",url:"url",uuid:"uuid"};super(t,n),this._getImages(),this._type="ShopifyProductModel"}_getImages(){this.images=Qi.getAll({uuid:this.uuid,assetType:"shopify"})}}class Td extends He{constructor(t){const n={asset_key:"assetKey",base_asset_url:"baseAssetUrl",description:"description",id:"id",uuid:"uuid",slug:"slug",metadata:{clickout_type:"clickoutType",cta_description:"ctaDescription",cta_text:"ctaText",external_clickout:"externalClickout",item_type:"itemType",masthead_color:"mastheadColor",title:"title",url:"url"}};super(t,n),this.metadata&&(Object.keys(this.metadata).forEach(r=>{this[r]=this.metadata[r]}),delete this.metadata),this.images=Qi.getAll({assetKey:this.assetKey,assetType:"banners",id:this.id}),this._type="JsonbagModel"}}class e_ extends He{constructor(t){const n={uuid:"uuid",slug:"slug",title:"title",description:"description",url:"url",is_approved:"isApproved",publish_date:"publishDate",base_asset_url:"baseAssetUrl",metadata:"metadata",tags:"tags",cta_label:"ctaLabel"};super(t,n),super.mapDates(["publishDate"]),this._type="ClickoutObjectModel"}}class t_ extends He{constructor(t){const n={content_type:"type",sort_order:"order"};switch(super(t,n),t.content_type){case"book":this.item=new eo(t.content);break;case"comicseries":this.item=new xd(t.content);break;case"collection":this.item=new da(t.content);break}this._type="UserListItemModel"}}class jo extends He{constructor(t){const n={counts:{book:"book",collection:"collection",comicseries:"comicseries"},created_at:"createdAt",description:"description",follower_count:"followerCount",is_favorites:"isFavorites",is_pull_list:"isPullList",is_following:"isFollowing",is_public:"isPublic",items_count:"itemsCount",title:"title",updated_at:"updatedAt",user_guid:"guid",username:"username",uuid:"uuid"};super(t,n),this.items=[],t.items&&this._mapItems(t.items),t.thumbnail?(this._getImages(t.thumbnail),this.firstItemContentType=t.thumbnail.content_type):t.first_item&&t.first_item.thumbnail&&(this._getImages(t.first_item.thumbnail),this.firstItemContentType=t.first_item.thumbnail.content_type),this.mapPaginationMeta(t),super.mapDates(["createdAt","updatedAt"]),this._type="UserListModel"}_mapItems(t){this.items=t.map(n=>new t_(n))}_getImages(t){this.images=Qi.getAll({uuid:t.uuid,assetKey:t.asset_key,assetType:t.content_type,id:t.id,jobId:t.job_id,previewImages:t.preview_images||[0,1,2,3]})}}class zo extends He{constructor(t){const n={num_pages:"numberOfPages",page:"page",page_size:"pageSize"};
13super(t,n),this.mapCollectionItems(t.values),this._type="CollectionItemsModel"}mapCollectionItems(t){if(!t||!Array.isArray(t)){this.collectionItems=[];return}this.collectionItems=t.map(n=>{const r={metadata:n.metadata,type:n.item_type,item:{}};switch(r.type){case"Collection":r.item=new da(n.item);break;case"Clip":r.item=new Ed(n.item);break;case"Databag":r.item=new qw(n.item);break;case"Book":r.item=new eo(n.item);break;case"ComicSeries":r.item=new xd(n.item);break;case"ShopifyProduct":r.item=new Qw(n.item);break;case"Jsonbag":r.item=new Td(n.item);break;case"ClickoutObject":case"ClickoutImage":r.type="ClickoutObject",r.item=new e_(n.item);break;case"UserList":r.item=new jo(n.item);break;default:r.item=n.item}return r})}}class da extends He{constructor(t){const n={asset_key:"assetKey",id:"id",collection_items:"collectionItems",item_count:"itemCount",metadata:{container:"container",icon:"icon",layout:"layout",masthead_bg:null,masthead_bg_color:null,plan_type:"planType",thumbnail:"thumbnail",trailer:{id:"id",thumbnail:"thumbnail"},type:"type",upsell_caption:"upsellCaption",upsell_caption_es:"upsellCaptionEs",upsell_cta:"upsellCta",upsell_cta_es:"upsellCtaEs",upsell_pricing:"upsellPricing",upsell_pricing_es:"upsellPricingEs",upsell_subtitle_long:"upsellSubtitleLong",upsell_subtitle_long_es:"upsellSubtitleLongEs",upsell_subtitle_short:"upsellSubtitleShort",upsell_subtitle_short_es:"upsellSubtitleShortEs",upsell_title:"upsellTitle",upsell_title_es:"upsellTitleEs"},slug:"slug",title:"title",url:"url",uuid:"uuid"};super(t,n),this.mapMetadata(),this.mapCollectionItems(),this._type="CollectionModel"}mapCollectionItems(){this.collectionItems&&(this.collectionItems=new zo({values:this._rawProperties.collection_items}))}mapMetadata(){this.metadata?(this.metadata.masthead={url:this._rawProperties.metadata.masthead||"",backgroundColor:this._rawProperties.metadata.masthead_bg_color||"",background:this._rawProperties.metadata.masthead_bg||""},this.metadata.description={long:this._rawProperties.metadata.description||"",short:this._rawProperties.metadata.description_short||""}):this.metadata={},this.metadata.images=Qi.getAll({assetType:"collection",assetKey:this.assetKey,id:this.id})}}function ID({slug:e=""}){return new Promise((t,n)=>{function r(o){t(new da(o.data))}function i(o){const a=new xe;if(o?.data){const c=o.data.message;c&&(c.indexOf("Invalid collection collection_type")>-1&&a.log(2001),c.indexOf("Invalid collection id")>-1&&a.log(2e3));const l=o.data.errors;l&&l.forEach(d=>{d.code===1&&a.log(2e3)})}n(a.resolve(o))}if(!e){const o=new xe;return o.log(2003),n(o.resolve())}const s=`/api/5/2/collections/slug/${e}`;Oe.client.get(s).then(r).catch(i)})}function AD({slug:e="",page:t=1,pageSize:n=20}){return new Promise((r,i)=>{function s(l){r(new zo(l.data))}function o(l){const d=new xe;if(l?.data){const v=l.data.errors;v&&v.forEach(R=>{switch(R.code){case 1:case 2:case 12:d.log(2e3);break;case 4:case 5:d.log(2102);break}})}i(d.resolve(l))}if(!e){const l=new xe;return l.log(2003),i(l.resolve())}const a=`/api/5/2/collection-items/slug/${e}`,c={params:{}};t&&t!==1&&(c.params.page=t),c.params.page_size=n,Oe.client.get(a,c).then(s).catch(o)})}function wD({uuid:e}){return new Promise((t,n)=>{function r(o){t(new da(o.data))}function i(o){const a=new xe;o.status===404&&a.log(2007),n(a.resolve(o))}if(!e){const o=new xe;return o.log(2008),n(o.resolve())}const s=`/api/5/2/collections/uuid/${e}`;Oe.client.get(s).then(r).catch(i)})}function _D({uuid:e}){return new Promise((t,n)=>{function r(o){t(new zo(o.data))}function i(o){const a=new xe;o.status===404&&a.log(2007),n(a.resolve(o))}if(!e){const o=new xe;return o.log(2008),n(o.resolve())}const s=`/api/5/2/collection-items/uuid/${e}`;Oe.client.get(s).then(r).catch(i)})}const SD={get:ID,getItems:AD,getByUuid:wD,getItemsByUuid:_D};class n_ extends He{constructor(t){const n={format:"format",images:[{_REMAP:"pages",page_number:"pageNumber",panels:[{mask_color:"maskColor",size_x:"percentWidth",size_y:"percentHeight",start_x:"percentX",start_y:"percentY"}],signed_url:"url",thumbnail_url:"thumbnailUrl"}],job_id:"jobId",num_pages:"numPages",page:"page",page_size:"pageSize",uuid:"uuid"};
13super(t,n),this._type="ComicPagesModel"}}function dp({jwtToken:e,page:t=1,quality:n="SD"}){return new Promise((r,i)=>{const s=new xe;if(e||s.log(1717),isNaN(t)&&s.log(5004),s.hasErrors())return i(s.resolve());function o(v){r(new n_(v.data))}function a(v){v?.data?.errors&&v.data.errors.forEach(R=>{switch(R.code){case 1:s.log(1717);break;case 2:s.log(5002);break;case 8:s.log(1720);break;case 9:s.log(1719);break}}),v&&v.data==="JWT parsing failed because the token is not valid now"&&s.log(1725),i(s.resolve(v))}let c="/api/comics/1/book/download/";const l={"X-Auth-JWT":e},d={page:t,quality:n};Oe.client.get(c,{params:d,headers:l}).then(o).catch(a)})}function ED({jwtToken:e,quality:t="SD"}){return new Promise((n,r)=>{const i=new xe;if(e||i.log(1717),i.hasErrors())return r(i.resolve());function s(c){r(c)}function o(c){if(c.numPages===1)return n(c);let l=[];for(let d=2;d<=c.numPages;d++)l.push(dp({jwtToken:e,quality:t,page:d}));Promise.all(l).then(d=>{d.forEach(v=>{c.pages=c.pages.concat(v.pages),c._rawProperties.images=c._rawProperties.images.concat(v._rawProperties.images)}),delete c.page,n(c)}).catch(d=>{r(d)})}dp({jwtToken:e,page:1,quality:t}).then(o).catch(s)})}class r_ extends He{constructor(t){const n={num_pages:"numPages",page:"page",page_size:"pageSize",total:"total"};super(t,n),t&&t.values&&this.mapBooks(t.values),this._type="ComicSeriesBooksModel"}mapBooks(t){this.books=t.map(n=>new eo(n))}}function hp({uuid:e,bookType:t="issue",page:n=1,sort:r=null}){return new Promise((i,s)=>{const o=new xe;
13if(e||o.log(1715),t===""&&o.log(1720),o.hasErrors())return s(o.resolve());function a(v){i(new r_(v.data))}function c(v){v?.data?.errors&&v.data.errors.forEach(R=>{switch(R.code){case 1:o.log(1721);break;case 5:o.log(1055);break;case 8:o.log(1720);break}}),s(o.resolve(v))}let l=`/api/comics/1/series/${e}/books/${t}`;const d={params:{page:n}};r&&(d.params.sort=r),Oe.client.get(l,d).then(a).catch(c)})}function xD({uuid:e,bookType:t="issue"}){return new Promise((n,r)=>{const i=new xe;if(e||i.log(1715),i.hasErrors())return r(i.resolve());function s(c){r(c)}function o(c){if(c.numPages===1)return n(c);let l=[];for(let d=2;d<=c.numPages;d++)l.push(hp({uuid:e,bookType:t,page:d}));Promise.all(l).then(d=>{d.forEach(v=>{c.books=c.books.concat(v.books)}),delete c.page,n(c)}).catch(d=>{r(d)})}hp({uuid:e,bookType:t,page:1}).then(o).catch(s)})}const TD=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;function kD(e){return typeof e=="string"&&TD.test(e)}function RD({uuid:e}){return new Promise((t,n)=>{const r=new xe;if(!e||!kD(e))return r.log(1715),n(r.resolve());function i(a){t(new eo(a.data))}function s(a){a?.data?.errors&&a.data.errors.forEach(c=>{c.code===1&&r.log(1721)}),n(r.resolve(a))}let o=`/api/comics/1/book/${e}/`;Oe.client.get(o).then(i).catch(s)})}function LD({uuid:e}){return new Promise((t,n)=>{const r=new xe;if(!e)return r.log(1715),n(r.resolve());function i(a){t(new xd(a.data))}function s(a){a?.data?.errors&&a.data.errors.forEach(c=>{switch(c.code){case 1:r.log(1721);break;case 8:r.log(1715);break}}),n(r.resolve(a))}let o=`/api/comics/1/series/${e}/`;Oe.client.get(o).then(i).catch(s)})}const OD={download:dp,downloadAll:ED,getAllSeriesBooks:xD,getBook:RD,getSeries:LD,getSeriesBooks:hp};class i_ extends He{constructor(t){const n={akamai:{license_key:"licenseKey"},art_source_url:"artSourceUrl",client_ip:"clientIp",consumer_secret:"consumerSecret",country_code:"countryCode",country_language:"countryLanguage",country_supported:"countrySupported",static_url:"staticUrl",url:"url"};if(super(t,n),t&&t.widevine){this.portalId=t.widevine.portal_id;const r={fairplay:{cert:t.widevine.fps_cert_url,url:t.widevine.fps_lic_url},playready:{offline:t.widevine.lic_off_url,licenseAcquisitionUrl:t.widevine.lic_play_laurl,url:t.widevine.lic_url_play},widevine:{cert:t.widevine.wv_cert_url,offline:t.widevine.wv_mod_lic_off_url,url:t.widevine.wv_mod_lic_url}};this.drm=r}this.ageGate={age:t.age_gate_age,blockTimeout:t.age_gate_block},this._type="ConsumerModel"}}function ND({name:e="",consumerSecret:t="",dfs:n="",countryCode:r=""}){return new Promise((i,s)=>{if(!e){const l=new xe;l.log(9005),s(l.resolve());return}function o(l){i(new i_(l.data))}function a(l){const d=new xe;l?.data&&(l.data?.message==="Consumer not found."&&d.log(9005),l.data?.message?.indexOf("Invalid country_code")>-1&&d.log(1201)),s(d.resolve(l))}let c={};t&&(c.cs=t),r&&(c.country_code=r),n&&(c.dfs=n),Oe.client.get(`/api/5/consumer/${e}`,{params:c}).then(o).catch(a)})}const PD={get:ND};class lm extends He{constructor(t){const n={link_complete:"linkComplete",short_code:"shortCode"};super(t,n),this._type="DeviceCodeModel"}}function $D(){return new Promise((e,t)=>{function n(i){e(new lm(i.data))}function r(i){const s=new xe;t(s.resolve(i))}Oe.client.get("/api/5/device/link").then(n).catch(r)})}function MD({shortCode:e}){return new Promise((t,n)=>{function r(o){const a=new lm(o.data);if(!a.linkComplete){const c=new xe;return c.log(1400),n(c.resolve(a))}t(a)}function i(o){const a=new xe;o.data&&o.data.errors&&o.data.errors.short_code&&(o.data.errors.short_code==="This field is required."&&a.log(1401),o.data.errors.short_code.indexOf("Ensure this value has at most 5 characters")>-1&&a.log(1402)),n(a.resolve(o))}const s=new URLSearchParams;s.append("short_code",e),Oe.client.post("/api/5/device/link",s,{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}}).then(r).catch(i)})}class kd extends He{constructor(t){const n={jwt:"jwt",session_id:"sessionId",user_guid:"guid"};super(t,n),this._type="UserModel"}}function DD({shortCode:e}){return new Promise((t,n)=>{function r(o){if(!o.data?.dramafever_secret){const c=new xe;return c.log(1405),n(c.resolve(o))}const a=new kd({session_id:o.data.dramafever_secret});Oe.setAuthorizationToken(a.sessionId),t(a)}function i(o){const a=new xe;if(o?.data?.errors?.short_code){const c=o.data.errors.short_code;c==="This field is required."&&a.log(1401),c.indexOf("Ensure this value has at most 5 characters")>-1&&a.log(1402)}if(o?.data?.message){const c=o.data.message;c.indexOf("This code does not exist or has expired. Please generate a new code and try again.")>-1&&a.log(1403),c==="User not linked"&&a.log(1404)}n(a.resolve(o))}const s=new URLSearchParams;s.append("short_code",e),Oe.client.post("/api/5/login/device",s,{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}}).then(r).catch(i)})}
13const BD={getCode:$D,link:MD,login:DD};class o_ extends He{constructor(t){const n={enabled:"enabled",is_public:"isPublic"};super(t,n),this.convertPropsToBooleans(Object.values(n)),this._type="ExperimentModel"}convertPropsToBooleans(t){t.forEach(n=>{n!=="metadata"&&(typeof this[n]=="string"&&(this[n]=Number(this[n])),this[n]=!!this[n])})}}function FD({name:e=""}={}){return new Promise((t,n)=>{function r(s){t(new o_(s.data))}function i(s){const o=new xe;o.log(1051),n(o.resolve(s))}if(!e){i();return}Oe.client.get(`/api/5/1/experiment/${e}`).then(r).catch(i)})}const HD={get:FD};class s_ extends He{constructor(t){const n={guid:"guid",personal_message:"personalMessage",premium_start_date:"premiumStartDate",product_currency:"productCurrency",product_id:"productId",product_price:"productPrice",receiver_email:"receiverEmail",receiver_name:"receiverName",sender_email:"senderEmail",sender_name:"senderName",transaction_id:"transactionId",transaction_status:"transactionStatus"};super(t,n),this._type="GiftModel"}}function WD({paymentMethodToken:e,paymentMethodGuid:t,productId:n,senderEmail:r,senderName:i,receiverEmail:s,receiverName:o,personalMessage:a,premiumStartDate:c}){return new Promise((l,d)=>{const v=new xe;function R(P){let T;if(P.data?.data?.result?.is_success)T=new s_(P.data.data.result.gift);else return v.log(3045),d(v.resolve(P));l(T)}function O(P){P.data?.errors&&P.data.errors.forEach(T=>{switch(T.code){case"INVALID_PRODUCT":v.log(3043);break;case"INVALID_PAYMENTMETHOD":v.log(3044);break;case"INVALID_PREMIUM_START_DATE":v.log(3041);break;case"INVALID_GIFT_RECIPIENT_EMAIL":v.log(3046);break;case"MISSING_REQUIRED_VALUE":switch(T.field){case"/receiver_email":v.log(3046);break;case"/receiver_name":v.log(3047);break;case"/sender_email":v.log(3048);break;case"/sender_name":v.log(3049);break}break;case"UNHANDLED_ERROR":T.reason.indexOf("more than one PaymentMethod")>-1&&v.log(3044),T.reason.indexOf("invalid literal")>-1&&v.log(3043);break}}),d(v.resolve(P))}const $=Ww({paymentmethod_token:e,paymentmethod_guid:t,product_id:n,sender_email:r,sender_name:i,receiver_email:s,receiver_name:o,personal_message:a,premium_start_date:c});if(!$.paymentmethod_token&&!$.paymentmethod_guid&&v.log(3040),$.product_id||v.log(3043),$.sender_email||v.log(3042),v.hasErrors())return d(v.resolve());Oe.client.post("/api/premium/2/purchases/gift/create",$).then(R).catch(O)})}const VD={create:WD};class a_ extends da{constructor(t){super(t),this.collectionItems=new zo({values:t.collection_items||[]}),this.slug=t.collection_slug,this._type="HomepageModel"}}function GD(e={}){return new Promise((t,n)=>{function r(s){t(new a_(s.data))}function i(s){const o=new xe;s.status===404&&o.log(1850),n(o.resolve(s))}Oe.client.get(`/api/5/2/homepage/${e.flavor}${e.withitems?"?withitems=1":""}`).then(r).catch(i)})}const Hb={browse_filter_sections:[{_REMAP:"filterSections",filter_operator:"operator",browse_filters:[{_REMAP:"filters",metadata:"meta",id:"id",name:"name",subtitle:"subtitle",search:[{_REMAP:"search",document_type:"documentType",filter_key:"key",filter_value:"value",filter_key_property:"keyProperty",filter_type:"fieldType"}],thumb_url:"thumbnail"}],document_type:"documentType",name:"name"}]};class l_ extends He{constructor(t){const n={...Hb,sorts:[{_REMAP:"sorts",document_type:"documentType",supported_sorts:[{_REMAP:"supported",default:"default",label:"label",sort_direction:"direction",sort_field:"field"}]}],categories:[{_REMAP:"categories",description:"description",document_type:"documentType",featured:"featured",image_url:"image",name:"name",id:"id",search:[{_REMAP:"search",document_type:"documentType",filter_key:"key",filter_value:"value"}],sub_filters_enabled:"filtersEnabled",filter_set:"filterSet"}],masthead_url:"masthead"};super(t,n),t.filter_sets&&this.mapFilterSets(t),this._type="BrowseComicsHomepageModel"}mapFilterSets(t){this.filterSets={},Object.keys(t.filter_sets).forEach(r=>{this.filterSets[r]=this.mapProperties(t.filter_sets[r],Hb)})}}function UD(e="browsecomics",t={}){return new Promise((n,r)=>{function i(o){if(!o.data||!o.data.collection_items||!o.data.collection_items[0]||!o.data.collection_items[0].item||!o.data.collection_items[0].item.metadata)return s(o);n(new l_(o.data.collection_items[0].item.metadata))}function s(o){const a=new xe;o.status===404&&a.log(1850),r(a.resolve(o))}Oe.client.get(`/api/5/2/homepage/${e}`,{params:t}).then(i).catch(s)})}const jD={get:GD,getBrowse:UD};function zD({slug:e=""}){return new Promise((t,n)=>{function r(s){t(new Td(s.data))}function i(s){const o=new xe;s.status===404?o.log(1875):o.log(9999),n(o.resolve(s))}if(!e){const s=new xe;return s.log(1876),n(s.resolve())}Oe.client.get(`/api/5/2/jsonbag/slug/${e}`).then(r).catch(i)})}function ZD({uuid:e=""}){return new Promise((t,n)=>{function r(s){t(new Td(s.data))}function i(s){const o=new xe;s.status===404?o.log(1875):o.log(9999),n(o.resolve(s))}if(!e){const s=new xe;return s.log(1877),n(s.resolve())}Oe.client.get(`/api/5/2/jsonbag/uuid/${e}`).then(r).catch(i)})}
13const KD={get:zD,getByUuid:ZD};class Jl extends He{constructor(t){const n={cc_first_6:"ccFirst6",cc_last_4:"ccLast4",cc_type:"ccType",country_code_alpha2:"countryCode",description:"description",guid:"guid",merchant_type:"merchantType",postal_code:"postalCode",status:"status",user_guid:"userGuid",valid_thru:"validThru"};super(t,n),this._type="PaymentMethodModel"}}class Wb{constructor({data:t={},rules:n={}}={}){this.data=t,this.rules=n,this.ErrorModel=xe}process(){const t=this,n=this.data,r=this.rules;let i;return new Promise((s,o)=>{r.data?.length>0?r.data.some(a=>{let c=t.processRules(n,a.fields);if(c.hasErrors())(!i||c.errors.length<=i.errors.length)&&(i=c);else return i=c,!0}):i=this.processRules(n,r.fields),i.hasErrors()?o(i.resolve()):s(n)})}processRules(t,n){const r=new this.ErrorModel;return Object.keys(n).forEach(i=>{let s=n[i];Object.keys(s).forEach(o=>{switch(o){case"required":s[o]===!0&&(t[i]===void 0||t[i]===null||t[i].length===0)&&r.log(6e3,{field:i});break;case"regex":if(t[i]===void 0)break;new RegExp(s[o]).test(t[i])||r.log(6001,{field:i});break;case"values":if(t[i]===void 0)break;let c=!1;s[o].forEach(l=>{c||(c=l===t[i])}),c||r.log(6001,{field:i,values:s[o]});break;case"value":if(t[i]===void 0)break;s[o]!==t[i]&&r.log(6002,{field:i,value:s[o]});break;case"min_length":t[i]&&t[i].length<s[o]&&r.log(6003,{field:i,minLength:s[o]});break;case"max_length":t[i]&&t[i].length>s[o]&&r.log(6004,{field:i,maxLength:s[o]});break;case"type":s[o]==="bool"&&t[i]&&typeof t[i]!="boolean"&&r.log(6005,{field:i});break}})}),r}isValidRules(t){if(t||(t=this.rules),!t)return!1;let n=!1;return t.fields&&!(t.fields.constructor===Object&&Object.keys(t.fields).length===0)&&(n=!0),t.data?.length>0&&t.data.some(r=>{if(this.isValidRules(r))n=!0;else return n=!1,!0}),n}}function Lr(e,t){return new Promise((n,r)=>{if(t)if(t.type==="http")Oe.client.get(t.url).then(i=>{let s;Array.isArray(i.data)?s=i:s=i.data;const o=new Wb({data:e,rules:s});o.isValidRules()?o.process().then(n).catch(r):n(e)}).catch(i=>{const s=new xe;r(s.resolve(i))});else if(t.type==="local"){const i={fields:t.rules},s=new Wb({data:e,rules:i});s.isValidRules()?s.process().then(n).catch(r):n(e)}else n(e);else n(e)})}function YD(e={}){const t="/api/premium/2/paymentmethods/create";return new Promise((n,r)=>{const i=new xe;function s(d){n(new Jl(d.data.data.result))}function o(d){d?.data?.errors&&d.data.errors.forEach(v=>{switch(v.code){case"INVALID_VALUE_SELECTION":i.log(6002);break;case"FAILED_TO_SUBSCRIBE":i.log(3034);break}}),r(i.resolve(d))}const a={};e.braintreeNonce?a.braintree_nonce=e.braintreeNonce:e.merchantNonce&&!e.merchantType||e.merchantNonce&&e.merchantType==="Braintree"?a.braintree_nonce=e.merchantNonce:a.merchant_nonce=e.merchantNonce,a.merchant_type=e.merchantType||"Braintree",a.description=e.description||"Payment Method",e.arkoseSession&&(a.arkose_session=e.arkoseSession),e.braintreeDeviceData&&(a.braintree_device_data=e.braintreeDeviceData),e.postalCode&&(a.postal_code=e.postalCode),e.countryCode&&(a.country_code_alpha2=e.countryCode),e.kountSessionId&&(a.kount_session_id=e.kountSessionId);function c(d){d.forEach(v=>{let R;if(v.raw)switch(v.raw.field){case"braintree_nonce":v.code==="6000"&&(R=3021);break;case"merchant_type":v.code==="6001"&&(R=3022)}R&&i.log(R,v)}),r(i.resolve(d))}function l(){Oe.client.post(t,a).then(s).catch(o)}Lr(a,{type:"http",url:t}).then(l).catch(c)})}function XD(e={}){return new Promise((t,n)=>{const r=new xe;if(!e.guid)return r.log(3001),n(r.resolve());function i(o){t(new Jl(o.data.data.result))}function s(o){o?.data?.errors&&o.data.errors.forEach(a=>{a.code==="NOT_FOUND"&&r.log(1724)}),n(r.resolve(o))}Oe.client.post(`/api/premium/2/paymentmethods/${e.guid}/disable`).then(i).catch(s)})}function JD(e={}){return new Promise((t,n)=>{const r=new xe;if(!e.guid)return r.log(3001),n(r.resolve());function i(o){t(new Jl(o.data.data))}function s(o){o.status===404&&r.log(1724),n(r.resolve(o))}Oe.client.get(`/api/premium/2/paymentmethods/${e.guid}`).then(i).catch(s)})}class c_ extends He{constructor(t){const n={braintree_device_data:{_REMAP:"braintreeDeviceData",required:"required"},braintree_nonce:{_REMAP:"braintreeNonce",client_token:"clientToken",required:"required"},country_code_alpha2:{_REMAP:"countryCode",required:"required"},merchant_type:{_REMAP:"merchantType",required:"required",values:"values"},postal_code:{_REMAP:"postalCode",required:"required"}};super(t,n),this._type="PaymentMethodConfigModel"}}function qD(e={}){return new Promise((t,n)=>{const r=new xe;function i(a){const c=a.data.data[0].fields;t(new c_(c))}function s(a){n(r.resolve(a))}const o={};e&&e.merchantType&&(o.params=e),Oe.client.get("/api/premium/2/paymentmethods/create",o).then(i).catch(s)})}class u_ extends He{constructor(t){const n={};super(t,n),this.mapPaymentMethods(t),this._type="PaymentMethodListModel"}mapPaymentMethods(t){if(!Array.isArray(t)){this.paymentMethods=[];return}this.paymentMethods=t.map(n=>new Jl(n))}}function QD(){return new Promise((e,t)=>
13{const n=new xe;function r(s){e(new u_(s.data.data))}function i(s){t(n.resolve(s))}Oe.client.get("/api/premium/2/paymentmethods").then(r).catch(i)})}class d_ extends He{constructor(t){const n={consumer:"consumer",name:"name",merchantproduct:{merchant_type:"merchantType",plan_name:"planName",merchant_product_id:"merchantProductId"},code:"code",id:"id",period:"period",spec:{billing_period:"billingPeriod",is_gift:"isGift",price:"price",currency:"currency",freetrial_duration:"freetrialDuration",recurring:"recurring"}};super(t,n),this._type="SubscriptionProductModel"}}class Ai extends He{constructor(t){const n={discount:"discount",revenue:"revenue",subscription_id:"subscriptionId",premium_status:"premiumStatus",most_recent_transaction:{_REMAP:"mostRecentTransaction",merchant_type:"merchantType",transaction_id:"transactionId"},paymentmethod_guid:"paymentmethodGuid",promos:{code:"code"},premium_next_pay_date:"premiumNextPayDate",premium_next_pay_amount:"premiumNextPayAmount",premium_free_trial_end_date:"premiumFreeTrialEndDate",user_guid:"userGuid",guid:"guid",premium_last_pay_date:"premiumLastPayDate",state:{active:"active",state:"state"},premium_expiration_date:"premiumExpirationDate",premium_signup_date:"premiumSignupDate"};super(t,n),this.product=new d_(t.product),super.mapDates(["premiumNextPayDate","premiumFreeTrialEndDate","premiumLastPayDate","premiumExpirationDate","premiumSignupDate"]),this._type="SubscriptionModel"}}function e2(e={}){return new Promise((t,n)=>{const r=new xe;if(e.subscriptionGuid||r.log(3e3),e.paymentMethodGuid||r.log(3001),r.hasErrors())return n(r.resolve());function i(a){t(new Ai(a.data.data.result))}function s(a){a?.data?.errors&&a.data.errors.forEach(c=>{switch(c.code){case"NOT_FOUND":r.log(1724);break;case"INVALID_PAYMENTMETHOD":r.log(3034);break}}),n(r.resolve(a))}const o={paymentmethod_guid:e.paymentMethodGuid};e.kountSessionId&&(o.kount_session_id=e.kountSessionId),Oe.client.post(`/api/premium/2/subscriptions/${e.subscriptionGuid}/change_paymentmethod`,o).then(i).catch(s)})}const t2={create:YD,disable:XD,get:JD,getConfig:qD,list:QD,change:e2},n2={Book:"book"};class cm extends He{constructor(t,n){const r={},i={"x-has-more":"hasMore","x-request-id":"requestId"};super(t,r),this.mapItems(t),this.mapDates(["items[]lastConsumed"]),n&&(this.copyObjectToInstance(this.mapProperties(n,i)),this.hasMore=!!Number(this.hasMore)),this._type="NextObjectsBulkModel"}mapItems(t){const n={container_asset_key:"containerAssetKey",container_asset_url:"containerAssetUrl",container_title:"containerTitle",container_type:"containerType",container_uuid:"containerUuid",item_type:"type",last_consumed:"lastConsumed",page_index:"pageIndex",panel_index:"panelIndex",status:"status",timestamp:"timestamp"};this.items=Object.keys(t).map(r=>{const i=t[r],s=n2[i.item_type],o={...this.mapProperties(i,n),contentId:r};return o.nextObject=new zo({values:[{item:i[s],item_type:i.item_type,metadata:{}}]}).collectionItems[0],o})}}function r2({includeBooks:e=!1,includeCollections:t=!1,limit:n=25,requestId:r=null,page:i=1}){return new Promise((s,o)=>{const a=new xe;function c(v){s(new cm(v.data,v.headers))}function l(v){v?.status===404&&a.log(1721),v?.status===400&&a.log(5008),o(a.resolve(v))}const d={params:{include_books:e,include_collections:t,limit:n,page:i}};r&&(d.params.request_id=r),Oe.client.get("/api/5/2/user/consume_next",d).then(c).catch(l)})}const i2={collection:"Collection",clip:"Clip",databag:"Databag",book:"Book",comicseries:"ComicSeries",shopifyproduct:"ShopifyProduct",clickoutobject:"ClickoutObject"};class h_ extends He{constructor(t,n){const r={};super(t,r),this.mapItems(t,n),this._type="NextObjectsModel"}mapItems(t,n){let r=t;if(n!=="collectionitems"){const i=i2[n];t&&t.map&&(r=t.map(s=>({item:s,item_type:i,metadata:{}})))}this.nextObjects=new zo({values:r}).collectionItems}}function o2({containerType:e,containerUuid:t,objectType:n,objectUuid:r}){return new Promise((i,s)=>{const o=new xe;if((!e||!n)&&o.log(7900),(!t||!r)&&o.log(1715),o.hasErrors())return s(o.resolve());function a(v){i(new h_(v.data,e==="collection"?"collectionitems":n))}
13function c(v){v?.status===404&&o.log(1721),s(o.resolve(v))}let l=`/api/5/2/${e}/${t}/${n}/${r}/next`;const d={};Oe.client.get(l,d).then(a).catch(c)})}function s2({containers:e}){return new Promise((t,n)=>{const r=new xe;function i(c){t(new cm(c.data))}function s(c){c&&c.status===400&&r.log(1721),n(r.resolve(c))}const o=e.map(({type:c,uuid:l})=>`${c.toLowerCase()}:${l}`);Oe.client.post("/api/5/2/bulk/user/consume_next",o).then(i).catch(s)})}class f_ extends He{constructor(t){const n={message:"message",synchronous:"synchronous"};super(t,n),this._type="NextObjectsIgnoreModel"}}function a2({containerType:e=null,containerUuid:t=null}){return new Promise((n,r)=>{const i=new xe;function s(c){n(new f_(c.data))}function o(c){c&&c.status===404&&i.log(1721),c&&c.status===400&&i.log(5008),r(i.resolve(c))}if(!e||!t)return i.log(5008),r(i.resolve());const a={};Oe.client.post(`/api/5/2/${e}/${t}/ignore`,a).then(s).catch(o)})}const l2={consumeNext:r2,get:o2,getBulk:s2,ignore:a2};function c2(e){return new Promise((t,n)=>{const r=new xe;if(!e||!e.promoCode)return r.log(3012),n(r.resolve());let i=`/api/premium/2/promos/${e.promoCode}`;e.productId&&(i+=`?pid=${e.productId}`);function s(d){const v=new wd(d.data);t(v)}function o(d){d.data?.errors?.forEach(v=>{c(v.code)}),n(r.resolve(d))}function a(){Oe.client.get(i).then(s).catch(o)}function c(d){switch(d){case"NOT_FOUND":r.log(3012);break;case"MAX_USAGE":r.log(3013);break;case"EXPIRED":r.log(3014);break;case"APPLIED":r.log(3020);break;default:r.log(9999)}}function l(d){d.forEach(v=>{v.raw?c(v.raw.code):r.log(9999)}),n(r.resolve())}Lr(e,{type:"http",url:i}).then(a).catch(l)})}class p_ extends He{constructor(t){const n={guid:"guid",result:{free_trial:{_REMAP:"freeTrial",end_date:"endDate",had_free_trial:"hadFreeTrial",in_free_trial:"inFreeTrial"},subscription_guid:"subscriptionGuid",user_guid:"userGuid"},user_guid:"userGuid"};super(t,n),this.mapPromos(t),this._type="PromocodeSuccessModel"}mapPromos(t){t.result&&t.result.promos&&(this.result.promos=t.result.promos.map(n=>new wd(n)))}}function u2(e){return new Promise((t,n)=>{const r=new xe;if(!e||!e.promoCode)return r.log(3012),n(r.resolve());const i={promo_code:e.promoCode},s="/api/premium_profiles/me/apply_promo";function o(d){const v=new p_(d.data);t(v)}function a(d){d.data?.errors?.forEach(v=>{switch(v.code){case"PROMO_NOT_FOUND":r.log(3012);break;case"PROMO_EXHAUSTED":r.log(3014);break}}),n(r.resolve(d))}function c(){Oe.client.post(s,i).then(o).catch(a)}function l(d){d.forEach(v=>{v.code?v.code==="1003"&&r.log(1003):r.log(9999)}),n(r.resolve())}Lr(i,{type:"http",url:s}).then(c).catch(l)})}class g_ extends He{constructor(t){const n={code:"code"};super(t,n),this._type="ExternalPromoModel"}}function d2(e){return new Promise((t,n)=>{const r=new xe;if(!e||!e.externalProperty)return r.log(3026),n(r.resolve());const i=`/api/premium/2/promos/external/get/${e.externalProperty}`;function s(l){const d=new g_(l.data);t(d)}function o(l){l.status===401?r.log(9002):l.data&&Array.isArray(l.data.errors)?l.data.errors.forEach(d=>{c(d.code)}):r.log(9999),n(r.resolve(l))}function a(){Oe.client.get(i).then(s).catch(o)}function c(l){switch(l){case"NOT_FOUND":r.log(3023);break;case"NOT_CANCELED":r.log(3024);break;case"NOT_MONIED":r.log(3025);break;default:r.log(9999)}}a()})}class Rd extends He{constructor(t){const n={code:"code",type:"type",comp_duration:"compDuration",marketing_description:"marketingDescription",descriptors:"descriptors",requires_paymentmethod:"requiresPaymentmethod",is_approved:"isApproved",uuid:"uuid",name:"name",slug:"slug",countries:"countries",date:"date"};super(t,n),this.mapAssetItems(t.assets),this._type="EstPromocodeModel"}mapAssetItems(t){if(!t||!Array.isArray(t)){this.assetItems=[];return}this.assetItems=t.map(n=>{const r={sku:n.sku,title:n.title,price:n.price,isActive:n.is_active,type:n.object.model,metadata:n.object.data.metadata,item:{}};return n.object.model==="Book"?r.item=new eo(n.object.data):r.item=n.object,r})}}function h2(e){return new Promise((t,n)=>{const r=new xe;if(!e||!e.promoCode)return r.log(3012),n(r.resolve());const i=`/api/premium/2/est/check/${e.promoCode}`,s=[{message:"Promo code already applied",code:3020},{message:"Promo code expired",code:3014},{message:"Promo code product unavailable",code:3027},{message:"Promo code at max usage",code:3013},{message:"promo code is not EST",code:3028}
13];function o(c){const l=new Rd(c.data);t(l)}function a(c){if(c.status===404)r.log(3012);else if(c.status===400&&c.data){const l=s.find(d=>c.data.indexOf(d.message)>-1);r.log(l?l.code:9999)}n(r.resolve(c))}Oe.client.get(i).then(o).catch(a)})}function f2(e){return new Promise((t,n)=>{const r=new xe;if(!e||!e.promoCode)return r.log(3015),n(r.resolve());const i=`/api/premium/2/est/redeem/${e.promoCode}`,s=[{message:"Promo code already applied",code:3020},{message:"Promo code expired",code:3014},{message:"Promo code product unavailable",code:3027},{message:"Promo code at max usage",code:3013},{message:"promo code is not EST",code:3028}];function o(c){const l=new Rd(c.data);t(l)}function a(c){if(c.status===401)r.log(1003);else if(c.status===404)r.log(3023);else if(c.status===400&&c.data){const l=s.find(d=>c.data.indexOf(d.message)>-1);r.log(l?l.code:9999)}n(r.resolve(c))}Oe.client.post(i).then(o).catch(a)})}class p2 extends He{constructor(t){const n={page:"page",num_pages:"numPages",page_size:"pageSize"};super(t,n),this.mapItems(t.items),this._type="EstPromocodeHistoryModel"}mapItems(t){this.items=t.map(n=>new Rd(n))}}function g2({page:e,size:t,order:n}){return new Promise((r,i)=>{const s=new xe,o=["title","-title","date","-date"];if(e&&isNaN(Number(e))&&s.log(3030),t&&isNaN(Number(t))&&s.log(3031),n&&!o.includes(n)&&s.log(3032),s.hasErrors())return i(s.resolve());const a={page:e||1};t&&(a.page_size=t),n&&(a.order=n);const c="/api/premium/2/est/history";function l(v){const R=new p2(v.data);r(R)}function d(v){v.status===401?s.log(1003):v.status===400&&s.log(3029),i(s.resolve(v))}Oe.client.get(c,{params:a}).then(l).catch(d)})}const m2={check:h2,getHistory:g2,redeem:f2},y2={checkPromo:c2,applyPromo:u2,getExternalPromo:d2,est:m2};class m_ extends He{constructor(t){const n={user_guid:"userGuid"};super(t,n),t.paging&&this.setPageData(t.paging),t.items&&this.mapPurchaseItems(t.items),this._type="PurchasesModel"}setPageData(t){this.count=t.total_items,this.numPages=t.total_pages,this.pageNumber=t.requested_page,this.perPage=t.items_per_page,this.previousPageUrl=t.previous_page_url,this.nextPageUrl=t.next_page_url}mapPurchaseItems(t){const n=["Admin Grant","PromoCode Grant","Purchased","Undefined"];this.items=t.map(r=>{const i={sku:r.sku,title:r.title,createdOn:r.create_dt,transactionOn:r.transaction_dt,source:n.find(s=>s===r.source)||"Undefined",isActive:r.is_active,state:r.state,type:r.object.model,metadata:r.object.data.metadata,item:{}};return r.object.model==="Book"?i.item=new eo(r.object.data):i.item=r.object,i})}}function b2({page:e,size:t,order:n,inactive:r,model:i,source:s}){return new Promise((o,a)=>{const c=new xe,l=["title","-title","purchase_date","-purchase_date"],d=["book"],v=["admingrant","all","promocodegrant","purchased","undefined"];if(e&&isNaN(Number(e))&&c.log(8101),t&&isNaN(Number(t))&&c.log(8102),n&&!l.includes(n)&&c.log(8103),r!==void 0&&typeof r!="boolean"&&c.log(8104),i&&!d.includes(i)&&c.log(8105),s&&!v.includes(s)&&c.log(8106),c.hasErrors())return a(c.resolve());const R={page:e||1};t&&(R.size=t),n&&(R.order=n),r!==void 0&&(R.inactive=r),i&&(R.model=i),s&&(R.source=s);const O="/api/premium/2/purchases/est/me";function $(T){const C=new m_(T.data);o(C)}function P(T){T.status===401?c.log(1003):T.status===400&&c.log(8100),a(c.resolve(T))}Oe.client.get(O,{params:R}).then($).catch(P)})}const v2={get:b2};class Is extends Error{}Is.prototype.name="InvalidTokenError";function C2(e){return decodeURIComponent(atob(e).replace(/(.)/g,(t,n)=>{let r=n.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}function I2(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return C2(t)}catch{return atob(t)}}function A2(e,t){if(typeof e!="string")throw new Is("Invalid token specified: must be a string");t||(t={});const n=t.header===!0?0:1,r=e.split(".")[n];if(typeof r!="string")throw new Is(`Invalid token specified: missing part #${n+1}`);let i;try{i=I2(r)}
13catch(s){throw new Is(`Invalid token specified: invalid base64 for part #${n+1} (${s.message})`)}try{return JSON.parse(i)}catch(s){throw new Is(`Invalid token specified: invalid json for part #${n+1} (${s.message})`)}}const Vb={decode:A2,InvalidTokenError:Is};class y_ extends He{constructor(t,n){const r={content_type:"contentType",content_uuid:"contentUUID",exp:"expiration",iat:"issuedAtTime",nbf:"notBeforeTime",rights:{can_read:"canRead",can_watch:"canWatch",hd_available:"hdAvailable",include_hd:"includeHD"}};super(t,r),this.jwtToken=n;const i=["expiration","issuedAtTime","notBeforeTime"];i.forEach(s=>this[s]=this[s]*1e3),super.mapDates(i),this._type="RightsModel"}}function w2({uuid:e,contentType:t}){const n=new xe;return new Promise((r,i)=>{if(e||n.log(1715),t||n.log(1716),n.hasErrors())return i(n.resolve());function s(a){let c;a.status===200&&(c=a.data);try{c=Vb.decode(c)}catch(d){return d&&typeof d=="object"&&d instanceof Vb.InvalidTokenError?n.log(1717):n.log(1718),i(n.resolve(a))}const l=new y_(c,a.data);r(l)}function o(a){a.data&&a.data.errors&&a.data.errors.forEach(c=>{switch(c.code){case 7:n.log(1716);break;case 2:n.log(1715)}}),i(n.resolve(a))}Oe.client.get(`/api/5/1/rights/${t}/${e}`).then(s).catch(o)})}const _2={get:w2};class b_ extends He{constructor(t){const n={reason:"reason",url:"url"};super(t,n),this._type="ShopUrlModel"}}function v_(e){return new Promise((t,n)=>{function r(s){t(new b_(s.data))}function i(s){const o=new xe;s.status===404&&o.log(1800),n(o.resolve(s))}Oe.client.get(`/shop/${e}`).then(r).catch(i)})}function S2(){return v_("homepage")}const E2={getHomepage:S2,getUrl:v_};function x2(e={}){const{subscriptionGuid:t,promoCode:n}=e;return new Promise((r,i)=>{const s=new xe;if(t||s.log(3e3),n||s.log(3015),s.hasErrors())return i(s.resolve());function o(c){const l=new Ai(c.data);r(l)}function a(c){const l=new xe;c.data&&c.data.errors&&c.data.errors.forEach(d=>{switch(d.code){case"APPLIED":return l.log(3020,d);case"MISSING_REQUIRED_VALUE":return l.log(3015,d);case"NOT_FOUND":return l.log(3015,d)}}),i(l.resolve(c))}Oe.client.post(`/api/premium/2/subscriptions/${t}/apply_promo`,{promo_code:n}).then(o).catch(a)})}function T2({subscriptionGuid:e}={}){return new Promise((t,n)=>{const r=new xe;if(e||r.log(3e3),r.hasErrors())return n(r.resolve());function i(o){const a=new Ai(o.data);a.premiumExpirationDate="",t(a)}function s(o){const a=new xe;n(a.resolve(o))}Oe.client.post(`/api/premium/2/subscriptions/${e}/cancel`).then(i).catch(s)})}function k2(e){const t=`/api/premium/2/subscriptions/${e.subscriptionGuid}/resubscribe`;return new Promise((n,r)=>{const i=new xe;function s(d){n(new Ai(d.data.data.result))}function o(d){d.data&&d.data.errors&&d.data.errors.forEach(v=>{switch(v.code){case"INVALID_VALUE":if(v.scope==="/receiver/resource_id")return i.log(3017);break;case"NOT_FOUND":return v.scope==="/receiver/resource_id"?i.log(3e3):v.scope==="/fields/paymentmethod_guid"?i.log(3001):i.log(2999);case"INVALID_PRODUCT":return i.log(3002);case"INVALID_VALUE_SELECTION":if(v.scope==="/fields/product_code")return i.log(3002);break;case"FAILED_TO_SUBSCRIBE":return i.log(3034)}}),r(i.resolve(d))}function a(d){Oe.client.post(t,d).then(s).catch(o)}function c(d){d.forEach(v=>{switch(v.code){case"6000":if(v.raw.field==="paymentmethod_guid")return i.log(3001);if(v.raw.field==="product_code")return i.log(3002);break}}),r(i.resolve(d))}const l={paymentmethod_guid:e.paymentMethodGuid,product_code:String(e.productId)};e.kountSessionId&&(l.kount_session_id=e.kountSessionId),Lr(l,{type:"http",url:t}).then(a).catch(c)})}function R2(e){const t="/api/premium/2/subscriptions/subscribe";return new Promise((n,r)=>{const i=new xe;function s(d){n(new Ai(d.data.data.result))}function o(d){d.data&&d.data.errors&&d.data.errors.forEach(v=>{switch(v.code){case"EXISTING_ACTIVE_SUBSCRIPTION":return i.log(3003,v);case"UNHANDLED_EXCEPTION":if(v.field==="/promo_code")return i.log(3015);break;case"INVALID_VALUE":if(v.field==="/paymentmethod_guid")return i.log(3001);break;case"NOT_FOUND":if(v.field==="/paymentmethod_guid")return i.log(3001);break;case"MISSING_REQUIRED_VALUE":switch(v.field){case"/paymentmethod_guid":return i.log(3001);case"/product_code":return i.log(3002)}break;case"INVALID_VALUE_SELECTION":if(v.field==="/product_code")return i.log(3002);break;case"INVALID_PAYMENTMETHOD":return i.log(3001);case"FAILED_TO_SUBSCRIBE":return i.log(3034);case"TRANSACTION_FAILED":return i.log(3054)}}),r(i.resolve(d))}function a(d){Oe.client.post(t,d).then(s).catch(o)}function c(d){d.forEach(v=>{if(v&&v.raw&&v.raw.errors&&v.raw.errors.length)v.raw.errors.forEac
13h(R=>{if(R.code==="EXISTING_ACTIVE_SUBSCRIPTION")return i.log(3003,R);i.log(9999,v)});else{switch(v.code){case"6000":if(v.raw.field==="paymentmethod_guid")return i.log(3001);if(v.raw.field==="product_code")return i.log(3002);break;case"6002":if(v.raw.field==="product_code")return i.log(3002);break}i.log(9999,v)}}),r(i.resolve())}const l={paymentmethod_guid:e.paymentMethodGuid,product_code:String(e.productId)};e.promoCode&&(l.promo_code=e.promoCode),e.vendorSource&&(l.vendor_source=e.vendorSource),e.promotionalCatalog&&(l.promotion=e.promotionalCatalog),e.arkoseSession&&(l.arkose_session=e.arkoseSession),e.braintreeDeviceData&&(l.braintree_device_data=e.braintreeDeviceData),e.kountSessionId&&(l.kount_session_id=e.kountSessionId),Lr(l,{type:"http",url:t}).then(a).catch(c)})}function L2({subscriptionGuid:e}={}){return new Promise((t,n)=>{const r=new xe;if(e||r.log(3e3),r.hasErrors())return n(r.resolve());function i(o){const a=new Ai(o.data);t(a)}function s(o){const a=new xe;n(a.resolve(o))}Oe.client.get(`/api/premium/2/subscriptions/${e}`).then(i).catch(s)})}class C_ extends He{constructor(t){const n={};super(t,n),this.subscriptions=[],t.length&&this.mapSubscriptions(t),this._type="SubscriptionListModel"}mapSubscriptions(t){this.subscriptions=t.map(n=>new Ai(n))}}function O2(){return new Promise((e,t)=>{const n=new xe;function r(s){const o=new C_(s.data);e(o)}function i(s){t(n.resolve(s))}Oe.client.get("/api/premium/2/subscriptions").then(r).catch(i)})}function N2(e){return new Promise((t,n)=>{const r=new xe;function i(d){t(new Ai(d.data.data.result))}function s(d){d?.data?.errors&&d.data.errors.forEach(v=>{switch(v.code){case"UNHANDLED_EXCEPTION":if(v.field==="/promotion")return r.log(3015);break;case"INVALID_VALUE":if(v.field==="/paymentmethod_guid")return r.log(3001);break;case"NOT_FOUND":if(v.field==="/paymentmethod_guid")return r.log(3001);break;case"INVALID_VALUE_SELECTION":if(v.field==="/product_code")return r.log(3002);break;case"INVALID_PAYMENTMETHOD":return r.log(3001);case"FAILED_TO_SUBSCRIBE":return r.log(3034)}}),n(r.resolve(d))}const o=`/api/premium/2/subscriptions/${e.subscriptionGuid}/resubscribe`;function a(d){Oe.client.post(o,d).then(i).catch(s)}function c(d){d.forEach(v=>{switch(v.code){case"6000":if(v.raw.field==="paymentmethod_guid")return r.log(3001);if(v.raw.field==="product_code")return r.log(3002);if(v.raw.field==="promotion")return r.log(3015);break;case"6002":if(v.raw.field==="product_code")return r.log(3002);break;default:r.log(9999,v)}}),n(r.resolve())}const l={};e.productId&&(l.product_code=String(e.productId)),e.paymentMethodGuid&&(l.paymentmethod_guid=e.paymentMethodGuid),e.promoCode&&(l.promo_code=e.promoCode),e.promotion&&(l.promotion=e.promotion),e.kountSessionId&&(l.kount_session_id=e.kountSessionId),Lr(l,{type:"http",url:o}).then(a).catch(c)})}const P2={applyPromo:x2,cancel:T2,changeProduct:k2,create:R2,get:L2,list:O2,resubscribe:N2};class I_ extends He{constructor(t){const n={code:"code",language:"language",url:"url"};super(t,n),this._type="SubtitleModel"}}class A_ extends He{constructor(t){const n={};super(t,n),this.subtitles=[],t&&Array.isArray(t)&&this.mapSubtitles(t),this._type="SubtitlesModel"}mapSubtitles(t){this.subtitles=t.map(n=>new I_(n))}}function $2({uuid:e,format:t="srt"}){return new Promise((n,r)=>{const i=new xe;function s(c){const l=new A_(c.data);n(l)}function o(c){c?.status===404&&i.log(1715),r(i.resolve(c))}if(e||i.log(1715),i.hasErrors())return r(i.resolve());const a=`/api/5/2/video/${e}/subtitles/${t}`;Oe.client.get(a).then(s).catch(o)})}const M2={getByUuid:$2};class w_ extends He{constructor(t){const n={combined_rate:"combinedRate",postal_code:"postalCode",base_price:"basePrice",discount_amount:"discountAmount",subtotal:"subtotal",tax_amount:"taxAmount",total:"total",product_code:"productCode",promo_code:"promoCode",currency_symbol:"currencySymbol",currency_code:"currencyCode"};super(t,n),this._type="TaxModel"}}function D2(e={}){return new Promise((t,n)=>{const r=new xe;function i(a){t(new w_(a.data))}function s(a){a.data?.errors&&a.data.errors.forEach(c=>{switch(c.code){case"INVALID_PRODUCT":r.log(3043);break;case"BAD_REQUEST":r.log(5008);break;case"NOT_FOUND":c.reason.indexOf("Payment method with guid")>-1&&r.log(3044),c.reason.indexOf("Sales tax rate")>-1&&r.log(3033);break}}),n(r.resolve(a))}const o={};if((e.paymentMethodGuid&&(e.postalCode||e.countryCode)||!e.paymentMethodGuid&&!(e.postalCode&&e.countryCode))&&r.log(5008),e.paymentMethodGuid&&(o.paymentmethod_guid=e.paymentMethodGuid),e.postalCode&&(o.postal_code=e.postalCode),e.countryCode&&(o.country_code_alpha2=e.countryCode),e.productId&&(o.product_code=e.productId),e.promoCode&&(o.promo_code=e.promoCode),r.hasErrors())return n(r.resolve());Oe.client.get("/api/premium/2/tax",{params:o}).then(i).catch(s)})}const B2={get:D2};function F2(e){const t="/api/users/login";return e.arkoseSession&&(e.arkose_session=e.arkoseSession,delete e.arkoseSession),new Promise((n,r)=>{const i=new xe;function s(l){const d=new kd(l.data.result);Oe.setAuthorizationToken(d.sessionId),n(d)}function o(l){let d=l?.data?.errors??[];d?.[0]?.code===404?i.log(1009):d?.[0]?.code==="INVALID_LOGIN_LOCKED"?i.log(1031,d[0]):d?.[0]?.code==="INVALID_LOGIN"&&i.log(1009),r(i.resolve(l))}function a(){Oe.client.post(t,e).then(s).catch(o)}function c(l){l.forEach(d=>{d.raw&&(d.raw.field==="password"?i.log(1001):d.raw.field==="username"?i.log(1005):d.raw.field==="email"&&i.log(1010))}),r(i.resolve(l))}Oe.setAuthorizationToken(null),Lr(e,{type:"http",url:t}).then(a).catch(c)})}function H2(){return new Promise((e,t)=>
13{function n(){Oe.setAuthorizationToken(null),e({success:!0})}function r(i){const s=new xe;if(i.sessionExpired)return n();t(s.resolve(i))}Oe.client.post("/api/users/me/logout").then(n).catch(r)})}function W2(e){const t="/api/users/register";return e.arkoseSession&&(e.arkose_session=e.arkoseSession,delete e.arkoseSession),e.additionalTraits&&(e.additional_traits=e.additionalTraits,delete e.additionalTraits),e.loginOnSuccess&&(e.login_on_success=String(e.loginOnSuccess),delete e.loginOnSuccess),new Promise((n,r)=>{const i=new xe;function s(d){const v=new kd(d.data.result);n(v)}function o(d){let v=d?.data?.errors??[];v?.[0]&&v.forEach(R=>{R.code===400?i.log(1007):R.code==="DF602"?i.log(1021):R.code==="USER_ALREADY_EXISTS"&&i.log(1008)}),r(i.resolve(d))}function a(){Oe.client.post(t,e).then(s).catch(o)}function c(d){return d.length<=1?d:[{code:1035,validatorError:{code:"6001",message:"Invalid field format",field:""}}]}function l(d){let v=[];d.forEach(R=>{let O;if(R.raw)switch(R.raw.field){case"email":switch(R.code){case"6000":O=1006;break;case"6001":O=1006;break}break;case"username":switch(R.code){case"6000":O=1005;break;case"6001":O=1021;break;case"6004":O=1005;break}break;case"password":switch(R.code){case"6000":O=1001;break;case"6003":O=1001;break}break;case"requires_password_reset":O=1032;break;case"marketing_lang":v.push({code:1033,validatorError:R});break;case"marketing_country":v.push({code:1034,validatorError:R});break}O&&i.log(O,R)}),c(v).forEach(R=>{i.log(R.code,R.validatorError)}),r(i.resolve(d))}Oe.setAuthorizationToken(null),Lr(e,{type:"http",url:t}).then(a).catch(l)})}function V2(e){return new Promise((t,n)=>{const r=new xe;function i(v){t(v.data.result)}function s(v){v?.data?.errors&&v.data.errors.forEach(R=>{switch(R.code){case"VALUE_PATTERN_MISMATCH":r.log(1006);break;case"USER_NOT_FOUND":r.log(1014);break}}),n(r.resolve(v))}const o=new RegExp(/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/gim),a={};if(o.test(e)?a.email=e:e&&(a.username=e),!a.email&&!a.username&&r.log(1006),r.hasErrors())return n(r.resolve());const c="/api/users/forgot_password";function l(){Oe.client.post(c,a).then(i).catch(s)}function d(v){v.forEach(R=>{R.raw&&R.raw.field==="email"&&r.log(1006)}),n(r.resolve(v))}Lr(a,{type:"http",url:c}).then(l).catch(d)})}function G2(e,t,n){return new Promise((r,i)=>{const s=new xe;function o(R){r(R.data.result)}function a(R){R?.data?.errors&&R.data.errors.forEach(O=>{switch(O.code){case"USER_NOT_FOUND":s.log(1e3);break;case"MISSING_REQUIRED_VALUE":s.log(1e3);break;case"PASSWORD_TOO_SHORT":s.log(1073);break;case"PASSWORD_USED_RECENTLY":s.log(1074);break;case"PASSWORD_TOO_SIMILAR":s.log(1075);break;case"PASSWORD_TOO_COMMON":s.log(1076);break;case"PASSWORD_ENTIRELY_NUMERIC":s.log(1077);break;case"PASSWORD_MISSING_CHARS":s.log(1078);break;case"PASSWORD_CHANGED_RECENTLY":s.log(1079);break}O.message==="Password reset token already used or invalid."&&s.log(1e3)}),i(s.resolve(R))}if(e||s.log(1e3),t||s.log(1001),s.hasErrors())return i(s.resolve());var c={token:e,password:t};n&&(c.arkose_session=n);const l="/api/users/reset_password";function d(){Oe.client.post(l,c).then(o).catch(a)}function v(R){R.forEach(O=>{O.raw&&(O.code==="6003"||O.code==="6004")&&O.raw.field==="password"&&s.log(1001)}),i(s.resolve(R))}Lr(c,{type:"http",url:l}).then(d).catch(v)})}function U2(){return new Promise((e,t)=>{function n(i){e(i)}function r(i){const s=new xe;t(s.resolve(i))}Oe.client.post("/api/users/set_cookie").then(n).catch(r)})}function j2({guid:e,token:t}={}){return new Promise((n,r)=>{function i(o){n(new He(o.data,{double_opt_in_status:"doubleOptInStatus"}))}function s(o){const a=new xe;o.status===400?o?.data?.errors?.[0]?.code==="INVALID_TOKEN"?a.log(1085):o?.data?.errors?.[0]?.code==="MISSING_REQUIRED_VALUE"?a.log(1086):a.log(9999):o?.status===404?a.log(1014):a.log(9999),r(a.resolve(o))}if(e)if(t){if(!/^[a-fA-F0-9]+$/.test(t)){const o=new xe;return o.log(1085),r(o.resolve())}}else{const o=new xe;return o.log(1086),r(o.resolve())}else{const o=new xe;return o.log(1014),r(o.resolve())}Oe.client.post(`/api/users/${e}/confirm_double_opt_in/`,{token:t}).then(i).catch(s)})}const z2={confirmDoubleOptIn:j2,login:F2,logout:H2,register:W2,requestPasswordToken:V2,resetPassword:G2,setCookie:U2};class __ extends He{constructor(t){const n={encoded_data:"encodedData"};super(t,n),this._type="AdxModel"}}function Z2(e={}){return new Promise((t,n)=>{function r(o){t(new __(o.data))}function i(o){const a=new xe;n(a.resolve(o))}const s={...e};s.useCase&&(s.use_case=s.useCase,delete s.useCase),Oe.client.post("/api/users/adx/",s).then(r).catch(i)})}const K2={get:Z2},S_={answered_mature:"answeredMature",avatar:"avatar",banner:"banner",current_status:"currentStatus",date_joined:"signupDate",dob:"dob",email:"email",email_verified:"emailVerified",first_name:"firstName",gender:"gender",last_name:"lastName",locale:"language",user_guid:"guid",username:"username",marketing_lang:"marketingLang",marketing_country:"marketingCountry",opt_in:"optIn",partner_opt_in:"partnerOptIn"};class to extends He{constructor(t){const n=S_;super(t,n),super.mapDates(["dob","signupDate"]),this._type="ProfileModel"}}function Y2(){return new Promise((e,t)=>
13{const n=new xe;function r(s){e(new to(s.data))}function i(s){t(n.resolve(s))}Oe.client.post("/api/users/me/remove_avatar").then(r).catch(i)})}function X2({avatar:e}={}){return new Promise((t,n)=>{function r(a){t(new to(a.data))}function i(a){const c=new xe;if(a.status===413&&c.log(7702),a.data){const l=a.data.errors;l&&l.forEach(d=>{const v=d.message;v&&v.indexOf("Image exceeds max dimension")>-1&&c.log(7701)})}n(c.resolve(a))}if(!e){const a=new xe;return a.log(7700),n(a.resolve())}const s=new FormData;s.append("avatar",e,e.name);const o={headers:{"content-type":"multipart/form-data"}};Oe.client.post("/api/users/me/upload_avatar",s,o).then(r).catch(i)})}const J2={remove:Y2,upload:X2};function q2(){return new Promise((e,t)=>{const n=new xe;function r(s){e(new to(s.data))}function i(s){t(n.resolve(s))}Oe.client.post("/api/users/me/remove_banner").then(r).catch(i)})}function Q2({banner:e}={}){return new Promise((t,n)=>{function r(a){t(new to(a.data))}function i(a){const c=new xe;if(a.status===413&&c.log(7802),a.data){const l=a.data.errors;l&&l.forEach(d=>{const v=d.message;v&&v.indexOf("Image exceeds max dimension")>-1&&c.log(7801)})}n(c.resolve(a))}if(!e){const a=new xe;return a.log(7800),n(a.resolve())}const s=new FormData;s.append("banner",e,e.name);const o={headers:{"content-type":"multipart/form-data"}};Oe.client.post("/api/users/me/upload_banner",s,o).then(r).catch(i)})}const eB={remove:q2,upload:Q2};class E_ extends He{constructor(t){const n={experiments:"experiments"};super(t,n),this._type="CohortModel"}}function tB(){return new Promise((e,t)=>{function n(i){e(new E_(i.data))}function r(i){const s=new xe;t(s.resolve(i))}Oe.client.get("/api/5/1/cohort-experiments/").then(n).catch(r)})}const nB={get:tB};class x_ extends He{constructor(t){const n={email:"email",email_verification_deadline:"emailVerificationDeadline",email_verified:"emailVerified",user_guid:"userGuid"};super(t,n),this._type="UserEmailStatusModel"}}function rB(){const e="/api/users/me/email_status/";return new Promise((t,n)=>{const r=new xe;function i(o){const a=new x_(o.data);t(a)}function s(o){n(r.resolve(o))}Oe.client.get(e).then(i).catch(s)})}class T_ extends He{constructor(t){const n={createdt:"createdt",guid:"guid",result:"result",topic_id:"topicId",topic_type:"topicType",user_guid:"userGuid"};super(t,n),this._type="UserEmailVerifyModel"}}function iB(e){const t="/api/users/me/verify_email",n={token:e.token};return new Promise((r,i)=>{const s=new xe;function o(c){r(new T_(c.data))}function a(c){c.data&&c.data.errors.forEach(d=>{switch(d.code){case"USER_NOT_FOUND":s.log(7500);break;case"INVALID_VALUE":s.log(7501);break;case"INVALID_REQUEST_BODY":s.log(7502);break;case"MISSING_REQUIRED_VALUE":s.log(7503);break}}),i(s.resolve(c))}Oe.client.post(t,n).then(o).catch(a)})}class fp extends He{constructor(t){const n={success:"success",message:"message",seconds_until_retry:"secondsUntilRetry"};super(t,n),this.secondsUntilRetry=this.secondsUntilRetry||0,this._type="UserEmailResendVerificationModel"}}function oB(){const e="/api/users/me/resend_verification_email";return new Promise((t,n)=>{const r=new xe;function i(o){t(new fp(o.data))}function s(o){switch(o.status){case 400:const a=new fp(o.data).secondsUntilRetry;r.log(7504,{secondsUntilRetry:a});break;case 401:r.log(1003);break;default:r.log(9999)}n(r.resolve(o))}Oe.client.get(e).then(i).catch(s)})}const sB={status:rB,verify:iB,resendVerification:oB};class pp extends He{constructor(t){const n={air_date:"airDate",book:"book",book_uuid:"bookUuid",container_type:"containerType",container_uuid:"containerUuid",event_ts:"eventTimestamp",is_watched:"isWatched",page_index:"pageIndex",panel_index:"panelIndex",series_id:"seriesId",timestamp:"timestamp"};super(t,n),this.isStarted=!0,this.book&&(this.book=new eo(this.book)),this._type="UserHistoryItemModel"}}class um extends He{constructor(t){const n={history:"history",last_key:"lastKey"};if(super(t,n),this.history)if(Array.isArray(this.history))this.history=this.history.map(r=>new pp(r));else for(let r in this.history)this.history[r]=new pp(this.history[r]);this._type="UserHistoryModel"}}function aB(e={}){return new Promise((t,n)=>{function r(o){t(new um(o.data))}function i(o){const a=new xe;n(a.resolve(o))}const s={params:{series_uuid:e.seriesUuid,content_uuid:e.contentUuid,limit:e.limit,start_from:e.startFrom,before_event_ts:e.beforeEventTimestamp,after_event_ts:e.afterEventTimestamp}};Oe.client.get("/api/comics/1/user/history/comic/",s).then(r).catch(i)})}function lB(e={}){return new Promise((t,n)=>{function r(o){t(new um(o.data))}function i(o){const a=new xe;n(a.resolve(o))}const s={params:{series_uuid:e.seriesUuid,content_uuid:e.contentUuid,limit:e.limit,start_from:e.startFrom,before_event_ts:e.beforeEventTimestamp,after_event_ts:e.afterEventTimestamp}};Oe.client.get("/api/comics/1/user/history/comic/reduced/",s).then(r).catch(i)})}const cB={comic:aB,comicReduced:lB};function uB({guid:e="me",title:t,description:n="",isPublic:r=!1}={}){return new Promise((i,s)=>{function o(l){i(new jo(l.data))}function a(l){const d=new xe;if(l.data){const v=l.data.message;
13v&&v.indexOf("Not authorized")>-1&&d.log(2200)}s(d.resolve(l))}if(!t){const l=new xe;return l.log(2201),s(l.resolve())}const c={title:t,description:n,is_public:r};Oe.client.post(`/api/lists/1/${e}`,c).then(o).catch(a)})}function dB({listUuid:e="favorites",type:t,contentUuid:n}={}){return new Promise((r,i)=>{const s=new xe;function o(){r({success:!0})}function a(c){if(c.data){const l=c.data.message;l&&(l.indexOf("Not authorized")>-1&&s.log(2200),l.indexOf("No UserList matches the given query")>-1&&s.log(2202),l.indexOf("Content type not supported")>-1&&s.log(2203),l.indexOf("No Book matches the given query")>-1&&s.log(2204),l.indexOf("No ComicSeries matches the given query")>-1&&s.log(2204),l.indexOf("Content already exists in list")>-1&&s.log(2205))}i(s.resolve(c))}if(t||s.log(2203),n||s.log(2204),s.hasErrors())return i(s.resolve());Oe.client.post(`/api/lists/2/list/${e}/${t}/${n}`).then(o).catch(a)})}function hB({uuid:e}={}){return new Promise((t,n)=>{const r=new xe;if(!e)return r.log(2202),n(r.resolve());function i(o){t(o.data)}function s(o){if(o.status===404)r.log(2202);else if(o.data){const a=o.data.message;a&&(a.indexOf("Not authorized")>-1&&r.log(2200),a.indexOf("No UserList matches the given query.")>-1&&r.log(2202),a.indexOf("A user cannot follow their own list")>-1&&r.log(2207))}n(r.resolve(o))}Oe.client.post(`/api/lists/2/list/${e}/follow`).then(i).catch(s)})}class k_ extends He{constructor(t){super(t),this.mapPaginationMeta(t),this.lists=[],t.items&&this._mapLists(t.items),this._type="FollowedListsModel"}_mapLists(t){this.lists=t.map(n=>new jo(n))}}function fB({contains:e,page:t,pageSize:n,sort:r,order:i}={}){return new Promise((s,o)=>{function a(d){s(new k_(d.data))}function c(d){const v=new xe;if(d.data){const R=d.data.message;R&&(R.indexOf("No UserList matches the given query")>-1&&v.log(2202),R==="Not authorized"&&v.log(2200))}o(v.resolve(d))}const l={};if(e&&(l.contains=e),t&&(l.page=t),n&&(l.page_size=n),r){let d="";i==="DESC"&&(d="-"),r==="created"?d+="created_at":r==="updated"?d+="updated_at":d+="title",l.sort=d}Oe.client.get("/api/lists/2/following",{params:l}).then(a).catch(c)})}class R_ extends He{constructor(t){const n={uuids:"uuids"};super(t,n),this.mapPaginationMeta(t),this._type="FollowingUuidsModel"}}function pB({page:e,pageSize:t}={}){return new Promise((n,r)=>{function i(a){n(new R_(a.data))}function s(a){const c=new xe;r(c.resolve(a))}const o={};e&&(o.page=e),t&&(o.page_size=t),Oe.client.get("/api/lists/2/following/uuids",{params:o}).then(i).catch(s)})}function gB({uuid:e="favorites",page:t,type:n,objectUuid:r,sort:i,order:s,pageSize:o}={}){return new Promise((a,c)=>{function l(R){a(new jo(R.data))}function d(R){const O=new xe;if(R.data){const $=R.data.message;$&&($.indexOf("No DramaProfile matches the given query")>-1&&O.log(2200),$.indexOf("No UserList matches the given query")>-1&&O.log(2202),$==="Not authorized"&&O.log(2200))}c(O.resolve(R))}const v={};if(t&&(v.page=t),o&&(v.page_size=o),n&&(v.content_type=n),r&&(v.object_uuid=r),i){let R="";s==="DESC"&&(R="-"),i==="created"?R+="created_at":i==="sort"?R+="sort_order":R+="title",v.sort=R}Oe.client.get(`/api/lists/2/list/${e}`,{params:v}).then(l).catch(d)})}class L_ extends He{constructor(t){super(t,{}),this.lists=[],t&&Array.isArray(t)&&this._mapLists(t),this._type="UserListsModel"}_mapLists(t){this.lists=t.map(n=>new jo(n))}}function mB({guid:e="me",uuid:t,sort:n,order:r}={}){return new Promise((i,s)=>{function o(l){i(new L_(l.data))}function a(l){const d=new xe;if(l.data){const v=l.data.message;v&&(v.indexOf("No DramaProfile matches the given query")>-1&&d.log(2200),v==="Not authorized"&&d.log(2200))}s(d.resolve(l))}const c={};if(t&&(c.contains=t),n){let l="";r==="DESC"&&(l="-"),n==="created"?l+="created_at":n==="updated"?l+="updated_at":l+="title",c.sort=l}Oe.client.get(`/api/lists/1/${e}`,{params:c}).then(o).catch(a)})}class O_ extends He{constructor(t){super(t,{}),this.items=t,this._type="UserListsItemsModel"}}function yB({guid:e="me"}={}){return new Promise((t,n)=>{function r(s){t(new O_(s.data))}function i(s){const o=new xe;if(s?.data){const a=s.data.message;a&&a==="Not authorized"&&o.log(2200)}s?.status===404&&o.log(2206),n(o.resolve(s))}Oe.client.get(`/api/lists/1/${e}/item-uuids`).then(r).catch(i)})}function bB({uuid:e}={}){return new Promise((t,n)=>{function r(){t({success:!0})}function i(s){const o=new xe;if(s.data){const a=s.data.message;a&&(a.indexOf("Not authorized")>-1&&o.log(2200),a.indexOf("No UserList matches the given query")>-1&&o.log(2202))}n(o.resolve(s))}if(!e){const s=new xe;return s.log(2202),n(s.resolve())}Oe.client.delete(`/api/lists/2/list/${e}`).then(r).catch(i)})}function vB({listUuid:e="favorites",type:t,contentUuid:n}={}){return new Promise((r,i)=>{const s=new xe;function o(){r({success:!0})}function a(c){if(c.data){const l=c.data.message;l&&(l.indexOf("Not authorized")>-1&&s.log(2200),l.indexOf("No UserList matches the given query")>-1&&s.log(2202),l.indexOf("Content type not supported")>-1&&s.log(2203),l.indexOf("No UserListItem matches the given query")>-1&&s.log(2204))}i(s.resolve(c))}if(t||s.log(2203),n||s.log(2204),s.hasErrors())return i(s.resolve());Oe.client.delete(`/api/lists/2/list/${e}/${t}/${n}`).then(o).catch(a)})}function CB({uuid:e}={}){return new Promise((t,n)=>{const r=new xe;if(!e)return r.log(2202),n(r.resolve());function i(o){t(o.data)}function s(o){if(o.status===404)r.log(2202);else if(o.data){const a=o.data.message;a&&(a.indexOf("Not authorized")>-1&&r.log(2200),a.indexOf("No UserList matches the given query.")>-1&&r.log(2202))}n(r.resolve(o))}Oe.client.delete(`/api/lists/2/list/${e}/follow`).then(i).catch(s)})}function IB({uuid:e,title:t,description:n,isPublic:r}){return new Promise((i,s)=>{function o(l){i(new jo(l.data))}function a(l){const d=new xe;if(l.data){const v=l.data.message;
13v&&v.indexOf("Not authorized")>-1&&d.log(2200)}s(d.resolve(l))}if(!e){const l=new xe;l.log(2202),s(l.resolve());return}const c={};typeof t=="string"&&(c.title=t),typeof n=="string"&&(c.description=n),typeof r=="boolean"&&(c.is_public=r),Oe.client.put(`/api/lists/2/list/${e}`,c).then(o).catch(a)})}function AB({listUuid:e="favorites",type:t,contentUuid:n,sort:r}={}){return new Promise((i,s)=>{const o=new xe;function a(){i({success:!0})}function c(d){if(d.data){const v=d.data.message;v&&(v.indexOf("Not authorized")>-1&&o.log(2200),v.indexOf("No UserList matches the given query")>-1&&o.log(2202),v.indexOf("Content type not supported")>-1&&o.log(2203),v.indexOf("No UserListItem matches the given query")>-1&&o.log(2204))}s(o.resolve(d))}if(t||o.log(2203),n||o.log(2204),o.hasErrors())return s(o.resolve());const l={sort_order:r||0};Oe.client.put(`/api/lists/2/list/${e}/${t}/${n}`,l).then(a).catch(c)})}class N_ extends He{constructor(t){super(t,{}),this.type="",this.uuid="",t&&typeof t=="string"&&this._mapAttributes(t),this._type="UserListUrnModel"}_mapAttributes(t){const n=t.split(":");n.length<3||(this.type=n[1],this.uuid=n[2])}}class P_ extends He{constructor(t){super(t,{}),t&&Array.isArray(t)&&this._mapUrns(t),this._type="UserListUrnsModel"}_mapUrns(t){this.urns=t.map(n=>new N_(n))}}function wB({uuid:e="favorites"}={}){return new Promise((t,n)=>{function r(s){t(new P_(s.data))}function i(s){const o=new xe;if(s?.data){const a=s.data.message;a&&a==="Not authorized"&&o.log(2200)}s?.status===404&&o.log(2206),n(o.resolve(s))}Oe.client.get(`/api/lists/2/list/${e}/item-urns`).then(r).catch(i)})}const _B={create:uB,createItem:dB,follow:hB,following:fB,followingUuids:pB,get:gB,list:mB,listsItems:yB,remove:bB,removeItem:vB,unfollow:CB,update:IB,updateItem:AB,urns:wB};function SB(){return new Promise((e,t)=>{function n(i){e(new to(i.data))}function r(i){const s=new xe;t(s.resolve(i))}Oe.client.get("/api/users/me/profile").then(n).catch(r)})}function EB(e){const t="/api/users/me/update_profile",r=new Vw(S_).mapProperties(e,!0);return new Promise((i,s)=>{const o=new xe,a=/\d{4}-\d{2}-\d{2}/;if(r.dob&&!a.exec(r.dob))return o.log(1902),s(o.resolve());function c(R){i(new to(R.data.result))}function l(R){R?.data?.errors&&R.data.errors.forEach(O=>{switch(O.code){case"INVALID_VALUE_SELECTION":case"INVALID_VALUE":case"VALUE_PATTERN_MISMATCH":o.log(1900);break;case"EMAIL_ADDRESS_TAKEN":o.log(1008);break;default:o.log(9999)}}),s(o.resolve(R))}function d(){Oe.client.post(t,{...r}).then(c).catch(l)}function v(R){R.forEach(O=>{let $;if(O.raw)switch(O.raw.field){case"marketing_lang":$=1904;break;case"marketing_country":$=1903;break}$&&o.log($,O)}),s(o.resolve(R))}Lr({...r},{type:"http",url:t}).then(d).catch(v)})}function xB(e){return new Promise((t,n)=>{function r(s){t(new to(s.data.result))}function i(s){const o=new xe;s?.data?.errors&&s.data.errors.forEach(a=>{switch(a.code){case"MISSING_REQUIRED_VALUE":o.log(1005);break;case"VALUE_TOO_LONG":o.log(1024);break;case"VALUE_PATTERN_MISMATCH":o.log(1021);break;case"USERNAME_UNAVAILABLE":o.log(1007);break;default:o.log(9999)}}),n(o.resolve(s))}Oe.client.post("/api/users/me/update_login",{username:e}).then(r).catch(i)})}function TB({oldPassword:e,newPassword:t}){return new Promise((n,r)=>{const i=new xe;function s(){n({success:!0})}function o(c){c?.data?.errors&&c.data.errors.forEach(l=>{switch(l.code){case"MISSING_REQUIRED_VALUE":i.log(1025);break;case"VALUE_TOO_SHORT":i.log(1001);break;case"INVALID_LOGIN":i.log(1009);break;case"PASSWORD_USED_RECENTLY":i.log(1074);break;case"PASSWORD_TOO_SIMILAR":i.log(1075);break;case"PASSWORD_TOO_COMMON":i.log(1076);break;case"PASSWORD_ENTIRELY_NUMERIC":i.log(1077);break;case"PASSWORD_MISSING_CHARS":i.log(1078);break;case"PASSWORD_CHANGED_RECENTLY":i.log(1079);break}}),r(i.resolve(c))}const a={old_password:e,new_password:t};Oe.client.post("/api/users/me/update_password",a).then(s).catch(o)})}const kB={get:SB,update:EB,updateLogin:xB,updatePassword:TB},RB={account:z2,adx:K2,avatar:J2,banner:eB,cohort:nB,email:sB,history:cB,lists:_B,profile:kB};class $_ extends He{constructor(t){const n={name:"name",order:"order"};super(t,n),this._type="ViewerRatingsModel"}}class Ld extends He{constructor(t){const n={age_rating:"ageRating",country:"country",ratings:"ratings",tv_rating:"tvRating"};super(t,n),t.ratings&&(this.ratings=[],this._mapItems(t.ratings)),this._type="ViewerModel"}_mapItems(t){this.ratings=t.map(n=>new $_(n))}}function LB(){return new Promise((e,t)=>
13{function n(i){e(new Ld(i.data))}function r(i){const s=new xe;i.status===401&&s.log(9002),t(s.resolve(i))}Oe.client.get("/api/5/viewer/pin").then(n).catch(r)})}function OB(e={}){return new Promise((t,n)=>{function r(o){t(new Ld(o.data))}function i(o){const a=new xe;o?.data?.errors&&o.data.errors.forEach(c=>{if(c.code===7&&c?.text)for(let l in c.text)Array.isArray(c.text[l])&&c.text[l].forEach(d=>{d.indexOf("Invalid TV rating.")>-1&&a.log(1072),d.indexOf("Invalid age rating.")>-1&&a.log(1071),d.indexOf("Ensure this field has no more than 4 characters.")>-1&&a.log(1070)})}),n(a.resolve(o))}const s={age_rating:e.ageRating,tv_rating:e.tvRating,country:e.country,pin:e.pin};Oe.client.post("/api/5/viewer/pin",s).then(r).catch(i)})}const NB={get:LB,update:OB};function PB(){return new Promise((e,t)=>{function n(i){e(new Ld(i.data))}function r(i){const s=new xe;t(s.resolve(i))}Oe.client.get("/api/comics/1/ratings").then(n).catch(r)})}const $B={getComic:PB},MB={pin:NB,ratings:$B},DB={agreements:KM,bookmarks:XM,catalog:qM,checkin:oD,claims:lD,clip:CD,collections:SD,comics:OD,consumer:PD,device:BD,experiments:HD,gifting:VD,homepage:jD,images:Qi,jsonbag:KD,nextObjects:l2,paymentMethods:t2,promocode:y2,purchases:v2,rights:_2,shop:E2,subscriptions:P2,subtitle:M2,tax:B2,user:RB,viewer:MB},BB={adx:__,agreements:Xl,base:He,browseComicsHomepage:l_,catalog:Uw,claims:sm,claimsFeature:Yw,claimsPremium:Sd,claimsProfile:Kw,clickoutObject:e_,clip:Ed,clipList:Jw,cohort:E_,collection:da,collectionItems:zo,comicBook:eo,comicPages:n_,comicSeries:xd,comicSeriesBooks:r_,consumer:i_,databag:qw,deviceCode:lm,estPromocode:Rd,error:xe,event:zw,eventItem:om,eventItemList:_d,eventList:Zw,eventUserDetails:jw,experiment:o_,externalPromo:g_,followedLists:k_,followingUuids:R_,gift:s_,homepage:a_,jsonbag:Td,nextObjects:h_,nextObjectsBulk:cm,nextObjectsIgnore:f_,paymentMethod:Jl,paymentMethodConfig:c_,paymentMethodList:u_,plan:Gw,product:im,profile:to,programSchedule:am,promocode:wd,promocodeSuccess:p_,purchases:m_,rights:y_,shopifyProduct:Qw,shopUrl:b_,subscription:Ai,subscriptionList:C_,subscriptionProduct:d_,subtitle:I_,subtitles:A_,tax:w_,user:kd,userEmailResendVerification:fp,userEmailStatus:x_,userEmailVerify:T_,userHistory:um,userHistoryItem:pp,userList:jo,userListItem:t_,userLists:L_,userListUrn:N_,userListUrns:P_,userListsItems:O_,viewer:Ld,viewerRatings:$_};class FB{constructor(t){this.config={api:{}},this.services=DB,this.models=BB,this.http=Oe,this.applyConfig(t)}applyConfig(t){this.config={...this.config,...t},this.config.axios&&(this.http.axios=this.config.axios),this._initHttpClient(),this.setArtSourceUrl()}_initHttpClient(){this.http.createClient(this.config.api),this.httpClient=this.http.client,this.config.api.consumerSecret&&this.http.setConsumerSecret(this.config.api.consumerSecret)}setArtSourceUrl(){this.services.images.types.setArtSourceUrl(this.config.artSourceUrl)}log(t){}}const Re=new FB({api:{baseURL:"/"}});function M_({Platform3:e,config:t,token:n=null}){e.config.consumerSecret=t.consumerSecret,e.config.artSourceUrl=t.artSourceUrl,e.http.setConsumerSecret(t.consumerSecret),e.setArtSourceUrl(t.artSourceUrl),n&&e.http.setAuthorizationToken(n)}let D_=null;function B_(e){D_=e}function HB(e){return D_}const WB="modulepreload",VB=function(e,t){return new URL(e,t).href},Gb={},Me=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){let l=function(d){return Promise.all(d.map(v=>Promise.resolve(v).then(R=>({status:"fulfilled",value:R}),R=>({status:"rejected",reason:R}))))};const o=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),c=a?.nonce||a?.getAttribute("nonce");i=l(n.map(d=>{if(d=VB(d,r),d in Gb)return;Gb[d]=!0;const v=d.endsWith(".css"),R=v?'[rel="stylesheet"]':"";if(r)for(let $=o.length-1;$>=0;$--){const P=o[$];if(P.href===d&&(!v||P.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${d}"]${R}`))return;const O=document.createElement("link");if(O.rel=v?"stylesheet":WB,v||(O.as="script"),O.crossOrigin="",O.href=d,c&&O.setAttribute("nonce",c),document.head.appendChild(O),v)return new Promise(($,P)=>{O.addEventListener("load",$),O.addEventListener("error",()=>P(new Error(`Unable to preload CSS for ${d}`)))})}))}function s(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return i.then(o=>{for(const a of o||[])a.status==="rejected"&&s(a.reason);return t().catch(s)})};async function sn(){let e;return e=await Me(()=>import("./CInZ1AQS.js").then(t=>t.v),__vite__mapDeps([0,1]),import.meta.url),e.default}async function GB(){let e;return e=await Me(()=>import("./Q6yX1hcl.js"),[],import.meta.url),e.default}const dm=["US","PR","UM","GU","VI","MP","AS"];function hm(e){return e?dm.includes(e.toUpperCase()):!1}function Ase(e){return!hm(e)}const UB=[...dm,"GB"];function jB(e){return e?UB.includes(e.toUpperCase()):!1}function kc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)r!=="__proto__"&&(e[r]=n[r])}return e}var zB={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decode
13URIComponent)}};function gp(e,t){function n(i,s,o){if(!(typeof document>"u")){o=kc({},t,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var c in o)o[c]&&(a+="; "+c,o[c]!==!0&&(a+="="+o[c].split(";")[0]));return document.cookie=i+"="+e.write(s,i)+a}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var s=document.cookie?document.cookie.split("; "):[],o={},a=0;a<s.length;a++){var c=s[a].split("="),l=c.slice(1).join("=");try{var d=decodeURIComponent(c[0]);if(d in o||(o[d]=e.read(l,d)),i===d)break}catch{}}return i?o[i]:o}}return Object.create({set:n,get:r,remove:function(i,s){n(i,"",kc({},s,{expires:-1}))},withAttributes:function(i){return gp(this.converter,kc({},this.attributes,i))},withConverter:function(i){return gp(kc({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var wl=gp(zB,{path:"/"});function mp(e){if(typeof e!="string")return e;try{return JSON.parse(e)}catch{return e}}function ZB(e){return JSON.stringify(e)}function KB(e){if(e){const r=wl.get(e),i=mp(r);return typeof i=="string"?i:r}const t=wl.get(),n={};for(const[r,i]of Object.entries(t)){const s=mp(i);n[r]=typeof s=="string"?s:i}return n}function YB(e){return mp(wl.get(e))}function XB(e,t,n={}){return wl.set(e,ZB(t),n)}function JB(e,t={}){return wl.remove(e,t)}const jn={get:KB,set:XB,remove:JB,getJSON:YB};function ha(){const{$store:e}=Ue(),t=e.state.applicationConfig.config.countryCode;return!(t&&!hm(t)||jn.get("hasAcceptedLTP"))}const qB=async e=>{const n={api:{baseURL:ln().public.API_BASE_URL||"/"}};Re.applyConfig(n);let r;try{r=await Re.services.consumer.get({name:"www"})}catch{e.$debug}return r&&(M_({Platform3:Re,config:r}),B_(r)),r},QB=ew(qB),eF=-1,tF=-2,nF=-3,rF=-4,iF=-5,oF=-6,sF=-7,F_=2**32-1,yp=F_-1;function aF(e){return!(!Number.isInteger(e)||e<0||e>yp)}function lF(e){return!(!Number.isInteger(e)||e<0||e>F_)}function cF(e){return Uint8Array.fromBase64(e).buffer}function uF(e){return Uint8Array.from(Buffer.from(e,"base64")).buffer}function dF(e){const t=atob(e),n=t.length,r=new Uint8Array(n);for(let i=0;i<n;i++)r[i]=t.charCodeAt(i);return r.buffer}const hF=typeof Uint8Array.fromBase64=="function",fF=typeof process=="object"&&process.versions?.node!==void 0,pF=hF?cF:fF?uF:dF;function gF(e,t){return mF(JSON.parse(e),t)}function mF(e,t){if(typeof e=="number")return s(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);let i=null;function s(o,a=!1){if(o===eF)return;if(o===nF)return NaN;if(o===rF)return 1/0;if(o===iF)return-1/0;if(o===oF)return-0;if(a||typeof o!="number")throw new Error("Invalid input");if(o in r)return r[o];const c=n[o];if(!c||typeof c!="object")r[o]=c;else if(Array.isArray(c))if(typeof c[0]=="string"){const l=c[0],d=t&&Object.hasOwn(t,l)?t[l]:void 0;if(d){let v=c[1];if(typeof v!="number"&&(v=n.push(c[1])-1),i??=new Set,i.has(v))throw new Error("Invalid circular reference");return i.add(v),r[o]=d(s(v)),i.delete(v),r[o]}switch(l){case"Date":r[o]=new Date(c[1]);break;case"Set":const v=new Set;r[o]=v;for(let $=1;$<c.length;$+=1)v.add(s(c[$]));break;case"Map":const R=new Map;r[o]=R;for(let $=1;$<c.length;$+=2)R.set(s(c[$]),s(c[$+1]));break;case"RegExp":r[o]=new RegExp(c[1],c[2]);break;case"Object":{const $=c[1];if(typeof n[$]=="object"&&n[$][0]!=="BigInt")throw new Error("Invalid input");r[o]=Object(s($));break}case"BigInt":r[o]=BigInt(c[1]);break;case"null":const O=Object.create(null);r[o]=O;for(let $=1;$<c.length;$+=2){if(c[$]==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");O[c[$]]=s(c[$+1])}break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Float16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":case"DataView":{if(n[c[1]][0]!=="ArrayBuffer")throw new Error("Invalid data");const $=globalThis[l],P=s(c[1]);r[o]=c[2]!==void 0?new $(P,c[2],c[3]):new $(P);break}case"ArrayBuffer":{const $=c[1];if(typeof $!="string")throw new Error("Invalid ArrayBuffer encoding");const P=pF($);r[o]=P;break}case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":{const $=l.slice(9);r[o]=Temporal[$].from(c[1]);break}case"URL":{const $=new URL(c[1]);r[o]=$;break}case"URLSearchParams":{const $=new URLSearchParams(c[1]);r[o]=$;break}default:throw new Error(`Unknown type ${l}`)}}else if(c[0]===sF){const l=c[1];if(!lF(l))throw new Error("Invalid input");const d=[];r[o]=d,d[yp]=void 0,delete d[yp];for(let v=2;v<c.length;v+=2){const R=c[v];if(!aF(R)||R>=l)throw new Error("Invalid input");d[R]=s(c[v+1])}d.length=l}else{const l=new Array(c.length);r[o]=l;for(let d=0;d<c.length;d+=1){const v=c[d];v!==tF&&(l[d]=s(v))}}else{const l={};r[o]=l;
13for(const d of Object.keys(c)){if(d==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");const v=c[d];l[d]=s(v)}}return r[o]}return s(0)}const yF=new Set(["link","style","script","noscript"]),bF=new Set(["title","titleTemplate","script","style","noscript"]),bp=new Set(["base","meta","link","style","script","noscript"]),vF=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),CF=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),IF=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),AF=new Set(["templateParams","htmlAttrs","bodyAttrs"]),wF=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]),_F=["name","property","http-equiv"],SF=new Set(["viewport","description","keywords","robots"]);function H_(e){const t=e.split(":");return t.length?wF.has(t[1]):!1}function vp(e){const{props:t,tag:n}=e;if(CF.has(n))return n;if(n==="link"&&t.rel==="canonical")return"canonical";if(n==="link"&&t.rel==="alternate"){if(t.hreflang)return`alternate:${t.hreflang}`;if(t.type)return`alternate:${t.type}:${t.href||""}`}if(t.charset)return"charset";if(e.tag==="meta"){for(const r of _F)if(t[r]!==void 0){const i=t[r],s=i&&typeof i=="string"&&i.includes(":"),o=i&&SF.has(i),c=!(s||o)&&e.key?`:key:${e.key}`:"";return`${n}:${i}${c}`}}if(e.key)return`${n}:key:${e.key}`;if(t.id)return`${n}:id:${t.id}`;if(n==="link"&&t.rel==="alternate")return`alternate:${t.href||""}`;if(bF.has(n)){const r=e.textContent||e.innerHTML;if(r)return`${n}:content:${r}`}}function W_(e){const t=e._h||e._d;if(t)return t;const n=e.textContent||e.innerHTML;return n||`${e.tag}:${Object.entries(e.props).map(([r,i])=>`${r}:${String(i)}`).join(",")}`}function Pu(e,t,n){typeof e==="function"&&(!n||n!=="titleTemplate"&&!(n[0]==="o"&&n[1]==="n"))&&(e=e());const i=t?t(n,e):e;if(Array.isArray(i))return i.map(s=>Pu(s,t));if(i?.constructor===Object){const s={};for(const o of Object.keys(i))s[o]=Pu(i[o],t,o);return s}return i}function EF(e,t){const n=e==="style"?new Map:new Set;function r(i){if(i==null||i===void 0)return;const s=String(i).trim();if(s)if(e==="style"){const[o,...a]=s.split(":").map(c=>c?c.trim():"");o&&a.length&&n.set(o,a.join(":"))}else s.split(" ").filter(Boolean).forEach(o=>n.add(o))}return typeof t=="string"?e==="style"?t.split(";").forEach(r):r(t):Array.isArray(t)?t.forEach(i=>r(i)):t&&typeof t=="object"&&Object.entries(t).forEach(([i,s])=>{s&&s!=="false"&&(e==="style"?n.set(String(i).trim(),String(s)):r(i))}),n}function V_(e,t){if(e.props=e.props||{},!t)return e;if(e.tag==="templateParams")return e.props=t,e;const n=bp.has(e.tag)||e.tag==="htmlAttrs"||e.tag==="bodyAttrs";return Object.entries(t).forEach(([r,i])=>{if(r==="__proto__"||r==="constructor"||r==="prototype")return;if(i===null){e.props[r]=null;return}if(r==="class"||r==="style"){e.props[r]=EF(r,i);return}if(IF.has(r)){if((r==="textContent"||r==="innerHTML")&&typeof i=="object"){let l=t.type;if(t.type||(l="application/json"),!l?.endsWith("json")&&l!=="speculationrules")return;t.type=l,e.props.type=l,e[r]=JSON.stringify(i)}else e[r]=i;return}const s=r.startsWith("data-"),o=n&&!s?r.toLowerCase():r,a=String(i),c=e.tag==="meta"&&o==="content";a==="true"||a===""?e.props[o]=s||c?a:!0:!i&&s&&a==="false"?e.props[o]="false":i!==void 0&&(e.props[o]=i)}),e}function xF(e,t){const n=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},r=V_({tag:e,props:{}},n);return r.key&&yF.has(r.tag)&&(r.props["data-hid"]=r._h=r.key),r.tag==="script"&&typeof r.innerHTML=="object"&&(r.innerHTML=JSON.stringify(r.innerHTML),r.props.type=r.props.type||"application/json"),Array.isArray(r.props.content)?r.props.content.map(i=>({...r,props:{...r.props,content:i}})):r}function TF(e,t){if(!e)return[];typeof e=="function"&&(e=e());const n=(i,s)=>{for(let o=0;o<t.length;o++)s=t[o](i,s);return s};e=n(void 0,e);const r=[];return e=Pu(e,n),Object.entries(e||{}).forEach(([i,s])=>{if(s!==void 0)for(const o of Array.isArray(s)?s:[s])r.push(xF(i,o))}),r.flat()}const Ub=(e,t)=>
13e._w===t._w?e._p-t._p:e._w-t._w,jb={base:-10,title:10},kF={critical:-8,high:-1,low:2},zb={meta:{"content-security-policy":-30,charset:-20,viewport:-15},link:{preconnect:20,stylesheet:60,preload:70,modulepreload:70,prefetch:90,"dns-prefetch":90,prerender:90},script:{async:30,defer:80,sync:50},style:{imported:40,sync:60}},RF=/@import/,Ma=e=>e===""||e===!0;function LF(e,t){if(typeof t.tagPriority=="number")return t.tagPriority;let n=100;const r=kF[t.tagPriority]||0,i=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:zb;if(t.tag in jb)n=jb[t.tag];else if(t.tag==="meta"){const s=t.props["http-equiv"]==="content-security-policy"?"content-security-policy":t.props.charset?"charset":t.props.name==="viewport"?"viewport":null;s&&(n=zb.meta[s])}else if(t.tag==="link"&&t.props.rel)n=i.link[t.props.rel];else if(t.tag==="script"){const s=String(t.props.type);Ma(t.props.async)?n=i.script.async:t.props.src&&!Ma(t.props.defer)&&!Ma(t.props.async)&&s!=="module"&&!s.endsWith("json")||t.innerHTML&&!s.endsWith("json")?n=i.script.sync:(Ma(t.props.defer)&&t.props.src&&!Ma(t.props.async)||s==="module")&&(n=i.script.defer)}else t.tag==="style"&&(n=t.innerHTML&&RF.test(t.innerHTML)?i.style.imported:i.style.sync);return(n||100)+r}function Zb(e,t){const n=typeof t=="function"?t(e):t,r=n.key||String(e.plugins.size+1);e.plugins.get(r)||(e.plugins.set(r,n),e.hooks.addHooks(n.hooks||{}))}function OF(e={}){const t=JA();t.addHooks(e.hooks||{});const n=!e.document,r=new Map,i=new Map,s=new Set,o={_entryCount:1,plugins:i,dirty:!1,resolvedOptions:e,hooks:t,ssr:n,entries:r,headEntries(){return[...r.values()]},use:a=>Zb(o,a),push(a,c){const l={...c||{}};delete l.head;const d=l._index??o._entryCount++,v={_i:d,input:a,options:l},R={_poll(O=!1){o.dirty=!0,!O&&s.add(d),t.callHook("entries:updated",o)},dispose(){r.delete(d)&&o.invalidate()},patch(O){(!l.mode||l.mode==="server"&&n||l.mode==="client"&&!n)&&(v.input=O,r.set(d,v),R._poll())}};return R.patch(a),R},async resolveTags(){const a={tagMap:new Map,tags:[],entries:[...o.entries.values()]};for(await t.callHook("entries:resolve",a);s.size;){const R=s.values().next().value;s.delete(R);const O=r.get(R);if(O){const $={tags:TF(O.input,e.propResolvers||[]).map(P=>Object.assign(P,O.options)),entry:O};await t.callHook("entries:normalize",$),O._tags=$.tags.map((P,T)=>(P._w=LF(o,P),P._p=(O._i<<10)+T,P._d=vp(P),P._d||(P._h=W_(P)),P))}}let c=!1;a.entries.flatMap(R=>(R._tags||[]).map(O=>({...O,props:{...O.props}}))).sort(Ub).reduce((R,O)=>{const $=O._d||O._h;if(!R.has($))return R.set($,O);const P=R.get($);if((O?.tagDuplicateStrategy||(AF.has(O.tag)?"merge":null)||(O.key&&O.key===P.key?"merge":null))==="merge"){const C={...P.props};Object.entries(O.props).forEach(([N,x])=>C[N]=N==="style"?new Map([...P.props.style||new Map,...x]):N==="class"?new Set([...P.props.class||new Set,...x]):x),R.set($,{...O,props:C})}else O._p>>10===P._p>>10&&O.tag==="meta"&&H_($)?(R.set($,Object.assign([...Array.isArray(P)?P:[P],O],O)),c=!0):(O._w===P._w?O._p>P._p:O?._w<P?._w)&&R.set($,O);return R},a.tagMap);const l=a.tagMap.get("title"),d=a.tagMap.get("titleTemplate");if(o._title=l?.textContent,d){const R=d?.textContent;if(o._titleTemplate=R,R){let O=typeof R=="function"?R(l?.textContent):R;typeof O=="string"&&!o.plugins.has("template-params")&&(O=O.replace("%s",l?.textContent||"")),l?O===null?a.tagMap.delete("title"):a.tagMap.set("title",{...l,textContent:O}):(d.tag="title",d.textContent=O)}}a.tags=Array.from(a.tagMap.values()),c&&(a.tags=a.tags.flat().sort(Ub)),await t.callHook("tags:beforeResolve",a),await t.callHook("tags:resolve",a),await t.callHook("tags:afterResolve",a);const v=[];for(const R of a.tags){const{innerHTML:O,tag:$,props:P}=R;if(vF.has($)&&!(Object.keys(P).length===0&&!R.innerHTML&&!R.textContent)&&!($==="meta"&&!P.content&&!P["http-equiv"]&&!P.charset)){if($==="script"&&O){if(String(P.type).endsWith("json")){const T=typeof O=="string"?O:JSON.stringify(O);R.innerHTML=T.replace(/</g,"\\u003C")}else typeof O=="string"&&(R.innerHTML=O.replace(new RegExp(`</${$}`,"g"),`<\\/${$}`));R._d=vp(R)}v.push(R)}}return v},invalidate(){for(const a of r.values())s.add(a._i);o.dirty=!0,t.callHook("entries:updated",o)}};
13return(e?.plugins||[]).forEach(a=>Zb(o,a)),o.hooks.callHook("init",o),e.init?.forEach(a=>a&&o.push(a)),o}const NF=(e,t)=>Et(t)?br(t):t,fm="usehead";function PF(e){return{install(n){n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(fm,e)}}.install}function $F(){if(sa()){const e=Nt(fm);if(e)return e}throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.")}function MF(e,t={}){const n=t.head||$F();return n.ssr?n.push(e||{},t):DF(n,e,t)}function DF(e,t,n={}){const r=yt(!1);let i;return Eg(()=>{const o=r.value?{}:Pu(t,NF);i?i.patch(o):i=e.push(o,n)}),Mt()&&(Ci(()=>{i.dispose()}),ud(()=>{r.value=!0}),cd(()=>{r.value=!1})),i}function G_(e){const t=e||Ue();return t.ssrContext?.head||t.runWithContext(()=>{if(sa()){const n=Nt(fm);if(!n)throw new Error("[nuxt] [unhead] Missing Unhead instance.");return n}})}function _l(e,t={}){const n=t.head||G_(t.nuxt);return MF(e,{head:n,...t})}const BF=(()=>{const e={ssr:!1},t={};return(n,r)=>{let i=[];r.charCodeAt(r.length-1)===47&&(r=r.slice(0,-1)||"/"),r==="/subscribe"&&i.unshift({data:e});let s=r.split("/");return s.length,i.unshift({data:t,params:{_:s.slice(1).join("/")}}),i}})(),U_=e=>Xg({},...BF("",e).map(t=>t.data).reverse()),FF=U_;let tu;function HF(){let e;return e=$fetch(Yg(`builds/meta/${ln().app.buildId}.json`),{responseType:"json"}),tu=e,e.catch(t=>{tu===e&&(tu=void 0)}),e}function j_(){return tu||HF()}function z_(e){const t=typeof e=="string"?e:e.path;try{return FF(t)}catch{return{}}}async function Kb(e,t={}){return null}async function WF(e){return null}let uo=null;async function VF(){if(uo)return uo;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await GF(e.textContent||""),n=e.dataset.src?await WF(e.dataset.src):void 0;return uo={...t,...n,...window.__NUXT__},uo.config?.public&&(uo.config.public=Pn(uo.config.public)),uo}async function GF(e){return await gF(e,Ue()._payloadRevivers)}function Z_(e,t){Ue()._payloadRevivers[e]=t}function UF(e,t){return new e(JSON.parse(t))}async function jF(){const e=Object.keys(Re.models);Re.config,Object.values(Re.models).forEach((t,n)=>{const r=e[n];Z_(r,i=>UF(t,i))})}const zF=ew(jF);function Yb(e){try{return JSON.parse(e)}catch{return e}}const ZF=[["NuxtError",e=>Wi(e)],["EmptyShallowRef",e=>wn(e==="_"?void 0:e==="0n"?BigInt(0):Yb(e))],["EmptyRef",e=>yt(e==="_"?void 0:e==="0n"?BigInt(0):Yb(e))],["ShallowRef",e=>wn(e)],["ShallowReactive",e=>or(e)],["Ref",e=>yt(e)],["Reactive",e=>Pn(e)]],KF=Je({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const[r,i]of ZF)Z_(r,i);Object.assign(e.payload,([t,n]=di(()=>e.runWithContext(VF)),t=await t,n(),t)),delete window.__NUXT__}});async function pm(e,t={}){const n=t.document||e.resolvedOptions.document;if(!n||!e.dirty)return;const r={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",r),!!r.shouldRender)return e._domUpdatePromise||(e._domUpdatePromise=new Promise(async i=>{const s=new Map,o=new Promise(O=>{e.resolveTags().then($=>{O($.map(P=>{const T=s.get(P._d)||0,C={tag:P,id:(T?`${P._d}:${T}`:P._d)||P._h,shouldRender:!0};return P._d&&H_(P._d)&&s.set(P._d,T+1),C}))})});let a=e._dom;if(!a){a={title:n.title,elMap:new Map().set("htmlAttrs",n.documentElement).set("bodyAttrs",n.body)};for(const O of["body","head"]){const $=n[O]?.children;for(const P of $){const T=P.tagName.toLowerCase();if(!bp.has(T))continue;const C=V_({tag:T,props:{}},{innerHTML:P.innerHTML,...P.getAttributeNames().reduce((N,x)=>(N[x]=P.getAttribute(x),N),{})||{}});if(C.key=P.getAttribute("data-hid")||void 0,C._d=vp(C)||W_(C),a.elMap.has(C._d)){let N=1,x=C._d;for(;a.elMap.has(x);)x=`${C._d}:${N++}`;a.elMap.set(x,P)}else a.elMap.set(C._d,P)}}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};function c(O,$,P){const T=`${O}:${$}`;a.sideEffects[T]=P,delete a.pendingSideEffects[T]}function l({id:O,$el:$,tag:P}){const T=P.tag.endsWith("Attrs");a.elMap.set(O,$),T||(P.textContent&&P.textContent!==$.textContent&&($.textContent=P.textContent),P.innerHTML&&P.innerHTML!==$.innerHTML&&($.innerHTML=P.innerHTML),c(O,"el",()=>{$?.remove(),a.elMap.delete(O)}));for(const C in P.props){if(!Object.prototype.hasOwnProperty.call(P.props,C))continue;const N=P.props[C];if(C.startsWith("on")&&typeof N=="function"){const S=$?.dataset;if(S&&S[`${C}fired`]){const b=C.slice(0,-5);N.call($,new Event(b.substring(2)))}$.getAttribute(`data-${C}`)!==""&&((P.tag==="bodyAttrs"?n.defaultView:$).addEventListener(C.substring(2),N.bind($)),$.setAttribute(`data-${C}`,""));continue}const x=`attr:${C}`;if(C==="class"){if(!N)continue;for(const S of N)T&&c(O,`${x}:${S}`,()=>$.classList.remove(S)),!$.classList.contains(S)&&$.classList.add(S)}else if(C==="style"){if(!N)continue;for(const[S,b]of N)c(O,`${x}:${S}`,()=>{$.style.removeProperty(S)}),$.style.setProperty(S,b)}else N!==!1&&N!==null&&($.getAttribute(C)!==N&&$.setAttribute(C,N===!0?"":String(N)),T&&c(O,x,()=>$.removeAttribute(C)))}}const d=[],v={bodyClose:void 0,bodyOpen:void 0,head:void 0},R=await o;for(const O of R){const{tag:$,shouldRender:P,id:T}=O;if(P){if($.tag==="title"){n.title=$.textContent,c("title","",()=>n.title=a.title);continue}O.$el=O.$el||a.elMap.get(T),O.$el?l(O):bp.has($.tag)&&d.push(O)}}for(const O of d){const $=O.tag.tagPosition||"head";O.$el=n.createElement(O.tag.tag),l(O),v[$]=v[$]||n.createDocumentFragment(),v[$].appendChild(O.$el)}for(const O of R)await e.hooks.callHook("dom:renderTag",O,n,c);v.head&&n.head.appendChild(v.head),v.bodyOpen&&n.body.insertBefore(v.bodyOpen,n.body.firstChild),v.bodyClose&&n.body.appendChild(v.bodyClose);for(const O in a.pendingSideEffects)a.pendingSideEffects[O]();e._dom=a,await e.hooks.callHook("dom:rendered",{renders:R}),i()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function YF(e={}){const t=e.domOptions?.render||pm;e.document=e.document||(typeof window<"u"?document:void 0);const n=e.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;return OF({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[n?JSON.parse(n):!1,...e.init||[]]})}function XF(e,t){let n=0;return()=>{const r=++n;t(()=>{n===r&&e()})}}function JF(e={}){const t=YF({domOptions:{render:XF(()=>pm(t),n=>setTimeout(n,0))},...e});return t.install=PF(t),t}const qF={disableDefaults:!0},QF=Je({name:"nuxt:head",enforce:"pre",setup(e){const t=JF(qF);e.vueApp.use(t);{let n=!0;const r=async()=>{n=!1,await pm(t)};t.hooks.hook("dom:beforeRender",s=>{s.shouldRender=!n}),e.hooks.hook("page:start",()=>{n=!0}),e.hooks.hook("page:finish",()=>{e.isHydrating||r()}),e.hooks.hook("app:error",r),e.hooks.hook("app:suspense:resolve",r);const i=t.push.bind(t);t.push=((s,o)=>{const a=i(s,o),c=a.dispose.bind(a);return a.dispose=()=>{const l=e["~transitionPromise"];l?l.then(c):c()},a})}}});const gs=typeof document<"u";function K_(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}
13function eH(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&K_(e.default)}const gt=Object.assign;function Dh(e,t){const n={};for(const r in t){const i=t[r];n[r]=xr(i)?i.map(e):e(i)}return n}const nl=()=>{},xr=Array.isArray;function Xb(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}let Bt=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const Y_=Symbol("");Bt.MATCHER_NOT_FOUND+"",Bt.NAVIGATION_GUARD_REDIRECT+"",Bt.NAVIGATION_ABORTED+"",Bt.NAVIGATION_CANCELLED+"",Bt.NAVIGATION_DUPLICATED+"";function js(e,t){return gt(new Error,{type:e,[Y_]:!0},t)}function Xr(e,t){return e instanceof Error&&Y_ in e&&(t==null||!!(e.type&t))}const tH=["params","query","hash"];function nH(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of tH)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}const rH=Symbol(""),Jb=Symbol(""),gm=Symbol(""),mm=Symbol(""),Cp=Symbol("");function X_(e){return Nt(mm)}const iH={trailing:!0};function oH(e,t=25,n={}){if(n={...iH,...n},!Number.isFinite(t))throw new TypeError("Expected `wait` to be a finite number");let r,i,s=[],o,a;const c=(v,R)=>(o=sH(e,v,R),o.finally(()=>{if(o=null,n.trailing&&a&&!i){const O=c(v,a);return a=null,O}}),o),l=function(...v){return n.trailing&&(a=v),o||new Promise(R=>{const O=!i&&n.leading;clearTimeout(i),i=setTimeout(()=>{i=null;const $=n.leading?r:c(this,v);a=null;for(const P of s)P($);s=[]},t),O?(r=c(this,v),R(r)):s.push(R)})},d=v=>{v&&(clearTimeout(v),i=null)};return l.isPending=()=>!!i,l.cancel=()=>{d(i),s=[],a=null},l.flush=()=>
vendor: 21,948 bytes, line 13
13{if(d(i),!a||o)return;const v=a;return a=null,c(this,v)},l}async function sH(e,t,n){return await e.apply(t,n)}const J_=/#/g,aH=/&/g,lH=/\//g,cH=/=/g,uH=/\?/g,q_=/\+/g,dH=/%5B/g,hH=/%5D/g,Q_=/%5E/g,fH=/%60/g,eS=/%7B/g,pH=/%7C/g,tS=/%7D/g,gH=/%20/g;function ym(e){return e==null?"":encodeURI(""+e).replace(pH,"|").replace(dH,"[").replace(hH,"]")}function mH(e){return ym(e).replace(eS,"{").replace(tS,"}").replace(Q_,"^")}function Ip(e){return ym(e).replace(q_,"%2B").replace(gH,"+").replace(J_,"%23").replace(aH,"%26").replace(fH,"`").replace(eS,"{").replace(tS,"}").replace(Q_,"^")}function yH(e){return Ip(e).replace(cH,"%3D")}function bH(e){return ym(e).replace(J_,"%23").replace(uH,"%3F")}function vH(e){return bH(e).replace(lH,"%2F")}function $u(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const CH=/\/$/,IH=e=>e.replace(CH,"");function Bh(e,t,n="/"){let r,i={},s="",o="";const a=t.indexOf("#");let c=t.indexOf("?");return c=a>=0&&c>a?-1:c,c>=0&&(r=t.slice(0,c),s=t.slice(c,a>0?a:t.length),i=e(s.slice(1))),a>=0&&(r=r||t.slice(0,a),o=t.slice(a,t.length)),r=SH(r??t,n),{fullPath:r+s+o,path:r,query:i,hash:$u(o)}}function AH(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function qb(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function wH(e,t,n){const r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&zs(t.matched[r],n.matched[i])&&nS(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function zs(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function nS(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!_H(e[n],t[n]))return!1;return!0}function _H(e,t){return xr(e)?Qb(e,t):xr(t)?Qb(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function Qb(e,t){return xr(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function SH(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),i=r[r.length-1];(i===".."||i===".")&&r.push("");let s=n.length-1,o,a;for(o=0;o<r.length;o++)if(a=r[o],a!==".")if(a==="..")s>1&&s--;else break;return n.slice(0,s).join("/")+"/"+r.slice(o).join("/")}const rr={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Ap=(function(e){return e.pop="pop",e.push="push",e})({}),Fh=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function EH(e){if(!e)if(gs){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),IH(e)}const xH=/^[^#]+#/;function TH(e,t){return e.replace(xH,"#")+t}function kH(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Od=()=>({left:window.scrollX,top:window.scrollY});function RH(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=kH(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function ev(e,t){return(history.state?history.state.position-t:-1)+e}const wp=new Map;function LH(e,t){wp.set(e,t)}function OH(e){const t=wp.get(e);return wp.delete(e),t}function NH(e){return typeof e=="string"||e&&typeof e=="object"}function rS(e){return typeof e=="string"||typeof e=="symbol"}function PH(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<n.length;++r){const i=n[r].replace(q_," "),s=i.indexOf("="),o=$u(s<0?i:i.slice(0,s)),a=s<0?null:$u(i.slice(s+1));if(o in t){let c=t[o];xr(c)||(c=t[o]=[c]),c.push(a)}else t[o]=a}return t}function tv(e){let t="";for(let n in e){const r=e[n];if(n=yH(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(xr(r)?r.map(i=>i&&Ip(i)):[r&&Ip(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function $H(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=xr(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return t}function Da(){let e=[];function t(r){return e.push(r),()=>{const i=e.indexOf(r);i>-1&&e.splice(i,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Oi(e,t,n,r,i,s=o=>o()){const o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((a,c)=>{const l=R=>{R===!1?c(js(Bt.NAVIGATION_ABORTED,{from:n,to:t})):R instanceof Error?c(R):NH(R)?c(js(Bt.NAVIGATION_GUARD_REDIRECT,{from:t,to:R})):(o&&r.enterCallbacks[i]===o&&typeof R=="function"&&o.push(R),a())},d=s(()=>e.call(r&&r.instances[i],t,n,l));let v=Promise.resolve(d);e.length<3&&(v=v.then(l)),v.catch(R=>c(R))})}function Hh(e,t,n,r,i=s=>s()){const s=[];for(const o of e)for(const a in o.components){let c=o.components[a];if(!(t!=="beforeRouteEnter"&&!o.instances[a]))if(K_(c)){const l=(c.__vccOpts||c)[t];l&&s.push(Oi(l,n,r,o,a,i))}else{let l=c();s.push(()=>l.then(d=>{if(!d)throw new Error(`Couldn't resolve component "${a}" at "${o.path}"`);const v=eH(d)?d.default:d;o.mods[a]=d,o.components[a]=v;const R=(v.__vccOpts||v)[t];return R&&Oi(R,n,r,o,a,i)()}))}}return s}function MH(e,t){const n=[],r=[],i=[],s=Math.max(t.matched.length,e.matched.length);for(let o=0;o<s;o++){const a=t.matched[o];a&&(e.matched.find(l=>zs(l,a))?r.push(a):n.push(a));const c=e.matched[o];c&&(t.matched.find(l=>zs(l,c))||i.push(c))}return[n,r,i]}let DH=()=>location.protocol+"//"+location.host;function iS(e,t){const{pathname:n,search:r,hash:i}=t,s=e.indexOf("#");if(s>-1){let o=i.includes(e.slice(s))?e.slice(s).length:1,a=i.slice(o);return a[0]!=="/"&&(a="/"+a),qb(a,"")}return qb(n,e)+r+i}function BH(e,t,n,r){let i=[],s=[],o=null;const a=({state:R})=>{const O=iS(e,location),$=n.value,P=t.value;let T=0;if(R){if(n.value=O,t.value=R,o&&o===$){o=null;return}T=P?R.position-P.position:0}else r(O);i.forEach(C=>{C(n.value,$,{delta:T,type:Ap.pop,direction:T?T>0?Fh.forward:Fh.back:Fh.unknown})})};function c(){o=n.value}function l(R){i.push(R);const O=()=>{const $=i.indexOf(R);$>-1&&i.splice($,1)};return s.push(O),O}function d(){if(document.visibilityState==="hidden"){const{history:R}=window;if(!R.state)return;R.replaceState(gt({},R.state,{scroll:Od()}),"")}}function v(){for(const R of s)R();s=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",d),document.removeEventListener("visibilitychange",d)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",d),document.addEventListener("visibilitychange",d),{pauseListeners:c,listen:l,destroy:v}}function nv(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?Od():null}}function FH(e){const{history:t,location:n}=window,r={value:iS(e,n)},i={value:t.state};i.value||s(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(c,l,d){const v=e.indexOf("#"),R=v>-1?(n.host&&document.querySelector("base")?e:e.slice(v))+c:DH()+e+c;try{t[d?"replaceState":"pushState"](l,"",R),i.value=l}catch{n[d?"replace":"assign"](R)}}function o(c,l){s(c,gt({},t.state,nv(i.value.back,c,i.value.forward,!0),l,{position:i.value.position}),!0),r.value=c}function a(c,l){const d=gt({},i.value,t.state,{forward:c,scroll:Od()});s(d.current,d,!0),s(c,gt({},nv(r.value,c,null),{position:d.position+1},l),!1),r.value=c}return{location:r,state:i,push:a,replace:o}}function HH(e){e=EH(e);const t=FH(e),n=BH(e,t.state,t.location,t.replace);function r(s,o=!0){o||n.pauseListeners(),history.go(s)}const i=gt({location:"",base:e,go:r,createHref:TH.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}let vo=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var tn=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(tn||{});const WH={type:vo.Static,value:""},VH=/[a-zA-Z0-9_]/;function GH(e){if(!e)return[[]];if(e==="/")return[[WH]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(O){throw new Error(`ERR (${n})/"${l}": ${O}`)}let n=tn.Static,r=n;const i=[];let s;function o(){s&&i.push(s),s=[]}let a=0,c,l="",d="";function v(){l&&(n===tn.Static?s.push({type:vo.Static,value:l}):n===tn.Param||n===tn.ParamRegExp||n===tn.ParamRegExpEnd?(s.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),s.push({type:vo.Param,value:l,regexp:d,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),l="")}function R(){l+=c}for(;a<e.length;)switch(c=e[a++],n){case tn.Static:c==="\\"?(r=n,n=tn.EscapeNext):c==="/"?(l&&v(),o()):c===":"?(v(),n=tn.Param):R();break;case tn.EscapeNext:R(),n=r;break;case tn.Param:c==="("?n=tn.ParamRegExp:VH.test(c)?R():(v(),n=tn.Static,c!=="*"&&c!=="?"&&c!=="+"&&a--);break;case tn.ParamRegExp:c===")"?d[d.length-1]=="\\"?d=d.slice(0,-1)+c:n=tn.ParamRegExpEnd:d+=c;break;case tn.ParamRegExpEnd:v(),n=tn.Static,c!=="*"&&c!=="?"&&c!=="+"&&a--,d="";break;default:t("Unknown state");break}return n===tn.ParamRegExp&&t(`Unfinished custom RegExp for param "${l}"`),v(),o(),i}const rv="[^/]+?",UH={sensitive:!1,strict:!1,start:!0,end:!0};var Rn=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(Rn||{});const jH=/[.+*?^${}()[\]/\\]/g;function zH(e,t){const n=gt({},UH,t),r=[];let i=n.start?"^":"";const s=[];for(const l of e){const d=l.length?[]:[Rn.Root];n.strict&&!l.length&&(i+="/");for(let v=0;v<l.length;v++){const R=l[v];let O=Rn.Segment+(n.sensitive?Rn.BonusCaseSensitive:0);if(R.type===vo.Static)v||(i+="/"),i+=R.value.replace(jH,"\\$&"),O+=Rn.Static;else if(R.type===vo.Param){const{value:$,repeatable:P,optional:T,regexp:C}=R;s.push({name:$,repeatable:P,optional:T});const N=C||rv;if(N!==rv){O+=Rn.BonusCustomRegExp;try{new RegExp(`(${N})`)}catch(S){throw new Error(`Invalid custom RegExp for param "${$}" (${N}): `+S.message)}}let x=P?`((?:${N})(?:/(?:${N}))*)`:`(${N})`;v||(x=T&&l.length<2?`(?:/${x})`:"/"+x),T&&(x+="?"),i+=x,O+=Rn.Dynamic,T&&(O+=Rn.BonusOptional),P&&(O+=Rn.BonusRepeatable),N===".*"&&(O+=Rn.BonusWildcard)}d.push(O)}r.push(d)}if(n.strict&&n.end){const l=r.length-1;r[l][r[l].length-1]+=Rn.BonusStrict}n.strict||(i+="/?"),n.end?i+="$":n.strict&&!i.endsWith("/")&&(i+="(?:/|$)");const o=new RegExp(i,n.sensitive?"":"i");function a(l){const d=l.match(o),v={};if(!d)return null;for(let R=1;R<d.length;R++){const O=d[R]||"",$=s[R-1];v[$.name]=O&&$.repeatable?O.split("/"):O}return v}function c(l){let d="",v=!1;for(const R of e){(!v||!d.endsWith("/"))&&(d+="/"),v=!1;for(const O of R)if(O.type===vo.Static)d+=O.value;else if(O.type===vo.Param){const{value:$,repeatable:P,optional:T}=O,C=$ in l?l[$]:"";if(xr(C)&&!P)throw new Error(`Provided param "${$}" is an array but it is not repeatable (* or + modifiers)`);const N=xr(C)?C.join("/"):C;if(!N)if(T)R.length<2&&(d.endsWith("/")?d=d.slice(0,-1):v=!0);else throw new Error(`Missing required param "${$}"`);d+=N}}return d||"/"}return{re:o,score:r,keys:s,parse:a,stringify:c}}function ZH(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===Rn.Static+Rn.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===Rn.Static+Rn.Segment?1:-1:0}function oS(e,t){let n=0;const r=e.score,i=t.score;for(;n<r.length&&n<i.length;){const s=ZH(r[n],i[n]);if(s)return s;n++}if(Math.abs(i.length-r.length)===1){if(iv(r))return 1;if(iv(i))return-1}return i.length-r.length}function iv(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const KH={strict:!1,end:!0,sensitive:!1};function YH(e,t,n){const r=zH(GH(e.path),n),i=gt(r,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function XH(e,t){const n=[],r=new Map;t=Xb(KH,t);function i(v){return r.get(v)}function s(v,R,O){const $=!O,P=sv(v);P.aliasOf=O&&O.record;const T=Xb(t,v),C=[P];if("alias"in v){const S=typeof v.alias=="string"?[v.alias]:v.alias;for(const b of S)C.push(sv(gt({},P,{components:O?O.record.components:P.components,path:b,aliasOf:O?O.record:P})))}let N,x;for(const S of C){const{path:b}=S;if(R&&b[0]!=="/"){const p=R.record.path,g=p[p.length-1]==="/"?"":"/";S.path=R.record.path+(b&&g+b)}if(N=YH(S,R,T),O?O.alias.push(N):(x=x||N,x!==N&&x.alias.push(N),$&&v.name&&!av(N)&&o(v.name)),sS(N)&&c(N),P.children){const p=P.children;for(let g=0;g<p.length;g++)s(p[g],N,O&&O.children[g])}O=O||N}return x?()=>{o(x)}:nl}function o(v){if(rS(v)){const R=r.get(v);R&&(r.delete(v),n.splice(n.indexOf(R),1),R.children.forEach(o),R.alias.forEach(o))}else{const R=n.indexOf(v);R>-1&&(n.splice(R,1),v.record.name&&r.delete(v.record.name),v.children.forEach(o),v.alias.forEach(o))}}function a(){return n}function c(v){const R=QH(v,n);n.splice(R,0,v),v.record.name&&!av(v)&&r.set(v.record.name,v)}function l(v,R){let O,$={},P,T;if("name"in v&&v.name){if(O=r.get(v.name),!O)throw js(Bt.MATCHER_NOT_FOUND,{location:v});T=O.record.name,$=gt(ov(R.params,O.keys.filter(x=>!x.optional).concat(O.parent?O.parent.keys.filter(x=>x.optional):[]).map(x=>x.name)),v.params&&ov(v.params,O.keys.map(x=>x.name))),P=O.stringify($)}else if(v.path!=null)P=v.path,O=n.find(x=>x.re.test(P)),O&&($=O.parse(P),T=O.record.name,O.keys.forEach(x=>{x.optional&&!$[x.name]&&delete $[x.name]}));else{if(O=R.name?r.get(R.name):n.find(x=>x.re.test(R.path)),!O)throw js(Bt.MATCHER_NOT_FOUND,{location:v,currentLocation:R});T=O.record.name,$=gt({},R.params,v.params),P=O.stringify($)}const C=[];let N=O;for(;N;)C.unshift(N.record),N=N.parent;return{name:T,path:P,params:$,matched:C,meta:qH(C)}}e.forEach(v=>s(v));function d(){n.length=0,r.clear()}return{addRoute:s,resolve:l,removeRoute:o,clearRoutes:d,getRoutes:a,getRecordMatcher:i}}function ov(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function sv(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:JH(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function JH(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function av(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function qH(e){return e.reduce((t,n)=>gt(t,n.meta),{})}function QH(e,t){let n=0,r=t.length;for(;n!==r;){const s=n+r>>1;oS(e,t[s])<0?r=s:n=s+1}const i=eW(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function eW(e){let t=e;for(;t=t.parent;)if(sS(t)&&oS(e,t)===0)return t}function sS({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function lv(e){const t=Nt(gm),n=Nt(mm),r=Xe(()=>{const c=Ze(e.to);return t.resolve(c)}),i=Xe(()=>{const{matched:c}=r.value,{length:l}=c,d=c[l-1],v=n.matched;if(!d||!v.length)return-1;const R=v.findIndex(zs.bind(null,d));if(R>-1)return R;const O=cv(c[l-2]);return l>1&&cv(d)===O&&v[v.length-1].path!==O?v.findIndex(zs.bind(null,c[l-2])):R}),s=Xe(()=>i.value>-1&&oW(n.params,r.value.params)),o=Xe(()=>i.value>-1&&i.value===n.matched.length-1&&nS(n.params,r.value.params));function a(c={}){if(iW(c)){const l=t[Ze(e.replace)?"replace":"push"](Ze(e.to)).catch(nl);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>l),l}return Promise.resolve()}return{route:r,href:Xe(()=>r.value.href),isActive:s,isExactActive:o,navigate:a}}function tW(e){return e.length===1?e[0]:e}const nW=an({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:lv,setup(e,{slots:t}){const n=Pn(lv(e)),{options:r}=Nt(gm),i=Xe(()=>({[uv(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[uv(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const s=t.default&&tW(t.default(n));return e.custom?s:At("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},s)}}}),rW=nW;function iW(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function oW(e,t){for(const n in t){const r=t[n],i=e[n];if(typeof r=="string"){if(r!==i)return!1}else if(!xr(i)||i.length!==r.length||r.some((s,o)=>s.valueOf()!==i[o].valueOf()))return!1}return!0}function cv(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const uv=(e,t,n)=>e??t??n,sW=an({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Nt(Cp),i=Xe(()=>e.route||r.value),s=Nt(Jb,0),o=Xe(()=>{let l=Ze(s);const{matched:d}=i.value;let v;for(;(v=d[l])&&!v.components;)l++;return l}),a=Xe(()=>i.value.matched[o.value]);Ir(Jb,Xe(()=>o.value+1)),Ir(rH,a),Ir(Cp,i);const c=yt();return xt(()=>[c.value,a.value,e.name],([l,d,v],[R,O,$])=>{d&&(d.instances[v]=l,O&&O!==d&&l&&l===R&&(d.leaveGuards.size||(d.leaveGuards=O.leaveGuards),d.updateGuards.size||(d.updateGuards=O.updateGuards))),l&&d&&(!O||!zs(d,O)||!R)&&(d.enterCallbacks[v]||[]).forEach(P=>P(l))},{flush:"post"}),()=>{const l=i.value,d=e.name,v=a.value,R=v&&v.components[d];if(!R)return dv(n.default,{Component:R,route:l});const O=v.props[d],$=O?O===!0?l.params:typeof O=="function"?O(l):O:null,T=At(R,gt({},$,t,{onVnodeUnmounted:C=>{C.component.isUnmounted&&(v.instances[d]=null)},ref:c}));return dv(n.default,{Component:T,route:l})||T}}});function dv(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const aS=sW;function aW(e){const t=XH(e.routes,e),n=e.parseQuery||PH,r=e.stringifyQuery||tv,i=e.history,s=Da(),o=Da(),a=Da(),c=wn(rr);let l=rr;gs&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=Dh.bind(null,A=>""+A),v=Dh.bind(null,vH),R=Dh.bind(null,$u);function O(A,W){let F,U;return rS(A)?(F=t.getRecordMatcher(A),U=W):U=A,t.addRoute(U,F)}function $(A){const W=t.getRecordMatcher(A);W&&t.removeRoute(W)}function P(){return t.getRoutes().map(A=>A.record)}function T(A){return!!t.getRecordMatcher(A)}function C(A,W){if(W=gt({},W||c.value),typeof A=="string"){const q=Bh(n,A,W.path),ne=t.resolve({path:q.path},W),se=i.createHref(q.fullPath);return gt(q,ne,{params:R(ne.params),redirectedFrom:void 0,href:se})}let F;if(A.path!=null)F=gt({},A,{path:Bh(n,A.path,W.path).path});else{const q=gt({},A.params);for(const ne in q)q[ne]==null&&delete q[ne];F=gt({},A,{params:v(q)}),W.params=v(W.params)}const U=t.resolve(F,W),Y=A.hash||"";U.params=d(R(U.params));const ee=AH(r,gt({},A,{hash:mH(Y),path:U.path})),X=i.createHref(ee);return gt({fullPath:ee,hash:Y,query:r===tv?$H(A.query):A.query||{}},U,{redirectedFrom:void 0,href:X})}function N(A){return typeof A=="string"?Bh(n,A,c.value.path):gt({},A)}function x(A,W){if(l!==A)return js(Bt.NAVIGATION_CANCELLED,{from:W,to:A})}function S(A){return g(A)}function b(A){return S(gt(N(A),{replace:!0}))}function p(A,W){const F=A.matched[A.matched.length-1];if(F&&F.redirect){const{redirect:U}=F;let Y=typeof U=="function"?U(A,W):U;return typeof Y=="string"&&(Y=Y.includes("?")||Y.includes("#")?Y=N(Y):{path:Y},Y.params={}),gt({query:A.query,hash:A.hash,params:Y.path!=null?{}:A.params},Y)}}function g(A,W){const F=l=C(A),U=c.value,Y=A.state,ee=A.force,X=A.replace===!0,q=p(F,U);if(q)return g(gt(N(q),{state:typeof q=="object"?gt({},Y,q.state):Y,force:ee,replace:X}),W||F);const ne=F;ne.redirectedFrom=W;let se;return!ee&&wH(r,U,F)&&(se=js(Bt.NAVIGATION_DUPLICATED,{to:ne,from:U}),j(U,U,!0,!1)),(se?Promise.resolve(se):m(ne,U)).catch(he=>Xr(he)?Xr(he,Bt.NAVIGATION_GUARD_REDIRECT)?he:B(he):L(he,ne,U)).then(he=>{if(he){if(Xr(he,Bt.NAVIGATION_GUARD_REDIRECT))return g(gt({replace:X},N(he.to),{state:typeof he.to=="object"?gt({},Y,he.to.state):Y,force:ee}),W||ne)}else he=_(ne,U,!0,X,Y);return I(ne,U,he),he})}function u(A,W){const F=x(A,W);return F?Promise.reject(F):Promise.resolve()}function y(A){const W=D.values().next().value;return W&&typeof W.runWithContext=="function"?W.runWithContext(A):A()}function m(A,W){let F;const[U,Y,ee]=MH(A,W);F=Hh(U.reverse(),"beforeRouteLeave",A,W);for(const q of U)q.leaveGuards.forEach(ne=>{F.push(Oi(ne,A,W))});const X=u.bind(null,A,W);return F.push(X),H(F).then(()=>{F=[];for(const q of s.list())F.push(Oi(q,A,W));return F.push(X),H(F)}).then(()=>{F=Hh(Y,"beforeRouteUpdate",A,W);for(const q of Y)q.updateGuards.forEach(ne=>{F.push(Oi(ne,A,W))});return F.push(X),H(F)}).then(()=>{F=[];for(const q of ee)if(q.beforeEnter)if(xr(q.beforeEnter))for(const ne of q.beforeEnter)F.push(Oi(ne,A,W));else F.push(Oi(q.beforeEnter,A,W));return F.push(X),H(F)}).then(()=>(A.matched.forEach(q=>q.enterCallbacks={}),F=Hh(ee,"beforeRouteEnter",A,W,y),F.push(X),H(F))).then(()=>{F=[];for(const q of o.list())F.push(Oi(q,A,W));return F.push(X),H(F)}).catch(q=>Xr(q,Bt.NAVIGATION_CANCELLED)?q:Promise.reject(q))}
13function I(A,W,F){a.list().forEach(U=>y(()=>U(A,W,F)))}function _(A,W,F,U,Y){const ee=x(A,W);if(ee)return ee;const X=W===rr,q=gs?history.state:{};F&&(U||X?i.replace(A.fullPath,gt({scroll:X&&q&&q.scroll},Y)):i.push(A.fullPath,Y)),c.value=A,j(A,W,F,X),B()}let h;function f(){h||(h=i.listen((A,W,F)=>{if(!K.listening)return;const U=C(A),Y=p(U,K.currentRoute.value);if(Y){g(gt(Y,{replace:!0,force:!0}),U).catch(nl);return}l=U;const ee=c.value;gs&&LH(ev(ee.fullPath,F.delta),Od()),m(U,ee).catch(X=>Xr(X,Bt.NAVIGATION_ABORTED|Bt.NAVIGATION_CANCELLED)?X:Xr(X,Bt.NAVIGATION_GUARD_REDIRECT)?(g(gt(N(X.to),{force:!0}),U).then(q=>{Xr(q,Bt.NAVIGATION_ABORTED|Bt.NAVIGATION_DUPLICATED)&&!F.delta&&F.type===Ap.pop&&i.go(-1,!1)}).catch(nl),Promise.reject()):(F.delta&&i.go(-F.delta,!1),L(X,U,ee))).then(X=>{X=X||_(U,ee,!1),X&&(F.delta&&!Xr(X,Bt.NAVIGATION_CANCELLED)?i.go(-F.delta,!1):F.type===Ap.pop&&Xr(X,Bt.NAVIGATION_ABORTED|Bt.NAVIGATION_DUPLICATED)&&i.go(-1,!1)),I(U,ee,X)}).catch(nl)}))}let w=Da(),E=Da(),k;function L(A,W,F){B(A);const U=E.list();return U.length&&U.forEach(Y=>Y(A,W,F)),Promise.reject(A)}function M(){return k&&c.value!==rr?Promise.resolve():new Promise((A,W)=>{w.add([A,W])})}function B(A){return k||(k=!A,f(),w.list().forEach(([W,F])=>A?F(A):W()),w.reset()),A}function j(A,W,F,U){const{scrollBehavior:Y}=e;if(!gs||!Y)return Promise.resolve();const ee=!F&&OH(ev(A.fullPath,0))||(U||!F)&&history.state&&history.state.scroll||null;return Wn().then(()=>Y(A,W,ee)).then(X=>X&&RH(X)).catch(X=>L(X,A,W))}const z=A=>i.go(A);let Q;const D=new Set,K={currentRoute:c,listening:!0,addRoute:O,removeRoute:$,clearRoutes:t.clearRoutes,hasRoute:T,getRoutes:P,resolve:C,options:e,push:S,replace:b,go:z,back:()=>z(-1),forward:()=>z(1),beforeEach:s.add,beforeResolve:o.add,afterEach:a.add,onError:E.add,isReady:M,install(A){A.component("RouterLink",rW),A.component("RouterView",aS),A.config.globalProperties.$router=K,Object.defineProperty(A.config.globalProperties,"$route",{enumerable:!0,get:()=>Ze(c)}),gs&&!Q&&c.value===rr&&(Q=!0,S(i.location).catch(U=>{}));const W={};for(const U in rr)Object.defineProperty(W,U,{get:()=>c.value[U],enumerable:!0});A.provide(gm,K),A.provide(mm,or(W)),A.provide(Cp,c);const F=A.unmount;D.add(A),A.unmount=function(){D.delete(A),D.size<1&&(l=rr,h&&h(),h=null,c.value=rr,Q=!1,k=!1),F()}}};function H(A){return A.reduce((W,F)=>W.then(()=>y(F)),Promise.resolve())}return K}const lW=/(:\w+)\([^)]+\)/g,cW=/(:\w+)[?+*]/g,uW=/:\w+/g,dW=(e,t)=>t.path.replace(lW,"$1").replace(cW,"$1").replace(uW,n=>e.params[n.slice(1)]?.toString()||""),_p=(e,t)=>{const n=e.route.matched.find(i=>i.components?.default===e.Component.type),r=t??n?.meta.key??(n&&dW(e.route,n));return typeof r=="function"?r(e.route):r},hW=(e,t)=>({default:()=>e?At(x0,e===!0?{}:e,t):t});function lS(e){return Array.isArray(e)?e:[e]}const fW=function(e){if(e){if(e.type)return e.type;if(e.id&&e.slug&&String(e.id).startsWith("c"))return"Collection";if(e.numBooks&&e.uuid)return"ComicSeries";if(e.items&&e.itemsCount!==void 0)return"List";if(e.uuid&&e.videoUUID)return"Clip";if(e.ts)return"BookHistory";if(e.uuid)return"Book";if(e.clickoutType)return"Promotional Clickout"}},wse=function(e){if(!e||typeof e!="object")return!1;if(e.readingDirection==="TOP_TO_BOTTOM")return!0;const t="Vertical";return e._rawProperties?.data_driven_tags?.includes(t)||e._rawProperties?.art_style_tags?.includes(t)?!0:((e._rawProperties?.tags||e.tags)?.map(r=>r.name)||[]).includes(t)},ho=e=>e?e.replace(/[^\w-]/g,"-").replace(/-{2,}/g,"-").replace(/-$/,"").toLowerCase():"";function _se({history:e,book:t}){const n=t.pages-1;return e.pageIndex>=n||e.pageIndex<0}const Sse=e=>JSON.parse(JSON.stringify(e)),Ese=e=>e.pageIndex===0&&!e.panelIndex?0:e.pageIndex===-1?100:e.pageIndex&&e.book?(e.pageIndex+1)/e.book.pages*100:0,xse=e=>{const t=e.match("[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}");return t&&t[0]},Tse=(e,t,n="...")=>e.length<=t?e:`${e.substring(0,e.lastIndexOf(" ",t-n.length))}${n}`,kse=/^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%^&*])(?=.{8,})/,cS=e=>e&&/^\d+$/.test(e),pW=e=>/^[^\s=/\\;<>()+'"]{1,100}$/.test(e),uS=e=>/^[\w-]+$/.test(e),Rse=function(e,t){if(e){const n=t||e.type;if(n&&n!=="Book"){if(e.title&&e.seriesTitle)return`${e.seriesTitle} : ${e.title}`;if(e.seriesTitle)return e.seriesTitle}return e.title}return""},Lse=function(e,t){const n=Object.keys(t),r=Object.keys(t).map(i=>t[i]);return new Function(...n,`return \`${e}\`;`)(...r)},Ose=function(e){const t=/PayPal .+/g;try{return!!e.match(t)}catch{return!1}};function Nse(e,t){if(!e||!e.schedule||typeof e.plansForPremium!="function")return!1;const n=[];
13return(e.plansForPremium()||[]).forEach(r=>{const i=(t.plans||[]).find(s=>s.slug.includes(r));i!==void 0&&n.push(i)}),n.sort((r,i)=>r.priority-i.priority),n.length&&t.plans&&n[0].badge?n[0].badge:!1}function gW(e){if(!e||typeof e!="string")return 0;const t=/P.*?(\d+)D/;return e.match(t)?.[1]??0}function mW(e){return e?{id:e.id,merchant_plan_id:e.merchantproduct?.merchantProductId,name:e.name,plan:e.merchantproduct?.planName,merchant_type:e.merchantproduct?.merchantType,price:e.spec?.price,currency_code:e.spec?.currency,free_trial_days:gW(e.spec?.freetrialDuration),platform:e.consumer,quantity:1}:{}}function Pse(e){return{cta_text:"Trial Started",subscription_type_legacy:e?.product?.merchantproduct?.merchantProductId,free_trial_start:e?.premiumSignupDate,free_trial_end:e?.premiumFreeTrialEndDate,products:e?[mW(e.product)]:void 0,promo_code:e?.promos?.code,discount:e?.discount,revenue:e?.revenue,currency:e?.product?.spec?.currency,subscription_id:e?.subscriptionId,subscription_type:e?.product?.period,subscription_status:e?.premiumStatus}}function $se(e){const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="absolute",t.style.left="-9999px",document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)}function Mse(e){window.location.href=e}function Dse(e,t){if(!e)return()=>{};const n=r=>{r.preventDefault(),e.scrollLeft+=r.deltaY};return e.addEventListener("wheel",n,{passive:!1}),()=>e.removeEventListener("wheel",n)}function Do({params:e},t,n=!0){return e[t]?uS(e[t]):n}const yW=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;function Zo(e){return typeof e=="string"&&yW.test(e)}const cn=[];for(let e=0;e<256;++e)cn.push((e+256).toString(16).slice(1));function bW(e,t=0){return(cn[e[t+0]]+cn[e[t+1]]+cn[e[t+2]]+cn[e[t+3]]+"-"+cn[e[t+4]]+cn[e[t+5]]+"-"+cn[e[t+6]]+cn[e[t+7]]+"-"+cn[e[t+8]]+cn[e[t+9]]+"-"+cn[e[t+10]]+cn[e[t+11]]+cn[e[t+12]]+cn[e[t+13]]+cn[e[t+14]]+cn[e[t+15]]).toLowerCase()}const vW=new Uint8Array(16);function CW(){return crypto.getRandomValues(vW)}function Mu(e,t,n){return crypto.randomUUID?crypto.randomUUID():IW(e)}function IW(e,t,n){e=e||{};const r=e.random??e.rng?.()??CW();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,bW(r)}function AW(e){return!!(Do(e,"slug",!1)&&Zo(e.params.uuid)&&Do(e,"collectionSlug"))}const wW={segmentName:"Comic Book Detail",validate:AW};function _W(e){const t=["details","omnibus","volume","issue"],n=e.params.bookType;return!(!Do(e,"slug",!1)||!Zo(e.params.uuid)||n&&!t.includes(n))}const SW={segmentName:"Comic Series Detail",validate:_W};function EW(e){return!(!Do(e,"slug",!1)||!Zo(e.params.uuid))}const xW={validate:EW},TW={segmentName:"Browse Comics"},kW={segmentName:"Event Staff Checkin",layout:"event-staff"},RW={segmentName:"Event Staff Checkin",layout:"event-staff"},LW={layout:"empty-layout",segmentName:"Login Iframe"},OW={segmentName:"Opt In Email",layout:"regflow-fullpage"};function NW({params:e}){return Zo(e.listId)?["book","collection","comicseries"].includes(e.filter)||!e.filter:!1}const PW={validate:NW};function $W({params:e}){return Zo(e.token)}const MW={segmentName:"Create New Password",layout:"regflow-fullpage",validate:$W};function DW(e){return!!uS(e.params.slug)}const BW={segmentName:"Collection Details",validate:DW},FW={layout:"join",segmentName:"Join Page",validate:e=>Do(e,"path")},HW={layout:"regflow-fullpage",segmentName:"Login",validate:e=>Do(e,"path")},Bse=Symbol("regflow-flavor");function WW(e,t){const n=String(e).replace(/^\//,"");return!t||t==="default"?`/${n}`:`/${n}/${t}`}function VW(e){return!Do(e,"path")||e.query.book&&!Zo(e.query.book)?!1:e.query.pid?cS(e.query.pid):!0}function GW(e){const{query:t}=e;if(t.book&&!t.plan){const n=WW("premium",e.params.path||null);return Kr(n)}}const UW={layout:"regflow-fullpage",segmentName:"premium",queriesToIncludeInSegmentName:["plan","book"],validate:VW,middleware:GW},jW={layout:"regflow-fullpage",segmentName:"Sign Up For Your Universe"},zW={layout:"regflow-fullpage",segmentName:"Activate"},ZW={layout:"empty-layout",segmentName:"Coming Soon"};function KW({successPercent:e}){return Math.floor(Math.random()*100)<=e}class YW{constructor({name:t,persist:n,persistKey:r,rollDice:i,getDicePercentage:s,getData:o,determineActive:a,enabled:c}){this.name=t,this.persist=n,this.persistKey=r||`wbdl_feature_flag_${t}`,this.rollDice=i,this.getDicePercentage=s&&s.bind(this),this.getData=o&&o.bind(this),this.determineActive=a&&a.bind(this),this.status="created",this.dicePercentage=null,this.diceResult=null,this.enabled=typeof c<"u"?c:null,this.data=null,this.error=null}init(){if(this.enabled===null){if(this.persist&&this.getFlagFromPersist(),this.rollDice){if(this.getDiceSuccessPercentage(),this.error)return;switch(this.dicePercentage){case 0:this.enabled=!1;break;case 100:this.enabled=!0;break;default:this.rollDice&&!this.enabled&&(this.rollDiceForFlag(),this.checkEnabled());break}}else this.checkEnabled();if(this.error)return}this.enabled?this.onEnabled():this.onDisabled(),!this.error&&(this.status="initialized")}onEnabled(){if(!this.data&&this.getData){this.status="get-data";try{this.data=this.getData()}catch(t){this.status="error-get-data",this.error=t;return}}else this.data||(this.data=!0);this.persist&&this.persistFlag()}onDisabled(){this.data=!1,this.removePersistedFlag()}getDiceSuccessPercentage(){this.status="get-dice-percentage";try{this.dicePercentage=Number(this.getDicePercentage())}catch(t){this.status="error-get-dice-percentage",this.error=t;return}isNaN(this.dicePercentage)&&(this.status="error-invalid-dice-percentage",this.error=new Error("invalid dice percentage"))}rollDiceForFlag(){this.diceResult=KW({successPercent:this.dicePercentage})}checkEnabled(){this.status="determine-active";let t=this.enabled;if(this.determineActive&&t===null)try{t=this.determineActive(this)}catch(n){this.status="error-determine-active",this.error=n;return}this.enabled=!!t}persistFlag(){try{window.localStorage.setItem(this.persistKey,this.data)}catch{}}removePersistedFlag(){try{window.localStorage.removeItem(this.persistKey)}catch{}}getFlagFromPersist(){{let t;try{t=window.localStorage.getItem(this.persistKey)}catch{}typeof t<"u"&&t!==null&&(this.data=t,this.enabled=!0)}}}class XW{constructor(){this.flags=Pn({})}setFlag(t,n){this.flags[t]=n}createFlag(t={}){if(!t.name)throw new Error("must provide a name for the flag");const n=new YW(t);return this.setFlag(t.name,n),n.init(),n}clear(t){delete this.flags[t]}
13clearAll(){Object.keys(this.flags).forEach(t=>this.clear(t))}isEnabled(t){const n=this.flags[t];return!!(n&&n.enabled)}}const wt=new XW;function JW(){return wt.isEnabled("coming_soon_apps_enabled")}const qW={layout:"empty-layout",segmentName:"Coming Soon Apps",validate:JW},QW={layout:"regflow-fullpage",segmentName:"confirmation"},eV={segmentName:"Event Staff Checkin",layout:"event-staff"},tV={layout:"regflow-fullpage",segmentName:"Forgot Password"},nV={layout:"empty-layout",segmentName:"Go Hub Page"},rV={segmentName:"Logout"},iV={segmentName:"Dive Back In Detail"},oV={segmentName:"History Detail"},sV=["following","favorites","follow-series"];function aV({params:e}){return Zo(e.listId)||sV.includes(e.listId)?["book","collection","comicseries"].includes(e.filter)||!e.filter:!1}const lV={validate:aV},cV={segmentName:"My DC - Followed Lists"},uV={segmentName:"My DC - My Lists"},dV={segmentName:"My DC"},hV={layout:"empty-layout",segmentName:"peacemaker"},fV={layout:"empty-layout",segmentName:"pride"},pV={segmentName:"Search Results"},gV={segmentName:"Settings - Change Subscription Cancel"},mV={segmentName:"Settings - Payment Methods Create"},yV={segmentName:"Settings - Change Email"},bV={segmentName:"Settings - Change Password"},vV={segmentName:"Settings - Change Subscription"},CV={segmentName:"Settings - Edit Marketing Preferences"},IV={segmentName:"Settings - Payment Methods"},AV={segmentName:"Settings - Verify Email"},wV={segmentName:"Settings - Comics"},_V={segmentName:"Settings - Privacy"},SV="Settings",EV={layout:"default",segmentName:SV},xV={layout:"regflow-fullpage",segmentName:"SSO Scope"};function dS(){return Ue().$store.getters["account/isAnonymous"]}const TV={layout:"regflow-fullpage",segmentName:"subscribe",middleware:async e=>{let t,n;const{query:r}=e,i={};if(r.pid&&cS(r.pid)&&(i.pid=r.pid),r.promo&&pW(r.promo)&&(i.promo=r.promo),dS())return[t,n]=di(()=>Kr({path:"/register",query:i},{external:!0})),t=await t,n(),t;if(!i.pid)return[t,n]=di(()=>Kr({path:"/premium",query:i},{external:!0})),t=await t,n(),t}},kV={layout:"empty-layout",segmentName:"superheroesmission_es"},RV={layout:"empty-layout",segmentName:"superheroesmission_it"},LV={layout:"regflow-fullpage",segmentName:"terms"},OV={layout:"empty-layout",segmentName:"thebatman"},NV={layout:"regflow-fullpage",segmentName:"Verify Email"},PV={segmentName:"Homepage"},Wh=[{name:"comics-book-slug-uuid-reader",path:"/comics/book/:slug()/:uuid()/reader",component:()=>Me(()=>import("./CVUugybF.js"),[],import.meta.url)},{name:"comics-book-slug-uuid-collectionSlug-readerActive",path:"/comics/book/:slug()/:uuid()/:collectionSlug?/:readerActive?",meta:{...wW||{},middleware:["reader-layout-change","caching-longterm"]},component:()=>Me(()=>import("./CpVWKG-n.js"),__vite__mapDeps([2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,1,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36]),import.meta.url)},{name:"comics-series-slug-uuid",path:"/comics/series/:slug()/:uuid()",meta:xW||{},component:()=>Me(()=>import("./Bgw9tot2.js"),__vite__mapDeps([37,38,24,25,26,11,5,6,7,8,9,12,13,14,15,16,1,17,31,32,33,34,19,20,39,40,41,42,29,30,43]),import.meta.url),children:[{name:"comics-series-slug-uuid-bookType",path:":bookType?",meta:{...SW||{},middleware:["caching-longterm"]},component:()=>Me(()=>import("./DtItKokX.js"),__vite__mapDeps([44,45,46,18,5,6,7,8,9,19,20,21,22,16,1,14,23,47,48,49,50,51,52,4,53]),import.meta.url)}]},{name:"browse-comics",path:"/browse/comics",meta:TW||{},component:()=>Me(()=>import("./Fe--gpZd.js"),__vite__mapDeps([54,3,6,7,16,1,14,5,8,9,45,46,18,19,20,21,22,23,55,56,57,15,58]),import.meta.url)},{name:"eventstaffcheckin-pending",path:"/eventstaffcheckin/pending",meta:kW||{},component:()=>Me(()=>import("./DMkXrl6b.js"),__vite__mapDeps([59,60,61,62]),import.meta.url)},{name:"eventstaffcheckin-scan",path:"/eventstaffcheckin/scan",meta:RW||{},component:()=>Me(()=>import("./Bh50wV6X.js"),__vite__mapDeps([63,64,65,66,67,68,57,55,14,60,61,69]),import.meta.url)},{name:"login-iframe-v2",path:"/login-iframe/v2",meta:{...LW||{},middleware:["caching-short"]},component:()=>Me(()=>import("./CBXpt6tv.js"),__vite__mapDeps([70,71,27,3,6,7,28,72,73,74,75,1,76,77,78,79,80,81,14,55,15,82,56,13,83,84,85,86]),import.meta.url)},{name:"opt-in-email-guid-token",path:"/opt-in-email/:guid()/:token()",meta:OW||{},component:()=>Me(()=>
13import("./BP8UV2Jh.js"),__vite__mapDeps([87,6,7]),import.meta.url)},{name:"lists-listId-filter",path:"/lists/:listId()/:filter?",meta:PW||{},component:()=>Me(()=>import("./DRB3BCRu.js"),__vite__mapDeps([88,89,6,7,8,90,91,5,9,65,32,33,19,20,16,1,14,18,21,22,23,92,93,94,95,96,97,98,27,3,28,45,46,47,48,49,50,51,99,53,100,101]),import.meta.url)},{name:"change-password-token",path:"/change-password/:token()",meta:MW||{},component:()=>Me(()=>import("./Csr8ZY-V.js"),__vite__mapDeps([102,74,75,6,7,1,76,77,103,73]),import.meta.url)},{name:"collections-slug",path:"/collections/:slug()",meta:{...BW||{},middleware:["caching-short"]},component:()=>Me(()=>import("./CcUd6Cs3.js"),__vite__mapDeps([104,105,106,18,5,6,7,8,9,19,20,21,22,16,1,14,23,107,65,108,38,24,25,26,11,12,13,15,17,31,32,33,34,39,40,41,42,45,46,109]),import.meta.url)},{name:"join-path",path:"/join/:path?",meta:FW||{},component:()=>Me(()=>import("./Ds-wOZuj.js"),__vite__mapDeps([110,106,111,112,65,113,114,76,12,13,14,15,16,1,6,7,115,116,117]),import.meta.url)},{name:"login-path",path:"/login/:path?",meta:HW||{},component:()=>Me(()=>import("./Bzkvt1Dg.js"),__vite__mapDeps([118,10,72,73,74,75,6,7,1,76,77,78,119,92,93,94,95,120]),import.meta.url)},{name:"premium-path",path:"/premium/:path?",meta:UW||{},component:()=>Me(()=>import("./C4W6ibBN.js"),__vite__mapDeps([121,114,76,12,13,14,15,16,1,6,7,115,92,93,94,95,77]),import.meta.url)},{name:"register-path",path:"/register/:path?",meta:jW||{},component:()=>Me(()=>import("./lajeLM6x.js"),__vite__mapDeps([122,75,6,7,1,76,77,82,79,74,73,78,80,81,14,55,15,56,13,83,119,84,92,93,94,95,123]),import.meta.url)},{name:"activate",path:"/activate",meta:zW||{},component:()=>Me(()=>import("./CcG1UJ-r.js"),__vite__mapDeps([124,74,125,103,73,126]),import.meta.url)},{name:"coming-soon",path:"/coming-soon",meta:ZW||{},component:()=>Me(()=>import("./DOyIqvbG.js"),__vite__mapDeps([127,128]),import.meta.url)},{name:"coming-soon-apps",path:"/coming-soon-apps",meta:qW||{},component:()=>Me(()=>import("./DnzlozCe.js"),__vite__mapDeps([129,130,93,6,7,1,94,131]),import.meta.url)},{name:"confirmation",path:"/confirmation",meta:QW||{},component:()=>Me(()=>import("./CzSaxgrs.js"),__vite__mapDeps([132,92,93,6,7,1,94,95]),import.meta.url)},{name:"eventstaffcheckin",path:"/eventstaffcheckin",meta:eV||{},component:()=>Me(()=>import("./Dl_yG5MF.js"),__vite__mapDeps([133,72,73,74,75,6,7,1,76,77,78,64,134,60,61,135]),import.meta.url)},{name:"forgot-password",path:"/forgot-password",meta:tV||{},component:()=>Me(()=>import("./UqXtEB1A.js"),__vite__mapDeps([136,74,103,73]),import.meta.url)},{name:"go",path:"/go",meta:nV||{},component:()=>Me(()=>import("./D8g2QSgJ.js"),__vite__mapDeps([137,138,6,7,93,1,94,139,140,141,142,76,143,82,52,144,106,111,112,65,113,145,5,8,9,24,25,26,18,19,20,21,22,16,14,23,35,41,11,12,13,15,17,39,40,146,147,148]),import.meta.url)},{name:"logout",path:"/logout",meta:rV||{},component:()=>Me(()=>import("./_NSGkzdn.js"),__vite__mapDeps([149,150]),import.meta.url)},{name:"mydc",path:"/mydc",meta:dV||{},component:()=>Me(()=>import("./BZ7-O8r2.js"),__vite__mapDeps([151,152,16,1,14,125,90,91,6,7,139,140,141,96,97,35,24,25,26,18,5,8,9,19,20,21,22,23,107,65,108,153,154,92,93,94,95,155]),import.meta.url),children:[{name:"MyDcDiveBackInPage",path:"comics/dive-back-in",meta:iV||{},component:()=>Me(()=>import("./thC4WzMq.js"),__vite__mapDeps([156,47,6,7,48,49,50,18,5,8,9,19,20,21,22,16,1,14,23,157,158]),import.meta.url)},{name:"mydc-comics-history",path:"comics/history",meta:oV||{},component:()=>Me(()=>import("./9ZUNiwX8.js"),__vite__mapDeps([159,125,18,5,6,7,8,9,19,20,21,22,16,1,14,23,47,48,49,50,98,160]),import.meta.url)},{name:"mydc-lists-listId-filter",path:"lists/:listId()/:filter?",meta:lV||{},component:()=>Me(()=>import("./DW5qxjbW.js"),__vite__mapDeps([161,3,19,6,7,5,8,9,20,125,89,90,91,65,32,33,16,1,14,18,21,22,23,92,93,94,95,96,97,98,27,28,45,46,47,48,49,50,51,99,53,100,162]),import.meta.url)},{name:"mydc-following",path:"following",meta:cV||{},component:()=>Me(()=>import("./BWxvZfMa.js"),__vite__mapDeps([163,45,46,107,5,6,7,8,9,65,21,22,16,1,14,108,125,47,48,49,50,51,98,164]),import.meta.url)},{name:"mydc-inbox",path:"inbox",component:()=>Me(()=>import("./BzIJ-ouR.js"),__vite__mapDeps([165,166]),import.meta.url)},{name:"mydc-lists",path:"lists",meta:uV||{},component:()=>Me(()=>import("./Blq6ctIz.js"),__vite__mapDeps([167,107,5,6,7,8,9,65,21,22,16,1,14,108,47,48,49,50,153,154,98,125,168]),import.meta.url)},{name:"mydc-profile",path:"profile",component:()=>Me(()=>import("./Dxf-54z7.js"),__vite__mapDeps([169,27,3,6,7,28,152,16,1,14,90,91,139,140,141,170,65,66,171,172]),import.meta.url)},{name:"mydc-qrcode",path:"qrcode",component:()=>Me(()=>import("./BbP-a3Zl.js"),__vite__mapDeps([173,27,3,6,7,28,130,152,16,1,14,139,140,141,174]),import.meta.url)}]},{name:"peacemaker",path:"/peacemaker",meta:hV||{},component:()=>Me(()=>import("./bhlThZoA.js"),__vite__mapDeps([175,138,6,7,93,1,94,139,140,141,142,76,143,82,52,144,71,27,3,28,72,73,74,75,77,78,79,80,81,14,55,15,56,13,83,84,85,176,106,25,111,177,147,178,179]),import.meta.url)},{name:"pride",path:"/pride",meta:fV||{},component:()=>Me(()=>import("./CTyEMif9.js"),__vite__mapDeps([180,138,6,7,93,1,94,139,140,141,142,76,143,82,52,144,71,27,3,28,72,73,74,75,77,78,79,80,81,14,55,15,56,13,83,84,85,176,106,25,111,177,147,181]),import.meta.url)},{name:"search",path:"/search",meta:pV||{},component:()=>Me(()=>import("./BVI_iQaA.js"),__vite__mapDeps([182,106,145,5,6,7,8,9,24,25,26,18,19,20,21,22,16,1,14,23,35,41,140,45,46,52,183]),import.meta.url)},{name:"settings",path:"/settings",meta:{...EV||{},middleware:["enforce-authentication","caching-short"]},component:()=>Me(()=>import("./fz_hyW-U.js"),__vite__mapDeps([184,142,6,7,90,91,185,12,13,14,15,16,1,186,187,188,189,68,57,55,190,191,192,193,194,195,27,3,28,196,197,198,92,93,94,95,199]),import.meta.url),children:[{name:"settings-account-change-subscription-cancel",path:"account/change-subscription/cancel",meta:gV||{},component:()=>Me(()=>import("./BUPY1z4t.js"),__vite__mapDeps([200,27,3,6,7,28,201,202,12,13,14,15,16,1,186,191,198,203]),import.meta.url)},{name:"settings-account-paymentmethod-create",path:"account/paymentmethod/create",meta:mV||{},component:()=>Me(()=>import("./CJjlgZmW.js"),__vite__mapDeps([204,27,3,6,7,28,205,1,191,186,193,194,206,198]),import.meta.url)},{name:"settings-account-change-email",path:"account/change-email",meta:yV||{},component:()=>Me(()=>import("./BoODpJou.js"),__vite__mapDeps([207,27,3,6,7,28,152,16,1,14,170,65,66,171,197,198,208]),import.meta.url)},{name:"settings-account-change-password",path:"account/change-password",meta:bV||{},component:()=>Me(()=>import("./B-3r-l27.js"),__vite__mapDeps([209,27,3,6,7,28,74,73,152,16,1,14,170,65,66,171,198,210]),import.meta.url)},{name:"settings-account-change-subscription",path:"account/change-subscription",meta:vV||{},component:()=>Me(()=>import("./DAiM448G.js"),__vite__mapDeps([211,27,3,6,7,28,185,12,13,14,15,16,1,186,187,198,201,202,191,212]),import.meta.url)},{name:"settings-account-marketing-preferences",path:"account/marketing-preferences",meta:CV||{},component:()=>Me(()=>import("./BTFn3-0U.js"),__vite__mapDeps([213,27,3,6,7,28,80,81,152,16,1,14,197,198,214]),import.meta.url)},{name:"settings-account-paymentmethod",path:"account/paymentmethod",meta:IV||{},component:()=>Me(()=>import("./DA4qq92l.js"),__vite__mapDeps([215,27,3,6,7,28,188,189,12,13,14,15,16,1,186,68,57,55,190,191,192,198]),import.meta.url)},{name:"settings-account-verify-email",path:"account/verify-email",meta:AV||{},component:()=>Me(()=>import("./CZhg4P3P.js"),__vite__mapDeps([216,27,3,6,7,28,152,16,1,14,198,217]),import.meta.url)},{name:"settings-comics",path:"comics",meta:wV||{},component:()=>Me(()=>import("./eMlvnuEm.js"),__vite__mapDeps([218,27,3,6,7,28,152,16,1,14,170,65,66,171,198,219]),import.meta.url)},{name:"settings-privacy",path:"privacy",meta:_V||{},component:()=>Me(()=>import("./DwsH94aD.js"),__vite__mapDeps([220,27,3,6,7,28,198]),import.meta.url)}]},{name:"sso-scope",path:"/sso-scope",meta:xV||{},component:()=>Me(()=>import("./BOkEU_R7.js"),__vite__mapDeps([221,1,8,6,7,150,143,222]),import.meta.url)},{name:"subscribe",path:"/subscribe",meta:TV||{},component:()=>Me(()=>import("./3OxkIYJ1.js"),__vite__mapDeps([223,116,191,186,6,7,16,1,14,205,193,194,206,27,3,28,189,12,13,15,68,57,55,190,224]),import.meta.url)},{name:"superheroesmission_es",path:"/superheroesmission_es",meta:{...kV||{},middleware:"ssr-lang"},component:()=>Me(()=>import("./DhtJL101.js"),__vite__mapDeps([225,138,6,7,93,1,94,139,140,141,142,76,143,82,52,144,71,27,3,28,72,73,74,75,77,78,79,80,81,14,55,15,56,13,83,84,85,176,106,25,111,177,147,226,178,227]),import.meta.url)},{name:"superheroesmission_it",path:"/superheroesmission_it",meta:{...RV||{},middleware:"ssr-lang"},component:()=>Me(()=>import("./CXeL_IlS.js"),__vite__mapDeps([228,138,6,7,93,1,94,139,140,141,142,76,143,82,52,144,71,27,3,28,72,73,74,75,77,78,79,80,81,14,55,15,56,13,83,84,85,176,106,25,111,177,147,226,178,229]),import.meta.url)},{name:"terms",path:"/terms",meta:LV||{},component:()=>Me(()=>import("./klLG0sEG.js"),__vite__mapDeps([230,231]),import.meta.url)},{name:"thebatman",path:"/thebatman",meta:OV||{},component:()=>Me(()=>import("./DTyyERq5.js"),__vite__mapDeps([232,138,6,7,93,1,94,139,140,141,142,76,143,82,52,144,71,27,3,28,72,73,74,75,77,78,79,80,81,14,55,15,56,13,83,84,85,176,106,25,111,177,147,233]),import.meta.url)},{name:"verify-email",path:"/verify-email",meta:NV||{},component:()=>Me(()=>import("./BKXES_2y.js"),__vite__mapDeps([234,74,6,7,125,150,103,73]),import.meta.url)},{name:"HomePage",path:"/",meta:{...PV||{}
13,middleware:["caching-short"]},component:()=>Me(()=>import("./D-Vq8BII.js"),__vite__mapDeps([235,4,106,38,24,25,26,11,5,6,7,8,9,12,13,14,15,16,1,17,31,32,33,34,19,20,39,40,41,42,145,18,21,22,23,35,157,48,49,99,105,236]),import.meta.url)}];const $V=Object.prototype.toString,MV=e=>$V.call(e),DV=e=>MV(e)==="[object Object]",hS=(e,t)=>({default:()=>e?At(bA,e===!0?{}:e,t):t.default?.()}),BV=/(:\w+)\([^)]+\)/g,FV=/(:\w+)[?+*]/g,HV=/:\w+/g;function hv(e){const t=e?.meta.key??e.path.replace(BV,"$1").replace(FV,"$1").replace(HV,n=>e.params[n.slice(1)]?.toString()||"");return typeof t=="function"?t(e):t}function WV(e,t){return e===t||t===rr?!1:hv(e)!==hv(t)?!0:!e.matched.every((r,i)=>r.components&&r.components.default===t.matched[i]?.components?.default)}function fv(e){return Array.isArray(e)?e:[e]}function fS(e){const t=[];for(const n of e)n&&t.push({...n,onAfterLeave:n.onAfterLeave?fv(n.onAfterLeave):void 0,onBeforeLeave:n.onBeforeLeave?fv(n.onBeforeLeave):void 0});return Xg(...t)}const VV={scrollBehavior(e,t,n){const r=Ue(),i=Dt().options?.scrollBehaviorType??"auto";return e.path.replace(/\/$/,"")===t.path.replace(/\/$/,"")?t.hash&&!e.hash?{left:0,top:0}:e.hash?{el:e.hash,top:pS(e.hash),behavior:i}:!1:(typeof e.meta.scrollToTop=="function"?e.meta.scrollToTop(e,t):e.meta.scrollToTop)===!1?!1:t===rr?pv(e,t,n,i):new Promise(o=>{const a=()=>{requestAnimationFrame(()=>o(pv(e,t,n,i)))};r.hooks.hookOnce("page:loading:end",()=>{const c=r["~transitionPromise"];c?c.then(a):a()})})}};function pS(e){try{const t=document.querySelector(e);if(t)return(Number.parseFloat(getComputedStyle(t).scrollMarginTop)||0)+(Number.parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||0)}catch{}return 0}function pv(e,t,n,r){return n||(e.hash?{el:e.hash,top:pS(e.hash),behavior:WV(e,t)?r:"instant"}:{left:0,top:0})}const GV={hashMode:!1,scrollBehaviorType:"auto"},Ei={...GV,...VV},UV=async(e,t)=>{let n,r;if(!e.meta?.validate)return;const i=([n,r]=di(()=>Promise.resolve(e.meta.validate(e))),n=await n,r(),n);if(i===!0)return;const s=Wi({fatal:!0,status:i&&(i.status||i.statusCode)||404,statusText:i&&(i.statusText||i.statusMessage)||`Page Not Found: ${e.fullPath}`,data:{path:e.fullPath}});return typeof window<"u"&&window.history.pushState({},"",t.fullPath),s};function jV(){}class zV{constructor(){this.allowlistCountries=[...dm],this.alternateComingSoonCountries=[],this.excludedRoutes=["activate","coming-soon","coming-soon-apps","confirmation","eventstaffcheckin","forgot-password","logout","mydc","mydc-following","mydc-inbox","mydc-lists","mydc-profile","mydc-pull-lists","mydc-qrcode","mydc-comics-history","mydc-lists-listId-filter","opt-in-email-guid-token","peacemaker","pride","settings","settings-comics","settings-privacy","settings-account-change-email","settings-account-change-password","settings-account-change-subscription","settings-account-marketing-preferences","settings-account-paymentmethod","settings-account-verify-email","settings-account-change-subscription-cancel","settings-account-paymentmethod-create","sso-scope","superheroesmission_it","superheroesmission_es","terms","thebatman","verify-email","login-iframe-v2","change-password-token","join-path","login-path","register-path"]}updateAllowlistCountriesClaim(t=""){this.allowlistCountries=t.split(",").filter(n=>n).map(n=>n.trim().toUpperCase()).concat(this.allowlistCountries)}checkAccess(t,n){return this.allowlistCountries.includes(t)||!this.allowlistCountries.includes(t)&&this.excludedRoutes.includes(n)}parseComingSoonFromClaim(t=""){this.alternateComingSoonCountries=t.split(",").filter(n=>n).map(n=>n.trim().toUpperCase())}shouldUseAlternateComingSoon(t){return this.alternateComingSoonCountries.includes(t)}}const As=new zV;function ZV(e,t){const n=Ue();return new Promise((r,i)=>{const s=n.$store.state.applicationConfig.config.countryCode;return As.checkAccess(s,e.name)?r():wt.isEnabled("coming_soon_apps_enabled")&&As.shouldUseAlternateComingSoon(s)?Kr("/coming-soon-apps/",{external:!0}):Kr("/coming-soon/",{external:!0})})}async function KV(e,t){const n=Ue(),i=n.$store.getters["jsonbag/bySlug"](n.$config.public.CONFIG_JSONBAG_SLUGS.APP_REDIRECTS)?.[e.fullPath];if(i?.location)return await Kr(i.location,{redirectCode:i.statusCode||302,external:i.external||!1})}const Sp=yt(!1),gS=yt(null),gv=["comics-series-slug-uuid-bookType","comics-book-slug-uuid-collectionSlug-readerActive","collections-slug","subscribe","premium","login-path","join-path","register-path","confirmation"];function Nd(e){Sp.value&&(e.collection_title=gS.value?"Search Results":"Search Landing Page")}function YV(e,t){t.name==="search"&&gv.includes(e.name)&&(Sp.value=!0,gS.value=t.query?.q||null),gv.includes(e.name)||(Sp.value=!1)}function XV(){}const JV=XV,qV=e=>{const t=z_({path:e.path});if(t.redirect){const n=t.redirect.includes("#")?t.redirect:t.redirect+e.hash;return kr(n,{acceptRelative:!0})?(window.location.href=n,!1):n}},QV=[UV,jV,ZV,KV,YV,JV,qV],Ep={"caching-longterm":()=>Me(()=>import("./BB85ys9N.js"),[],import.meta.url),"caching-no-cache":()=>Me(()=>import("./DM5_Ghc7.js"),[],import.meta.url),"caching-no-store":()=>Me(()=>import("./qZBDAe-1.js"),[],import.meta.url),"caching-short":()=>Me(()=>import("./DwDBqoU3.js"),[],import.meta.url),"enforce-authentication":()=>Me(()=>import("./DHgUImQb.js"),[],import.meta.url),"reader-layout-change":()=>Me(()=>import("./B-qZssgS.js"),[],import.meta.url),"ssr-lang":()=>Me(()=>import("./BNJGaXdz.js"),__vite__mapDeps([237,1]),import.meta.url)};function eG(e,t,n){const{pathname:r,search:i,hash:s}=t,o=e.indexOf("#");if(o>-1){const l=s.includes(e.slice(o))?e.slice(o).length:1;let d=s.slice(l);return d[0]!=="/"&&(d="/"+d),nb(d,"")}const a=nb(r,e),c=!n||jA(a,n)?a:n;
13return c+(c.includes("?")?"":i)+s}const tG=Je({name:"nuxt:router",enforce:"pre",async setup(e){let t,n,r=ln().app.baseURL;const i=Ei.history?.(r)??HH(r),s=Ei.routes?([t,n]=di(()=>Ei.routes(Wh)),t=await t,n(),t??Wh):Wh;let o;const a=aW({...Ei,scrollBehavior:(C,N,x)=>{if(N===rr){o=x;return}if(Ei.scrollBehavior){if(a.options.scrollBehavior=Ei.scrollBehavior,"scrollRestoration"in window.history){const S=a.beforeEach(()=>{S(),window.history.scrollRestoration="manual"})}return Ei.scrollBehavior(C,rr,o||x)}},history:i,routes:s});"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto"),e.vueApp.use(a);const c=wn(a.currentRoute.value);a.afterEach((C,N)=>{c.value=N}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>c.value});const l=eG(r,window.location,e.payload.path),d=wn(a.currentRoute.value),v=()=>{d.value=a.currentRoute.value};a.afterEach((C,N)=>{const x=C.matched.at(-1)?.components?.default,S=N.matched.at(-1)?.components?.default;if(x===S){v();return}C.matched.length<N.matched.length&&C.matched.every((b,p)=>b.components?.default===N.matched[p]?.components?.default)&&v()});const R={sync:v};for(const C in d.value)Object.defineProperty(R,C,{get:()=>d.value[C],enumerable:!0});e._route=or(R),e._middleware||={global:[],named:{}};const O=la();a.afterEach(async(C,N,x)=>{delete e._processingMiddleware,!e.isHydrating&&O.value&&await e.runWithContext(wN),x&&await e.callHook("page:loading:end")});try{[t,n]=di(()=>a.isReady()),await t,n()}catch(C){[t,n]=di(()=>e.runWithContext(()=>go(C))),await t,n()}const $=l!==a.currentRoute.value.fullPath?a.resolve(l):a.currentRoute.value,P=e.isHydrating&&e.payload.prerenderedAt&&e.payload.path&&l!==e.payload.path&&jA(a.currentRoute.value.path,e.payload.path);v();const T=e.payload.state._layout;return a.beforeEach(async(C,N)=>{await e.callHook("page:loading:start"),C.meta=Pn(C.meta),e.isHydrating&&T&&!_r(C.meta.layout)&&(C.meta.layout=T),e._processingMiddleware=!0;{const x=new Set([...QV,...e._middleware.global]);for(const b of C.matched){const p=b.meta.middleware;if(p)for(const g of lS(p))x.add(g)}const S=z_({path:C.path});if(S.appMiddleware)for(const b in S.appMiddleware)S.appMiddleware[b]?x.add(b):x.delete(b);for(const b of x){const p=typeof b=="string"?e._middleware.named[b]||await Ep[b]?.().then(g=>g.default||g):b;if(!p)throw new Error(`Unknown route middleware: '${b}'.`);try{const g=await e.runWithContext(()=>p(C,N));if(!e.payload.serverRendered&&e.isHydrating&&(g===!1||g instanceof Error)){const u=g||Wi({status:404,statusText:`Page Not Found: ${l}`});return await e.runWithContext(()=>go(u)),!1}if(g===!0)continue;if(g===!1)return g;if(g)return lw(g)&&g.fatal&&await e.runWithContext(()=>go(g)),g}catch(g){const u=Wi(g);return u.fatal&&await e.runWithContext(()=>go(u)),u}}}}),a.onError(async()=>{delete e._processingMiddleware,await e.callHook("page:loading:end")}),a.afterEach(C=>{if(C.matched.length===0&&!O.value)return e.runWithContext(()=>go(Wi({status:404,fatal:!1,statusText:`Page not found: ${C.fullPath}`,data:{path:C.fullPath}})))}),e.hooks.hookOnce("app:created",async()=>{try{if("name"in $&&($.name=void 0),P){const C=a.resolve(e.payload.path);"name"in C&&(C.name=void 0),await a.replace({...C,force:!0}),e.hooks.hookOnce("app:suspense:resolve",async()=>{await a.replace({...$,force:!0})})}else await a.replace({...$,force:!0});a.options.scrollBehavior=Ei.scrollBehavior}catch(C){await e.runWithContext(()=>go(C))}}),{provide:{router:a}}}}),xp=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),nG=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),ql=e=>{const t=Ue();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{xp(()=>e())}):xp(()=>e())},rG=Je({name:"nuxt:payload",setup(e){const t=new Set;Dt().beforeResolve(async(n,r)=>{if(n.path===r.path)return;const i=await Kb(n.path);if(i){for(const s of t)delete e.static.data[s];for(const s in i.data)s in e.static.data||t.add(s),e.static.data[s]=i.data[s]}}),ql(()=>{e.hooks.hook("link:prefetch",async n=>{const{hostname:r}=new URL(n,window.location.href);r===window.location.hostname&&await Kb().catch(()=>{})}),navigator.connection?.effectiveType!=="slow-2g"&&setTimeout(j_,1e3)})}}),iG=Je(()=>{const e=Dt();ql(()=>
13{e.beforeResolve(async()=>{await new Promise(t=>{setTimeout(t,100),requestAnimationFrame(()=>{setTimeout(t,0)})})})})}),oG=Je(e=>{let t;async function n(){let r;try{r=await j_()}catch(i){const s=i;if(!("status"in s&&(s.status===404||s.status===403)))throw s}t&&clearTimeout(t),t=setTimeout(n,cb);try{const i=await $fetch(Yg("builds/latest.json")+`?${Date.now()}`);i.id!==r?.id&&(e.hooks.callHook("app:manifest:update",i),t&&clearTimeout(t))}catch{}}ql(()=>{t=setTimeout(n,cb)})});function sG(e={}){const t=e.path||window.location.pathname;let n={};try{n=JSON.parse(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||n?.path!==t||n?.expires<Date.now()){try{sessionStorage.setItem("nuxt:reload",JSON.stringify({path:t,expires:Date.now()+(e.ttl??1e4)}))}catch{}if(e.persistState)try{sessionStorage.setItem("nuxt:reload:state",JSON.stringify({state:Ue().payload.state}))}catch{}window.location.pathname!==t?window.location.href=t:window.location.reload()}}const aG=Je({name:"nuxt:chunk-reload",setup(e){const t=Dt(),n=ln(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook("app:chunkError",({error:s})=>{r.add(s)});function i(s){const o=Hi(n.app.baseURL,s.fullPath);sG({path:o,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(i)}),t.onError((s,o)=>{r.has(s)&&i(o)})}}),lG=Li(()=>Me(()=>Promise.resolve().then(()=>$ie),void 0,import.meta.url).then(e=>e.default||e.default||e)),cG=[["SmartAppBanner",lG]],uG=Je({name:"nuxt:global-components",setup(e){for(const[t,n]of cG)e.vueApp.component(t,n),e.vueApp.component("Lazy"+t,n)}}),Mi={default:Li(()=>Me(()=>import("./DfOO8wA9.js"),__vite__mapDeps([238,239,3,138,6,7,93,1,94,139,140,141,142,76,143,82,52,144,146,147,240,27,28,73,8,107,5,9,65,21,22,16,14,108,195,196,185,12,13,15,186,187,241,242]),import.meta.url).then(e=>e.default||e)),"empty-layout":Li(()=>Me(()=>import("./CYrFETbH.js"),__vite__mapDeps([243,239,3,240,27,6,7,28,1,73,8,107,5,9,65,21,22,16,14,108,195,196,185,12,13,15,186,187,241,244]),import.meta.url).then(e=>e.default||e)),"error-layout":Li(()=>Me(()=>import("./DPMKSe2i.js"),__vite__mapDeps([245,240,27,3,6,7,28,1,73,8,107,5,9,65,21,22,16,14,108,195,196,185,12,13,15,186,187,241]),import.meta.url).then(e=>e.default||e)),"event-staff":Li(()=>Me(()=>import("./DBRnGomc.js"),__vite__mapDeps([246,134,65,67,240,27,3,6,7,28,1,73,8,107,5,9,21,22,16,14,108,195,196,185,12,13,15,186,187,241,247]),import.meta.url).then(e=>e.default||e)),join:Li(()=>Me(()=>import("./DrnqpAGV.js"),__vite__mapDeps([248,138,6,7,93,1,94,139,140,141,142,76,143,82,52,144,240,27,3,28,73,8,107,5,9,65,21,22,16,14,108,195,196,185,12,13,15,186,187,241,249]),import.meta.url).then(e=>e.default||e)),"regflow-fullpage":Li(()=>Me(()=>import("./BpDdmMpe.js"),__vite__mapDeps([250,138,6,7,93,1,94,139,140,141,142,76,143,82,52,144,146,147,240,27,3,28,73,8,107,5,9,65,21,22,16,14,108,195,196,185,12,13,15,186,187,241,84,251]),import.meta.url).then(e=>e.default||e))};function dG(e){if(e?.__asyncLoader&&!e.__asyncResolved)return e.__asyncLoader()}async function mS(e,t=Dt()){const{path:n,matched:r}=t.resolve(e);if(!r.length||(t._routePreloaded||=new Set,t._routePreloaded.has(n)))return;const i=t._preloadPromises||=[];if(i.length>4)return Promise.all(i).then(()=>mS(e,t));t._routePreloaded.add(n);for(const s of r){const o=s.components?.default;if(typeof o!="function")continue;const a=Promise.resolve(o()).catch(()=>{}).finally(()=>i.splice(i.indexOf(a),1));i.push(a)}await Promise.all(i)}const hG=Je({name:"nuxt:prefetch",setup(e){const t=Dt();e.hooks.hook("app:mounted",()=>{t.beforeEach(async n=>{const r=n?.meta?.layout;r&&typeof Mi[r]=="function"&&await Mi[r]()})}),e.hooks.hook("link:prefetch",n=>{if(kr(n))return;const r=t.resolve(n);if(!r)return;const i=r.meta.layout;let s=lS(r.meta.middleware);s=s.filter(o=>typeof o=="string");for(const o of s)typeof Ep[o]=="function"&&Ep[o]();typeof i=="string"&&i in Mi&&dG(Mi[i])})}});function fG(e,t){}const Du=typeof window<"u",no=(e,t=!1)=>t?Symbol.for(e):Symbol(e),pG=(e,t,n)=>gG({l:e,k:t,s:n}),gG=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Yt=e=>typeof e=="number"&&isFinite(e),yS=e=>$d(e)==="[object Date]",Bu=e=>$d(e)==="[object RegExp]",Pd=e=>ft(e)&&Object.keys(e).length===0,Ht=Object.assign,mG=Object.create,bt=(e=null)=>mG(e);function mv(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/").replace(/=/g,"=")}function yG(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}
13const bG=/^\s*javascript\s*(?::|�*58;?|�*3a;?|:?)/i,vG=/^(?:href|src|action|formaction)$/i;function bm(e){return bG.test(e)}function CG(e){const t=/url\s*\(/gi;let n="",r=0,i;for(;(i=t.exec(e))!==null;){const s=i.index,o=t.lastIndex-1;let a=o+1,c=1,l=null;for(;a<e.length;a++){const R=e[a];if(l){R===l&&(l=null);continue}if(R==='"'||R==="'")l=R;else if(R==="(")c++;else if(R===")"&&(c--,c===0))break}if(c!==0)break;const d=e.slice(o+1,a).trim(),v=d.startsWith('"')&&d.endsWith('"')||d.startsWith("'")&&d.endsWith("'")?d.slice(1,-1).trim():d;n+=e.slice(r,s),n+=bm(v)?"url(about:blank)":e.slice(s,a+1),r=a+1}return n+e.slice(r)}function yv(e,t){if(vG.test(e)&&bm(t))return"about:blank";const n=e.toLowerCase()==="style"?CG(t):t;return yG(n)}function IG(e){return e=e.replace(/([\w:-]+)\s*=\s*"([^"]*)"/g,(n,r,i)=>`${r}="${yv(r,i)}"`),e=e.replace(/([\w:-]+)\s*=\s*'([^']*)'/g,(n,r,i)=>`${r}='${yv(r,i)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1on$3")),e=e.replace(/(\s+(?:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi,(n,r,i)=>bm(i)?`${r}about:blank`:n),e}const AG=Object.prototype.hasOwnProperty;function cr(e,t){return AG.call(e,t)}const Ft=Array.isArray,Rt=e=>typeof e=="function",We=e=>typeof e=="string",$t=e=>typeof e=="boolean",ut=e=>e!==null&&typeof e=="object",wG=e=>ut(e)&&Rt(e.then)&&Rt(e.catch),bS=Object.prototype.toString,$d=e=>bS.call(e),ft=e=>$d(e)==="[object Object]",_G=e=>e==null?"":Ft(e)||ft(e)&&e.toString===bS?JSON.stringify(e,null,2):String(e);function vm(e,t=""){return e.reduce((n,r,i)=>i===0?n+r:n+t+r,"")}const Rc=e=>!ut(e)||Ft(e);function Ps(e,t){if(Rc(e)||Rc(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:r,des:i}=n.pop();Object.keys(r).forEach(s=>{s!=="__proto__"&&(ut(r[s])&&!ut(i[s])&&(i[s]=Array.isArray(r[s])?[]:bt()),Rc(i[s])||Rc(r[s])?i[s]=r[s]:n.push({src:r[s],des:i[s]}))})}}function SG(e,t=e.getCurrentLanguage(),n=e.getCurrentDirection()){const r={htmlAttrs:{},link:[],meta:[]};if(e.dir&&(r.htmlAttrs.dir=n),e.lang&&t&&(r.htmlAttrs.lang=t),e.seo){const i=xG(e);r.link=r.link.concat(i,kG(e)),r.meta=r.meta.concat(RG(e),LG(e),OG(e,e.locales.map(s=>s.language||s.code)))}return r}function EG(e){const t=new Map;for(const n of e){if(!n.language)continue;const[r,i]=n.language.split("-");r&&i&&(n.isCatchallLocale||!t.has(r))&&t.set(r,n),t.set(n.language,n)}return t}function xG(e){if(!e.hreflangLinks)return[];const t=[],n=EG(e.locales);for(const[r,i]of n.entries()){const s=TG(r,i,e);s&&(t.push(s),e.defaultLocale&&e.defaultLocale===i.code&&t[0].hreflang!=="x-default"&&t.unshift({[e.key]:"i18n-xd",rel:"alternate",href:s.href,hreflang:"x-default"}))}return t}function TG(e,t,n,r=n.strictCanonicals?n.getRouteWithoutQuery():void 0){const i=n.getLocalizedRoute(t.code,r);if(!i)return;const s=bd(kr(i)?i:Hi(n.baseUrl,i),n.strictCanonicals?CS(n):{});return{[n.key]:`i18n-alt-${e}`,rel:"alternate",href:s,hreflang:e}}function vS(e,t=e.getCurrentRoute()){const n=e.getLocaleRoute(Object.assign({},t,{path:void 0,name:e.getRouteBaseName(t)}));return n?bd(Hi(e.baseUrl,n.path),CS(e)):""}function kG(e,t=vS(e)){return t?[{[e.key]:"i18n-can",rel:"canonical",href:t}]:[]}function CS(e,t=e.getCurrentRoute()){const r=e.getLocaleRoute(Object.assign({},t,{path:void 0,name:e.getRouteBaseName(t)}))?.query??{},i={};for(const s of e.canonicalQueries.filter(o=>o in r)){i[s]??=[];for(const o of NG(r[s]))i[s].push(o||"")}return i}function RG(e,t=vS(e)){return t?[{[e.key]:"i18n-og-url",property:"og:url",content:t}]:[]}function LG(e,t=e.getCurrentLanguage()){return t?[{[e.key]:"i18n-og",property:"og:locale",content:IS(t)}]:[]}function OG(e,t,n=e.getCurrentLanguage()){return t.filter(i=>i&&i!==n).map(i=>({[e.key]:`i18n-og-alt-${i}`,property:"og:locale:alternate",content:IS(i)}))}function IS(e=""){return e.replace(/-/g,"_")}function NG(e){return Array.isArray(e)?e:[e]}function AS(e,t,n=e.getLocale()){if(We(t)&&kr(t,{acceptRelative:!0}))return t;try{return _S(e,t,n).fullPath}catch{return""}}function wS(e,t,n=e.getLocale()){try{return _S(e,t,n)}catch{return}}function PG(e){if(!We(e))return Ht({},e);if(e[0]==="/"){const{pathname:t,search:n,hash:r}=Qf(e);return{path:t,query:yd(n),hash:r}}return{name:e}}
13function _S(e,t,n){const r=PG(t),i=e.router.resolve(e.resolveLocalizedRouteObject(r,n));return i.name?i:e.router.resolve(t)}function SS(e,t,n=e.router.currentRoute.value){const r=e.getRouteBaseName(n);if(!r)return"";const i={name:r,params:Ht({},n.params,e.getLocalizedDynamicParams(t)),fullPath:n.fullPath,query:n.query,hash:n.hash,path:n.path,meta:n.meta},s=AS(e,i,t);return e.afterSwitchLocalePath(s,t)}function $G(e,t,n=e.getLocale(),r=e.getLocales(),i=e.getBaseUrl()){const s=r.find(a=>a.code===n)||{},o=typeof t.seo=="object"&&t.seo?.canonicalQueries||[];return{...t,key:"id",locales:r,baseUrl:i,canonicalQueries:o,hreflangLinks:e.routingOptions.hreflangLinks,defaultLocale:e.routingOptions.defaultLocale,strictCanonicals:e.routingOptions.strictCanonicals,getRouteBaseName:e.getRouteBaseName,getCurrentRoute:()=>e.router.currentRoute.value,getCurrentLanguage:()=>s.language,getCurrentDirection:()=>s.dir||"ltr",getLocaleRoute:a=>wS(e,a),getLocalizedRoute:(a,c)=>SS(e,a,c),getRouteWithoutQuery:()=>{try{return Ht({},e.router.resolve({query:{}}),{meta:e.router.currentRoute.value.meta})}catch{return}}}}function MG(e,{dir:t=!0,lang:n=!0,seo:r=!0}){return SG($G(e,{dir:t,lang:n,seo:r}))}function DG(e=0){return t=>{const i=(typeof t=="string"?t:t.pathname).split("?")[0].split("/");return i[0]===""&&i.shift(),i.length>e&&i[e]||""}}const ES="___";function xS(e){return typeof e=="string"?e:e!=null?e.toString():""}function Vh(e){return xS(typeof e=="object"?e?.name:e).split(ES)[0]}const BG=DG(0),Tp=e=>BG(e),FG=e=>e.split(ES).at(1)??"";function HG(e){return String(typeof e!="object"?e:e?.name||e?.path||"")}function WG(e){const t=HG(e);if(t[0]==="/")return Tp(t);const n=FG(t);return n||(typeof e=="object"&&e?.path?Tp(String(e.path)):"")}function VG(e){return t=>xS(t)}function GG(e){return t=>t}const Sl=["en","it","es","fr-CA"],Fu={en:[],it:[],es:[],"fr-CA":[]},UG=[()=>Me(()=>import("./DPBWbBMx.js"),[],import.meta.url)],Ql=[{code:"en",language:"en"},{code:"it",language:"it"},{code:"es",language:"es"},{code:"fr-CA",language:"fr-CA"}];function kp(e){return typeof e=="string"?`'${e}'`:new jG().serialize(e)}const jG=(function(){class e{#e=new Map;compare(n,r){const i=typeof n,s=typeof r;return i==="string"&&s==="string"?n.localeCompare(r):i==="number"&&s==="number"?n-r:String.prototype.localeCompare.call(this.serialize(n,!0),this.serialize(r,!0))}serialize(n,r){if(n===null)return"null";switch(typeof n){case"string":return r?n:`'${n}'`;case"bigint":return`${n}n`;case"object":return this.$object(n);case"function":return this.$function(n)}return String(n)}serializeObject(n){const r=Object.prototype.toString.call(n);if(r!=="[object Object]")return this.serializeBuiltInType(r.length<10?`unknown:${r}`:r.slice(8,-1),n);const i=n.constructor,s=i===Object||i===void 0?"":i.name;if(s!==""&&globalThis[s]===i)return this.serializeBuiltInType(s,n);if(typeof n.toJSON=="function"){const o=n.toJSON();return s+(o!==null&&typeof o=="object"?this.$object(o):`(${this.serialize(o)})`)}return this.serializeObjectEntries(s,Object.entries(n))}serializeBuiltInType(n,r){const i=this["$"+n];if(i)return i.call(this,r);if(typeof r?.entries=="function")return this.serializeObjectEntries(n,r.entries());throw new Error(`Cannot serialize ${n}`)}serializeObjectEntries(n,r){const i=Array.from(r).sort((o,a)=>this.compare(o[0],a[0]));let s=`${n}{`;for(let o=0;o<i.length;o++){const[a,c]=i[o];s+=`${this.serialize(a,!0)}:${this.serialize(c)}`,o<i.length-1&&(s+=",")}return s+"}"}$object(n){let r=this.#e.get(n);return r===void 0&&(this.#e.set(n,`#${this.#e.size}`),r=this.serializeObject(n),this.#e.set(n,r)),r}$function(n){const r=Function.prototype.toString.call(n);return r.slice(-15)==="[native code] }"?`${n.name||""}()[native]`:`${n.name}(${n.length})${r.replace(/\s*\n\s*/g,"")}`}$Array(n){let r="[";for(let i=0;i<n.length;i++)r+=this.serialize(n[i]),i<n.length-1&&(r+=",");return r+"]"}$Date(n){try{return`Date(${n.toISOString()})`}catch{return"Date(null)"}}$ArrayBuffer(n){return`ArrayBuffer[${new Uint8Array(n).join(",")}]`}$Set(n){return`Set${this.$Array(Array.from(n).sort((r,i)=>this.compare(r,i)))}`}
13$Map(n){return this.serializeObjectEntries("Map",n.entries())}}for(const t of["Error","RegExp","URL"])e.prototype["$"+t]=function(n){return`${t}(${n})`};for(const t of["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"])e.prototype["$"+t]=function(n){return`${t}[${n.join(",")}]`};for(const t of["BigInt64Array","BigUint64Array"])e.prototype["$"+t]=function(n){return`${t}[${n.join("n,")}${n.length>0?"n":""}]`};return e})();function zG(e,t){return e===t||kp(e)===kp(t)}const ZG=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],KG=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],YG="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",fo=[];let XG=class{_data=new ws;_hash=new ws([...ZG]);_nDataBytes=0;_minBufferSize=0;finalize(t){t&&this._append(t);const n=this._nDataBytes*8,r=this._data.sigBytes*8;return this._data.words[r>>>5]|=128<<24-r%32,this._data.words[(r+64>>>9<<4)+14]=Math.floor(n/4294967296),this._data.words[(r+64>>>9<<4)+15]=n,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}_doProcessBlock(t,n){const r=this._hash.words;let i=r[0],s=r[1],o=r[2],a=r[3],c=r[4],l=r[5],d=r[6],v=r[7];for(let R=0;R<64;R++){if(R<16)fo[R]=t[n+R]|0;else{const x=fo[R-15],S=(x<<25|x>>>7)^(x<<14|x>>>18)^x>>>3,b=fo[R-2],p=(b<<15|b>>>17)^(b<<13|b>>>19)^b>>>10;fo[R]=S+fo[R-7]+p+fo[R-16]}const O=c&l^~c&d,$=i&s^i&o^s&o,P=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),T=(c<<26|c>>>6)^(c<<21|c>>>11)^(c<<7|c>>>25),C=v+T+O+KG[R]+fo[R],N=P+$;v=d,d=l,l=c,c=a+C|0,a=o,o=s,s=i,i=C+N|0}r[0]=r[0]+i|0,r[1]=r[1]+s|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+c|0,r[5]=r[5]+l|0,r[6]=r[6]+d|0,r[7]=r[7]+v|0}_append(t){typeof t=="string"&&(t=ws.fromUtf8(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes}_process(t){let n,r=this._data.sigBytes/64;t?r=Math.ceil(r):r=Math.max((r|0)-this._minBufferSize,0);const i=r*16,s=Math.min(i*4,this._data.sigBytes);if(i){for(let o=0;o<i;o+=16)this._doProcessBlock(this._data.words,o);n=this._data.words.splice(0,i),this._data.sigBytes-=s}return new ws(n,s)}};class ws{words;sigBytes;constructor(t,n){t=this.words=t||[],this.sigBytes=n===void 0?t.length*4:n}static fromUtf8(t){const n=unescape(encodeURIComponent(t)),r=n.length,i=[];for(let s=0;s<r;s++)i[s>>>2]|=(n.charCodeAt(s)&255)<<24-s%4*8;return new ws(i,r)}toBase64(){const t=[];for(let n=0;n<this.sigBytes;n+=3){const r=this.words[n>>>2]>>>24-n%4*8&255,i=this.words[n+1>>>2]>>>24-(n+1)%4*8&255,s=this.words[n+2>>>2]>>>24-(n+2)%4*8&255,o=r<<16|i<<8|s;for(let a=0;a<4&&n*8+a*6<this.sigBytes*8;a++)t.push(YG.charAt(o>>>6*(3-a)&63))}return t.join("")}concat(t){if(this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4),this.sigBytes%4)for(let n=0;n<t.sigBytes;n++){const r=t.words[n>>>2]>>>24-n%4*8&255;this.words[this.sigBytes+n>>>2]|=r<<24-(this.sigBytes+n)%4*8}else for(let n=0;n<t.sigBytes;n+=4)this.words[this.sigBytes+n>>>2]=t.words[n>>>2];this.sigBytes+=t.sigBytes}}function JG(e){return new XG().finalize(e).toBase64()}function ms(e){return JG(kp(e))}const TS=Symbol.for("nuxt:client-only"),kS=an({name:"ClientOnly",inheritAttrs:!1,props:["fallback","placeholder","placeholderTag","fallbackTag"],setup(e,{slots:t,attrs:n}){const r=wn(!1);tr(()=>{r.value=!0});const i=Mt();return i&&(i._nuxtClientOnly=!0),Ir(TS,!0),()=>{if(r.value){const c=t.default?.();return c&&c.length===1?[Er(c[0],n)]:c}const s=t.fallback||t.placeholder;if(s)return At(s);const o=e.fallback||e.placeholder||"",a=e.fallbackTag||e.placeholderTag||"span";return on(a,n,o)}}});function RS(e){return Object.defineProperty(function(){throw new Error(`[nuxt] \`${e.name}\` is a compiler macro and cannot be called at runtime.`)},"__nuxt_factory",{enumerable:!1,get:()=>e.factory})}const LS=RS({name:"createUseAsyncData",factory(e={}){function t(...n){const r=typeof n[n.length-1]=="string"?n.pop():void 0;QG(n[0],n[1])&&n.unshift(r);let[i,s,o={}]=n,a=!1;const c=Et(i)||typeof i=="function",l=c?Xe(()=>br(i)):{value:i};if(!l.value||typeof l.value!="string")throw new TypeError("[nuxt] [useAsyncData] key must be a non-empty string.");if(typeof s!="function")throw new TypeError("[nuxt] [useAsyncData] handler must be a function.");const d=typeof e=="function",v=Ue(),R=d?e(o):e;if(!d)for(const x in R)R[x]!==void 0&&o[x]===void 0&&(o[x]=R[x]);if(o.server??=!0,o.default??=tU,o.getCachedData??=NS,o.lazy??=!1,o.immediate??=!0,o.deep??=uN.deep,o.dedupe??="cancel",d)for(const x in R)R[x]!==void 0&&(o[x]=R[x]);v._asyncData[l.value];function O(){const x={cause:"initial",dedupe:o.dedupe},S=v._asyncData[l.value];return S?._init?x.cachedData=S._initialCachedData:(x.cachedData=o.getCachedData(l.value,v,{cause:"initial"}),v._asyncData[l.value]=bv(v,l.value,s,o,x.cachedData),v._asyncData[l.value]._initialCachedData=x.cachedData),()=>v._asyncData[l.value].execute(x)}const $=O(),P=v._asyncData[l.value];P._deps++;const T=o.server!==!1&&v.payload.serverRendered;{let x=function(m){const I=v._asyncData[m];I?._deps&&(I._deps--,I._deps===0&&I?._off())};const S=Mt();if(S&&T&&o.immediate&&!S.sp&&(S.sp=[]),S&&!S._nuxtOnBeforeMountCbs){S._nuxtOnBeforeMountCbs=[];const m=S._nuxtOnBeforeMountCbs;Rg(()=>{m.forEach(I=>{I()}),m.splice(0,m.length)}),Ii(()=>m.splice(0,m.length))}const b=S&&(S._nuxtClientOnly||Nt(TS,!1));T&&v.isHydrating&&(P.error.value||P.data.value!==void 0)?P.status.value=P.error.value?"error":"success":S&&(!b&&v.payload.serverRendered&&v.isHydrating||o.lazy)&&o.immediate?S._nuxtOnBeforeMountCbs.push($):o.immediate&&P.status.value!=="success"&&$();const p=qi(),g=()=>{},u=c?xt(l,(m,I)=>{if((m||I)&&m!==I){a=!0;const _=v._asyncData[I]?.data.value!==void 0,h=v._asyncDataPromises[I]!==void 0,f={cause:"initial",dedupe:o.dedupe};if(!v._asyncData[m]?._init){let w;I&&_?w=v._asyncData[I].data.value:(w=o.getCachedData(m,v,{cause:"initial"}),f.cachedData=w),v._asyncData[m]=bv(v,m,s,o,w)}v._asyncData[m]._deps++,I&&x(I),(o.immediate||_||h)&&v._asyncData[m].execute(f),Lo(()=>{a=!1})}},{flush:"sync"}):g,y=o.watch?xt(o.watch,()=>{a||(v._asyncData[l.value]?._execute.isPending()&&Lo(()=>{v._asyncData[l.value]?._execute.flush()}),v._asyncData[l.value]?._execute({cause:"watch",dedupe:o.dedupe}))}):g;p&&Zr(()=>{u(),y(),x(l.value)})}const C={data:Lc(()=>v._asyncData[l.value]?.data),pending:Lc(()=>v._asyncData[l.value]?.pending),status:Lc(()=>v._asyncData[l.value]?.status),error:Lc(()=>v._asyncData[l.value]?.error),refresh:(...x)=>v._asyncData[l.value]?._init?v._asyncData[l.value].execute(...x):O()(),execute:(...x)=>C.refresh(...x),clear:()=>{const x=v._asyncData[l.value];if(x?._abortController)try{x._abortController.abort(new DOMException("AsyncData aborted by user.","AbortError"))}finally{x._abortController=void 0}OS(v,l.value)}},N=Promise.resolve(v._asyncDataPromises[l.value]).then(()=>C);return Object.assign(N,C),Object.defineProperties(N,{then:{enumerable:!0,value:N.then.bind(N)},catch:{enumerable:!0,value:N.catch.bind(N)},finally:{enumerable:!0,value:N.finally.bind(N)}}),N}return t}}),qG=LS.__nuxt_factory();LS.__nuxt_factory({lazy:!0,_functionName:"useLazyAsyncData"});function Lc(e){return Xe({get(){return e()?.value},set(t){const n=e();n&&(n.value=t)}})}function QG(e,t){return!(typeof e=="string"||typeof e=="object"&&e!==null||typeof e=="function"&&typeof t=="function")}function OS(e,t){t in e.payload.data&&(e.payload.data[t]=void 0),t in e.payload._errors&&(e.payload._errors[t]=void 0),e._asyncData[t]&&(e._asyncData[t].data.value=Ze(e._asyncData[t]._default()),e._asyncData[t].error.value=void 0,e._asyncData[t].status.value="idle",e._asyncData[t]._initialCachedData=void 0),t in e._asyncDataPromises&&(e._asyncDataPromises[t]=void 0)}function eU(e,t){const n={};for(const r of t)n[r]=e[r];return n}function bv(e,t,n,r,i){e.payload._errors[t]??=void 0;const s=r.getCachedData!==NS,o=n,a=r.deep?yt:wn,c=i!==void 0,l=e.hook("app:data:refresh",async v=>{(!v||v.includes(t))&&await d.execute({cause:"refresh:hook"})}),d={data:a(c?i:r.default()),pending:Xe(()=>d.status.value==="pending"),error:sd(e.payload._errors,t),status:wn("idle"),execute:(...v)=>{const[R,O=void 0]=v,$=R&&O===void 0&&typeof R=="object"?R:{};if(e._asyncDataPromises[t]&&($.dedupe??r.dedupe)==="defer")return e._asyncDataPromises[t];{const C="cachedData"in $?$.cachedData:r.getCachedData(t,e,{cause:$.cause??"refresh:manual"});if(C!==void 0)return e.payload.data[t]=d.data.value=C,d.error.value=void 0,d.status.value="success",Promise.resolve(C)}d._abortController&&d._abortController.abort(new DOMException("AsyncData request cancelled by deduplication","AbortError")),d._abortController=new AbortController,d.status.value="pending";const P=new AbortController,T=new Promise((C,N)=>{try{const x=$.timeout??r.timeout,S=nU([d._abortController?.signal,$?.signal],P.signal,x);if(S.aborted){const b=S.reason;N(b instanceof Error?b:new DOMException(String(b??"Aborted"),"AbortError"));return}return S.addEventListener("abort",()=>{const b=S.reason;N(b instanceof Error?b:new DOMException(String(b??"Aborted"),"AbortError"))},{once:!0,signal:P.signal}),Promise.resolve(o(e,{signal:S})).then(C,N)}catch(x){N(x)}}).then(async C=>
13{if(e._asyncDataPromises[t]!==T)return;let N=C;r.transform&&(N=await r.transform(C)),r.pick&&(N=eU(N,r.pick)),e.payload.data[t]=N,d.data.value=N,d.error.value=void 0,d.status.value="success"}).catch(C=>{if(e._asyncDataPromises[t]!==T||d._abortController?.signal.aborted)return e._asyncDataPromises[t];if(typeof DOMException<"u"&&C instanceof DOMException&&C.name==="AbortError")return d.status.value="idle",e._asyncDataPromises[t];d.error.value=Wi(C),d.data.value=Ze(r.default()),d.status.value="error"}).finally(()=>{P.abort(),e._asyncDataPromises[t]===T&&delete e._asyncDataPromises[t]});return e._asyncDataPromises[t]=T,e._asyncDataPromises[t]},_execute:oH((...v)=>d.execute(...v),0,{leading:!0}),_default:r.default,_deps:0,_init:!0,_hash:void 0,_off:()=>{l(),e._asyncData[t]?._init&&(e._asyncData[t]._init=!1),s||Wn(()=>{e._asyncData[t]?._init||(OS(e,t),d.execute=()=>Promise.resolve())})}};return d}const tU=()=>{},NS=(e,t,n)=>{if(t.isHydrating)return t.payload.data[e];if(n.cause!=="refresh:manual"&&n.cause!=="refresh:hook")return t.static.data[e]};function nU(e,t,n){const r=e.filter(o=>!!o);if(typeof n=="number"&&n>=0){const o=AbortSignal.timeout?.(n);o&&r.push(o)}if(AbortSignal.any)return AbortSignal.any(r);const i=new AbortController;for(const o of r)if(o.aborted){const a=o.reason??new DOMException("Aborted","AbortError");try{i.abort(a)}catch{i.abort()}return i.signal}const s=()=>{const a=r.find(c=>c.aborted)?.reason??new DOMException("Aborted","AbortError");try{i.abort(a)}catch{i.abort()}};for(const o of r)o.addEventListener?.("abort",s,{once:!0,signal:t});return i.signal}const rU="$s";function PS(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);const[n,r]=e;if(!n||typeof n!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+n);if(r!==void 0&&typeof r!="function")throw new Error("[nuxt] [useState] init must be a function: "+r);const i=rU+n,s=Ue(),o=sd(s.payload.state,i);if(r&&(s._state[i]??={_default:r}),o.value===void 0&&r){const a=r();if(Et(a))return s.payload.state[i]=a,a;o.value=a}return o}function iU(e){const t=[br(e.method)?.toUpperCase()||"GET",br(e.baseURL)];for(const n of[e.query||e.params]){const r=br(n);if(!r)continue;const i={};for(const[s,o]of Object.entries(r))i[br(s)]=br(o);t.push(i)}if(e.body){const n=br(e.body);if(!n)t.push(ms(n));else if(n instanceof ArrayBuffer)t.push(ms(Object.fromEntries([...new Uint8Array(n).entries()].map(([r,i])=>[r,i.toString()]))));else if(n instanceof FormData){const r=[];for(const i of n.entries()){const[s,o]=i;r.push([s,o instanceof File?`${o.name}:${o.size}:${o.lastModified}`:o])}t.push(ms(r))}else if(DV(n))t.push(ms(Pn(n)));else try{t.push(ms(n))}catch{}}return t}const $S=RS({name:"createUseFetch",factory(e={}){function t(n,r,i){const[s={},o]=typeof r=="string"?[{},r]:[r,i],a=typeof e=="function"?e(s):e,{server:c,lazy:l,default:d,transform:v,pick:R,watch:O,immediate:$,getCachedData:P,deep:T,dedupe:C,timeout:N,...x}={...typeof e=="function"?{}:a,...s,...typeof e=="function"?a:{}},S=Xe(()=>br(n)),b=Xe(()=>br(x.key)||"$f"+ms([o,typeof S.value=="string"?S.value:"",...iU(x)]));if(!x.baseURL&&typeof S.value=="string"&&S.value[0]==="/"&&S.value[1]==="/")throw new Error('[nuxt] [useFetch] the request URL must not start with "//".');const p=Pn({...dN,...x,cache:typeof x.cache=="boolean"?void 0:x.cache}),g={server:c,lazy:l,default:d,transform:v,pick:R,immediate:$,getCachedData:P,deep:T,dedupe:C,timeout:N,watch:O===!1?[]:[...O||[],p]};return qG(O===!1?b.value:b,(y,{signal:m})=>(x.$fetch||globalThis.$fetch)(S.value,{signal:m,...p}),g)}return t}});$S.__nuxt_factory();$S.__nuxt_factory({lazy:!0,_functionName:"useLazyFetch"});const oU=(()=>{const e=function(){};return e.prototype=Object.create(null),e})();function sU(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");const n=new oU,r=t||{},i=r.decode||aU;let s=0;for(;s<e.length;){const o=e.indexOf("=",s);if(o===-1)break;let a=e.indexOf(";",s);if(a===-1)a=e.length;else if(a<o){s=e.lastIndexOf(";",o-1)+1;continue}const c=e.slice(s,o).trim();if(r?.filter&&!r?.filter(c)){s=a+1;continue}if(n[c]===void 0){let l=e.slice(o+1,a).trim();l.codePointAt(0)===34&&(l=l.slice(1,-1)),n[c]=lU(l,i)}s=a+1}return n}
13function aU(e){return e.includes("%")?decodeURIComponent(e):e}function lU(e,t){try{return t(e)}catch{return e}}const Oc=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function vv(e,t,n){const r=n||{},i=r.encode||encodeURIComponent;if(typeof i!="function")throw new TypeError("option encode is invalid");if(!Oc.test(e))throw new TypeError("argument name is invalid");const s=i(t);if(s&&!Oc.test(s))throw new TypeError("argument val is invalid");let o=e+"="+s;if(r.maxAge!==void 0&&r.maxAge!==null){const a=r.maxAge-0;if(Number.isNaN(a)||!Number.isFinite(a))throw new TypeError("option maxAge is invalid");o+="; Max-Age="+Math.floor(a)}if(r.domain){if(!Oc.test(r.domain))throw new TypeError("option domain is invalid");o+="; Domain="+r.domain}if(r.path){if(!Oc.test(r.path))throw new TypeError("option path is invalid");o+="; Path="+r.path}if(r.expires){if(!cU(r.expires)||Number.isNaN(r.expires.valueOf()))throw new TypeError("option expires is invalid");o+="; Expires="+r.expires.toUTCString()}if(r.httpOnly&&(o+="; HttpOnly"),r.secure&&(o+="; Secure"),r.priority)switch(typeof r.priority=="string"?r.priority.toLowerCase():r.priority){case"low":{o+="; Priority=Low";break}case"medium":{o+="; Priority=Medium";break}case"high":{o+="; Priority=High";break}
13default:throw new TypeError("option priority is invalid")}if(r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:{o+="; SameSite=Strict";break}case"lax":{o+="; SameSite=Lax";break}case"strict":{o+="; SameSite=Strict";break}case"none":{o+="; SameSite=None";break}default:throw new TypeError("option sameSite is invalid")}return r.partitioned&&(o+="; Partitioned"),o}function cU(e){return Object.prototype.toString.call(e)==="[object Date]"||e instanceof Date}function mr(e){if(typeof e!="object")return e;var t,n,r=Object.prototype.toString.call(e);if(r==="[object Object]"){if(e.constructor!==Object&&typeof e.constructor=="function"){n=new e.constructor;for(t in e)e.hasOwnProperty(t)&&n[t]!==e[t]&&(n[t]=mr(e[t]))}else{n={};for(t in e)t==="__proto__"?Object.defineProperty(n,t,{value:mr(e[t]),configurable:!0,enumerable:!0,writable:!0}):n[t]=mr(e[t])}return n}if(r==="[object Array]"){for(t=e.length,n=Array(t);t--;)n[t]=mr(e[t]);return n}return r==="[object Set]"?(n=new Set,e.forEach(function(i){n.add(mr(i))}),n):r==="[object Map]"?(n=new Map,e.forEach(function(i,s){n.set(mr(s),mr(i))}),n):r==="[object Date]"?new Date(+e):r==="[object RegExp]"?(n=new RegExp(e.source,e.flags),n.lastIndex=e.lastIndex,n):r==="[object DataView]"?new e.constructor(mr(e.buffer)):r==="[object ArrayBuffer]"?e.slice(0):r.slice(-6)==="Array]"?new e.constructor(e):e}function uU(e){if(e!=="undefined")try{const t=JSON.parse(e);return typeof t=="number"&&String(t)!==e?e:t}catch{return e}}const dU={path:"/",watch:!0,decode:e=>e&&uU(decodeURIComponent(e)),encode:e=>{if(typeof e!="string"||e==="undefined")return encodeURIComponent(JSON.stringify(e));try{if(typeof JSON.parse(e)!="string")return encodeURIComponent(JSON.stringify(e))}catch{}return encodeURIComponent(e)},refresh:!1},Nc=globalThis.cookieStore;function MS(e,t){const n={...dU,...t};n.filter??=l=>l===e;const r=Cv(n)||{};let i;n.maxAge!==void 0?i=n.maxAge*1e3:n.expires&&(i=n.expires.getTime()-Date.now());const s=i!==void 0&&i<=0,o=s||r[e]===void 0||r[e]===null,a=mr(s?void 0:r[e]??n.default?.()),c=i&&!s?mU(a,i,n.watch&&n.watch!=="shallow"):yt(a);{let l=null;try{!Nc&&typeof BroadcastChannel<"u"&&(l=new BroadcastChannel(`nuxt:cookies:${e}`))}catch{}const d=($=!1)=>{if(!$&&(n.readonly||zG(c.value,r[e])))return;const P=c.value===null||c.value===void 0?void 0:n.encode(c.value);gU(e,P,n),r[e]=mr(c.value),l?.postMessage({value:n.encode(c.value)})},v=$=>{const P=$.refresh?Cv(n)?.[e]:n.decode($.value);R=!0,c.value=P,r[e]=mr(P),Wn(()=>{R=!1})};let R=!1;const O=!!qi();if(O&&Zr(()=>{R=!0,d(),l?.close()}),Nc){const $=P=>{const T=P.changed.find(N=>N.name===e),C=P.deleted.find(N=>N.name===e);T&&v({value:T.value}),C&&v({value:null})};Nc.addEventListener("change",$),O&&Zr(()=>Nc.removeEventListener("change",$))}else l&&(l.onmessage=({data:$})=>v($));n.watch&&xt(c,()=>{R||d(n.refresh)},{deep:n.watch!=="shallow"}),o&&d(o)}return c}function Cv(e={}){return sU(document.cookie,e)}const hU=e=>e;function fU(e){const{encode:t,decode:n,...r}=e;return{...r,encode:hU}}function pU(e,t,n={}){const r=fU(n);return t===void 0?vv(e,"",{...r,maxAge:-1}):vv(e,t,r)}function gU(e,t,n={}){document.cookie=pU(e,t,n)}const Iv=2147483647;function mU(e,t,n){let r,i,s=0;const o=n?yt(e):{value:e};return qi()&&Zr(()=>{i?.(),clearTimeout(r)}),_g((a,c)=>{n&&(i=xt(o,c));function l(){const v=t-s,R=v<Iv?v:Iv;r=setTimeout(()=>{if(s+=R,s<t)return l();o.value=void 0,c()},R)}
13function d(){s=0,clearTimeout(r),l()}return{get(){return a(),o.value},set(v){d(),o.value=v,c()}}})}function DS(e){return new URL(globalThis.location.href)}const yU=(...e)=>e.find(t=>t!==void 0);function bU(e){const t=e.componentName||"NuxtLink";function n(s){return typeof s=="string"&&s.startsWith("#")}function r(s,o,a){const c=a??e.trailingSlash;if(!s||c!=="append"&&c!=="remove")return s;if(typeof s=="string")return Pc(s,c);const l="path"in s&&s.path!==void 0?s.path:o(s).path;return{...s,name:void 0,path:Pc(l,c)}}function i(s){const o=Dt(),a=ln(),c=Xe(()=>!!Ze(s.target)&&Ze(s.target)!=="_self"),l=Xe(()=>{const T=Ze(s.to)||Ze(s.href)||"";return typeof T=="string"&&kr(T,{acceptRelative:!0})}),d=gl("RouterLink"),v=d&&typeof d!="string"?d.useLink:void 0,R=Xe(()=>{if(Ze(s.external))return!0;const T=Ze(s.to)||Ze(s.href)||"";return typeof T=="object"?!1:T===""||l.value}),O=Xe(()=>{const T=Ze(s.to)||Ze(s.href)||"";return R.value?T:r(T,o.resolve,Ze(s.trailingSlash))}),$=R.value?void 0:v?.({...s,to:O,viewTransition:Ze(s.viewTransition)}),P=Xe(()=>{const T=Ze(s.trailingSlash)??e.trailingSlash;if(!O.value||l.value||n(O.value))return O.value;if(R.value){const C=typeof O.value=="object"&&"path"in O.value?ip(O.value):O.value,N=typeof C=="object"?o.resolve(C).href:C;return Pc(N,T)}return typeof O.value=="object"?o.resolve(O.value)?.href??null:Pc(Hi(a.app.baseURL,O.value),T)});return{to:O,hasTarget:c,isAbsoluteUrl:l,isExternal:R,href:P,isActive:$?.isActive??Xe(()=>O.value===o.currentRoute.value.path),isExactActive:$?.isExactActive??Xe(()=>O.value===o.currentRoute.value.path),route:$?.route??Xe(()=>o.resolve(O.value)),async navigate(T){await Kr(P.value,{replace:Ze(s.replace),external:R.value||c.value})}}}return an({name:t,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1},trailingSlash:{type:String,default:void 0,required:!1}},useLink:i,setup(s,{slots:o}){const a=Dt(),{to:c,href:l,navigate:d,isExternal:v,hasTarget:R,isAbsoluteUrl:O}=i(s),$=wn(!1),P=yt(null),T=x=>{P.value=s.custom?x?.$el?.nextElementSibling:x?.$el};function C(x){return!$.value&&(typeof s.prefetchOn=="string"?s.prefetchOn===x:s.prefetchOn?.[x]??e.prefetchOn?.[x])&&(s.prefetch??e.prefetch)!==!1&&s.noPrefetch!==!0&&s.target!=="_blank"&&!AU()}async function N(x=Ue()){if($.value)return;$.value=!0;const S=typeof c.value=="string"?c.value:v.value?ip(c.value):a.resolve(c.value).fullPath,b=v.value?new URL(S,window.location.href).href:S;await Promise.all([x.hooks.callHook("link:prefetch",b)?.catch(()=>{}),!v.value&&!R.value&&mS(c.value,a).catch(()=>{})])}if(C("visibility")){const x=Ue();let S,b=null;tr(()=>{const p=CU();ql(()=>{S=xp(()=>{P?.value?.tagName&&(b=p.observe(P.value,async()=>{b?.(),b=null,await N(x)}))})})}),Ci(()=>{S&&nG(S),b?.(),b=null})}return()=>{if(!v.value&&!R.value&&!n(c.value)){const b={ref:T,to:c.value,activeClass:s.activeClass||e.activeClass,exactActiveClass:s.exactActiveClass||e.exactActiveClass,replace:s.replace,ariaCurrentValue:s.ariaCurrentValue,custom:s.custom};
13return s.custom||(C("interaction")&&(b.onPointerenter=N.bind(null,void 0),b.onFocus=N.bind(null,void 0)),$.value&&(b.class=s.prefetchedClass||e.prefetchedClass),b.rel=s.rel||void 0),At(gl("RouterLink"),b,o.default)}const x=s.target||null,S=yU(s.noRel?"":s.rel,e.externalRelAttribute,O.value||R.value?"noopener noreferrer":"")||null;return s.custom?o.default?o.default({href:l.value,navigate:d,prefetch:N,get route(){if(!l.value)return;const b=new URL(l.value,window.location.href);return{path:b.pathname,fullPath:b.pathname,get query(){return yd(b.search)},hash:b.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:l.value}},rel:S,target:x,isExternal:v.value||R.value,isActive:!1,isExactActive:!1}):null:At("a",{ref:P,href:l.value||null,rel:S,target:x,onClick:async b=>{if(!(v.value||R.value)){b.preventDefault();try{const p=sw(l.value);return await(s.replace?a.replace(p):a.push(p))}finally{if(n(c.value)){const p=c.value.slice(1);let g=p;try{g=decodeURIComponent(p)}catch{}document.getElementById(g)?.focus()}}}}},o.default?.())}}})}const vU=bU(cN);function Pc(e,t){const n=t==="append"?VA:Vs;return kr(e)&&!e.startsWith("http")?e:n(e,!0)}function CU(){const e=Ue();if(e._observer)return e._observer;let t=null;const n=new Map,r=(s,o)=>(t||=new IntersectionObserver(a=>{for(const c of a){const l=n.get(c.target);(c.isIntersecting||c.intersectionRatio>0)&&l&&l()}}),n.set(s,o),t.observe(s),()=>{n.delete(s),t?.unobserve(s),n.size===0&&(t?.disconnect(),t=null)});return e._observer={observe:r}}const IU=/2g/;function AU(){const e=navigator.connection;return!!(e&&(e.saveData||IU.test(e.effectiveType)))}const BS=new Map,wU=nw((e,t,n)=>{if(t==="messages"||t==="datetimeFormats"||t==="numberFormats")return e[t]??=bt(null),Ps(n,e[t]),!0});async function _U(e){const t=Ue();let n={messages:bt(null)};for(const r of e){const i=await r().then(o=>FS(o)?o.default:o),s=Rt(i)?await t.runWithContext(()=>i()):i;n=wU(bt(null),s,n)}return n.fallbackLocale??=!1,n}const FS=e=>$d(e)==="[object Module]";async function SU(e,t){const n=Ue();try{const r=await n.runWithContext(t.load).then(i=>FS(i)?i.default:i);return Rt(r)?await n.runWithContext(()=>r(e)):r}catch(r){throw new Error(`Failed loading locale (${e}): `+r.message)}}async function EU(e,t=[]){const n=Ue(),r=await Promise.all(t.map(async s=>{const o=xU(s),a=o||await n.runWithContext(()=>SU(e,s));return!o&&s.cache!==!1&&BS.set(s.key,{ttl:Date.now()+86400*1e3,value:a}),a})),i={};for(const s of r)Ps(s,i);return i}function xU(e){if(e.cache===!1)return;const t=BS.get(e.key);if(t!=null)return t.ttl>Date.now()?t.value:void 0}function Cm(e){return e!=null&&"global"in e&&"mode"in e?e.global:e}function $c(e){const t=Cm(e);return"__composer"in t?t.__composer:t}function Md(e,t){return e?e.$config.public.i18n:ln().public.i18n}function Dd(e){const t=Md(e).detectBrowserLanguage,n=t||{};return{...n,enabled:!!t,cookieKey:n.cookieKey||"i18n_redirected"}}function TU(e){if(e)return{path:"/"+(We(e)?e:e.path).replace(/^\//,""),code:!We(e)&&e.statusCode||302}}function kU(e){return Array.isArray(e)?e:[e]}function RU(e,t,n){const r=(s="")=>s.replace(/https?:\/\//,""),i=e.filter(s=>r(s.domain)===t||kU(s.domains).includes(t));return i.length<=1?i[0]?.code:i.find(s=>s.code===n)?.code||i.find(s=>s.defaultForDomains?.includes(t)??s.domainDefault)?.code}function LU(e,t,n){const r=Ql.find(s=>s.code===n),i=e?.[n]?.domain||r?.domain||r?.domains?.find(s=>s===t.host);if(i)return kr(i,{strict:!0})?i:t.protocol+"//"+i}function OU(e){const t={};for(const n of Sl){const r=NU(e,[n]),i=PU(n,r);t[n]={fallbacks:r,cacheable:i}}return t}function NU(e,t){if(e===!1)return[];if(Ft(e))return e;let n=[];if(We(e))return t.every(i=>i!==e)&&n.push(e),n;const r=[...t,"default"];for(const i of r)i in e&&(n=[...n,...e[i].filter(Boolean)]);return n}function Av(e){return Fu[e]!=null&&Fu[e].every(t=>t.cache!==!1)}function PU(e,t){return Av(e)&&t.every(n=>Av(n))}function $U(e){return Ql.find(t=>!!t.defaultForDomains?.includes(e))?.code}const $s=e=>Sl.includes(e||""),wv=e=>$s(e)?e:void 0;var MU={en:"e1f5fd0c",it:"e1f5fd0c",es:"e1f5fd0c","fr-CA":"e1f5fd0c"};const HS=()=>PS("i18n:cached-locale-configs",()=>{}),WS=()=>PS("i18n:resolved-locale",()=>"");function DU({cookieCrossOrigin:e,cookieDomain:t,cookieSecure:n,cookieKey:r}){const i=new Date;return MS(r||"i18n_redirected",{path:"/",readonly:!1,expires:new Date(i.setDate(i.getDate()+365)),sameSite:e?"none":"lax",domain:t||void 0,secure:e||n})}function BU(e,t,n){const r=Cm(t),i=Md(e),s=Dd(e),o=HS(),a=DU(s),c=new Set,l=T=>o.value[T],d=T=>LU(i.domainLocales,DS(),T),v=qU(e,i.baseUrl),R=WS(),O=async T=>{const C=l(T)?.fallbacks??[];C.includes(T)||C.push(T);for(const N of C){const x=await e.runWithContext(()=>EU(N,Fu[N]));r.mergeLocaleMessage(N,x)}},$=async T=>
13{if(!(T in Fu))return;const C=l(T)?.cacheable?{}:{"Cache-Control":"no-cache"},x=Hi("","/_i18n",MU[T],T,"messages.json"),S=await $fetch(x,{headers:C});for(const b of Object.keys(S))r.mergeLocaleMessage(b,S[b])},P={vueI18n:t,initial:!0,preloaded:!1,config:i,rootRedirect:TU(i.rootRedirect),redirectStatusCode:i.redirectStatusCode??302,dynamicResourcesSSG:!1,getDefaultLocale:()=>n,getLocale:()=>Ze(r.locale),setLocale:async T=>{const C=P.getLocale();T===C||!$s(T)||(Et(r.locale)?r.locale.value=T:r.locale=T,await e.callHook("i18n:localeSwitched",{newLocale:T,oldLocale:C}),R.value=T)},setLocaleSuspend:async T=>{$s(T)&&(P.vueI18n.__pendingLocale=T,P.vueI18n.__pendingLocalePromise=new Promise(C=>{P.vueI18n.__resolvePendingLocalePromise=async()=>{P.setCookieLocale(T),await P.setLocale(T),P.vueI18n.__pendingLocale=void 0,C()}}),(e.isHydrating||!P.config.skipSettingLocaleOnNavigate)&&await P.vueI18n.__resolvePendingLocalePromise?.())},getLocales:()=>Ze(r.locales).map(T=>We(T)?{code:T}:T),setCookieLocale:T=>{s.useCookie&&$s(T)&&(a.value=T)},getBaseUrl:T=>Hi(T&&d(T)||v(),e.$config.app.baseURL),loadMessages:async T=>{if(!(e.isHydrating&&c.has(T)))try{return P.dynamicResourcesSSG?await O(T):await $(T)}catch{}finally{c.add(T)}},composableCtx:void 0};return P.composableCtx=KU(P,e),P}function Im(e){if(e._nuxtI18n==null)throw new Error("Nuxt I18n context has not been set up yet.");return e._nuxtI18n}function FU(e,t){const n=[];for(const[r,i]of t.entries()){const s=e.find(o=>o.language?.toLowerCase()===i.toLowerCase());if(s){n.push({code:s.code,score:1-r/t.length});break}}for(const[r,i]of t.entries()){const s=i.split("-")[0].toLowerCase(),o=e.find(a=>a.language?.split("-")[0].toLowerCase()===s);if(o){n.push({code:o.code,score:.999-r/t.length});break}}return n}function HU(e,t){return e.score===t.score?t.code.length-e.code.length:t.score-e.score}function WU(e,t){return FU(e.map(r=>({code:r.code,language:r.language||r.code})),t).sort(HU).at(0)?.code??""}const VU=(e,t)=>MS(t).value||void 0,GU=(e,t)=>WG(t),UU=e=>WU(Ql,navigator.languages),jU=(e,t,n)=>{const r=new URL(window.location.href).host,i=Ql.map(s=>({...s,domain:n[s.code]?.domain??s.domain}));return RU(i,r,Tp(t))},Am=(e,t,n)=>{const r=Md(n);return{cookie:()=>VU(e,t.cookieKey),header:()=>{},navigator:()=>UU(),host:i=>jU(e,i,r.domainLocales),route:i=>GU(e,i)}},zU=e=>!!e.path&&!e.name;function Bd(e){const t=e?._nuxtI18n?.composableCtx;if(!t)throw new Error("i18n context is not initialized. Ensure the i18n plugin is installed and the composable is used within a Vue component or setup function.");return t}const ZU=Vs;function KU(e,t=Ue()){const n=Dt();Am(void 0,Dd(t),t);const r=e.getDefaultLocale(),i=VG();function s(l,d){l.name=Vh(l.name||n.currentRoute.value);const v=i(l.name,d);return n.hasRoute(v)&&(l.name=v),l.name=v,l}const o=GG();function a(l,d){const v=o(l,d),R=Vh(v);if(R){const O=i(R,d);return n.hasRoute(O),v.name=O,v}return v.path=ZU(v.path,!0),v}const c={router:n,_head:void 0,get head(){return this._head??=_l({}),this._head},metaState:{htmlAttrs:{},meta:[],link:[]},seoSettings:{dir:!1,lang:!1,seo:!1},localePathPayload:YU(),routingOptions:{defaultLocale:r,strictCanonicals:e.config.experimental.alternateLinkCanonicalQueries??!0,hreflangLinks:!1},getLocale:e.getLocale,getLocales:e.getLocales,getBaseUrl:e.getBaseUrl,getRouteBaseName:Vh,getRouteLocalizedParams:()=>n.currentRoute.value.meta.nuxtI18nInternal??{},getLocalizedDynamicParams:l=>c.getRouteLocalizedParams()?.[l],afterSwitchLocalePath:(l,d)=>(c.getRouteLocalizedParams(),l),resolveLocalizedRouteObject:(l,d)=>zU(l)?a(l,d):s(l,d)};return c}function YU(e=Ue()){const t=document.querySelector(`[data-nuxt-i18n-slp="${e._id}"]`)?.textContent;return JSON.parse(t||"{}")}async function VS(e,t){const n=Im(e),r=n.getLocale();if(t===r&&!n.initial&&(!n.vueI18n.__pendingLocale||n.vueI18n.__pendingLocale===t))return t;const i={oldLocale:r,newLocale:t,initialSetup:n.initial,context:e};let s=await e.callHook("i18n:beforeLocaleSwitch",i);return s!=null,s??=i.newLocale,$s(s)&&(t=s),await n.loadMessages(t),await n.setLocaleSuspend(t),t}function XU(e,t,n){return!1}function JU(e,t){const n=Dd(e),r=Am(void 0,n,e),i=Im(e),s=We(t)?t:t.path;function*o(){i.initial&&n.enabled&&!XU(n,s,r.route(s))&&(yield r.cookie(),yield r.header(),yield r.navigator(),yield n.fallbackLocale)}
13for(const a of o())if(a&&$s(a))return a;return i.getLocale()||i.getDefaultLocale()||""}function qU(e,t,n,r){return Rt(t)?()=>t(e):()=>t??""}function QU(e,t,n){return{line:e,column:t,offset:n}}function Rp(e,t,n){return{start:e,end:t}}const mt={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14},e3=17;function Fd(e,t,n={}){const{domain:r,messages:i,args:s}=n,o=e,a=new SyntaxError(String(o));return a.code=e,t&&(a.location=t),a.domain=r,a}function t3(e){throw e}const Mr=" ",n3="\r",yn=` 14`,r3="\u2028",i3="\u2029";function o3(e){const t=e;let n=0,r=1,i=1,s=0;const o=g=>t[g]===n3&&t[g+1]===yn,a=g=>t[g]===yn,c=g=>t[g]===i3,l=g=>t[g]===r3,d=g=>o(g)||a(g)||c(g)||l(g),v=()=>n,R=()=>r,O=()=>i,$=()=>s,P=g=>o(g)||c(g)||l(g)?yn:t[g],T=()=>P(n),C=()=>P(n+s);function N(){return s=0,d(n)&&(r++,i=0),o(n)&&n++,n++,i++,t[n]}function x(){return o(n+s)&&s++,s++,t[n+s]}function S(){n=0,r=1,i=1,s=0}function b(g=0){s=g}function p(){const g=n+s;for(;g!==n;)N();s=0}return{index:v,line:R,column:O,peekOffset:$,charAt:P,currentChar:T,currentPeek:C,next:N,peek:x,reset:S,resetPeek:b,skipToPeek:p}}const Jr=void 0,s3=".",_v="'",a3="tokenizer";function l3(e,t={}){const n=t.location!==!1,r=o3(e),i=()=>r.index(),s=()=>QU(r.line(),r.column(),r.index()),o=s(),a=i(),c={currentType:13,offset:a,startLoc:o,endLoc:o,lastType:13,lastOffset:a,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},l=()=>c,{onError:d}=t;function v(ie,oe,de,...me){const be=l();if(oe.column+=de,oe.offset+=de,d){const Se=n?Rp(be.startLoc,oe):null,V=Fd(ie,Se,{domain:a3,args:me});d(V)}}function R(ie,oe,de){ie.endLoc=s(),ie.currentType=oe;const me={type:oe};return n&&(me.loc=Rp(ie.startLoc,ie.endLoc)),de!=null&&(me.value=de),me}const O=ie=>R(ie,13);function $(ie,oe){return ie.currentChar()===oe?(ie.next(),oe):(v(mt.EXPECTED_TOKEN,s(),0,oe),"")}function P(ie){let oe="";for(;ie.currentPeek()===Mr||ie.currentPeek()===yn;)oe+=ie.currentPeek(),ie.peek();return oe}function T(ie){const oe=P(ie);return ie.skipToPeek(),oe}function C(ie){if(ie===Jr)return!1;const oe=ie.charCodeAt(0);return oe>=97&&oe<=122||oe>=65&&oe<=90||oe===95}function N(ie){if(ie===Jr)return!1;const oe=ie.charCodeAt(0);return oe>=48&&oe<=57}function x(ie,oe){const{currentType:de}=oe;if(de!==2)return!1;P(ie);const me=C(ie.currentPeek());return ie.resetPeek(),me}function S(ie,oe){const{currentType:de}=oe;if(de!==2)return!1;P(ie);const me=ie.currentPeek()==="-"?ie.peek():ie.currentPeek(),be=N(me);return ie.resetPeek(),be}function b(ie,oe){const{currentType:de}=oe;if(de!==2)return!1;P(ie);const me=ie.currentPeek()===_v;return ie.resetPeek(),me}function p(ie,oe){const{currentType:de}=oe;if(de!==7)return!1;P(ie);const me=ie.currentPeek()===".";return ie.resetPeek(),me}function g(ie,oe){const{currentType:de}=oe;if(de!==8)return!1;P(ie);const me=C(ie.currentPeek());return ie.resetPeek(),me}function u(ie,oe){const{currentType:de}=oe;if(!(de===7||de===11))return!1;P(ie);const me=ie.currentPeek()===":";return ie.resetPeek(),me}function y(ie,oe){const{currentType:de}=oe;if(de!==9)return!1;const me=()=>{const Se=ie.currentPeek();return Se==="{"?C(ie.peek()):Se==="@"||Se==="|"||Se===":"||Se==="."||Se===Mr||!Se?!1:Se===yn?(ie.peek(),me()):I(ie,!1)},be=me();return ie.resetPeek(),be}function m(ie){P(ie);const oe=ie.currentPeek()==="|";return ie.resetPeek(),oe}function I(ie,oe=!0){const de=(be=!1,Se="")=>{const V=ie.currentPeek();return V==="{"||V==="@"||!V?be:V==="|"?!(Se===Mr||Se===yn):V===Mr?(ie.peek(),de(!0,Mr)):V===yn?(ie.peek(),de(!0,yn)):!0},me=de();return oe&&ie.resetPeek(),me}function _(ie,oe){const de=ie.currentChar();return de===Jr?Jr:oe(de)?(ie.next(),de):null}function h(ie){const oe=ie.charCodeAt(0);return oe>=97&&oe<=122||oe>=65&&oe<=90||oe>=48&&oe<=57||oe===95||oe===36}function f(ie){return _(ie,h)}function w(ie){const oe=ie.charCodeAt(0);return oe>=97&&oe<=122||oe>=65&&oe<=90||oe>=48&&oe<=57||oe===95||oe===36||oe===45}function E(ie){return _(ie,w)}function k(ie){const oe=ie.charCodeAt(0);return oe>=48&&oe<=57}function L(ie){return _(ie,k)}function M(ie){const oe=ie.charCodeAt(0);return oe>=48&&oe<=57||oe>=65&&oe<=70||oe>=97&&oe<=102}function B(ie){return _(ie,M)}function j(ie){let oe="",de="";for(;oe=L(ie);)de+=oe;return de}function z(ie){let oe="";for(;;){const de=ie.currentChar();if(de==="\\"){const me=ie.peek();me==="{"||me==="}"||me==="@"||me==="|"||me==="\\"?(oe+=de+me,ie.next(),ie.next()):(ie.resetPeek(),oe+=de,ie.next())}else{if(de==="{"||de==="}"||de==="@"||de==="|"||!de)break;if(de===Mr||de===yn)if(I(ie))oe+=de,ie.next();else{if(m(ie))break;oe+=de,ie.next()}else oe+=de,ie.next()}}return oe}function Q(ie){T(ie);let oe="",de="";for(;oe=E(ie);)de+=oe;const me=ie.currentChar();if(me&&me!=="}"&&me!==Jr&&me!==Mr&&me!==yn&&me!=="ã"){const be=U(ie);
14return v(mt.INVALID_TOKEN_IN_PLACEHOLDER,s(),0,de+be),de+be}return ie.currentChar()===Jr&&v(mt.UNTERMINATED_CLOSING_BRACE,s(),0),de}function D(ie){T(ie);let oe="";return ie.currentChar()==="-"?(ie.next(),oe+=`-${j(ie)}`):oe+=j(ie),ie.currentChar()===Jr&&v(mt.UNTERMINATED_CLOSING_BRACE,s(),0),oe}function K(ie){return ie!==_v&&ie!==yn}function H(ie){T(ie),$(ie,"'");let oe="",de="";for(;oe=_(ie,K);)oe==="\\"?de+=A(ie):de+=oe;const me=ie.currentChar();return me===yn||me===Jr?(v(mt.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,s(),0),me===yn&&(ie.next(),$(ie,"'")),de):($(ie,"'"),de)}function A(ie){const oe=ie.currentChar();switch(oe){case"\\":case"'":return ie.next(),`\\${oe}`;case"u":return W(ie,oe,4);case"U":return W(ie,oe,6);default:return v(mt.UNKNOWN_ESCAPE_SEQUENCE,s(),0,oe),""}}function W(ie,oe,de){$(ie,oe);let me="";for(let be=0;be<de;be++){const Se=B(ie);if(!Se){v(mt.INVALID_UNICODE_ESCAPE_SEQUENCE,s(),0,`\\${oe}${me}${ie.currentChar()}`);break}me+=Se}return`\\${oe}${me}`}function F(ie){return ie!=="{"&&ie!=="}"&&ie!==Mr&&ie!==yn}function U(ie){T(ie);let oe="",de="";for(;oe=_(ie,F);)de+=oe;return de}function Y(ie){let oe="",de="";for(;oe=f(ie);)de+=oe;return de}function ee(ie){const oe=de=>{const me=ie.currentChar();return me==="{"||me==="@"||me==="|"||me==="("||me===")"||!me||me===Mr?de:(de+=me,ie.next(),oe(de))};return oe("")}function X(ie){T(ie);const oe=$(ie,"|");return T(ie),oe}function q(ie,oe){let de=null;switch(ie.currentChar()){case"{":return oe.braceNest>=1&&v(mt.NOT_ALLOW_NEST_PLACEHOLDER,s(),0),ie.next(),de=R(oe,2,"{"),T(ie),oe.braceNest++,de;case"}":return oe.braceNest>0&&oe.currentType===2&&v(mt.EMPTY_PLACEHOLDER,s(),0),ie.next(),de=R(oe,3,"}"),oe.braceNest--,oe.braceNest>0&&T(ie),oe.inLinked&&oe.braceNest===0&&(oe.inLinked=!1),de;case"@":return oe.braceNest>0&&v(mt.UNTERMINATED_CLOSING_BRACE,s(),0),de=ne(ie,oe)||O(oe),oe.braceNest=0,de;default:{let be=!0,Se=!0,V=!0;if(m(ie))return oe.braceNest>0&&v(mt.UNTERMINATED_CLOSING_BRACE,s(),0),de=R(oe,1,X(ie)),oe.braceNest=0,oe.inLinked=!1,de;if(oe.braceNest>0&&(oe.currentType===4||oe.currentType===5||oe.currentType===6))return v(mt.UNTERMINATED_CLOSING_BRACE,s(),0),oe.braceNest=0,se(ie,oe);if(be=x(ie,oe))return de=R(oe,4,Q(ie)),T(ie),de;if(Se=S(ie,oe))return de=R(oe,5,D(ie)),T(ie),de;if(V=b(ie,oe))return de=R(oe,6,H(ie)),T(ie),de;if(!be&&!Se&&!V)return de=R(oe,12,U(ie)),v(mt.INVALID_TOKEN_IN_PLACEHOLDER,s(),0,de.value),T(ie),de;break}}return de}function ne(ie,oe){const{currentType:de}=oe;let me=null;const be=ie.currentChar();switch((de===7||de===8||de===11||de===9)&&(be===yn||be===Mr)&&v(mt.INVA
14LID_LINKED_FORMAT,s(),0),be){case"@":return ie.next(),me=R(oe,7,"@"),oe.inLinked=!0,me;case".":return T(ie),ie.next(),R(oe,8,".");case":":return T(ie),ie.next(),R(oe,9,":");default:return m(ie)?(me=R(oe,1,X(ie)),oe.braceNest=0,oe.inLinked=!1,me):p(ie,oe)||u(ie,oe)?(T(ie),ne(ie,oe)):g(ie,oe)?(T(ie),R(oe,11,Y(ie))):y(ie,oe)?(T(ie),be==="{"?q(ie,oe)||me:R(oe,10,ee(ie))):(de===7&&v(mt.INVALID_LINKED_FORMAT,s(),0),oe.braceNest=0,oe.inLinked=!1,se(ie,oe))}}function se(ie,oe){let de={type:13};if(oe.braceNest>0)return q(ie,oe)||O(oe);if(oe.inLinked)return ne(ie,oe)||O(oe);switch(ie.currentChar()){case"{":return q(ie,oe)||O(oe);case"}":return v(mt.UNBALANCED_CLOSING_BRACE,s(),0),ie.next(),R(oe,3,"}");case"@":return ne(ie,oe)||O(oe);default:{if(m(ie))return de=R(oe,1,X(ie)),oe.braceNest=0,oe.inLinked=!1,de;if(I(ie))return R(oe,0,z(ie));break}}return de}function he(){const{currentType:ie,offset:oe,startLoc:de,endLoc:me}=c;return c.lastType=ie,c.lastOffset=oe,c.lastStartLoc=de,c.lastEndLoc=me,c.offset=i(),c.startLoc=s(),r.currentChar()===Jr?R(c,13):se(r,c)}return{nextToken:he,currentOffset:i,currentPosition:s,context:l}}const c3="parser",u3=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g,d3=/\\([\\@{}|])/g;function h3(e,t){return t}function f3(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function p3(e={}){const t=e.location!==!1,{onError:n}=e;function r(C,N,x,S,...b){const p=C.currentPosition();if(p.offset+=S,p.column+=S,n){const g=t?Rp(x,p):null,u=Fd(N,g,{domain:c3,args:b});n(u)}}function i(C,N,x){const S={type:C};return t&&(S.start=N,S.end=N,S.loc={start:x,end:x}),S}function s(C,N,x,S){t&&(C.end=N,C.loc&&(C.loc.end=x))}function o(C,N){const x=C.context(),S=i(3,x.offset,x.startLoc);return S.value=N.replace(d3,h3),s(S,C.currentOffset(),C.currentPosition()),S}function a(C,N){const x=C.context(),{lastOffset:S,lastStartLoc:b}=x,p=i(5,S,b);return p.index=parseInt(N,10),C.nextToken(),s(p,C.currentOffset(),C.currentPosition()),p}function c(C,N){const x=C.context(),{lastOffset:S,lastStartLoc:b}=x,p=i(4,S,b);return p.key=N,C.nextToken(),s(p,C.currentOffset(),C.currentPosition()),p}function l(C,N){const x=C.context(),{lastOffset:S,lastStartLoc:b}=x,p=i(9,S,b);return p.value=N.replace(u3,f3),C.nextToken(),s(p,C.currentOffset(),C.currentPosition()),p}function d(C){const N=C.nextToken(),x=C.context(),{lastOffset:S,lastStartLoc:b}=x,p=i(8,S,b);return N.type!==11?(r(C,mt.UNEXPECTED_EMPTY_LINKED_MODIFIER,x.lastStartLoc,0),p.value="",s(p,S,b),{nextConsumeToken:N,node:p}):(N.value==null&&r(C,mt.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,Dr(N)),p.value=N.value||"",s(p,C.currentOffset(),C.currentPosition()),{node:p})}function v(C,N){const x=C.context(),S=i(7,x.offset,x.startLoc);return S.value=N,s(S,C.currentOffset(),C.currentPosition()),S}function R(C){const N=C.context(),x=i(6,N.offset,N.startLoc);let S=C.nextToken();if(S.type===8){const b=d(C);x.modifier=b.node,S=b.nextConsumeToken||C.nextToken()}switch(S.type!==9&&r(C,mt.UNEXPECTED_LEXICAL_ANALYSIS,N.lastStartLoc,0,Dr(S)),S=C.nextToken(),S.type===2&&(S=C.nextToken()),S.type){case 10:S.value==null&&r(C,mt.UNEXPECTED_LEXICAL_ANALYSIS,N.lastStartLoc,0,Dr(S)),x.key=v(C,S.value||"");break;case 4:S.value==null&&r(C,mt.UNEXPECTED_LEXICAL_ANALYSIS,N.lastStartLoc,0,Dr(S)),x.key=c(C,S.value||"");break;case 5:S.value==null&&r(C,mt.UNEXPECTED_LEXICAL_ANALYSIS,N.lastStartLoc,0,Dr(S)),x.key=a(C,S.value||"");break;case 6:S.value==null&&r(C,mt.UNEXPECTED_LEXICAL_ANALYSIS,N.lastStartLoc,0,Dr(S)),x.key=l(C,S.value||"");break;default:{r(C,mt.UNEXPECTED_EMPTY_LINKED_KEY,N.lastStartLoc,0);const b=C.context(),p=i(7,b.offset,b.startLoc);return p.value="",s(p,b.offset,b.startLoc),x.key=p,s(x,b.offset,b.startLoc),{nextConsumeToken:S,node:x}}}return s(x,C.currentOffset(),C.currentPosition()),{node:x}}function O(C){const N=C.context(),x=N.currentType===1?C.currentOffset():N.offset,S=N.currentType===1?N.endLoc:N.startLoc,b=i(2,x,S);b.items=[];let p=null;do{const y=p||C.nextToken();switch(p=null,y.type){case 0:y.value==null&&r(C,mt.UNEXPECTED_LEXICAL_ANALYSIS,N.lastStartLoc,0,Dr(y)),b.items.push(o(C,y.value||""));break;case 5:y.value==null&&r(C,mt.UNEXPECTED_LEXICAL_ANALYSIS,N.lastStartLoc,0,Dr(y)),b.items.push(a(C,y.value||""));break;case 4:y.value==null&&r(C,mt.UNEXPECTED_LEXICAL_ANALYSIS,N.lastStartLoc,0,Dr(y)),b.items.push(c(C,y.value||""));break;case 6:y.value==null&&r(C,mt.UNEXPECTED_LEXICAL_ANALYSIS,N.lastStartLoc,0,Dr(y)),b.items.push(l(C,y.value||""));break;case 7:{const m=R(C);b.items.push(m.node),p=m.nextConsumeToken||null;break}}}while(N.currentType!==13&&N.currentType!==1);const g=N.currentType===1?N.lastOffset:C.currentOffset(),u=N.currentType===1?N.lastEndLoc:C.currentPosition();return s(b,g,u),b}function $(C,N,x,S){const b=C.context();let p=S.items.length===0;const g=i(1,N,x);g.cases=[],g.cases.push(S);do{const u=O(C);p||(p=u.items.length===0),g.cases.push(u)}while(b.currentType!==13);return p&&r(C,mt.MUST_HAVE_MESSAGES_IN_PLURAL,x,0),s(g,C.currentOffset(),C.currentPosition()),g}function P(C){const N=C.context(),{offset:x,startLoc:S}=N,b=O(C);return N.currentType===13?b:$(C,x,S,b)}function T(C){const N=l3(C,Ht({},e)),x=N.context(),S=i(0,x.offset,x.startLoc);return t&&S.loc&&(S.loc.source=C),S.body=P(N),e.onCacheKey&&(S.cacheKey=e.onCacheKey(C)),x.currentType!==13&&r(N,mt.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,C[x.offset]||""),s(S,N.currentOffset(),N.currentPosition()),S}return{parse:T}}function Dr(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"â¦":t}
14function g3(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:s=>(n.helpers.add(s),s)}}function Sv(e,t){for(let n=0;n<e.length;n++)wm(e[n],t)}function wm(e,t){switch(e.type){case 1:Sv(e.cases,t),t.helper("plural");break;case 2:Sv(e.items,t);break;case 6:{wm(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function m3(e,t={}){const n=g3(e);n.helper("normalize"),e.body&&wm(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function y3(e){const t=e.body;return t.type===2?Ev(t):t.cases.forEach(n=>Ev(n)),e}function Ev(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const r=e.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=vm(t);for(let n=0;n<e.items.length;n++){const r=e.items[n];(r.type===3||r.type===9)&&delete r.value}}}}function ys(e){switch(e.t=e.type,e.type){case 0:{const t=e;ys(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let r=0;r<n.length;r++)ys(n[r]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let r=0;r<n.length;r++)ys(n[r]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;ys(t.key),t.k=t.key,delete t.key,t.modifier&&(ys(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}}delete e.type}function b3(e,t){const{filename:n,breakLineCode:r,needIndent:i}=t,s=t.location!==!1,o={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:i,indentLevel:0};s&&e.loc&&(o.source=e.loc.source);const a=()=>o;function c(P,T){o.code+=P}function l(P,T=!0){const C=T?r:"";c(i?C+" ".repeat(P):C)}function d(P=!0){const T=++o.indentLevel;P&&l(T)}function v(P=!0){const T=--o.indentLevel;P&&l(T)}function R(){l(o.indentLevel)}return{context:a,push:c,indent:d,deindent:v,newline:R,helper:P=>`_${P}`,needIndent:()=>o.needIndent}}function v3(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Zs(e,t.key),t.modifier?(e.push(", "),Zs(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function C3(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const i=t.items.length;for(let s=0;s<i&&(Zs(e,t.items[s]),s!==i-1);s++)e.push(", ");e.deindent(r()),e.push("])")}function I3(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const i=t.cases.length;for(let s=0;s<i&&(Zs(e,t.cases[s]),s!==i-1);s++)e.push(", ");e.deindent(r()),e.push("])")}}function A3(e,t){t.body?Zs(e,t.body):e.push("null")}function Zs(e,t){const{helper:n}=e;switch(t.type){case 0:A3(e,t);break;case 1:I3(e,t);break;case 2:C3(e,t);break;case 6:v3(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break}}const w3=(e,t={})=>{const n=We(t.mode)?t.mode:"normal",r=We(t.filename)?t.filename:"message.intl";t.sourceMap;const i=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":` 15`,s=t.needIndent?t.needIndent:n!=="arrow",o=e.helpers||[],a=b3(e,{filename:r,breakLineCode:i,needIndent:s});a.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),a.indent(s),o.length>0&&(a.push(`const { ${vm(o.map(d=>`${d}: _${d}`),", ")} } = ctx`),a.newline()),a.push("return "),Zs(a,e),a.deindent(s),a.push("}"),delete e.helpers;const{code:c,map:l}=a.context();return{ast:e,code:c,map:l?l.toJSON():void 0}};function _3(e,t={}){const n=Ht({},t),r=!!n.jit,i=!!n.minify,s=n.optimize==null?!0:n.optimize,a=p3(n).parse(e);return r?(s&&y3(a),i&&ys(a),{ast:a,code:""}):(m3(a,n),w3(a,n))}function Ur(e){return ut(e)&&_m(e)===0&&(cr(e,"b")||cr(e,"body"))}const GS=["b","body"];
15function S3(e){return ro(e,GS)}const US=["c","cases"];function E3(e){return ro(e,US,[])}const jS=["s","static"];function x3(e){return ro(e,jS)}const zS=["i","items"];function T3(e){return ro(e,zS,[])}const ZS=["t","type"];function _m(e){return ro(e,ZS)}const KS=["v","value"];function Mc(e,t){const n=ro(e,KS);if(n!=null)return n;throw El(t)}const YS=["m","modifier"];function k3(e){return ro(e,YS)}const XS=["k","key"];function R3(e){const t=ro(e,XS);if(t)return t;throw El(6)}function ro(e,t,n){for(let r=0;r<t.length;r++){const i=t[r];if(cr(e,i)&&e[i]!=null)return e[i]}return n}const JS=[...GS,...US,...jS,...zS,...XS,...YS,...KS,...ZS];function El(e){return new Error(`unhandled node type: ${e}`)}function Gh(e){return n=>L3(n,e)}function L3(e,t){const n=S3(t);if(n==null)throw El(0);if(_m(n)===1){const s=E3(n);return e.plural(s.reduce((o,a)=>[...o,xv(e,a)],[]))}else return xv(e,n)}function xv(e,t){const n=x3(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=T3(t).reduce((i,s)=>[...i,Lp(e,s)],[]);return e.normalize(r)}}function Lp(e,t){const n=_m(t);switch(n){case 3:return Mc(t,n);case 9:return Mc(t,n);case 4:{const r=t;if(cr(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(cr(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw El(n)}case 5:{const r=t;if(cr(r,"i")&&Yt(r.i))return e.interpolate(e.list(r.i));if(cr(r,"index")&&Yt(r.index))return e.interpolate(e.list(r.index));throw El(n)}case 6:{const r=t,i=k3(r),s=R3(r);
15return e.linked(Lp(e,s),i?Lp(e,i):void 0,e.type)}case 7:return Mc(t,n);case 8:return Mc(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const O3=e=>e;let Dc=bt();function N3(e,t={}){let n=!1;const r=t.onError||t3;return t.onError=i=>{n=!0,r(i)},{..._3(e,t),detectError:n}}function P3(e,t){if(We(e)){$t(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||O3)(e),i=Dc[r];if(i)return i;const{ast:s,detectError:o}=N3(e,{...t,location:!1,jit:!0}),a=Gh(s);return o?a:Dc[r]=a}else{const n=e.cacheKey;if(n){const r=Dc[n];return r||(Dc[n]=Gh(e))}else return Gh(e)}}const oi={INVALID_ARGUMENT:e3,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},$3=24;function si(e){return Fd(e,null,void 0)}function Sm(e,t){return t.locale!=null?Tv(t.locale):Tv(e.locale)}let Uh;function Tv(e){if(We(e))return e;if(Rt(e)){if(e.resolvedOnce&&Uh!=null)return Uh;if(e.constructor.name==="Function"){const t=e();if(wG(t))throw si(oi.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Uh=t}else throw si(oi.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw si(oi.NOT_SUPPORT_LOCALE_TYPE)}function M3(e,t,n){return[...new Set([n,...Ft(t)?t:ut(t)?Object.keys(t):We(t)?[t]:[n]])]}function Op(e,t,n){const r=We(n)?n:Hu,i=e;i.__localeChainCache||(i.__localeChainCache=new Map);let s=i.__localeChainCache.get(r);if(!s){s=[];let o=[n];for(;Ft(o);)o=kv(s,o,t);const a=Ft(t)||!ft(t)?t:t.default?t.default:null;o=We(a)?[a]:a,Ft(o)&&kv(s,o,!1),i.__localeChainCache.set(r,s)}return s}function kv(e,t,n){let r=!0;for(let i=0;i<t.length&&$t(r);i++){const s=t[i];We(s)&&(r=D3(e,t[i],n))}return r}function D3(e,t,n){let r;const i=t.split("-");do{const s=i.join("-");r=B3(e,s,n),i.splice(-1,1)}while(i.length&&r===!0);return r}function B3(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const i=t.replace(/!/g,"");e.push(i),(Ft(n)||ft(n))&&n[i]&&(r=n[i])}return r}const io=[];io[0]={w:[0],i:[3,0],"[":[4],o:[7]};io[1]={w:[1],".":[2],"[":[4],o:[7]};io[2]={w:[2],i:[3,0],0:[3,0]};io[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};io[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};io[5]={"'":[4,0],o:8,l:[5,0]};io[6]={'"':[4,0],o:8,l:[6,0]};const F3=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function H3(e){return F3.test(e)}function W3(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function V3(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function G3(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:H3(t)?W3(t):"*"+t}function U3(e){const t=[];let n=-1,r=0,i=0,s,o,a,c,l,d,v;const R=[];R[0]=()=>{o===void 0?o=a:o+=a},R[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},R[2]=()=>{R[0](),i++},R[3]=()=>{if(i>0)i--,r=4,R[0]();else{if(i=0,o===void 0||(o=G3(o),o===!1))return!1;R[1]()}};function O(){const $=e[n+1];if(r===5&&$==="'"||r===6&&$==='"')return n++,a="\\"+$,R[0](),!0}for(;r!==null;)if(n++,s=e[n],!(s==="\\"&&O())){if(c=V3(s),v=io[r],l=v[c]||v.l||8,l===8||(r=l[0],l[1]!==void 0&&(d=R[l[1]],d&&(a=s,d()===!1))))return;if(r===7)return t}}const Rv=new Map;function j3(e,t){return ut(e)?e[t]:null}function z3(e,t){if(!ut(e))return null;let n=Rv.get(t);if(n||(n=U3(t),n&&Rv.set(t,n)),!n)return null;const r=n.length;let i=e,s=0;for(;s<r;){const o=n[s];if(JS.includes(o)&&Ur(i)||!ut(i)||!cr(i,o))return null;const a=i[o];if(a===void 0||Rt(i))return null;i=a,s++}return i}const Z3="11.4.6",Hd=-1,Hu="en-US",Wu="",Lv=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function K3(){return{upper:(e,t)=>t==="text"&&We(e)?e.toUpperCase():t==="vnode"&&ut(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&We(e)?e.toLowerCase():t==="vnode"&&ut(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&We(e)?Lv(e):t==="vnode"&&ut(e)&&"__v_isVNode"in e?Lv(e.children):e}}let qS;function Y3(e){qS=e}let QS;function X3(e){QS=e}let eE;function J3(e){eE=e}let tE=null;const Ov=e=>{tE=e},q3=()=>tE;let Nv=0;function Q3(e={}){const t=Rt(e.onWarn)?e.onWarn:fG,n=We(e.version)?e.version:Z3,r=We(e.locale)||Rt(e.locale)?e.locale:Hu,i=Rt(r)?Hu:r,s=Ft(e.fallbackLocale)||ft(e.fallbackLocale)||We(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,o=ft(e.messages)?e.messages:jh(i),a=ft(e.datetimeFormats)?e.datetimeFormats:jh(i),c=ft(e.numberFormats)?e.numberFormats:jh(i),l=Ht(bt(),e.modifiers,K3()),d=e.pluralRules||bt(),v=Rt(e.missing)?e.missing:null,R=$t(e.missingWarn)||Bu(e.missingWarn)?e.missingWarn:!0,O=$t(e.fallbackWarn)||Bu(e.fallbackWarn)?e.fallbackWarn:!0,$=!!e.fallbackFormat,P=!!e.unresolving,T=Rt(e.postTranslation)?e.postTranslation:null,C=ft(e.processor)?e.processor:null,N=$t(e.warnHtmlMessage)?e.warnHtmlMessage:!0,x=!!e.escapeParameter,S=Rt(e.messageCompiler)?e.messageCompiler:qS,b=Rt(e.messageResolver)?e.messageResolver:QS||j3,p=Rt(e.localeFallbacker)?e.localeFallbacker:eE||M3,g=ut(e.fallbackContext)?e.fallbackContext:void 0,u=e,y=ut(u.__datetimeFormatters)?u.__datetimeFormatters:new Map,m=ut(u.__numberFormatters)?u.__numberFormatters:new Map,I=ut(u.__meta)?u.__meta:{};Nv++;
15const _={version:n,cid:Nv,locale:r,fallbackLocale:s,messages:o,modifiers:l,pluralRules:d,missing:v,missingWarn:R,fallbackWarn:O,fallbackFormat:$,unresolving:P,postTranslation:T,processor:C,warnHtmlMessage:N,escapeParameter:x,messageCompiler:S,messageResolver:b,localeFallbacker:p,fallbackContext:g,onWarn:t,__meta:I};return _.datetimeFormats=a,_.numberFormats=c,_.__datetimeFormatters=y,_.__numberFormatters=m,_}const jh=e=>({[e]:bt()});function Em(e,t,n,r,i){const{missing:s,onWarn:o}=e;if(s!==null){const a=s(e,n,t,i);return We(a)?a:t}else return t}function Ba(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function ej(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function tj(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(ej(e,t[r]))return!0;return!1}function Pv(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:i,onWarn:s,localeFallbacker:o}=e,{__datetimeFormatters:a}=e;if(!We(t[0])&&!yS(t[0])&&!Yt(t[0]))return Wu;const[c,l,d,v]=Np(...t),R=$t(d.missingWarn)?d.missingWarn:e.missingWarn;$t(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn;const O=!!d.part,$=Sm(e,d),P=o(e,i,$);if(!We(c)||c===""){const p=new Intl.DateTimeFormat($.replace(/!/g,""),v);return O?p.formatToParts(l):p.format(l)}let T={},C,N=null;const x="datetime format";for(let p=0;p<P.length&&(C=P[p],T=n[C]||{},N=T[c],!ft(N));p++)Em(e,c,C,R,x);if(!ft(N)||!We(C))return r?Hd:c;let S=`${C}__${c}`;Pd(v)||(S=`${S}__${JSON.stringify(v)}`);let b=a.get(S);return b||(b=new Intl.DateTimeFormat(C,Ht({},N,v)),a.set(S,b)),O?b.formatToParts(l):b.format(l)}const nE=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Np(...e){const[t,n,r,i]=e,s=bt();let o=bt(),a;if(We(t)){const c=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!c)throw si(oi.INVALID_ISO_DATE_ARGUMENT);const l=c[3]?c[3].trim().startsWith("T")?`${c[1].trim()}${c[3].trim()}`:`${c[1].trim()}T${c[3].trim()}`:c[1].trim();a=new Date(l);try{a.toISOString()}catch{throw si(oi.INVALID_ISO_DATE_ARGUMENT)}}else if(yS(t)){if(isNaN(t.getTime()))throw si(oi.INVALID_DATE_ARGUMENT);a=t}else if(Yt(t))a=t;else throw si(oi.INVALID_ARGUMENT);return We(n)?s.key=n:ft(n)&&Object.keys(n).forEach(c=>{nE.includes(c)?o[c]=n[c]:s[c]=n[c]}),We(r)?s.locale=r:ft(r)&&(o=r),ft(i)&&(o=i),[s.key||"",a,s,o]}function $v(e,t,n){const r=e;for(const i in n){const s=`${t}__${i}`;r.__datetimeFormatters.has(s)&&r.__datetimeFormatters.delete(s)}}function Mv(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:i,onWarn:s,localeFallbacker:o}=e,{__numberFormatters:a}=e;if(!Yt(t[0]))return Wu;const[c,l,d,v]=Pp(...t),R=$t(d.missingWarn)?d.missingWarn:e.missingWarn;$t(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn;const O=!!d.part,$=Sm(e,d),P=o(e,i,$);if(!We(c)||c===""){const p=new Intl.NumberFormat($.replace(/!/g,""),v);return O?p.formatToParts(l):p.format(l)}let T={},C,N=null;const x="number format";for(let p=0;p<P.length&&(C=P[p],T=n[C]||{},N=T[c],!ft(N));p++)Em(e,c,C,R,x);if(!ft(N)||!We(C))return r?Hd:c;let S=`${C}__${c}`;Pd(v)||(S=`${S}__${JSON.stringify(v)}`);let b=a.get(S);return b||(b=new Intl.NumberFormat(C,Ht({},N,v)),a.set(S,b)),O?b.formatToParts(l):b.format(l)}const rE=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Pp(...e){const[t,n,r,i]=e,s=bt();let o=bt();if(!Yt(t))throw si(oi.INVALID_ARGUMENT);const a=t;return We(n)?s.key=n:ft(n)&&Object.keys(n).forEach(c=>{rE.includes(c)?o[c]=n[c]:s[c]=n[c]}),We(r)?s.locale=r:ft(r)&&(o=r),ft(i)&&(o=i),[s.key||"",a,s,o]}function Dv(e,t,n){const r=e;for(const i in n){const s=`${t}__${i}`;r.__numberFormatters.has(s)&&r.__numberFormatters.delete(s)}}const nj=e=>e,rj=e=>"",ij="text",oj=e=>e.length===0?"":vm(e),sj=_G;function zh(e,t){return e=Math.abs(e),t===2?e===1?0:1:Math.min(e,2)}function aj(e){const t=Yt(e.pluralIndex)?e.pluralIndex:-1;return Yt(e.named?.count)?e.named.count:Yt(e.named?.n)?e.named.n:t}function lj(e={}){const t=e.locale,n=aj(e),r=We(t)&&Rt(e.pluralRules?.[t])?e.pluralRules[t]:zh,i=r===zh?void 0:zh,s=C=>C[r(n,C.length,i)],o=e.list||[],a=C=>o[C],c=e.named||bt();Yt(e.pluralIndex)&&(c.count||=e.pluralIndex,c.n||=e.pluralIndex);const l=C=>c[C];function d(C,N){const x=Rt(e.messages)?e.messages(C,!!N):ut(e.messages)?e.messages[C]:!1;return x||(e.parent?e.parent.message(C):rj)}const v=C=>e.modifiers?e.modifiers[C]:nj,R=Rt(e.processor?.normalize)?e.processor.normalize:oj,O=Rt(e.processor?.interpolate)?e.processor.interpolate:sj,$=We(e.processor?.type)?e.processor.type:ij,T={list:a,named:l,plural:s,linked:(C,...N)=>{const[x,S]=N;let b="text",p="";N.length===1?ut(x)?(p=x.modifier||p,b=x.type||b):We(x)&&(p=x||p):N.length===2&&(We(x)&&(p=x||p),We(S)&&(b=S||b));const g=d(C,!0)(T),u=g===""||g===void 0?C:g,y=b==="vnode"&&Ft(u)&&p?u[0]:u;return p?v(p)(y,b):y},message:d,type:$,interpolate:O,normalize:R,values:Ht(bt(),o,c)};return T}const Bv=()=>"",hi=e=>Rt(e);function Fv(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:i,messageCompiler:s,fallbackLocale:o,messages:a}=e,[c,l]=$p(...t),d=$t(l.missingWarn)?l.missingWarn:e.missingWarn,v=$t(l.fallbackWarn)?l.fallbackWarn:e.fallbackWarn,R=$t(l.escapeParameter)?l.escapeParameter:e.escapeParameter,O=!!l.resolvedMessage,$=We(l.default)||$t(l.default)?$t(l.default)?s?c:()=>c:l.default:n?s?c:()=>c:null,P=n||$!=null&&(We($)||Rt($)),T=Sm(e,l);R&&cj(l);let[C,N,x]=O?[c,T,a[T]||bt()]:iE(e,c,T,o,v,d),S=C,b=c;if(!O&&!(We(S)||Ur(S)||hi(S))&&P&&(S=$,b=S),!O&&(!(We(S)||Ur(S)||hi(S))||!We(N)))return i?Hd:c;let p=!1;const g=()=>{p=!0},u=hi(S)?S:oE(e,c,N,S,b,g);if(p)return S;const y=hj(e,N,x,l),m=lj(y),I=uj(e,u,m);let _=r?r(I,c):I;return R&&We(_)&&(_=IG(_)),_}function cj(e){Ft(e.list)?e.list=e.list.map(t=>
15We(t)?mv(t):t):ut(e.named)&&Object.keys(e.named).forEach(t=>{We(e.named[t])&&(e.named[t]=mv(e.named[t]))})}function iE(e,t,n,r,i,s){const{messages:o,onWarn:a,messageResolver:c,localeFallbacker:l}=e,d=l(e,r,n);let v=bt(),R,O=null;const $="translate";for(let P=0;P<d.length&&(R=d[P],v=o[R]||bt(),(O=c(v,t))===null&&(O=v[t]),!(We(O)||Ur(O)||hi(O)));P++)if(!tj(R,d)){const T=Em(e,t,R,s,$);T!==t&&(O=T)}return[O,R,v]}function oE(e,t,n,r,i,s){const{messageCompiler:o,warnHtmlMessage:a}=e;if(hi(r)){const l=r;return l.locale=l.locale||n,l.key=l.key||t,l}if(o==null){const l=(()=>r);return l.locale=n,l.key=t,l}const c=o(r,dj(e,n,i,r,a,s));return c.locale=n,c.key=t,c.source=r,c}function uj(e,t,n){return t(n)}function $p(...e){const[t,n,r]=e,i=bt();if(!We(t)&&!Yt(t)&&!hi(t)&&!Ur(t))throw si(oi.INVALID_ARGUMENT);const s=Yt(t)?String(t):(hi(t),t);return Yt(n)?i.plural=n:We(n)?i.default=n:ft(n)&&!Pd(n)?i.named=n:Ft(n)&&(i.list=n),Yt(r)?i.plural=r:We(r)?i.default=r:ft(r)&&Ht(i,r),[s,i]}function dj(e,t,n,r,i,s){return{locale:t,key:n,warnHtmlMessage:i,onError:o=>{throw s&&s(o),o},onCacheKey:o=>pG(t,n,o)}}function hj(e,t,n,r){const{modifiers:i,pluralRules:s,messageResolver:o,fallbackLocale:a,fallbackWarn:c,missingWarn:l,fallbackContext:d}=e,R={locale:t,modifiers:i,pluralRules:s,messages:(O,$)=>{let P=o(n,O);if(P==null&&(d||$)){const[T,,C]=iE(d||e,O,t,a,c,l);P=T??o(C,O)}if(We(P)||Ur(P)){let T=!1;const N=oE(e,O,t,P,O,()=>{T=!0});return T?Bv:N}else return hi(P)?P:Bv}};return e.processor&&(R.processor=e.processor),r.list&&(R.list=r.list),r.named&&(R.named=r.named),Yt(r.plural)&&(R.pluralIndex=r.plural),R}function fj(){return sE().__VUE_DEVTOOLS_GLOBAL_HOOK__}function sE(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const pj=typeof Proxy=="function",gj="devtools-plugin:setup",mj="plugin:settings:set";let rs,Mp;function yj(){var e;return rs!==void 0||(typeof window<"u"&&window.performance?(rs=!0,Mp=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(rs=!0,Mp=globalThis.perf_hooks.performance):rs=!1),rs}function bj(){return yj()?Mp.now():Date.now()}class vj{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const r={};if(t.settings)for(const o in t.settings){const a=t.settings[o];r[o]=a.defaultValue}const i=`__vue-devtools-plugin-settings__${t.id}`;let s=Object.assign({},r);try{const o=localStorage.getItem(i),a=JSON.parse(o);Object.assign(s,a)}catch{}this.fallbacks={getSettings(){return s},setSettings(o){try{localStorage.setItem(i,JSON.stringify(o))}catch{}s=o},now(){return bj()}},n&&n.on(mj,(o,a)=>{o===this.plugin.id&&this.fallbacks.setSettings(a)}),this.proxiedOn=new Proxy({},{get:(o,a)=>this.target?this.target.on[a]:(...c)=>{this.onQueue.push({method:a,args:c})}}),this.proxiedTarget=new Proxy({},{get:(o,a)=>this.target?this.target[a]:a==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(a)?(...c)=>(this.targetQueue.push({method:a,args:c,resolve:()=>{}}),this.fallbacks[a](...c)):(...c)=>new Promise(l=>{this.targetQueue.push({method:a,args:c,resolve:l})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function Cj(e,t){const n=e,r=sE(),i=fj(),s=pj&&n.enableEarlyProxy;if(i&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!s))i.emit(gj,e,t);else{const o=s?new vj(n,i):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:o}),o&&t(o.proxiedTarget)}}const Ij="11.4.6",er={UNEXPECTED_RETURN_TYPE:$3,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function hr(e,...t){return Fd(e,null,void 0)}const Dp=no("__translateVNode"),Bp=no("__datetimeParts"),Fp=no("__numberParts"),Aj=no("__setPluralRules"),wj=no("__injectWithOption"),_s=no("__dispose");function xl(e){if(!ut(e)||Ur(e))return e;for(const t in e)if(cr(e,t))if(!t.includes("."))ut(e[t])&&xl(e[t]);else{const n=t.split("."),r=n.length-1;let i=e,s=!1;for(let o=0;o<r;o++){if(n[o]==="__proto__")throw new Error(`unsafe key: ${n[o]}`);if(n[o]in i||(i[n[o]]=bt()),!ut(i[n[o]])){s=!0;break}i=i[n[o]]}if(s||(Ur(i)?JS.includes(n[r])||delete e[t]:(i[n[r]]=e[t],delete e[t])),!Ur(i)){const o=i[n[r]];ut(o)&&xl(o)}}return e}function aE(e,t){const{messages:n,__i18n:r,messageResolver:i,flatJson:s}=t,o=ft(n)?n:Ft(r)?bt():{[e]:bt()};if(Ft(r)&&r.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:c,resource:l}=a;c?(o[c]=o[c]||bt(),Ps(l,o[c])):Ps(l,o)}else We(a)&&Ps(JSON.parse(a),o)}),i==null&&s)for(const a in o)cr(o,a)&&xl(o[a]);return o}function _j(e){return e.type}function Sj(e,t,n){let r=ut(t.messages)?t.messages:bt();"__i18nGlobal"in n&&(r=aE(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const i=Object.keys(r);
15i.length&&i.forEach(s=>{e.mergeLocaleMessage(s,r[s])});{if(ut(t.datetimeFormats)){const s=Object.keys(t.datetimeFormats);s.length&&s.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(ut(t.numberFormats)){const s=Object.keys(t.numberFormats);s.length&&s.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function Hv(e){return st(ui,null,e,0)}function lE(){return Mt()}const Wv=()=>[],Ej=()=>!1;let Vv=0;function Gv(e){return((t,n,r,i)=>e(n,r,lE()||void 0,i))}function Hp(e={}){const{__root:t,__injectWithOption:n}=e,r=t===void 0,i=e.flatJson,s=Du?yt:wn;let o=$t(e.inheritLocale)?e.inheritLocale:!0;const a=s(t&&o?t.locale.value:We(e.locale)?e.locale:Hu),c=s(t&&o?t.fallbackLocale.value:We(e.fallbackLocale)||Ft(e.fallbackLocale)||ft(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a.value),l=s(aE(a.value,e)),d=s(ft(e.datetimeFormats)?e.datetimeFormats:{[a.value]:{}}),v=s(ft(e.numberFormats)?e.numberFormats:{[a.value]:{}});let R=t?t.missingWarn:$t(e.missingWarn)||Bu(e.missingWarn)?e.missingWarn:!0,O=t?t.fallbackWarn:$t(e.fallbackWarn)||Bu(e.fallbackWarn)?e.fallbackWarn:!0,$=t?t.fallbackRoot:$t(e.fallbackRoot)?e.fallbackRoot:!0,P=!!e.fallbackFormat,T=Rt(e.missing)?e.missing:null,C=Rt(e.missing)?Gv(e.missing):null,N=Rt(e.postTranslation)?e.postTranslation:null,x=t?t.warnHtmlMessage:$t(e.warnHtmlMessage)?e.warnHtmlMessage:!0,S=!!e.escapeParameter;const b=t?t.modifiers:ft(e.modifiers)?e.modifiers:{};let p=e.pluralRules||t&&t.pluralRules,g;g=(()=>{r&&Ov(null);const V={version:Ij,locale:a.value,fallbackLocale:c.value,messages:l.value,modifiers:b,pluralRules:p,missing:C===null?void 0:C,missingWarn:R,fallbackWarn:O,fallbackFormat:P,unresolving:!0,postTranslation:N===null?void 0:N,warnHtmlMessage:x,escapeParameter:S,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};V.datetimeFormats=d.value,V.numberFormats=v.value,V.__datetimeFormatters=ft(g)?g.__datetimeFormatters:void 0,V.__numberFormatters=ft(g)?g.__numberFormatters:void 0;const te=Q3(V);return r&&Ov(te),te})(),Ba(g,a.value,c.value);function y(){return[a.value,c.value,l.value,d.value,v.value]}const m=Xe({get:()=>a.value,set:V=>{g.locale=V,a.value=V}}),I=Xe({get:()=>c.value,set:V=>{g.fallbackLocale=V,c.value=V,Ba(g,a.value,V)}}),_=Xe(()=>l.value),h=Xe(()=>d.value),f=Xe(()=>v.value);function w(){return Rt(N)?N:null}function E(V){N=V,g.postTranslation=V}function k(){return T}function L(V){V!==null&&(C=Gv(V)),T=V,g.missing=C}const M=(V,te,re,le,G,Z)=>{y();let J;try{r||(g.fallbackContext=t?q3():void 0),J=V(g)}finally{r||(g.fallbackContext=void 0)}if(re!=="translate exists"&&Yt(J)&&J===Hd||re==="translate exists"&&!J){const[ae,fe]=te();return t&&$?le(t):G(ae)}else{if(Z(J))return J;throw hr(er.UNEXPECTED_RETURN_TYPE)}};function B(...V){return M(te=>Reflect.apply(Fv,null,[te,...V]),()=>$p(...V),"translate",te=>Reflect.apply(te.t,te,[...V]),te=>te,te=>We(te))}function j(...V){const[te,re,le]=V;if(le&&!ut(le))throw hr(er.INVALID_ARGUMENT);return B(te,re,Ht({resolvedMessage:!0},le||{}))}function z(...V){return M(te=>Reflect.apply(Pv,null,[te,...V]),()=>Np(...V),"datetime format",te=>Reflect.apply(te.d,te,[...V]),()=>Wu,te=>We(te)||Ft(te))}function Q(...V){return M(te=>Reflect.apply(Mv,null,[te,...V]),()=>Pp(...V),"number format",te=>Reflect.apply(te.n,te,[...V]),()=>Wu,te=>We(te)||Ft(te))}function D(V){return V.map(te=>We(te)||Yt(te)||$t(te)?Hv(String(te)):te)}const H={normalize:D,interpolate:V=>V,type:"vnode"};function A(...V){return M(te=>{let re;const le=te;try{le.processor=H,re=Reflect.apply(Fv,null,[le,...V])}finally{le.processor=null}return re},()=>$p(...V),"translate",te=>te[Dp](...V),te=>[Hv(te)],te=>Ft(te))}function W(...V){return M(te=>Reflect.apply(Mv,null,[te,...V]),()=>Pp(...V),"number format",te=>te[Fp](...V),Wv,te=>We(te)||Ft(te))}function F(...V){return M(te=>Reflect.apply(Pv,null,[te,...V]),()=>Np(...V),"datetime format",te=>te[Bp](...V),Wv,te=>We(te)||Ft(te))}function U(V){p=V,g.pluralRules=p}function Y(V,te){return M(()=>{if(!V)return!1;const re=We(te)?te:a.value,le=We(te)?[re]:Op(g,c.value,re);for(let G=0;G<le.length;G++){const Z=q(le[G]);let J=g.messageResolver(Z,V);if(J===null&&(J=Z[V]),Ur(J)||hi(J)||We(J))return!0}return!1},()=>[V],"translate exists",re=>Reflect.apply(re.te,re,[V,te]),Ej,re=>$t(re))}function ee(V){let te=null;const re=Op(g,c.value,a.value);for(let le=0;le<re.length;le++){const G=l.value[re[le]]||{},Z=g.messageResolver(G,V);if(Z!=null){te=Z;break}}return te}function X(V){const te=ee(V);return te??(t?t.tm(V)||{}:{})}function q(V){return l.value[V]||{}}function ne(V,te){if(i){const re={[V]:te};for(const le in re)cr(re,le)&&xl(re[le]);te=re[V]}l.value[V]=te,g.messages=l.value}function se(V,te){l.value[V]=l.value[V]||{};const re={[V]:te};
15if(i)for(const le in re)cr(re,le)&&xl(re[le]);te=re[V],Ps(te,l.value[V]),g.messages=l.value}function he(V){return d.value[V]||{}}function ie(V,te){d.value[V]=te,g.datetimeFormats=d.value,$v(g,V,te)}function oe(V,te){d.value[V]=Ht(d.value[V]||{},te),g.datetimeFormats=d.value,$v(g,V,te)}function de(V){return v.value[V]||{}}function me(V,te){v.value[V]=te,g.numberFormats=v.value,Dv(g,V,te)}function be(V,te){v.value[V]=Ht(v.value[V]||{},te),g.numberFormats=v.value,Dv(g,V,te)}Vv++,t&&Du&&(xt(t.locale,V=>{o&&(a.value=V,g.locale=V,Ba(g,a.value,c.value))}),xt(t.fallbackLocale,V=>{o&&(c.value=V,g.fallbackLocale=V,Ba(g,a.value,c.value))}));const Se={id:Vv,locale:m,fallbackLocale:I,get inheritLocale(){return o},set inheritLocale(V){o=V,V&&t&&(a.value=t.locale.value,c.value=t.fallbackLocale.value,Ba(g,a.value,c.value))},get availableLocales(){return Object.keys(l.value).sort()},messages:_,get modifiers(){return b},get pluralRules(){return p||{}},get isGlobal(){return r},get missingWarn(){return R},set missingWarn(V){R=V,g.missingWarn=R},get fallbackWarn(){return O},set fallbackWarn(V){O=V,g.fallbackWarn=O},get fallbackRoot(){return $},set fallbackRoot(V){$=V},get fallbackFormat(){return P},set fallbackFormat(V){P=V,g.fallbackFormat=P},get warnHtmlMessage(){return x},set warnHtmlMessage(V){x=V,g.warnHtmlMessage=V},get escapeParameter(){return S},set escapeParameter(V){S=V,g.escapeParameter=V},t:B,getLocaleMessage:q,setLocaleMessage:ne,mergeLocaleMessage:se,getPostTranslationHandler:w,setPostTranslationHandler:E,getMissingHandler:k,setMissingHandler:L,[Aj]:U};return Se.datetimeFormats=h,Se.numberFormats=f,Se.rt=j,Se.te=Y,Se.tm=X,Se.d=z,Se.n=Q,Se.getDateTimeFormat=he,Se.setDateTimeFormat=ie,Se.mergeDateTimeFormat=oe,Se.getNumberFormat=de,Se.setNumberFormat=me,Se.mergeNumberFormat=be,Se[wj]=n,Se[Dp]=A,Se[Bp]=F,Se[Fp]=W,Se}const xm={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function xj({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,i)=>[...r,...i.type===Lt?i.children:[i]],[]):t.reduce((n,r)=>{const i=e[r];return i&&(n[r]=i()),n},bt())}function cE(){return Lt}const Tj=an({name:"i18n-t",props:Ht({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Yt(e)||!isNaN(e)}},xm),setup(e,t){const{slots:n,attrs:r}=t,i=e.i18n||Ko({useScope:e.scope,__useComponent:!0});return()=>{const s=()=>{const c=Object.keys(n).filter(v=>v[0]!=="_"),l=bt();e.locale&&(l.locale=e.locale),e.plural!==void 0&&(l.plural=We(e.plural)?+e.plural:e.plural);const d=xj(t,c);return i[Dp](e.keypath,d,l)},o=Ht(bt(),r),a=We(e.tag)||ut(e.tag)?e.tag:cE();return ut(a)?At(a,o,{default:s}):At(a,o,s())}}}),Uv=Tj;function kj(e){return Ft(e)&&!We(e[0])}function uE(e,t,n,r){const{slots:i,attrs:s}=t;return()=>{const o=()=>{const l={part:!0};let d=bt();e.locale&&(l.locale=e.locale),We(e.format)?l.key=e.format:ut(e.format)&&(We(e.format.key)&&(l.key=e.format.key),d=Object.keys(e.format).reduce((O,$)=>n.includes($)?Ht(bt(),O,{[$]:e.format[$]}):O,bt()));const v=r(e.value,l,d);let R=[l.key];return Ft(v)?R=v.map((O,$)=>{const P=i[O.type],T=P?P({[O.type]:O.value,index:$,parts:v}):[O.value];return kj(T)&&(T[0].key=`${O.type}-${$}`),T}):We(v)&&(R=[v]),R},a=Ht(bt(),s),c=We(e.tag)||ut(e.tag)?e.tag:cE();return ut(c)?At(c,a,{default:o}):At(c,a,o())}}const Rj=an({name:"i18n-n",props:Ht({value:{type:Number,required:!0},format:{type:[String,Object]}},xm),setup(e,t){const n=e.i18n||Ko({useScope:e.scope,__useComponent:!0});return uE(e,t,rE,(...r)=>n[Fp](...r))}}),jv=Rj;function Lj(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function Oj(e){const t=o=>{const{instance:a,value:c}=o;if(!a||!a.$)throw hr(er.UNEXPECTED_ERROR);const l=Lj(e,a.$),d=zv(c);return[Reflect.apply(l.t,l,[...Zv(d)]),l]};return{created:(o,a)=>{const[c,l]=t(a);Du&&(o.__i18nWatcher=xt(l.locale,()=>{a.instance&&a.instance.$forceUpdate()})),o.__composer=l,o.textContent=c},unmounted:o=>{Du&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:a})=>{if(o.__composer){const c=o.__composer,l=zv(a);o.textContent=Reflect.apply(c.t,c,[...Zv(l)])}},getSSRProps:o=>{const[a]=t(o);return{textContent:a}}}}function zv(e){if(We(e))return{path:e};if(ft(e)){if(!("path"in e))throw hr(er.REQUIRED_VALUE,"path");return e}else throw hr(er.INVALID_VALUE)}function Zv(e){const{path:t,locale:n,args:r,choice:i,plural:s}=e,o={},a=r||{};return We(n)&&(o.locale=n),Yt(i)&&(o.plural=i),Yt(s)&&(o.plural=s),[t,a,o]}function Nj(e,t,...n){const r=ft(n[0])?n[0]:{};(!$t(r.globalInstall)||r.globalInstall)&&([Uv.name,"I18nT"].forEach(s=>e.component(s,Uv)),[jv.name,"I18nN"].forEach(s=>e.component(s,jv)),[Xv.name,"I18nD"].forEach(s=>e.component(s,Xv))),e.directive("t",Oj(t))}const Pj=no("global-vue-i18n");function $j(e={}){const t=$t(e.globalInjection)?e.globalInjection:!0,n=new Map,[r,i]=Mj(e),s=no("");function o(d){return n.get(d)||null}function a(d,v){n.set(d,v)}
15function c(d){n.delete(d)}const l={get mode(){return"composition"},async install(d,...v){if(d.__VUE_I18N_SYMBOL__=s,d.provide(d.__VUE_I18N_SYMBOL__,l),ft(v[0])){const $=v[0];l.__composerExtend=$.__composerExtend,l.__vueI18nExtend=$.__vueI18nExtend}let R=null;t&&(R=Gj(d,l.global)),Nj(d,l,...v);const O=d.unmount;d.unmount=()=>{R&&R(),l.dispose(),O()}},get global(){return i},dispose(){r.stop()},__instances:n,__getInstance:o,__setInstance:a,__deleteInstance:c};return l}function Ko(e={}){const t=lE();if(t==null)throw hr(er.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw hr(er.NOT_INSTALLED);const n=Dj(t),r=Fj(n),i=_j(t),s=Bj(e,i);if(s==="global")return Sj(r,e,i),r;if(s==="parent"){let c=Kv(n,t,e.__useComponent);return c==null&&(c=r),c}if(s==="isolated"){if(n.mode!=="composition")throw hr(er.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const c=n,l=Ht({},e),d=Kv(n,t);l.__root=d||r;const v=Hp(l);return c.__composerExtend&&(v[_s]=c.__composerExtend(v)),qi()&&Zr(()=>{const O=v[_s];O&&(O(),delete v[_s])}),v}const o=n;let a=o.__getInstance(t);if(a==null){const c=Ht({},e);"__i18n"in i&&(c.__i18n=i.__i18n),r&&(c.__root=r),a=Hp(c),o.__composerExtend&&(a[_s]=o.__composerExtend(a)),Wj(o,t,a),o.__setInstance(t,a)}return a}function Mj(e,t){const n=Hl(),r=n.run(()=>Hp(e));if(r==null)throw hr(er.UNEXPECTED_ERROR);return[n,r]}function Dj(e){const t=Nt(e.isCE?Pj:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw hr(e.isCE?er.NOT_INSTALLED_WITH_PROVIDE:er.UNEXPECTED_ERROR);return t}function Bj(e,t){return Pd(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function Fj(e){return e.mode==="composition"?e.global:e.global.__composer}function Kv(e,t,n=!1){let r=null;const i=t.root;let s=Hj(t,n);for(;s!=null;){const o=e;if(e.mode==="composition"&&(r=o.__getInstance(s)),r!=null||i===s)break;s=s.parent}return r}function Hj(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Wj(e,t,n){tr(()=>{},t),Ii(()=>{const r=n;e.__deleteInstance(t);const i=r[_s];i&&(i(),delete r[_s])},t)}const Vj=["locale","fallbackLocale","availableLocales"],Yv=["t","rt","d","n","tm","te"];function Gj(e,t){const n=Object.create(null);return Vj.forEach(i=>{const s=Object.getOwnPropertyDescriptor(t,i);if(!s)throw hr(er.UNEXPECTED_ERROR);const o=Et(s.value)?{get(){return s.value.value},set(a){s.value.value=a}}:{get(){return s.get&&s.get()}};Object.defineProperty(n,i,o)}),e.config.globalProperties.$i18n=n,Yv.forEach(i=>{const s=Object.getOwnPropertyDescriptor(t,i);if(!s||!s.value)throw hr(er.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${i}`,s)}),()=>{delete e.config.globalProperties.$i18n,Yv.forEach(i=>{delete e.config.globalProperties[`$${i}`]})}}const Uj=an({name:"i18n-d",props:Ht({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},xm),setup(e,t){const n=e.i18n||Ko({useScope:e.scope,__useComponent:!0});return uE(e,t,nE,(...r)=>n[Bp](...r))}}),Xv=Uj;Y3(P3);X3(z3);J3(Op);function Jv(e=Ue()){const t=Bd(e);return n=>{if(n!=null)return t.getRouteBaseName(n)||void 0}}function jj(e=Ue()){const t=Bd(e);return(n,r)=>AS(t,n,r)}function zj(e=Ue()){const t=Bd(e);return(n,r)=>wS(t,n,r)}function dE(e=Ue()){const t=Bd(e);return n=>SS(t,n)}const qv="nuxt-i18n-slp",Zj=new RegExp([`<!--${qv}-\\[(\\w+)\\]-->`,".+?",`<!--/${qv}-->`].join(""),"g"),Kj=Je({name:"i18n:plugin:switch-locale-path-ssr",dependsOn:["i18n:plugin"],setup(e){const t=Ue(e._id),n=dE(t);t.hook("app:rendered",r=>{r.renderResult?.html!=null&&(r.renderResult.html=r.renderResult.html.replaceAll(Zj,(i,s)=>{const o=encodeURI(n(s??""));return i.replace(/href="([^"]+)"/,`href="${o||"#"}" `)}))})}}),Yj=Je({name:"i18n:plugin:route-locale-detect",dependsOn:["i18n:plugin"],async setup(e){let t,n;const r=Ue(e._id),i=Im(r),s=WS();[t,n]=di(()=>r.runWithContext(()=>VS(r,i.initial&&s.value||JU(r,r.$router.currentRoute.value)))),await t,n()}}),Xj=Je({name:"i18n:plugin:preload",dependsOn:["i18n:plugin"],async setup(e){}});function Jj(e,{extendComposer:t,extendComposerInstance:n}){const r=Hl(),i=e.install.bind(e);e.install=(s,...o)=>{const a=Ht({},o[0]);a.__composerExtend=l=>(n(l,$c(e)),()=>{}),e.mode==="legacy"&&(a.__vueI18nExtend=l=>(n(l,$c(l)),()=>{})),Reflect.apply(i,e,[s,a]);const c=$c(e);if(r.run(()=>{t(c),e.mode==="legacy"&&"__composer"in e.global&&n(e.global,$c(e.global))}),e.mode==="composition"&&s.config.globalProperties.$i18n!=null&&n(s.config.globalProperties.$i18n,c),s.unmount){const l=s.unmount.bind(s);s.unmount=()=>{r.stop(),l()}}}}const qj=async e=>{const t=await _U(UG);t.locale=e||t.locale||"en-US",t.defaultLocale=e,t.fallbackLocale??=!1,t.messages??={};for(const n of Sl)t.messages[n]??={};return t};var Qj={en:"e1f5fd0c",it:"e1f5fd0c",es:"e1f5fd0c","fr-CA":"e1f5fd0c"};const e5=Je({name:"i18n:plugin",parallel:!1,async setup(e){let t,n;Object.defineProperty(e.versions,"nuxtI18n",{get:()=>"10.4.0"});const r=Ue(e._id),i=Md(r),s=r.ssrContext?.event?.context?.nuxtI18n?.vueI18nOptions,o=$U(DS().host)||i.defaultLocale||"",a=s||([t,n]=di(()=>qj(o)),t=await t,n(),t),c=HS();c.value??=OU(a.fallbackLocale),Sl.map(R=>`/_i18n/${Qj[R]}/${R}/messages.json`);const l=$j(a),d=Am(void 0,Dd(r),r),v=BU(r,l,a.defaultLocale);r._nuxtI18n=v,Jj(l,{extendComposer(R){R.locales=Xe(()=>i.locales),R.localeCodes=Xe(()=>Sl);const O=yt(v.getBaseUrl());R.baseUrl=Xe(()=>O.value),xt(R.locale,()=>O.value=v.getBaseUrl()),R.strategy="no_prefix",R.localeProperties=Xe(()=>Ql.find($=>$.code===R.locale.value)||{code:R.locale.value}),R.setLocale=async $=>{await VS(r,$),await r.runWithContext(()=>(r.$router.currentRoute.value,void 0))},R.loadLocaleMessages=v.loadMessages,R.differentDomains=!1,R.defaultLocale=a.defaultLocale,R.getBrowserLocale=()=>wv(d.navigator()),R.getLocaleCookie=()=>wv(d.cookie()),R.setLocaleCookie=v.setCookieLocale,R.finalizePendingLocaleChange=async()=>{l.__pendingLocale&&await l.__resolvePendingLocalePromise?.()},R.waitForPendingLocaleChange=async()=>{await l?.__pendingLocalePromise}},extendComposerInstance(R,O){const $=[["locales",()=>O.locales],["localeCodes",()=>O.localeCodes],["baseUrl",()=>O.baseUrl],["strategy",()=>"no_prefix"],["localeProperties",()=>O.localeProperties],["setLocale",()=>P=>Reflect.apply(O.setLocale,O,[P])],["loadLocaleMessages",()=>P=>Reflect.apply(O.loadLocaleMessages,O,[P])],["differentDomains",()=>!1],["defaultLocale",()=>O.defaultLocale],["getBrowserLocale",()=>()=>Reflect.apply(O.getBrowserLocale,O,[])],["getLocaleCookie",()=>()=>Reflect.apply(O.getLocaleCookie,O,[])],["setLocaleCookie",()=>P=>Reflect.apply(O.setLocaleCookie,O,[P])],["finalizePendingLocaleChange",()=>()=>Reflect.apply(O.finalizePendingLocaleChange,O,[])],["waitForPendingLocaleChange",()=>()=>Reflect.apply(O.waitForPendingLocaleChange,O,[])]];for(const[P,T]of $)Object.defineProperty(R,P,{get:T})}}),r.vueApp.use(l),Object.defineProperty(r,"$i18n",{get:()=>Cm(l)}),r.provide("localeHead",R=>MG(r._nuxtI18n.composableCtx,R)),r.provide("localePath",jj(r)),r.provide("localeRoute",zj(r)),r.provide("routeBaseName",Jv(r)),r.provide("getRouteBaseName",Jv(r)),r.provide("switchLocalePath",dE(r))}}),t5=new RegExp(/Googlebot\/|Googlebot-Mobile|Googlebot-Image|Googlebot-News|Googlebot-Video|AdsBot-Google([^-]|$)|AdsBot-Google-Mobile|Feedfetcher-Google|Mediapartners-Google|Mediapartners \(Googlebot\)|APIs-Google|Google-InspectionTool|Storebot-Google|GoogleOther|bingbot|Slurp|[
15wW]get|LinkedInBot|Python-urllib|python-requests|aiohttp|httpx|libwww-perl|httpunit|Nutch|Go-http-client|phpcrawl|msnbot|jyxobot|FAST-WebCrawler|FAST Enterprise Crawler|BIGLOTRON|Teoma|convera|seekbot|Gigabot|Gigablast|exabot|ia_archiver|GingerCrawler|webmon |HTTrack|grub\.org|UsineNouvelleCrawler|antibot|netresearchserver|speedy|fluffy|findlink|msrbot|panscient|yacybot|AISearchBot|ips-agent|tagoobot|MJ12bot|woriobot|yanga|buzzbot|mlbot|yandex\.com\/bots|purebot|Linguee Bot|CyberPatrol|voilabot|Baiduspider|citeseerxbot|spbot|twengabot|postrank|Turnitin|scribdbot|page2rss|sitebot|linkdex|Adidxbot|ezooms|dotbot|Mail\.RU_Bot|discobot|heritrix|findthatfile|europarchive\.org|NerdByNature\.Bot|(sistrix|SISTRIX) [cC]rawler|Ahrefs(Bot|SiteAudit)|fuelbot|CrunchBot|IndeedBot|mappydata|woobot|ZoominfoBot|PrivacyAwareBot|Multiviewbot|SWIMGBot|Grobbot|eright|Apercite|semanticbot|Aboundex|domaincrawler|wbsearchbot|summify|CCBot|edisterbot|SeznamBot|ec2linkfinder|gslfbot|aiHitBot|intelium_bot|facebookexternalhit|Yeti|RetrevoPageAnalyzer|lb-spider|Sogou|lssbot|careerbot|wotbox|wocbot|ichiro|DuckDuckBot|lssrocketcrawler|drupact|webcompanycrawler|acoonbot|openindexspider|gnam gnam spider|web-archive-net\.com\.bot|backlinkcrawler|coccoc|integromedb|content crawler spider|toplistbot|it2media-domain-crawler|ip-web-crawler\.com|siteexplorer\.info|elisabot|proximic|changedetection|arabot|WeSEE:Search|niki-bot|CrystalSemanticsBot|rogerbot|360Spider|psbot|InterfaxScanBot|CC Metadata Scaper|g00g1e\.net|GrapeshotCrawler|urlappendbot|brainobot|fr-crawler|binlar|SimpleCrawler|Twitterbot|cXensebot|smtbot|bnf\.fr_bot|A6-Indexer|ADmantX|Facebot|OrangeBot\/|memorybot|AdvBot|MegaIndex|SemanticScholarBot|ltx71|nerdybot|xovibot|BUbiNG|Qwantify|archive\.org_bot|Applebot|TweetmemeBot|crawler4j|findxbot|S[eE][mM]rushBot|yoozBot|lipperhey|Y!J|Domain Re-Animator Bot|AddThis|Screaming Frog SEO Spider|MetaURI|Scrapy|Livelap[bB]ot|OpenHoseBot|CapsuleChecker|collection@infegy\.com|IstellaBot|DeuSu\/|betaBot|Cliqzbot\/|MojeekBot\/|netEstate NE Crawler|SafeSearch microdata crawler|Gluten Free Crawler\/|Sonic|Sysomos|Trove|deadlinkchecker|Slack-ImgProxy|Embedly|RankActiveLinkBot|iskanie|SafeDNSBot|SkypeUriPreview|Veoozbot|Slackbot|redditbot|datagnionbot|Google-Adwords-Instant|adbeat_bot|WhatsApp|contxbot|pinterest\.com\/bot|electricmonk|GarlikCrawler|BingPreview\/|vebidoobot|FemtosearchBot|Yahoo Link Preview|MetaJobBot|DomainStatsBot|mindUpBot|Daum\/|Jugendschutzprogramm-Crawler|Xenu Link Sleuth|Pcore-HTTP|moatbot|KosmioBot|[pP]ingdom|AppInsights|PhantomJS|Gowikibot|PiplBot|Discordbot|TelegramBot|Jetslide|newsharecounts|James BOT|Bark[rR]owler|TinEye|SocialRankIOBot|trendictionbot|Ocarinabot|epicbot|Primalbot|DuckDuckGo-Favicons-Bot|GnowitNewsbot|Leikibot|LinkArchiver|YaK\/|PaperLiBot|Digg Deeper|dcrawl|Snacktory|AndersPinkBot|Fyrebot|EveryoneSocialBot|Mediatoolkitbot|Luminator-robots|ExtLinksBot|SurveyBot|NING\/|okhttp|Nuzzel|omgili|PocketParser|YisouSpider|um-LN|ToutiaoSpider|MuckRack|Jamie's Spider|AHC\/|NetcraftSurveyAgent|Laserlikebot|^Apache-HttpClient|AppEngine-Google|Jetty|Upflow|Thinklab|Traackr\.com|Twurly|Mastodon|http_get|DnyzBot|botify|007ac9 Crawler|BehloolBot|BrandVerity|check_http|BDCbot|ZumBot|EZID|ICC-Crawler|ArchiveBot|^LCC |filterdb\.iss\.net\/crawler|BLP_bbot|BomboraBot|Buck\/|Companybook-Crawler|Genieo|magpie-crawler|MeltwaterNews|Moreover|newspaper\/|ScoutJet|(^| )sentry\/|StorygizeBot|UptimeRobot|OutclicksBot|seoscanners|Hatena|Google Web Preview|MauiBot|AlphaBot|SBL-BOT|IAS crawler|adscanner|Netvibes|acapbot|Baidu-YunGuanCe|bitlybot|blogmuraBot|Bot\.AraTurka\.com|bot-pge\.chlooe\.com|BoxcarBot|BTWebClient|ContextAd Bot|Digincore bot|Disqus|Feedly|Fetch\/|Fever|Flamingo_SearchEngine|FlipboardProxy|g2reader-bot|G2 Web Services|imrbot|K7MLWCBot|Kemvibot|Landau-Media-Spider|linkapediabot|vkShare|Siteimprove\.com|BLEXBot\/|DareBoost|ZuperlistBot\/|Miniflux\/|Feedspot|Diffbot\/|SEOkicks|tracemyfile|Nimbostratus-Bot|zgrab|PR-CY\.RU|AdsTxtCrawler|Datafeedwatch|Zabbix|TangibleeBot|google-xrawler|axios|Amazon CloudFront|Pulsepoint|CloudFlare-AlwaysOnline|Cloudflare-Healthchecks|Cloudflare-Traffic-Manager|CloudFlare-Prefetch|Cloudflare-SSLDetector|https:\/\/developers\.cloudflare\.com\/security-center\/|Google-Structured-Data-Testing-Tool|WordupInfoSearch|WebDataStats|HttpUrlConnection|ZoomBot|VelenPublicWebCrawler|MoodleBot|jpg-newsbot|outbrain|W3C_Validator|Validator\.nu|W3C-checklink|W3C-mobileOK|W3C_I18n-Checker|FeedValidator|W3C_CSS_Validator|W3C_Unicorn|Google-PhysicalWeb|Blackboard|ICBot\/|BazQux|Twingly|Rivva|Experibot|awesomecrawler|Dataprovider\.com|GroupHigh\/|theoldreader\.com|AnyEvent|Uptimebot\.org|Nmap Scripting Engine|2ip\.ru|Clickagy|Caliperbot|MBCrawler|online-webceo-bot|B2B Bot|AddSearchBot|Google Favicon|HubSpot|Chrome-Lighthouse|HeadlessChrome|CheckMarkNetwork\/|www\.uptime\.com|Streamline3Bot\/|serpstatbot\/|MixnodeCache\/|^curl|SimpleScraper|RSSingBot|Jooblebot|fedoraplanet|Friendica|NextCloud|Tiny Tiny RSS|RegionStuttgartBot|Bytespider|Datanyze|Google-Site-Verification|TrendsmapResolver|tweetedtimes|NTENTbot|Gwene|SimplePie|SearchAtlas|Superfeedr|feedbot|UT-Dorkbot|Amazonbot|SerendeputyBot|Eyeotabot|office
15storebot|Neticle Crawler|SurdotlyBot|LinkisBot|AwarioSmartBot|AwarioRssBot|RyteBot|FreeWebMonitoring SiteChecker|AspiegelBot|NAVER Blog Rssbot|zenback bot|SentiBot|Domains Project\/|Pandalytics|VKRobot|bidswitchbot|tigerbot|NIXStatsbot|Atom Feed Robot|[Cc]urebot|PagePeeker\/|Vigil\/|rssbot\/|startmebot\/|JobboerseBot|seewithkids|NINJA bot|Cutbot|BublupBot|BrandONbot|RidderBot|Taboolabot|Dubbotbot|FindITAnswersbot|infoobot|Refindbot|BlogTraffic\/\d\.\d+ Feed-Fetcher|SeobilityBot|Cincraw|Dragonbot|VoluumDSP-content-bot|FreshRSS|BitBot|^PHP-Curl-Class|Google-Certificates-Bridge|centurybot|Viber|e\.ventures Investment Crawler|evc-batch|PetalBot|virustotal|(^| )PTST\/|minicrawler|Cookiebot|trovitBot|seostar\.co|IonCrawl|Uptime-Kuma|Seekport|FreshpingBot|Feedbin|CriteoBot|Snap URL Preview Service|Better Uptime Bot|RuxitSynthetic|Google-Read-Aloud|Valve\/Steam|OdklBot\/|GPTBot|ChatGPT-User|OAI-SearchBot|YandexRenderResourcesBot\/|LightspeedSystemsCrawler|ev-crawler\/|BitSightBot\/|woorankreview\/|Google-Safety|AwarioBot|DataForSeoBot|Linespider|WellKnownBot|A Patent Crawler|StractBot|search\.marginalia\.nu|YouBot|Nicecrawler|Neevabot|BrightEdge Crawler|SiteCheckerBotCrawler|TombaPublicWebCrawler|CrawlyProjectCrawler|KomodiaBot|KStandBot|CISPA Webcrawler|MTRobot|hyscore\.io|AlexandriaOrgBot|2ip bot|Yellowbrandprotectionbot|SEOlizer|vuhuvBot|INETDEX-BOT|Synapse|t3versionsBot|deepnoc|Cocolyzebot|hypestat|ReverseEngineeringBot|sempi\.tech|Iframely|MetaInspector|node-fetch|l9explore|python-opengraph|OpenGraphCheck|developers\.google\.com\/\+\/web\/snippet|SenutoBot|MaCoCu|NewsBlur|inoreader|NetSystemsResearch|PageThing|WordPress\/|PhxBot|ImagesiftBot|Expanse|InternetMeasurement|^BW\/|GeedoBot|Audisto Crawler|PerplexityBot\/|[cC]laude[bB]ot|Monsidobot|GroupMeBot|Vercelbot|vercel-screenshot|facebookcatalog\/|meta-externalads\/|meta-externalagent\/|meta-externalfetcher\/|AcademicBotRTU|KeybaseBot|Lemmy|CookieHubScan|Hydrozen\.io|HTTP Banner Detection|SummalyBot|MicrosoftPreview\/|GeedoProductSearch|TikTokSpider|OnCrawl\/|sindresorhus\/got|CensysInspect\/|SBIntuitionsBot\/|sitebulb|YextBot\/|DatadogSynthetics|Google-Ads-Conversions/),n5=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|FBAN|FBAV|fennec|hiptop|iemobile|ip(hone|od)|Instagram|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,r5=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,i5=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|FBAN|FBAV|fennec|hiptop|iemobile|ip(hone|od)|Instagram|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i,o5=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|
15sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i;function s5(e){return n5.test(e)||r5.test(e.slice(0,4))}function a5(e){return i5.test(e)||o5.test(e.slice(0,4))}function l5(e){return/iPad|iPhone|iPod/.test(e)}function hE(e){return/android/i.test(e)}function c5(e){return/Windows/.test(e)}function u5(e){return/Mac OS X/.test(e)}function d5(e){return/Linux/i.test(e)&&!hE(e)}const h5=[{name:"Samsung",regex:/SamsungBrowser/i},{name:"Edge",regex:/edg(?:[ea]|ios)?\//i},{name:"Firefox",regex:/firefox|iceweasel|fxios/i},{name:"Chrome",regex:/chrome|crios|crmo/i},{name:"Safari",regex:/safari|applewebkit/i}];function f5(e){for(const t of h5)if(t.regex.test(e))return t.name;return""}function p5(e,t={}){let n=!1,r=!1,i=!1,s=!1;if(e==="Amazon CloudFront")t["cloudfront-is-mobile-viewer"]==="true"&&(n=!0,r=!0),t["cloudfront-is-tablet-viewer"]==="true"&&(n=!1,r=!0),t["cloudfront-is-desktop-viewer"]==="true"&&(n=!1,r=!1),t["cloudfront-is-ios-viewer"]==="true"&&(i=!0),t["cloudfront-is-android-viewer"]==="true"&&(s=!0);else if(t&&t["cf-device-type"])switch(t["cf-device-type"]){case"mobile":n=!0,r=!0;break;case"tablet":n=!1,r=!0;break;case"desktop":n=!1,r=!1;break}else n=s5(e),r=a5(e),i=l5(e),s=hE(e);const o=c5(e),a=u5(e),c=d5(e),l=f5(e),d=l==="Safari",v=l==="Firefox",R=l==="Edge",O=l==="Chrome",$=l==="Samsung",P=t5.test(e);return{userAgent:e,isMobile:n,isMobileOrTablet:r,isTablet:!n&&r,isDesktop:!r,isIos:i,isAndroid:s,isWindows:o,isLinux:c,isMacOS:a,isApple:a||i,isDesktopOrTablet:!n,isSafari:d,isFirefox:v,isEdge:R,isChrome:O,isSamsung:$,isCrawler:P}}const g5=Je(()=>{const t=ln().public.device.defaultUserAgent;let n;{const r=navigator.userAgent||t;n=Pn(p5(r))}return{provide:{device:n}}});var m5;function y5(){return m5}function b5(e){return typeof e=="function"?e():Ze(e)}function Wp(e){if(e instanceof Promise||e instanceof Date||e instanceof RegExp)return e;const t=b5(e);if(!e||!t)return t;if(Array.isArray(t))return t.map(n=>Wp(n));if(typeof t=="object"){const n={};for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(r==="titleTemplate"||r[0]==="o"&&r[1]==="n"){n[r]=Ze(t[r]);continue}n[r]=Wp(t[r])}return n}return t}var v5="usehead",Qv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},eC="__unhead_injection_handler__";function C5(){return eC in Qv?Qv[eC]():Nt(v5)||y5()}function I5(e,t={}){const n=t.head||C5();if(n)return n.ssr?n.push(e,t):A5(n,e,t)}function A5(e,t,n={}){const r=yt(!1),i=yt({});Eg(()=>{i.value=r.value?{}:Wp(t)});const s=e.push(i.value,n);return xt(i,a=>{s.patch(a)}),Mt()&&(Ci(()=>{s.dispose()}),ud(()=>{r.value=!0}),cd(()=>{r.value=!1})),s}var w5={install(e){e.mixin({created(){if(typeof this.$options?.jsonld!="function")return;const t=Xe(()=>this.$options.jsonld.call(this));I5(()=>({script:[{type:"application/ld+json",innerHTML:t.value?JSON.stringify(t.value,null,""):void 0}]}))}})}},_5=Je(e=>{e.vueApp.use(w5)}),Hse=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Wd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Wse(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var i=!1;try{i=this instanceof r}catch{}return i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var Zh={exports:{}};var tC;function S5(){return tC||(tC=1,(function(e,t){((n,r)=>{e.exports=r()})(self,function(){return r={6545:function(s,o,a){a.d(o,{t:function(){return O}});var c=a(1925),l=a(6237),d=a(3057);function v($){return(v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(P){return typeof P}:function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P})($)}function R($,P){for(var T=0;T<P.length;T++){var C=P[T];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty($,(N=>(N=((x,S)=>{if(v(x)!="object"||!x)return x;var b=x[Symbol.toPrimitive];if(b===void 0)return(S==="string"?String:Number)(x);if(v(b=b.call(x,S))!="object")return b;throw new TypeError("@@toPrimitive must return a primitive value.")})(N,"string"),v(N)=="symbol"?N:N+""))(C.key),C)}}var O=(()=>{function $(N,b){if(!(this instanceof $))throw new TypeError("Cannot call a class as a function");this.dom={};var S=this,g=this.dom,b=(this.anchor=void 0,this.items=N,this.eventListeners={},this.selection=void 0,this.onClose=b?b.close:void 0,this.limitHeight=!!b&&b.limitHeight,document.createElement("div")),p=(b.className="jsoneditor-contextmenu-root",g.root=b,document.createElement("div")),b=(p.className="jsoneditor-contextmenu",g.menu=p,b.appendChild(p),document.createElement("ul")),p=(b.className="jsoneditor-menu",p.appendChild(b),g.list=b,g.items=[],document.createElement("button")),g=(p.type="button",g.focusButton=p,document.createElement("li"));g.style.overflow="hidden",g.style.height="0",g.appendChild(p),b.appendChild(g),(function u(y,m,I){I.forEach(function(_){var h,f,w,E,k,L;_.type==="separator"?((k=document.createElement("div")).className="jsoneditor-separator",(f=document.createElement("li")).appendChild(k),y.appendChild(f)):(h={},k=document.createElement("li"),y.appendChild(k),(f=document.createElement("button")).type="button",f.className=_.className,h.button=f,_.title&&(f.title=_.title),_.click&&(f.onclick=function(M){M.preventDefault(),S.hide(),_.click()}),k.appendChild(f),_.submenu?((E=document.createElement("div")).className="jsoneditor-icon",f.appendChild(E),(E=document.createElement("div")).className="jsoneditor-text"+(_.click?"":" jsoneditor-right-margin"),E.appendChild(document.createTextNode(_.text)),f.appendChild(E),(w=_.click?(f.className+=" jsoneditor-default",(E=document.createElement("button")).type="button",(h.buttonExpand=E).className="jsoneditor-expand",(L=document.createElement("div")).className="jsoneditor-expand",
15E.appendChild(L),k.appendChild(E),_.submenuTitle&&(E.title=_.submenuTitle),E):((L=document.createElement("div")).className="jsoneditor-expand",f.appendChild(L),f)).onclick=function(M){M.preventDefault(),S._onExpandItem(h),w.focus()},h.subItems=E=[],L=document.createElement("ul"),(h.ul=L).className="jsoneditor-menu",L.style.height="0",k.appendChild(L),u(L,E,_.submenu)):((k=document.createElement("div")).className="jsoneditor-icon",f.appendChild(k),(L=document.createElement("div")).className="jsoneditor-text",L.appendChild(document.createTextNode((0,d.Tl)(_.text))),f.appendChild(L)),m.push(h))})})(b,this.dom.items,N),this.maxHeight=0,N.forEach(function(u){u=24*(N.length+(u.submenu?u.submenu.length:0)),S.maxHeight=Math.max(S.maxHeight,u)})}return P=$,(T=[{key:"_getVisibleButtons",value:function(){var N=[],x=this;return this.dom.items.forEach(function(S){N.push(S.button),S.buttonExpand&&N.push(S.buttonExpand),S.subItems&&S===x.expandedItem&&S.subItems.forEach(function(b){N.push(b.button),b.buttonExpand&&N.push(b.buttonExpand)})}),N}},{key:"show",value:function(N,m,S){this.hide();var b=!0,g=N.parentNode,p=N.getBoundingClientRect(),g=g.getBoundingClientRect(),u=m.getBoundingClientRect(),y=this,m=(this.dom.absoluteAnchor=(0,c.p)(N,m,function(){y.hide()}),p.bottom+this.maxHeight<u.bottom||p.top-this.maxHeight>u.top&&(b=!1),S?0:p.top-g.top);b?(S=N.offsetHeight,this.dom.menu.style.left="0",this.dom.menu.style.top=m+S+"px",this.dom.menu.style.bottom=""):(this.dom.menu.style.left="0",this.dom.menu.style.top="",this.dom.menu.style.bottom="0px"),this.limitHeight&&(g=b?u.bottom-p.bottom-10:p.top-u.top-10,this.dom.list.style.maxHeight=g+"px",this.dom.list.style.overflowY="auto"),this.dom.absoluteAnchor.appendChild(this.dom.root),this.selection=(0,l.getSelection)(),this.anchor=N,setTimeout(function(){y.dom.focusButton.focus()},0),$.visibleMenu&&$.visibleMenu.hide(),$.visibleMenu=this}},{key:"hide",value:function(){this.dom.absoluteAnchor&&(this.dom.absoluteAnchor.destroy(),delete this.dom.absoluteAnchor),this.dom.root.parentNode&&(this.dom.root.parentNode.removeChild(this.dom.root),this.onClose)&&this.onClose(),$.visibleMenu===this&&($.visibleMenu=void 0)}},{key:"_onExpandItem",value:function(N){var x,S=this,b=N===this.expandedItem,p=this.expandedItem;p&&(p.ul.style.height="0",p.ul.style.padding="",setTimeout(function(){S.expandedItem!==p&&(p.ul.style.display="",l.removeClassName)(p.ul.parentNode,"jsoneditor-selected")},300),this.expandedItem=void 0),b||((x=N.ul).style.display="block",setTimeout(function(){if(S.expandedItem===N){for(var g=0,u=0;u<x.childNodes.length;u++)g+=x.childNodes[u].clientHeight;x.style.height=g+"px",x.style.padding="5px 10px"}},0),(0,l.addClassName)(x.parentNode,"jsoneditor-selected"),this.expandedItem=N)}},{key:"_onKeyDown",value:function(N){var x,S,b,p,g=N.target,u=N.which,y=!1;u===27?(this.selection&&(0,l.setSelection)(this.selection),this.anchor&&this.anchor.focus(),this.hide(),y=!0):u===9?N.shiftKey?(S=(x=this._getVisibleButtons()).indexOf(g))===0&&(x[x.length-1].focus(),y=!0):(S=(x=this._getVisibleButtons()).indexOf(g))===x.length-1&&(x[0].focus(),y=!0):u===37?(g.className==="jsoneditor-expand"&&(S=(x=this._getVisibleButtons()).indexOf(g),b=x[S-1])&&b.focus(),y=!0):u===38?(S=(x=this._getVisibleButtons()).indexOf(g),(b=(b=(b=x[S-1])&&b.className==="jsoneditor-expand"?x[S-2]:b)||x[x.length-1])&&b.focus(),y=!0):u===39?(S=(x=this._getVisibleButtons()).indexOf(g),(p=x[S+1])&&p.className==="jsoneditor-expand"&&p.focus(),y=!0):u===40&&(S=(x=this._getVisibleButtons()).indexOf(g),(p=(p=(p=x[S+1])&&p.className==="jsoneditor-expand"?x[S+2]:p)||x[0])&&(p.focus(),y=!0),y=!0),y&&(N.stopPropagation(),N.preventDefault())}}])&&R(P.prototype,T),C&&R(P,C),Object.defineProperty(P,"prototype",{writable:!1}),P;var P,T,C})();O.visibleMenu=void 0},2115:function(s,o,a){function c(v){return(c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(v)}function l(v,R){for(var O=0;O<R.length;O++){var $=R[O];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(v,(P=>(P=((T,C)=>{if(c(T)!="object"||!T)return T;var N=T[Symbol.toPrimitive];if(N===void 0)return(C==="string"?String:Number)(T);if(c(N=N.call(T,C))!="object")return N;throw new TypeError("@@toPrimitive must return a primitive value.")})(P,"string"),c(P)=="symbol"?P:P+""))($.key),$)}}a.d(o,{N:function(){return d}});var d=(()=>{function v(T){if(!(this instanceof v))throw new TypeError("Cannot call a class as a function");this.errorTableVisible=T.errorTableVisible,this.onToggleVisibility=T.onToggleVisibility,this.onFocusLine=T.onFocusLine||function(){},this.onChangeHeight=T.onChangeHeight,this.dom={};var T=document.createElement("div"),C=(T.className="jsoneditor-validation-errors-container",this.dom.validationErrorsContainer=T,document.createElement("div")),T=(C.style.display="none",C.className="jsoneditor-additional-errors fadein",C.textContent="Scroll for more â¿",this.dom.additionalErrorsIndication=C,T.appendChild(C),document.createElement("span")),C=(T.className="jsoneditor-validation-error-icon",T.style.display="none",this.dom.validationErrorIcon=T,document.createElement("span"));C.className="jsoneditor-validation-error-count",C.style.display="none",this.dom.validationErrorCount=C,this.dom.parseErrorIndication=document.createElement("span"),this.dom.parseErrorIndication.className="jsoneditor-parse-error-icon",this.dom.parseErrorIndication.style.display="none"}return R=v,(O=[{key:"getErrorTable",value:function(){return this.dom.validationErrorsContainer}}
15,{key:"getErrorCounter",value:function(){return this.dom.validationErrorCount}},{key:"getWarningIcon",value:function(){return this.dom.validationErrorIcon}},{key:"getErrorIcon",value:function(){return this.dom.parseErrorIndication}},{key:"toggleTableVisibility",value:function(){this.errorTableVisible=!this.errorTableVisible,this.onToggleVisibility(this.errorTableVisible)}},{key:"setErrors",value:function(P,T){var C,N,x=this,S=(this.dom.validationErrors&&(this.dom.validationErrors.parentNode.removeChild(this.dom.validationErrors),this.dom.validationErrors=null,this.dom.additionalErrorsIndication.style.display="none"),this.errorTableVisible&&0<P.length?((S=document.createElement("div")).className="jsoneditor-validation-errors",(N=document.createElement("table")).className="jsoneditor-text-errors",S.appendChild(N),C=document.createElement("tbody"),N.appendChild(C),P.forEach(function(b){isNaN(b.line)?b.dataPath&&(g=T.find(function(m){return m.path===b.dataPath}))&&(p=g.line+1):p=b.line;var p,g=document.createElement("tr"),u=(g.className=isNaN(p)?"":"jump-to-line",b.type==="error"?g.className+=" parse-error":g.className+=" validation-error",document.createElement("td")),y=document.createElement("button"),y=(y.className="jsoneditor-schema-error",u.appendChild(y),g.appendChild(u),document.createElement("td"));y.style="white-space: nowrap;",y.textContent=isNaN(p)?"":"Ln "+p,g.appendChild(y),typeof b=="string"?((u=document.createElement("td")).colSpan=2,(y=document.createElement("pre")).appendChild(document.createTextNode(b)),u.appendChild(y),g.appendChild(u)):((y=document.createElement("td")).appendChild(document.createTextNode(b.dataPath||"")),g.appendChild(y),u=document.createElement("td"),(y=document.createElement("pre")).appendChild(document.createTextNode(b.message.replace(/<br>/gi,` 16`))),u.appendChild(y),g.appendChild(u)),g.onclick=function(){x.onFocusLine(p)},C.appendChild(g)}),this.dom.validationErrors=S,this.dom.validationErrorsContainer.appendChild(S),this.dom.additionalErrorsIndication.title=P.length+" errors total",this.dom.validationErrorsContainer.clientHeight<this.dom.validationErrorsContainer.scrollHeight?(this.dom.additionalErrorsIndication.style.display="block",this.dom.validationErrorsContainer.onscroll=function(){x.dom.additionalErrorsIndication.style.display=0<x.dom.validationErrorsContainer.clientHeight&&x.dom.validationErrorsContainer.scrollTop===0?"block":"none"}):this.dom.validationErrorsContainer.onscroll=void 0,N=this.dom.validationErrorsContainer.clientHeight+(this.dom.statusBar?this.dom.statusBar.clientHeight:0),this.onChangeHeight(N)):this.onChangeHeight(0),P.filter(function(b){return b.type!=="error"}).length);0<S?(this.dom.validationErrorCount.style.display="inline",this.dom.validationErrorCount.innerText=S,this.dom.validationErrorCount.onclick=this.toggleTableVisibility.bind(this),this.dom.validationErrorIcon.style.display="inline",this.dom.validationErrorIcon.title=S+" schema validation error(s) found",this.dom.validationErrorIcon.onclick=this.toggleTableVisibility.bind(this)):(this.dom.validationErrorCount.style.display="none",this.dom.validationErrorIcon.style.display="none"),P.some(function(b){return b.type==="error"})?(N=P[0].line,this.dom.parseErrorIndication.style.display="block",this.dom.parseErrorIndication.title=isNaN(N)?"parse error - check that the json is valid":"parse error on line "+N,this.dom.parseErrorIndication.onclick=this.toggleTableVisibility.bind(this)):this.dom.parseErrorIndication.style.display="none"}}])&&l(R.prototype,O),$&&l(R,$),Object.defineProperty(R,"prototype",{writable:!1}),R;var R,O,$})()},2877:function(s,o,a){function c(v){return(c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(v)}function l(v,R){for(var O=0;O<R.length;O++){var $=R[O];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(v,(P=>(P=((T,C)=>{if(c(T)!="object"||!T)return T;var N=T[Symbol.toPrimitive];if(N===void 0)return(C==="string"?String:Number)(T);if(c(N=N.call(T,C))!="object")return N;throw new TypeError("@@toPrimitive must return a primitive value.")})(P,"string"),c(P)=="symbol"?P:P+""))($.key),$)}}a.d(o,{$:function(){return d}});var d=(()=>{function v(P){if(!(this instanceof v))throw new TypeError("Cannot call a class as a function");if(this.target=P.target||null,!this.target)throw new Error('FocusTracker constructor called without a "target" to track.');this.onFocus=typeof P.onFocus=="function"?P.onFocus:null,this.onBlur=typeof P.onBlur=="function"?P.onBlur:null,this._onClick=this._onEvent.bind(this),this._onKeyUp=(function(T){T.which!==9&&T.keyCode!==9||this._onEvent(T)}).bind(this),this._onBlur=this._onEvent.bind(this),this.focusFlag=!1,this.firstEventFlag=!0,(this.onFocus||this.onBlur)&&(document.addEventListener("click",this._onClick),document.addEventListener("keyup",this._onKeyUp),document.addEventListener("blur",this._onBlur))}return R=v,(O=[{key:"destroy",value:function(){document.removeEventListener("click",this._onClick),document.removeEventListener("keyup",this._onKeyUp),document.removeEventListener("blur",this._onBlur),this._onEvent({target:document.body})}},{key:"_onEvent",value:function(P){P=P.target,P=P===this.target||!(!this.target.contains(P)&&!this.target.contains(document.activeElement)),P?this.focusFlag||(this.onFocus&&this.onFocus({type:"focus",target:this.target}),this.focusFlag=!0):(this.focusFlag||this.firstEventFlag)&&(this.onBlur&&this.onBlur({type:"blur",target:this.target}),this.focusFlag=!1,this.firstEventFlag)&&(this.firstEventFlag=!1)}}])&&l(R.prototype,O),$&&l(R,$),Object.defineProperty(R,"prototype",{writable:!1}),R;var R,O,$})()},1346:function(s,o,a){var c=a(7413),l=a(1746),d=a(5633).treeModeMixins,v=a(1948).textModeMixins,R=a(7483).previewModeMixins,N=a(6237),O=N.clear,$=N.extend,P=N.getInnerText,T=N.getInternetExplorerVersion,C=N.parse,N=a(2870).tryRequireAjv,x=a(5609).showTransformModal,S=a(2915).showSortModal,b=N();function p(g,u,y){if(!(this instanceof p))throw new Error('JSONEditor constructor called without "new".');var m=T();if(m!==-1&&m<9)throw new Error("Unsupported browser, IE9 or newer required. Please install the newest version of your browser.");u&&(u.error&&(u.onError=u.error,delete u.error),u.change&&(u.onChange=u.change,delete u.change),u.editable&&(u.onEditable=u.editable,delete u.editable),u.onChangeJSON&&(u.mode==="text"||u.mode==="code"||u.modes&&(u.modes.indexOf("text")!==-1||u.modes.indexOf("code"))),u)&&Object.keys(u).forEach(function(I){p.VALID_OPTIONS.indexOf(I)}),arguments.length&&this._create(g,u,y)}typeof Promise>"u",p.modes={},p.prototype.DEBOUNCE_INTERVAL=150,p.VALID_OPTIONS=["ajv","schema","schemaRefs","templates","ace","theme","autocomplete","onChange","onChangeJSON","onChangeText","onExpand","onEditable","onError","onEvent","onModeChange","onNodeName","onValidate","onCreateMenu","onSelectionChange","onTextSelectionChange","onClassName","onF
16ocus","onBlur","colorPicker","onColorPicker","timestampTag","timestampFormat","escapeUnicode","history","search","mode","modes","name","indentation","sortObjectKeys","navigationBar","statusBar","mainMenuBar","languages","language","enableSort","enableTransform","limitDragging","maxVisibleChilds","onValidationError","modalAnchor","popupAnchor","createQuery","executeQuery","queryDescription","allowSchemaSuggestions","showErrorTable"],p.prototype._create=function(g,u,y){this.container=g,this.options=u||{},this.json=y||{},g=this.options.mode||this.options.modes&&this.options.modes[0]||"tree",this.setMode(g)},p.prototype.destroy=function(){},p.prototype.set=function(g){this.json=g},p.prototype.get=function(){return this.json},p.prototype.setText=function(g){this.json=C(g)},p.prototype.getText=function(){return JSON.stringify(this.json)},p.prototype.setName=function(g){this.options||(this.options={}),this.options.name=g},p.prototype.getName=function(){return this.options&&this.options.name},p.prototype.setMode=function(g){if(g!==this.options.mode||!this.create){var u=this.container,y=$({},this.options),m=y.mode,I=p.modes[y.mode=g];if(!I)throw new Error('Unknown mode "'+y.mode+'"');var _=I.data==="text",h=this.getName(),f=this[_?"getText":"get"]();if(this.destroy(),O(this),$(this,I.mixin),this.create(u,y),this.setName(h),this[_?"setText":"set"](f),typeof I.load=="function")try{I.load.call(this)}catch{}if(typeof y.onModeChange=="function"&&g!==m)try{y.onModeChange(g,m)}catch{}}},p.prototype.getMode=function(){return this.options.mode},p.prototype._onError=function(g){this.options&&typeof this.options.onError=="function"?this.options.onError(g):window.alert(g.toString())},p.prototype.setSchema=function(g,u){if(g){var y;try{this.options.ajv?y=this.options.ajv:((y=b({allErrors:!0,verbose:!0,schemaId:"auto",$data:!0})).addMetaSchema(a(5207)),y.addMetaSchema(a(6801)))}catch{}if(y){if(u){for(var m in u)y.removeSchema(m),u[m]&&y.addSchema(u[m],m);this.options.schemaRefs=u}this.validateSchema=y.compile(g),this.options.schema=g,this.options.schemaRefs=u,this.validate()}}else this.validateSchema=null,this.options.schema=null,this.options.schemaRefs=null,this.validate();this.refresh(),typeof this._onSchemaChange=="function"&&this._onSchemaChange(g,u)},p.prototype.validate=function(){return Promise.resolve([])},p.prototype.refresh=function(){},(p.registerMode=function(g){var u;if(Array.isArray(g))for(I=0;I<g.length;I++)p.registerMode(g[I]);else{if(!("mode"in g))throw new Error('Property "mode" missing');if(!("mixin"in g))throw new Error('Property "mixin" missing');if(!("data"in g))throw new Error('Property "data" missing');var y=g.mode;if(y in p.modes)throw new Error('Mode "'+y+'" already registered');if(typeof g.mixin.create!="function")throw new Error('Required function "create" missing on mixin');for(var m=["setMode","registerMode","modes"],I=0;I<m.length;I++)if((u=m[I])in g.mixin)throw new Error('Reserved property "'+u+'" not allowed in mixin');p.modes[y]=g}})(d),p.registerMode(v),p.registerMode(R),p.ace=c,p.Ajv=b,p.VanillaPicker=l,p.showTransformModal=x,p.showSortModal=S,p.getInnerText=P,s.exports=p.default=p},1389:function(s,o,a){a.d(o,{n:function(){return R}});var c=a(6545),l=a(3057);function d(O){return(d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $})(O)}function v(O,$){for(var P=0;P<$.length;P++){var T=$[P];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(O,(C=>(C=((N,x)=>{if(d(N)!="object"||!N)return N;var S=N[Symbol.toPrimitive];if(S===void 0)return(x==="string"?String:Number)(N);if(d(S=S.call(N,x))!="object")return S;throw new TypeError("@@toPrimitive must return a primitive value.")})(C,"string"),d(C)=="symbol"?C:C+""))(T.key),T)}}var R=(()=>{function O(C,N,x,S){if(!(this instanceof O))throw new TypeError("Cannot call a class as a function");for(var b={code:{text:(0,l.Tl)("modeCodeText"),title:(0,l.Tl)("modeCodeTitle"),click:function(){S("code")}},form:{text:(0,l.Tl)("modeFormText"),title:(0,l.Tl)("modeFormTitle"),click:function(){S("form")}},text:{text:(0,l.Tl)("modeTextText"),title:(0,l.Tl)("modeTextTitle"),click:function(){S("text")}},tree:{text:(0,l.Tl)("modeTreeText"),title:(0,l.Tl)("modeTreeTitle"),click:function(){S("tree")}},view:{text:(0,l.Tl)("modeViewText"),title:(0,l.Tl)("modeViewTitle"),click:function(){S("view")}},preview:{text:(0,l.Tl)("modePreviewText"),title:(0,l.Tl)("modePreviewTitle"),click:function(){S("preview")}}},p=[],g=0;g<N.length;g++){var u=N[g],y=b[u];
16if(!y)throw new Error('Unknown mode "'+u+'"');y.className="jsoneditor-type-modes"+(x===u?" jsoneditor-selected":""),p.push(y)}var I=b[x];if(!I)throw new Error('Unknown mode "'+x+'"');var I=I.text,m=document.createElement("button"),I=(m.type="button",m.className="jsoneditor-modes jsoneditor-separator",m.textContent=I+" â¾",m.title=(0,l.Tl)("modeEditorTitle"),m.onclick=function(){new c.t(p).show(m,C)},document.createElement("div"));I.className="jsoneditor-modes",I.style.position="relative",I.appendChild(m),C.appendChild(I),this.dom={container:C,box:m,frame:I}}return $=O,(P=[{key:"focus",value:function(){this.dom.box.focus()}},{key:"destroy",value:function(){this.dom&&this.dom.frame&&this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame),this.dom=null}}])&&v($.prototype,P),T&&v($,T),Object.defineProperty($,"prototype",{writable:!1}),$;var $,P,T})()},7413:function(s,o,a){var c;if(window.ace)c=window.ace;else try{c=a(6990),a(4221),a(6534),a(6489);var l=a(5477);c.config.setModuleUrl("ace/mode/json_worker",l)}catch{}s.exports=c},9762:function(){window.ace.define("ace/theme/jsoneditor",["require","exports","module","ace/lib/dom"],function(s,o,a){o.isDark=!1,o.cssClass="ace-jsoneditor",o.cssText=`.ace-jsoneditor .ace_gutter { 17background: #ebebeb; 18color: #333 19} 20 21.ace-jsoneditor.ace_editor { 22line-height: 1.3; 23background-color: #fff; 24} 25.ace-jsoneditor .ace_print-margin { 26width: 1px; 27background: #e8e8e8 28} 29.ace-jsoneditor .ace_scroller { 30background-color: #FFFFFF 31} 32.ace-jsoneditor .ace_text-layer { 33color: gray 34} 35.ace-jsoneditor .ace_variable { 36color: #1a1a1a 37} 38.ace-jsoneditor .ace_cursor { 39border-left: 2px solid #000000 40} 41.ace-jsoneditor .ace_overwrite-cursors .ace_cursor { 42border-left: 0px; 43border-bottom: 1px solid #000000 44} 45.ace-jsoneditor .ace_marker-layer .ace_selection { 46background: lightgray 47} 48.ace-jsoneditor.ace_multiselect .ace_selection.ace_start { 49box-shadow: 0 0 3px 0px #FFFFFF; 50border-radius: 2px 51} 52.ace-jsoneditor .ace_marker-layer .ace_step { 53background: rgb(255, 255, 0) 54} 55.ace-jsoneditor .ace_marker-layer .ace_bracket { 56margin: -1px 0 0 -1px; 57border: 1px solid #BFBFBF 58} 59.ace-jsoneditor .ace_marker-layer .ace_active-line { 60background: #FFFBD1 61} 62.ace-jsoneditor .ace_gutter-active-line { 63background-color : #dcdcdc 64} 65.ace-jsoneditor .ace_marker-layer .ace_selected-word { 66border: 1px solid lightgray 67} 68.ace-jsoneditor .ace_invisible { 69color: #BFBFBF 70} 71.ace-jsoneditor .ace_keyword, 72.ace-jsoneditor .ace_meta, 73.ace-jsoneditor .ace_support.ace_constant.ace_property-value { 74color: #AF956F 75} 76.ace-jsoneditor .ace_keyword.ace_operator { 77color: #484848 78} 79.ace-jsoneditor .ace_keyword.ace_other.ace_unit { 80color: #96DC5F 81} 82.ace-jsoneditor .ace_constant.ace_language { 83color: darkorange 84} 85.ace-jsoneditor .ace_constant.ace_numeric { 86color: red 87} 88.ace-jsoneditor .ace_constant.ace_character.ace_entity { 89color: #BF78CC 90} 91.ace-jsoneditor .ace_invalid { 92color: #FFFFFF; 93background-color: #FF002A; 94} 95.ace-jsoneditor .ace_fold { 96background-color: #AF956F; 97border-color: #000000 98} 99.ace-jsoneditor .ace_storage, 100.ace-jsoneditor .ace_support.ace_class, 101.ace-jsoneditor .ace_support.ace_function, 102.ace-jsoneditor .ace_support.ace_other, 103.ace-jsoneditor .ace_support.ace_type { 104color: #C52727 105} 106.ace-jsoneditor .ace_string { 107color: green 108} 109.ace-jsoneditor .ace_comment { 110color: #BCC8BA 111} 112.ace-jsoneditor .ace_entity.ace_name.ace_tag, 113.ace-jsoneditor .ace_entity.ace_other.ace_attribute-name { 114color: #606060 115} 116.ace-jsoneditor .ace_markup.ace_underline { 117text-decoration: underline 118} 119.ace-jsoneditor .ace_indent-guide { 120background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y 121}`,s("../lib/dom").importCssString(o.cssText,o.cssClass)})},5736:function(s,o){(a={trace:function(){},yy:{},symbols_:{error:2,JSONString:3,STRING:4,JSONNumber:5,NUMBER:6,JSONNullLiteral:7,NULL:8,JSONBooleanLiteral:9,TRUE:10,FALSE:11,JSONText:12,JSONValue:13,EOF:14,JSONObject:15,JSONArray:16,"{":17,"}":18,JSONMemberList:19,JSONMember:20,":":21,",":22,"[":23,"]":24,JSONElementList:25,$accept:0,$end:1},terminals_:{2:"error",4:"STRING",6:"NUMBER",8:"NULL",10:"TRUE",11:"FALSE",14:"EOF",17:"{",18:"}",21:":",22:",",23:"[",24:"]"},productions_:[0,[3,1],[5,1],[7,1],[9,1],[9,1],[12,2],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[15,2],[15,3],[20,3],[19,1],[19,3],[16,2],[16,3],[25,1],[25,3]],performAction:function(c,l,d,v,R,O,$){var P=O.length-1;switch(R){case 1:this.$=c.replace(/\\(\\|")/g,"$1").replace(/\\n
121/g,` 122`).replace(/\\r/g,"\r").replace(/\\t/g," ").replace(/\\v/g,"\v").replace(/\\f/g,"\f").replace(/\\b/g,"\b");break;case 2:this.$=Number(c);break;case 3:this.$=null;break;case 4:this.$=!0;break;case 5:this.$=!1;break;case 6:return this.$=O[P-1];case 13:this.$={};break;case 14:this.$=O[P-1];break;case 15:this.$=[O[P-2],O[P]];break;case 16:this.$={},this.$[O[P][0]]=O[P][1];break;case 17:this.$=O[P-2],O[P-2][O[P][0]]=O[P][1];break;case 18:this.$=[];break;case 19:this.$=O[P-1];break;case 20:this.$=[O[P]];break;case 21:this.$=O[P-2],O[P-2].push(O[P])}},table:[{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],12:1,13:2,15:7,16:8,17:[1,14],23:[1,15]},{1:[3]},{14:[1,16]},{14:[2,7],18:[2,7],22:[2,7],24:[2,7]},{14:[2,8],18:[2,8],22:[2,8],24:[2,8]},{14:[2,9],18:[2,9],22:[2,9],24:[2,9]},{14:[2,10],18:[2,10],22:[2,10],24:[2,10]},{14:[2,11],18:[2,11],22:[2,11],24:[2,11]},{14:[2,12],18:[2,12],22:[2,12],24:[2,12]},{14:[2,3],18:[2,3],22:[2,3],24:[2,3]},{14:[2,4],18:[2,4],22:[2,4],24:[2,4]},{14:[2,5],18:[2,5],22:[2,5],24:[2,5]},{14:[2,1],18:[2,1],21:[2,1],22:[2,1],24:[2,1]},{14:[2,2],18:[2,2],22:[2,2],24:[2,2]},{3:20,4:[1,12],18:[1,17],19:18,20:19},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:23,15:7,16:8,17:[1,14],23:[1,15],24:[1,21],25:22},{1:[2,6]},{14:[2,13],18:[2,13],22:[2,13],24:[2,13]},{18:[1,24],22:[1,25]},{18:[2,16],22:[2,16]},{21:[1,26]},{14:[2,18],18:[2,18],22:[2,18],24:[2,18]},{22:[1,28],24:[1,27]},{22:[2,20],24:[2,20]},{14:[2,14],18:[2,14],22:[2,14],24:[2,14]},{3:20,4:[1,12],20:29},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:30,15:7,16:8,17:[1,14],23:[1,15]},{14:[2,19],18:[2,19],22:[2,19],24:[2,19]},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:31,15:7,16:8,17:[1,14],23:[1,15]},{18:[2,17],22:[2,17]},{18:[2,15],22:[2,15]},{22:[2,21],24:[2,21]}],defaultActions:{16:[2,6]},parseError:function(c,l){throw new Error(c)},parse:function(c){var l=this,d=[0],v=[null],R=[],O=this.table,$="",P=0,T=0,C=0,N=(this.lexer.setInput(c),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.lexer.yylloc===void 0&&(this.lexer.yylloc={}),this.lexer.yylloc);function x(){var w=l.lexer.lex()||1;return w=typeof w!="number"&&l.symbols_[w]||w}R.push(N),typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);for(var S,b,p,g,u,y,m,I,_,h={};;){if(p=d[d.length-1],(g=this.defaultActions[p]||(S==null&&(S=x()),O[p]&&O[p][S]))===void 0||!g.length||!g[0]){if(!C){for(u in I=[],O[p])this.terminals_[u]&&2<u&&I.push("'"+this.terminals_[u]+"'");var f="",f=this.lexer.showPosition?"Parse error on line "+(P+1)+`: 123`+this.lexer.showPosition()+` 124Expecting `+I.join(", ")+", got '"+this.terminals_[S]+"'":"Parse error on line "+(P+1)+": Unexpected "+(S==1?"end of input":"'"+(this.terminals_[S]||S)+"'");this.parseError(f,{text:this.lexer.match,token:this.terminals_[S]||S,line:this.lexer.yylineno,loc:N,expected:I})}if(C==3){if(S==1)throw new Error(f||"Parsing halted.");T=this.lexer.yyleng,$=this.lexer.yytext,P=this.lexer.yylineno,N=this.lexer.yylloc,S=x()}for(;!("2"in O[p]);){if(p==0)throw new Error(f||"Parsing halted.");_=1,d.length=d.length-2*_,v.length=v.length-_,R.length=R.length-_,p=d[d.length-1]}b=S,S=2,g=O[p=d[d.length-1]]&&O[p][2],C=3}if(g[0]instanceof Array&&1<g.length)throw new Error("Parse Error: multiple actions possible at state: "+p+", token: "+S);switch(g[0]){case 1:d.push(S),v.push(this.lexer.yytext),R.push(this.lexer.yylloc),d.push(g[1]),S=null,b?(S=b,b=null):(T=this.lexer.yyleng,$=this.lexer.yytext,P=this.lexer.yylineno,N=this.lexer.yylloc,0<C&&C--);break;case 2:if(y=this.productions_[g[1]][1],h.$=v[v.length-y],h._$={first_line:R[R.length-(y||1)].first_line,last_line:R[R.length-1].last_line,first_column:R[R.length-(y||1)].first_column,last_column:R[R.length-1].last_column},(m=this.performAction.call(h,$,T,P,this.yy,g[1],v,R))!==void 0)return m;y&&(d=d.slice(0,-1*y*2),v=v.slice(0,-1*y),R=R.slice(0,-1*y)),d.push(this.productions_[g[1]][0]),v.push(h.$),R.push(h._$),m=O[d[d.length-2]][d[d.length-1]],d.push(m);break;case 3:return!0}}return!0}}).lexer={EOF:1,parseError:function(c,l){if(!this.yy.parseError)throw new Error(c);this.yy.parseError(c,l)},setInput:function(c){return this._input=c,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this}
124,input:function(){var c=this._input[0];return this.yytext+=c,this.yyleng++,this.match+=c,this.matched+=c,c.match(/\n/)&&this.yylineno++,this._input=this._input.slice(1),c},unput:function(c){return this._input=c+this._input,this},more:function(){return this._more=!0,this},less:function(c){this._input=this.match.slice(c)+this._input},pastInput:function(){var c=this.matched.substr(0,this.matched.length-this.match.length);return(20<c.length?"...":"")+c.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var c=this.match;return c.length<20&&(c+=this._input.substr(0,20-c.length)),(c.substr(0,20)+(20<c.length?"...":"")).replace(/\n/g,"")},showPosition:function(){var c=this.pastInput(),l=new Array(c.length+1).join("-");return c+this.upcomingInput()+` 125`+l+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var c,l,d,v,R=this._currentRules(),O=0;O<R.length&&(!(l=this._input.match(this.rules[R[O]]))||c&&!(l[0].length>c[0].length)||(c=l,d=O,this.options.flex));O++);return c?((v=c[0].match(/\n.*/g))&&(this.yylineno+=v.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:v?v[v.length-1].length-1:this.yylloc.last_column+c[0].length},this.yytext+=c[0],this.match+=c[0],this.yyleng=this.yytext.length,this._more=!1,this._input=this._input.slice(c[0].length),this.matched+=c[0],v=this.performAction.call(this,this.yy,this,R[d],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),v||void 0):this._input===""?this.EOF:void this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. 126`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var c=this.next();return c!==void 0?c:this.lex()},begin:function(c){this.conditionStack.push(c)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(c){this.begin(c)},options:{},performAction:function(c,l,d,v){switch(d){case 0:break;case 1:return 6;case 2:return l.yytext=l.yytext.substr(1,l.yyleng-2),4;case 3:return 17;case 4:return 18;case 5:return 23;case 6:return 24;case 7:return 22;case 8:return 21;case 9:return 10;case 10:return 11;case 11:return 8;case 12:return 14;case 13:return"INVALID"}},rules:[/^(?:\s+)/,/^(?:(-?([0-9]|[1-9][0-9]+))(\.[0-9]+)?([eE][-+]?[0-9]+)?\b)/,/^(?:"(?:\\[\\"bfnrt/]|\\u[a-fA-F0-9]{4}|[^\\\0-\x09\x0a-\x1f"])*")/,/^(?:\{)/,/^(?:\})/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?::)/,/^(?:true\b)/,/^(?:false\b)/,/^(?:null\b)/,/^(?:$)/,/^(?:.)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}}};var a;o.parser=a,o.parse=a.parse.bind(a)},4772:function(s){function o(){}o.prototype={on:function(P,T){this._events=this._events||{},this._events[P]=this._events[P]||[],this._events[P].push(T)},off:function(P,T){this._events=this._events||{},P in this._events&&this._events[P].splice(this._events[P].indexOf(T),1)},emit:function(P){if(this._events=this._events||{},P in this._events)for(var T=0;T<this._events[P].length;T++)this._events[P][T].apply(this,Array.prototype.slice.call(arguments,1))}},o.mixin=function(P){for(var T=["on","off","emit"],C=0;C<T.length;C++)typeof P=="function"?P.prototype[T[C]]=o.prototype[T[C]]:P[T[C]]=o.prototype[T[C]];return P};var a={escapeRegExp:function(P){var T=/[\\^$.*+?()[\]{}|]/g,C=new RegExp(T.source);return P&&C.test(P)?P.replace(T,"\\$&"):P},extend:function(P,T){for(var C in T){var N;T.hasOwnProperty(C)&&((N=T[C])&&Object.prototype.toString.call(N)==="[object Object]"?(P[C]=P[C]||{},a.extend(P[C],N)):P[C]=N)}return P},each:function(P,T,C){if(Object.prototype.toString.call(P)==="[object Object]")for(var N in P)Object.prototype.hasOwnProperty.call(P,N)&&T.call(C,N,P[N],P);else for(var x=0,S=P.length;x<S;x++)T.call(C,x,P[x],P)},createElement:function(P,T){var C,N=document.createElement(P);if(T&&Object.prototype.toString.call(T)==="[object Object]")for(C in T)C in N?N[C]=T[C]:C==="html"?N.innerHTML=T[C]:N.setAttribute(C,T[C]);return N},hasClass:function(P,T){if(P)return P.classList?P.classList.contains(T):!!P.className&&!!P.className.match(new RegExp("(\\s|^)"+T+"(\\s|$)"))},addClass:function(P,T){a.hasClass(P,T)||(P.classList?P.classList.add(T):P.className=P.className.trim()+" "+T)},removeClass:function(P,T){a.hasClass(P,T)&&(P.classList?P.classList.remove(T):P.className=P.className.replace(new RegExp("(^|\\s)"+T.split(" ").join("|")+"(\\s|$)","gi")," "))},closest:function(P,T){return P&&P!==document.body&&(T(P)?P:a.closest(P.parentNode,T))},isInt:function(P){return typeof P=="number"&&isFinite(P)&&Math.floor(P)===P},debounce:function(P,T,C){var N;return function(){var x=this,S=arguments,b=C&&!N;clearTimeout(N),N=setTimeout(function(){N=null,C||P.apply(x,S)},T),b&&P.apply(x,S)}},rect:function(N,S){var C=window,N=N.getBoundingClientRect(),x=S?C.pageXOffset:0,S=S?C.pageYOffset:0;return{bottom:N.bottom+S,height:N.height,left:N.left+x,right:N.right+x,top:N.top+S,width:N.width}},includes:function(P,T){return-1<P.indexOf(T)},startsWith:function(P,T){return P.substr(0,T.length)===T},truncate:function(P){for(;P.firstChild;)P.removeChild(P.firstChild)}};function c(P,T){return P.hasOwnProperty(T)&&(P[T]===!0||P[T].length)}function l(P,T,C){P.parentNode?P.parentNode.parentNode||T.appendChild(P.parentNode):T.appendChild(P),a.removeClass(P,"excluded"),C||(P.textContent=P.textContent)}function d(){var P,T;this.items.length&&(P=document.createDocumentFragment(),this.config.pagination?(T=this.pages.slice(0,this.pageIndex),a.each(T,function(C,N){a.each(N,function(x,S){l(S,P,this.customOption)},this)},this)):a.each(this.items,function(C,N){l(N,P,this.customOption)},this),P.childElementCount&&(a.removeClass(this.items[this.navIndex],"active"),this.navIndex=(P.querySelector(".selectr-option.selected")||P.querySelector(".selectr-option")).idx,a.addClass(this.items[this.navIndex],"active")),this.tree.appendChild(P))}function v(P,T){T=T||P;var C={class:"selectr-option",role:"treeitem","aria-selected":!1};return this.customOption?C.html=this.config.renderOption(T):C.textContent=P.textContent,(T=a.createElement("li",C)).idx=P.idx,this.items.push(T),P.defaultSelected&&this.defaultSelected.push(P.idx),P.disabled&&(T.disabled=!0,a.addClass(T,"disabled")),T}function R(){var P,T=this.tree,C=T.scrollTop;T.scrollHeight-T.offsetHeight<=C&&this.pageIndex<this.pages.length&&(P=document.createDocumentFragment(),a.each(this.pages[this.pageIndex],function(N,x){l(x,P,this.customOption)}
126,this),T.appendChild(P),this.pageIndex++,this.emit("selectr.paginate",{items:this.items.length,total:this.data.length,page:this.pageIndex,pages:this.pages.length}))}function O(){(this.config.searchable||this.config.taggable)&&(this.input.value=null,this.searching=!1,this.config.searchable&&a.removeClass(this.inputContainer,"active"),a.hasClass(this.container,"notice")&&(a.removeClass(this.container,"notice"),a.addClass(this.container,"open"),this.input.focus()),a.each(this.items,function(P,T){a.removeClass(T,"excluded"),this.customOption||(T.textContent=T.textContent)},this))}function $(P,T){if(!P)throw new Error("You must supply either a HTMLSelectElement or a CSS3 selector string.");if(typeof(this.el=P)=="string"&&(this.el=document.querySelector(P)),this.el===null)throw new Error("The element you passed to Selectr can not be found.");if(this.el.nodeName.toLowerCase()!=="select")throw new Error("The element you passed to Selectr is not a HTMLSelectElement.");this.render(T)}$.prototype.render=function(P){var T;this.rendered||((this.el.selectr=this).config=a.extend({defaultSelected:!0,width:"auto",disabled:!1,disabledMobile:!1,searchable:!0,clearable:!1,sortSelected:!1,allowDeselect:!1,closeOnScroll:!1,nativeDropdown:!1,nativeKeyboard:!1,placeholder:"Select an option...",taggable:!1,tagPlaceholder:"Enter a tag...",messages:{noResults:"No results.",noOptions:"No options available.",maxSelections:"A maximum of {max} items can be selected.",tagDuplicate:"That tag is already in use.",searchPlaceholder:"Search options..."}},P),this.originalType=this.el.type,this.originalIndex=this.el.tabIndex,this.defaultSelected=[],this.originalOptionCount=this.el.options.length,(this.config.multiple||this.config.taggable)&&(this.el.multiple=!0),this.disabled=c(this.config,"disabled"),this.opened=!1,this.config.taggable&&(this.config.searchable=!1),this.navigating=!1,this.mobileDevice=!1,!this.config.disabledMobile&&/Android|webOS|iPhone|iPad|BlackBerry|Windows Phone|Opera Mini|IEMobile|Mobile/i.test(navigator.userAgent)&&(this.mobileDevice=!0),this.customOption=this.config.hasOwnProperty("renderOption")&&typeof this.config.renderOption=="function",this.customSelected=this.config.hasOwnProperty("renderSelection")&&typeof this.config.renderSelection=="function",this.supportsEventPassiveOption=this.detectEventPassiveOption(),o.mixin(this),(function(){this.requiresPagination=this.config.pagination&&0<this.config.pagination,c(this.config,"width")&&(a.isInt(this.config.width)?this.width=this.config.width+"px":this.config.width==="auto"?this.width="100%":a.includes(this.config.width,"%")&&(this.width=this.config.width)),this.container=a.createElement("div",{class:"selectr-container"}),this.config.customClass&&a.addClass(this.container,this.config.customClass),this.mobileDevice?a.addClass(this.container,"selectr-mobile"):a.addClass(this.container,"selectr-desktop"),this.el.tabIndex=-1,this.config.nativeDropdown||this.mobileDevice?a.addClass(this.el,"selectr-visible"):a.addClass(this.el,"selectr-hidden"),this.selected=a.createElement("div",{class:"selectr-selected",disabled:this.disabled,tabIndex:0,"aria-expanded":!1}),this.label=a.createElement(this.el.multiple?"ul":"span",{class:"selectr-label"});var C=a.createElement("div",{class:"selectr-options-container"});if(this.tree=a.createElement("ul",{class:"selectr-options",role:"tree","aria-hidden":!0,"aria-expanded":!1}),this.notice=a.createElement("div",{class:"selectr-notice"}),this.el.setAttribute("aria-hidden",!0),this.disabled&&(this.el.disabled=!0),this.el.multiple?(a.addClass(this.label,"selectr-tags"),a.addClass(this.container,"multiple"),this.tags=[],this.selectedValues=this.config.defaultSelected?this.getSelectedProperties("value"):[],this.selectedIndexes=this.getSelectedProperties("idx")):(this.selectedValue=null,this.selectedIndex=-1),this.selected.appendChild(this.label),this.config.clearable&&(this.selectClear=a.createElement("button",{class:"selectr-clear",type:"button"}),this.container.appendChild(this.selectClear),a.addClass(this.container,"clearable")),this.config.taggable){var N=a.createElement("li",{class:"input-tag"});if(this.input=a.createElement("input",{class:"selectr-tag-input",placeholder:this.config.tagPlaceholder,tagIndex:0,autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",role:"textbox",type:"search"}),N.appendChild(this.input),this.label.appendChild(N),a.addClass(this.container,"taggable"),this.tagSeperators=[","],this.config.tagSeperators){this.tagSeperators=this.tagSeperators.c
126oncat(this.config.tagSeperators);for(var x=[],S=0;S<this.tagSeperators.length;S++)x.push(a.escapeRegExp(this.tagSeperators[S]));this.tagSeperatorsRegex=new RegExp(x.join("|"),"i")}else this.tagSeperatorsRegex=new RegExp(",","i")}this.config.searchable&&(this.input=a.createElement("input",{class:"selectr-input",tagIndex:-1,autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",role:"textbox",type:"search",placeholder:this.config.messages.searchPlaceholder}),this.inputClear=a.createElement("button",{class:"selectr-input-clear",type:"button"}),this.inputContainer=a.createElement("div",{class:"selectr-input-container"}),this.inputContainer.appendChild(this.input),this.inputContainer.appendChild(this.inputClear),C.appendChild(this.inputContainer)),C.appendChild(this.notice),C.appendChild(this.tree),this.items=[],this.options=[],this.el.options.length&&(this.options=[].slice.call(this.el.options));var b,p,g,u=!1,y=0;this.el.children.length&&a.each(this.el.children,function(I,_){_.nodeName==="OPTGROUP"?(u=a.createElement("ul",{class:"selectr-optgroup",role:"group",html:"<li class='selectr-optgroup--label'>"+_.label+"</li>"}),a.each(_.children,function(h,f){f.idx=y,u.appendChild(v.call(this,f,u)),y++},this)):(_.idx=y,v.call(this,_),y++)},this),this.config.data&&Array.isArray(this.config.data)&&(b=!(this.data=[]),u=!1,y=0,a.each(this.config.data,function(I,_){c(_,"children")?(b=a.createElement("optgroup",{label:_.text}),u=a.createElement("ul",{class:"selectr-optgroup",role:"group",html:"<li class='selectr-optgroup--label'>"+_.text+"</li>"}),a.each(_.children,function(h,f){(p=new Option(f.text,f.value,!1,f.hasOwnProperty("selected")&&f.selected===!0)).disabled=c(f,"disabled"),this.options.push(p),b.appendChild(p),p.idx=y,u.appendChild(v.call(this,p,f)),this.data[y]=f,y++},this),this.el.appendChild(b)):((p=new Option(_.text,_.value,!1,_.hasOwnProperty("selected")&&_.selected===!0)).disabled=c(_,"disabled"),this.options.push(p),p.idx=y,v.call(this,p,_),this.data[y]=_,y++)},this)),this.setSelected(!0);for(var m=this.navIndex=0;m<this.items.length;m++)if(g=this.items[m],!a.hasClass(g,"disabled")){a.addClass(g,"active"),this.navIndex=m;break}this.requiresPagination&&(this.pageIndex=1,this.paginate()),this.container.appendChild(this.selected),this.container.appendChild(C),this.placeEl=a.createElement("div",{class:"selectr-placeholder"}),this.setPlaceholder(),this.selected.appendChild(this.placeEl),this.disabled&&this.disable(),this.el.parentNode.insertBefore(this.container,this.el),this.container.appendChild(this.el)}).call(this),this.bindEvents(),this.update(),this.optsRect=a.rect(this.tree),this.rendered=!0,this.el.multiple||(this.el.selectedIndex=this.selectedIndex),T=this,setTimeout(function(){T.emit("selectr.init")},20))},$.prototype.getSelected=function(){return this.el.querySelectorAll("option:checked")},$.prototype.getSelectedProperties=function(P){var T=this.getSelected();return[].slice.call(T).map(function(C){return C[P]}).filter(function(C){return C!=null})},$.prototype.detectEventPassiveOption=function(){var P=!1;try{var T=Object.defineProperty({},"passive",{get:function(){P=!0}});window.addEventListener("test",null,T)}catch{}return P},$.prototype.bindEvents=function(){var P,T=this;this.events={},this.events.dismiss=(function(C){C=C.target,this.container.contains(C)||!this.opened&&!a.hasClass(this.container,"notice")||this.close()}).bind(this),this.events.navigate=(function(C){if(C=C||window.event,this.items.length&&this.opened&&a.includes([13,38,40],C.which)){if(C.preventDefault(),C.which===13)return!(this.noResults||this.config.taggable&&0<this.input.value.length)&&this.change(this.navIndex);var N,x=this.items[this.navIndex],S=this.navIndex;switch(C.which){case 38:(N=0)<this.navIndex&&this.navIndex--;break;case 40:this.navIndex<this.items.length-(N=1)&&this.navIndex++}for(this.navigating=!0;a.hasClass(this.items[this.navIndex],"disabled")||a.hasClass(this.items[this.navIndex],"excluded");){if(!(0<this.navIndex&&this.navIndex<this.items.length-1)){this.navIndex=S;break}if(N?this.navIndex++:this.navIndex--,this.searching){if(this.navIndex>this.tree.lastElementChild.idx){this.navIndex=this.tree.lastElementChild.idx;break}if(this.navIndex<this.tree.firstElementChild.idx){this.navIndex=this.tree.firstElementChild.idx;break}}}C=a.rect(this.items[this.navIndex]),N?(this.navIndex===0?this.tree.scrollTop=0:C.top+C.height>this.optsRect.top+this.optsRect.height&&(this.tree.scrollTop=this.tree.scrollTop+(C.top+C.height-(this.optsRect.top+this.optsRect.height))),this.navIndex===this.tree.childElementCount-1&&this.requiresPagination&&R.call(this)):this.navIndex===0?this.tree.scrollTop=0:C.top-this.optsRect.top<0&&(this.tree.scrollTop=this.tree.scrollTop+(C.top-this.optsRect.top)),x&&a.removeClass(x,"active"),a.addClass(this.items[this.navIndex],"active")}else this.navigating=!1}).bind(this),this.events.reset=this.reset.bind(this),(this.config.nativeDropdown||this.mobileDevice)&&(this.container.addEventListener("touchstart",function(C){C.changedTouches[0].target===T.el&&T.toggle(
126)},!!this.supportsEventPassiveOption&&{passive:!0}),this.container.addEventListener("click",function(C){C.target===T.el&&T.toggle()}),this.el.addEventListener("change",function(C){C.__selfTriggered||(T.el.multiple?(C=T.getSelectedProperties("idx"),C=((N,x)=>{for(var S,b=[],p=N.slice(0),g=0;g<x.length;g++)-1<(S=p.indexOf(x[g]))?p.splice(S,1):b.push(x[g]);return[b,p]})(T.selectedIndexes,C),a.each(C[0],function(N,x){T.select(x)},T),a.each(C[1],function(N,x){T.deselect(x)},T)):-1<T.el.selectedIndex&&T.select(T.el.selectedIndex))})),this.config.nativeDropdown&&this.container.addEventListener("keydown",function(C){C.key==="Enter"&&T.selected===document.activeElement&&(T.toggle(),setTimeout(function(){T.el.focus()},200))}),this.selected.addEventListener("click",function(C){T.disabled||T.toggle(),C.preventDefault()}),this.config.nativeKeyboard&&(P="",this.selected.addEventListener("keydown",function(C){var N;T.disabled||T.selected!==document.activeElement||C.altKey||C.ctrlKey||C.metaKey||(C.key===" "||!T.opened&&-1<["Enter","ArrowUp","ArrowDown"].indexOf(C.key)?(T.toggle(),C.preventDefault(),C.stopPropagation()):C.key.length<=2&&String[String.fromCodePoint?"fromCodePoint":"fromCharCode"](C.key[String.codePointAt?"codePointAt":"charCodeAt"](0))===C.key&&(T.config.multiple?(T.open(),T.config.searchable&&(T.input.value=C.key,T.input.focus(),T.search(null,!0))):(P+=C.key,(N=T.search(P,!0))&&N.length&&(T.clear(),T.setValue(N[0].value)),setTimeout(function(){P=""},1e3)),C.preventDefault(),C.stopPropagation()))}),this.container.addEventListener("keyup",function(C){T.opened&&C.key==="Escape"&&(T.close(),C.stopPropagation(),T.selected.focus())})),this.label.addEventListener("click",function(C){a.hasClass(C.target,"selectr-tag-remove")&&T.deselect(C.target.parentNode.idx)}),this.selectClear&&this.selectClear.addEventListener("click",this.clear.bind(this)),this.tree.addEventListener("mousedown",function(C){C.preventDefault()}),this.tree.addEventListener("click",function(C){var N=a.closest(C.target,function(x){return x&&a.hasClass(x,"selectr-option")});N&&!a.hasClass(N,"disabled")&&(a.hasClass(N,"selected")?(T.el.multiple||!T.el.multiple&&T.config.allowDeselect)&&T.deselect(N.idx):T.select(N.idx),T.opened&&!T.el.multiple)&&T.close(),C.preventDefault(),C.stopPropagation()}),this.tree.addEventListener("mouseover",function(C){!a.hasClass(C.target,"selectr-option")||a.hasClass(C.target,"disabled")||(a.removeClass(T.items[T.navIndex],"active"),a.addClass(C.target,"active"),T.navIndex=[].slice.call(T.items).indexOf(C.target))}),this.config.searchable&&(this.input.addEventListener("focus",function(C){T.searching=!0}),this.input.addEventListener("blur",function(C){T.searching=!1}),this.input.addEventListener("keyup",function(C){T.search(),T.config.taggable||(this.value.length?a.addClass(this.parentNode,"active"):a.removeClass(this.parentNode,"active"))}),this.inputClear.addEventListener("click",function(C){T.input.value=null,O.call(T),T.tree.childElementCount||d.call(T)})),this.config.taggable&&this.input.addEventListener("keyup",function(C){var N,x;T.search(),T.config.taggable&&this.value.length&&(N=this.value.trim()).length&&(C.which===13||T.tagSeperatorsRegex.test(N))&&(C=N.replace(T.tagSeperatorsRegex,""),(x=(C=(C=a.escapeRegExp(C)).trim()).length?T.add({value:C,textContent:C,selected:!0},!0):x)?(T.close(),O.call(T)):(this.value="",T.setMessage(T.config.messages.tagDuplicate)))}),this.update=a.debounce(function(){T.opened&&T.config.closeOnScroll&&T.close(),T.width&&(T.container.style.width=T.width),T.invert()},50),this.requiresPagination&&(this.paginateItems=a.debounce(function(){R.call(this)},50),this.tree.addEventListener("scroll",this.paginateItems.bind(this))),document.addEventListener("click",this.events.dismiss),window.addEventListener("keydown",this.events.navigate),window.addEventListener("resize",this.update),window.addEventListener("scroll",this.update),this.on("selectr.destroy",function(){document.removeEventListener("click",this.events.dismiss),window.removeEventListener("keydown",this.events.navigate),window.removeEventListener("resize",this.update),window.removeEventListener("scroll",this.update)}),this.el.form&&(this.el.form.addEventListener("reset",this.events.reset),this.on("selectr.destroy",function(){this.el.form.removeEventListener("reset",this.events.reset)}))},$.prototype.setSelected=function(P){var T;this.config.data||this.el.multiple||!this.el.options.length||(this.el.selectedIndex!==0||this.el.options[0].defaultSelected||this.config.defaultSelected||(this.el.selectedIndex=-1),this.selectedIndex=this.el.selectedIndex,-1<this.selectedIndex&&this.select(this.selectedIndex)),this.config.multiple&&this.originalType==="select-one"&&!this.config.data&&this.el.options[0].selected&&!this.el.options[0].defaultSelected&&(this.el.options[0].selected=!1),a.each(this.options,function(C,N){N.selected&&N.defaultSelected&&this.select(N.idx)},this),this.config.selectedValue&&this.setValue(this.config.selectedValue),this.config.data&&(!this.el.multiple&&this.config.defaultSelected&&this.el.selectedIndex<0&&0<this.config.data.length&&this.select(0),T=0,a.each(this.config.data,function(C,N){c(N,"children")?a.each(N.children,function(x,S){S.hasOwnProperty("selected")&&S.selected===!0&&this.select(T),T++},this):(N.hasOwnProperty("selected")&&N.selected===!0&&this.select(T),T++)},this))}
126,$.prototype.destroy=function(){this.rendered&&(this.emit("selectr.destroy"),this.originalType==="select-one"&&(this.el.multiple=!1),this.config.data&&(this.el.innerHTML=""),a.removeClass(this.el,"selectr-hidden"),this.container.parentNode.replaceChild(this.el,this.container),this.rendered=!1,delete this.el.selectr)},$.prototype.change=function(P){var T=this.items[P],C=this.options[P];C.disabled||(C.selected&&a.hasClass(T,"selected")?this.deselect(P):this.select(P),this.opened&&!this.el.multiple&&this.close())},$.prototype.select=function(P){var T=this.items[P],C=[].slice.call(this.el.options),N=this.options[P];if(this.el.multiple){if(a.includes(this.selectedIndexes,P))return!1;if(this.config.maxSelections&&this.tags.length===this.config.maxSelections)return this.setMessage(this.config.messages.maxSelections.replace("{max}",this.config.maxSelections),!0),!1;this.selectedValues.push(N.value),this.selectedIndexes.push(P),(function(S){var b,p=this,g=document.createDocumentFragment(),u=this.options[S.idx],y=this.data?this.data[S.idx]:u,m={class:"selectr-tag"},y=(this.customSelected?m.html=this.config.renderSelection(y):m.textContent=u.textContent,a.createElement("li",m)),m=a.createElement("button",{class:"selectr-tag-remove",type:"button"});y.appendChild(m),y.idx=S.idx,y.tag=u.value,this.tags.push(y),this.config.sortSelected?(m=this.tags.slice(),b=function(I,_){I.replace(/(\d+)|(\D+)/g,function(h,f,w){_.push([f||1/0,w||""])})},m.sort(function(I,_){var h,f,w=[],E=[];for(p.config.sortSelected===!0?(h=I.tag,f=_.tag):p.config.sortSelected==="text"&&(h=I.textContent,f=_.textContent),b(h,w),b(f,E);w.length&&E.length;){var L=w.shift(),k=E.shift(),L=L[0]-k[0]||L[1].localeCompare(k[1]);if(L)return L}return w.length-E.length}),a.each(m,function(I,_){g.appendChild(_)}),this.label.innerHTML=""):g.appendChild(y),this.config.taggable?this.label.insertBefore(g,this.input.parentNode):this.label.appendChild(g)}).call(this,T)}else{var x=this.data?this.data[P]:N;this.customSelected?this.label.innerHTML=this.config.renderSelection(x):this.label.textContent=N.textContent,this.selectedValue=N.value,this.selectedIndex=P,a.each(this.options,function(S,b){var p=this.items[S];S!==P&&(p&&a.removeClass(p,"selected"),b.selected=!1,b.removeAttribute("selected"))},this)}a.includes(C,N)||this.el.add(N),T.setAttribute("aria-selected",!0),a.addClass(T,"selected"),a.addClass(this.container,"has-selected"),N.selected=!0,N.setAttribute("selected",""),this.emit("selectr.change",N),this.emit("selectr.select",N),"createEvent"in document?((x=document.createEvent("HTMLEvents")).initEvent("change",!0,!0),x.__selfTriggered=!0,this.el.dispatchEvent(x)):this.el.fireEvent("onchange")},$.prototype.deselect=function(P,T){var C=this.items[P],N=this.options[P];if(this.el.multiple){var x=this.selectedIndexes.indexOf(P),x=(this.selectedIndexes.splice(x,1),this.selectedValues.indexOf(N.value));this.selectedValues.splice(x,1),(function(S){var b=!1;a.each(this.tags,function(p,g){g.idx===S.idx&&(b=g)},this),b&&(this.label.removeChild(b),this.tags.splice(this.tags.indexOf(b),1))}).call(this,C),this.tags.length||a.removeClass(this.container,"has-selected")}else{if(!T&&!this.config.clearable&&!this.config.allowDeselect)return!1;this.label.innerHTML="",this.selectedValue=null,this.el.selectedIndex=this.selectedIndex=-1,a.removeClass(this.container,"has-selected")}this.items[P].setAttribute("aria-selected",!1),a.removeClass(this.items[P],"selected"),N.selected=!1,N.removeAttribute("selected"),this.emit("selectr.change",null),this.emit("selectr.deselect",N),"createEvent"in document?((x=document.createEvent("HTMLEvents")).initEvent("change",!0,!0),x.__selfTriggered=!0,this.el.dispatchEvent(x)):this.el.fireEvent("onchange")},$.prototype.setValue=function(P){var T=Array.isArray(P);if(T||(P=P.toString().trim()),!this.el.multiple&&T)return!1;a.each(this.options,function(C,N){(T&&-1<P.indexOf(N.value)||N.value===P)&&this.change(N.idx)},this)},$.prototype.getValue=function(P,T){var C,N;return this.el.multiple?P?this.selectedIndexes.length&&(N={values:[]},a.each(this.selectedIndexes,function(x,S){S=this.options[S],N.values[x]={value:S.value,text:S.textContent}},this)):N=this.selectedValues.slice():N=P?{value:(C=this.options[this.selectedIndex]).value,text:C.textContent}:this.selectedValue,N=P&&T?JSON.stringify(N):N},$.prototype.add=function(P,T){if(P){if(this.data=this.data||[],this.items=this.items||[],this.options=this.options||[],Array.isArray(P))a.each(P,function(x,S){this.add(S,T)},this);else if(Object.prototype.toString.call(P)==="[object Object]"){if(T){var C=!1;if(a.each(this.options,function(x,S){S.value.toLowerCase()===P.value.toLowerCase()&&(C=!0)}),C)return!1}var N=a.createElement("option",P);return this.data.push(P),this.mobileDevice&&this.el.add(N),this.options.push(N),N.idx=0<this.options.length?this.options.length-1:0,v.call(this,N),P.selected&&this.select(N.idx),this.setPlaceholder(),N}return this.config.pagination&&this.paginate(),!0}},$.prototype.remove=function(P){var T,C=[];Array.isArray(P)?a.each(P,function(N,x){a.isInt(x)?C.push(this.getOptionByIndex(x)):typeof x=="str
126ing"&&C.push(this.getOptionByValue(x))},this):a.isInt(P)?C.push(this.getOptionByIndex(P)):typeof P=="string"&&C.push(this.getOptionByValue(P)),C.length&&(a.each(C,function(N,x){T=x.idx,this.el.remove(x),this.options.splice(T,1),x=this.items[T].parentNode,x&&x.removeChild(this.items[T]),this.items.splice(T,1),a.each(this.options,function(S,b){b.idx=S,this.items[S].idx=S},this)},this),this.setPlaceholder(),this.config.pagination)&&this.paginate()},$.prototype.removeAll=function(){this.clear(!0),a.each(this.el.options,function(P,T){this.el.remove(T)},this),a.truncate(this.tree),this.items=[],this.options=[],this.data=[],this.navIndex=0,this.requiresPagination&&(this.requiresPagination=!1,this.pageIndex=1,this.pages=[]),this.setPlaceholder()},$.prototype.search=function(P,T){var C,N,x,S,b;if(!this.navigating)return C=!1,P||(P=this.input.value,C=!0,this.removeMessage(),a.truncate(this.tree)),N=[],x=document.createDocumentFragment(),0<(P=P.trim().toLowerCase()).length?(S=T?a.startsWith:a.includes,a.each(this.options,function(p,g){var u,y,m,I,_=this.items[g.idx];S(g.textContent.trim().toLowerCase(),P)&&!g.disabled?(N.push({text:g.textContent,value:g.value}),C&&(l(_,x,this.customOption),a.removeClass(_,"excluded"),!this.customOption)&&(u=P,m=(g=g).textContent,u=new RegExp(u,"ig"),I=u.exec(m))&&(g.innerHTML="",(y=document.createElement("span")).classList.add("selectr-match"),y.textContent=I[0],g.appendChild(document.createTextNode(m.substring(0,I.index))),g.appendChild(y),g.appendChild(document.createTextNode(m.substring(u.lastIndex))))):C&&a.addClass(_,"excluded")},this),C&&(x.childElementCount?(T=this.items[this.navIndex],b=x.querySelector(".selectr-option:not(.excluded)"),this.noResults=!1,a.removeClass(T,"active"),this.navIndex=b.idx,a.addClass(b,"active")):this.config.taggable||(this.noResults=!0,this.setMessage(this.config.messages.noResults)),this.tree.appendChild(x))):d.call(this),N},$.prototype.toggle=function(){this.disabled||(this.opened?this.close():this.open())},$.prototype.open=function(){var P=this;if(!this.options.length)return!1;this.opened||this.emit("selectr.open"),this.opened=!0,this.mobileDevice||this.config.nativeDropdown?(a.addClass(this.container,"native-open"),this.config.data&&a.each(this.options,function(T,C){this.el.add(C)},this)):(a.addClass(this.container,"open"),d.call(this),this.invert(),this.tree.scrollTop=0,a.removeClass(this.container,"notice"),this.selected.setAttribute("aria-expanded",!0),this.tree.setAttribute("aria-hidden",!1),this.tree.setAttribute("aria-expanded",!0),this.config.searchable&&!this.config.taggable&&setTimeout(function(){P.input.focus(),P.input.tabIndex=0},10))},$.prototype.close=function(){var P;this.opened&&this.emit("selectr.close"),this.opened=!1,this.navigating=!1,this.mobileDevice||this.config.nativeDropdown?a.removeClass(this.container,"native-open"):(P=a.hasClass(this.container,"notice"),this.config.searchable&&!P&&(this.input.blur(),this.input.tabIndex=-1,this.searching=!1),P&&(a.removeClass(this.container,"notice"),this.notice.textContent=""),a.removeClass(this.container,"open"),a.removeClass(this.container,"native-open"),this.selected.setAttribute("aria-expanded",!1),this.tree.setAttribute("aria-hidden",!0),this.tree.setAttribute("aria-expanded",!1),a.truncate(this.tree),O.call(this))},$.prototype.enable=function(){this.disabled=!1,this.el.disabled=!1,this.selected.tabIndex=this.originalIndex,this.el.multiple&&a.each(this.tags,function(P,T){T.lastElementChild.tabIndex=0}),a.removeClass(this.container,"selectr-disabled")},$.prototype.disable=function(P){P||(this.el.disabled=!0),this.selected.tabIndex=-1,this.el.multiple&&a.each(this.tags,function(T,C){C.lastElementChild.tabIndex=-1}),this.disabled=!0,a.addClass(this.container,"selectr-disabled")},$.prototype.reset=function(){this.disabled||(this.clear(),this.setSelected(!0),a.each(this.defaultSelected,function(P,T){this.select(T)},this),this.emit("selectr.reset"))},$.prototype.clear=function(P,T){var C;this.el.multiple?this.selectedIndexes.length&&(C=this.selectedIndexes.slice(),T?this.deselect(C.slice(-1)[0]):a.each(C,function(N,x){this.deselect(x)},this)):-1<this.selectedIndex&&this.deselect(this.selectedIndex,P),this.emit
126("selectr.clear")},$.prototype.serialise=function(P){var T=[];return a.each(this.options,function(C,N){var x={value:N.value,text:N.textContent};N.selected&&(x.selected=!0),N.disabled&&(x.disabled=!0),T[C]=x}),P?JSON.stringify(T):T},$.prototype.serialize=function(P){return this.serialise(P)},$.prototype.setPlaceholder=function(P){P=P||this.config.placeholder||this.el.getAttribute("placeholder"),this.options.length||(P=this.config.messages.noOptions),this.placeEl.innerHTML=P},$.prototype.paginate=function(){var P;if(this.items.length)return(P=this).pages=this.items.map(function(T,C){return C%P.config.pagination==0?P.items.slice(C,C+P.config.pagination):null}).filter(function(T){return T}),this.pages},$.prototype.setMessage=function(P,T){T&&this.close(),a.addClass(this.container,"notice"),this.notice.textContent=P},$.prototype.removeMessage=function(){a.removeClass(this.container,"notice"),this.notice.innerHTML=""},$.prototype.invert=function(){var P=a.rect(this.selected),T=this.tree.parentNode.offsetHeight,C=window.innerHeight;P.top+P.height+T>C?(a.addClass(this.container,"inverted"),this.isInverted=!0):(a.removeClass(this.container,"inverted"),this.isInverted=!1),this.optsRect=a.rect(this.tree)},$.prototype.getOptionByIndex=function(P){return this.options[P]},$.prototype.getOptionByValue=function(P){for(var T=!1,C=0,N=this.options.length;C<N;C++)if(this.options[C].value.trim()===P.toString().trim()){T=this.options[C];break}return T},s.exports=$},660:function(s,o,a){a.d(o,{Oq:function(){return l},SC:function(){return v},ai:function(){return c},hJ:function(){return d}});var c=document.body,l=10485760,d=2e4,v=2147483648},1925:function(s,o,a){a.d(o,{p:function(){return l}});var c=a(6237);function l(d,v,R){var O,$=3<arguments.length&&arguments[3]!==void 0&&arguments[3],P=typeof(C=d).getRootNode=="function"?C.getRootNode():window,T={},C=d.getBoundingClientRect(),N=v.getBoundingClientRect(),x=document.createElement("div");function S(){if(x&&x.parentNode){for(var p in x.parentNode.removeChild(x),T)g=p,Object.prototype.hasOwnProperty.call(T,g)&&((g=T[p])&&(0,c.removeEventListener)(P,p,g),delete T[p]);typeof R=="function"&&R(d)}var g}function b(p){(p=p.target)===x||(0,c.isChildOf)(p,x)||S()}return x.className="jsoneditor-anchor",x.style.position="absolute",x.style.left=C.left-N.left+"px",x.style.top=C.top-N.top+"px",x.style.width=C.width-2+"px",x.style.height=C.height-2+"px",x.style.boxSizing="border-box",v.appendChild(x),T.mousedown=(0,c.addEventListener)(P,"mousedown",b),T.mousewheel=(0,c.addEventListener)(P,"mousewheel",b),$&&(O=null,x.onmouseover=function(){clearTimeout(O),O=null},x.onmouseout=function(){O=O||setTimeout(S,200)}),x.destroy=S,x}},5477:function(s){s.exports="data:application/javascript;base64,Im5vIHVzZSBzdHJpY3QiOwohKGZ1bmN0aW9uKHdpbmRvdykgewppZiAodHlwZW9mIHdpbmRvdy53aW5kb3cgIT0gInVuZGVmaW5lZCIgJiYgd2luZG93LmRvY3VtZW50KQogICAgcmV0dXJuOwppZiAod2luZG93LnJlcXVpcmUgJiYgd2luZG93LmRlZmluZSkKICAgIHJldHVybjsKCmlmICghd2luZG93LmNvbnNvbGUpIHsKICAgIHdpbmRvdy5jb25zb2xlID0gZnVuY3Rpb24oKSB7CiAgICAgICAgdmFyIG1zZ3MgPSBBcnJheS5wcm90b3R5cGUuc2xpY2UuY2FsbChhcmd1bWVudHMsIDApOwogICAgICAgIHBvc3RNZXNzYWdlKHt0eXBlOiAibG9nIiwgZGF0YTogbXNnc30pOwogICAgfTsKICAgIHdpbmRvdy5jb25zb2xlLmVycm9yID0KICAgIHdpbmRvdy5jb25zb2xlLndhcm4gPSAKICAgIHdpbmRvdy5jb25zb2xlLmxvZyA9CiAgICB3aW5kb3cuY29uc29sZS50cmFjZSA9IHdpbmRvdy5jb25zb2xlOwp9CndpbmRvdy53aW5kb3cgPSB3aW5kb3c7CndpbmRvdy5hY2UgPSB3aW5kb3c7Cgp3aW5kb3cub25lcnJvciA9IGZ1bmN0aW9uKG1lc3NhZ2UsIGZpbGUsIGxpbmUsIGNvbCwgZXJyKSB7CiAgICBwb3N0TWVzc2FnZSh7dHlwZTogImVycm9yIiwgZGF0YTogewogICAgICAgIG1lc3NhZ2U6IG1lc3NhZ2UsCiAgICAgICAgZGF0YTogZXJyICYmIGVyci5kYXRhLAogICAgICAgIGZpbGU6IGZpbGUsCiAgICAgICAgbGluZTogbGluZSwgCiAgICAgICAgY29sOiBjb2wsCiAgICAgICAgc3RhY2s6IGVyciAmJiBlcnIuc3RhY2sKICAgIH19KTsKfTsKCndpbmRvdy5ub3JtYWxpemVNb2R1bGUgPSBmdW5jdGlvbihwYXJlbnRJZCwgbW9kdWxlTmFtZSkgewogICAgLy8gbm9ybWFsaXplIHBsdWdpbiByZXF1aXJlcwogICAgaWYgKG1vZHVsZU5hbWUuaW5kZXhPZigiISIpICE9PSAtMSkgewogICAgICAgIHZhciBjaHVua3MgPSBtb2R1bGVOYW1lLnNwbGl0KCIhIik7CiAgICAgICAgcmV0dXJuIHdpbmRvdy5ub3JtYWxpemVNb2R1bGUocGFyZW50SWQsIGNodW5rc1swXSkgKyAiISIgKyB3aW5kb3cubm9ybWFsaXplTW9kdWxlKHBhcmVudElkLCBjaHVua3NbMV0pOwogICAgfQogICAgLy8gbm9ybWFsaXplIHJlbGF0aXZlIHJlcXVpcmVzCiAgICBpZiAobW9kdWxlTmFtZS5jaGFyQXQoMCkgPT0gIi4iKSB7CiAgICAgICAgdmFyIGJhc2UgPSBwYXJlbnRJZC5zcGxpdCgiLyIpLnNsaWNlKDAsIC0xKS5qb2luKCIvIik7CiAgICAgICAgbW9kdWxlTmFtZSA9IChiYXNlID8gYmFzZSArICIvIiA6
126ICIiKSArIG1vZHVsZU5hbWU7CiAgICAgICAgCiAgICAgICAgd2hpbGUgKG1vZHVsZU5hbWUuaW5kZXhPZigiLiIpICE9PSAtMSAmJiBwcmV2aW91cyAhPSBtb2R1bGVOYW1lKSB7CiAgICAgICAgICAgIHZhciBwcmV2aW91cyA9IG1vZHVsZU5hbWU7CiAgICAgICAgICAgIG1vZHVsZU5hbWUgPSBtb2R1bGVOYW1lLnJlcGxhY2UoL15cLlwvLywgIiIpLnJlcGxhY2UoL1wvXC5cLy8sICIvIikucmVwbGFjZSgvW15cL10rXC9cLlwuXC8vLCAiIik7CiAgICAgICAgfQogICAgfQogICAgCiAgICByZXR1cm4gbW9kdWxlTmFtZTsKfTsKCndpbmRvdy5yZXF1aXJlID0gZnVuY3Rpb24gcmVxdWlyZShwYXJlbnRJZCwgaWQpIHsKICAgIGlmICghaWQpIHsKICAgICAgICBpZCA9IHBhcmVudElkOwogICAgICAgIHBhcmVudElkID0gbnVsbDsKICAgIH0KICAgIGlmICghaWQuY2hhckF0KQogICAgICAgIHRocm93IG5ldyBFcnJvcigid29ya2VyLmpzIHJlcXVpcmUoKSBhY2NlcHRzIG9ubHkgKHBhcmVudElkLCBpZCkgYXMgYXJndW1lbnRzIik7CgogICAgaWQgPSB3aW5kb3cubm9ybWFsaXplTW9kdWxlKHBhcmVudElkLCBpZCk7CgogICAgdmFyIG1vZHVsZSA9IHdpbmRvdy5yZXF1aXJlLm1vZHVsZXNbaWRdOwogICAgaWYgKG1vZHVsZSkgewogICAgICAgIGlmICghbW9kdWxlLmluaXRpYWxpemVkKSB7CiAgICAgICAgICAgIG1vZHVsZS5pbml0aWFsaXplZCA9IHRydWU7CiAgICAgICAgICAgIG1vZHVsZS5leHBvcnRzID0gbW9kdWxlLmZhY3RvcnkoKS5leHBvcnRzOwogICAgICAgIH0KICAgICAgICByZXR1cm4gbW9kdWxlLmV4cG9ydHM7CiAgICB9CiAgIAogICAgaWYgKCF3aW5kb3cucmVxdWlyZS50bG5zKQogICAgICAgIHJldHVybiBjb25zb2xlLmxvZygidW5hYmxlIHRvIGxvYWQgIiArIGlkKTsKICAgIAogICAgdmFyIHBhdGggPSByZXNvbHZlTW9kdWxlSWQoaWQsIHdpbmRvdy5yZXF1aXJlLnRsbnMpOwogICAgaWYgKHBhdGguc2xpY2UoLTMpICE9ICIuanMiKSBwYXRoICs9ICIuanMiOwogICAgCiAgICB3aW5kb3cucmVxdWlyZS5pZCA9IGlkOwogICAgd2luZG93LnJlcXVpcmUubW9kdWxlc1tpZF0gPSB7fTsgLy8gcHJldmVudCBpbmZpbml0ZSBsb29wIG9uIGJyb2tlbiBtb2R1bGVzCiAgICBpbXBvcnRTY3JpcHRzKHBhdGgpOwogICAgcmV0dXJuIHdpbmRvdy5yZXF1aXJlKHBhcmVudElkLCBpZCk7Cn07CmZ1bmN0aW9uIHJlc29sdmVNb2R1bGVJZChpZCwgcGF0aHMpIHsKICAgIHZhciB0ZXN0UGF0aCA9IGlkLCB0YWlsID0gIiI7CiAgICB3aGlsZSAodGVzdFBhdGgpIHsKICAgICAgICB2Y
126XIgYWxpYXMgPSBwYXRoc1t0ZXN0UGF0aF07CiAgICAgICAgaWYgKHR5cGVvZiBhbGlhcyA9PSAic3RyaW5nIikgewogICAgICAgICAgICByZXR1cm4gYWxpYXMgKyB0YWlsOwogICAgICAgIH0gZWxzZSBpZiAoYWxpYXMpIHsKICAgICAgICAgICAgcmV0dXJuICBhbGlhcy5sb2NhdGlvbi5yZXBsYWNlKC9cLyokLywgIi8iKSArICh0YWlsIHx8IGFsaWFzLm1haW4gfHwgYWxpYXMubmFtZSk7CiAgICAgICAgfSBlbHNlIGlmIChhbGlhcyA9PT0gZmFsc2UpIHsKICAgICAgICAgICAgcmV0dXJuICIiOwogICAgICAgIH0KICAgICAgICB2YXIgaSA9IHRlc3RQYXRoLmxhc3RJbmRleE9mKCIvIik7CiAgICAgICAgaWYgKGkgPT09IC0xKSBicmVhazsKICAgICAgICB0YWlsID0gdGVzdFBhdGguc3Vic3RyKGkpICsgdGFpbDsKICAgICAgICB0ZXN0UGF0aCA9IHRlc3RQYXRoLnNsaWNlKDAsIGkpOwogICAgfQogICAgcmV0dXJuIGlkOwp9CndpbmRvdy5yZXF1aXJlLm1vZHVsZXMgPSB7fTsKd2luZG93LnJlcXVpcmUudGxucyA9IHt9OwoKd2luZG93LmRlZmluZSA9IGZ1bmN0aW9uKGlkLCBkZXBzLCBmYWN0b3J5KSB7CiAgICBpZiAoYXJndW1lbnRzLmxlbmd0aCA9PSAyKSB7CiAgICAgICAgZmFjdG9yeSA9IGRlcHM7CiAgICAgICAgaWYgKHR5cGVvZiBpZCAhPSAic3RyaW5nIikgewogICAgICAgICAgICBkZXBzID0gaWQ7CiAgICAgICAgICAgIGlkID0gd2luZG93LnJlcXVpcmUuaWQ7CiAgICAgICAgfQogICAgfSBlbHNlIGlmIChhcmd1bWVudHMubGVuZ3RoID09IDEpIHsKICAgICAgICBmYWN0b3J5ID0gaWQ7CiAgICAgICAgZGVwcyA9IFtdOwogICAgICAgIGlkID0gd2luZG93LnJlcXVpcmUuaWQ7CiAgICB9CiAgICAKICAgIGlmICh0eXBlb2YgZmFjdG9yeSAhPSAiZnVuY3Rpb24iKSB7CiAgICAgICAgd2luZG93LnJlcXVpcmUubW9kdWxlc1tpZF0gPSB7CiAgICAgICAgICAgIGV4cG9ydHM6IGZhY3RvcnksCiAgICAgICAgICAgIGluaXRpYWxpemVkOiB0cnVlCiAgICAgICAgfTsKICAgICAgICByZXR1cm47CiAgICB9CgogICAgaWYgKCFkZXBzLmxlbmd0aCkKICAgICAgICAvLyBJZiB0aGVyZSBpcyBubyBkZXBlbmRlbmNpZXMsIHdlIGluamVjdCAicmVxdWlyZSIsICJleHBvcnRzIiBhbmQKICAgICAgICAvLyAibW9kdWxlIiBhcyBkZXBlbmRlbmNpZXMsIHRvIHByb3ZpZGUgQ29tbW9uSlMgY29tcGF0aWJpbGl0eS4KICAgICAgICBkZXBzID0gWyJyZXF1aXJlIiwgImV4cG9ydHMiLCAibW9kdWxlIl07CgogICAgdmFyIHJlcSA9IGZ1bmN0aW9uKGNoaWxkSWQpIHsKICAgICAgICByZXR1cm4gd2luZG93LnJlcXVpcmUoaWQsIGNoaWxkSWQpOwogICAgfTsKCiAgICB3aW5kb3cucmVxdWlyZS5tb2R1bGVzW2lkXSA9IHsKICAgICAgICBleHBvcnRzOiB7fSwKICAgICAgICBmYWN0b3J5OiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgdmFyIG1vZHVsZSA9IHRoaXM7CiAgICAgICAgICAgIHZhciByZXR1cm5FeHBvcnRzID0gZmFjdG9yeS5hcHBseSh0aGlzLCBkZXBzLnNsaWNlKDAsIGZhY3RvcnkubGVuZ3RoKS5tYXAoZnVuY3Rpb24oZGVwKSB7CiAgICAgICAgICAgICAgICBzd2l0Y2ggKGRlcCkgewogICAgICAgICAgICAgICAgICAgIC8vIEJlY2F1c2UgInJlcXVpcmUiLCAiZXhwb3J0cyIgYW5kICJtb2R1bGUiIGFyZW4ndCBhY3R1YWwKICAgICAgICAgICAgICAgICAgICAvLyBkZXBlbmRlbmNpZXMsIHdlIG11c3QgaGFuZGxlIHRoZW0gc2VwZXJhdGVseS4KICAgICAgICAgICAgICAgICAgICBjYXNlICJyZXF1aXJlIjogcmV0dXJuIHJlcTsKICAgICAgICAgICAgICAgICAgICBjYXNlICJleHBvcnRzIjogcmV0dXJuIG1vZHVsZS5leHBvcnRzOwogICAgICAgICAgICAgICAgICAgIGNhc2UgIm1vZHVsZSI6ICByZXR1cm4gbW9kdWxlOwogICAgICAgICAgICAgICAgICAgIC8vIEJ1dCBmb3IgYWxsIG90aGVyIGRlcGVuZGVuY2llcywgd2UgY2FuIGp1c3QgZ28gYWhlYWQgYW5kCiAgICAgICAgICAgICAgICAgICAgLy8gcmVxdWlyZSB0aGVtLgogICAgICAgICAgICAgICAgICAgIGRlZmF1bHQ6ICAgICAgICByZXR1cm4gcmVxKGRlcCk7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pKTsKICAgICAgICAgICAgaWYgKHJldHVybkV4cG9ydHMpCiAgICAgICAgICAgICAgICBtb2R1bGUuZXhwb3J0cyA9IHJldHVybkV4cG9ydHM7CiAgICAgICAgICAgIHJldHVybiBtb2R1bGU7CiAgICAgICAgfQogICAgfTsKfTsKd2luZG93LmRlZmluZS5hbWQgPSB7fTsKd2luZG93LnJlcXVpcmUudGxucyA9IHt9Owp3aW5kb3cuaW5pdEJhc2VVcmxzICA9IGZ1bmN0aW9uIGluaXRCYXNlVXJscyh0b3BMZXZlbE5hbWVzcGFjZXMpIHsKICAgIGZvciAodmFyIGkgaW4gdG9wTGV2ZWxOYW1lc3BhY2VzKQogICAgICAgIHRoaXMucmVxdWlyZS50bG5zW2ldID0gdG9wTGV2ZWxOYW1lc3BhY2VzW2ldOwp9OwoKd2luZG93LmluaXRTZW5kZXIgPSBmdW5jdGlvbiBpbml0U2VuZGVyKCkgewoKICAgIHZhciBFdmVudEVtaXR0ZXIgPSB3aW5kb3cucmVxdWlyZSgiYWNlL2xpYi9ldmVudF9lbWl0dGVyIikuRXZlbnRFbWl0dGVyOwogICAgdmFyIG9vcCA9IHdpbmRvdy5yZXF1aXJlKCJhY2UvbGliL29vcCIpOwogICAgCiAgICB2YXIgU2VuZGVyID0gZnVuY3Rpb24oKSB7fTsKICAgIAogICAgKGZ1bmN0aW9uKCkgewogICAgICAgIAogICAgICAgIG9vcC5pbXBsZW1lbnQodGhpcywgRXZlbnRFbWl0dGVyKTsKICAgICAgICAgICAgICAgIAogICAgICAgIHRoaXMuY2FsbGJhY2sgPSBmdW5jdGlvbihkYXRhLCBjYWxsYmFja0lkKSB7CiAgICAgICAgICAgIHBvc3RNZXNzYWdlKHsKICAgICAgICAgICAgICAgIHR5cGU6ICJjYWxsIiwKICAgICAgICAgICAgICAgIGlkOiBjYWxsYmFja0lkLAogICAgICAgICAgICAgICAgZGF0YTogZGF0YQogICAgICAgICAgICB9KTsKICAgICAgICB9OwogICAgCiAgICAgICAgdGhpcy5lbWl0ID0gZnVuY3Rpb24obmFtZSwgZGF0YSkgewogICAgICAgICAgICBwb3N0TWVzc2FnZSh7CiAgICAgICAgICAgICAgICB0eXBlOiAiZXZlbnQiLAogICAgICAgICAgICAgICAgbmFtZTogbmFtZSwKICAgICAgICAgICAgICAgIGRhdGE6IGRhdGEKICAgICAgICAgICAgfSk7CiAgICAgICAgfTsKICAgICAgICAKICAgIH0pLmNhbGwoU2VuZGVyLnByb3RvdHlwZSk7CiAgICAKICAgIHJldHVybi
126BuZXcgU2VuZGVyKCk7Cn07Cgp2YXIgbWFpbiA9IHdpbmRvdy5tYWluID0gbnVsbDsKdmFyIHNlbmRlciA9IHdpbmRvdy5zZW5kZXIgPSBudWxsOwoKd2luZG93Lm9ubWVzc2FnZSA9IGZ1bmN0aW9uKGUpIHsKICAgIHZhciBtc2cgPSBlLmRhdGE7CiAgICBpZiAobXNnLmV2ZW50ICYmIHNlbmRlcikgewogICAgICAgIHNlbmRlci5fc2lnbmFsKG1zZy5ldmVudCwgbXNnLmRhdGEpOwogICAgfQogICAgZWxzZSBpZiAobXNnLmNvbW1hbmQpIHsKICAgICAgICBpZiAobWFpblttc2cuY29tbWFuZF0pCiAgICAgICAgICAgIG1haW5bbXNnLmNvbW1hbmRdLmFwcGx5KG1haW4sIG1zZy5hcmdzKTsKICAgICAgICBlbHNlIGlmICh3aW5kb3dbbXNnLmNvbW1hbmRdKQogICAgICAgICAgICB3aW5kb3dbbXNnLmNvbW1hbmRdLmFwcGx5KHdpbmRvdywgbXNnLmFyZ3MpOwogICAgICAgIGVsc2UKICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKCJVbmtub3duIGNvbW1hbmQ6IiArIG1zZy5jb21tYW5kKTsKICAgIH0KICAgIGVsc2UgaWYgKG1zZy5pbml0KSB7CiAgICAgICAgd2luZG93LmluaXRCYXNlVXJscyhtc2cudGxucyk7CiAgICAgICAgc2VuZGVyID0gd2luZG93LnNlbmRlciA9IHdpbmRvdy5pbml0U2VuZGVyKCk7CiAgICAgICAgdmFyIGNsYXp6ID0gdGhpcy5yZXF1aXJlKG1zZy5tb2R1bGUpW21zZy5jbGFzc25hbWVdOwogICAgICAgIG1haW4gPSB3aW5kb3cubWFpbiA9IG5ldyBjbGF6eihzZW5kZXIpOwogICAgfQp9Owp9KSh0aGlzKTsKCmFjZS5kZWZpbmUoImFjZS9saWIvb29wIixbXSwgZnVuY3Rpb24ocmVxdWlyZSwgZXhwb3J0cywgbW9kdWxlKXsidXNlIHN0cmljdCI7CmV4cG9ydHMuaW5oZXJpdHMgPSBmdW5jdGlvbiAoY3Rvciwgc3VwZXJDdG9yKSB7CiAgICBjdG9yLnN1cGVyXyA9IHN1cGVyQ3RvcjsKICAgIGN0b3IucHJvdG90eXBlID0gT2JqZWN0LmNyZWF0ZShzdXBlckN0b3IucHJvdG90eXBlLCB7CiAgICAgICAgY29uc3RydWN0b3I6IHsKICAgICAgICAgICAgdmFsdWU6IGN0b3IsCiAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICB3cml0YWJsZTogdHJ1ZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfQogICAgfSk7Cn07CmV4cG9ydHMubWl4aW4gPSBmdW5jdGlvbiAob2JqLCBtaXhpbikgewogICAgZm9yICh2YXIga2V5IGluIG1peGluKSB7CiAgICAgICAgb2JqW2tleV0gPSBtaXhpbltrZXldOwogICAgfQogICAgcmV0dXJuIG9iajsKfTsKZXhwb3J0cy5pbXBsZW1lbnQgPSBmdW5jdGlvbiAocHJvdG8sIG1peGluKSB7CiAgICBleHBvcnRzLm1peGluKHByb3RvLCBtaXhpbik7Cn07Cgp9KTsKCmFjZS5kZWZpbmUoImFjZS9hcHBseV9kZWx0YSIsW10sIGZ1bmN0aW9uKHJlcXVpcmUsIGV4cG9ydHMsIG1vZHVsZSl7InVzZSBzdHJpY3QiOwpmdW5jdGlvbiB0aHJvd0RlbHRhRXJyb3IoZGVsdGEsIGVycm9yVGV4dCkgewogICAgY29uc29sZS5sb2coIkludmFsaWQgRGVsdGE6IiwgZGVsdGEpOwogICAgdGhyb3cgIkludmFsaWQgRGVsdGE6ICIgKyBlcnJvclRleHQ7Cn0KZnVuY3Rpb24gcG9zaXRpb25JbkRvY3VtZW50KGRvY0xpbmVzLCBwb3NpdGlvbikgewogICAgcmV0dXJuIHBvc2l0aW9uLnJvdyA+PSAwICYmIHBvc2l0aW9uLnJvdyA8IGRvY0xpbmVzLmxlbmd0aCAmJgogICAgICAgIHBvc2l0aW9uLmNvbHVtbiA+PSAwICYmIHBvc2l0aW9uLmNvbHVtbiA8PSBkb2NMaW5lc1twb3NpdGlvbi5yb3ddLmxlbmd0aDsKfQpmdW5jdGlvbiB2YWxpZGF0ZURlbHRhKGRvY0xpbmVzLCBkZWx0YSkgewogICAgaWYgKGRlbHRhLmFjdGlvbiAhPSAiaW5zZXJ0IiAmJiBkZWx0YS5hY3Rpb24gIT0gInJlbW92ZSIpCiAgICAgICAgdGhyb3dEZWx0YUVycm9yKGRlbHRhLCAiZGVsdGEuYWN0aW9uIG11c3QgYmUgJ2luc2VydCcgb3IgJ3JlbW92ZSciKTsKICAgIGlmICghKGRlbHRhLmxpbmVzIGluc3RhbmNlb2YgQXJyYXkpKQogICAgICAgIHRocm93RGVsdGFFcnJvcihkZWx0YSwgImRlbHRhLmxpbmVzIG11c3QgYmUgYW4gQXJyYXkiKTsKICAgIGlmICghZGVsdGEuc3RhcnQgfHwgIWRlbHRhLmVuZCkKICAgICAgICB0aHJvd0RlbHRhRXJyb3IoZGVsdGEsICJkZWx0YS5zdGFydC9lbmQgbXVzdCBiZSBhbiBwcmVzZW50Iik7CiAgICB2YXIgc3RhcnQgPSBkZWx0YS5zdGFydDsKICAgIGlmICghcG9zaXRpb25JbkRvY3VtZW50KGRvY0xpbmVzLCBkZWx0YS5zdGFydCkpCiAgICAgICAgdGhyb3dEZWx0YUVycm9yKGRlbHRhLCAiZGVsdGEuc3RhcnQgbXVzdCBiZSBjb250YWluZWQgaW4gZG9jdW1lbnQiKTsKICAgIHZhciBlbmQgPSBkZWx0YS5lbmQ7CiAgICBpZiAoZGVsdGEuYWN0aW9uID09ICJyZW1vdmUiICYmICFwb3NpdGlvbkluRG9jdW1lbnQoZG9jTGluZXMsIGVuZCkpCiAgICAgICAgdGhyb3dEZWx0YUVycm9yKGRlbHRhLCAiZGVsdGEuZW5kIG11c3QgY29udGFpbmVkIGluIGRvY3VtZW50IGZvciAncmVtb3ZlJyBhY3Rpb25zIik7CiAgICB2YXIgbnVtUmFuZ2VSb3dzID0gZW5kLnJvdyAtIHN0YXJ0LnJvdzsKICAgIHZhciBudW1SYW5nZUxhc3RMaW5lQ2hhcnMgPSAoZW5kLmNvbHVtbiAtIChudW1SYW5nZVJvd3MgPT0gMCA/IHN0YXJ0LmNvbHVtbiA6IDApKTsKICAgIGlmIChudW1SYW5nZVJvd3MgIT0gZGVsdGEubGluZXMubGVuZ3RoIC0gMSB8fCBkZWx0YS5saW5lc1tudW1SYW5nZVJvd3NdLmxlbmd0aCAhPSBudW1SYW5nZUxhc3RMaW5lQ2hhcnMpCiAgICAgICAgdGhyb3dEZWx0YUVycm9yKGRlbHRhLCAiZGVsdGEucmFuZ2UgbXVzdCBtYXRjaCBkZWx0YSBsaW5lcyIpOwp9CmV4cG9ydHMuYXBwbHlEZWx0YSA9IGZ1bmN0aW9uIChkb2NMaW5lcywgZGVsdGEsIGRvTm90VmFsaWRhdGUpIHsKICAgIHZhciByb3cgPSBkZWx0YS5zdGFydC5yb3c7CiAgICB2YXIgc3RhcnRDb2x1bW4gPSBkZWx0YS5zdGFydC5jb2x1bW47CiAgICB2YXIgbGluZSA9IGRvY0xpbmVzW3Jvd10gfHwgIiI7CiAgICBzd2l0Y2ggKGRlbHRhLmFjdGlvbikgewogICAgICAgIGNhc2UgImluc2VydCI6CiAgICAgICAgICAgIHZhciBsaW5lcyA9IGRlbHRhLmxpbmVzOwogICAgICAgICAgICBpZiAobGluZXMubGVuZ3RoID09PSAxKSB7CiAgICAgICAgICAgICAgICBkb2
126NMaW5lc1tyb3ddID0gbGluZS5zdWJzdHJpbmcoMCwgc3RhcnRDb2x1bW4pICsgZGVsdGEubGluZXNbMF0gKyBsaW5lLnN1YnN0cmluZyhzdGFydENvbHVtbik7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgZWxzZSB7CiAgICAgICAgICAgICAgICB2YXIgYXJncyA9IFtyb3csIDFdLmNvbmNhdChkZWx0YS5saW5lcyk7CiAgICAgICAgICAgICAgICBkb2NMaW5lcy5zcGxpY2UuYXBwbHkoZG9jTGluZXMsIGFyZ3MpOwogICAgICAgICAgICAgICAgZG9jTGluZXNbcm93XSA9IGxpbmUuc3Vic3RyaW5nKDAsIHN0YXJ0Q29sdW1uKSArIGRvY0xpbmVzW3Jvd107CiAgICAgICAgICAgICAgICBkb2NMaW5lc1tyb3cgKyBkZWx0YS5saW5lcy5sZW5ndGggLSAxXSArPSBsaW5lLnN1YnN0cmluZyhzdGFydENvbHVtbik7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgY2FzZSAicmVtb3ZlIjoKICAgICAgICAgICAgdmFyIGVuZENvbHVtbiA9IGRlbHRhLmVuZC5jb2x1bW47CiAgICAgICAgICAgIHZhciBlbmRSb3cgPSBkZWx0YS5lbmQucm93OwogICAgICAgICAgICBpZiAocm93ID09PSBlbmRSb3cpIHsKICAgICAgICAgICAgICAgIGRvY0xpbmVzW3Jvd10gPSBsaW5lLnN1YnN0cmluZygwLCBzdGFydENvbHVtbikgKyBsaW5lLnN1YnN0cmluZyhlbmRDb2x1bW4pOwogICAgICAgICAgICB9CiAgICAgICAgICAgIGVsc2UgewogICAgICAgICAgICAgICAgZG9jTGluZXMuc3BsaWNlKHJvdywgZW5kUm93IC0gcm93ICsgMSwgbGluZS5zdWJzdHJpbmcoMCwgc3RhcnRDb2x1bW4pICsgZG9jTGluZXNbZW5kUm93XS5zdWJzdHJpbmcoZW5kQ29sdW1uKSk7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgYnJlYWs7CiAgICB9Cn07Cgp9KTsKCmFjZS5kZWZpbmUoImFjZS9saWIvZXZlbnRfZW1pdHRlciIsW10sIGZ1bmN0aW9uKHJlcXVpcmUsIGV4cG9ydHMsIG1vZHVsZSl7InVzZSBzdHJpY3QiOwp2YXIgRXZlbnRFbWl0dGVyID0ge307CnZhciBzdG9wUHJvcGFnYXRpb24gPSBmdW5jdGlvbiAoKSB7IHRoaXMucHJvcGFnYXRpb25TdG9wcGVkID0gdHJ1ZTsgfTsKdmFyIHByZXZlbnREZWZhdWx0ID0gZnVuY3Rpb24gKCkgeyB0aGlzLmRlZmF1bHRQcmV2ZW50ZWQgPSB0cnVlOyB9OwpFdmVudEVtaXR0ZXIuX2VtaXQgPQogICAgRXZlbnRFbWl0dGVyLl9kaXNwYXRjaEV2ZW50ID0gZnVuY3Rpb24gKGV2ZW50TmFtZSwgZSkgewogICAgICAgIHRoaXMuX2V2ZW50UmVnaXN0cnkgfHwgKHRoaXMuX2V2ZW50UmVnaXN0cnkgPSB7fSk7CiAgICAgICAgdGhpcy5fZGVmYXVsdEhhbmRsZXJzIHx8ICh0aGlzLl9kZWZhdWx0SGFuZGxlcnMgPSB7fSk7CiAgICAgICAgdmFyIGxpc3RlbmVycyA9IHRoaXMuX2V2ZW50UmVnaXN0cnlbZXZlbnROYW1lXSB8fCBbXTsKICAgICAgICB2Y
126XIgZGVmYXVsdEhhbmRsZXIgPSB0aGlzLl9kZWZhdWx0SGFuZGxlcnNbZXZlbnROYW1lXTsKICAgICAgICBpZiAoIWxpc3RlbmVycy5sZW5ndGggJiYgIWRlZmF1bHRIYW5kbGVyKQogICAgICAgICAgICByZXR1cm47CiAgICAgICAgaWYgKHR5cGVvZiBlICE9ICJvYmplY3QiIHx8ICFlKQogICAgICAgICAgICBlID0ge307CiAgICAgICAgaWYgKCFlLnR5cGUpCiAgICAgICAgICAgIGUudHlwZSA9IGV2ZW50TmFtZTsKICAgICAgICBpZiAoIWUuc3RvcFByb3BhZ2F0aW9uKQogICAgICAgICAgICBlLnN0b3BQcm9wYWdhdGlvbiA9IHN0b3BQcm9wYWdhdGlvbjsKICAgICAgICBpZiAoIWUucHJldmVudERlZmF1bHQpCiAgICAgICAgICAgIGUucHJldmVudERlZmF1bHQgPSBwcmV2ZW50RGVmYXVsdDsKICAgICAgICBsaXN0ZW5lcnMgPSBsaXN0ZW5lcnMuc2xpY2UoKTsKICAgICAgICBmb3IgKHZhciBpID0gMDsgaSA8IGxpc3RlbmVycy5sZW5ndGg7IGkrKykgewogICAgICAgICAgICBsaXN0ZW5lcnNbaV0oZSwgdGhpcyk7CiAgICAgICAgICAgIGlmIChlLnByb3BhZ2F0aW9uU3RvcHBlZCkKICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgIH0KICAgICAgICBpZiAoZGVmYXVsdEhhbmRsZXIgJiYgIWUuZGVmYXVsdFByZXZlbnRlZCkKICAgICAgICAgICAgcmV0dXJuIGRlZmF1bHRIYW5kbGVyKGUsIHRoaXMpOwogICAgfTsKRXZlbnRFbWl0dGVyLl9zaWduYWwgPSBmdW5jdGlvbiAoZXZlbnROYW1lLCBlKSB7CiAgICB2YXIgbGlzdGVuZXJzID0gKHRoaXMuX2V2ZW50UmVnaXN0cnkgfHwge30pW2V2ZW50TmFtZV07CiAgICBpZiAoIWxpc3RlbmVycykKICAgICAgICByZXR1cm47CiAgICBsaXN0ZW5lcnMgPSBsaXN0ZW5lcnMuc2xpY2UoKTsKICAgIGZvciAodmFyIGkgPSAwOyBpIDwgbGlzdGVuZXJzLmxlbmd0aDsgaSsrKQogICAgICAgIGxpc3RlbmVyc1tpXShlLCB0aGlzKTsKfTsKRXZlbnRFbWl0dGVyLm9uY2UgPSBmdW5jdGlvbiAoZXZlbnROYW1lLCBjYWxsYmFjaykgewogICAgdmFyIF9zZWxmID0gdGhpczsKICAgIHRoaXMub24oZXZlbnROYW1lLCBmdW5jdGlvbiBuZXdDYWxsYmFjaygpIHsKICAgICAgICBfc2VsZi5vZmYoZXZlbnROYW1lLCBuZXdDYWxsYmFjayk7CiAgICAgICAgY2FsbGJhY2suYXBwbHkobnVsbCwgYXJndW1lbnRzKTsKICAgIH0pOwogICAgaWYgKCFjYWxsYmFjaykgewogICAgICAgIHJldHVybiBuZXcgUHJvbWlzZS
126hmdW5jdGlvbiAocmVzb2x2ZSkgewogICAgICAgICAgICBjYWxsYmFjayA9IHJlc29sdmU7CiAgICAgICAgfSk7CiAgICB9Cn07CkV2ZW50RW1pdHRlci5zZXREZWZhdWx0SGFuZGxlciA9IGZ1bmN0aW9uIChldmVudE5hbWUsIGNhbGxiYWNrKSB7CiAgICB2YXIgaGFuZGxlcnMgPSB0aGlzLl9kZWZhdWx0SGFuZGxlcnM7CiAgICBpZiAoIWhhbmRsZXJzKQogICAgICAgIGhhbmRsZXJzID0gdGhpcy5fZGVmYXVsdEhhbmRsZXJzID0geyBfZGlzYWJsZWRfOiB7fSB9OwogICAgaWYgKGhhbmRsZXJzW2V2ZW50TmFtZV0pIHsKICAgICAgICB2YXIgb2xkID0gaGFuZGxlcnNbZXZlbnROYW1lXTsKICAgICAgICB2YXIgZGlzYWJsZWQgPSBoYW5kbGVycy5fZGlzYWJsZWRfW2V2ZW50TmFtZV07CiAgICAgICAgaWYgKCFkaXNhYmxlZCkKICAgICAgICAgICAgaGFuZGxlcnMuX2Rpc2FibGVkX1tldmVudE5hbWVdID0gZGlzYWJsZWQgPSBbXTsKICAgICAgICBkaXNhYmxlZC5wdXNoKG9sZCk7CiAgICAgICAgdmFyIGkgPSBkaXNhYmxlZC5pbmRleE9mKGNhbGxiYWNrKTsKICAgICAgICBpZiAoaSAhPSAtMSkKICAgICAgICAgICAgZGlzYWJsZWQuc3BsaWNlKGksIDEpOwogICAgfQogICAgaGFuZGxlcnNbZXZlbnROYW1lXSA9IGNhbGxiYWNrOwp9OwpFdmVudEVtaXR0ZXIucmVtb3ZlRGVmYXVsdEhhbmRsZXIgPSBmdW5jdGlvbiAoZXZlbnROYW1lLCBjYWxsYmFjaykgewogICAgdmFyIGhhbmRsZXJzID0gdGhpcy5fZGVmYXVsdEhhbmRsZXJzOwogICAgaWYgKCFoYW5kbGVycykKICAgICAgICByZXR1cm47CiAgICB2YXIgZGlzYWJsZWQgPSBoYW5kbGVycy5fZGlzYWJsZWRfW2V2ZW50TmFtZV07CiAgICBpZiAoaGFuZGxlcnNbZXZlbnROYW1lXSA9PSBjYWxsYmFjaykgewogICAgICAgIGlmIChkaXNhYmxlZCkKICAgICAgICAgICAgdGhpcy5zZXREZWZhdWx0SGFuZGxlcihldmVudE5hbWUsIGRpc2FibGVkLnBvcCgpKTsKICAgIH0KICAgIGVsc2UgaWYgKGRpc2FibGVkKSB7CiAgICAgICAgdmFyIGkgPSBkaXNhYmxlZC5pbmRleE9mKGNhbGxiYWNrKTsKICAgICAgICBpZiAoaSAhPSAtMSkKICAgICAgICAgICAgZGlzYWJsZWQuc3BsaWNlKGksIDEpOwogICAgfQp9OwpFdmVudEVtaXR0ZXIub24gPQogICAgRXZlbnRFbWl0dGVyLmFkZEV2ZW50TGlzdGVuZXIgPSBmdW5jdGlvbiAoZXZlbnROYW1lLCBjYWxsYmFjaywgY2FwdHVyaW5nKSB7CiAgICAgICAgdGhpcy5fZXZlbnRSZWdpc3RyeSA9IHRoaXMuX2V2ZW50UmVnaXN0cnkgfHwge307CiAgICAgICAgdmFyIGxpc3RlbmVycyA9IHRoaXMuX2V2ZW50UmVnaXN0cnlbZXZlbnROYW1lXTsKICAgICAgICBpZiAoIWxpc3RlbmVycykKICAgICAgICAgICAgbGlzdGVuZXJzID0gdGhpcy5fZXZlbnRSZWdpc3RyeVtldmVudE5hbWVdID0gW107CiAgICAgICAgaWYgKGxpc3RlbmVycy5pbmRleE9mKGNhbGxiYWNrKSA9PSAtMSkKICAgICAgICAgICAgbGlzdGVuZXJzW2NhcHR1cmluZyA/ICJ1bnNoaWZ0IiA6ICJwdXNoIl0oY2FsbGJhY2spOwogICAgICAgIHJldHVybiBjYWxsYmFjazsKICAgIH07CkV2ZW50RW1pdHRlci5vZmYgPQogICAgRXZlbnRFbWl0dGVyLnJlbW92ZUxpc3RlbmVyID0KICAgICAgICBFdmVudEVtaXR0ZXIucmVtb3ZlRXZlbnRMaXN0ZW5lciA9IGZ1bmN0aW9uIChldmVudE5hbWUsIGNhbGxiYWNrKSB7CiAgICAgICAgICAgIHRoaXMuX2V2ZW50UmVnaXN0cnkgPSB0aGlzLl9ldmVudFJlZ2lzdHJ5IHx8IHt9OwogICAgICAgICAgICB2Y
126XIgbGlzdGVuZXJzID0gdGhpcy5fZXZlbnRSZWdpc3RyeVtldmVudE5hbWVdOwogICAgICAgICAgICBpZiAoIWxpc3RlbmVycykKICAgICAgICAgICAgICAgIHJldHVybjsKICAgICAgICAgICAgdmFyIGluZGV4ID0gbGlzdGVuZXJzLmluZGV4T2YoY2FsbGJhY2spOwogICAgICAgICAgICBpZiAoaW5kZXggIT09IC0xKQogICAgICAgICAgICAgICAgbGlzdGVuZXJzLnNwbGljZShpbmRleCwgMSk7CiAgICAgICAgfTsKRXZlbnRFbWl0dGVyLnJlbW92ZUFsbExpc3RlbmVycyA9IGZ1bmN0aW9uIChldmVudE5hbWUpIHsKICAgIGlmICghZXZlbnROYW1lKQogICAgICAgIHRoaXMuX2V2ZW50UmVnaXN0cnkgPSB0aGlzLl9kZWZhdWx0SGFuZGxlcnMgPSB1bmRlZmluZWQ7CiAgICBpZiAodGhpcy5fZXZlbnRSZWdpc3RyeSkKICAgICAgICB0aGlzLl9ldmVudFJlZ2lzdHJ5W2V2ZW50TmFtZV0gPSB1bmRlZmluZWQ7CiAgICBpZiAodGhpcy5fZGVmYXVsdEhhbmRsZXJzKQogICAgICAgIHRoaXMuX2RlZmF1bHRIYW5kbGVyc1tldmVudE5hbWVdID0gdW5kZWZpbmVkOwp9OwpleHBvcnRzLkV2ZW50RW1pdHRlciA9IEV2ZW50RW1pdHRlcjsKCn0pOwoKYWNlLmRlZmluZSgiYWNlL3JhbmdlIixbXSwgZnVuY3Rpb24ocmVxdWlyZSwgZXhwb3J0cywgbW9kdWxlKXsidXNlIHN0cmljdCI7CnZhciBSYW5nZSA9IC8qKiBAY2xhc3MgKi8gKGZ1bmN0aW9uICgpIHsKICAgIGZ1bmN0aW9uIFJhbmdlKHN0YXJ0Um93LCBzdGFydENvbHVtbiwgZW5kUm93LCBlbmRDb2x1bW4pIHsKICAgICAgICB0aGlzLnN0YXJ0ID0gewogICAgICAgICAgICByb3c6IHN0YXJ0Um93LAogICAgICAgICAgICBjb2x1bW46IHN0YXJ0Q29sdW1uCiAgICAgICAgfTsKICAgICAgICB0aGlzLmVuZCA9IHsKICAgICAgICAgICAgcm93OiBlbmRSb3csCiAgICAgICAgICAgIGNvbHVtbjogZW5kQ29sdW1uCiAgICAgICAgfTsKICAgIH0KICAgIFJhbmdlLnByb3RvdHlwZS5pc0VxdWFsID0gZnVuY3Rpb24gKHJhbmdlKSB7CiAgICAgICAgcmV0dXJuIHRoaXMuc3RhcnQucm93ID09PSByYW5nZS5zdGFydC5yb3cgJiYKICAgICAgICAgICAgdGhpcy5lbmQucm93ID09PSByYW5nZS5lbmQucm93ICYmCiAgICAgICAgICAgIHRoaXMuc3RhcnQuY29sdW1uID09PSByYW5nZS5zdGFydC5jb2x1bW4gJiYKICAgICAgICAgICAgdGhpcy5lbmQuY29sdW1uID09PSByYW5nZS5lbmQuY29sdW1uOwogICAgfTsKICAgIFJhbmdlLnByb3RvdHlwZS50b1N0cmluZyA9IGZ1bmN0aW9uICgpIHsKICAgICAgICByZXR1cm4gKCJSYW5nZTogWyIgKyB0aGlzLnN0YXJ0LnJvdyArICIvIiArIHRoaXMuc3RhcnQuY29sdW1uICsKICAgICAgICAgICAgIl0gLT4gWyIgKyB0aGlzLmVuZC5yb3cgKyAiLyIgKyB0aGlzLmVuZC5jb2x1bW4gKyAiXSIpOwogICAgfTsKICAgIFJhbmdlLnByb3RvdHlwZS5jb250YWlucyA9IGZ1bmN0aW9uIChyb3csIGNvbHVtbikgewogICAgICAgIHJldHVybiB0aGlzLmNvbXBhcmUocm93LCBjb2x1bW4pID09IDA7CiAgICB9OwogICAgUmFuZ2UucHJvdG90eXBlLmNvbXBhcmVSYW5nZSA9IGZ1bmN0aW9uIChyYW5nZSkgewogICAgICAgIHZhciBjbXAsIGVuZCA9IHJhbmdlLmVuZCwgc3RhcnQgPSByYW5nZS5zdGFydDsKICAgICAgICBjbXAgPSB0aGlzLmNvbXBhcmUoZW5kLnJvdywgZW5kLmNvbHVtbik7CiAgICAgICAgaWYgKGNtcCA9PSAxKSB7CiAgICAgICAgICAgIGNtcCA9IHRoaXMuY29tcGFyZShzdGFydC5yb3csIHN0YXJ0LmNvbHVtbik7CiAgICAgICAgICAgIGlmIChjbXAgPT0gMSkgewogICAgICAgICAgICAgICAgcmV0dXJuIDI7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgZWxzZSBpZiAoY21wID09IDApIHsKICAgICAgICAgICAgICAgIHJldHVybiAxOwogICAgICAgICAgICB9CiAgICAgICAgICAgIGVsc2UgewogICAgICAgICAgICAgICAgcmV0dXJuIDA7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgZWxzZSBpZiAoY21wID09IC0xKSB7CiAgICAgICAgICAgIHJldHVybiAtMjsKICAgICAgICB9CiAgICAgICAgZWxzZSB7CiAgICAgICAgICAgIGNtcCA9IHRoaXMuY29tcGFyZShzdGFydC5yb3csIHN0YXJ0LmNvbHVtbik7CiAgICAgICAgICAgIGlmIChjbXAgPT0gLTEpIHsKICAgICAgICAgICAgICAgIHJldHVybiAtMTsKICAgICAgICAgICAgfQogICAgICAgICAgICBlbHNlIGlmIChjbXAgPT0gMSkgewogICAgICAgICAgICAgICAgcmV0dXJuIDQyOwogICAgICAgICAgICB9CiAgICAgICAgICAgIGVsc2UgewogICAgICAgICAgICAgICAgcmV0dXJuIDA7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICB9OwogICAgUmFuZ2UucHJvdG90eXBlLmNvbXBhcmVQb2ludCA9IGZ1bmN0aW9uIChwKSB7CiAgICAgICAgcmV0dXJuIHRoaXMuY29tcGFyZShwLnJvdywgcC5jb2x1bW4pOwogICAgfTsKICAgIFJhbmdlLnByb3RvdHlwZS5jb250YWluc1JhbmdlID0gZnVuY3Rpb24gKHJhbmdlKSB7CiAgICAgICAgcmV0dXJuIHRoaXMuY29tcGFyZVBvaW50KHJhbmdlLnN0YXJ0KSA9PSAwICYmIHRoaXMuY29tcGFyZVBvaW50KHJhbmdlLmVuZCkgPT0gMDsKICAgIH07CiAgICBSYW5nZS5wcm90b3R5cGUuaW50ZXJzZWN0cyA9IGZ1bmN0aW9uIChyYW5nZSkgewogICAgICAgIHZhciBjbXAgPSB0aGlzLmNvbXBhcmVSYW5nZShyYW5nZSk7CiAgICAgICAgcmV0dXJuIChjbXAgPT0gLTEgfHwgY21wID09IDAgfHwgY21wID09IDEpOwogICAgfTsKICAgIFJhbmdlLnByb3RvdHlwZS5pc0VuZCA9IGZ1bmN0aW9uIChyb3csIGNvbHVtbikgewogICAgICAgIHJldHVybiB0aGlzLmVuZC5yb3cgPT0gcm93ICYmIHRoaXMuZW5kLmNvbHVtbiA9PSBjb2x1bW47CiAgICB9OwogICAgUmFuZ2UucHJvdG90eXBlLmlzU3RhcnQgPSBmdW5jdGlvbiAocm93LCBjb2x1bW4pIHsKICAgICAgICByZXR1cm4gdGhpcy5zdGFydC5yb3cgPT0gcm93ICYmIHRoaXMuc3RhcnQuY29sdW1uID09IGNvbHVtbjsKICAgIH07CiAgICBSYW5nZS5wcm90b3R5cGUuc2V0U3RhcnQgPSBmdW5jdGlvbiAocm93LCBjb2x1bW4pIHsKICAgICAgICBpZiAodHlwZW9mIHJvdyA9PSAib2JqZWN0IikgewogICAgICAgICAgICB0aGlzLnN0YXJ0LmNvbHVtbiA9IHJvdy5jb2x1bW47CiAgICAgICAgICAgI
126HRoaXMuc3RhcnQucm93ID0gcm93LnJvdzsKICAgICAgICB9CiAgICAgICAgZWxzZSB7CiAgICAgICAgICAgIHRoaXMuc3RhcnQucm93ID0gcm93OwogICAgICAgICAgICB0aGlzLnN0YXJ0LmNvbHVtbiA9IGNvbHVtbjsKICAgICAgICB9CiAgICB9OwogICAgUmFuZ2UucHJvdG90eXBlLnNldEVuZCA9IGZ1bmN0aW9uIChyb3csIGNvbHVtbikgewogICAgICAgIGlmICh0eXBlb2Ygcm93ID09ICJvYmplY3QiKSB7CiAgICAgICAgICAgIHRoaXMuZW5kLmNvbHVtbiA9IHJvdy5jb2x1bW47CiAgICAgICAgICAgIHRoaXMuZW5kLnJvdyA9IHJvdy5yb3c7CiAgICAgICAgfQogICAgICAgIGVsc2UgewogICAgICAgICAgICB0aGlzLmVuZC5yb3cgPSByb3c7CiAgICAgICAgICAgIHRoaXMuZW5kLmNvbHVtbiA9IGNvbHVtbjsKICAgICAgICB9CiAgICB9OwogICAgUmFuZ2UucHJvdG90eXBlLmluc2lkZSA9IGZ1bmN0aW9uIChyb3csIGNvbHVtbikgewogICAgICAgIGlmICh0aGlzLmNvbXBhcmUocm93LCBjb2x1bW4pID09IDApIHsKICAgICAgICAgICAgaWYgKHRoaXMuaXNFbmQocm93LCBjb2x1bW4pIHx8IHRoaXMuaXNTdGFydChyb3csIGNvbHVtbikpIHsKICAgICAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICAgICAgfQogICAgICAgICAgICBlbHNlIHsKICAgICAgICAgICAgICAgIHJldHVybiB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHJldHVybiBmYWxzZTsKICAgIH07CiAgICBSYW5nZS5wcm90b3R5cGUuaW5zaWRlU3RhcnQgPSBmdW5jdGlvbiAocm93LCBjb2x1bW4pIHsKICAgICAgICBpZiAodGhpcy5jb21wYXJlKHJvdywgY29sdW1uKSA9PSAwKSB7CiAgICAgICAgICAgIGlmICh0aGlzLmlzRW5kKHJvdywgY29sdW1uKSkgewogICAgICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgICAgICB9CiAgICAgICAgICAgIGVsc2UgewogICAgICAgICAgICAgICAgcmV0dXJuIHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgfTsKICAgIFJhbmdlLnByb3RvdHlwZS5pbnNpZGVFbmQgPSBmdW5jdGlvbiAocm93LCBjb2x1bW4pIHsKICAgICAgICBpZiAodGhpcy5jb21wYXJlKHJvdywgY29sdW1uKSA9PSAwKSB7CiAgICAgICAgICAgIGlmICh0aGlzLmlzU3RhcnQocm93LCBjb2x1bW4pKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgZWxzZSB7CiAgICAgICAgICAgICAgICByZXR1cm4gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgICAgICByZXR1cm4gZmFsc2U7CiAgICB9OwogICAgUmFuZ2UucHJvdG90eXBlLmNvbXBhcmUgPSBmdW5jdGlvbiAocm93LCBjb2x1bW4pIHsKICAgICAgICBpZiAoIXRoaXMuaXNNdWx0aUxpbmUoKSkgewogICAgICAgICAgICBpZiAocm93ID09PSB0aGlzLnN0YXJ0LnJvdykgewogICAgICAgICAgICAgICAgcmV0dXJuIGNvbHVtbiA8IHRoaXMuc3RhcnQuY29sdW1uID8gLTEgOiAoY29sdW1uID4gdGhpcy5lbmQuY29sdW1uID8gMSA6IDApOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIGlmIChyb3cgPCB0aGlzLnN0YXJ0LnJvdykKICAgICAgICAgICAgcmV0dXJuIC0xOwogICAgICAgIGlmIChyb3cgPiB0aGlzLmVuZC5yb3cpCiAgICAgICAgICAgIHJldHVybiAxOwogICAgICAgIGlmICh0aGlzLnN0YXJ0LnJvdyA9PT0gcm93KQogICAgICAgICAgICByZXR1cm4gY29sdW1uID49IHRoaXMuc3RhcnQuY29sdW1uID8gMCA6IC0xOwogICAgICAgIGlmICh0aGlzLmVuZC5yb3cgPT09IHJvdykKICAgICAgICAgICAgcmV0dXJuIGNvbHVtbiA8PSB0aGlzLmVuZC5jb2x1bW4gPyAwIDogMTsKICAgICAgICByZXR1cm4gMDsKICAgIH07CiAgICBSYW5nZS5wcm90b3R5cGUuY29tcGFyZVN0YXJ0ID0gZnVuY3Rpb24gKHJvdywgY29sdW1uKSB7CiAgICAgICAgaWYgKHRoaXMuc3RhcnQucm93ID09IHJvdyAmJiB0aGlzLnN0YXJ0LmNvbHVtbiA9PSBjb2x1bW4pIHsKICAgICAgICAgICAgcmV0dXJuIC0xOwogICAgICAgIH0KICAgICAgICBlbHNlIHsKICAgICAgICAgICAgcmV0dXJuIHRoaXMuY29tcGFyZShyb3csIGNvbHVtbik7CiAgICAgICAgfQogICAgfTsKICAgIFJhbmdlLnByb3RvdHlwZS5jb21wYXJlRW5kID0gZnVuY3Rpb24gKHJvdywgY29sdW1uKSB7CiAgICAgICAgaWYgKHRoaXMuZW5kLnJvdyA9PSByb3cgJiYgdGhpcy5lbmQuY29sdW1uID09IGNvbHVtbikgewogICAgICAgICAgICByZXR1cm4gMTsKICAgICAgICB9CiAgICAgICAgZWxzZSB7CiAgICAgICAgICAgIHJldHVybiB0aGlzLmNvbXBhcmUocm93LCBjb2x1bW4pOwogICAgICAgIH0KICAgIH07CiAgICBSYW5nZS5wcm90b3R5cGUuY29tcGFyZUluc2lkZSA9IGZ1bmN0aW9uIChyb3csIGNvbHVtbikgewogICAgICAgIGlmICh0aGlzLmVuZC5yb3cgPT0gcm93ICYmIHRoaXMuZW5kLmNvbHVtbiA9PSBjb2x1bW4pIHsKICAgICAgICAgICAgcmV0dXJuIDE7CiAgICAgICAgfQogICAgICAgIGVsc2UgaWYgKHRoaXMuc3RhcnQucm93ID09IHJvdyAmJiB0aGlzLnN0YXJ0LmNvbHVtbiA9PSBjb2x1bW4pIHsKICAgICAgICAgICAgcmV0dXJuIC0xOwogICAgICAgIH0KICAgICAgICBlbHNlIHsKICAgICAgICAgICAgcmV0dXJuIHRoaXMuY29tcGFyZShyb3csIGNvbHVtbik7CiAgICAgICAgfQogICAgfTsKICAgIFJhbmdlLnByb3RvdHlwZS5jbGlwUm93cyA9IGZ1bmN0aW9uIChmaXJzdFJvdywgbGFzdFJvdykgewogICAgICAgIGlmICh0aGlzLmVuZC5yb3cgPiBsYXN0Um93KQogICAgICAgICAgICB2Y
126XIgZW5kID0geyByb3c6IGxhc3RSb3cgKyAxLCBjb2x1bW46IDAgfTsKICAgICAgICBlbHNlIGlmICh0aGlzLmVuZC5yb3cgPCBmaXJzdFJvdykKICAgICAgICAgICAgdmFyIGVuZCA9IHsgcm93OiBmaXJzdFJvdywgY29sdW1uOiAwIH07CiAgICAgICAgaWYgKHRoaXMuc3RhcnQucm93ID4gbGFzdFJvdykKICAgICAgICAgICAgdmFyIHN0YXJ0ID0geyByb3c6IGxhc3RSb3cgKyAxLCBjb2x1bW46IDAgfTsKICAgICAgICBlbHNlIGlmICh0aGlzLnN0YXJ0LnJvdyA8IGZpcnN0Um93KQogICAgICAgICAgICB2YXIgc3RhcnQgPSB7IHJvdzogZmlyc3RSb3csIGNvbHVtbjogMCB9OwogICAgICAgIHJldHVybiBSYW5nZS5mcm9tUG9pbnRzKHN0YXJ0IHx8IHRoaXMuc3RhcnQsIGVuZCB8fCB0aGlzLmVuZCk7CiAgICB9OwogICAgUmFuZ2UucHJvdG90eXBlLmV4dGVuZCA9IGZ1bmN0aW9uIChyb3csIGNvbHVtbikgewogICAgICAgIHZhciBjbXAgPSB0aGlzLmNvbXBhcmUocm93LCBjb2x1bW4pOwogICAgICAgIGlmIChjbXAgPT0gMCkKICAgICAgICAgICAgcmV0dXJuIHRoaXM7CiAgICAgICAgZWxzZSBpZiAoY21wID09IC0xKQogICAgICAgICAgICB2YXIgc3RhcnQgPSB7IHJvdzogcm93LCBjb2x1bW46IGNvbHVtbiB9OwogICAgICAgIGVsc2UKICAgICAgICAgICAgdmFyIGVuZCA9IHsgcm93OiByb3csIGNvbHVtbjogY29sdW1uIH07CiAgICAgICAgcmV0dXJuIFJhbmdlLmZyb21Qb2ludHMoc3RhcnQgfHwgdGhpcy5zdGFydCwgZW5kIHx8IHRoaXMuZW5kKTsKICAgIH07CiAgICBSYW5nZS5wcm90b3R5cGUuaXNFbXB0eSA9IGZ1bmN0aW9uICgpIHsKICAgICAgICByZXR1cm4gKHRoaXMuc3RhcnQucm93ID09PSB0aGlzLmVuZC5yb3cgJiYgdGhpcy5zdGFydC5jb2x1bW4gPT09IHRoaXMuZW5kLmNvbHVtbik7CiAgICB9OwogICAgUmFuZ2UucHJvdG90eXBlLmlzTXVsdGlMaW5lID0gZnVuY3Rpb24gKCkgewogICAgICAgIHJldHVybiAodGhpcy5zdGFydC5yb3cgIT09IHRoaXMuZW5kLnJvdyk7CiAgICB9OwogICAgUmFuZ2UucHJvdG90eXBlLmNsb25lID0gZnVuY3Rpb24gKCkgewogICAgICAgIHJldHVybiBSYW5nZS5mcm9tUG9pbnRzKHRoaXMuc3RhcnQsIHRoaXMuZW5kKTsKICAgIH07CiAgICBSYW5nZS5wcm90b3R5cGUuY29sbGFwc2VSb3dzID0gZnVuY3Rpb24gKCkgewogICAgICAgIGlmICh0aGlzLmVuZC5jb2x1bW4gPT0gMCkKICAgICAgICAgICAgcmV0dXJuIG5ldyBSYW5nZSh0aGlzLnN0YXJ0LnJvdywgMCwgTWF0aC5tYXgodGhpcy5zdGFydC5yb3csIHRoaXMuZW5kLnJvdyAtIDEpLCAwKTsKICAgICAgICBlbHNlCiAgICAgICAgICAgIHJldHVybiBuZXcgUmFuZ2UodGhpcy5zdGFydC5yb3csIDAsIHRoaXMuZW5kLnJvdywgMCk7CiAgICB9OwogICAgUmFuZ2UucHJvdG90eXBlLnRvU2NyZWVuUmFuZ2UgPSBmdW5jdGlvbiAoc2Vzc2lvbikgewogICAgICAgIHZhciBzY3JlZW5Qb3NTdGFydCA9IHNlc3Npb24uZG9jdW1lbnRUb1NjcmVlblBvc2l0aW9uKHRoaXMuc3RhcnQpOwogICAgICAgIHZhciBzY3JlZW5Qb3NFbmQgPSBzZXNzaW9uLmRvY3VtZW50VG9TY3JlZW5Qb3NpdGlvbih0aGlzLmVuZCk7CiAgICAgICAgcmV0dXJuIG5ldyBSYW5nZShzY3JlZW5Qb3NTdGFydC5yb3csIHNjcmVlblBvc1N0YXJ0LmNvbHVtbiwgc2NyZWVuUG9zRW5kLnJvdywgc2NyZWVuUG9zRW5kLmNvbHVtbik7CiAgICB9OwogICAgUmFuZ2UucHJvdG90eXBlLm1vdmVCeSA9IGZ1bmN0aW9uIChyb3csIGNvbHVtbikgewogICAgICAgIHRoaXMuc3RhcnQucm93ICs9IHJvdzsKICAgICAgICB0aGlzLnN0YXJ0LmNvbHVtbiArPSBjb2x1bW47CiAgICAgICAgdGhpcy5lbmQucm93ICs9IHJvdzsKICAgICAgICB0aGlzLmVuZC5jb2x1bW4gKz0gY29sdW1uOwogICAgfTsKICAgIHJldHVybiBSYW5nZTsKfSgpKTsKUmFuZ2UuZnJvbVBvaW50cyA9IGZ1bmN0aW9uIChzdGFydCwgZW5kKSB7CiAgICByZXR1cm4gbmV3IFJhbmdlKHN0YXJ0LnJvdywgc3RhcnQuY29sdW1uLCBlbmQucm93LCBlbmQuY29sdW1uKTsKfTsKUmFuZ2UuY29tcGFyZVBvaW50cyA9IGZ1bmN0aW9uIChwMSwgcDIpIHsKICAgIHJldHVybiBwMS5yb3cgLSBwMi5yb3cgfHwgcDEuY29sdW1uIC0gcDIuY29sdW1uOwp9OwpleHBvcnRzLlJhbmdlID0gUmFuZ2U7Cgp9KTsKCmFjZS5kZWZpbmUoImFjZS9hbmNob3IiLFtdLCBmdW5jdGlvbihyZXF1aXJlLCBleHBvcnRzLCBtb2R1bGUpeyJ1c2Ugc3RyaWN0IjsKdmFyIG9vcCA9IHJlcXVpcmUoIi4vbGliL29vcCIpOwp2YXIgRXZlbnRFbWl0dGVyID0gcmVxdWlyZSgiLi9saWIvZXZlbnRfZW1pdHRlciIpLkV2ZW50RW1pdHRlcjsKdmFyIEFuY2hvciA9IC8qKiBAY2xhc3MgKi8gKGZ1bmN0aW9uICgpIHsKICAgIGZ1bmN0aW9uIEFuY2hvcihkb2MsIHJvdywgY29sdW1uKSB7CiAgICAgICAgdGhpcy4kb25DaGFuZ2UgPSB0aGlzLm9uQ2hhbmdlLmJpbmQodGhpcyk7CiAgICAgICAgdGhpcy5hdHRhY2goZG9jKTsKICAgICAgICBpZiAodHlwZW9mIHJvdyAhPSAibnVtYmVyIikKICAgICAgICAgICAgdGhpcy5zZXRQb3NpdGlvbihyb3cucm93LCByb3cuY29sdW1uKTsKICAgICAgICBlbHNlCiAgICAgICAgICAgIHRoaXMuc2V0UG9zaXRpb24ocm93LCBjb2x1bW4pOwogICAgfQogICAgQW5jaG9yLnByb3RvdHlwZS5nZXRQb3NpdGlvbiA9IGZ1bmN0aW9uICgpIHsKICAgICAgICByZXR1cm4gdGhpcy4kY2xpcFBvc2l0aW9uVG9Eb2N1bWVudCh0aGlzLnJvdywgdGhpcy5jb2x1bW4pOwogICAgfTsKICAgIEFuY2hvci5wcm90b3R5cGUuZ2V0RG9jdW1lbnQgPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgcmV0dXJuIHRoaXMuZG9jdW1lbnQ7CiAgICB9OwogICAgQW5jaG9yLnByb3RvdHlwZS5vbkNoYW5nZSA9IGZ1bmN0aW9uIChkZWx0YSkgewogICAgICAgIGlmIChkZWx0YS5zdGFydC5yb3cgPT0gZGVsdGEuZW5kLnJvdyAmJiBkZWx0YS5zdGFydC5yb3cgIT0gdGhpcy5yb3cpCiAgICAgICAgICAgIHJldHVybjsKICAgICAgICBpZiAoZGVsdGEuc3RhcnQucm93ID4gdGhpcy5yb3cpCiAgICAgICAgICAgIHJldHVybjsKICAgICAgICB2Y
126XIgcG9pbnQgPSAkZ2V0VHJhbnNmb3JtZWRQb2ludChkZWx0YSwgeyByb3c6IHRoaXMucm93LCBjb2x1bW46IHRoaXMuY29sdW1uIH0sIHRoaXMuJGluc2VydFJpZ2h0KTsKICAgICAgICB0aGlzLnNldFBvc2l0aW9uKHBvaW50LnJvdywgcG9pbnQuY29sdW1uLCB0cnVlKTsKICAgIH07CiAgICBBbmNob3IucHJvdG90eXBlLnNldFBvc2l0aW9uID0gZnVuY3Rpb24gKHJvdywgY29sdW1uLCBub0NsaXApIHsKICAgICAgICB2YXIgcG9zOwogICAgICAgIGlmIChub0NsaXApIHsKICAgICAgICAgICAgcG9zID0gewogICAgICAgICAgICAgICAgcm93OiByb3csCiAgICAgICAgICAgICAgICBjb2x1bW46IGNvbHVtbgogICAgICAgICAgICB9OwogICAgICAgIH0KICAgICAgICBlbHNlIHsKICAgICAgICAgICAgcG9zID0gdGhpcy4kY2xpcFBvc2l0aW9uVG9Eb2N1bWVudChyb3csIGNvbHVtbik7CiAgICAgICAgfQogICAgICAgIGlmICh0aGlzLnJvdyA9PSBwb3Mucm93ICYmIHRoaXMuY29sdW1uID09IHBvcy5jb2x1bW4pCiAgICAgICAgICAgIHJldHVybjsKICAgICAgICB2YXIgb2xkID0gewogICAgICAgICAgICByb3c6IHRoaXMucm93LAogICAgICAgICAgICBjb2x1bW46IHRoaXMuY29sdW1uCiAgICAgICAgfTsKICAgICAgICB0aGlzLnJvdyA9IHBvcy5yb3c7CiAgICAgICAgdGhpcy5jb2x1bW4gPSBwb3MuY29sdW1uOwogICAgICAgIHRoaXMuX3NpZ25hbCgiY2hhbmdlIiwgewogICAgICAgICAgICBvbGQ6IG9sZCwKICAgICAgICAgICAgdmFsdWU6IHBvcwogICAgICAgIH0pOwogICAgfTsKICAgIEFuY2hvci5wcm90b3R5cGUuZGV0YWNoID0gZnVuY3Rpb24gKCkgewogICAgICAgIHRoaXMuZG9jdW1lbnQub2ZmKCJjaGFuZ2UiLCB0aGlzLiRvbkNoYW5nZSk7CiAgICB9OwogICAgQW5jaG9yLnByb3RvdHlwZS5hdHRhY2ggPSBmdW5jdGlvbiAoZG9jKSB7CiAgICAgICAgdGhpcy5kb2N1bWVudCA9IGRvYyB8fCB0aGlzLmRvY3VtZW50OwogICAgICAgIHRoaXMuZG9jdW1lbnQub24oImNoYW5nZSIsIHRoaXMuJG9uQ2hhbmdlKTsKICAgIH07CiAgICBBbmNob3IucHJvdG90eXBlLiRjbGlwUG9zaXRpb25Ub0RvY3VtZW50ID0gZnVuY3Rpb24gKHJvdywgY29sdW1uKSB7CiAgICAgICAgdmFyIHBvcyA9IHt9OwogICAgICAgIGlmIChyb3cgPj0gdGhpcy5kb2N1bWVudC5nZXRMZW5ndGgoKSkgewogICAgICAgICAgICBwb3Mucm93ID0gTWF0aC5tYXgoMCwgdGhpcy5kb2N1bWVudC5nZXRMZW5ndGgoKSAtIDEpOwogICAgICAgICAgICBwb3MuY29sdW1uID0gdGhpcy5kb2N1bWVudC5nZXRMaW5lKHBvcy5yb3cpLmxlbmd0aDsKICAgICAgICB9CiAgICAgICAgZWxzZSBpZiAocm93IDwgMCkgewogICAgICAgICAgICBwb3Mucm93ID0gMDsKICAgICAgICAgICAgcG9zLmNvbHVtbiA9IDA7CiAgICAgICAgfQogICAgICAgIGVsc2UgewogICAgICAgICAgICBwb3Mucm93ID0gcm93OwogICAgICAgICAgICBwb3MuY29sdW1uID0gTWF0aC5taW4odGhpcy5kb2N1bWVudC5nZXRMaW5lKHBvcy5yb3cpLmxlbmd0aCwgTWF0aC5tYXgoMCwgY29sdW1uKSk7CiAgICAgICAgfQogICAgICAgIGlmIChjb2x1bW4gPCAwKQogICAgICAgICAgICBwb3MuY29sdW1uID0gMDsKICAgICAgICByZXR1cm4gcG9zOwogICAgfTsKICAgIHJldHVybiBBbmNob3I7Cn0oKSk7CkFuY2hvci5wcm90b3R5cGUuJGluc2VydFJpZ2h0ID0gZmFsc2U7Cm9vcC5pbXBsZW1lbnQoQW5jaG9yLnByb3RvdHlwZSwgRXZlbnRFbWl0dGVyKTsKZnVuY3Rpb24gJHBvaW50c0luT3JkZXIocG9pbnQxLCBwb2ludDIsIGVxdWFsUG9pbnRzSW5PcmRlcikgewogICAgdmFyIGJDb2xJc0FmdGVyID0gZXF1YWxQb2ludHNJbk9yZGVyID8gcG9pbnQxLmNvbHVtbiA8PSBwb2ludDIuY29sdW1uIDogcG9pbnQxLmNvbHVtbiA8IHBvaW50Mi5jb2x1bW47CiAgICByZXR1cm4gKHBvaW50MS5yb3cgPCBwb2ludDIucm93KSB8fCAocG9pbnQxLnJvdyA9PSBwb2ludDIucm93ICYmIGJDb2xJc0FmdGVyKTsKfQpmdW5jdGlvbiAkZ2V0VHJhbnNmb3JtZWRQb2ludChkZWx0YSwgcG9pbnQsIG1vdmVJZkVxdWFsKSB7CiAgICB2YXIgZGVsdGFJc0luc2VydCA9IGRlbHRhLmFjdGlvbiA9PSAiaW5zZXJ0IjsKICAgIHZhciBkZWx0YVJvd1NoaWZ0ID0gKGRlbHRhSXNJbnNlcnQgPyAxIDogLTEpICogKGRlbHRhLmVuZC5yb3cgLSBkZWx0YS5zdGFydC5yb3cpOwogICAgdmFyIGRlbHRhQ29sU2hpZnQgPSAoZGVsdGFJc0luc2VydCA/IDEgOiAtMSkgKiAoZGVsdGEuZW5kLmNvbHVtbiAtIGRlbHRhLnN0YXJ0LmNvbHVtbik7CiAgICB2YXIgZGVsdGFTdGFydCA9IGRlbHRhLnN0YXJ0OwogICAgdmFyIGRlbHRhRW5kID0gZGVsdGFJc0luc2VydCA/IGRlbHRhU3RhcnQgOiBkZWx0YS5lbmQ7IC8vIENvbGxhcHNlIGluc2VydCByYW5nZS4KICAgIGlmICgkcG9pbnRzSW5PcmRlcihwb2ludCwgZGVsdGFTdGFydCwgbW92ZUlmRXF1YWwpKSB7CiAgICAgICAgcmV0dXJuIHsKICAgICAgICAgICAgcm93OiBwb2ludC5yb3csCiAgICAgICAgICAgIGNvbHVtbjogcG9pbnQuY29sdW1uCiAgICAgICAgfTsKICAgIH0KICAgIGlmICgkcG9pbnRzSW5PcmRlcihkZWx0YUVuZCwgcG9pbnQsICFtb3ZlSWZFcXVhbCkpIHsKICAgICAgICByZXR1cm4gewogICAgICAgICAgICByb3c6IHBvaW50LnJvdyArIGRlbHRhUm93U2hpZnQsCiAgICAgICAgICAgIGNvbHVtbjogcG9pbnQuY29sdW1uICsgKHBvaW50LnJvdyA9PSBkZWx0YUVuZC5yb3cgPyBkZWx0YUNvbFNoaWZ0IDogMCkKICAgICAgICB9OwogICAgfQogICAgcmV0dXJuIHsKICAgICAgICByb3c6IGRlbHRhU3RhcnQucm93LAogICAgICAgIGNvbHVtbjogZGVsdGFTdGFydC5jb2x1bW4KICAgIH07Cn0KZXhwb3J0cy5BbmNob3IgPSBBbmNob3I7Cgp9KTsKCmFjZS5kZWZpbmUoImFjZS9kb2N1bWVudCIsW10sIGZ1bmN0aW9uKHJlcXVpcmUsIGV4cG9ydHMsIG1vZHVsZSl7InVzZSBzdHJpY3QiOwp2YXIgb29wID0gcmVxdWlyZSgiLi9saWIvb29wIik7CnZhciBhcHBseURlbHRhID0gcmVxdWlyZSgiLi9hcHBseV9kZWx0YSIpLmFwcGx5RGVsdGE7CnZhciBFdmVudEVtaXR0ZXIgPSByZXF1aXJlKCIuL2xpYi9ldmVudF9lbWl0dGVyIikuRXZlbnRFbWl0dGVyOwp2YXIgUmFuZ2UgPSByZXF1aXJlKCIuL3JhbmdlIikuUmFuZ2U7CnZhciBBbmNob3IgPSByZXF1aXJlKCIuL2FuY2hvciIpLkFuY2hvcjsKdmFyIERvY3VtZW50ID0gLyoqIEBjbGFzcyAqLyAoZnVuY3Rpb24gKCkgewogICAgZnVuY3Rpb24gRG9jdW1lbnQodGV4dE9yTGluZXMpIHsKICAgICAgICB0aGlzLiRsaW5lcyA9IFsiIl07CiAgICAgICAgaWYgKHRleHRPckxpbmVzLmxlbmd0aCA9PT0gMCkgewogICAgICAgICAgICB0aGlzLiRsaW5lcyA9IFsiIl07CiAgICAgICAgfQogICAgICAgIGVsc2UgaWYgKEFycmF5LmlzQXJyYXkodGV4dE9yTGluZXMpKSB7CiAgICAgICAgICAgI
126HRoaXMuaW5zZXJ0TWVyZ2VkTGluZXMoeyByb3c6IDAsIGNvbHVtbjogMCB9LCB0ZXh0T3JMaW5lcyk7CiAgICAgICAgfQogICAgICAgIGVsc2UgewogICAgICAgICAgICB0aGlzLmluc2VydCh7IHJvdzogMCwgY29sdW1uOiAwIH0sIHRleHRPckxpbmVzKTsKICAgICAgICB9CiAgICB9CiAgICBEb2N1bWVudC5wcm90b3R5cGUuc2V0VmFsdWUgPSBmdW5jdGlvbiAodGV4dCkgewogICAgICAgIHZhciBsZW4gPSB0aGlzLmdldExlbmd0aCgpIC0gMTsKICAgICAgICB0aGlzLnJlbW92ZShuZXcgUmFuZ2UoMCwgMCwgbGVuLCB0aGlzLmdldExpbmUobGVuKS5sZW5ndGgpKTsKICAgICAgICB0aGlzLmluc2VydCh7IHJvdzogMCwgY29sdW1uOiAwIH0sIHRleHQgfHwgIiIpOwogICAgfTsKICAgIERvY3VtZW50LnByb3RvdHlwZS5nZXRWYWx1ZSA9IGZ1bmN0aW9uICgpIHsKICAgICAgICByZXR1cm4gdGhpcy5nZXRBbGxMaW5lcygpLmpvaW4odGhpcy5nZXROZXdMaW5lQ2hhcmFjdGVyKCkpOwogICAgfTsKICAgIERvY3VtZW50LnByb3RvdHlwZS5jcmVhdGVBbmNob3IgPSBmdW5jdGlvbiAocm93LCBjb2x1bW4pIHsKICAgICAgICByZXR1cm4gbmV3IEFuY2hvcih0aGlzLCByb3csIGNvbHVtbik7CiAgICB9OwogICAgRG9jdW1lbnQucHJvdG90eXBlLiRkZXRlY3ROZXdMaW5lID0gZnVuY3Rpb24gKHRleHQpIHsKICAgICAgICB2YXIgbWF0Y2ggPSB0ZXh0Lm1hdGNoKC9eLio/KFxyXG58XHJ8XG4pL20pOwogICAgICAgIHRoaXMuJGF1dG9OZXdMaW5lID0gbWF0Y2ggPyBtYXRjaFsxXSA6ICJcbiI7CiAgICAgICAgdGhpcy5fc2lnbmFsKCJjaGFuZ2VOZXdMaW5lTW9kZSIpOwogICAgfTsKICAgIERvY3VtZW50LnByb3RvdHlwZS5nZXROZXdMaW5lQ2hhcmFjdGVyID0gZnVuY3Rpb24gKCkgewogICAgICAgIHN3aXRjaCAodGhpcy4kbmV3TGluZU1vZGUpIHsKICAgICAgICAgICAgY2FzZSAid2luZG93cyI6CiAgICAgICAgICAgICAgICByZXR1cm4gIlxyXG4iOwogICAgICAgICAgICBjYXNlICJ1bml4IjoKICAgICAgICAgICAgICAgIHJldHVybiAiXG4iOwogICAgICAgICAgICBkZWZhdWx0OgogICAgICAgICAgICAgICAgcmV0dXJuIHRoaXMuJGF1dG9OZXdMaW5lIHx8ICJcbiI7CiAgICAgICAgfQogICAgfTsKICAgIERvY3VtZW50LnByb3RvdHlwZS5zZXROZXdMaW5lTW9kZSA9IGZ1bmN0aW9uIChuZXdMaW5lTW9kZSkgewogICAgICAgIGlmICh0aGlzLiRuZXdMaW5lTW9kZSA9PT0gbmV3TGluZU1vZGUpCiAgICAgICAgICAgIHJldHVybjsKICAgICAgICB0aGlzLiRuZXdMaW5lTW9kZSA9IG5ld0xpbmVNb2RlOwogICAgICAgIHRoaXMuX3NpZ25hbCgiY2hhbmdlTmV3TGluZU1vZGUiKTsKICAgIH07CiAgICBEb2N1bWVudC5wcm90b3R5cGUuZ2V0TmV3TGluZU1vZGUgPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgcmV0dXJuIHRoaXMuJG5ld0xpbmVNb2RlOwogICAgfTsKICAgIERvY3VtZW50LnByb3RvdHlwZS5pc05ld0xpbmUgPSBmdW5jdGlvbiAodGV4dCkgewogICAgICAgIHJldHVybiAodGV4dCA9PSAiXHJcbiIgfHwgdGV4dCA9PSAiXHIiIHx8IHRleHQgPT0gIlxuIik7CiAgICB9OwogICAgRG9jdW1lbnQucHJvdG90eXBlLmdldExpbmUgPSBmdW5jdGlvbiAocm93KSB7CiAgICAgICAgcmV0dXJuIHRoaXMuJGxpbmVzW3Jvd10gfHwgIiI7CiAgICB9OwogICAgRG9jdW1lbnQucHJvdG90eXBlLmdldExpbmVzID0gZnVuY3Rpb24gKGZpcnN0Um93LCBsYXN0Um93KSB7CiAgICAgICAgcmV0dXJuIHRoaXMuJGxpbmVzLnNsaWNlKGZpcnN0Um93LCBsYXN0Um93ICsgMSk7CiAgICB9OwogICAgRG9jdW1lbnQucHJvdG90eXBlLmdldEFsbExpbmVzID0gZnVuY3Rpb24gKCkgewogICAgICAgIHJldHVybiB0aGlzLmdldExpbmVzKDAsIHRoaXMuZ2V0TGVuZ3RoKCkpOwogICAgfTsKICAgIERvY3VtZW50LnByb3RvdHlwZS5nZXRMZW5ndGggPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgcmV0dXJuIHRoaXMuJGxpbmVzLmxlbmd0aDsKICAgIH07CiAgICBEb2N1bWVudC5wcm90b3R5cGUuZ2V0VGV4dFJhbmdlID0gZnVuY3Rpb24gKHJhbmdlKSB7CiAgICAgICAgcmV0dXJuIHRoaXMuZ2V0TGluZXNGb3JSYW5nZShyYW5nZSkuam9pbih0aGlzLmdldE5ld0xpbmVDaGFyYWN0ZXIoKSk7CiAgICB9OwogICAgRG9jdW1lbnQucHJvdG90eXBlLmdldExpbmVzRm9yUmFuZ2UgPSBmdW5jdGlvbiAocmFuZ2UpIHsKICAgICAgICB2Y
126XIgbGluZXM7CiAgICAgICAgaWYgKHJhbmdlLnN0YXJ0LnJvdyA9PT0gcmFuZ2UuZW5kLnJvdykgewogICAgICAgICAgICBsaW5lcyA9IFt0aGlzLmdldExpbmUocmFuZ2Uuc3RhcnQucm93KS5zdWJzdHJpbmcocmFuZ2Uuc3RhcnQuY29sdW1uLCByYW5nZS5lbmQuY29sdW1uKV07CiAgICAgICAgfQogICAgICAgIGVsc2UgewogICAgICAgICAgICBsaW5lcyA9IHRoaXMuZ2V0TGluZXMocmFuZ2Uuc3RhcnQucm93LCByYW5nZS5lbmQucm93KTsKICAgICAgICAgICAgbGluZXNbMF0gPSAobGluZXNbMF0gfHwgIiIpLnN1YnN0cmluZyhyYW5nZS5zdGFydC5jb2x1bW4pOwogICAgICAgICAgICB2YXIgbCA9IGxpbmVzLmxlbmd0aCAtIDE7CiAgICAgICAgICAgIGlmIChyYW5nZS5lbmQucm93IC0gcmFuZ2Uuc3RhcnQucm93ID09IGwpCiAgICAgICAgICAgICAgICBsaW5lc1tsXSA9IGxpbmVzW2xdLnN1YnN0cmluZygwLCByYW5nZS5lbmQuY29sdW1uKTsKICAgICAgICB9CiAgICAgICAgcmV0dXJuIGxpbmVzOwogICAgfTsKICAgIERvY3VtZW50LnByb3RvdHlwZS5pbnNlcnRMaW5lcyA9IGZ1bmN0aW9uIChyb3csIGxpbmVzKSB7CiAgICAgICAgY29uc29sZS53YXJuKCJVc2Ugb2YgZG9jdW1lbnQuaW5zZXJ0TGluZXMgaXMgZGVwcmVjYXRlZC4gVXNlIHRoZSBpbnNlcnRGdWxsTGluZXMgbWV0aG9kIGluc3RlYWQuIik7CiAgICAgICAgcmV0dXJuIHRoaXMuaW5zZXJ0RnVsbExpbmVzKHJvdywgbGluZXMpOwogICAgfTsKICAgIERvY3VtZW50LnByb3RvdHlwZS5yZW1vdmVMaW5lcyA9IGZ1bmN0aW9uIChmaXJzdFJvdywgbGFzdFJvdykgewogICAgICAgIGNvbnNvbGUud2FybigiVXNlIG9mIGRvY3VtZW50LnJlbW92ZUxpbmVzIGlzIGRlcHJlY2F0ZWQuIFVzZSB0aGUgcmVtb3ZlRnVsbExpbmVzIG1ldGhvZCBpbnN0ZWFkLiIpOwogICAgICAgIHJldHVybiB0aGlzLnJlbW92ZUZ1bGxMaW5lcyhmaXJzdFJvdywgbGFzdFJvdyk7CiAgICB9OwogICAgRG9jdW1lbnQucHJvdG90eXBlLmluc2VydE5ld0xpbmUgPSBmdW5jdGlvbiAocG9zaXRpb24pIHsKICAgICAgICBjb25zb2xlLndhcm4oIlVzZSBvZiBkb2N1bWVudC5pbnNlcnROZXdMaW5lIGlzIGRlcHJlY2F0ZWQuIFVzZSBpbnNlcnRNZXJnZWRMaW5lcyhwb3NpdGlvbiwgWycnLCAnJ10pIGluc3RlYWQuIik7CiAgICAgICAgcmV0dXJuIHRoaXMuaW5zZXJ0TWVyZ2VkTGluZXMocG9zaXRpb24sIFsiIiwgIiJdKTsKICAgIH07CiAgICBEb2N1bWVudC5wcm90b3R5cGUuaW5zZXJ0ID0gZnVuY3Rpb24gKHBvc2l0aW9uLCB0ZXh0KSB7CiAgICAgICAgaWYgKHRoaXMuZ2V0TGVuZ3RoKCkgPD0gMSkKICAgICAgICAgICAgdGhpcy4kZGV0ZWN0TmV3TGluZSh0ZXh0KTsKICAgICAgICByZXR1cm4gdGhpcy5pbnNlcnRNZXJnZWRMaW5lcyhwb3NpdGlvbiwgdGhpcy4kc3BsaXQodGV4dCkpOwogICAgfTsKICAgIERvY3VtZW50LnByb3RvdHlwZS5pbnNlcnRJbkxpbmUgPSBmdW5jdGlvbiAocG9zaXRpb24sIHRleHQpIHsKICAgICAgICB2Y
126XIgc3RhcnQgPSB0aGlzLmNsaXBwZWRQb3MocG9zaXRpb24ucm93LCBwb3NpdGlvbi5jb2x1bW4pOwogICAgICAgIHZhciBlbmQgPSB0aGlzLnBvcyhwb3NpdGlvbi5yb3csIHBvc2l0aW9uLmNvbHVtbiArIHRleHQubGVuZ3RoKTsKICAgICAgICB0aGlzLmFwcGx5RGVsdGEoewogICAgICAgICAgICBzdGFydDogc3RhcnQsCiAgICAgICAgICAgIGVuZDogZW5kLAogICAgICAgICAgICBhY3Rpb246ICJpbnNlcnQiLAogICAgICAgICAgICBsaW5lczogW3RleHRdCiAgICAgICAgfSwgdHJ1ZSk7CiAgICAgICAgcmV0dXJuIHRoaXMuY2xvbmVQb3MoZW5kKTsKICAgIH07CiAgICBEb2N1bWVudC5wcm90b3R5cGUuY2xpcHBlZFBvcyA9IGZ1bmN0aW9uIChyb3csIGNvbHVtbikgewogICAgICAgIHZhciBsZW5ndGggPSB0aGlzLmdldExlbmd0aCgpOwogICAgICAgIGlmIChyb3cgPT09IHVuZGVmaW5lZCkgewogICAgICAgICAgICByb3cgPSBsZW5ndGg7CiAgICAgICAgfQogICAgICAgIGVsc2UgaWYgKHJvdyA8IDApIHsKICAgICAgICAgICAgcm93ID0gMDsKICAgICAgICB9CiAgICAgICAgZWxzZSBpZiAocm93ID49IGxlbmd0aCkgewogICAgICAgICAgICByb3cgPSBsZW5ndGggLSAxOwogICAgICAgICAgICBjb2x1bW4gPSB1bmRlZmluZWQ7CiAgICAgICAgfQogICAgICAgIHZhciBsaW5lID0gdGhpcy5nZXRMaW5lKHJvdyk7CiAgICAgICAgaWYgKGNvbHVtbiA9PSB1bmRlZmluZWQpCiAgICAgICAgICAgIGNvbHVtbiA9IGxpbmUubGVuZ3RoOwogICAgICAgIGNvbHVtbiA9IE1hdGgubWluKE1hdGgubWF4KGNvbHVtbiwgMCksIGxpbmUubGVuZ3RoKTsKICAgICAgICByZXR1cm4geyByb3c6IHJvdywgY29sdW1uOiBjb2x1bW4gfTsKICAgIH07CiAgICBEb2N1bWVudC5wcm90b3R5cGUuY2xvbmVQb3MgPSBmdW5jdGlvbiAocG9zKSB7CiAgICAgICAgcmV0dXJuIHsgcm93OiBwb3Mucm93LCBjb2x1bW46IHBvcy5jb2x1bW4gfTsKICAgIH07CiAgICBEb2N1bWVudC5wcm90b3R5cGUucG9zID0gZnVuY3Rpb24gKHJvdywgY29sdW1uKSB7CiAgICAgICAgcmV0dXJuIHsgcm93OiByb3csIGNvbHVtbjogY29sdW1uIH07CiAgICB9OwogICAgRG9jdW1lbnQucHJvdG90eXBlLiRjbGlwUG9zaXRpb24gPSBmdW5jdGlvbiAocG9zaXRpb24pIHsKICAgICAgICB2Y
126XIgbGVuZ3RoID0gdGhpcy5nZXRMZW5ndGgoKTsKICAgICAgICBpZiAocG9zaXRpb24ucm93ID49IGxlbmd0aCkgewogICAgICAgICAgICBwb3NpdGlvbi5yb3cgPSBNYXRoLm1heCgwLCBsZW5ndGggLSAxKTsKICAgICAgICAgICAgcG9zaXRpb24uY29sdW1uID0gdGhpcy5nZXRMaW5lKGxlbmd0aCAtIDEpLmxlbmd0aDsKICAgICAgICB9CiAgICAgICAgZWxzZSB7CiAgICAgICAgICAgIHBvc2l0aW9uLnJvdyA9IE1hdGgubWF4KDAsIHBvc2l0aW9uLnJvdyk7CiAgICAgICAgICAgIHBvc2l0aW9uLmNvbHVtbiA9IE1hdGgubWluKE1hdGgubWF4KHBvc2l0aW9uLmNvbHVtbiwgMCksIHRoaXMuZ2V0TGluZShwb3NpdGlvbi5yb3cpLmxlbmd0aCk7CiAgICAgICAgfQogICAgICAgIHJldHVybiBwb3NpdGlvbjsKICAgIH07CiAgICBEb2N1bWVudC5wcm90b3R5cGUuaW5zZXJ0RnVsbExpbmVzID0gZnVuY3Rpb24gKHJvdywgbGluZXMpIHsKICAgICAgICByb3cgPSBNYXRoLm1pbihNYXRoLm1heChyb3csIDApLCB0aGlzLmdldExlbmd0aCgpKTsKICAgICAgICB2YXIgY29sdW1uID0gMDsKICAgICAgICBpZiAocm93IDwgdGhpcy5nZXRMZW5ndGgoKSkgewogICAgICAgICAgICBsaW5lcyA9IGxpbmVzLmNvbmNhdChbIiJdKTsKICAgICAgICAgICAgY29sdW1uID0gMDsKICAgICAgICB9CiAgICAgICAgZWxzZSB7CiAgICAgICAgICAgIGxpbmVzID0gWyIiXS5jb25jYXQobGluZXMpOwogICAgICAgICAgICByb3ctLTsKICAgICAgICAgICAgY29sdW1uID0gdGhpcy4kbGluZXNbcm93XS5sZW5ndGg7CiAgICAgICAgfQogICAgICAgIHRoaXMuaW5zZXJ0TWVyZ2VkTGluZXMoeyByb3c6IHJvdywgY29sdW1uOiBjb2x1bW4gfSwgbGluZXMpOwogICAgfTsKICAgIERvY3VtZW50LnByb3RvdHlwZS5pbnNlcnRNZXJnZWRMaW5lcyA9IGZ1bmN0aW9uIChwb3NpdGlvbiwgbGluZXMpIHsKICAgICAgICB2Y
126XIgc3RhcnQgPSB0aGlzLmNsaXBwZWRQb3MocG9zaXRpb24ucm93LCBwb3NpdGlvbi5jb2x1bW4pOwogICAgICAgIHZhciBlbmQgPSB7CiAgICAgICAgICAgIHJvdzogc3RhcnQucm93ICsgbGluZXMubGVuZ3RoIC0gMSwKICAgICAgICAgICAgY29sdW1uOiAobGluZXMubGVuZ3RoID09IDEgPyBzdGFydC5jb2x1bW4gOiAwKSArIGxpbmVzW2xpbmVzLmxlbmd0aCAtIDFdLmxlbmd0aAogICAgICAgIH07CiAgICAgICAgdGhpcy5hcHBseURlbHRhKHsKICAgICAgICAgICAgc3RhcnQ6IHN0YXJ0LAogICAgICAgICAgICBlbmQ6IGVuZCwKICAgICAgICAgICAgYWN0aW9uOiAiaW5zZXJ0IiwKICAgICAgICAgICAgbGluZXM6IGxpbmVzCiAgICAgICAgfSk7CiAgICAgICAgcmV0dXJuIHRoaXMuY2xvbmVQb3MoZW5kKTsKICAgIH07CiAgICBEb2N1bWVudC5wcm90b3R5cGUucmVtb3ZlID0gZnVuY3Rpb24gKHJhbmdlKSB7CiAgICAgICAgdmFyIHN0YXJ0ID0gdGhpcy5jbGlwcGVkUG9zKHJhbmdlLnN0YXJ0LnJvdywgcmFuZ2Uuc3RhcnQuY29sdW1uKTsKICAgICAgICB2YXIgZW5kID0gdGhpcy5jbGlwcGVkUG9zKHJhbmdlLmVuZC5yb3csIHJhbmdlLmVuZC5jb2x1bW4pOwogICAgICAgIHRoaXMuYXBwbHlEZWx0YSh7CiAgICAgICAgICAgIHN0YXJ0OiBzdGFydCwKICAgICAgICAgICAgZW5kOiBlbmQsCiAgICAgICAgICAgIGFjdGlvbjogInJlbW92ZSIsCiAgICAgICAgICAgIGxpbmVzOiB0aGlzLmdldExpbmVzRm9yUmFuZ2UoeyBzdGFydDogc3RhcnQsIGVuZDogZW5kIH0pCiAgICAgICAgfSk7CiAgICAgICAgcmV0dXJuIHRoaXMuY2xvbmVQb3Moc3RhcnQpOwogICAgfTsKICAgIERvY3VtZW50LnByb3RvdHlwZS5yZW1vdmVJbkxpbmUgPSBmdW5jdGlvbiAocm93LCBzdGFydENvbHVtbiwgZW5kQ29sdW1uKSB7CiAgICAgICAgdmFyIHN0YXJ0ID0gdGhpcy5jbGlwcGVkUG9zKHJvdywgc3RhcnRDb2x1bW4pOwogICAgICAgIHZhciBlbmQgPSB0aGlzLmNsaXBwZWRQb3Mocm93LCBlbmRDb2x1bW4pOwogICAgICAgIHRoaXMuYXBwbHlEZWx0YSh7CiAgICAgICAgICAgIHN0YXJ0OiBzdGFydCwKICAgICAgICAgICAgZW5kOiBlbmQsCiAgICAgICAgICAgIGFjdGlvbjogInJlbW92ZSIsCiAgICAgICAgICAgIGxpbmVzOiB0aGlzLmdldExpbmVzRm9yUmFuZ2UoeyBzdGFydDogc3RhcnQsIGVuZDogZW5kIH0pCiAgICAgICAgfSwgdHJ1ZSk7CiAgICAgICAgcmV0dXJuIHRoaXMuY2xvbmVQb3Moc3RhcnQpOwogICAgfTsKICAgIERvY3VtZW50LnByb3RvdHlwZS5yZW1vdmVGdWxsTGluZXMgPSBmdW5jdGlvbiAoZmlyc3RSb3csIGxhc3RSb3cpIHsKICAgICAgICBmaXJzdFJvdyA9IE1hdGgubWluKE1hdGgubWF4KDAsIGZpcnN0Um93KSwgdGhpcy5nZXRMZW5ndGgoKSAtIDEpOwogICAgICAgIGxhc3RSb3cgPSBNYXRoLm1pbihNYXRoLm1heCgwLCBsYXN0Um93KSwgdGhpcy5nZXRMZW5ndGgoKSAtIDEpOwogICAgICAgIHZhciBkZWxldGVGaXJzdE5ld0xpbmUgPSBsYXN0Um93ID09IHRoaXMuZ2V0TGVuZ3RoKCkgLSAxICYmIGZpcnN0Um93ID4gMDsKICAgICAgICB2Y
126XIgZGVsZXRlTGFzdE5ld0xpbmUgPSBsYXN0Um93IDwgdGhpcy5nZXRMZW5ndGgoKSAtIDE7CiAgICAgICAgdmFyIHN0YXJ0Um93ID0gKGRlbGV0ZUZpcnN0TmV3TGluZSA/IGZpcnN0Um93IC0gMSA6IGZpcnN0Um93KTsKICAgICAgICB2YXIgc3RhcnRDb2wgPSAoZGVsZXRlRmlyc3ROZXdMaW5lID8gdGhpcy5nZXRMaW5lKHN0YXJ0Um93KS5sZW5ndGggOiAwKTsKICAgICAgICB2YXIgZW5kUm93ID0gKGRlbGV0ZUxhc3ROZXdMaW5lID8gbGFzdFJvdyArIDEgOiBsYXN0Um93KTsKICAgICAgICB2YXIgZW5kQ29sID0gKGRlbGV0ZUxhc3ROZXdMaW5lID8gMCA6IHRoaXMuZ2V0TGluZShlbmRSb3cpLmxlbmd0aCk7CiAgICAgICAgdmFyIHJhbmdlID0gbmV3IFJhbmdlKHN0YXJ0Um93LCBzdGFydENvbCwgZW5kUm93LCBlbmRDb2wpOwogICAgICAgIHZhciBkZWxldGVkTGluZXMgPSB0aGlzLiRsaW5lcy5zbGljZShmaXJzdFJvdywgbGFzdFJvdyArIDEpOwogICAgICAgIHRoaXMuYXBwbHlEZWx0YSh7CiAgICAgICAgICAgIHN0YXJ0OiByYW5nZS5zdGFydCwKICAgICAgICAgICAgZW5kOiByYW5nZS5lbmQsCiAgICAgICAgICAgIGFjdGlvbjogInJlbW92ZSIsCiAgICAgICAgICAgIGxpbmVzOiB0aGlzLmdldExpbmVzRm9yUmFuZ2UocmFuZ2UpCiAgICAgICAgfSk7CiAgICAgICAgcmV0dXJuIGRlbGV0ZWRMaW5lczsKICAgIH07CiAgICBEb2N1bWVudC5wcm90b3R5cGUucmVtb3ZlTmV3TGluZSA9IGZ1bmN0aW9uIChyb3cpIHsKICAgICAgICBpZiAocm93IDwgdGhpcy5nZXRMZW5ndGgoKSAtIDEgJiYgcm93ID49IDApIHsKICAgICAgICAgICAgdGhpcy5hcHBseURlbHRhKHsKICAgICAgICAgICAgICAgIHN0YXJ0OiB0aGlzLnBvcyhyb3csIHRoaXMuZ2V0TGluZShyb3cpLmxlbmd0aCksCiAgICAgICAgICAgICAgICBlbmQ6IHRoaXMucG9zKHJvdyArIDEsIDApLAogICAgICAgICAgICAgICAgYWN0aW9uOiAicmVtb3ZlIiwKICAgICAgICAgICAgICAgIGxpbmVzOiBbIiIsICIiXQogICAgICAgICAgICB9KTsKICAgICAgICB9CiAgICB9OwogICAgRG9jdW1lbnQucHJvdG90eXBlLnJlcGxhY2UgPSBmdW5jdGlvbiAocmFuZ2UsIHRleHQpIHsKICAgICAgICBpZiAoIShyYW5nZSBpbnN0YW5jZW9mIFJhbmdlKSkKICAgICAgICAgICAgcmFuZ2UgPSBSYW5nZS5mcm9tUG9pbnRzKHJhbmdlLnN0YXJ0LCByYW5nZS5lbmQpOwogICAgICAgIGlmICh0ZXh0Lmxlbmd0aCA9PT0gMCAmJiByYW5nZS5pc0VtcHR5KCkpCiAgICAgICAgICAgIHJldHVybiByYW5nZS5zdGFydDsKICAgICAgICBpZiAodGV4dCA9PSB0aGlzLmdldFRleHRSYW5nZShyYW5nZSkpCiAgICAgICAgICAgIHJldHVybiByYW5nZS5lbmQ7CiAgICAgICAgdGhpcy5yZW1vdmUocmFuZ2UpOwogICAgICAgIHZhciBlbmQ7CiAgICAgICAgaWYgKHRleHQpIHsKICAgICAgICAgICAgZW5kID0gdGhpcy5pbnNlcnQocmFuZ2Uuc3RhcnQsIHRleHQpOwogICAgICAgIH0KICAgICAgICBlbHNlIHsKICAgICAgICAgICAgZW5kID0gcmFuZ2Uuc3RhcnQ7CiAgICAgICAgfQogICAgICAgIHJldHVybiBlbmQ7CiAgICB9OwogICAgRG9jdW1lbnQucHJvdG90eXBlLmFwcGx5RGVsdGFzID0gZnVuY3Rpb24gKGRlbHRhcykgewogICAgICAgIGZvciAodmFyIGkgPSAwOyBpIDwgZGVsdGFzLmxlbmd0aDsgaSsrKSB7CiAgICAgICAgICAgIHRoaXMuYXBwbHlEZWx0YShkZWx0YXNbaV0pOwogICAgICAgIH0KICAgIH07CiAgICBEb2N1bWVudC5wcm90b3R5cGUucmV2ZXJ0RGVsdGFzID0gZnVuY3Rpb24gKGRlbHRhcykgewogICAgICAgIGZvciAodmFyIGkgPSBkZWx0YXMubGVuZ3RoIC0gMTsgaSA+PSAwOyBpLS0pIHsKICAgICAgICAgICAgdGhpcy5yZXZlcnREZWx0YShkZWx0YXNbaV0pOwogICAgICAgIH0KICAgIH07CiAgICBEb2N1bWVudC5wcm90b3R5cGUuYXBwbHlEZWx0YSA9IGZ1bmN0aW9uIChkZWx0YSwgZG9Ob3RWYWxpZGF0ZSkgewogICAgICAgIHZhciBpc0luc2VydCA9IGRlbHRhLmFjdGlvbiA9PSAiaW5zZXJ0IjsKICAgICAgICBpZiAoaXNJbnNlcnQgPyBkZWx0YS5saW5lcy5sZW5ndGggPD0gMSAmJiAhZGVsdGEubGluZXNbMF0KICAgICAgICAgICAgOiAhUmFuZ2UuY29tcGFyZVBvaW50cyhkZWx0YS5zdGFydCwgZGVsdGEuZW5kKSkgewogICAgICAgICAgICByZXR1cm47CiAgICAgICAgfQogICAgICAgIGlmIChpc0luc2VydCAmJi
126BkZWx0YS5saW5lcy5sZW5ndGggPiAyMDAwMCkgewogICAgICAgICAgICB0aGlzLiRzcGxpdEFuZGFwcGx5TGFyZ2VEZWx0YShkZWx0YSwgMjAwMDApOwogICAgICAgIH0KICAgICAgICBlbHNlIHsKICAgICAgICAgICAgYXBwbHlEZWx0YSh0aGlzLiRsaW5lcywgZGVsdGEsIGRvTm90VmFsaWRhdGUpOwogICAgICAgICAgICB0aGlzLl9zaWduYWwoImNoYW5nZSIsIGRlbHRhKTsKICAgICAgICB9CiAgICB9OwogICAgRG9jdW1lbnQucHJvdG90eXBlLiRzYWZlQXBwbHlEZWx0YSA9IGZ1bmN0aW9uIChkZWx0YSkgewogICAgICAgIHZhciBkb2NMZW5ndGggPSB0aGlzLiRsaW5lcy5sZW5ndGg7CiAgICAgICAgaWYgKGRlbHRhLmFjdGlvbiA9PSAicmVtb3ZlIiAmJiBkZWx0YS5zdGFydC5yb3cgPCBkb2NMZW5ndGggJiYgZGVsdGEuZW5kLnJvdyA8IGRvY0xlbmd0aAogICAgICAgICAgICB8fCBkZWx0YS5hY3Rpb24gPT0gImluc2VydCIgJiYgZGVsdGEuc3RhcnQucm93IDw9IGRvY0xlbmd0aCkgewogICAgICAgICAgICB0aGlzLmFwcGx5RGVsdGEoZGVsdGEpOwogICAgICAgIH0KICAgIH07CiAgICBEb2N1bWVudC5wcm90b3R5cGUuJHNwbGl0QW5kYXBwbHlMYXJnZURlbHRhID0gZnVuY3Rpb24gKGRlbHRhLCBNQVgpIHsKICAgICAgICB2YXIgbGluZXMgPSBkZWx0YS5saW5lczsKICAgICAgICB2YXIgbCA9IGxpbmVzLmxlbmd0aCAtIE1BWCArIDE7CiAgICAgICAgdmFyIHJvdyA9IGRlbHRhLnN0YXJ0LnJvdzsKICAgICAgICB2YXIgY29sdW1uID0gZGVsdGEuc3RhcnQuY29sdW1uOwogICAgICAgIGZvciAodmFyIGZyb20gPSAwLCB0byA9IDA7IGZyb20gPCBsOyBmcm9tID0gdG8pIHsKICAgICAgICAgICAgdG8gKz0gTUFYIC0gMTsKICAgICAgICAgICAgdmFyIGNodW5rID0gbGluZXMuc2xpY2UoZnJvbSwgdG8pOwogICAgICAgICAgICBjaHVuay5wdXNoKCIiKTsKICAgICAgICAgICAgdGhpcy5hcHBseURlbHRhKHsKICAgICAgICAgICAgICAgIHN0YXJ0OiB0aGlzLnBvcyhyb3cgKyBmcm9tLCBjb2x1bW4pLAogICAgICAgICAgICAgICAgZW5kOiB0aGlzLnBvcyhyb3cgKyB0bywgY29sdW1uID0gMCksCiAgICAgICAgICAgICAgICBhY3Rpb246IGRlbHRhLmFjdGlvbiwKICAgICAgICAgICAgICAgIGxpbmVzOiBjaHVuawogICAgICAgICAgICB9LCB0cnVlKTsKICAgICAgICB9CiAgICAgICAgZGVsdGEubGluZXMgPSBsaW5lcy5zbGljZShmcm9tKTsKICAgICAgICBkZWx0YS5zdGFydC5yb3cgPSByb3cgKyBmcm9tOwogICAgICAgIGRlbHRhLnN0YXJ0LmNvbHVtbiA9IGNvbHVtbjsKICAgICAgICB0aGlzLmFwcGx5RGVsdGEoZGVsdGEsIHRydWUpOwogICAgfTsKICAgIERvY3VtZW50LnByb3RvdHlwZS5yZXZlcnREZWx0YSA9IGZ1bmN0aW9uIChkZWx0YSkgewogICAgICAgIHRoaXMuJHNhZmVBcHBseURlbHRhKHsKICAgICAgICAgICAgc3RhcnQ6IHRoaXMuY2xvbmVQb3MoZGVsdGEuc3RhcnQpLAogICAgICAgICAgICBlbmQ6IHRoaXMuY2xvbmVQb3MoZGVsdGEuZW5kKSwKICAgICAgICAgICAgYWN0aW9uOiAoZGVsdGEuYWN0aW9uID09ICJpbnNlcnQiID8gInJlbW92ZSIgOiAiaW5zZXJ0IiksCiAgICAgICAgICAgIGxpbmVzOiBkZWx0YS5saW5lcy5zbGljZSgpCiAgICAgICAgfSk7CiAgICB9OwogICAgRG9jdW1lbnQucHJvdG90eXBlLmluZGV4VG9Qb3NpdGlvbiA9IGZ1bmN0aW9uIChpbmRleCwgc3RhcnRSb3cpIHsKICAgICAgICB2Y
126XIgbGluZXMgPSB0aGlzLiRsaW5lcyB8fCB0aGlzLmdldEFsbExpbmVzKCk7CiAgICAgICAgdmFyIG5ld2xpbmVMZW5ndGggPSB0aGlzLmdldE5ld0xpbmVDaGFyYWN0ZXIoKS5sZW5ndGg7CiAgICAgICAgZm9yICh2YXIgaSA9IHN0YXJ0Um93IHx8IDAsIGwgPSBsaW5lcy5sZW5ndGg7IGkgPCBsOyBpKyspIHsKICAgICAgICAgICAgaW5kZXggLT0gbGluZXNbaV0ubGVuZ3RoICsgbmV3bGluZUxlbmd0aDsKICAgICAgICAgICAgaWYgKGluZGV4IDwgMCkKICAgICAgICAgICAgICAgIHJldHVybiB7IHJvdzogaSwgY29sdW1uOiBpbmRleCArIGxpbmVzW2ldLmxlbmd0aCArIG5ld2xpbmVMZW5ndGggfTsKICAgICAgICB9CiAgICAgICAgcmV0dXJuIHsgcm93OiBsIC0gMSwgY29sdW1uOiBpbmRleCArIGxpbmVzW2wgLSAxXS5sZW5ndGggKyBuZXdsaW5lTGVuZ3RoIH07CiAgICB9OwogICAgRG9jdW1lbnQucHJvdG90eXBlLnBvc2l0aW9uVG9JbmRleCA9IGZ1bmN0aW9uIChwb3MsIHN0YXJ0Um93KSB7CiAgICAgICAgdmFyIGxpbmVzID0gdGhpcy4kbGluZXMgfHwgdGhpcy5nZXRBbGxMaW5lcygpOwogICAgICAgIHZhciBuZXdsaW5lTGVuZ3RoID0gdGhpcy5nZXROZXdMaW5lQ2hhcmFjdGVyKCkubGVuZ3RoOwogICAgICAgIHZhciBpbmRleCA9IDA7CiAgICAgICAgdmFyIHJvdyA9IE1hdGgubWluKHBvcy5yb3csIGxpbmVzLmxlbmd0aCk7CiAgICAgICAgZm9yICh2YXIgaSA9IHN0YXJ0Um93IHx8IDA7IGkgPCByb3c7ICsraSkKICAgICAgICAgICAgaW5kZXggKz0gbGluZXNbaV0ubGVuZ3RoICsgbmV3bGluZUxlbmd0aDsKICAgICAgICByZXR1cm4gaW5kZXggKyBwb3MuY29sdW1uOwogICAgfTsKICAgIERvY3VtZW50LnByb3RvdHlwZS4kc3BsaXQgPSBmdW5jdGlvbiAodGV4dCkgewogICAgICAgIHJldHVybiB0ZXh0LnNwbGl0KC9cclxufFxyfFxuLyk7CiAgICB9OwogICAgcmV0dXJuIERvY3VtZW50Owp9KCkpOwpEb2N1bWVudC5wcm90b3R5cGUuJGF1dG9OZXdMaW5lID0gIiI7CkRvY3VtZW50LnByb3RvdHlwZS4kbmV3TGluZU1vZGUgPSAiYXV0byI7Cm9vcC5pbXBsZW1lbnQoRG9jdW1lbnQucHJvdG90eXBlLCBFdmVudEVtaXR0ZXIpOwpleHBvcnRzLkRvY3VtZW50ID0gRG9jdW1lbnQ7Cgp9KTsKCmFjZS5kZWZpbmUoImFjZS9saWIvZGVlcF9jb3B5IixbXSwgZnVuY3Rpb24ocmVxdWlyZSwgZXhwb3J0cywgbW9kdWxlKXtleHBvcnRzLmRlZXBDb3B5ID0gZnVuY3Rpb24gZGVlcENvcHkob2JqKSB7CiAgICBpZiAodHlwZW9mIG9iaiAhPT0gIm9iamVjdCIgfHwgIW9iaikKICAgICAgICByZXR1cm4gb2JqOwogICAgdmFyIGNvcHk7CiAgICBpZiAoQXJyYXkuaXNBcnJheShvYmopKSB7CiAgICAgICAgY29weSA9IFtdOwogICAgICAgIGZvciAodmFyIGtleSA9IDA7IGtleSA8IG9iai5sZW5ndGg7IGtleSsrKSB7CiAgICAgICAgICAgIGNvcHlba2V5XSA9IGRlZXBDb3B5KG9ialtrZXldKTsKICAgICAgICB9CiAgICAgICAgcmV0dXJuIGNvcHk7CiAgICB9CiAgICBpZiAoT2JqZWN0LnByb3RvdHlwZS50b1N0cmluZy5jYWxsKG9iaikgIT09ICJbb2JqZWN0IE9iamVjdF0iKQogICAgICAgIHJldHVybiBvYmo7CiAgICBjb3B5ID0ge307CiAgICBmb3IgKHZhciBrZXkgaW4gb2JqKQogICAgICAgIGNvcHlba2V5XSA9IGRlZXBDb3B5KG9ialtrZXldKTsKICAgIHJldHVybiBjb3B5Owp9OwoKfSk7CgphY2UuZGVmaW5lKCJhY2UvbGliL2xhbmciLFtdLCBmdW5jdGlvbihyZXF1aXJlLCBleHBvcnRzLCBtb2R1bGUpeyJ1c2Ugc3RyaWN0IjsKZXhwb3J0cy5sYXN0ID0gZnVuY3Rpb24gKGEpIHsKICAgIHJldHVybiBhW2EubGVuZ3RoIC0gMV07Cn07CmV4cG9ydHMuc3RyaW5nUmV2ZXJzZSA9IGZ1bmN0aW9uIChzdHJpbmcpIHsKICAgIHJldHVybiBzdHJpbmcuc3BsaXQoIiIpLnJldmVyc2UoKS5qb2luKCIiKTsKfTsKZXhwb3J0cy5zdHJpbmdSZXBlYXQgPSBmdW5jdGlvbiAoc3RyaW5nLCBjb3VudCkgewogICAgdmFyIHJlc3VsdCA9ICcnOwogICAgd2hpbGUgKGNvdW50ID4gMCkgewogICAgICAgIGlmIChjb3VudCAmIDEpCiAgICAgICAgICAgIHJlc3VsdCArPSBzdHJpbmc7CiAgICAgICAgaWYgKGNvdW50ID4+PSAxKQogICAgICAgICAgICBzdHJpbmcgKz0gc3RyaW5nOwogICAgfQogICAgcmV0dXJuIHJlc3VsdDsKfTsKdmFyIHRyaW1CZWdpblJlZ2V4cCA9IC9eXHNccyovOwp2YXIgdHJpbUVuZFJlZ2V4cCA9IC9cc1xzKiQvOwpleHBvcnRzLnN0cmluZ1RyaW1MZWZ0ID0gZnVuY3Rpb24gKHN0cmluZykgewogICAgcmV0dXJuIHN0cmluZy5yZXBsYWNlKHRyaW1CZWdpblJlZ2V4cCwgJycpOwp9OwpleHBvcnRzLnN0cmluZ1RyaW1SaWdodCA9IGZ1bmN0aW9uIChzdHJpbmcpIHsKICAgIHJldHVybiBzdHJpbmcucmVwbGFjZSh0cmltRW5kUmVnZXhwLCAnJyk7Cn07CmV4cG9ydHMuY29weU9iamVjdCA9IGZ1bmN0aW9uIChvYmopIHsKICAgIHZhciBjb3B5ID0ge307CiAgICBmb3IgKHZhciBrZXkgaW4gb2JqKSB7CiAgICAgICAgY29weVtrZXldID0gb2JqW2tleV07CiAgICB9CiAgICByZXR1cm4gY29weTsKfTsKZXhwb3J0cy5jb3B5QXJyYXkgPSBmdW5jdGlvbiAoYXJyYXkpIHsKICAgIHZhciBjb3B5ID0gW107CiAgICBmb3IgKHZhciBpID0gMCwgbCA9IGFycmF5Lmxlbmd0aDsgaSA8IGw7IGkrKykgewogICAgICAgIGlmIChhcnJheVtpXSAmJiB0eXBlb2YgYXJyYXlbaV0gPT0gIm9iamVjdCIpCiAgICAgICAgICAgIGNvcHlbaV0gPSB0aGlzLmNvcHlPYmplY3QoYXJyYXlbaV0pOwogICAgICAgIGVsc2UKICAgICAgICAgICAgY29weVtpXSA9IGFycmF5W2ldOwogICAgfQogICAgcmV0dXJuIGNvcHk7Cn07CmV4cG9ydHMuZGVlcENvcHkgPSByZXF1aXJlKCIuL2RlZXBfY29weSIpLmRlZXBDb3B5OwpleHBvcnRzLmFycmF5VG9NYXAgPSBmdW5jdGlvbiAoYXJyKSB7CiAgICB2YXIgbWFwID0ge307CiAgICBmb3IgKHZhciBpID0gMDsgaSA8IGFyci5sZW5ndGg7IGkrKykgewogICAgICAgIG1hcFthcnJbaV1dID0gMTsKICAgIH0KICAgIHJldHVybiBtYXA7Cn07CmV4cG9ydHMuY3JlYXRlTWFwID0gZnVuY3Rpb24gKHByb3BzKSB7CiAgICB2Y
126XIgbWFwID0gT2JqZWN0LmNyZWF0ZShudWxsKTsKICAgIGZvciAodmFyIGkgaW4gcHJvcHMpIHsKICAgICAgICBtYXBbaV0gPSBwcm9wc1tpXTsKICAgIH0KICAgIHJldHVybiBtYXA7Cn07CmV4cG9ydHMuYXJyYXlSZW1vdmUgPSBmdW5jdGlvbiAoYXJyYXksIHZhbHVlKSB7CiAgICBmb3IgKHZhciBpID0gMDsgaSA8PSBhcnJheS5sZW5ndGg7IGkrKykgewogICAgICAgIGlmICh2YWx1ZSA9PT0gYXJyYXlbaV0pIHsKICAgICAgICAgICAgYXJyYXkuc3BsaWNlKGksIDEpOwogICAgICAgIH0KICAgIH0KfTsKZXhwb3J0cy5lc2NhcGVSZWdFeHAgPSBmdW5jdGlvbiAoc3RyKSB7CiAgICByZXR1cm4gc3RyLnJlcGxhY2UoLyhbLiorP14ke30oKXxbXF1cL1xcXSkvZywgJ1xcJDEnKTsKfTsKZXhwb3J0cy5lc2NhcGVIVE1MID0gZnVuY3Rpb24gKHN0cikgewogICAgcmV0dXJuICgiIiArIHN0cikucmVwbGFjZSgvJi9nLCAiJiMzODsiKS5yZXBsYWNlKC8iL2csICImIzM0OyIpLnJlcGxhY2UoLycvZywgIiYjMzk7IikucmVwbGFjZSgvPC9nLCAiJiM2MDsiKTsKfTsKZXhwb3J0cy5nZXRNYXRjaE9mZnNldHMgPSBmdW5jdGlvbiAoc3RyaW5nLCByZWdFeHApIHsKICAgIHZhciBtYXRjaGVzID0gW107CiAgICBzdHJpbmcucmVwbGFjZShyZWdFeHAsIGZ1bmN0aW9uIChzdHIpIHsKICAgICAgICBtYXRjaGVzLnB1c2goewogICAgICAgICAgICBvZmZzZXQ6IGFyZ3VtZW50c1thcmd1bWVudHMubGVuZ3RoIC0gMl0sCiAgICAgICAgICAgIGxlbmd0aDogc3RyLmxlbmd0aAogICAgICAgIH0pOwogICAgfSk7CiAgICByZXR1cm4gbWF0Y2hlczsKfTsKZXhwb3J0cy5kZWZlcnJlZENhbGwgPSBmdW5jdGlvbiAoZmNuKSB7CiAgICB2YXIgdGltZXIgPSBudWxsOwogICAgdmFyIGNhbGxiYWNrID0gZnVuY3Rpb24gKCkgewogICAgICAgIHRpbWVyID0gbnVsbDsKICAgICAgICBmY24oKTsKICAgIH07CiAgICB2YXIgZGVmZXJyZWQgPSBmdW5jdGlvbiAodGltZW91dCkgewogICAgICAgIGRlZmVycmVkLmNhbmNlbCgpOwogICAgICAgIHRpbWVyID0gc2V0VGltZW91dChjYWxsYmFjaywgdGltZW91dCB8fCAwKTsKICAgICAgICByZXR1cm4gZGVmZXJyZWQ7CiAgICB9OwogICAgZGVmZXJyZWQuc2NoZWR1bGUgPSBkZWZlcnJlZDsKICAgIGRlZmVycmVkLmNhbGwgPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgdGhpcy5jYW5jZWwoKTsKICAgICAgICBmY24oKTsKICAgICAgICByZXR1cm4gZGVmZXJyZWQ7CiAgICB9OwogICAgZGVmZXJyZWQuY2FuY2VsID0gZnVuY3Rpb24gKCkgewogICAgICAgIGNsZWFyVGltZW91dCh0aW1lcik7CiAgICAgICAgdGltZXIgPSBudWxsOwogICAgICAgIHJldHVybiBkZWZlcnJlZDsKICAgIH07CiAgICBkZWZlcnJlZC5pc1BlbmRpbmcgPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgcmV0dXJuIHRpbWVyOwogICAgfTsKICAgIHJldHVybiBkZWZlcnJlZDsKfTsKZXhwb3J0cy5kZWxheWVkQ2FsbCA9IGZ1bmN0aW9uIChmY24sIGRlZmF1bHRUaW1lb3V0KSB7CiAgICB2YXIgdGltZXIgPSBudWxsOwogICAgdmFyIGNhbGxiYWNrID0gZnVuY3Rpb24gKCkgewogICAgICAgIHRpbWVyID0gbnVsbDsKICAgICAgICBmY24oKTsKICAgIH07CiAgICB2YXIgX3NlbGYgPSBmdW5jdGlvbiAodGltZW91dCkgewogICAgICAgIGlmICh0aW1lciA9PSBudWxsKQogICAgICAgICAgICB0aW1lciA9IHNldFRpbWVvdXQoY2FsbGJhY2ssIHRpbWVvdXQgfHwgZGVmYXVsdFRpbWVvdXQpOwogICAgfTsKICAgIF9zZWxmLmRlbGF5ID0gZnVuY3Rpb24gKHRpbWVvdXQpIHsKICAgICAgICB0aW1lciAmJiBjbGVhclRpbWVvdXQodGltZXIpOwogICAgICAgIHRpbWVyID0gc2V0VGltZW91dChjYWxsYmFjaywgdGltZW91dCB8fCBkZWZhdWx0VGltZW91dCk7CiAgICB9OwogICAgX3NlbGYuc2NoZWR1bGUgPSBfc2VsZjsKICAgIF9zZWxmLmNhbGwgPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgdGhpcy5jYW5jZWwoKTsKICAgICAgICBmY24oKTsKICAgIH07CiAgICBfc2VsZi5jYW5jZWwgPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgdGltZXIgJiYgY2xlYXJUaW1lb3V0KHRpbWVyKTsKICAgICAgICB0aW1lciA9IG51bGw7CiAgICB9OwogICAgX3NlbGYuaXNQZW5kaW5nID0gZnVuY3Rpb24gKCkgewogICAgICAgIHJldHVybiB0aW1lcjsKICAgIH07CiAgICByZXR1cm4gX3NlbGY7Cn07CmV4cG9ydHMuc3VwcG9ydHNMb29rYmVoaW5kID0gZnVuY3Rpb24gKCkgewogICAgdHJ5IHsKICAgICAgICBuZXcgUmVnRXhwKCcoPzw9LiknKTsKICAgIH0KICAgIGNhdGNoIChlKSB7CiAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgfQogICAgcmV0dXJuIHRydWU7Cn07CmV4cG9ydHMuc2tpcEVtcHR5TWF0Y2ggPSBmdW5jdGlvbiAobGluZSwgbGFzdCwgc3VwcG9ydHNVbmljb2RlRmxhZykgewogICAgcmV0dXJuIHN1cHBvcnRzVW5pY29kZUZsYWcgJiYgbGluZS5jb2RlUG9pbnRBdChsYXN0KSA+IDB4ZmZmZiA/IDIgOiAxOwp9OwoKfSk7CgphY2UuZGVmaW5lKCJhY2Uvd29ya2VyL21pcnJvciIsW10sIGZ1bmN0aW9uKHJlcXVpcmUsIGV4cG9ydHMsIG1vZHVsZSkgewoidXNlIHN0cmljdCI7Cgp2YXIgRG9jdW1lbnQgPSByZXF1aXJlKCIuLi9kb2N1bWVudCIpLkRvY3VtZW50Owp2YXIgbGFuZyA9IHJlcXVpcmUoIi4uL2xpYi9sYW5nIik7CiAgICAKdmFyIE1pcnJvciA9IGV4cG9ydHMuTWlycm9yID0gZnVuY3Rpb24oc2VuZGVyKSB7CiAgICB0aGlzLnNlbmRlciA9IHNlbmRlcjsKICAgIHZhciBkb2MgPSB0aGlzLmRvYyA9IG5ldyBEb2N1bWVudCgiIik7CiAgICAKICAgIHZhciBkZWZlcnJlZFVwZGF0ZSA9IHRoaXMuZGVmZXJyZWRVcGRhdGUgPSBsYW5nLmRlbGF5ZWRDYWxsKHRoaXMub25VcGRhdGUuYmluZCh0aGlzKSk7CiAgICAKICAgIHZhciBfc2VsZiA9IHRoaXM7CiAgICBzZW5kZXIub24oImNoYW5nZSIsIGZ1bmN0aW9uKGUpIHsKICAgICAgICB2Y
126XIgZGF0YSA9IGUuZGF0YTsKICAgICAgICBpZiAoZGF0YVswXS5zdGFydCkgewogICAgICAgICAgICBkb2MuYXBwbHlEZWx0YXMoZGF0YSk7CiAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgZm9yICh2YXIgaSA9IDA7IGkgPCBkYXRhLmxlbmd0aDsgaSArPSAyKSB7CiAgICAgICAgICAgICAgICB2YXIgZCwgZXJyOyAKICAgICAgICAgICAgICAgIGlmIChBcnJheS5pc0FycmF5KGRhdGFbaSsxXSkpIHsKICAgICAgICAgICAgICAgICAgICBkID0ge2FjdGlvbjogImluc2VydCIsIHN0YXJ0OiBkYXRhW2ldLCBsaW5lczogZGF0YVtpKzFdfTsKICAgICAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgICAgICAgZCA9IHthY3Rpb246ICJyZW1vdmUiLCBzdGFydDogZGF0YVtpXSwgZW5kOiBkYXRhW2krMV19OwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICBpZiAoKGQuYWN0aW9uID09ICJpbnNlcnQiID8gZC5zdGFydCA6IGQuZW5kKS5yb3cgPj0gZG9jLiRsaW5lcy5sZW5ndGgpIHsKICAgICAgICAgICAgICAgICAgICBlcnIgPSBuZXcgRXJyb3IoIkludmFsaWQgZGVsdGEiKTsKICAgICAgICAgICAgICAgICAgICBlcnIuZGF0YSA9IHsKICAgICAgICAgICAgICAgICAgICAgICAgcGF0aDogX3NlbGYuJHBhdGgsCiAgICAgICAgICAgICAgICAgICAgICAgIGxpbmVzTGVuZ3RoOiBkb2MuJGxpbmVzLmxlbmd0aCwKICAgICAgICAgICAgICAgICAgICAgICAgc3RhcnQ6IGQuc3RhcnQsCiAgICAgICAgICAgICAgICAgICAgICAgIGVuZDogZC5lbmQKICAgICAgICAgICAgICAgICAgICB9OwogICAgICAgICAgICAgICAgICAgIHRocm93IGVycjsKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICBkb2MuYXBwbHlEZWx0YShkLCB0cnVlKTsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgICAgICBpZiAoX3NlbGYuJHRpbWVvdXQpCiAgICAgICAgICAgIHJldHVybiBkZWZlcnJlZFVwZGF0ZS5zY2hlZHVsZShfc2VsZi4kdGltZW91dCk7CiAgICAgICAgX3NlbGYub25VcGRhdGUoKTsKICAgIH0pOwp9OwoKKGZ1bmN0aW9uKCkgewogICAgCiAgICB0aGlzLiR0aW1lb3V0ID0gNTAwOwogICAgCiAgICB0aGlzLnNldFRpbWVvdXQgPSBmdW5jdGlvbih0aW1lb3V0KSB7CiAgICAgICAgdGhpcy4kdGltZW91dCA9IHRpbWVvdXQ7CiAgICB9OwogICAgCiAgICB0aGlzLnNldFZhbHVlID0gZnVuY3Rpb24odmFsdWUpIHsKICAgICAgICB0aGlzLmRvYy5zZXRWYWx1ZSh2YWx1ZSk7CiAgICAgICAgdGhpcy5kZWZlcnJlZFVwZGF0ZS5zY2hlZHVsZSh0aGlzLiR0aW1lb3V0KTsKICAgIH07CiAgICAKICAgIHRoaXMuZ2V0VmFsdWUgPSBmdW5jdGlvbihjYWxsYmFja0lkKSB7CiAgICAgICAgdGhpcy5zZW5kZXIuY2FsbGJhY2sodGhpcy5kb2MuZ2V0VmFsdWUoKSwgY2FsbGJhY2tJZCk7CiAgICB9OwogICAgCiAgICB0aGlzLm9uVXBkYXRlID0gZnVuY3Rpb24oKSB7CiAgICB9OwogICAgCiAgICB0aGlzLmlzUGVuZGluZyA9IGZ1bmN0aW9uKCkgewogICAgICAgIHJldHVybiB0aGlzLmRlZmVycmVkVXBkYXRlLmlzUGVuZGluZygpOwogICAgfTsKICAgIAp9KS5jYWxsKE1pcnJvci5wcm90b3R5cGUpOwoKfSk7CgphY2UuZGVmaW5lKCJhY2UvbW9kZS9qc29uL2pzb25fcGFyc2UiLFtdLCBmdW5jdGlvbihyZXF1aXJlLCBleHBvcnRzLCBtb2R1bGUpIHsKInVzZSBzdHJpY3QiOwoKICAgIHZhciBhdCwgICAgIC8vIFRoZSBpbmRleCBvZiB0aGUgY3VycmVudCBjaGFyYWN0ZXIKICAgICAgICBjaCwgICAgIC8vIFRoZSBjdXJyZW50IGNoYXJhY3RlcgogICAgICAgIGVzY2FwZWUgPSB7CiAgICAgICAgICAgICciJzogICciJywKICAgICAgICAgICAgJ1xcJzogJ1xcJywKICAgICAgICAgICAgJy8nOiAgJy8nLAogICAgICAgICAgICBiOiAgICAnXGInLAogICAgICAgICAgICBmOiAgICAnXGYnLAogICAgICAgICAgICBuOiAgICAnXG4nLAogICAgICAgICAgICByOiAgICAnXHInLAogICAgICAgICAgICB0OiAgICAnXHQnCiAgICAgICAgfSwKICAgICAgICB0ZXh0LAoKICAgICAgICBlcnJvciA9IGZ1bmN0aW9uIChtKSB7CgogICAgICAgICAgICB0aHJvdyB7CiAgICAgICAgICAgICAgICBuYW1lOiAgICAnU3ludGF4RXJyb3InLAogICAgICAgICAgICAgICAgbWVzc2FnZTogbSwKICAgICAgICAgICAgICAgIGF0OiAgICAgIGF0LAogICAgICAgICAgICAgICAgdGV4dDogICAgdGV4dAogICAgICAgICAgICB9OwogICAgICAgIH0sCgogICAgICAgIG5leHQgPSBmdW5jdGlvbiAoYykgewoKICAgICAgICAgICAgaWYgKGMgJiYgYyAhPT0gY2gpIHsKICAgICAgICAgICAgICAgIGVycm9yKCJFeHBlY3RlZCAnIiArIGMgKyAiJyBpbnN0ZWFkIG9mICciICsgY2ggKyAiJyIpOwogICAgICAgICAgICB9CgogICAgICAgICAgICBjaCA9IHRleHQuY2hhckF0KGF0KTsKICAgICAgICAgICAgYXQgKz0gMTsKICAgICAgICAgICAgcmV0dXJuIGNoOwogICAgICAgIH0sCgogICAgICAgIG51bWJlciA9IGZ1bmN0aW9uICgpIHsKCiAgICAgICAgICAgIHZhciBudW1iZXIsCiAgICAgICAgICAgICAgICBzdHJpbmcgPSAnJzsKCiAgICAgICAgICAgIGlmIChjaCA9PT0gJy0nKSB7CiAgICAgICAgICAgICAgICBzdHJpbmcgPSAnLSc7CiAgICAgICAgICAgICAgICBuZXh0KCctJyk7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgd2hpbGUgKGNoID49ICcwJyAmJiBjaCA8PSAnOScpIHsKICAgICAgICAgICAgICAgIHN0cmluZyArPSBjaDsKICAgICAgICAgICAgICAgIG5leHQoKTsKICAgICAgICAgICAgfQogICAgICAgICAgICBpZiAoY2ggPT09ICcuJykgewogICAgICAgICAgICAgICAgc3RyaW5nICs9ICcuJzsKICAgICAgICAgICAgICAgIHdoaWxlIChuZXh0KCkgJiYgY2ggPj0gJzAnICYmIGNoIDw9ICc5JykgewogICAgICAgICAgICAgICAgICAgIHN0cmluZyArPSBjaDsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQogICAgICAgICAgICBpZiAoY2ggPT09ICdlJyB8fCBjaCA9PT0gJ0UnKSB7CiAgICAgICAgICAgICAgICBzdHJpbmcgKz0gY2g7CiAgICAgICAgICAgICAgICBuZXh0KCk7CiAgICAgICAgICAgICAgICBpZiAoY2ggPT
12609ICctJyB8fCBjaCA9PT0gJysnKSB7CiAgICAgICAgICAgICAgICAgICAgc3RyaW5nICs9IGNoOwogICAgICAgICAgICAgICAgICAgIG5leHQoKTsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIHdoaWxlIChjaCA+PSAnMCcgJiYgY2ggPD0gJzknKSB7CiAgICAgICAgICAgICAgICAgICAgc3RyaW5nICs9IGNoOwogICAgICAgICAgICAgICAgICAgIG5leHQoKTsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQogICAgICAgICAgICBudW1iZXIgPSArc3RyaW5nOwogICAgICAgICAgICBpZiAoaXNOYU4obnVtYmVyKSkgewogICAgICAgICAgICAgICAgZXJyb3IoIkJhZCBudW1iZXIiKTsKICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgIHJldHVybiBudW1iZXI7CiAgICAgICAgICAgIH0KICAgICAgICB9LAoKICAgICAgICBzdHJpbmcgPSBmdW5jdGlvbiAoKSB7CgogICAgICAgICAgICB2YXIgaGV4LAogICAgICAgICAgICAgICAgaSwKICAgICAgICAgICAgICAgIHN0cmluZyA9ICcnLAogICAgICAgICAgICAgICAgdWZmZmY7CgogICAgICAgICAgICBpZiAoY2ggPT09ICciJykgewogICAgICAgICAgICAgICAgd2hpbGUgKG5leHQoKSkgewogICAgICAgICAgICAgICAgICAgIGlmIChjaCA9PT0gJyInKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIG5leHQoKTsKICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHN0cmluZzsKICAgICAgICAgICAgICAgICAgICB9IGVsc2UgaWYgKGNoID09PSAnXFwnKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIG5leHQoKTsKICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGNoID09PSAndScpIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIHVmZmZmID0gMDsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZvciAoaSA9IDA7IGkgPCA0OyBpICs9IDEpIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBoZXggPSBwYXJzZUludChuZXh0KCksIDE2KTsKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoIWlzRmluaXRlKGhleCkpIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHVmZmZmID0gdWZmZmYgKiAxNiArIGhleDsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0cmluZyArPSBTdHJpbmcuZnJvbUNoYXJDb2RlKHVmZmZmKTsKICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIGlmICh0eXBlb2YgZXNjYXBlZVtjaF0gPT09ICdzdHJpbmcnKSB7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdHJpbmcgKz0gZXNjYXBlZVtjaF07CiAgICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAoY2ggPT0gIlxuIiB8fCBjaCA9PSAiXHIiKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgICAgICAgICAgIHN0cmluZyArPSBjaDsKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICAgICAgZXJyb3IoIkJhZCBzdHJpbmciKTsKICAgICAgICB9LAoKICAgICAgICB3aGl0ZSA9IGZ1bmN0aW9uICgpIHsKCiAgICAgICAgICAgIHdoaWxlIChjaCAmJiBjaCA8PSAnICcpIHsKICAgICAgICAgICAgICAgIG5leHQoKTsKICAgICAgICAgICAgfQogICAgICAgIH0sCgogICAgICAgIHdvcmQgPSBmdW5jdGlvbiAoKSB7CgogICAgICAgICAgICBzd2l0Y2ggKGNoKSB7CiAgICAgICAgICAgIGNhc2UgJ3QnOgogICAgICAgICAgICAgICAgbmV4dCgndCcpOwogICAgICAgICAgICAgICAgbmV4dCgncicpOwogICAgICAgICAgICAgICAgbmV4dCgndScpOwogICAgICAgICAgICAgICAgbmV4dCgnZScpOwogICAgICAgICAgICAgICAgcmV0dXJuIHRydWU7CiAgICAgICAgICAgIGNhc2UgJ2YnOgogICAgICAgICAgICAgICAgbmV4dCgnZicpOwogICAgICAgICAgICAgICAgbmV4dCgnYScpOwogICAgICAgICAgICAgICAgbmV4dCgnbCcpOwogICAgICAgICAgICAgICAgbmV4dCgncycpOwogICAgICAgICAgICAgICAgbmV4dCgnZScpOwogICAgICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgICAgICBjYXNlICduJzoKICAgICAgICAgICAgICAgIG5leHQoJ24nKTsKICAgICAgICAgICAgICAgIG5leHQoJ3UnKTsKICAgICAgICAgICAgICAgIG5leHQoJ2wnKTsKICAgICAgICAgICAgICAgIG5leHQoJ2wnKTsKICAgICAgICAgICAgICAgIHJldHVybiBudWxsOwogICAgICAgICAgICB9CiAgICAgICAgICAgIGVycm9yKCJVbmV4cGVjdGVkICciICsgY2ggKyAiJyIpOwogICAgICAgIH0sCgogICAgICAgIHZhbHVlLCAgLy8gUGxhY2UgaG9sZGVyIGZvciB0aGUgdmFsdWUgZnVuY3Rpb24uCgogICAgICAgIGFycmF5ID0gZnVuY3Rpb24gKCkgewoKICAgICAgICAgICAgdmFyIGFycmF5ID0gW107CgogICAgICAgICAgICBpZiAoY2ggPT09ICdbJykgewogICAgICAgICAgICAgICAgbmV4dCgnWycpOwogICAgICAgICAgICAgICAgd2hpdGUoKTsKICAgICAgICAgICAgICAgIGlmIChjaCA9PT0gJ10nKSB7CiAgICAgICAgICAgICAgICAgICAgbmV4dCgnXScpOwogICAgICAgICAgICAgICAgICAgIHJldHVybiBhcnJheTsgICAvLyBlbXB0eSBhcnJheQogICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgd2hpbGUgKGNoKSB7CiAgICAgICAgICAgICAgICAgICAgYXJyYXkucHVzaCh2YWx1ZSgpKTsKICAgICAgICAgICAgICAgICAgICB3aGl0ZSgpOwogICAgICAgICAgICAgICAgICAgIGlmIChjaCA9PT0gJ10nKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIG5leHQoJ10nKTsKICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGFycmF5OwogICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgICBuZXh0KCcsJyk7CiAgICAgICAgICAgICAgICAgICAgd2hpdGUoKTsKICAgICAgICAgICAgICAgI
126H0KICAgICAgICAgICAgfQogICAgICAgICAgICBlcnJvcigiQmFkIGFycmF5Iik7CiAgICAgICAgfSwKCiAgICAgICAgb2JqZWN0ID0gZnVuY3Rpb24gKCkgewoKICAgICAgICAgICAgdmFyIGtleSwKICAgICAgICAgICAgICAgIG9iamVjdCA9IHt9OwoKICAgICAgICAgICAgaWYgKGNoID09PSAneycpIHsKICAgICAgICAgICAgICAgIG5leHQoJ3snKTsKICAgICAgICAgICAgICAgIHdoaXRlKCk7CiAgICAgICAgICAgICAgICBpZiAoY2ggPT09ICd9JykgewogICAgICAgICAgICAgICAgICAgIG5leHQoJ30nKTsKICAgICAgICAgICAgICAgICAgICByZXR1cm4gb2JqZWN0OyAgIC8vIGVtcHR5IG9iamVjdAogICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgd2hpbGUgKGNoKSB7CiAgICAgICAgICAgICAgICAgICAga2V5ID0gc3RyaW5nKCk7CiAgICAgICAgICAgICAgICAgICAgd2hpdGUoKTsKICAgICAgICAgICAgICAgICAgICBuZXh0KCc6Jyk7CiAgICAgICAgICAgICAgICAgICAgaWYgKE9iamVjdC5oYXNPd25Qcm9wZXJ0eS5jYWxsKG9iamVjdCwga2V5KSkgewogICAgICAgICAgICAgICAgICAgICAgICBlcnJvcignRHVwbGljYXRlIGtleSAiJyArIGtleSArICciJyk7CiAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICAgIG9iamVjdFtrZXldID0gdmFsdWUoKTsKICAgICAgICAgICAgICAgICAgICB3aGl0ZSgpOwogICAgICAgICAgICAgICAgICAgIGlmIChjaCA9PT0gJ30nKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIG5leHQoJ30nKTsKICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIG9iamVjdDsKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgbmV4dCgnLCcpOwogICAgICAgICAgICAgICAgICAgIHdoaXRlKCk7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICAgICAgZXJyb3IoIkJhZCBvYmplY3QiKTsKICAgICAgICB9OwoKICAgIHZhbHVlID0gZnVuY3Rpb24gKCkgewoKICAgICAgICB3aGl0ZSgpOwogICAgICAgIHN3aXRjaCAoY2gpIHsKICAgICAgICBjYXNlICd7JzoKICAgICAgICAgICAgcmV0dXJuIG9iamVjdCgpOwogICAgICAgIGNhc2UgJ1snOgogICAgICAgICAgICByZXR1cm4gYXJyYXkoKTsKICAgICAgICBjYXNlICciJzoKICAgICAgICAgICAgcmV0dXJuIHN0cmluZygpOwogICAgICAgIGNhc2UgJy0nOgogICAgICAgICAgICByZXR1cm4gbnVtYmVyKCk7CiAgICAgICAgZGVmYXVsdDoKICAgICAgICAgICAgcmV0dXJuIGNoID49ICcwJyAmJiBjaCA8PSAnOScgPyBudW1iZXIoKSA6IHdvcmQoKTsKICAgICAgICB9CiAgICB9OwoKICAgIHJldHVybiBmdW5jdGlvbiAoc291cmNlLCByZXZpdmVyKSB7CiAgICAgICAgdmFyIHJlc3VsdDsKCiAgICAgICAgdGV4dCA9IHNvdXJjZTsKICAgICAgICBhdCA9IDA7CiAgICAgICAgY2ggPSAnICc7CiAgICAgICAgcmVzdWx0ID0gdmFsdWUoKTsKICAgICAgICB3aGl0ZSgpOwogICAgICAgIGlmIChjaCkgewogICAgICAgICAgICBlcnJvcigiU3ludGF4IGVycm9yIik7CiAgICAgICAgfQoKICAgICAgICByZXR1cm4gdHlwZW9mIHJldml2ZXIgPT09ICdmdW5jdGlvbicgPyBmdW5jdGlvbiB3YWxrKGhvbGRlciwga2V5KSB7CiAgICAgICAgICAgIHZhciBrLCB2LCB2YWx1ZSA9IGhvbGRlcltrZXldOwogICAgICAgICAgICBpZiAodmFsdWUgJiYgdHlwZW9mIHZhbHVlID09PSAnb2JqZWN0JykgewogICAgICAgICAgICAgICAgZm9yIChrIGluIHZhbHVlKSB7CiAgICAgICAgICAgICAgICAgICAgaWYgKE9iamVjdC5oYXNPd25Qcm9wZXJ0eS5jYWxsKHZhbHVlLCBrKSkgewogICAgICAgICAgICAgICAgICAgICAgICB2ID0gd2Fsayh2YWx1ZSwgayk7CiAgICAgICAgICAgICAgICAgICAgICAgIGlmICh2ICE9PSB1bmRlZmluZWQpIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhbHVlW2tdID0gdjsKICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRlbGV0ZSB2YWx1ZVtrXTsKICAgICAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQogICAgICAgICAgICByZXR1cm4gcmV2aXZlci5jYWxsKGhvbGRlciwga2V5LCB2YWx1ZSk7CiAgICAgICAgfSh7Jyc6IHJlc3VsdH0sICcnKSA6IHJlc3VsdDsKICAgIH07Cn0pOwoKYWNlLmRlZmluZSgiYWNlL21vZGUvanNvbl93b3JrZXIiLFtdLCBmdW5jdGlvbihyZXF1aXJlLCBleHBvcnRzLCBtb2R1bGUpIHsKInVzZSBzdHJpY3QiOwoKdmFyIG9vcCA9IHJlcXVpcmUoIi4uL2xpYi9vb3AiKTsKdmFyIE1pcnJvciA9IHJlcXVpcmUoIi4uL3dvcmtlci9taXJyb3IiKS5NaXJyb3I7CnZhciBwYXJzZSA9IHJlcXVpcmUoIi4vanNvbi9qc29uX3BhcnNlIik7Cgp2YXIgSnNvbldvcmtlciA9IGV4cG9ydHMuSnNvbldvcmtlciA9IGZ1bmN0aW9uKHNlbmRlcikgewogICAgTWlycm9yLmNhbGwodGhpcywgc2VuZGVyKTsKICAgIHRoaXMuc2V0VGltZW91dCgyMDApOwp9OwoKb29wLmluaGVyaXRzKEpzb25Xb3JrZXIsIE1pcnJvcik7CgooZnVuY3Rpb24oKSB7CgogICAgdGhpcy5vblVwZGF0ZSA9IGZ1bmN0aW9uKCkgewogICAgICAgIHZhciB2YWx1ZSA9IHRoaXMuZG9jLmdldFZhbHVlKCk7CiAgICAgICAgdmFyIGVycm9ycyA9IFtdOwogICAgICAgIHRyeSB7CiAgICAgICAgICAgIGlmICh2YWx1ZSkKICAgICAgICAgICAgICAgIHBhcnNlKHZhbHVlKTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHZhciBwb3MgPSB0aGlzLmRvYy5pbmRleFRvUG9zaXRpb24oZS5hdC0xKTsKICAgICAgICAgICAgZXJyb3JzLnB1c2goewogICAgICAgICAgICAgICAgcm93OiBwb3Mucm93LAogICAgICAgICAgICAgICAgY29sdW1uOiBwb3MuY29sdW1uLAogICAgICAgICAgICAgICAgdGV4dDogZS5tZXNzYWdlLAogICAgICAgICAgICAgICAgdHlwZTogImVycm9yIgogICAgICAgICAgICB9KTsKICAgICAgICB9CiAgICAgICAgdGhpcy5zZW5kZXIuZW1pdCgiYW5ub3RhdGUiLCBlcnJvcnMpOwogICAgfTsKCn0pLmNhbGwoSnNvbldvcmtlci5wcm90b3R5cGUpOwoKfSk7Cg=="},3057:function(s,o,a){a.d(o,{AI:function(){return $},Tl:function(){return P},xC:function(){return O}}),a(1081);var c={en:{array:"Array",auto:"Auto",appendText:"Append",appendTitle:"Ap
126pend a new field with type 'auto' after this field (Ctrl+Shift+Ins)",appendSubmenuTitle:"Select the type of the field to be appended",appendTitleAuto:"Append a new field with type 'auto' (Ctrl+Shift+Ins)",ascending:"Ascending",ascendingTitle:"Sort the childs of this ${type} in ascending order",actionsMenu:"Click to open the actions menu (Ctrl+M)",cannotParseFieldError:"Cannot parse field into JSON",cannotParseValueError:"Cannot parse value into JSON",collapseAll:"Collapse all fields",compactTitle:"Compact JSON data, remove all whitespaces (Ctrl+Shift+I)",descending:"Descending",descendingTitle:"Sort the childs of this ${type} in descending order",drag:"Drag to move this field (Alt+Shift+Arrows)",duplicateKey:"duplicate key",duplicateText:"Duplicate",duplicateTitle:"Duplicate selected fields (Ctrl+D)",duplicateField:"Duplicate this field (Ctrl+D)",duplicateFieldError:"Duplicate field name",empty:"empty",expandAll:"Expand all fields",expandTitle:`Click to expand/collapse this field (Ctrl+E). 127Ctrl+Click to expand/collapse including all childs.`,formatTitle:"Format JSON data, with proper indentation and line feeds (Ctrl+I)",insert:"Insert",insertTitle:"Insert a new field with type 'auto' before this field (Ctrl+Ins)",insertSub:"Select the type of the field to be inserted",object:"Object",ok:"Ok",redo:"Redo (Ctrl+Shift+Z)",removeText:"Remove",removeTitle:"Remove selected fields (Ctrl+Del)",removeField:"Remove this field (Ctrl+Del)",repairTitle:"Repair JSON: fix quotes and escape characters, remove comments and JSONP notation, turn JavaScript objects into JSON.",searchTitle:"Search fields and values",searchNextResultTitle:"Next result (Enter)",searchPreviousResultTitle:"Previous result (Shift + Enter)",selectNode:"Select a node...",showAll:"show all",showMore:"show more",showMoreStatus:"displaying ${visibleChilds} of ${totalChilds} items.",sort:"Sort",sortTitle:"Sort the childs of this ${type}",sortTitleShort:"Sort contents",sortFieldLabel:"Field:",sortDirectionLabel:"Direction:",sortFieldTitle:"Select the nested field by which to sort the array or object",sortAscending:"Ascending",sortAscendingTitle:"Sort the selected field in ascending order",sortDescending:"Descending",sortDescendingTitle:"Sort the selected field in descending order",string:"String",transform:"Transform",transformTitle:"Filter, sort, or transform the childs of this ${type}",transformTitleShort:"Filter, sort, or transform contents",extract:"Extract",extractTitle:"Extract this ${type}",transformQueryTitle:"Enter a JMESPath query",transformWizardLabel:"Wizard",transformWizardFilter:"Filter",transformWizardSortBy:"Sort by",transformWizardSelectFields:"Select fields",transformQueryLabel:"Query",transformPreviewLabel:"Preview",type:"Type",typeTitle:"Change the type of this field",openUrl:"Ctrl+Click or Ctrl+Enter to open url in new window",undo:"Undo last action (Ctrl+Z)",validationCannotMove:"Cannot move a field into a child of itself",autoType:'Field type "auto". The field type is automatically determined from the value and can be a string, number, boolean, or null.',objectType:'Field type "object". An object contains an unordered set of key/value pairs.',arrayType:'Field type "array". An array contains an ordered collection of values.',stringType:'Field type "string". Field type is not determined from the value, but always returned as string.',modeEditorTitle:"Switch Editor Mode",modeCodeText:"Code",modeCodeTitle:"Switch to code highlighter",modeFormText:"Form",modeFormTitle:"Switch to form editor",modeTextText:"Text",modeTextTitle:"Switch to plain text editor",modeTreeText:"Tree",modeTreeTitle:"Switch to tree editor",modeViewText:"View",modeViewTitle:"Switch to tree view",modePreviewText:"Preview",modePreviewTitle:"Switch to preview mode",examples:"Examples",default:"Default",containsInvalidProperties:"Contains invalid properties",containsInvalidItems:"Contains invalid items"},es:{array:"Matriz",auto:"Auto",appendText:"Agregar",appendTitle:"Agregue un nuevo campo con el tipo 'auto' después de este campo (Ctrl + Shift + Ins)",appendSubmenuTitle:"Seleccione el tipo de campo que se agregará",a
127ppendTitleAuto:"Agregue un nuevo campo con el tipo 'auto' (Ctrl + Shift + Ins)",ascending:"Ascendente",ascendingTitle:"Ordene los elementos secundarios de este ${type} en orden ascendente",actionsMenu:"Haga clic para abrir el menú de acciones (Ctrl + M)",cannotParseFieldError:"No se puede parsear el campo en JSON",cannotParseValueError:"No se puede parsear el valor en JSON",collapseAll:"Contraer todos los campos",compactTitle:"Compactar datos JSON, eliminar todos los espacios en blanco (Ctrl + Shift + I)",descending:"Descendente",descendingTitle:"Ordene los hijos de este ${type} en orden descendente",drag:"Arrastre para mover este campo (Alt + Mayús + Flechas)",duplicateKey:"llave duplicada",duplicateText:"Duplicar",duplicateTitle:"Duplicar campos seleccionados (Ctrl + D)",duplicateField:"Duplicar este campo (Ctrl + D)",duplicateFieldError:"Nombre de campo duplicado",empty:"vacio",expandAll:"Expandir todos los campos",expandTitle:`Haga clic para expandir/contraer este campo (Ctrl + E). 128 Ctrl+Clic para expandir/contraer incluyendo todos los niños.`,formatTitle:"Formatee los datos JSON, con la sangrÃa y los avances de lÃnea adecuados (Ctrl + I)",insert:"Insertar",insertTitle:"Inserte un nuevo campo con el tipo 'auto' antes de este campo (Ctrl + Ins)",insertSub:"Seleccione el tipo de campo a insertar",object:"Objeto",ok:"Ok",redo:"Rehacer (Ctrl+Mayús+Z)",removeText:"Eliminar",removeTitle:"Eliminar campos seleccionados (Ctrl+Supr)",removeField:"Eliminar este campo (Ctrl+Supr)",repairTitle:"Reparar JSON: corrija comillas y caracteres de escape, elimine comentarios y notación JSONP, convierta objetos JavaScript en JSON.",searchTitle:"Campos de búsqueda y valores",searchNextResultTitle:"Siguiente resultado (Entrar)",searchPreviousResultTitle:"Resultado anterior (Shift + Enter)",selectNode:"Seleccione un nodo...",showAll:"mostrar todo",showMore:"mostrar más",showMoreStatus:"mostrando ${visibleChilds} de ${totalChilds} elementos.",sort:"Ordenar",sortTitle:"Ordene los hijos de este ${type}",sortTitleShort:"Ordenar contenidos",sortFieldLabel:"Campo:",sortDirectionLabel:"Dirección:",sortFieldTitle:"Seleccione el campo anidado por el cual ordenar la matriz u objeto",sortAscending:"Ascendente",sortAscendingTitle:"Ordenar el campo seleccionado en orden ascendente",sortDescending:"Descendente",sortDescendingTitle:"Ordenar por el campo seleccionado, en orden descendente",string:"Texto",transform:"Transformar",transformTitle:"Filtrar, ordenar o transformar los hijos de este ${type}",transformTitleShort:"Filtrar, ordenar o transformar contenidos",extract:"Extraer",extractTitle:"Extrae este ${type}",transformQueryTitle:"Ingrese una consulta JMESPath",transformWizardLabel:"Wizard",transformWizardFilter:"Filtro",transformWizardSortBy:"Ordenar por",transformWizardSelectFields:"Seleccione un campo",transformQueryLabel:"Consulta",transformPreviewLabel:"Vista Previa",type:"Tipo",typeTitle:"Cambiar el tipo de campo",openUrl:"Ctrl+Click o Ctrl+Enter para abrir la URL en una nueva ventana",undo:"Deshacer la última acción (Ctrl+Z)",validationCannotMove:"No se puede mover un campo a un hijo de sà mismo.",autoType:'Tipo de campo "auto". El tipo de campo se determina automáticamente a partir del valor y puede ser una cadena, un número, un booleano o un valor nulo.',objectType:'Tipo de campo "objeto". Un objeto contiene un conjunto desordenado de pares clave/valor.',arrayType:'Tipo de campo "matriz". Una matriz contiene una colección ordenada de valores.',stringType:'Tipo de campo "cadena". El tipo de campo no se determina a partir del valor, pero siempre se devuelve como una cadena.',modeEditorTitle:"Cambiar modo de editor",modeCodeText:"Código",modeCodeTitle:"Cambiar al resaltador de código",modeFormText:"Formulario",modeFormTitle:"Cambiar al editor de formularios",modeTextText:"Texto",modeTextTitle:"Cambiar al editor de texto sin formato",modeTreeText:"Ãrbol",modeTreeTitle:"Cambiar al editor de árbol",modeViewText:"Vista",modeViewTitle:"Cambiar a la vista de árbol",modePreviewText:"Vista Previa",modePreviewTitle:"Cambiar al modo de vista previa",examples:"Ejemplos",default:"Predeterminado",containsInvalidProperties:"Contiene propiedades no válidas",containsInvalidItems:"Contiene Ãtems no válidos"},"zh-CN":{array:"æ°ç»",auto:"èªå¨",appendText:"追å ",appendTitle:"卿¤å段å追å ä¸ä¸ªç±»å为âautoâçæ°åæ®µ (Ctrl+Shift+Ins)",appendSubmenuTitle:"éæ©è¦è¿½å çåæ®µç±»å",appendTitleAuto:"追å ç±»å为âautoâçæ°åæ®µ (Ctrl+Shift+Ins)",ascending:"ååº",ascendingTitle:"ååºæå${type}çåèç¹",actionsMenu:"ç¹å»æå¼å¨ä½èå(Ctrl+M)",cannotParseFieldError:"æ æ³å°
128åæ®µè§£æä¸ºJSON",cannotParseValueError:"æ æ³å°å¼è§£æä¸ºJSON",collapseAll:"ç¼©è¿ææå段",compactTitle:"å缩JSONæ°æ®ï¼å 餿æç©ºæ ¼ (Ctrl+Shift+I)",descending:"éåº",descendingTitle:"éåºæå${type}çåèç¹",drag:"ææ½ç§»å¨è¯¥èç¹(Alt+Shift+Arrows)",duplicateKey:"éå¤é®",duplicateText:"å¤å¶",duplicateTitle:"å¤å¶éä¸å段(Ctrl+D)",duplicateField:"å¤å¶è¯¥å段(Ctrl+D)",duplicateFieldError:"éå¤çåæ®µåç§°",empty:"æ¸ ç©º",expandAll:"å±å¼ææå段",expandTitle:`ç¹å» å±å¼/æ¶ç¼© è¯¥åæ®µ(Ctrl+E). 129Ctrl+Click å±å¼/æ¶ç¼© å 嫿æåèç¹.`,formatTitle:"使ç¨éå½ç缩è¿åæ¢è¡ç¬¦æ ¼å¼åJSONæ°æ® (Ctrl+I)",insert:"æå ¥",insertTitle:"卿¤å段åæå ¥ç±»å为âautoâçæ°åæ®µ (Ctrl+Ins)",insertSub:"éæ©è¦æå ¥çåæ®µç±»å",object:"对象",ok:"Ok",redo:"éå (Ctrl+Shift+Z)",removeText:"ç§»é¤",removeTitle:"ç§»é¤éä¸å段 (Ctrl+Del)",removeField:"ç§»é¤è¯¥å段 (Ctrl+Del)",repairTitle:"ä¿®å¤JSONï¼ä¿®å¤å¼å·å转ä¹ç¬¦ï¼å 餿³¨éåJSONP表示æ³ï¼å°JavaScript对象转æ¢ä¸ºJSONã",selectNode:"éæ©ä¸ä¸ªèç¹...",showAll:"å±ç¤ºå ¨é¨",showMore:"å±ç¤ºæ´å¤",showMoreStatus:"æ¾ç¤º${totalChilds}ç${visibleChilds}项ç®.",sort:"æåº",sortTitle:"æåº${type}çåèç¹",sortTitleShort:"å 容æåº",sortFieldLabel:"åæ®µï¼",sortDirectionLabel:"æ¹åï¼",sortFieldTitle:"éæ©ç¨äºå¯¹æ°ç»æå¯¹è±¡æåºçåµå¥å段",sortAscending:"ååºæåº",sortAscendingTitle:"æç §è¯¥å段ååºæåº",sortDescending:"éåºæåº",sortDescendingTitle:"æç §è¯¥å段éåºæåº",string:"å符串",transform:"忢",transformTitle:"çéï¼æåºï¼æè 转æ¢${type}çåèç¹",transformTitleShort:"çéï¼æåºï¼æè 转æ¢å 容",extract:"æå",extractTitle:"æåè¿ä¸ª ${type}",transformQueryTitle:"è¾å ¥JMESPathæ¥è¯¢",transformWizardLabel:"å导",transformWizardFilter:"çé",transformWizardSortBy:"æåº",transformWizardSelectFields:"鿩忮µ",transformQueryLabel:"æ¥è¯¢",transformPreviewLabel:"é¢è§",type:"ç±»å",typeTitle:"æ´æ¹å段类å",openUrl:"Ctrl+Click æè Ctrl+Enter 卿°çªå£æå¼é¾æ¥",undo:"æ¤é䏿¬¡å¨ä½ (Ctrl+Z)",validationCannotMove:"æ æ³å°åæ®µç§»å ¥å ¶åèç¹",autoType:'åæ®µç±»å "auto". åæ®µç±»åç±å¼èªå¨ç¡®å® å¯ä»¥ä¸º stringï¼numberï¼booleanï¼æè null.',objectType:'åæ®µç±»å "object". 对象å å«ä¸ç»æ åºçé®/å¼å¯¹.',arrayType:'åæ®µç±»å "array". æ°ç»å å«å¼çæåºéå.',stringType:'åæ®µç±»å "string". åæ®µç±»åç±å¼èªå¨ç¡®å®ï¼ä½å§ç»ä½ä¸ºå符串è¿å.',modeCodeText:"代ç ",modeCodeTitle:"忢è³ä»£ç é«äº®",modeFormText:"表å",modeFormTitle:"忢è³è¡¨åç¼è¾",modeTextText:"ææ¬",modeTextTitle:"åæ¢è³ææ¬ç¼è¾",modeTreeText:"æ ",modeTreeTitle:"åæ¢è³æ ç¼è¾",modeViewText:"è§å¾",modeViewTitle:"åæ¢è³æ è§å¾",modePreviewText:"é¢è§",modePreviewTitle:"忢è³é¢è§æ¨¡å¼",examples:"ä¾å",default:"缺ç",containsInvalidProperties:"å 嫿 æç屿§",containsInvalidItems:"å 嫿 æé¡¹ç®"},"pt-BR":{array:"Lista",auto:"Automatico",appendText:"Adicionar",appendTitle:"Adicionar novo campo com tipo 'auto' depois deste campo (Ctrl+Shift+Ins)",appendSubmenuTitle:"Selecione o tipo do campo a ser adicionado",appendTitleAuto:"Adicionar novo campo com tipo 'auto' (Ctrl+Shift+Ins)",ascending:"Ascendente",ascendingTitle:"Organizar filhor do tipo ${type} em crescente",actionsMenu:"Clique para abrir o menu de ações (Ctrl+M)",cannotParseFieldError:"Não é possÃvel analisar o campo no JSON",cannotParseValueError:"Não é possÃvel analisar o valor em JSON",collapseAll:"Fechar todos campos",compactTitle:"Dados JSON compactos, remova todos os espaços em branco (Ctrl+Shift+I)",descending:"Descendente",descendingTitle:"Organizar o filhos do tipo ${type} em decrescente",duplicateKey:"chave duplicada",drag:"Arraste para mover este campo (Alt+Shift+Arrows)",duplicateText:"Duplicar",duplicateTitle:"Duplicar campos selecionados (Ctrl+D)",duplicateField:"Duplicar este campo (Ctrl+D)",duplicateFieldError:"Nome do campo duplicado",empty:"vazio",expandAll:"Expandir todos campos",expandTitle:`Clique para expandir/encolher este campo (Ctrl+E). 130Ctrl+Click para expandir/encolher incluindo todos os filhos.`,formatTitle:"Formate dados JSON, com recuo e feeds de linha adequados (Ctrl+I)",insert:"Inserir",insertTitle:"Inserir um novo campo do tipo 'auto' antes deste campo (Ctrl+Ins)",insertSub:"Selecionar o tipo de campo a ser inserido",object:"Objeto",ok:"Ok",redo:"Refazer (Ctrl+Shift+Z)",removeText:"Remover",removeTitle:"Remover campos selecionados (Ctrl+Del)",removeField:"Remover este campo (Ctrl+Del)",repairTitle:"Repare JSON: corrija aspas e caracteres de escape, remova comentários e notação JSONP, transforme objetos JavaScript em JSON.",selectNode:"Selecione um nódulo...",showAll:"mostrar todos",showMore:"mostrar mais",showMoreStatus:"exibindo ${visibleChilds} de ${totalChilds}
130 itens.",sort:"Organizar",sortTitle:"Organizar os filhos deste ${type}",sortTitleShort:"Organizar os filhos",sortFieldLabel:"Campo:",sortDirectionLabel:"Direção:",sortFieldTitle:"Selecione um campo filho pelo qual ordenar o array ou objeto",sortAscending:"Ascendente",sortAscendingTitle:"Ordenar o campo selecionado por ordem ascendente",sortDescending:"Descendente",sortDescendingTitle:"Ordenar o campo selecionado por ordem descendente",string:"Texto",transform:"Transformar",transformTitle:"Filtrar, ordenar ou transformar os filhos deste ${type}",transformTitleShort:"Filtrar, ordenar ou transformar conteúdos",transformQueryTitle:"Insira uma expressão JMESPath",transformWizardLabel:"Assistente",transformWizardFilter:"Filtro",transformWizardSortBy:"Ordenar por",transformWizardSelectFields:"Selecionar campos",transformQueryLabel:"Expressão",transformPreviewLabel:"Visualizar",type:"Tipo",typeTitle:"Mudar o tipo deste campo",openUrl:"Ctrl+Click ou Ctrl+Enter para abrir link em nova janela",undo:"Desfazer último ação (Ctrl+Z)",validationCannotMove:"Não pode mover um campo como filho dele mesmo",autoType:'Campo do tipo "auto". O tipo do campo é determinao automaticamente a partir do seu valor e pode ser texto, número, verdade/falso ou nulo.',objectType:'Campo do tipo "objeto". Um objeto contém uma lista de pares com chave e valor.',arrayType:'Campo do tipo "lista". Uma lista contem uma coleção de valores ordenados.',stringType:'Campo do tipo "string". Campo do tipo nao é determinado através do seu valor, mas sempre retornara um texto.',examples:"Exemplos",default:"Revelia",containsInvalidProperties:"Contém propriedades inválidas",containsInvalidItems:"Contém itens inválidos"},tr:{array:"Dizin",auto:"Otomatik",appendText:"Ekle",appendTitle:"Bu alanın altına 'otomatik' tipinde yeni bir alan ekle (Ctrl+Shift+Ins)",appendSubmenuTitle:"Eklenecek alanın tipini seç",appendTitleAuto:"'Otomatik' tipinde yeni bir alan ekle (Ctrl+Shift+Ins)",ascending:"Artan",ascendingTitle:"${type}'ın alt tiplerini artan düzende sırala",actionsMenu:"Aksiyon menüsünü açmak için tıklayın (Ctrl+M)",collapseAll:"Tüm alanları kapat",descending:"Azalan",descendingTitle:"${type}'ın alt tiplerini azalan düzende sırala",drag:"Bu alanı taÅımak için sürükleyin (Alt+Shift+Arrows)",duplicateKey:"Var olan anahtar",duplicateText:"AÅaÄıya kopyala",duplicateTitle:"Seçili alanlardan bir daha oluÅtur (Ctrl+D)",duplicateField:"Bu alandan bir daha oluÅtur (Ctrl+D)",duplicateFieldError:"Duplicate field name",cannotParseFieldError:"Alan JSON'a ayrıÅtırılamıyor",cannotParseValueError:"JSON'a deÄer ayrıÅtırılamıyor",empty:"boÅ",expandAll:"Tüm alanları aç",expandTitle:`Bu alanı açmak/kapatmak için tıkla (Ctrl+E). 131Alt alanlarda dahil tüm alanları açmak için Ctrl+Click `,insert:"Ekle",insertTitle:"Bu alanın üstüne 'otomatik' tipinde yeni bir alan ekle (Ctrl+Ins)",insertSub:"Araya eklenecek alanın tipini seç",object:"Nesne",ok:"Tamam",redo:"Yeniden yap (Ctrl+Shift+Z)",removeText:"Kaldır",removeTitle:"Seçilen alanları kaldır (Ctrl+Del)",removeField:"Bu alanı kaldır (Ctrl+Del)",selectNode:"Bir nesne seç...",showAll:"tümünü göster",showMore:"daha fazla göster",showMoreStatus:"${totalChilds} alanın ${visibleChilds} alt alanları gösteriliyor",sort:"Sırala",sortTitle:"${type}'ın alt alanlarını sırala",sortTitleShort:"İçerikleri sırala",sortFieldLabel:"Alan:",sortDirectionLabel:"Yön:",sortFieldTitle:"Diziyi veya nesneyi sıralamak için iç içe geçmiÅ alanı seçin",sortAscending:"Artan",sortAscendingTitle:"Seçili alanı artan düzende sırala",sortDescending:"Azalan",sortDescendingTitle:"Seçili alanı azalan düzende sırala",string:"Karakter Dizisi",transform:"DönüÅtür",transformTitle:"${type}'ın alt alanlarını filtrele, sırala veya dönüÅtür",transformTitleShort:"İçerikleri filterele, sırala veya dönüÅtür",transformQueryTitle:"JMESPath sorgusu gir",transformWizardLabel:"Sihirbaz",transformWizardFilter:"Filtre",transformWizardSortBy:"Sırala",transformWizardSelectFields:"Alanları seç",transformQueryLabel:"Sorgu",transformPreviewLabel:"Ãnizleme",type:"Tip",typeTitle:"Bu alanın tipini deÄiÅtir",openUrl:"URL'i yeni bir pencerede açmak için Ctrl+Click veya Ctrl+Enter",undo:"Son deÄiÅikliÄi geri al (Ctrl+Z)",validationCannotMove:"Alt alan olarak taÅınamıyor",autoType:'Alan tipi "otomatik". Alan türü otomatik olarak deÄerden belirlenirve bir dize, sayı, boolean veya null olabilir.',objectType:'Alan tipi "nesne". Bir nesne, sıralanmamıŠbir anahtar / deÄer çifti kümesi içerir.',arrayType:'Alan tipi "dizi". Bir dizi, düzenli deÄerler koleksiyonu içerir.',stringType:'Alan tipi "karakter dizisi". Alan türü deÄerden belirlenmez,ancak her zaman karakter dizisi olarak döndürülür.',modeCodeText:"Kod",modeCodeTitle:"Kod vurgulayıcıya geç",modeFormText:"Form",modeFormTitle:"Form düzenleyiciye geç",modeTextText:"Metin",modeTextTitle:"Düz metin düzenleyiciye geç",modeTreeText:"AÄaç",modeTreeTitle:"AÄaç düzenleyiciye geç",modeViewText:"Görünüm",modeViewTitle:"AÄaç görünümüne geç",examples:"Ãrnekler",default:"Varsayılan",containsInvalidProperties:"Geçersiz özellikler içeriyor",containsInvalidItems:"Geçersiz öÄeler içeriyor"},ja:{array:"é å",auto:"ãªã¼ã",appendText:"追å ",appendTitle:'次ã®ãã£ã¼ã«ãã«"ãªã¼ã"ã®ãã£ã¼ã«ãã追å (Ctrl+Shift+Ins)',appendSubmenuTitle:"追å ãããã£ã¼ã«ãã®åã鏿ãã¦ãã ãã",appendTitleAuto:'"ãªã¼ã"ã®ãã£ã¼ã«ãã追å (Ctrl+Shift+Ins)',ascending:"æé ",ascendingTitle:"${type}ã®åè¦ç´ ãæé ã«ä¸¦ã¹æ¿ã",actionsMenu:"ã¯ãªãã¯ãã¦ã¢ã¯ã·ã§ã³ã¡ãã¥ã¼ãéã (Ctrl+M)",collapseAll:"ãã¹ã¦ãæãããã",descending:"éé ",descendingTitle:"${type}ã®åè¦ç´ ãéé ã«ä¸¦ã¹æ¿ã",drag:"ãã©ãã°ãã¦é¸æä¸ã®ãã£ã¼ã«ããç§»å (Alt+Shift+Arrows)",duplicateKey:"è¤è£½ãã¼",duplicateText:"è¤è£½",duplicateTitle:"鏿ä¸ã®ãã£ã¼ã«ããè¤è£½ (Ctrl+D)",duplicateField:"鏿ä¸ã®ãã£ã¼ã«ããè¤è£½ (Ctrl+D)",duplicateFieldError:"ãã£ã¼ã«ãåãéè¤ãã¦ãã¾ã",cannotParseFieldError:"JSONã®ãã£ã¼ã«ããè§£æã§ãã¾ãã",cannotParseValueError:"JSONã®å¤ãè§£æã§ãã¾ãã",empty:"空",expandAll:"ãã¹ã¦ãå±é",expandTitle:`ã¯ãªãã¯ãã¦ãã£ã¼ã«ããå±é/æãããã (Ctrl+E). 132Ctrl+Click ã§ãã¹ã¦ã®åè¦ç´ ãå±é/æãããã`,insert:"æ¿å ¥",insertTitle:"鏿ä¸ã®ãã£ã¼ã«ãã®åã«æ°ãããã£ã¼ã«ããæ¿å ¥ (Ctrl+Ins)",insertSub:"æ¿å ¥ãããã£ã¼ã«ãã®åã鏿",object:"ãªãã¸ã§ã¯ã",ok:"å®è¡",redo:"ããç´ã (Ctrl+Shift+Z)",removeText:"åé¤",removeTitle:"鏿ä¸ã®ãã£ã¼ã«ããåé¤ (Ctrl+Del)",removeField:"鏿ä¸ã®ãã£ã¼ã«ããåé¤ (Ctrl+Del)",selectNode:"ãã¼ãã鏿...",showAll:"ãã¹ã¦ã表示",showMore:"ãã£ã¨è¦ã",showMoreStatus:"${totalChilds}åã®ã¢ã¤ãã ã®ãã¡ ${visibleChilds}åã表示ãã¦ãã¾ãã",sort:"ä¸¦ã¹æ¿ã",sortTitle:"${type}ã®åè¦ç´ ãä¸¦ã¹æ¿ã",sortTitleShort:"ä¸¦ã¹æ¿ã",sortFieldLabel:"ãã£ã¼ã«ã:",sortDirectionLabel:"é åº:",sortFieldTitle:"é åã¾ãã¯ãªãã¸ã§ã¯ããä¸¦ã³æ¿ããããã®ãã£ã¼ã«ãã鏿",sortAscending:"æé ",sortAscendingTitle:"鏿ä¸ã®ãã£ã¼ã«ããæé ã«ä¸¦ã³æ¿ã",sortDescending:"éé ",sortDescendingTitle:"鏿ä¸ã®ãã£ã¼ã«ããéé ã«ä¸¦ã³æ¿ã",string:"æåå",transform:"夿",transformTitle:"${type}ã®åè¦ç´ ããã£ã«ã¿ã¼ã»ä¸¦ã³æ¿ãã»å¤æãã",transformTitleShort:"å 容ããã£ã«ã¿ã¼ã»ä¸¦ã³æ¿ãã»å¤æãã",extract:"æ½åº",extractTitle:"${type}ãæ½åº",transformQueryTitle:"JMESPathã¯ã¨ãªãå ¥å",transformWizardLabel:"ã¦ã£ã¶ã¼ã",transformWizardFilter:"ãã£ã«ã¿ã¼",transformWizardSortBy:"ä¸¦ã³æ¿ã",transformWizardSelectFields:"ãã£ã¼ã«ãã鏿",transformQueryLabel:"ã¯ã¨ãª",transformPreviewLabel:"ãã¬ãã¥ã¼",type:"å",typeTitle:"鏿ä¸ã®ãã£ã¼ã«ãã®åã夿´",openUrl:"Ctrl+Click ã¾ã㯠Ctrl+Enter ã§ æ°è¦ã¦ã£ã³ãã¦ã§URLãéã",undo:"å ã«æ»ã (Ctrl+Z)",validationCannotMove:"åè¦ç´ ã«ç§»åã§ãã¾ãã ",autoType:"ãªã¼ãï¼ ãã£ã¼ã«ãã®åã¯å¤ããèªåçã«æ±ºå®ããã¾ãã (æååã»æ°å¤ã»ãã¼ã«ã»null)",objectType:"ãªãã¸ã§ã¯ãï¼ ãªãã¸ã§ã¯ãã¯é åºã決ã¾ã£ã¦ããªããã¼ã¨å¤ã®ãã¢çµã¿åããã§ãã",arrayType:"é åï¼ é åã¯é åºã決ã¾ã£ã¦ããå¤ã®éåä½ã§ãã",stringType:"æååï¼ ãã£ã¼ã«ãåã¯å¤ããæ±ºå®ããã¾ããããå¸¸ã«æååã¨ãã¦è¿ããã¾ãã",modeCodeText:"ã³ã¼ãã¢ã¼ã",modeCodeTitle:"ãã¤ã©ã¤ãã¢ã¼ãã«åãæ¿ã",modeFormText:"ãã©ã¼ã ã¢ã¼ã",modeFormTitle:"ãã©ã¼ã ã¢ã¼ãã«åãæ¿ã",modeTextText:"ããã¹ãã¢ã¼ã",modeTextTitle:"ããã¹ãã¢ã¼ãã«åãæ¿ã",modeTreeText:"ããªã¼ã¢ã¼ã",modeTreeTitle:"ããªã¼ã¢ã¼ãã«åãæ¿ã",modeViewText:"ãã¥ã¼ã¢ã¼ã",modeViewTitle:"ãã¥ã¼ã¢ã¼ãã«åãæ¿ã",modePreviewText:"ãã¬ãã¥ã¼",modePreviewTitle:"ãã¬ãã¥ã¼ã«åãæ¿ã",examples:"ä¾",default:"ããã©ã«ã",containsInvalidProperties:"ç¡å¹ãªããããã£ãå«ã¾ãã¦ãã¾ã",containsInvalidItems:"ç¡å¹ãªã¢ã¤ãã ãå«ã¾ãã¦ãã¾ã"},"fr-FR":{array:"Liste",auto:"Auto",appendText:"Ajouter",appendTitle:"Ajouter un champ de type 'auto' après ce champ (Ctrl+Shift+Ins)",appendSubmenuTitle:"Sélectionner le type du champ à ajouter",appendTitleAuto:"Ajouter un champ de type 'auto' (Ctrl+Shift+Ins)",ascending:"Ascendant",ascendingTitle:"Trier les enfants de ce ${type} par ordre ascendant",actionsMenu:"Ouvrir le menu des actions (Ctrl+M)",collapseAll:"Regrouper",descending:"Descendant",desce
132ndingTitle:"Trier les enfants de ce ${type} par ordre descendant",drag:"Déplacer (Alt+Shift+Arrows)",duplicateKey:"Dupliquer la clé",duplicateText:"Dupliquer",duplicateTitle:"Dupliquer les champs sélectionnés (Ctrl+D)",duplicateField:"Dupliquer ce champ (Ctrl+D)",duplicateFieldError:"Dupliquer le nom de champ",cannotParseFieldError:"Champ impossible à parser en JSON",cannotParseValueError:"Valeur impossible à parser en JSON",empty:"vide",expandAll:"Ãtendre",expandTitle:`Ãtendre/regrouper ce champ (Ctrl+E). 133Ctrl+Click pour étendre/regrouper avec tous les champs.`,insert:"Insérer",insertTitle:"Insérer un champ de type 'auto' avant ce champ (Ctrl+Ins)",insertSub:"Sélectionner le type de champ à insérer",object:"Objet",ok:"Ok",redo:"Rejouer (Ctrl+Shift+Z)",removeText:"Supprimer",removeTitle:"Supprimer les champs sélectionnés (Ctrl+Del)",removeField:"Supprimer ce champ (Ctrl+Del)",searchTitle:"Rechercher champs et valeurs",searchNextResultTitle:"Résultat suivant (Enter)",searchPreviousResultTitle:"Résultat précédent (Shift + Enter)",selectNode:"Sélectionner un nÅud...",showAll:"voir tout",showMore:"voir plus",showMoreStatus:"${visibleChilds} éléments affichés de ${totalChilds}.",sort:"Trier",sortTitle:"Trier les champs de ce ${type}",sortTitleShort:"Trier",sortFieldLabel:"Champ:",sortDirectionLabel:"Direction:",sortFieldTitle:"Sélectionner les champs permettant de trier les listes et objet",sortAscending:"Ascendant",sortAscendingTitle:"Trier les champs sélectionnés par ordre ascendant",sortDescending:"Descendant",sortDescendingTitle:"Trier les champs sélectionnés par ordre descendant",string:"Chaîne",transform:"Transformer",transformTitle:"Filtrer, trier, or transformer les enfants de ce ${type}",transformTitleShort:"Filtrer, trier ou transformer le contenu",extract:"Extraire",extractTitle:"Extraire ce ${type}",transformQueryTitle:"Saisir une requête JMESPath",transformWizardLabel:"Assistant",transformWizardFilter:"Filtrer",transformWizardSortBy:"Trier par",transformWizardSelectFields:"Sélectionner les champs",transformQueryLabel:"Requête",transformPreviewLabel:"Prévisualisation",type:"Type",typeTitle:"Changer le type de ce champ",openUrl:"Ctrl+Click ou Ctrl+Enter pour ouvrir l'url dans une autre fenêtre",undo:"Annuler la dernière action (Ctrl+Z)",validationCannotMove:"Cannot move a field into a child of itself",autoType:'Champe de type "auto". Ce type de champ est automatiquement déterminé en fonction de la valeur et peut être de type "chaîne", "nombre", "booléen" ou null.',objectType:'Champ de type "objet". Un objet contient un ensemble non ordonné de paires clé/valeur.',arrayType:'Champ de type "liste". Une liste contient une collection ordonnée de valeurs.',stringType:`Champ de type "chaîne". Ce type de champ n'est pas déterminé en fonction de la valeur, mais retourne systématiquement une chaîne de caractères.`,modeEditorTitle:"Changer mode d'édition",modeCodeText:"Code",modeCodeTitle:"Activer surlignage code",modeFormText:"Formulaire",modeFormTitle:"Activer formulaire",modeTextText:"Texte",modeTextTitle:"Activer éditeur texte",modeTreeText:"Arbre",modeTreeTitle:"Activer éditeur arbre",modeViewText:"Lecture seule",modeViewTitle:"Activer vue arbre",modePreviewText:"Prévisualisation",modePreviewTitle:"Activer mode prévisualiser",examples:"Exemples",default:"Défaut",containsInvalidProperties:"Contient des propriétés non valides",containsInvalidItems:"Contient des éléments invalides"},de:{array:"Auflistung",auto:"Auto",appendText:"anhängen",appendTitle:"Fügen Sie nach diesem Feld ein neues Feld mit dem Typ 'auto' ein (Strg+Umschalt+Ein)",appendSubmenuTitle:"Wählen Sie den Typ des neuen Feldes",appendTitleAuto:"Ein neues Feld vom Typ 'auto' hinzufügen (Strg+Umschalt+Ein)",ascending:"Aufsteigend",ascendingTitle:"Sortieren Sie die Elemente dieses ${type} in aufsteigender Reihenfolge",actionsMenu:"Klicken Sie zum Ãffnen des Aktionsmenüs (Strg+M)",cannotParseFieldError:"Feld kann nicht in JSON geparst werden",cannotParseValueError:"Wert kann nicht in JSON geparst werden",collapseAll:"Alle Felder zuklappen",compactTitle:"JSON-Daten verdichten, alle Leerzeichen entfernen (Strg+Umschalt+\\)",descending:"Absteigend",descendingTitle:"Sortieren Sie die Elemente dieses ${type} in absteigender Reihenfolge",drag:"Ziehen, um dieses Feld zu verschieben (Alt+Umschalt+Pfeile)",duplicateKey:"Doppelter Schlüssel",duplicateText:"Duplikat",duplicateTitle:"Ausgewählte Felder duplizieren (Strg+D)",duplicateField:"Dieses Feld duplizieren (Strg+D)",duplicateFieldError:"Doppelter Feldname",empty:"leer",expandAll:"Alle Felder anzeigen",expandTitle:`Klicken Sie, um dieses Feld zu erweitern/zu kollabieren (Strg+E). 134Strg+Klicken Sie, um dieses Feld einschlieÃlich aller Elemente zu erweitern/zu kollabieren.`,formatTitle:"JSON-Daten mit korrekter Einrückung und Zeilenvorschüben formatieren (Strg+\\)",insert:"einfügen",insertTitle:"Fügen Sie vor diesem Feld ein neues Feld mit dem Typ 'auto' ein (Strg+Einfg)",insertSub:"Wählen Sie den Typ des neuen Feldes",object:"Objekt",ok:"Ok",redo:"Wiederholen (Strg+Umschalt+Z)",removeText:"entfernen",removeTitle:"Ausgewählte Felder entfernen (Strg+Entf)",removeField:"Dieses Feld entfernen (Strg+Entf)",repairTitle:"JSON reparieren: Anführungszeichen und Escape-Zeichen korrigieren, Kommentare und JSONP-Notation entfernen, JavaScript-Objekte in JSON umwandeln.",searchTitle:"Suchfelder und Werte",searchNextResultTitle:"Nächstes Ergebnis (Enter)",searchPreviousResultTitle:"Vorheriges Ergebnis (Umschalt + Eingabe)",selectNode:"Wählen Sie einen Knoten aus...",showAll:"alle anzeigen",showMore:"mehr anzeigen",showMoreStatus:"Anzeige von ${visibleChilds} von ${totalChilds}-Elementen.",sort:"Sortieren",sortTitle:"Sortieren Sie die Elemente dieses ${type}",sortTitleShort:"Inhalt sortieren",sortFieldLabel:"Feld:",sortDirectionLabel:"Richtung:",sortFieldTitle:"Wählen Sie das verschachtelte Feld, nach dem das Array oder Objekt sortiert werden soll.",sortAscending:"Aufsteigend",sortAscendingTitle:"Sortieren Sie das ausgewählte Feld in aufsteigender Reihenfolge",sortDescending:"Absteigend",sortDescendingTitle:"Sortieren Sie das ausgewählte Feld in absteigender Reihenfolge",string:"Zeichenfolge",transform:"Verwandeln",transformTitle:"Die Elemente dieses ${type} filtern, sortieren oder transformieren",transformTitleShort:"Inhalte filtern, sortieren oder transformieren",extract:"Auszug",extractTitle:"Extrahieren Sie diesen ${type}",transformQueryTitle:"Eine JMESPath-Abfrage eingeben",transformWizardLabel:"Zauberer",transformWizardFilter:"Filter",transformWizardSortBy:"Sortieren nach",transformWizardSelectFields:"Felder auswählen",transformQueryLabel:"Anfrage",transformPreviewLabel:"Vorschau",type:"Geben Sie ein.",typeTitle:"Ãndern Sie den Typ dieses Feldes",openUrl:"Strg+Klicken oder Strg+Eingabe, um die URL in einem neuen Fenster zu öffnen",undo:"Letzte Aktion rückgängig machen (Strg+Z)",validationCannotMove:"Kann ein Feld nicht in ein Kind seiner selbst verschieben",autoType:'Feldtyp "auto". Der Feldtyp wird automatisch aus dem Wert bestimmt und kann ein String, eine Zahl, boolesch oder null sein.',objectType:'Feldtyp "Objekt". Ein Objekt enthält eine ungeordnete Menge von Schlüssel/Wert-Paaren.',arrayType:'Feldtyp "Array". Ein Array enthält eine geordnete Sammlung von Werten.',stringType:'Feldtyp "Zeichenfolge". Der Feldtyp wird nicht aus dem Wert bestimmt, sondern immer als Zeichenfolge zurückgegeben.',modeEditorTitle:"Editor-Modus umschalten",modeCodeText:"Code",modeCodeTitle:"Umschalten auf Code-Highlighter",modeFormText:"Formular",modeFormTitle:"Zum Formular-Editor wechseln",modeTextText:"Text",modeTextTitle:"Zum Editor für einfachen Text wechseln",modeTreeText:"Baum",modeTreeTitle:"Zum Baum-Editor wechseln",modeViewText:"Siehe",modeViewTitle:"Zur Baumansicht wechseln",modePreviewText:"Vorschau",modePreviewTitle:"In den Vorschau-Modus wechseln",examples:"Beispiele",default:"StandardmäÃig",containsInvalidProperties:"Enthält ungültige Eigenschaften",containsInvalidItems:"Enthält ungültige Elemente"},ru:{array:"ÐаÑÑив",auto:"ÐвÑо",appendText:"ÐобавиÑÑ",appendTitle:"ÐобавиÑÑ Ð½Ð¾Ð²Ð¾Ðµ поле Ñ Ñипом 'авÑо' поÑле ÑÑого Ð¿Ð¾Ð»Ñ (Ctrl+Shift+Ins)",appendSubmenuTitle:"ÐÑбÑаÑÑ Ñип Ð¿Ð¾Ð»Ñ Ð´Ð»Ñ Ð´Ð¾Ð±Ð°Ð²Ð»ÐµÐ½Ð¸Ñ",appendTitleAuto:"ÐобавиÑÑ Ð½Ð¾Ð²Ð¾Ðµ поле Ñ Ñипом 'авÑо' (Ctrl+Shift+Ins)",ascending:"Ðо возÑаÑÑаниÑ",ascendingTitle:"СоÑÑиÑоваÑÑ ${type}
134 по возÑаÑÑаниÑ",actionsMenu:"ÐажмиÑе Ð´Ð»Ñ Ð¾ÑкÑÑÑÐ¸Ñ Ð¼ÐµÐ½Ñ Ð´ÐµÐ¹ÑÑвий (Ctrl+M)",cannotParseFieldError:"Ðевозможно пÑеобÑазоваÑÑ Ð¿Ð¾Ð»Ðµ в JSON",cannotParseValueError:"Ðевозможно пÑеобÑазоваÑÑ Ð·Ð½Ð°Ñение в JSON",collapseAll:"СвеÑнÑÑÑ Ð²Ñе",compactTitle:"ÐиниÑикаÑÐ¸Ñ JSON (Ctrl+Shift+I)",descending:"Ðо ÑбÑваниÑ",descendingTitle:"СоÑÑиÑоваÑÑ ${type} по ÑбÑваниÑ",drag:"ÐоÑÑниÑе Ð´Ð»Ñ Ð¿ÐµÑемеÑÐµÐ½Ð¸Ñ ÑÑого Ð¿Ð¾Ð»Ñ (Alt+Shift+Arrows)",duplicateKey:"повÑоÑÑÑÑийÑÑ ÐºÐ»ÑÑ",duplicateText:"ÐÑблиÑоваÑÑ",duplicateTitle:"ÐÑблиÑование полей (Ctrl+D)",duplicateField:"ÐÑблиÑоваÑÑ Ð¿Ð¾Ð»Ðµ (Ctrl+D)",duplicateFieldError:"ÐÑблиÑование Ð½Ð°Ð·Ð²Ð°Ð½Ð¸Ñ Ð¿Ð¾Ð»Ñ",empty:"пÑÑÑой",expandAll:"РазвеÑнÑÑÑ Ð²Ñе",expandTitle:`ÐажмиÑе Ð´Ð»Ñ ÑаÑкÑÑÑиÑ/ÑкÑÑÑÐ¸Ñ Ð¿Ð¾Ð»Ñ (Ctrl+E) 135или Ctrl+Click Ð´Ð»Ñ ÑаÑкÑÑÑиÑ/ÑкÑÑÑÐ¸Ñ Ð²ÑÐµÑ Ð¿Ð¾Ñомков.`,formatTitle:"ФоÑмаÑиÑование JSON (Ctrl+I)",insert:"ÐÑÑавиÑÑ",insertTitle:"ÐÑÑавиÑÑ Ð½Ð¾Ð²Ð¾Ðµ поле Ñ Ñипом 'авÑо' пеÑед ÑÑим полем (Ctrl+Ins)",insertSub:"ÐÑбÑаÑÑ Ñип Ð¿Ð¾Ð»Ñ Ð´Ð»Ñ Ð²ÑÑавки",object:"ÐбÑекÑ",ok:"ÐÐ",redo:"ÐовÑоÑиÑÑ (Ctrl+Shift+Z)",removeText:"УдалиÑÑ",removeTitle:"УдалиÑÑ Ð²ÑбÑаннÑе Ð¿Ð¾Ð»Ñ (Ctrl+Del)",removeField:"УдалиÑÑ Ð¿Ð¾Ð»Ðµ (Ctrl+Del)",repairTitle:"ÐоÑÑÑановиÑе JSON: иÑпÑавÑÑе кавÑÑки и escape-ÑимволÑ, ÑдалиÑе комменÑаÑии и ноÑаÑÐ¸Ñ JSONP, модиÑиÑиÑÑйÑе обÑекÑÑ JavaScript в JSON.",searchTitle:"ÐоиÑк",searchNextResultTitle:"СледÑÑÑий ÑезÑлÑÑÐ°Ñ (Enter)",searchPreviousResultTitle:"ÐÑедÑдÑÑий ÑезÑлÑÑÐ°Ñ (Shift + Enter)",selectNode:"ÐÑÐ±Ð¾Ñ Ñзла...",showAll:"показаÑÑ Ð²Ñе",showMore:"болÑÑе",showMoreStatus:"${visibleChilds} из ${totalChilds}",sort:"СоÑÑиÑовка",sortTitle:"СоÑÑиÑовка поÑомков Ñипа ${type}",sortTitleShort:"СоÑÑиÑовка ÑодеÑжимого",sortFieldLabel:"Ðоле:",sortDirectionLabel:"ÐапÑавление:",sortFieldTitle:"ÐÑбеÑиÑе поле Ð´Ð»Ñ ÑоÑÑиÑовки маÑÑива или обÑекÑа",sortAscending:"Ðо возÑаÑÑаниÑ",sortAscendingTitle:"СоÑÑиÑовка вÑбÑанного поÑÑ Ð¿Ð¾ возÑаÑÑаниÑ",sortDescending:"Ðо ÑбÑваниÑ",sortDescendingTitle:"СоÑÑиÑовка вÑбÑанного поÑÑ Ð¿Ð¾ ÑбÑваниÑ",string:"СÑÑока",transform:"ÐодиÑикаÑиÑ",transformTitle:"ФилÑÑÑаÑиÑ, ÑоÑÑиÑовка или модиÑикаÑÐ¸Ñ Ð´Ð°Ð½Ð½ÑÑ Ñипа ${type}",transformTitleShort:"ФилÑÑÑаÑиÑ, ÑоÑÑиÑовка или модиÑикаÑÐ¸Ñ Ð´Ð°Ð½Ð½ÑÑ ",extract:"ÐзвлеÑение",extractTitle:"ÐзвлеÑÑ Ñип ${type}",transformQueryTitle:"ÐведиÑе JMESpath запÑоÑ",transformWizardLabel:"ÐаÑÑеÑ",transformWizardFilter:"ФилÑÑÑ",transformWizardSortBy:"СоÑÑиÑовка",transformWizardSelectFields:"ÐолÑ",transformQueryLabel:"ÐапÑоÑ",transformPreviewLabel:"ÐÑоÑмоÑÑ",type:"Тип",typeTitle:"ÐзмениÑÑ Ñип ÑÑого полÑ",openUrl:"Ctrl+Click или Ctrl+Enter Ð´Ð»Ñ Ð¾ÑкÑÑÑÐ¸Ñ url в новом окне",undo:"ÐÑмениÑÑ (Ctrl+Z)",validationCannotMove:"Ðоле не Ð¼Ð¾Ð¶ÐµÑ Ð±ÑÑÑ Ð¿ÐµÑемеÑено в поÑомка",autoType:"Тип Ð¿Ð¾Ð»Ñ Ð°Ð²ÑомаÑиÑеÑки опÑеделÑеÑÑÑ Ð¿Ð¾ знаÑÐµÐ½Ð¸Ñ Ð¸ Ð¼Ð¾Ð¶ÐµÑ Ð±ÑÑÑ ÑÑÑокой, ÑиÑлом, логиÑеÑким знаÑением или null.",objectType:"ÐбÑÐµÐºÑ ÑодеÑÐ¶Ð¸Ñ Ð½ÐµÑпоÑÑдоÑеннÑй Ð½Ð°Ð±Ð¾Ñ Ð¿Ð°Ñ ÐºÐ»ÑÑ/знаÑение.",arrayType:"ÐаÑÑив ÑодеÑÐ¶Ð¸Ñ ÑпоÑÑдоÑеннÑй Ð½Ð°Ð±Ð¾Ñ Ð·Ð½Ð°Ñений.",stringType:"Тип Ð¿Ð¾Ð»Ñ Ð½Ðµ опÑеделÑеÑÑÑ Ð¸Ð· знаÑениÑ, но вÑегда возвÑаÑаеÑÑÑ ÐºÐ°Ðº ÑÑÑока.",modeEditorTitle:"ÐеÑеклÑÑение Ñежима ÑедакÑоÑа",modeCodeText:"Ðод",modeCodeTitle:"ÐеÑеклÑÑиÑÑ Ð² Ñежим ÑедакÑоÑа кода",modeFormText:"ФоÑма",modeFormTitle:"ÐеÑеклÑÑиÑÑ Ð² Ñежим ÑоÑмÑ",modeTextText:"ТекÑÑ",modeTextTitle:"ÐеÑеклÑÑиÑÑ Ð² Ñежим ÑедакÑоÑа ÑекÑÑа",modeTreeText:"ÐеÑево",modeTreeTitle:"ÐеÑеклÑÑиÑÑ Ð² Ñежим ÑедакÑоÑа деÑева",modeViewText:"ÐÑоÑмоÑÑ Ð´ÐµÑева",modeViewTitle:"ÐеÑеклÑÑиÑÑ Ð² Ñежим пÑоÑмоÑÑа деÑева",modePreviewText:"ÐÑоÑмоÑÑ",modePreviewTitle:"ÐеÑеклÑÑиÑÑ Ð² Ñежим пÑоÑмоÑÑа",examples:"ÐÑимеÑÑ",default:"Ðо ÑмолÑаниÑ",containsInvalidProperties:"СодеÑÐ¶Ð¸Ñ Ð½ÐµÐ´Ð¾Ð¿ÑÑÑимÑе ÑвойÑÑва",containsInvalidItems:"СодеÑÐ¶Ð¸Ñ Ð½ÐµÐ´Ð¾Ð¿ÑÑÑимÑе ÑлеменÑÑ"},ko:{array:"ë°°ì´",auto:"ìë",appendText:"ì¶ê°",appendTitle:'ì íí ìì ìëì "ìë" ìì를 ì¶ê°í©ëë¤. (Ctrl + Shift + Ins)',appendSubmenuTitle:"ì¶ê°í ììì ì íì ì íí´ì£¼ì¸ì.",appendTitleAuto:'"ì
135ë" ìì를 ì¶ê°í©ëë¤. (Ctrl + Shift + Ins)',ascending:"ì¤ë¦ì°¨ì",ascendingTitle:"ì íí ${type}ì íì ìì를 ì¤ë¦ì°¨ì ì ë ¬í©ëë¤.",actionsMenu:"ë©ë´ ì´ê¸° (Ctrl + M)",cannotParseFieldError:"JSONì ìì를 í´ìí ì ììµëë¤.",cannotParseValueError:"JSONì ê°ì í´ìí ì ììµëë¤.",collapseAll:"모ë ì 기",compactTitle:"모ë 공백ì ì ê±°íì¬ JSON ë°ì´í°ë¥¼ ìê² ë§ëëë¤. (Ctrl + Shift + I)",descending:"ë´ë¦¼ì°¨ì",descendingTitle:"ì íí ${type}ì íì ìì를 ë´ë¦¼ì°¨ìì¼ë¡ ì ë ¬",drag:"ëëê·¸íì¬ ìì를 ì´ëí©ëë¤. (Alt + Shift + Arrows)",duplicateKey:"ë³µì í¤",duplicateText:"ë³µì ",duplicateTitle:"ì íí ìì를 ë³µì í©ëë¤. (Ctrl + D)",duplicateField:"ì íí ìì를 ë³µì í©ëë¤. (Ctrl + D)",duplicateFieldError:"ìì ì´ë¦ì´ ì¤ë³µëììµëë¤.",empty:"ë¹ì´ìì",expandAll:"모ë ì´ê¸°",expandTitle:`í´ë¦íì¬ ìì를 ì´ê±°ë ë«ìµëë¤. (Ctrl + E) 136Ctrl + Clickì¼ë¡ 모ë íì ìì를 ì´ê±°ë ë«ìµëë¤.`,formatTitle:"ì ì í ë¤ì¬ì°ê¸° ë° ì¤ë°ê¿ì¼ë¡ JSON ë°ì´í°ë¥¼ ì ííí©ëë¤. (Ctrl + I)",insert:"ì½ì ",insertTitle:"ì íí ìì ìì ììì를 ì½ì í©ëë¤. (Ctrl + Ins)",insertSub:"ì½ì í ììì ì íì ì íí´ì£¼ì¸ì.",object:"ê°ì²´",ok:"íì¸",redo:"ë¤ì ì¤í (Ctrl + Shift + Z)",removeText:"ìì ",removeTitle:"ì íí ìì를 ìì í©ëë¤. (Ctrl + Del)",removeField:"ì íí ìì를 ìì í©ëë¤. (Ctrl + Del)",repairTitle:"JSON êµì : JSON ë´ì 주ìê³¼ JSONP í기ë²ì ì§ì°ê³ ë°ì´íì ì´ì¤ì¼ì´í 문ì를 ìì í©ëë¤.",searchTitle:"ìì ëë ê° ì°¾ê¸°",searchNextResultTitle:"ë¤ìì¼ë¡ 찾기 (Enter)",searchPreviousResultTitle:"ì´ì ì¼ë¡ 찾기 (Shift + Enter)",selectNode:"ìì를 ì íí´ì£¼ì¸ì...",showAll:"모ë보기",showMore:"ë보기",showMoreStatus:"${totalChilds} ê°ì í목 ì¤ ${visibleChilds} ê°ë¥¼ íìí©ëë¤.",sort:"ì ë ¬",sortTitle:"ì íí ${type}ì íì ìì를 ì ë ¬í©ëë¤.",sortTitleShort:"ì ë ¬",sortFieldLabel:"ìì:",sortDirectionLabel:"ìì:",sortFieldTitle:"ë°°ì´ì´ë ê°ì²´ë¥¼ ì ë ¬íë ìì를 ì íí´ì£¼ì¸ì.",sortAscending:"ì¤ë¦ì°¨ì",sortAscendingTitle:"ì íí ìì를 ì¤ë¦ì°¨ìì¼ë¡ ì ë ¬í©ëë¤.",sortDescending:"ë´ë¦¼ì°¨ì",sortDescendingTitle:"ì íí ìì를 ë´ë¦¼ì°¨ìì¼ë¡ ì ë ¬í©ëë¤.",string:"문ì",transform:"ë³í",transformTitle:"ì íí ${type}ì íì ìì를 íí°íê±°ë ì ë ¬ ëë ë³íí©ëë¤.",transformTitleShort:"ë´ì©ì íí°íê±°ë ì ë ¬ ëë ë³íí©ëë¤.",extract:"ì¶ì¶",extractTitle:"ì íí ${type}ì ê°ì ìµììì ìì¹ìíµëë¤.",transformQueryTitle:"JMESPath 쿼리를 ì ë ¥í´ì£¼ì¸ì.",transformWizardLabel:"ë§ë²ì¬",transformWizardFilter:"íí°",transformWizardSortBy:"ì ë ¬",transformWizardSelectFields:"ìì를 ì íí´ì£¼ì¸ì.",transformQueryLabel:"쿼리",transformPreviewLabel:"미리보기",type:"ì í",typeTitle:"ì íí ììì ì íì ë³ê²½í©ëë¤.",openUrl:"Ctrl + Click ëë Ctrl + Enterë¡ ì ì°½ìì URL ì´ê¸°",undo:"ì¤í ì·¨ì (Ctrl + Z)",validationCannotMove:"íì ììë¡ ì´ëí ì ììµëë¤.",autoType:"ìë: ììì íìì´ ê°ì ì íì¼ë¡ ê²°ì ë©ëë¤. 문ì, ì«ì, ë¶ì¸, ëë nullë§ íì©ë©ëë¤.",objectType:"ê°ì²´: ììëë¡ ëì´ëì§ ìì ì´ë¦/ê° ìì¼ë¡ ì´ë£¨ì´ì§ ì§í©ì ëë¤.",arrayType:"ë°°ì´: ììëë¡ ëì´ë ê°ì ì§í©ì ëë¤.",stringType:"문ì: ììì ì íì´ ê°ìì ê²°ì ëì§ ìì§ë§ íì 문ìë¡ ë°íë©ëë¤.",modeEditorTitle:"í¸ì§ê¸° ì í ë³ê²½",modeCodeText:"ì½ë",modeCodeTitle:"íì êµì ì ëì주ë 기ë¥ì´ í¬í¨ë 문ì í¸ì§ê¸°",modeFormText:"ì ë ¥ ìì",modeFormTitle:"ì í´ì§ ììì ê°ì ì ë ¥íë í¸ì§ê¸°",modeTextText:"문ì",modeTextTitle:"ë¨ì 문ì í¸ì§ê¸°",modeTreeText:"í¸ë¦¬",modeTreeTitle:"í¸ë¦¬ êµ¬ì¡°ë¡ íìëë í¸ì§ê¸°",modeViewText:"보기",modeViewTitle:"ì½ê¸°ì ì© í¸ë¦¬ êµ¬ì¡°ë¡ JSONì íì",modePreviewText:"미리보기",modePreviewTitle:"ì½ê¸°ì ì© ë¬¸ìë¡ JSONì íì",examples:"ìì ",default:"기본ê°",containsInvalidProperties:"ì못ë ìì±ì´ í¬í¨ëì´ ììµëë¤.",containsInvalidItems:"ì못ë íëª©ì´ í¬í¨ëì´ ììµëë¤"}},l=Object.keys(c),d="en",v=typeof navigator<"u"?navigator.language||navigator.userLanguage:void 0,R=l.find(function(T){return T===v})||d;function O(T){var C;T&&((C=l.find(function(N){return N===T}))&&(R=C))}function $(T){if(T)for(var C in T)(N=>{l.find(function(x){return x===N})||l.push(N),c[N]=Object.assign({},c[d],c[N],T[N])})(C)}function P(T,C,N){var x=c[N=N||R][T]||c[d][T]||T;if(C)for(var S in C)x=x.replace("${"+S+"}",C[S]);return x}},359:function(s,c,a){a.d(c,{V:function(){return v},e:function(){return R}});var c=a(9151),l=a.n(c),d=a(6237);function v(O,N){var P,T=N.sort,C=N.filter,N=N.projection,x="";return C?(P=C.field!=="@"?["0"].concat((0,d.parsePath)("."+C.field)):["0"],P=typeof(0,d.get)(O,P)=="string"?C.value:(0,d.parseString)(C.value),x+="[? "+C.field+" "+C.relation+" `"+JSON.stringify(P)+"`]"):x+=Array.isArray(O)?"[*]":"@",T&&(T.direction==="desc"?x+=" | reverse(sort_by(@, &"+T.field+"))":x+=" | sort_by(@, &"+T.field+")"),N&&(x[x.length-1]!=="]"&&(x+=" | [*]"),N.fields.length===1?x+="."+N.fields[0]:1<N.fields.length&&(x+=".{"+N.fields.map(function(S){var b=S.split(".");return b[b.length-1]+": "+S}).join(", ")+"}")),x}function R(O,$){return l().search(O,$)}},1081:function(){function s(o){o===void 0||"remove"in o||Object.defineProperty(o,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){this.parentNode!==void 0&&this.parentNode.removeChild(this)}})}typeof Element<"u"&&(window.Element!==void 0&&s(window.Element.prototype),window.CharacterData!==void 0&&s(window.CharacterData.prototype),window.DocumentType!==void 0)&&s(window.DocumentType.prototype),Array.prototype.findIndex||Object.defineProperty(Array.prototype,"findIndex",{value:function(o){for(var a=0;a<this.length;a++){var c=this[a];if(o.call(this,c,a,this))return a}return-1},configurable:!0,writable:!0}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(o){return o=this.findIndex(o),this[o]},configurable:!0,writable:!0}),String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")})},7483:function(s,p,b){b.r(p),b.d(p,{previewModeMixins:function(){return g}});
136var c=b(9857),l=b(660),d=b(2115),v=b(2877);function R(u){return(R=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y})(u)}function O(u,y){for(var m=0;m<y.length;m++){var I=y[m];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(u,(_=>(_=((h,f)=>{if(R(h)!="object"||!h)return h;var w=h[Symbol.toPrimitive];if(w===void 0)return(f==="string"?String:Number)(h);if(R(w=w.call(h,f))!="object")return w;throw new TypeError("@@toPrimitive must return a primitive value.")})(_,"string"),R(_)=="symbol"?_:_+""))(I.key),I)}}var $=(()=>{function u(_,h,f){if(!(this instanceof u))throw new TypeError("Cannot call a class as a function");this.onChange=_,this.calculateItemSize=h||function(){return 1},this.limit=f,this.items=[],this.index=-1}return y=u,(m=[{key:"add",value:function(_){for(;this._calculateHistorySize()>this.limit&&1<this.items.length;)this.items.shift(),this.index--;this.items=this.items.slice(0,this.index+1),this.items.push(_),this.index++,this.onChange()}},{key:"_calculateHistorySize",value:function(){var _=this.calculateItemSize,h=0;return this.items.forEach(function(f){h+=_(f)}),h}},{key:"undo",value:function(){if(this.canUndo())return this.index--,this.onChange(),this.items[this.index]}},{key:"redo",value:function(){if(this.canRedo())return this.index++,this.onChange(),this.items[this.index]}},{key:"canUndo",value:function(){return 0<this.index}},{key:"canRedo",value:function(){return this.index<this.items.length-1}},{key:"clear",value:function(){this.items=[],this.index=-1,this.onChange()}}])&&O(y.prototype,m),I&&O(y,I),Object.defineProperty(y,"prototype",{writable:!1}),y;var y,m,I})(),P=b(3057),T=b(359),C=b(1389),N=b(2915),x=b(5609),p=b(1948),S=b(6237),b=p.textModeMixins[0].mixin,p={create:function(I){var y=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},m=(y.statusBar===void 0&&(y.statusBar=!0),y.mainMenuBar=y.mainMenuBar!==!1,y.enableSort=y.enableSort!==!1,y.enableTransform=y.enableTransform!==!1,y.createQuery=y.createQuery||T.V,y.executeQuery=y.executeQuery||T.e,this.options=y,this.indentation=typeof y.indentation=="number"?Number(y.indentation):2,(0,P.AI)(this.options.languages),(0,P.xC)(this.options.language),this.mode="preview",this),I=(this.container=I,this.dom={},this.json=void 0,this.text="",this._debouncedValidate=(0,S.debounce)(this.validate.bind(this),this.DEBOUNCE_INTERVAL),this.width=I.clientWidth,this.height=I.clientHeight,this.frame=document.createElement("div"),this.frame.className="jsoneditor jsoneditor-mode-preview",this.frame.onclick=function(_){_.preventDefault()},{target:this.frame,onFocus:this.options.onFocus||null,onBlur:this.options.onBlur||null}),I=(this.frameFocusTracker=new v.$(I),this.content=document.createElement("div"),this.content.className="jsoneditor-outer",this.dom.busy=document.createElement("div"),this.dom.busy.className="jsoneditor-busy",this.dom.busyContent=document.createElement("span"),this.dom.busyContent.textContent="busy...",this.dom.busy.appendChild(this.dom.busyContent),this.content.appendChild(this.dom.busy),this.dom.previewContent=document.createElement("pre"),this.dom.previewContent.className="jsoneditor-preview",this.dom.previewText=document.createTextNode(""),this.dom.previewContent.appendChild(this.dom.previewText),this.content.appendChild(this.dom.previewContent),this.options.mainMenuBar&&((0,S.addClassName)(this.content,"has-main-menu-bar"),this.menu=document.createElement("div"),this.menu.className="jsoneditor-menu",this.frame.appendChild(this.menu),(I=document.createElement("button")).type="button",I.className="jsoneditor-format",I.title=(0,P.Tl)("formatTitle"),this.menu.appendChild(I),I.onclick=function(){m.executeWithBusyMessage(function(){try{m.format()}catch(_){m._onError(_)}},"formatting...")},(I=document.createElement("button")).type="button",I.className="jsoneditor-compact",I.title=(0,P.Tl)("compactTitle"),this.menu.appendChild(I),I.onclick=function(){m.executeWithBusyMessage(function(){try{m.compact()}catch(_){m._onError(_)}},"compacting...")},this.options.enableSort&&((I=document.createElement("button")).type="button",I.
136className="jsoneditor-sort",I.title=(0,P.Tl)("sortTitleShort"),I.onclick=function(){m._showSortModal()},this.menu.appendChild(I)),this.options.enableTransform&&((I=document.createElement("button")).type="button",I.title=(0,P.Tl)("transformTitleShort"),I.className="jsoneditor-transform",I.onclick=function(){m._showTransformModal()},this.dom.transform=I,this.menu.appendChild(I)),(I=document.createElement("button")).type="button",I.className="jsoneditor-repair",I.title=(0,P.Tl)("repairTitle"),this.menu.appendChild(I),!(I.onclick=function(){m.json===void 0&&m.executeWithBusyMessage(function(){try{m.repair()}catch(_){m._onError(_)}},"repairing...")})!==this.options.history&&(this.history=new $(function(){m.dom.undo.disabled=!m.history.canUndo(),m.dom.redo.disabled=!m.history.canRedo()},function(_){return 2*_.text.length},l.SC),(I=document.createElement("button")).type="button",I.className="jsoneditor-undo jsoneditor-separator",I.title=(0,P.Tl)("undo"),I.onclick=function(){var _=m.history.undo();_&&m._applyHistory(_)},this.menu.appendChild(I),this.dom.undo=I,(I=document.createElement("button")).type="button",I.className="jsoneditor-redo",I.title=(0,P.Tl)("redo"),I.onclick=function(){var _=m.history.redo();_&&m._applyHistory(_)},this.menu.appendChild(I),this.dom.redo=I,this.history.onChange()),this.options)&&this.options.modes&&this.options.modes.length&&(this.modeSwitcher=new C.n(this.menu,this.options.modes,this.options.mode,function(_){try{m.setMode(_),m.modeSwitcher.focus()}catch(h){m._onError(h)}})),Array.isArray(this.options.showErrorTable)?this.options.showErrorTable.includes(this.mode):this.options.showErrorTable===!0);this.errorTable=new d.N({errorTableVisible:I,onToggleVisibility:function(){m.validate()},onFocusLine:null,onChangeHeight:function(_){_=_+(m.dom.statusBar?m.dom.statusBar.clientHeight:0)+1,m.content.style.marginBottom=-_+"px",m.content.style.paddingBottom=_+"px"}}),this.frame.appendChild(this.content),this.frame.appendChild(this.errorTable.getErrorTable()),this.container.appendChild(this.frame),y.statusBar&&((0,S.addClassName)(this.content,"has-status-bar"),I=document.createElement("div"),(this.dom.statusBar=I).className="jsoneditor-statusbar",this.frame.appendChild(I),this.dom.fileSizeInfo=document.createElement("span"),this.dom.fileSizeInfo.className="jsoneditor-size-info",this.dom.fileSizeInfo.innerText="",I.appendChild(this.dom.fileSizeInfo),this.dom.arrayInfo=document.createElement("span"),this.dom.arrayInfo.className="jsoneditor-size-info",this.dom.arrayInfo.innerText="",I.appendChild(this.dom.arrayInfo),I.appendChild(this.errorTable.getErrorCounter()),I.appendChild(this.errorTable.getWarningIcon()),I.appendChild(this.errorTable.getErrorIcon())),this._renderPreview(),this.setSchema(this.options.schema,this.options.schemaRefs)},_renderPreview:function(){var u=this.getText();this.dom.previewText.nodeValue=(0,S.limitCharacters)(u,l.hJ),this.dom.fileSizeInfo&&(this.dom.fileSizeInfo.innerText="Size: "+(0,S.formatSize)(u.length)),this.dom.arrayInfo&&(Array.isArray(this.json)?this.dom.arrayInfo.innerText="Array: "+this.json.length+" items":this.dom.arrayInfo.innerText="")},_onChange:function(){if(this._debouncedValidate(),this.options.onChange)try{this.options.onChange()}catch{}if(this.options.onChangeJSON)try{this.options.onChangeJSON(this.get())}catch{}if(this.options.onChangeText)try{this.options.onChangeText(this.getText())}catch{}}},g=(p._showSortModal=function(){var u=this;this.executeWithBusyMessage(function(){var y=u.options.modalAnchor||l.ai,m=u.get();u._renderPreview(),(0,N.showSortModal)(y,m,function(I){u.executeWithBusyMessage(function(){var _,h,f;_=m,h=I,Array.isArray(_)&&(f=(0,S.sort)(_,h.path,h.direction),u.sortedBy=h,u._setAndFireOnChange(f)),(0,S.isObject)(_)&&(f=(0,S.sortObjectKeys)(_,h.direction),u.sortedBy=h,u._setAndFireOnChange(f))},"sorting...")},u.sortedBy)},"parsing...")},p._showTransformModal=function(){var u=this;this.executeWithBusyMessage(function(){var _=u.options,y=_.createQuery,m=_.executeQuery,I=_.modalAnchor,_=_.queryDescription,h=u.get();u._renderPreview(),(0,x.showTransformModal)({container:I||l.ai,json:h,queryDescription:_,createQuery:y,executeQuery:m,onTransform:function(f){u.executeWithBusyMessage(function(){var w=m(h,f);u._setAndFireOnChange(w)},"transforming...")}})},"parsing...")},p.destroy=function(){this.frame&&this.container&&this.frame.parentNode===this.container&&this.container.removeChild(this.frame),this.modeSwitcher&&(this.modeSwitcher.destroy(),this.modeSwitcher=null),this._debouncedValidate=null,this.history&&(this.history.clear(),this.history=null),this.frameFocusTracker.destroy()},p.compact=function(){var u=this.get(),y=JSON.stringify(u);this._setTextAndFireOnChange(y,u)},p.format=function(){var u=this.get(),y=JSON.stringify(u,null,this.indentation);this._setTextAndFireOnChange(y,u)},p.repair=function(){var u=this.getText();try{var y=(0,c.m)(u);this._setTextAndFireOnChange(y)}catch{}},p.focus=function(){this.dom.transform.focus()},p.set=function(u){this.history&&this.history.clear(),this._set(u)},p.update=function(u){this._set(u)},p._set=function(u){this.text=void 0,this.json=u,this._renderPreview(),this._pushHistory(),this._debouncedValidate()},p._setAndFireOnChange=function(u){this._set(u),this._onChange()},p.get=function(){var u;return this.json===void 0&&(u=this.getText(),this.json=(0,S.parse)(u)),this.json},p.getText=function(){return this.text===void 0&&(this.text=JSON.stringify(this.json,null,this.indentation),this.options.escapeUnicode===!0)&&(this.text=(0,S.escapeUnicodeChars)(this.text)),this.text},p.setText=function(u){this.history&&this.history.clear(),this._setText(u)},p.updateText=function(u){this.getText()!==u&&this._setText(u)},p._setText=function(u,y){var m;this.options.escapeUnicode===!0?this.text=(0,S.escapeUnicodeChars)(u):this.text=u,this.json=y,this._renderPreview(),this.json===void 0?(m=this).executeWithBusyMessage(function(){try{m.json=m.get(),m._renderPreview(),m._pushHistory()}catch{}},"parsing..."):this._pushHistory(),this._debouncedValidate()},p._setTextAndFireOnChange=function(u,y){this._setText(u,y),this._onChange()},p._applyHistory=function(u){this.json=u.json,this.text=u.text,this._renderPreview(),this._debouncedValidate()},p._pushHistory=function(){var u;this.history&&(u={text:this.text,json:this.json},this.history.add(u))},p.executeWithBusyMessage=function(u,y){var m;this.getText().length>l.Oq?((0,S.addClassName)((m=this).frame,"busy"),m.dom.busyContent.innerText=y,setTimeout(function(){u(),(0,S.removeClassName)(m.frame,"busy"),m.dom.busyContent.innerText=""},100)):u()},p.validate=b.validate,p._renderErrors=b._renderErrors,[{mode:"preview",mixin:p,data:"json"}])},2915:function(s,c,a){a.r(c),a.d(c,{showSortModal:function(){return R}});var c=a(8340),l=a.n(c),d=a(3057),v=a(6237);function R(O,S,P,T){var C=Array.isArray(S)?(0,v.getChildPaths)(S):[""],N=T&&T.path&&(0,v.contains)(C,T.path)?T.path:C[0],x=T&&T.direction||"asc",S='<div class="pico-modal-contents"><div class="pico-modal-header">'+(0,d.Tl)("sort")+"</div><form><table><tbody><tr> <td>"+(0,d.Tl)("sortFieldLabel")+' </td> <td class="jsoneditor-modal-input"> <div class="jsoneditor-select-wrapper"> <select id="field" title="'+(0,d.Tl)("sortFieldTitle")+'"> </select> </div> </td></tr><tr> <td>'+(0,d.Tl)("sortDirectionLabel")+' </td> <td class="jsoneditor-modal-input"> <div id="direction" class="jsoneditor-button-group"><input type="button" value="'+(0,d.Tl)("sortAscending")+'" title="'+(0,d.Tl)("sortAscendingTitle")+'" data-value="asc" class="jsoneditor-button-first jsoneditor-button-asc"/><input type="button" value="'+(0,d.Tl)("sortDescending")+'" title="'+(0,d.Tl)("sortDescendingTitle")+'" data-value="desc" class="jsoneditor-button-last jsoneditor-button-desc"/>
136 </div> </td></tr><tr><td colspan="2" class="jsoneditor-modal-input jsoneditor-modal-actions"> <input type="submit" id="ok" value="'+(0,d.Tl)("ok")+'" /></td></tr></tbody></table></form></div>';l()({parent:O,content:S,overlayClass:"jsoneditor-modal-overlay",overlayStyles:{backgroundColor:"rgb(1,1,1)",opacity:.3},modalClass:"jsoneditor-modal jsoneditor-modal-sort"}).afterCreate(function(b){var p=b.modalElem().querySelector("form"),g=b.modalElem().querySelector("#ok"),u=b.modalElem().querySelector("#field"),y=b.modalElem().querySelector("#direction");function m(I){y.value=I,y.className="jsoneditor-button-group jsoneditor-button-group-value-"+y.value}C.forEach(function(I){var _,h=document.createElement("option");h.text=(_=I)===""?"@":_[0]==="."?_.slice(1):_,h.value=I,u.appendChild(h)}),u.value=N||C[0],m(x),y.onclick=function(I){m(I.target.getAttribute("data-value"))},g.onclick=function(I){I.preventDefault(),I.stopPropagation(),b.close(),P({path:u.value,direction:y.value})},p&&(p.onsubmit=g.onclick)}).afterClose(function(b){b.destroy()}).show()}},5609:function(s,l,a){a.r(l),a.d(l,{showTransformModal:function(){return N}});var l=a(8340),c=a.n(l),l=a(4772),d=a.n(l),v=a(3057);function R(x){return(R=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S})(x)}function O(x,S,b,p){if(typeof x=="boolean"||x instanceof Boolean||x===null||typeof x=="number"||x instanceof Number||typeof x=="string"||x instanceof String||x instanceof Date)return JSON.stringify(x);if(Array.isArray(x)){for(var g=x,u=S,y=b,m=p,I=u?y+u:void 0,_=u?`[ 137`:"[",h=0;h<g.length;h++){var f=g[h];if(u&&(_+=I),_+=f!==void 0&&typeof f!="function"?O(f,u,I,m):"null",h<g.length-1&&(_+=u?`, 138`:","),_.length>m)return _+"..."}return _+=u?` 139`+y+"]":"]"}if(x&&R(x)==="object"){var w,E=x,k=S,y=b,L=p,M=k?y+k:void 0,B=!0,j=k?`{ 140`:"{";if(typeof E.toJSON=="function")return O(E.toJSON(),k,y,L);for(w in E)if(((D,K)=>Object.prototype.hasOwnProperty.call(D,K))(E,w)){var z=E[w];if(B?B=!1:j+=k?`, 141`:",",(j=(j+=k?M+'"'+w+'": ':'"'+w+'":')+O(z,k,M,L)).length>L)return j+"..."}return j+=k?` 142`+y+"}":"}"}}function $(x,S){for(var b="";0<S--;)b+=x;return b}var P=a(6237),T=a(660),C='Enter a <a href="http://jmespath.org" target="_blank">JMESPath</a> query to filter, sort, or transform the JSON data.<br/>To learn JMESPath, go to <a href="http://jmespath.org/tutorial.html" target="_blank">the interactive tutorial</a>.';function N(I){var S=I.container,b=I.json,p=I.queryDescription,p=p===void 0?C:p,g=I.createQuery,u=I.executeQuery,y=I.onTransform,m=b,I='<div class="pico-modal-contents"><div class="pico-modal-header">'+(0,v.Tl)("transform")+"</div><p>"+p+'</p><div class="jsoneditor-jmespath-label">'+(0,v.Tl)("transformWizardLabel")+' </div><div id="wizard" class="jsoneditor-jmespath-block jsoneditor-jmespath-wizard"> <table class="jsoneditor-jmespath-wizard-table"> <tbody> <tr> <th>'+(0,v.Tl)("transformWizardFilter")+'</th> <td class="jsoneditor-jmespath-filter"> <div class="jsoneditor-inline jsoneditor-jmespath-filter-field" > <select id="filterField"> </select> </div> <div class="jsoneditor-inline jsoneditor-jmespath-filter-relation" > <select id="filterRelation"> <option value="==">==</option> <option value="!=">!=</option> <option value="<"><</option> <option value="<="><=</option> <option value=">">></option> <option value=">=">>=</option> </select> </div> <div class="jsoneditor-inline jsoneditor-jmespath-filter-value" > <input type="text" class="value" placeholder="value..." id="filterValue" /> </div> </td> </tr> <tr> <th>'+(0,v.Tl)("transformWizardSortBy")+'</th> <td class="jsoneditor-jmespath-filter"> <div class="jsoneditor-inline jsoneditor-jmespath-sort-field"> <select id="sortField"> </select> </div> <div class="jsoneditor-inline jsoneditor-jmespath-sort-order" > <select id="sortOrder"> <option value="asc">Ascending</option> <option value="desc">Descending</option> </select> </div> </td> </tr> <tr id="selectFieldsPart"> <th>'+(0,v.Tl)("transformWizardSelectFields")+'</th> <td class="jsoneditor-jmespath-filter"> <select class="jsoneditor-jmespath-select-fields" id="selectFields" multiple></select> </td> </tr> </tbody> </table></div><div class="jsoneditor-jmespath-label">'+(0,v.Tl)("transformQueryLabel")+' </div><div class="jsoneditor-jmespath-block"> <textarea id="query" rows="4" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" title="'+(0,v.Tl)("transformQueryTitle")+'">[*]</textarea></div><div class="jsoneditor-jmespath-label">'+(0,v.Tl)("transformPreviewLabel")+' </div><div class="jsoneditor-jmespath-block"> <textarea id="preview" class="jsoneditor-transform-preview" readonly> </textarea></div><div class="jsoneditor-jmespath-block jsoneditor-modal-actions"> <input type="submit" id="ok" value="'+(0,v.Tl)("ok")+'" autofocus /></div></div>';c()({parent:S,content:I,overlayClass:"jsoneditor-modal-overlay",overlayStyles:{backgroundColor:"rgb(1,1,1)",opacity:.3},modalClass:"jsoneditor-modal jsoneditor-modal-transform",focus:!1}).afterCreate(function(_){var h=_.modalElem(),Q=h.querySelector("#wizard"),f=h.querySelector("#ok"),w=h.querySelector("#filterField"),E=h.querySelector("#filterRelation"),k=h.querySelector("#filterValue"),L=h.querySelector("#sortField"),M=h.querySelector("#sortOrder"),B=h.querySelector("#selectFields"),j=h.querySelector("#query"),z=h.querySelector("#preview");Array.isArray(m)||(Q.style.fontStyle="italic",Q.textContent="(wizard not available for objects, only for arrays)"),(0,P.getChildPaths)(b).forEach(function(X){var X=W(X),q=document.createElement("option"),q=(q.text=X,q.value=X,w.appendChild(q),document.createElement("option"));q.text=X,q.value=X,L.appendChild(q)}
142);var Q=(0,P.getChildPaths)(b,!0).filter(function(ee){return ee!==""}),Q=(0<Q.length?Q.forEach(function(X){var X=W(X),q=document.createElement("option");q.text=X,q.value=X,B.appendChild(q)}):(Q=h.querySelector("#selectFieldsPart"))&&(Q.style.display="none"),new(d())(w,{defaultSelected:!1,clearable:!0,allowDeselect:!0,placeholder:"field..."})),D=new(d())(E,{defaultSelected:!1,clearable:!0,allowDeselect:!0,placeholder:"compare..."}),K=new(d())(L,{defaultSelected:!1,clearable:!0,allowDeselect:!0,placeholder:"field..."}),H=new(d())(M,{defaultSelected:!1,clearable:!0,allowDeselect:!0,placeholder:"order..."}),A=new(d())(B,{multiple:!0,clearable:!0,defaultSelected:!1,placeholder:"select fields..."});function W(ee){return ee===""?"@":ee[0]==="."?ee.slice(1):ee}Q.on("selectr.change",Y),D.on("selectr.change",Y),k.oninput=Y,K.on("selectr.change",Y),H.on("selectr.change",Y),A.on("selectr.change",Y),h.querySelector(".pico-modal-contents").onclick=function(ee){ee.target.nodeName!=="A"&&ee.preventDefault()};var F=(0,P.debounce)(function(){try{var ee=u(m,j.value);z.className="jsoneditor-transform-preview",z.value=(X=ee,q=2,ne=T.hJ,typeof q=="number"?10<q?se=$(" ",10):1<=q&&(se=$(" ",q)):typeof q=="string"&&q!==""&&(se=q),(q=O(X,se,"",ne)).length>ne?(X=q,(typeof(se=ne)=="number"?X.slice(0,se):X)+"..."):q),f.disabled=!1}catch(he){z.className="jsoneditor-transform-preview jsoneditor-error",z.value=he.toString(),f.disabled=!0}var X,q,ne,se},300);function U(ee,X){try{j.value=g(ee,X),f.disabled=!1,F()}catch(q){ee='Error: an error happened when executing "createQuery": '+(q.message||q.toString()),j.value="",f.disabled=!0,z.className="jsoneditor-transform-preview jsoneditor-error",z.value=ee}}function Y(){var ee={};if(w.value&&E.value&&k.value&&(ee.filter={field:w.value,relation:E.value,value:k.value}),L.value&&M.value&&(ee.sort={field:L.value,direction:M.value}),B.value){for(var X,q=[],ne=0;ne<B.options.length;ne++)B.options[ne].selected&&(X=B.options[ne].value,q.push(X));ee.projection={fields:q}}U(b,ee)}j.oninput=F,f.onclick=function(ee){ee.preventDefault(),ee.stopPropagation(),_.close(),y(j.value)},U(b,{}),setTimeout(function(){j.select(),j.focus(),j.selectionStart=3,j.selectionEnd=3})}).afterClose(function(_){_.destroy()}).show()}},1948:function(s,y,a){a.r(y),a.d(y,{textModeMixins:function(){return _}});var c=a(9857),y=a(7413),l=a.n(y),d=a(660),v=a(2115),R=a(2877),O=a(3057),$=a(359),P=a(1389),T=a(2915),C=a(5609),N=a(5467),x=a(3094),S=a(6237);function b(h){return(b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f})(h)}function p(h,f){for(var w=0;w<f.length;w++){var E=f[w];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(h,(k=>(k=((L,M)=>{if(b(L)!="object"||!L)return L;var B=L[Symbol.toPrimitive];if(B===void 0)return(M==="string"?String:Number)(L);if(b(B=B.call(L,M))!="object")return B;throw new TypeError("@@toPrimitive must return a primitive value.")})(k,"string"),b(k)=="symbol"?k:k+""))(E.key),E)}}var g=(()=>{function h(k,L){if(!(this instanceof h))throw new TypeError("Cannot call a class as a function");this.schema=k,this.schemaRefs=L||{},this.suggestions={},this.suggestionsRefs={},this._buildSuggestions()}return f=h,(w=[{key:"_buildSuggestions",value:function(){for(var k in this._handleSchemaEntry("",this.schema,this.suggestions),this.schemaRefs)this.suggestionsRefs[k]={},this._handleSchemaEntry("",this.schemaRefs[k],this.suggestionsRefs[k])}},{key:"_handleRef",value:function(k,L,M){M[k]=M[k]||{},M[k].refs=M[k].refs||[],M[k].refs=(0,S.uniqueMergeArrays)(M[k].refs,[L])}},{key:"_handleSchemaEntry",value:function(k,L,M){if(L)if(L.$ref)this._handleRef(k,L.$ref,M);else{var B=this._checkOfConditon(L);if(B)this._handleOfCondition(k,L[B],M);else switch(L.type){case"object":this._handleObject(k,L,M);break;case"string":case"number":case"integer":this._handlePrimitive(k,L,M);break;case"boolean":this._handleBoolean(k,L,M);break;case"array":this._handleArray(k,L,M)}}}},{key:"_handleObject",value:function(k,L,M){var B,j=this;(0,S.isObject)(L.properties)&&(B=Object.keys(L.properties),M[k]=M[k]||{},M[k].props=M[k].props||[],M[k].props=(0,S.uniqueMergeArrays)(M[k].props,B),B.forEach(function(z){(0,S.asyncExec)(function(){j._handleSchemaEntry("".concat(k,"/").concat(z),L.properties[z],M)})}))}},{key:"_handlePrimitive",value:function(k,L,M){M[k]=M[k]||{},(0,S.isArray)(L.examples)&&(M[k].examples=M[k].examples||[],M[k].examples=(0,S.uniqueMergeArrays)(M[k].examples,L.examples)),(0,S.isArray)(L.enum)&&(M[k].enum=M[k].enum||[],M[k].enum=(0,S.uniqueMergeArrays)(M[k].enum,L.enum))}},{key:"_handleBoolean",value:function(k,L,M){M[k]||(M[k]={bool:[!0,!1]})}},{key:"_handleArray",value:function(k,L,M){var B=this;L.items&&(0,S.asyncExec)(function(){B._handleSchemaEntry("".concat(k,"/\\d+"),L.items,M)})}},{key:"_handleOfCondition",value:function(k,L,M){var B=this;
142L&&L.length&&L.forEach(function(j){(0,S.asyncExec)(function(){B._handleSchemaEntry(k,j,M)})})}},{key:"_checkOfConditon",value:function(k){if(k)return k.oneOf?"oneOf":k.anyOf?"anyOf":k.allOf?"allOf":void 0}},{key:"getCompletions",value:function(k,L,M,B,j){var z=this;try{var Q=x.parse(L.getValue()).pointers||{},D=function(K){function H(F){var U,Y={props:"property",enum:"enum",bool:"boolean",examples:"examples"};K&&(U=K[F])!=null&&U.length&&(A=A.concat(K[F].map(function(ee){return{caption:ee+"",meta:"schema [".concat(Y[F],"]"),score:W++,value:ee+""}})))}var A=[],W=0;H("props"),H("enum"),H("bool"),H("examples"),A.length&&j(null,A)};Object.keys(Q).forEach(function(K){(0,S.asyncExec)(function(){function H(F,U,Y){var ee,X=Object.keys(U).reduce(function(he,ie){return new RegExp("^".concat(Y).concat(ie)).test(F)&&(!he||he.length<ie.length)?ie:he},null);if(typeof X=="string"){if((ee=U[X])!=null&&(ee=ee.refs)!=null&&ee.length){var q,ne={};for(q in U[X].refs){var se=U[X].refs[q];z.suggestionsRefs[se]&&((se=H(F,z.suggestionsRefs[se],"".concat(Y).concat(X)))!=null&&se.enum&&(ne.enum=(0,S.uniqueMergeArrays)(ne.enum,se.enum)),se!=null&&se.examples&&(ne.examples=(0,S.uniqueMergeArrays)(ne.examples,se.examples)),se!=null&&se.bool&&(ne.bool=(0,S.uniqueMergeArrays)(ne.bool,se.bool)),se!=null)&&se.props&&(ne.props=(0,S.uniqueMergeArrays)(ne.props,se.props))}return ne}if(new RegExp("^".concat(Y).concat(X,"$")).test(F))return U[X]}}var A,W;((W=Q[K].key)==null?void 0:W.line)===M.row&&M.column>=Q[K].key.column&&M.column<=Q[K].keyEnd.column&&(A=K.slice(0,K.lastIndexOf("/"))),(A=((W=Q[K].value)==null?void 0:W.line)===M.row&&((W=Q[K].value)==null?void 0:W.line)===((W=Q[K].valueEnd)==null?void 0:W.line)&&M.column>=Q[K].value.column&&M.column<=Q[K].valueEnd.column?K:A)&&(W=H(A,z.suggestions,""),D(W))})})}catch{}}}])&&p(f.prototype,w),E&&p(f,E),Object.defineProperty(f,"prototype",{writable:!1}),f;var f,w,E})();function u(h){return(u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f})(h)}var y={},m="ace/theme/jsoneditor";function I(){try{this.format()}catch{}}y.create=function(B){var f,w,E,k=this,L=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},j=(L.statusBar===void 0&&(L.statusBar=!0),L.mainMenuBar=L.mainMenuBar!==!1,L.enableSort=L.enableSort!==!1,L.enableTransform=L.enableTransform!==!1,L.createQuery=L.createQuery||$.V,L.executeQuery=L.executeQuery||$.e,L.showErrorTable=L.showErrorTable!==void 0?L.showErrorTable:["text","preview"],this.options=L,this.indentation=typeof L.indentation=="number"?Number(L.indentation):2,(0,O.AI)(this.options.languages),(0,O.xC)(this.options.language),L.ace||l()),M=(this.mode=L.mode==="code"?"code":"text",this.mode==="code"&&j===void 0&&(this.mode="text"),this.theme=L.theme||m,this.theme===m&&j&&(0,N.J)(),L.onTextSelectionChange&&this.onTextSelectionChange(L.onTextSelectionChange),this),B=(this.container=B,this.dom={},this.aceEditor=void 0,this.textarea=void 0,this.validateSchema=null,this.annotations=[],this.lastSchemaErrors=void 0,this._debouncedValidate=(0,S.debounce)(this._validateAndCatch.bind(this),this.DEBOUNCE_INTERVAL),this.width=B.clientWidth,this.height=B.clientHeight,this.frame=document.createElement("div"),this.frame.className="jsoneditor jsoneditor-mode-"+this.options.mode,this.frame.onclick=function(z){z.preventDefault()},this.frame.onkeydown=function(z){M._onKeyDown(z)},{target:this.frame,onFocus:this.options.onFocus||null,onBlur:this.options.onBlur||null}),B=(this.frameFocusTracker=new R.$(B),this.content=document.createElement("div"),this.content.className="jsoneditor-outer",this.options.mainMenuBar&&((0,S.addClassName)(this.content,"has-main-menu-bar"),this.menu=document.createElement("div"),this.menu.className="jsoneditor-menu",this.frame.appendChild(this.menu),(B=document.createElement("button")).type="button",B.className="jsoneditor-format",B.title=(0,O.Tl)("formatTitle"),this.menu.appendChild(B),B.onclick=function(){try{M.format(),M._onChange()}catch(z){M._onError(z)}}
142,(B=document.createElement("button")).type="button",B.className="jsoneditor-compact",B.title=(0,O.Tl)("compactTitle"),this.menu.appendChild(B),B.onclick=function(){try{M.compact(),M._onChange()}catch(z){M._onError(z)}},this.options.enableSort&&((B=document.createElement("button")).type="button",B.className="jsoneditor-sort",B.title=(0,O.Tl)("sortTitleShort"),B.onclick=function(){M._showSortModal()},this.menu.appendChild(B)),this.options.enableTransform&&((B=document.createElement("button")).type="button",B.title=(0,O.Tl)("transformTitleShort"),B.className="jsoneditor-transform",B.onclick=function(){M._showTransformModal()},this.menu.appendChild(B)),(B=document.createElement("button")).type="button",B.className="jsoneditor-repair",B.title=(0,O.Tl)("repairTitle"),this.menu.appendChild(B),B.onclick=function(){try{M.repair(),M._onChange()}catch(z){M._onError(z)}},this.mode==="code"&&((B=document.createElement("button")).type="button",B.className="jsoneditor-undo jsoneditor-separator",B.title=(0,O.Tl)("undo"),B.onclick=function(){k.aceEditor.getSession().getUndoManager().undo()},this.menu.appendChild(B),this.dom.undo=B,(B=document.createElement("button")).type="button",B.className="jsoneditor-redo",B.title=(0,O.Tl)("redo"),B.onclick=function(){k.aceEditor.getSession().getUndoManager().redo()},this.menu.appendChild(B),this.dom.redo=B),this.options&&this.options.modes&&this.options.modes.length&&(this.modeSwitcher=new P.n(this.menu,this.options.modes,this.options.mode,function(z){try{M.setMode(z),M.modeSwitcher.focus()}catch(Q){M._onError(Q)}})),this.mode==="code")&&((f=document.createElement("a")).appendChild(document.createTextNode("powered by ace")),f.href="https://ace.c9.io/",f.target="_blank",f.className="jsoneditor-poweredBy",f.onclick=function(){window.open(f.href,f.target,"noreferrer")},this.menu.appendChild(f)),this.options.onEditable&&u(this.options.onEditable==="function")&&!this.options.onEditable({})),j=(this.frame.appendChild(this.content),this.container.appendChild(this.frame),this.mode==="code"?(this.editorDom=document.createElement("div"),this.editorDom.style.height="100%",this.editorDom.style.width="100%",this.content.appendChild(this.editorDom),E=(j=j.edit(this.editorDom)).getSession(),j.$blockScrolling=1/0,j.setTheme(this.theme),j.setOptions({readOnly:B}),j.setShowPrintMargin(!1),j.setFontSize("14px"),E.setMode("ace/mode/json"),E.setTabSize(this.indentation),E.setUseSoftTabs(!0),E.setUseWrapMode(!0),w=E.setAnnotations,E.setAnnotations=function(z){w.call(this,z&&z.length?z:M.annotations)},j.commands.bindKey("Ctrl-L",null),j.commands.bindKey("Command-L",null),j.commands.bindKey("Ctrl-\\",null),j.commands.bindKey("Command-\\",null),j.commands.bindKey("Ctrl-Shift-\\",null),j.commands.bindKey("Command-Shift-\\",null),(this.aceEditor=j).on("change",this._onChange.bind(this)),j.on("changeSelection",this._onSelect.bind(this))):((E=document.createElement("textarea")).className="jsoneditor-text",E.spellcheck=!1,this.content.appendChild(E),this.textarea=E,this.textarea.readOnly=B,this.textarea.oninput===null?this.textarea.oninput=this._onChange.bind(this):this.textarea.onchange=this._onChange.bind(this),E.onselect=this._onSelect.bind(this),E.onmousedown=this._onMouseDown.bind(this),E.onblur=this._onBlur.bind(this)),this._updateHistoryButtons(),Array.isArray(this.options.showErrorTable)?this.options.showErrorTable.includes(this.mode):this.options.showErrorTable===!0);this.errorTable=new v.N({errorTableVisible:j,onToggleVisibility:function(){M._validateAndCatch()},onFocusLine:function(z){M.isFocused=!0,isNaN(z)||M.setTextSelection({row:z,column:1},{row:z,column:1e3})},onChangeHeight:function(z){z=z+(M.dom.statusBar?M.dom.statusBar.clientHeight:0)+1,M.content.style.marginBottom=-z+"px",M.content.style.paddingBottom=z+"px"}}),this.frame.appendChild(this.errorTable.getErrorTable()),L.statusBar&&((0,S.addClassName)(this.content,"has-status-bar"),this.curserInfoElements={},B=document.createElement("div"),(this.dom.statusBar=B).className="jsoneditor-statusbar",this.frame.appendChild(B),(E=document.createElement("span")).className="jsoneditor-curserinfo-label",E.innerText="Ln:",(j=document.createElement("span")).className="jsoneditor-curserinfo-val",j.innerText="1",B.appendChild(E),B.appendChild(j),(L=document.createElement("span")).className="jsoneditor-curserinfo-label",L.innerText="Col:",(E=document.createElement("span")).className="jsoneditor-curserinfo-val",E.innerText="1",B.appendChild(L),B.appendChild(E),this.curserInfoElements.colVal=E,this.curserInfoElements.lnVal=j,(L=document.createElement("span")).className="jsoneditor-curserinfo-label",L.innerText="characters selected",L.style.display="none",(E=document.createElement("span")).className="jsoneditor-curserinfo-count",E.innerText="0",E.style.display="none",this.curserInfoElements.countLabel=L,this.curserInfoElements.countVal=E,B.appendChild(E),B.appendChild(L),B.appendChild(this.errorTable.getErrorCounter()),B.appendChild(this.errorTable.getWarningIcon()),B.appendChild(this.errorTable.getErrorIcon())),this.setSchema(this.options.schema,this.options.schemaRefs)},y._onSchemaChange=function(h,f){this.aceEditor&&(this.options.allowSchemaSuggestions&&h?(this.aceEditor.setOption("enableBasicAutocompletion",[new g(h,f)]),this.aceEditor.setOption("enableLiveAutocompletion",!0)):(this.aceEditor.setOption("enableBasicAutocompletion",void 0),this.aceEditor.setOption("enableLiveAutocompletion",!1)))},y._onChange=function(){var h=this;if(!this.onChangeDisabled){if(setTimeout(function(){h._updateHistoryButtons&&h._updateHistoryButtons()}),this._debouncedValidate(),this.options.onChange)try{this.options.onChange()}catch{}if(this.options.onChangeText)try{this.options.onChangeText(this.getText())}catch{}}},y._updateHistoryButtons=function(){var h;this.aceEditor&&this.dom.undo&&this.dom.redo&&(h=this.aceEditor.getSession().getUndoManager())&&h.hasUndo&&h.hasRedo&&(this.dom.undo.disabled=!h.hasUndo(),this.dom.redo.disabled=!h.hasRedo())},y._showSortModal=function(){try{var h=this,f=this.options.modalAnchor||d.ai,w=this.get();(0,T.showSortModal)(f,w,function(E){var k;Array.isArray(w)&&(k=(0,S.sort)(w,E.path,E.direction),h.sortedBy=E,h.update(k)),(0,S.isObject)(w)&&(k=(0,S.sortObjectKeys)(w,E.direction),h.sortedBy=E,h.update(k))},h.sortedBy)}catch(E){this._onError(E)}},y._showTransformModal=function(){var h=this;try{var f=this.options,w=f.modalAnchor,E=f.createQuery,k=f.executeQuery,L=f.queryDescription,M=this.get();(0,C.showTransformModal)({container:w||d.ai,json:M,queryDescription:L,createQuery:E,executeQuery:k,onTransform:function(B){B=k(M,B),h.update(B)}})}catch(B){this._onError(B)}},y._onSelect=function(){this._updateCursorInfo(),this._emitSelectionChange()},y._onKeyDown=function(h){var f=!1;(h.which||h.keyCode)===73&&h.ctrlKey&&(h.shiftKey?this.compact():this.format(),this._onChange(),f=!0),f&&(h.preventDefault(),h.stopPropagation()),this._updateCursorInfo(),this._emitSelectionChange()},y._onMouseDown=function(){this._updateCursorInfo(),this._emitSelectionChange()},y._onBlur=function(){var h=this;setTimeout(function(){h.isFocused||(h._updateCursorInfo(),h._emitSelectionChange()),h.isFocused=!1})},y._updateCursorInfo=function(){var h,f,w,E,k,L=this;function M(){L.curserInfoElements.countVal.innerText!==k&&(L.curserInfoElements.countVal.innerText=k,L.curserInfoElements.countVal.style.display=k?"inline":"none",L.curserInfoElements.countLabel.style.display=k?"inline":"none"),L.curserInfoElements.lnVal.innerText=w,L.curserInfoElements.colVal.innerText=E}this.textarea?setTimeout(function(){var B=(0,S.getInputSelection)(L.textarea);B.startIndex!==B.endIndex&&(k=B.endIndex-B.startIndex),E=(k&&L.cursorInfo&&L.cursorInfo.line===B.end.row&&L.cursorInfo.column===B.end.column?(w=B.start.row,B.start):(w=B.end.row,B.end)).column,L.cursorInfo={line:w,column:E,count:k},L.options.statusBar&&M()},0):this.aceEditor&&this.curserInfoElements&&(h=this.aceEditor.getCursorPosition(),f=this.aceEditor.getSelectedText(),w=h.row+1,E=h.column+1,k=f.length,L.cursorInfo={line:w,column:E,count:k},this.options.statusBar)&&M()},y._emitSelectionChange=function(){var h;
142this._selectionChangedHandler&&(h=this.getTextSelection(),this._selectionChangedHandler(h.start,h.end,h.text))},y._refreshAnnotations=function(){var h,f=this.aceEditor&&this.aceEditor.getSession();f&&(h=f.getAnnotations().filter(function(w){return w.type==="error"}),f.setAnnotations(h))},y.destroy=function(){this.aceEditor&&(this.aceEditor.destroy(),this.aceEditor=null),this.frame&&this.container&&this.frame.parentNode===this.container&&this.container.removeChild(this.frame),this.modeSwitcher&&(this.modeSwitcher.destroy(),this.modeSwitcher=null),this.textarea=null,this._debouncedValidate=null,this.frameFocusTracker.destroy()},y.compact=function(){var h=this.get(),h=JSON.stringify(h);this.updateText(h)},y.format=function(){var h=this.get(),h=JSON.stringify(h,null,this.indentation);this.updateText(h)},y.repair=function(){var h=this.getText();try{var f=(0,c.m)(h);this.updateText(f)}catch{}},y.focus=function(){this.textarea&&this.textarea.focus(),this.aceEditor&&this.aceEditor.focus()},y.resize=function(){this.aceEditor&&this.aceEditor.resize(!1)},y.set=function(h){this.setText(JSON.stringify(h,null,this.indentation))},y.update=function(h){this.updateText(JSON.stringify(h,null,this.indentation))},y.get=function(){var h=this.getText();return(0,S.parse)(h)},y.getText=function(){return this.textarea?this.textarea.value:this.aceEditor?this.aceEditor.getValue():""},y._setText=function(k,f){var w,E=this,k=this.options.escapeUnicode===!0?(0,S.escapeUnicodeChars)(k):k;this.textarea&&(this.textarea.value=k),this.aceEditor&&(this.onChangeDisabled=!0,this.aceEditor.setValue(k,-1),this.onChangeDisabled=!1,f&&(w=this,setTimeout(function(){w.aceEditor&&w.aceEditor.session.getUndoManager().reset()})),setTimeout(function(){E._updateHistoryButtons&&E._updateHistoryButtons()})),this._debouncedValidate()},y.setText=function(h){this._setText(h,!0)},y.updateText=function(h){this.getText()!==h&&this._setText(h,!1)},y.validate=function(){var h,f=this,w=[],E=[];try{var k=this.get(),L=(this.validateSchema&&!this.validateSchema(k)&&(w=this.validateSchema.errors.map(function(B){return B.type="validation",(0,S.improveSchemaError)(B)})),this.validationSequence=(this.validationSequence||0)+1,this),M=this.validationSequence;return((B,j)=>{if(!j)return Promise.resolve([]);try{var z=j(B);return((0,S.isPromise)(z)?z:Promise.resolve(z)).then(function(Q){return Array.isArray(Q)?Q.filter(function(D){var K=(0,S.isValidValidationError)(D);return K}).map(function(D){return{dataPath:(0,S.stringifyPath)(D.path),message:D.message,type:"customValidation"}}):[]})}catch(Q){return Promise.reject(Q)}})(k,this.options.onValidate).then(function(B){return M===L.validationSequence&&(B=w.concat(E).concat(B),L._renderErrors(B),typeof f.options.onValidationError=="function"&&(0,S.isValidationErrorChanged)(B,f.lastSchemaErrors)&&f.options.onValidationError.call(f,B),f.lastSchemaErrors=B),f.lastSchemaErrors})}catch(B){return this.getText()&&((k=/\w*line\s*(\d+)\w*/g.exec(B.message))&&(h=+k[1]),E=[{type:"error",message:B.message.replace(/\n/g,"<br>"),line:h}]),this._renderErrors(E),typeof this.options.onValidationError=="function"&&(0,S.isValidationErrorChanged)(E,this.lastSchemaErrors)&&this.options.onValidationError.call(this,E),this.lastSchemaErrors=E,Promise.resolve(this.lastSchemaErrors)}},y._validateAndCatch=function(){this.validate().catch(function(h){})},y._renderErrors=function(h){var w=this.getText(),f=[],w=(h.reduce(function(E,k){return typeof k.dataPath=="string"&&E.indexOf(k.dataPath)===-1&&E.push(k.dataPath),E},f),(0,S.getPositionForPath)(w,f));this.aceEditor&&(this.annotations=w.map(function(E){var k=h.filter(function(M){return M.dataPath===E.path}),L=k.map(function(M){return M.message}).join(` 143`);return L?{row:E.line,column:E.column,text:"Schema validation error"+(k.length!==1?"s":"")+`: 144`+L,type:"warning",source:"jsoneditor"}:{}}),this._refreshAnnotations()),this.errorTable.setErrors(h,w),this.aceEditor&&this.aceEditor.resize(!1)},y.getTextSelection=function(){var h,f,w,E={};return this.textarea?(w=(0,S.getInputSelection)(this.textarea),this.cursorInfo&&this.cursorInfo.line===w.end.row&&this.cursorInfo.column===w.end.column?(E.start=w.end,E.end=w.start):E=w,{start:E.start,end:E.end,text:this.textarea.value.substring(w.startIndex,w.endIndex)}):this.aceEditor?(w=this.aceEditor.getSelection(),h=this.aceEditor.getSelectedText(),f=w.getRange(),(w=w.getSelectionLead()).row===f.end.row&&w.column===f.end.column?E=f:(E.start=f.end,E.end=f.start),{start:{row:E.start.row+1,column:E.start.column+1},end:{row:E.end.row+1,column:E.end.column+1},text:h}):void 0},y.onTextSelectionChange=function(h){typeof h=="function"&&(this._selectionChangedH
144andler=(0,S.debounce)(h,this.DEBOUNCE_INTERVAL))},y.setTextSelection=function(h,f){var w,E,k;h&&f&&(this.textarea?(w=(0,S.getIndexForPosition)(this.textarea,h.row,h.column),k=(0,S.getIndexForPosition)(this.textarea,f.row,f.column),-1<w&&-1<k&&(this.textarea.setSelectionRange?(this.textarea.focus(),this.textarea.setSelectionRange(w,k)):this.textarea.createTextRange&&((E=this.textarea.createTextRange()).collapse(!0),E.moveEnd("character",k),E.moveStart("character",w),E.select()),k=(this.textarea.value.match(/\n/g)||[]).length+1,w=this.textarea.scrollHeight/k,E=h.row*w,this.textarea.scrollTop=E>this.textarea.clientHeight?E-this.textarea.clientHeight/2:0)):this.aceEditor&&(k={start:{row:h.row-1,column:h.column-1},end:{row:f.row-1,column:f.column-1}},this.aceEditor.selection.setRange(k),this.aceEditor.scrollToLine(h.row-1,!0)))};var _=[{mode:"text",mixin:y,data:"text",load:I},{mode:"code",mixin:y,data:"text",load:I}]},5633:function(s,de,be){function c(V){return(c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(te){return typeof te}:function(te){return te&&typeof Symbol=="function"&&te.constructor===Symbol&&te!==Symbol.prototype?"symbol":typeof te})(V)}be.r(de),be.d(de,{treeModeMixins:function(){return Se}});function l(V){return O(V)?V:String(V)}function d(J,te,re,le){var G,Z,J=$(J,re);return O(te)?(G=v(te),Z=R(te),G=$(G,re),Z=$(Z,re),le(G,J)||le(Z,J)):le($(String(te),re),J)}var v=function(V){return V==null?"":typeof V=="string"?V:V.text||""},R=function(V){return V==null?"":typeof V=="string"?V:V.value||V.text||""},O=function(V){return V!==null&&c(V)==="object"},$=function(){var V=0<arguments.length&&arguments[0]!==void 0?arguments[0]:"";return(1<arguments.length?arguments[1]:void 0).caseSensitive?V:V.toLowerCase()},P={start:function(V,te,re){return d(V,te,re,function(le,G){return le.indexOf(G)===0})},contain:function(V,te,re){return d(V,te,re,function(le,G){return-1<le.indexOf(G)})}};function T(V){(V=V||{}).filter=V.filter||"start",V.trigger=V.trigger||"keydown",V.confirmKeys=V.confirmKeys||[39,35,9],V.caseSensitive=V.caseSensitive||!1;var te,re,le="",G="",Z=document.createElement("div"),J=(Z.style.position="relative",Z.style.outline="0",Z.style.border="0",Z.style.margin="0",Z.style.padding="0",document.createElement("div"));J.className="autocomplete dropdown",J.style.position="absolute",J.style.visibility="hidden";function ae(ue){var ye,ve;document.createRange?((ye=document.createRange()).selectNodeContents(ue),ye.collapse(!1),(ve=window.getSelection()).removeAllRanges(),ve.addRange(ye)):document.selection&&((ye=document.body.createTextRange()).moveToElementText(ue),ye.collapse(!1),ye.select())}function fe(ue){return te===void 0&&((te=document.createElement("span")).style.visibility="hidden",te.style.position="fixed",te.style.outline="0",te.style.margin="0",te.style.padding="0",te.style.border="0",te.style.left="0",te.style.whiteSpace="pre",te.style.fontSize=le,te.style.fontFamily=G,te.style.fontWeight="normal",document.body.appendChild(te)),te.textContent=ue,te.getBoundingClientRect().right}var we,Ee,$e,ce,ge,pe={onArrowDown:function(){},onArrowUp:function(){},onEnter:function(){},onTab:function(){},startFrom:0,options:[],element:null,elementHint:null,elementStyle:null,wrapper:Z,show:function(ue,ye,ve){var _e=this;this.startFrom=ye,this.wrapper.remove(),this.elementHint&&(this.elementHint.remove(),this.elementHint=null),le===""&&(le=window.getComputedStyle(ue).getPropertyValue("font-size")),G===""&&(G=window.getComputedStyle(ue).getPropertyValue("font-family")),J.style.marginLeft="0",J.style.marginTop=ue.getBoundingClientRect().height+"px",this.options=ve.map(l),this.element!==ue&&(this.element=ue,this.elementStyle={zIndex:this.element.style.zIndex,position:this.element.style.position,backgroundColor:this.element.style.backgroundColor,borderColor:this.element.style.borderColor}),this.element.style.zIndex=3,this.element.style.position="relative",this.element.style.backgroundColor="transparent",this.element.style.borderColor="transparent",this.elementHint=ue.cloneNode(),this.elementHint.className="autocomplete hint",this.elementHint.style.zIndex=2,this.elementHint.style.position="absolute",this.elementHint.onfocus=function(){_e.element.focus()},this.element.addEventListener&&(this.element.removeEventListener("keydown",Ve),this.element.addEventListener("keydown",Ve,!1),this.element.removeEventListener("blur",Ge),this.element.addEventListener("blur",Ge,!1)),Z.appendChild(this.elementHint),Z.appendChild(J),ue.parentElement.appendChild(Z),this.repaint(ue)},setText:function(ue){this.element.innerText=ue},getText:function(){return this.element.innerText},hideDropDown:function(){this.wrapper.remove(),this.elementHint&&(this.elementHint.remove(),this.elementHint=null,Ce.hide(),this.element.style.zIndex=this.elementStyle.zIndex,this.element.style.position=this.elementStyle.position,this.element.style.backgroundColor=this.elementStyle.backgroundColor,this.element.style.borderColor=this.elementStyle.borderColor)},repaint:function(ue){for(var ue=(ue=ue.innerText).replace(` 145`,""),ye=this.options.length,ve=ue.substring(this.startFrom),_e=(re=ue.substring(0,this.startFrom),typeof V.filter=="function"?V.filter:P[V.filter]),Te=0;Te<ye;Te++){var Le=this.options[Te];if(_e&&_e(ve,Le,V)){var Ne=v(Le),Le=R(Le),Vt="",ze=$(ve,V),et=$(Ne,V),ht=$(Le,V),Vt=et.indexOf(ze)===0?re+ve+Ne.substring(ve.length):ht.indexOf(ze)===0?re+ve+Le.substring(ve.length):re+ve;this.elementHint.innerText=Vt,this.elementHint.realInnerText=re+Le;break}}J.style.left=fe(re)+"px",Ce.refresh(ve,this.options),this.elementHint.style.width=fe(this.elementHint.innerText)+10+"px",J.style.visibility!=="hidden"&&(this.elementHint.style.width=fe(this.elementHint.innerText)+J.clientWidth+"px")}},Ce=(we=J,Ee=[],$e=0,ce=-1,ge={rs:pe,hide:function(){we.style.visibility="hidden"},refresh:function(ue,ye){we.style.visibility="hidden",$e=0,we.textContent="";var _e=window.innerHeight||document.documentElement.clientHeight,Le=we.parentNode.getBoundingClientRect(),ve=Le.top-6,_e=_e-Le.bottom-6,Te=(Ee=[],typeof V.filter=="function"?V.filter:P[V.filter]),Le=Te?ye.filter(function(Ne){return Te(ue,Ne,V)}):[];(Ee=Le.map(function(en){var ze,et,ht,Vt=document.createElement("div"),Pr=(Vt.className="item",Vt.onmouseover=ke,Vt.onmouseout=Pe,Vt.onmousedown=De,Vt.__hint=en,Vt.textContent="",ze=ue,ht=V,$r=v(en=en),en=R(en),Yn=$(ze,ht),Pr=$($r,ht),en=$(en,ht),ht=-1,ze=ze.length,et=$r,-1<Pr.indexOf(Yn)?(ht=Pr.indexOf(Yn),et=$r):-1<en.indexOf(Yn)&&
145(ht=en.indexOf(Yn),et=$r),-1<ht?{beforeText:et.substring(0,ht),matchText:et.substring(ht,ht+ze),afterText:et.substring(ht+ze),displayText:et}:{beforeText:"",matchText:"",afterText:et,displayText:et}),en=Pr.beforeText,Yn=Pr.matchText,$r=Pr.afterText;return en&&Vt.appendChild(document.createTextNode(en)),Yn&&((ht=document.createElement("b")).appendChild(document.createTextNode(Yn)),Vt.appendChild(ht)),$r&&Vt.appendChild(document.createTextNode($r)),we.appendChild(Vt),Vt})).length!==0&&(ye=R(Ee[0].__hint),Le=O(Ee[0].__hint)&&"text"in Ee[0].__hint,Ee.length!==1||$(ue,V)!==$(ye,V)||Le)&&(ge.highlight(0),3*_e<ve?(we.style.maxHeight=ve+"px",we.style.top="",we.style.bottom="100%"):(we.style.top="100%",we.style.bottom="",we.style.maxHeight=_e+"px"),we.style.visibility="visible")},highlight:function(ue){ce!==-1&&Ee[ce]&&(Ee[ce].className="item"),Ee[ue].className="item hover",ce=ue},move:function(ue){return we.style.visibility==="hidden"?"":($e+ue!==-1&&$e+ue!==Ee.length&&($e+=ue,ge.highlight($e)),Ee[$e].__hint)},onmouseselection:function(){}});function ke(){this.style.backgroundColor="#ddd"}function Pe(){this.style.backgroundColor=""}function De(){ge.hide(),ge.onmouseselection(this.__hint,ge.rs)}var Ve=(function(ue){var ye=(ue=ue||window.event).keyCode;if(this.elementHint!=null&&ye!==33&&ye!==34)if(ye===27)pe.hideDropDown(),pe.element.focus(),ue.preventDefault(),ue.stopPropagation();else{var ve,_e=(_e=this.element.innerText).replace(` 146`,"");if(0<=V.confirmKeys.indexOf(ye))ye===9&&this.elementHint.innerText.length===0&&pe.onTab(),0<this.elementHint.innerText.length&&this.element.innerText!==this.elementHint.realInnerText&&(this.element.innerText=this.elementHint.realInnerText,pe.hideDropDown(),ae(this.element),ye===9)&&(pe.element.focus(),ue.preventDefault(),ue.stopPropagation());else if(ye===13)if(this.elementHint.innerText.length===0)pe.onEnter();else{var Te=J.style.visibility==="hidden";if(Ce.hide(),Te)return pe.hideDropDown(),pe.element.focus(),void pe.onEnter();this.element.innerText=this.elementHint.realInnerText,pe.hideDropDown(),ae(this.element),ue.preventDefault(),ue.stopPropagation()}else ye===40?(Te=_e.substring(this.startFrom),(ve=Ce.move(1))===""&&pe.onArrowDown(),this.elementHint.innerText=re+Te+v(ve).substring(Te.length),this.elementHint.realInnerText=re+R(ve),ue.preventDefault(),ue.stopPropagation()):ye===38&&(Te=_e.substring(this.startFrom),(ve=Ce.move(-1))===""&&pe.onArrowUp(),this.elementHint.innerText=re+Te+v(ve).substring(Te.length),this.elementHint.realInnerText=re+R(ve),ue.preventDefault(),ue.stopPropagation())}}).bind(pe),Ge=function(ue){pe.hideDropDown()};return Ce.onmouseselection=function(ue,ye){ue=R(ue),ye.element.innerText=ye.elementHint.innerText=re+ue,ye.hideDropDown(),window.setTimeout(function(){ye.element.focus(),ae(ye.element)},1)},pe}var C=be(6545),N=be(2877);function x(V){return(x=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(te){return typeof te}:function(te){return te&&typeof Symbol=="function"&&te.constructor===Symbol&&te!==Symbol.prototype?"symbol":typeof te})(V)}function S(V,te){for(var re=0;re<te.length;re++){var le=te[re];le.enumerable=le.enumerable||!1,le.configurable=!0,"value"in le&&(le.writable=!0),Object.defineProperty(V,(G=>(G=((Z,J)=>{if(x(Z)!="object"||!Z)return Z;var ae=Z[Symbol.toPrimitive];if(ae===void 0)return(J==="string"?String:Number)(Z);if(x(ae=ae.call(Z,J))!="object")return ae;throw new TypeError("@@toPrimitive must return a primitive value.")})(G,"string"),x(G)=="symbol"?G:G+""))(le.key),le)}}var b=(()=>{function V(){if(!(this instanceof V))throw new TypeError("Cannot call a class as a function");this.locked=!1}return te=V,(re=[{key:"highlight",value:function(G){this.locked||(this.node!==G&&(this.node&&this.node.setHighlight(!1),this.node=G,this.node.setHighlight(!0)),this._cancelUnhighlight())}},{key:"unhighlight",value:function(){var G;this.locked||(G=this).node&&(this._cancelUnhighlight(),this.unhighlightTimer=setTimeout(function(){G.node.setHighlight(!1),G.node=void 0,G.unhighlightTimer=void 0},0))}},{key:"_cancelUnhighlight",value:function(){this.unhighlightTimer&&(clearTimeout(this.unhighlightTimer),this.unhighlightTimer=void 0)}},{key:"lock",value:function(){this.locked=!0}},{key:"unlock",value:function(){this.locked=!1}}])&&S(te.prototype,re),le&&S(te,le),Object.defineProperty(te,"prototype",{writable:!1}),te;var te,re,le})(),p=be(3057),g=be(359),u=be(1389),de=be(1342),y=be.n(de),m=be(1925),I=be(6237),_=be(2915),h=be(5609),f=be(660);function w(V){return(te=>{if(Array.isArray(te))return M(te)})(V)||(te=>{if(typeof Symbol<"u"&&te[Symbol.iterator]!=null||te["@@iterator"]!=null)return Array.from(te)})(V)||L(V)||(()=>{throw new TypeError(`Invalid attempt to spread non-iterable instance. 147In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function E(V,te){return(re=>{if(Array.isArray(re))return re})(V)||((re,le)=>{var G=re==null?null:typeof Symbol<"u"&&re[Symbol.iterator]||re["@@iterator"];if(G!=null){var Z,J,ae,fe,we=[],Ee=!0,$e=!1;try{if(ae=(G=G.call(re)).next,le!==0)for(;
147!(Ee=(Z=ae.call(G)).done)&&(we.push(Z.value),we.length!==le);Ee=!0);}catch(ce){$e=!0,J=ce}finally{try{if(!Ee&&G.return!=null&&(fe=G.return(),Object(fe)!==fe))return}finally{if($e)throw J}}return we}})(V,te)||L(V,te)||(()=>{throw new TypeError(`Invalid attempt to destructure non-iterable instance. 148In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function k(V,te){var re,le,G,Z,J=typeof Symbol<"u"&&V[Symbol.iterator]||V["@@iterator"];if(J)return G=!(le=!0),{s:function(){J=J.call(V)},n:function(){var ae=J.next();return le=ae.done,ae},e:function(ae){G=!0,re=ae},f:function(){try{le||J.return==null||J.return()}finally{if(G)throw re}}};if(Array.isArray(V)||(J=L(V))||te&&V&&typeof V.length=="number")return J&&(V=J),Z=0,{s:te=function(){},n:function(){return Z>=V.length?{done:!0}:{done:!1,value:V[Z++]}},e:function(ae){throw ae},f:te};throw new TypeError(`Invalid attempt to iterate non-iterable instance. 149In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function L(V,te){var re;if(V)return typeof V=="string"?M(V,te):(re=(re={}.toString.call(V).slice(8,-1))==="Object"&&V.constructor?V.constructor.name:re)==="Map"||re==="Set"?Array.from(V):re==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(re)?M(V,te):void 0}function M(V,te){(te==null||te>V.length)&&(te=V.length);for(var re=0,le=Array(te);re<te;re++)le[re]=V[re];return le}function B(V){return(B=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(te){return typeof te}:function(te){return te&&typeof Symbol=="function"&&te.constructor===Symbol&&te!==Symbol.prototype?"symbol":typeof te})(V)}function j(V,te){for(var re=0;re<te.length;re++){var le=te[re];le.enumerable=le.enumerable||!1,le.configurable=!0,"value"in le&&(le.writable=!0),Object.defineProperty(V,(G=>(G=((Z,J)=>{if(B(Z)!="object"||!Z)return Z;var ae=Z[Symbol.toPrimitive];if(ae===void 0)return(J==="string"?String:Number)(Z);if(B(ae=ae.call(Z,J))!="object")return ae;throw new TypeError("@@toPrimitive must return a primitive value.")})(G,"string"),B(G)=="symbol"?G:G+""))(le.key),le)}}var z=(()=>{function V(G,Z){if(!(this instanceof V))throw new TypeError("Cannot call a class as a function");this.editor=G,this.dom={},this.expanded=!1,Z&&Z instanceof Object?(this.setField(Z.field,Z.fieldEditable),"value"in Z&&this.setValue(Z.value,Z.type),"internalValue"in Z&&this.setInternalValue(Z.internalValue)):(this.setField(""),this.setValue(null)),this._debouncedOnChangeValue=(0,I.debounce)(this._onChangeValue.bind(this),V.prototype.DEBOUNCE_INTERVAL),this._debouncedOnChangeField=(0,I.debounce)(this._onChangeField.bind(this),V.prototype.DEBOUNCE_INTERVAL),this.visibleChilds=this.getMaxVisibleChilds()}return te=V,(re=[{key:"getMaxVisibleChilds",value:function(){return this.editor&&this.editor.options&&this.editor.options.maxVisibleChilds?this.editor.options.maxVisibleChilds:Q}},{key:"_updateEditability",value:function(){var G,Z;this.editable={field:!0,value:!0},this.editor&&(this.editable.field=this.editor.options.mode==="tree",this.editable.value=this.editor.options.mode!=="view",this.editor.options.mode!=="tree"&&this.editor.options.mode!=="form"||typeof this.editor.options.onEditable!="function"||(G=this.getValue.bind(this),typeof(Z=this.editor.options.onEditable({field:this.field,get value(){return G()},path:this.getPath()}))=="boolean"?(this.editable.field=Z,this.editable.value=Z):B(Z)==="object"&&Z!==null?(typeof Z.field=="boolean"&&(this.editable.field=Z.field),typeof Z.value=="boolean"&&(this.editable.value=Z.value)):(this.editable.field=!1,this.editable.value=!1)))}},{key:"getPath",value:function(){for(var G=this,Z=[];G;){var J=G.getName();J!==void 0&&Z.unshift(J),G=G.parent}return Z}},{key:"getInternalPath",value:function(){for(var G=this,Z=[];G;)G.parent&&Z.unshift(G.getIndex()),G=G.parent;return Z}},{key:"getName",value:function(){return this.parent?this.parent.type!=="array"?this.field:this.index:void 0}},{key:"findNodeByPath",value:function(G){if(G){if(G.length===0)return this;if(G.length&&this.childs&&this.childs.length){for(var Z=0;Z<this.childs.length;++Z)if(""+G[0]==""+this.childs[Z].getName())return this.childs[Z].findNodeByPath(G.slice(1))}}}},{key:"findNodeByInternalPath",value:function(G){if(G){for(var Z=this,J=0;J<G.length&&Z;J++)Z=Z.childs[G[J]];return Z}}},{key:"serialize",value:function(){return{value:this.getValue(),path:this.getPath()}}},{key:"findNode",value:function(G){for(var Z=(0,I.parsePath)(G),J=this;J&&0<Z.length;)(()=>{var ae=Z.shift();if(typeof ae=="number"){if(J.type!=="array")throw new Error("Cannot get child node at index "+ae+": node is no array");J=J.childs[ae]}else{if(J.type!=="object")throw new Error("Cannot get child node "+ae+": node is no object");J=J.childs.filter(function(fe){return fe.field===ae})[0]}})();return J}},{key:"findParents",value:function(){for(var G=[],Z=this.parent;Z;)G.unshift(Z),Z=Z.parent;return G}},{key:"setError",value:function(G,Z){this.error=G,this.errorChild=Z,this.dom&&this.dom.tr&&this.updateError()}},{key:"updateError",value:function(){var G=this,Z=this.fieldError||this.valueError||this.error,J=this.dom.tdError;if(Z&&this.dom&&this.dom.tr){(0,I.addClassName)(this.dom.tr,"jsoneditor-validation-error"),J||(J=document.createElement("td"),this.dom.tdError=J,this.dom.tdValue.parentNode.appendChild(J));var ae=document.createElement("button"),fe=(ae.type="button",ae.className="jsoneditor-button jsoneditor-schema-error",function(){G.dom.popupAnchor&&G.dom.popupAnchor.destroy()}),we=function(){delete G.dom.popupAnchor},Ee=function(pe){var ge=G.editor.frame,pe=(G.dom.popupAnchor=(0,m.p)(ae,G.editor.getPopupAnchor(),we,pe),ae.getBoundingClientRect()),ge=120<ge.getBoundingClientRect().width-pe.x?"jsoneditor-above":"jsoneditor-left",pe=document.createElement("div");pe.className="jsoneditor-popover "+ge,pe.appendChild(document.createTextNode(Z.message)),G.dom.popupAnchor.appendChild(pe)},$e=(ae.onmouseover=function(){G.dom.popupAnchor||Ee(!0)},ae.onfocus=function(){fe(),Ee(!1)},ae.onblur=function(){fe()},this.errorChild);
149for($e&&(ae.onclick=function(){$e.findParents().forEach(function(ce){ce.expand(!1)}),$e.scrollTo(function(){$e.focus()})});J.firstChild;)J.removeChild(J.firstChild);J.appendChild(ae)}else this.dom.tr&&(0,I.removeClassName)(this.dom.tr,"jsoneditor-validation-error"),J&&(this.dom.tdError.parentNode.removeChild(this.dom.tdError),delete this.dom.tdError)}},{key:"getIndex",value:function(){var G;return this.parent?(G=this.parent.childs.indexOf(this))!==-1?G:null:-1}},{key:"setParent",value:function(G){this.parent=G}},{key:"setField",value:function(G,Z){this.field=G,this.previousField=G,this.fieldEditable=Z===!0}},{key:"getField",value:function(){return this.field===void 0&&this._getDomField(),this.field}},{key:"setValue",value:function(G,Z){var J,ae,fe,we,Ee,$e,ce=this.childs;if(this.type=this._getType(G),Z&&Z!==this.type){if(Z!=="string"||this.type!=="auto")throw new Error('Type mismatch: cannot cast value of type "'+this.type+' to the specified type "'+Z+'"');this.type=Z}if(this.type==="array"){for(this.childs||(this.childs=[]),J=0;J<G.length;J++)(Ee=G[J])===void 0||Ee instanceof Function||(J<this.childs.length?((fe=this.childs[J]).fieldEditable=!1,fe.index=J,fe.setValue(Ee)):(fe=new V(this.editor,{value:Ee}),we=J<this.getMaxVisibleChilds(),this.appendChild(fe,we,!1)));for(ae=this.childs.length;ae>=G.length;ae--)this.removeChild(this.childs[ae],!1)}else if(this.type==="object"){for(this.childs||(this.childs=[]),ae=this.childs.length-1;0<=ae;ae--)H(G,this.childs[ae].field)||this.removeChild(this.childs[ae],!1);for(var ge in J=0,G)H(G,ge)&&((Ee=G[ge])===void 0||Ee instanceof Function||(($e=this.findChildByProperty(ge))?($e.setField(ge,!0),$e.setValue(Ee)):($e=new V(this.editor,{field:ge,value:Ee}),ge=J<this.getMaxVisibleChilds(),this.appendChild($e,ge,!1))),J++);!(this.value="")===this.editor.options.sortObjectKeys&&this.sort([],"asc",!1)}else this.hideChilds(),delete this.append,delete this.showMore,delete this.expanded,delete this.childs,this.value=G;Array.isArray(ce)!==Array.isArray(this.childs)&&this.recreateDom(),this.updateDom({updateIndexes:!0}),this.previousValue=this.value}},{key:"setInternalValue",value:function(G){var Z,J,ae,fe,we,Ee=this.childs;if(this.type=G.type,G.type==="array"){for(this.childs||(this.childs=[]),fe=0;fe<G.childs.length;fe++)(Z=G.childs[fe])===void 0||Z instanceof Function||(fe<this.childs.length?((J=this.childs[fe]).fieldEditable=!1,J.index=fe,J.setInternalValue(Z)):(J=new V(this.editor,{internalValue:Z}),ae=fe<this.getMaxVisibleChilds(),this.appendChild(J,ae,!1)));for(we=this.childs.length;we>=G.childs.length;we--)this.removeChild(this.childs[we],!1)}else if(G.type==="object"){for(this.childs||(this.childs=[]),fe=0;fe<G.childs.length;fe++)(Z=G.childs[fe])===void 0||Z instanceof Function||(fe<this.childs.length?(delete(J=this.childs[fe]).index,J.setField(Z.field,!0),J.setInternalValue(Z.value)):(J=new V(this.editor,{field:Z.field,internalValue:Z.value}),ae=fe<this.getMaxVisibleChilds(),this.appendChild(J,ae,!1)));for(we=this.childs.length;we>=G.childs.length;we--)this.removeChild(this.childs[we],!1)}else this.hideChilds(),delete this.append,delete this.showMore,delete this.expanded,delete this.childs,this.value=G.value;Array.isArray(Ee)!==Array.isArray(this.childs)&&this.recreateDom(),this.updateDom({updateIndexes:!0}),this.previousValue=this.value}},{key:"recreateDom",value:function(){var G;this.dom&&this.dom.tr&&this.dom.tr.parentNode?(G=this._detachFromDom(),this.clearDom(),this._attachToDom(G)):this.clearDom()}},{key:"getValue",value:function(){var G,Z;return this.type==="array"?(G=[],this.childs.forEach(function(J){G.push(J.getValue())}),G):this.type==="object"?(Z={},this.childs.forEach(function(J){Z[J.getField()]=J.getValue()}),Z):(this.value===void 0&&this._getDomValue(),this.value)}},{key:"getInternalValue",value:function(){return this.type==="array"?{type:this.t
149ype,childs:this.childs.map(function(G){return G.getInternalValue()})}:this.type==="object"?{type:this.type,childs:this.childs.map(function(G){return{field:G.getField(),value:G.getInternalValue()}})}:(this.value===void 0&&this._getDomValue(),{type:this.type,value:this.value})}},{key:"getLevel",value:function(){return this.parent?this.parent.getLevel()+1:0}},{key:"getNodePath",value:function(){var G=this.parent?this.parent.getNodePath():[];return G.push(this),G}},{key:"clone",value:function(){var G,Z;return(G=new V(this.editor)).type=this.type,G.field=this.field,G.fieldInnerText=this.fieldInnerText,G.fieldEditable=this.fieldEditable,G.previousField=this.previousField,G.value=this.value,G.valueInnerText=this.valueInnerText,G.previousValue=this.previousValue,G.expanded=this.expanded,G.visibleChilds=this.visibleChilds,this.childs?(Z=[],this.childs.forEach(function(J){J=J.clone(),J.setParent(G),Z.push(J)}),G.childs=Z):G.childs=void 0,G}},{key:"expand",value:function(G){this.childs&&(this.expanded=!0,this.dom.expand&&(this.dom.expand.className="jsoneditor-button jsoneditor-expanded"),this.showChilds(),G!==!1&&this.childs.forEach(function(Z){Z.expand(G)}),this.updateDom({recurse:!1}))}},{key:"collapse",value:function(G){this.childs&&(this.hideChilds(),G!==!1&&this.childs.forEach(function(Z){Z.collapse(G)}),this.dom.expand&&(this.dom.expand.className="jsoneditor-button jsoneditor-collapsed"),this.expanded=!1,this.updateDom({recurse:!1}))}},{key:"showChilds",value:function(){var G=this.childs;if(G&&this.expanded){var G=this.dom.tr,Z=G?G.parentNode:void 0;if(Z){for(var J=this.getAppendDom(),ae=(J.parentNode||((fe=G.nextSibling)?Z.insertBefore(J,fe):Z.appendChild(J)),Math.min(this.childs.length,this.visibleChilds)),fe=this._getNextTr(),we=0;we<ae;we++){var Ee=this.childs[we];Ee.getDom().parentNode||Z.insertBefore(Ee.getDom(),fe),Ee.showChilds()}G=this.getShowMoreDom(),fe=this._getNextTr(),G.parentNode||Z.insertBefore(G,fe),this.showMore.updateDom()}}}},{key:"_getNextTr",value:function(){return this.showMore&&this.showMore.getDom().parentNode?this.showMore.getDom():this.append&&this.append.getDom().parentNode?this.append.getDom():void 0}},{key:"hide",value:function(G){var Z=this.dom.tr,J=Z?Z.parentNode:void 0;J&&J.removeChild(Z),this.dom.popupAnchor&&this.dom.popupAnchor.destroy(),this.hideChilds(G)}},{key:"hideChilds",value:function(G){var Z;this.childs&&this.expanded&&((Z=this.getAppendDom()).parentNode&&Z.parentNode.removeChild(Z),this.childs.forEach(function(J){J.hide()}),(Z=this.getShowMoreDom()).parentNode&&Z.parentNode.removeChild(Z),G&&!G.resetVisibleChilds||(this.visibleChilds=this.getMaxVisibleChilds()))}},{key:"_updateCssClassName",value:function(){var G,Z;this.dom.field&&this.editor&&this.editor.options&&typeof this.editor.options.onClassName=="function"&&this.dom.tree&&((0,I.removeAllClassNames)(this.dom.tree),G=this.getValue.bind(this),Z=this.editor.options.onClassName({path:this.getPath(),field:this.field,get value(){return G()}})||"",(0,I.addClassName)(this.dom.tree,"jsoneditor-values "+Z))}},{key:"recursivelyUpdateCssClassesOnNodes",value:function(){if(this._updateCssClassName(),Array.isArray(this.childs))for(var G=0;G<this.childs.length;G++)this.childs[G].recursivelyUpdateCssClassesOnNodes()}},{key:"expandTo",value:function(){for(var G=this.parent;G;)G.expanded||G.expand(),G=G.parent}},{key:"appendChild",value:function(G,Z,J){var ae,fe;this._hasChilds()&&(G.setParent(this),G.fieldEditable=this.type==="object",this.type==="array"&&(G.index=this.childs.length),this.type==="object"&&G.field===void 0&&G.setField(""),this.childs.push(G),this.expanded&&Z!==!1&&(Z=G.getDom(),fe=(ae=this._getNextTr())?ae.parentNode:void 0,ae&&fe&&fe.insertBefore(Z,ae),G.showChilds(),this.visibleChilds++),J!==!1)&&(this.updateDom({updateIndexes:!0}),G.updateDom({recurse:!0}))}},{key:"moveBefore",value:function(G,Z,J){var ae,fe,we;this._hasChilds()&&((ae=this.dom.tr?this.dom.tr.parentNode:void 0)&&((fe=document.createElement("tr")).style.height=ae.clientHeight+"px",ae.appendChild(fe)),G.parent&&G.parent.removeChild(G),Z instanceof A||!Z?this.childs.length+1>this.visibleChilds?(we=this.childs[this.visibleChilds-1],this.insertBefore(G,we,J)):this.appendChild(G,!0,J):this.insertBefore(G,Z,J),ae)&&fe&&ae.removeChild(fe)}},{key:"insertBefore",value:function(G,Z,J){if(this._hasChilds()){if(this.visibleChilds++,this.type==="object"&&G.field===void 0&&G.setField(""),Z===this.append)G.setParent(this),G.fieldEditable=this.type==="object",this.childs.push(G);else{var ae=this.childs.indexOf(Z);if(ae===-1)throw new Error("Node not found");G.setParent(this),G.fieldEditable=this.type==="object",this.childs.splice(ae,0,G)}var fe;this.expanded&&(ae=G.getDom(),fe=(Z=Z.getDom())?Z.parentNode:void 0,Z&&fe&&fe.insertBefore(ae,Z),G.showChilds(),this.showChilds()),J!==!1&&(this.updateDom({updateIndexes:!0}),G.updateDom({recurse:!0}))}}},{key:"insertAfter",value:function(G,Z){this._hasChilds()&&(Z=this.childs.indexOf(Z),(Z=this.childs[Z+1])?this.insertBefore(G,Z):this.appendChild(G))}},{key:"search",value:function(G,Z){Array.isArray(Z)||(Z=[]);var J=G?G.toLowerCase():void 0;return delete this.searchField,delete this.searchValue,this.field!==void 0&&Z.length<=this.MAX_SEARCH_RESULTS&&(String(this.field).toLowerCase().indexOf(J)!==-1&&(this.searchField=!0,Z.push({node:this,elem:"field"})),this._updateDomField()),this._hasChilds()?this.childs&&this.childs.forEach(function(ae){ae.search(G,Z)}):this.value!==void 0&&Z.length<=this.MAX_SEARCH_RESULTS&&(String(this.value).toLowerCase().indexOf(J)!==-1&&(this.searchValue=!0,Z.push({node:this,elem:"value"})),this._updateDomValue()),Z}},{key:"scrollTo",value:function(G){this.expandPathToNode(),this.dom.tr&&this.dom.tr.parentNode&&this.editor.scrollTo(this.dom.tr.offsetTop,G)}},{key:"expandPathToNode",value:function(){for(var G=this;G&&G.parent;){for(var Z=G.parent.type==="array"?G.index:G.parent.childs.indexOf(G);G.parent.visibleChilds<Z+1;)G.parent.visibleChilds+=this.getMaxVisibleChilds();G.parent.expand(!1),G=G.parent}}},{key:"focus",value:function(G){if(V.focusElement=G,this.dom.tr&&this.dom.tr.parentNode){var Z=this.dom;switch(G){case"drag":(Z.drag||Z.menu).focus();break;case"menu":Z.menu.focus();break;case"expand":this._hasChilds()?Z.expand.focus():Z.field&&this.fieldEditable?(Z.field.focus(),(0,I.selectContentEditable)(Z.field)):Z.value&&!this._hasChilds()?(Z.value.focus(),(0,I.selectContentEditable)(Z.value)):Z.menu.focus();break;case"field":Z.field&&this.fieldEditable?(Z.field.focus(),(0,I.selectContentEditable)(Z.field)):Z.value&&!this._hasChilds()?(Z.value.focus(),(0,I.selectContentEditable)(Z.value)):(this._hasChilds()?Z.expand:Z.menu).focus();break;default:Z.select?Z.select.focus():Z.value&&!this._hasChilds()?(Z.value.focus(),(0,I.selectContentEditable)(Z.value)):Z.field&&this.fieldEditable?(Z.field.focus(),(0,I.selectContentEditable)(Z.field)):(this._hasChilds()?Z.expand:Z.menu).focus()}}}},{key:"containsNode",value:function(G){if(this===G)return!0;var Z=this.childs;if(Z){for(var J=0,ae=Z.length;J<ae;J++)if(Z[J].containsNode(G))return!0}return!1}},{key:"removeChild",value:function(G,Z){if(this.childs){var J=this.childs.indexOf(G);if(J!==-1)return J<this.visibleChilds&&this.expanded&&this.visibleChilds--,G.hide(),delete G.searchField,delete G.searchValue,(G=this.childs.splice(J,1)[0]).parent=null,Z!==!1&&this.updateDom({updateIndexes:!0}),G}}},{key:"_remove",value:function(G){this.removeChild(G)}},{key:"changeType",value:function(G){var Z,J=this.type;J!==G&&(G!=="string"&&G!=="auto"||J!=="string"&&J!=="auto"?(Z=this._detachFromDom(),this.clearDom(),(this.t
149ype=G)==="object"?(this.childs||(this.childs=[]),this.childs.forEach(function(ae){ae.clearDom(),delete ae.index,ae.fieldEditable=!0,ae.field===void 0&&(ae.field="")}),J!=="string"&&J!=="auto"||(this.expanded=!0)):G==="array"?(this.childs||(this.childs=[]),this.childs.forEach(function(ae,fe){ae.clearDom(),ae.fieldEditable=!1,ae.index=fe}),J!=="string"&&J!=="auto"||(this.expanded=!0)):this.expanded=!1,this._attachToDom(Z)):this.type=G,G!=="auto"&&G!=="string"||(this.value=G==="string"?String(this.value):(0,I.parseString)(String(this.value)),this.focus()),this.updateDom({updateIndexes:!0}))}},{key:"deepEqual",value:function(G){var Z;if(this.type==="array"){if(!Array.isArray(G)||this.childs.length!==G.length)return!1;for(Z=0;Z<this.childs.length;Z++)if(!this.childs[Z].deepEqual(G[Z]))return!1}else if(this.type==="object"){if(B(G)!=="object"||!G)return!1;var J=Object.keys(G);if(this.childs.length!==J.length)return!1;for(Z=0;Z<J.length;Z++){var ae=this.childs[Z];if(ae.field!==J[Z]||!ae.deepEqual(G[ae.field]))return!1}}else if(this.value!==G)return!1;return!0}},{key:"_getDomValue",value:function(){if(this._clearValueError(),this.dom.value&&this.type!=="array"&&this.type!=="object"&&(this.valueInnerText=(0,I.getInnerText)(this.dom.value),this.valueInnerText==="")&&this.dom.value.innerHTML!==""&&(this.dom.value.textContent=""),this.valueInnerText!==void 0)try{var G,Z;(Z=this.type==="string"?this._unescapeHTML(this.valueInnerText):(G=this._unescapeHTML(this.valueInnerText),(0,I.parseString)(G)))!==this.value&&(this.value=Z,this._debouncedOnChangeValue())}catch{this._setValueError((0,p.Tl)("cannotParseValueError"))}}},{key:"_setValueError",value:function(G){this.valueError={message:G},this.updateError()}},{key:"_clearValueError",value:function(){this.valueError&&(this.valueError=null,this.updateError())}},{key:"_setFieldError",value:function(G){this.fieldError={message:G},this.updateError()}},{key:"_clearFieldError",value:function(){this.fieldError&&(this.fieldError=null,this.updateError())}},{key:"_onChangeValue",value:function(){var G,Z=this.editor.getDomSelection(),J=(Z.range&&(J=(0,I.textDiff)(String(this.value),String(this.previousValue)),Z.range.startOffset=J.start,Z.range.endOffset=J.end),this.editor.getDomSelection());J.range&&(G=(0,I.textDiff)(String(this.previousValue),String(this.value)),J.range.startOffset=G.start,J.range.endOffset=G.end),this.editor._onAction("editValue",{path:this.getInternalPath(),oldValue:this.previousValue,newValue:this.value,oldSelection:Z,newSelection:J}),this.previousValue=this.value}},{key:"_onChangeField",value:function(){var G=this.editor.getDomSelection(),Z=this.previousField||"",J=(G.range&&(J=(0,I.textDiff)(this.field,Z),G.range.startOffset=J.start,G.range.endOffset=J.end),this.editor.getDomSelection());J.range&&(Z=(0,I.textDiff)(Z,this.field),J.range.startOffset=Z.start,J.range.endOffset=Z.end),this.editor._onAction("editField",{parentPath:this.parent.getInternalPath(),index:this.getIndex(),oldValue:this.previousField,newValue:this.field,oldSelection:G,newSelection:J}),this.previousField=this.field}},{key:"_updateDomValue",value:function(){var G=this.dom.value;if(G){var Z=["jsoneditor-value"],J=this.value,ae=this.type==="auto"?(0,I.getType)(J):this.type,fe=ae==="string"&&(0,I.isUrl)(J);if(Z.push("jsoneditor-"+ae),fe&&Z.push("jsoneditor-url"),String(this.value)===""&&this.type!=="array"&&this.type!=="object"&&Z.push("jsoneditor-empty"),this.searchValueActive&&Z.push("jsoneditor-highlight-active"),this.searchValue&&Z.push("jsoneditor-highlight"),G.className=Z.join(" "),ae==="array"||ae==="object"?(Z=this.childs?this.childs.length:0,G.title=this.type+" containing "+Z+" items"):fe&&this.editable.value?G.title=(0,p.Tl)("openUrl"):G.title="",ae==="boolean"&&this.editable.value?(this.dom.checkbox||(this.dom.checkbox=document.createElement("input"),this.dom.checkbox.type="checkbox",this.dom.tdCheckbox=document.createElement("td"),this.dom.tdCheckbox.className="jsoneditor-tree",this.dom.tdCheckbox.appendChild(this.dom.checkbox),this.dom.tdValue.parentNode.insertBefore(this.dom.tdCheckbox,this.dom.tdValue)),this.dom.checkbox.checked=this.value):this.dom.tdCheckbox&&(this.dom.tdCheckbox.parentNode.removeChild(this.dom.tdCheckbox),delete this.dom.tdCheckbox,delete this.dom.checkbox),this.enum&&this.editable.value?(this.dom.select||(this.dom.select=document.createElement("select"),this.id=this.field+"_"+new Date().getUTCMilliseconds(),this.dom.select.id=this.id,this.dom.select.name=this.dom.select.id,(Z=document.createElement("option")).value="",Z.textContent="--",this.dom.select.appendChild(Z),this._updateEnumOptions(),this.dom.tdSelect=document.createElement("td"),this.dom.tdSelect.className="jsoneditor-tree",this.dom.tdSelect.appendChild(this.dom.select),this.dom.tdValue.parentNode.insertBefore(this.dom.tdSelect,this.dom.tdValue)),this.dom.select.value=this.enum.indexOf(this.value)!==-1?this.value:"",!this.schema||H(this.schema,"oneOf")||H(this.schema,"anyOf")||H(this.schema,"allOf")?delete this.valueFieldHTML:(this.valueFieldHTML=this.dom.tdValue.innerHTML,this.dom.tdValue.style.visibility="hidden",this.dom.tdValue.textContent="")):this.dom.tdSelect&&(this.dom.tdSelect.parentNode.removeChild(this.dom.tdSelect),delete this.dom.tdSelect,delete this.dom.select,this.dom.tdValue.innerHTML=this.valueFieldHTML,this.dom.tdValue.style.visibility="",delete this.valueFieldHTML,this.dom.tdValue.appendChild(this.dom.value)),this.editor.options.colorPicker&&typeof J=="string"&&(0,I.isValidColor)(J)?(this.dom.color||(this.dom.color=document.createElement("div"),this.dom.color.className="jsoneditor-color",this.dom.tdColor=document.createElement("td"),this.dom.tdColor.className="jsoneditor-tree",this.dom.tdColor.appendChild(this.dom.color),this.dom.tdValue.parentNode.insertBefore(this.dom.tdColor,this.dom.tdValue)),(0,I.addClassName)(this.dom.value,"jsoneditor-color-value"),(this.editable.value?I.removeClassName:I.addClassName)(this.dom.color,"jsoneditor-color-readonly"),this.dom.color.style.backgroundColor=J):this._deleteDomColor(),this._showTimestampTag()){if(this.dom.date||(this.dom.date=document.createElement("div"),this.dom.date.className="jsoneditor-date",this.dom.value.parentNode.appendChild(this.dom.date)),fe=null,fe=typeof this.editor.options.timestampFormat=="function"?this.editor.options.timestampFormat({field:this.field,value:this.value,path:this.getPath()}):fe){for(;this.dom.date.firstChild;)this.dom.date.removeChild(this.dom.date.firstChild);this.dom.date.appendChild(document.createTextNode(fe))}else this.dom.date.textContent=new Date(J).toISOString();this.dom.date.title=new Date(J).toString()}else this.dom.date&&(this.dom.date.parentNode.removeChild(this.dom.date),delete this.dom.date);(0,I.stripFormatting)(G),this._updateDomDefault()}}},{key:"_updateEnumOptions",value:function(){if(this.enum&&this.dom.select){this.dom.select.innerHTML="";for(var G=0;G<this.enum.length;G++){var Z=document.createElement("option");Z.value=this.enum[G],Z.textContent=this.enum[G],this.dom.select.appendChild(Z)}}}},{key:"_deleteDomColor",value:function(){this.dom.color&&(this.dom.tdColor.parentNode.removeChild(this.dom.tdColor),delete this.dom.tdColor,delete this.dom.color,(0,I.removeClassName)(this.dom.value,"jsoneditor-color-value"))}},{key:"_updateDomField",value:function(){var G,Z=this.dom.field;Z&&((G=(0,I.makeFieldTooltip)(this.schema,this.editor.options.language))&&(Z.title=G),(String(this.field)===""&&this.parent&&this.parent.type!=="array"?I.addClassName:I.removeClassName)(Z,"jsoneditor-empty"),(this.searchFieldActive?I.addClassName:I.removeClassName)(Z,"jsoneditor-highlight-active"),(this.searchField?I.addClassName:I.removeClassName)(Z,"jsoneditor-highlight"),(0,I.stripFormatting)(Z))}},{key:"_getDomField",value:function(G){if(this._clearFieldError(),this.dom.field&&this.fieldEditable&&(this.fieldInnerText=(0,I.getInnerText)(this.dom.field),this.fieldInnerText==="")&&this.dom.field.innerHTML!==""&&(this.dom.field.textContent=""),this.fieldInnerText!==void 0)try{var Z=this._unescapeHTML(this.fieldInnerText),J=this.parent.getFieldNames(this);J.indexOf(Z)!==-1?G?(Z=(0,I.findUniqueName)(Z,J))!==this.field&&(this.field=Z,this._debouncedOnChangeField()):this._setFieldError((0,p.Tl)("duplicateFieldError")):Z!==this.field&&(this.field=Z,this._debouncedOnChangeField())}catch{this._setFieldError((0,p.Tl)("cannotParseFieldError"))}}},{key:"_updateDomDefault",value:function(){var G;this.schema&&this.schema.default!==void 0&&!this._hasChilds()&&(G=this.dom.select||this.dom.value)&&(this.value===this.schema.default?(G.title=(0,p.Tl)("default"),(0,I.addClassName)(G,"jsoneditor-is-default"),I.removeClassName):(G.removeAttribute("title"),
149(0,I.removeClassName)(G,"jsoneditor-is-default"),I.addClassName))(G,"jsoneditor-is-not-default")}},{key:"_showTimestampTag",value:function(){var G,Z;return typeof this.value=="number"&&(typeof(G=this.editor.options.timestampTag)=="function"?typeof(Z=G({field:this.field,value:this.value,path:this.getPath()}))=="boolean"?Z:(0,I.isTimestamp)(this.field,this.value):G===!0&&(0,I.isTimestamp)(this.field,this.value))}},{key:"clearDom",value:function(){this.dom={}}},{key:"getDom",value:function(){var G,Z,J=this.dom;return J.tr||(this._updateEditability(),J.tr=document.createElement("tr"),(J.tr.node=this).editor.options.mode==="tree"&&(Z=document.createElement("td"),this.editable.field&&this.parent&&((G=document.createElement("button")).type="button",(J.drag=G).className="jsoneditor-button jsoneditor-dragarea",G.title=(0,p.Tl)("drag"),Z.appendChild(G)),J.tr.appendChild(Z),G=document.createElement("td"),(Z=document.createElement("button")).type="button",(J.menu=Z).className="jsoneditor-button jsoneditor-contextmenu-button",Z.title=(0,p.Tl)("actionsMenu"),G.appendChild(J.menu),J.tr.appendChild(G)),Z=document.createElement("td"),J.tr.appendChild(Z),J.tree=this._createDomTree(),Z.appendChild(J.tree),this.updateDom({updateIndexes:!0})),J.tr}},{key:"isVisible",value:function(){return this.dom&&this.dom.tr&&this.dom.tr.parentNode||!1}},{key:"isDescendantOf",value:function(G){for(var Z=this.parent;Z;){if(Z===G)return!0;Z=Z.parent}return!1}},{key:"_createDomField",value:function(){return document.createElement("div")}},{key:"setHighlight",value:function(G){this.dom.tr&&((G?I.addClassName:I.removeClassName)(this.dom.tr,"jsoneditor-highlight"),this.append&&this.append.setHighlight(G),this.childs)&&this.childs.forEach(function(Z){Z.setHighlight(G)})}},{key:"setSelected",value:function(G,Z){this.selected=G,this.dom.tr&&((G?I.addClassName:I.removeClassName)(this.dom.tr,"jsoneditor-selected"),(Z?I.addClassName:I.removeClassName)(this.dom.tr,"jsoneditor-first"),this.append&&this.append.setSelected(G),this.showMore&&this.showMore.setSelected(G),this.childs)&&this.childs.forEach(function(J){J.setSelected(G)})}},{key:"updateValue",value:function(G){this.value=G,this.previousValue=G,this.valueError=void 0,this.updateDom()}},{key:"updateField",value:function(G){this.field=G,this.previousField=G,this.fieldError=void 0,this.updateDom()}},{key:"updateDom",value:function(G){var Z,J=this.dom.tree,J=(J&&(J.style.marginLeft=24*this.getLevel()+"px"),this.dom.field),J=(J&&(this.fieldEditable?(J.contentEditable=this.editable.field,J.spellcheck=!1,J.className="jsoneditor-field"):(J.contentEditable=!1,J.className="jsoneditor-readonly"),Z=this.index!==void 0?this.index:this.field!==void 0?this.field:(Z=this.editor.options.schema?V._findSchema(this.editor.options.schema,this.editor.options.schemaRefs||{},this.getPath()):void 0)&&Z.title?Z.title:this._hasChilds()?this.type:"",Z=this._escapeHTML(Z),document.activeElement!==J&&Z!==this._unescapeHTML((0,I.getInnerText)(J))&&(J.innerHTML=Z),this._updateSchema(),this._updateEnumOptions()),this.dom.value),J=(J&&(this.type==="array"||this.type==="object"?this.updateNodeName():(Z=this._escapeHTML(this.value),document.activeElement!==J&&Z!==this._unescapeHTML((0,I.getInnerText)(J))&&(J.innerHTML=Z))),this.dom.tr);J&&(this.type==="array"||this.type==="object"?((0,I.addClassName)(J,"jsoneditor-expandable"),this.expanded?((0,I.addClassName)(J,"jsoneditor-expanded"),(0,I.removeClassName)(J,"jsoneditor-collapsed")):((0,I.addClassName)(J,"jsoneditor-collapsed"),(0,I.removeClassName)(J,"jsoneditor-expanded"))):((0,I.removeClassName)(J,"jsoneditor-expandable"),(0,I.removeClassName)(J,"jsoneditor-expanded"),(0,I.removeClassName)(J,"jsoneditor-collapsed"))),this._updateDomField(),this._updateDomValue(),G&&G.updateIndexes===!0&&this._updateDomIndexes(),G&&G.recurse===!0&&this.childs&&this.childs.forEach(function(ae){ae.updateDom(G)}),this.error&&this.updateError(),this.append&&this.append.updateDom(),this.showMore&&this.showMore.updateDom(),this._updateCssClassName()}},{key:"_updateSchema",value:function(){this.editor&&this.editor.options&&(this.schema=this.editor.options.schema?V._findSchema(this.editor.options.schema,this.editor.options.schemaRefs||{},this.getPath()):null,this.schema?this.enum=V._findEnum(this.schema):delete this.enum)}},{key:"_updateDomIndexes",value:function(){var G=this.dom.value,Z=this.childs;
149G&&Z&&(this.type==="array"?Z.forEach(function(J,ae){J.index=ae,J=J.dom.field,J&&(J.textContent=ae)}):this.type==="object"&&Z.forEach(function(J){J.index!==void 0&&(delete J.index,J.field===void 0)&&(J.field="")}))}},{key:"_createDomValue",value:function(){var G;return this.type==="array"?(G=document.createElement("div")).textContent="[...]":this.type==="object"?(G=document.createElement("div")).textContent="{...}":(!this.editable.value&&(0,I.isUrl)(this.value)?(G=document.createElement("a")).href=this.value:((G=document.createElement("div")).contentEditable=this.editable.value,G.spellcheck=!1),G.innerHTML=this._escapeHTML(this.value)),G}},{key:"_createDomExpandButton",value:function(){var G=document.createElement("button");return G.type="button",this._hasChilds()?(G.className=this.expanded?"jsoneditor-button jsoneditor-expanded":"jsoneditor-button jsoneditor-collapsed",G.title=(0,p.Tl)("expandTitle")):(G.className="jsoneditor-button jsoneditor-invisible",G.title=""),G}},{key:"_createDomTree",value:function(){var G=this.dom,Z=document.createElement("table"),ae=document.createElement("tbody"),J=(Z.style.borderCollapse="collapse",Z.className="jsoneditor-values",Z.appendChild(ae),document.createElement("tr")),ae=(ae.appendChild(J),document.createElement("td")),ae=(ae.className="jsoneditor-tree",J.appendChild(ae),G.expand=this._createDomExpandButton(),ae.appendChild(G.expand),G.tdExpand=ae,document.createElement("td")),ae=(ae.className="jsoneditor-tree",J.appendChild(ae),G.field=this._createDomField(),ae.appendChild(G.field),G.tdField=ae,document.createElement("td")),ae=(ae.className="jsoneditor-tree",J.appendChild(ae),this.type!=="object"&&this.type!=="array"&&(ae.appendChild(document.createTextNode(":")),ae.className="jsoneditor-separator"),G.tdSeparator=ae,document.createElement("td"));return ae.className="jsoneditor-tree",J.appendChild(ae),G.value=this._createDomValue(),ae.appendChild(G.value),G.tdValue=ae,Z}},{key:"onEvent",value:function(G){var Z,J=G.type,ae=G.target||G.srcElement,fe=this.dom,we=this,Ee=this._hasChilds(),$e=(ae!==fe.drag&&ae!==fe.menu||(J==="mouseover"?this.editor.highlighter.highlight(this):J==="mouseout"&&this.editor.highlighter.unhighlight()),J==="click"&&ae===fe.menu&&((Z=we.editor.highlighter).highlight(we),Z.lock(),(0,I.addClassName)(fe.menu,"jsoneditor-selected"),this.showContextMenu(fe.menu,function(){(0,I.removeClassName)(fe.menu,"jsoneditor-selected"),Z.unlock(),Z.unhighlight()})),J==="click"&&ae===fe.expand&&Ee&&(Ce=G.ctrlKey,this._onExpand(Ce)),J!=="click"||G.target!==we.dom.tdColor&&G.target!==we.dom.color||!this.editable.value||this._showColorPicker(),J==="change"&&ae===fe.checkbox&&(this.dom.value.textContent=String(!this.value),this._getDomValue(),this._updateDomDefault()),J==="change"&&ae===fe.select&&(this.dom.value.innerHTML=this._escapeHTML(fe.select.value),this._getDomValue(),this._updateDomValue()),fe.value);if(ae===$e)switch(J){case"blur":case"change":this._getDomValue(),this._clearValueError(),this._updateDomValue();var ce=this._escapeHTML(this.value);ce!==this._unescapeHTML((0,I.getInnerText)($e))&&($e.innerHTML=ce);break;case"input":this._getDomValue(),this._updateDomValue();break;case"keydown":case"mousedown":this.editor.selection=this.editor.getDomSelection();break;case"click":G.ctrlKey&&this.editable.value&&(0,I.isUrl)(this.value)&&(G.preventDefault(),window.open(this.value,"_blank","noreferrer"));break;case"keyup":this._getDomValue(),this._updateDomValue();break;case"cut":case"paste":setTimeout(function(){we._getDomValue(),we._updateDomValue()},1)}var ge=fe.field;if(ae===ge)switch(J){case"blur":this._getDomField(!0),this._updateDomField();var pe=this._escapeHTML(this.field);pe!==this._unescapeHTML((0,I.getInnerText)(ge))&&(ge.innerHTML=pe);break;case"input":this._getDomField(),this._updateSchema(),this._updateDomField(),this._updateDomValue();break;case"keydown":case"mousedown":this.editor.selection=this.editor.getDomSelection();break;case"keyup":this._getDomField(),this._updateDomField();break;case"cut":case"paste":setTimeout(function(){we._getDomField(),we._updateDomField()},1)}var Ce=fe.tree;Ce&&ae===Ce.parentNode&&J==="click"&&!G.hasMoved&&((G.offsetX!==void 0?G.offsetX<24*(this.getLevel()+1):G.pageX<(0,I.getAbsoluteLeft)(fe.tdSeparator))||Ee?ge&&((0,I.setEndOfContentEditable)(ge),ge.focus()):$e&&!this.enum&&((0,I.setEndOfContentEditable)($e),$e.focus())),(ae!==fe.tdExpand||Ee)&&ae!==fe.tdField&&ae!==fe.tdSeparator||J!=="click"||G.hasMoved||ge&&((0,I.setEndOfContentEditable)(ge),ge.focus()),J==="keydown"&&this.onKeyDown(G),typeof this.editor.options.onEvent=="function"&&this._onEvent(G)}},{key:"_onEvent",value:function(G){var J=G.target,Z=J===this.dom.field,J=J===this.dom.value||J===this.dom.checkbox||J===this.dom.select;(Z||J)&&(Z={field:this.getField(),path:this.getPath()},J&&!this._hasChilds()&&(Z.value=this.getValue()),this.editor.options.onEvent(Z,G))}},{key:"onKeyDown",value:function(G){var Z,J,ae,fe,we,Ee,$e,ce,ge,pe,Ce,ke,Pe,De,Ve=G.which||G.keyCode,Ge=G.target||G.srcElement,ue=G.ctrlKey,ye=G.shiftKey,ve=G.altKey,_e=!1,Te=this.editor.options.mode==="tree",Le=0<this.editor.multiselection.nodes.length?this.editor.multiselection.nodes:[this],Ne=Le[0],ze=Le[Le.length-1];Ve===13?Ge===this.dom.value?this.editable.value&&!G.ctrlKey||(0,I.isUrl)(this.value)&&(window.open(this.value,"_blank","noreferrer"),_e=!0):Ge===this.dom.expand&&this._hasChilds()&&(Pe=G.ctrlKey,this._onExpand(Pe),Ge.focus(),_e=!0):Ve===68?ue&&Te&&(V.onDuplicate(Le),_e=!0):Ve===69?ue&&(this._onExpand(ye),Ge.focus(),_e=!0):Ve===77&&Te?ue&&(this.showContextMenu(Ge),_e=!0):Ve===46&&Te?ue&&(V.onRemove(Le),_e=!0):Ve===45&&Te?ue&&!ye?(this._onInsertBefore(),_e=!0):ue&&ye&&(this._onInsertAfter(),_e=!0):Ve===35?ve&&((Pe=this._lastNode())&&Pe.focus(V.focusElement||this._getElementName(Ge)),_e=!0):Ve===36?ve&&((Pe=this._firstNode())&&Pe.focus(V.focusElement||this._getElementName(Ge)),_e=!0):Ve===37?ve&&!ye?((Pe=this._previousElement(Ge))&&this.focus(this._getElementName(Pe)),_e=!0):ve&&ye&&Te&&(Pe=ze.expanded?(Pe=ze.getAppendD
149om())?Pe.nextSibling:void 0:ze.getDom().nextSibling)&&(Ce=V.getNodeFromTarget(Pe),Pe=Pe.nextSibling,ke=V.getNodeFromTarget(Pe),Ce)&&Ce instanceof A&&ze.parent.childs.length!==1&&ke&&ke.parent&&(J=this.editor.getDomSelection(),ae=(fe=Ne.parent).childs[ze.getIndex()+1]||fe.append,we=Ne.getIndex(),Ee=ke.getIndex(),$e=fe.getInternalPath(),ce=ke.parent.getInternalPath(),Le.forEach(function(et){ke.parent.moveBefore(et,ke)}),this.focus(V.focusElement||this._getElementName(Ge)),this.editor._onAction("moveNodes",{count:Le.length,fieldNames:Le.map(K),oldParentPath:fe.getInternalPath(),newParentPath:Ne.parent.getInternalPath(),oldIndex:ae.getIndex(),newIndex:Ne.getIndex(),oldIndexRedo:we,newIndexRedo:Ee,oldParentPathRedo:$e,newParentPathRedo:ce,oldSelection:J,newSelection:this.editor.getDomSelection()})):Ve===38?ve&&!ye?((Z=this._previousNode())&&(this.editor.deselect(!0),Z.focus(V.focusElement||this._getElementName(Ge))),_e=!0):!ve&&ue&&ye&&Te?((Z=this._previousNode())&&((pe=this.editor.multiselection).start=pe.start||this,pe.end=Z,ge=this.editor._findTopLevelNodes(pe.start,pe.end),this.editor.select(ge),Z.focus("field")),_e=!0):ve&&ye&&Te&&((Z=Ne._previousNode())&&Z.parent&&(J=this.editor.getDomSelection(),ae=(fe=Ne.parent).childs[ze.getIndex()+1]||fe.append,we=Ne.getIndex(),Ee=Z.getIndex(),$e=fe.getInternalPath(),ce=Z.parent.getInternalPath(),Le.forEach(function(et){Z.parent.moveBefore(et,Z)}),this.focus(V.focusElement||this._getElementName(Ge)),this.editor._onAction("moveNodes",{count:Le.length,fieldNames:Le.map(K),oldParentPath:fe.getInternalPath(),newParentPath:Ne.parent.getInternalPath(),oldIndex:ae.getIndex(),newIndex:Ne.getIndex(),oldIndexRedo:we,newIndexRedo:Ee,oldParentPathRedo:$e,newParentPathRedo:ce,oldSelection:J,newSelection:this.editor.getDomSelection()})),_e=!0):Ve===39?ve&&!ye?((Pe=this._nextElement(Ge))&&this.focus(this._getElementName(Pe)),_e=!0):ve&&ye&&Te&&(Pe=Ne.getDom().previousSibling)&&(Z=V.getNodeFromTarget(Pe))&&Z.parent&&!Z.isVisible()&&(J=this.editor.getDomSelection(),ae=(fe=Ne.parent).childs[ze.getIndex()+1]||fe.append,we=Ne.getIndex(),Ee=Z.getIndex(),$e=fe.getInternalPath(),ce=Z.parent.getInternalPath(),Le.forEach(function(et){Z.parent.moveBefore(et,Z)}),this.focus(V.focusElement||this._getElementName(Ge)),this.editor._onAction("moveNodes",{count:Le.length,fieldNames:Le.map(K),oldParentPath:fe.getInternalPath(),newParentPath:Ne.parent.getInternalPath(),oldIndex:ae.getIndex(),newIndex:Ne.getIndex(),oldIndexRedo:we,newIndexRedo:Ee,oldParentPathRedo:$e,newParentPathRedo:ce,oldSelection:J,newSelection:this.editor.getDomSelection()})):Ve===40&&(ve&&!ye?((Ce=this._nextNode())&&(this.editor.deselect(!0),Ce.focus(V.focusElement||this._getElementName(Ge))),_e=!0):!ve&&ue&&ye&&Te?((Ce=this._nextNode())&&((pe=this.editor.multiselection).start=pe.start||this,pe.end=Ce,ge=this.editor._findTopLevelNodes(pe.start,pe.end),this.editor.select(ge),Ce.focus("field")),_e=!0):ve&&ye&&Te&&((De=(Ce=(Ce=(Ce=ze.expanded?ze.append?ze.append._nextNode():void 0:ze._nextNode())&&!Ce.isVisible()?Ce.parent.showMore:Ce)&&Ce instanceof A?ze:Ce)&&(Ce._nextNode()||Ce.parent.append))&&De.parent&&(J=this.editor.getDomSelection(),ae=(fe=Ne.parent).childs[ze.getIndex()+1]||fe.append,we=Ne.getIndex(),Ee=De.getIndex(),$e=fe.getInternalPath(),ce=De.parent.getInternalPath(),Le.forEach(function(et){De.parent.moveBefore(et,De)}),this.focus(V.focusElement||this._getElementName(Ge)),this.editor._onAction("moveNodes",{count:Le.length,fieldNames:Le.map(K),oldParentPath:fe.getInternalPath(),newParentPath:Ne.parent.getInternalPath(),oldParentPathRedo:$e,newParentPathRedo:ce,oldIndexRedo:we,newIndexRedo:Ee,oldIndex:ae.getIndex(),newIndex:Ne.getIndex(),oldSelection:J,newSelection:this.editor.getDomSelection()})),_e=!0)),_e&&(G.preventDefault(),G.stopPropagation())}},{key:"_onExpand",value:function(G){var Z,J,ae;G&&(ae=(J=(Z=this.dom.tr.parentNode).parentNode).scrollTop,J.removeChild(Z)),this.expanded?this.collapse(G):this.expand(G),G&&(J.appendChild(Z),J.scrollTop=ae),typeof this.editor.options.onExpand=="function"&&this.editor.options.onExpand({path:this.getPath(),isExpand:this.expanded,recursive:G})}},{key:"_showColorPicker",value:function(){var G,Z;typeof this.editor.options.onColorPicker=="function"&&this.dom.color&&((G=this)._deleteDomColor(),G.updateDom(),Z=(0,m.p)(this.dom.color,this.editor.getPopupAnchor()),this.editor.options.onColorPicker(Z,this.value,function(J){typeof J=="string"&&J!==G.value&&(G._deleteDomColor(),G.value=J,G.updateDom(),G._debouncedOnChangeValue())}))}},{key:"getFieldNames",value:function(G){return this.type==="object"?this.childs.filter(function(Z){return Z!==G}).map(function(Z){return Z.field}):[]}},{key:"_onInsertBefore",value:function(fe,we,Ee){var ae=this.editor.getDomSelection(),fe=new V(this.editor,{field:fe!==void 0?fe:"",value:we!==void 0?we:"",type:Ee}),we=(fe.expand(!0),this.getInternalPath()),Ee=(this.parent.insertBefore(fe,this),this.editor.highlighter.unhighlight(),fe.focus("field"),this.editor.getDomSelection());this.editor._onAction("insertBeforeNodes",{nodes:[fe],paths:[fe.getInternalPath()],beforePath:we,parentPath:this.parent.getInternalPath(),oldSelection:ae,newSelection:Ee})}},{key:"_onInsertAfter",value:function(fe,we,J){var ae=this.editor.getDomSelection(),fe=new V(this.editor,{field:fe!==void 0?fe:"",value:we!==void 0?we:"",type:J}),we=(fe.expand(!0),this.parent.insertAfter(fe,this),this.editor.highlighter.unhighlight(),fe.focus("field"),this.editor.getDomSelection());this.editor._onAction("insertAfterNodes",{nodes:[fe],paths:[fe.getInternalPath()],afterPath:this.getInternalPath(),parentPath:this.parent.getInternalPath(),oldSelection:ae,newSelection:we})}},{key:"_onAppend",value:function(fe,we,J){var ae=this.editor.getDomSelection(),fe=new V(this.editor,{field:fe!==void 0?fe:"",value:we!==void 0?we:"",type:J}),we=(fe.expand(!0),this.parent.appendChild(fe),this.editor.highlighter.unhighlight(),fe.focus("field"),this.editor.getDomSelection());this.editor._onAction("appendNodes",{nodes:[fe],paths:[fe.getInternalPath()],parentPath:this.parent.getInternalPath(),oldSelection:ae,newSelection:we})}}
149,{key:"_onChangeType",value:function(G){var Z,J,ae=this.type;G!==ae&&(Z=this.editor.getDomSelection(),this.changeType(G),J=this.editor.getDomSelection(),this.editor._onAction("changeType",{path:this.getInternalPath(),oldType:ae,newType:G,oldSelection:Z,newSelection:J}))}},{key:"sort",value:function(G,Z){var J,ae,fe=!(2<arguments.length&&arguments[2]!==void 0)||arguments[2];typeof G=="string"&&(G=(0,I.parsePath)(G)),this._hasChilds()&&(this.hideChilds(),J=this.childs,this.childs=this.childs.concat(),ae=Z==="desc"?-1:1,this.type==="object"?this.childs.sort(function(we,Ee){return ae*y()(we.field,Ee.field)}):this.childs.sort(function($e,ce){var $e=$e.getNestedChild(G),ce=ce.getNestedChild(G);return $e?ce?($e=$e.value,ce=ce.value,typeof $e!="string"&&typeof ce!="string"?ce<$e?ae:$e<ce?-ae:0:ae*y()($e,ce)):-ae:ae}),this._updateDomIndexes(),this.showChilds(),fe===!0)&&this.editor._onAction("sort",{path:this.getInternalPath(),oldChilds:J,newChilds:this.childs})}},{key:"update",value:function(G){var Z=this.getInternalValue();this.setValue(G),this.editor._onAction("transform",{path:this.getInternalPath(),oldValue:Z,newValue:this.getInternalValue()})}},{key:"_detachFromDom",value:function(){var G=this.dom.tr?this.dom.tr.parentNode:void 0,Z=this.expanded?this.getAppendDom():this.getDom(),Z=Z&&Z.parentNode?Z.nextSibling:void 0;return this.hide({resetVisibleChilds:!1}),{table:G,nextTr:Z}}},{key:"_attachToDom",value:function(G){G.table&&(G.nextTr?G.table.insertBefore(this.getDom(),G.nextTr):G.table.appendChild(this.getDom())),this.expanded&&this.showChilds()}},{key:"transform",value:function(G){if(this._hasChilds()){this.hideChilds();try{var Z=this.getInternalValue(),J=this.getValue(),ae=this.editor.options.executeQuery(J,G),fe=(this.setValue(ae),this.getInternalValue());this.editor._onAction("transform",{path:this.getInternalPath(),oldValue:Z,newValue:fe}),this.showChilds()}catch(we){this.showChilds(),this.editor._onError(we)}}}},{key:"extract",value:function(){this.editor.node.hideChilds(),this.hideChilds();try{var G=this.editor.node.getInternalValue(),Z=(this.editor._setRoot(this),this.editor.node.getInternalValue());this.editor._onAction("transform",{path:this.editor.node.getInternalPath(),oldValue:G,newValue:Z})}catch(J){this.editor._onError(J)}finally{this.updateDom({recurse:!0}),this.showChilds()}}},{key:"getNestedChild",value:function(G){for(var Z=0,J=this;J&&Z<G.length;)J=J.findChildByProperty(G[Z]),Z++;return J}},{key:"findChildByProperty",value:function(G){if(this.type==="object")return this.childs.find(function(Z){return Z.field===G})}},{key:"getAppendDom",value:function(){return this.append||(this.append=new A(this.editor),this.append.setParent(this)),this.append.getDom()}},{key:"getShowMoreDom",value:function(){return this.showMore||(this.showMore=new F(this.editor,this)),this.showMore.getDom()}},{key:"nextSibling",value:function(){var G=this.parent.childs.indexOf(this);return this.parent.childs[G+1]||this.parent.append}},{key:"_previousNode",value:function(){var G=null,Z=this.getDom();if(Z&&Z.parentNode)for(var J=Z;J=J.previousSibling,G=V.getNodeFromTarget(J),J&&G&&G instanceof A&&!G.isVisible(););return G}},{key:"_nextNode",value:function(){var G=null,Z=this.getDom();if(Z&&Z.parentNode)for(var J=Z;J=J.nextSibling,G=V.getNodeFromTarget(J),J&&G&&G instanceof A&&!G.isVisible(););return G}},{key:"_firstNode",value:function(){var G=null,Z=this.getDom();return Z&&Z.parentNode&&(Z=Z.parentNode.firstChild,G=V.getNodeFromTarget(Z)),G}},{key:"_lastNode",value:function(){var G=null,Z=this.getDom();if(Z&&Z.parentNode)for(var J=Z.parentNode.lastChild,G=V.getNodeFromTarget(J);J&&G&&!G.isVisible();)J=J.previousSibling,G=V.getNodeFromTarget(J);return G}},{key:"_previousElement",value:function(G){var Z=this.dom;switch(G){case Z.value:if(this.fieldEditable)return Z.field;case Z.field:if(this._hasChilds())return Z.expand;case Z.expand:return Z.menu;case Z.menu:if(Z.drag)return Z.drag;default:return null}}},{key:"_nextElement",value:function(G){var Z=this.dom;switch(G){case Z.drag:return Z.menu;
149case Z.menu:if(this._hasChilds())return Z.expand;case Z.expand:if(this.fieldEditable)return Z.field;case Z.field:if(!this._hasChilds())return Z.value;default:return null}}},{key:"_getElementName",value:function(G){var Z=this;return Object.keys(this.dom).find(function(J){return Z.dom[J]===G})}},{key:"_hasChilds",value:function(){return this.type==="array"||this.type==="object"}},{key:"addTemplates",value:function(G,Z){var J=this,ae=J.editor.options.templates;ae!=null&&(ae.length&&G.push({type:"separator"}),ae.forEach(function(fe){G.push({text:fe.text,className:fe.className||"jsoneditor-type-object",title:fe.title,click:(Z?function(we,Ee){J._onAppend(we,Ee)}:function(we,Ee){J._onInsertBefore(we,Ee)}).bind(this,fe.field,fe.value)})}))}},{key:"showContextMenu",value:function(G,Z){var J,ae=this,fe=[];this.editable.value&&fe.push({text:(0,p.Tl)("type"),title:(0,p.Tl)("typeTitle"),className:"jsoneditor-type-"+this.type,submenu:[{text:(0,p.Tl)("auto"),className:"jsoneditor-type-auto"+(this.type==="auto"?" jsoneditor-selected":""),title:(0,p.Tl)("autoType"),click:function(){ae._onChangeType("auto")}},{text:(0,p.Tl)("array"),className:"jsoneditor-type-array"+(this.type==="array"?" jsoneditor-selected":""),title:(0,p.Tl)("arrayType"),click:function(){ae._onChangeType("array")}},{text:(0,p.Tl)("object"),className:"jsoneditor-type-object"+(this.type==="object"?" jsoneditor-selected":""),title:(0,p.Tl)("objectType"),click:function(){ae._onChangeType("object")}},{text:(0,p.Tl)("string"),className:"jsoneditor-type-string"+(this.type==="string"?" jsoneditor-selected":""),title:(0,p.Tl)("stringType"),click:function(){ae._onChangeType("string")}}]}),this._hasChilds()&&(this.editor.options.enableSort&&fe.push({text:(0,p.Tl)("sort"),title:(0,p.Tl)("sortTitle",{type:this.t
149ype}),className:"jsoneditor-sort-asc",click:function(){ae.showSortModal()}}),this.editor.options.enableTransform&&fe.push({text:(0,p.Tl)("transform"),title:(0,p.Tl)("transformTitle",{type:this.type}),className:"jsoneditor-transform",click:function(){ae.showTransformModal()}}),this.parent)&&fe.push({text:(0,p.Tl)("extract"),title:(0,p.Tl)("extractTitle",{type:this.type}),className:"jsoneditor-extract",click:function(){ae.extract()}}),this.parent&&this.parent._hasChilds()&&(fe.length&&fe.push({type:"separator"}),J=ae.parent.childs,ae===J[J.length-1]&&(J=[{text:(0,p.Tl)("auto"),className:"jsoneditor-type-auto",title:(0,p.Tl)("autoType"),click:function(){ae._onAppend("","","auto")}},{text:(0,p.Tl)("array"),className:"jsoneditor-type-array",title:(0,p.Tl)("arrayType"),click:function(){ae._onAppend("",[])}},{text:(0,p.Tl)("object"),className:"jsoneditor-type-object",title:(0,p.Tl)("objectType"),click:function(){ae._onAppend("",{})}},{text:(0,p.Tl)("string"),className:"jsoneditor-type-string",title:(0,p.Tl)("stringType"),click:function(){ae._onAppend("","","string")}}],ae.addTemplates(J,!0),fe.push({text:(0,p.Tl)("appendText"),title:(0,p.Tl)("appendTitle"),submenuTitle:(0,p.Tl)("appendSubmenuTitle"),className:"jsoneditor-append",click:function(){ae._onAppend("","","auto")},submenu:J})),J=[{text:(0,p.Tl)("auto"),className:"jsoneditor-type-auto",title:(0,p.Tl)("autoType"),click:function(){ae._onInsertBefore("","","auto")}},{text:(0,p.Tl)("array"),className:"jsoneditor-type-array",title:(0,p.Tl)("arrayType"),click:function(){ae._onInsertBefore("",[])}},{text:(0,p.Tl)("object"),className:"jsoneditor-type-object",title:(0,p.Tl)("objectType"),click:function(){ae._onInsertBefore("",{})}},{text:(0,p.Tl)("string"),className:"jsoneditor-type-string",title:(0,p.Tl)("stringType"),click:function(){ae._onInsertBefore("","","string")}}],ae.addTemplates(J,!1),fe.push({text:(0,p.Tl)("insert"),title:(0,p.Tl)("insertTitle"),submenuTitle:(0,p.Tl)("insertSub"),className:"jsoneditor-insert",click:function(){ae._onInsertBefore("","","auto")},submenu:J}),this.editable.field)&&(fe.push({text:(0,p.Tl)("duplicateText"),title:(0,p.Tl)("duplicateField"),className:"jsoneditor-duplicate",click:function(){V.onDuplicate(ae)}}),fe.push({text:(0,p.Tl)("removeText"),title:(0,p.Tl)("removeField"),className:"jsoneditor-remove",click:function(){V.onRemove(ae)}})),this.editor.options.onCreateMenu&&(J=ae.getPath(),fe=this.editor.options.onCreateMenu(fe,{type:"single",path:J,paths:[J]})),new C.t(fe,{close:Z}).show(G,this.editor.getPopupAnchor())}},{key:"showSortModal",value:function(){var G=this,Z=this.editor.options.modalAnchor||f.ai,J=this.getValue();(0,_.showSortModal)(Z,J,function(ae){var fe=ae.path,fe=(0,I.parsePath)(fe);G.sortedBy=ae,G.sort(fe,ae.direction)},G.sortedBy)}},{key:"showTransformModal",value:function(){var G=this,fe=this.editor.options,Z=fe.modalAnchor,J=fe.createQuery,ae=fe.executeQuery,fe=fe.queryDescription,we=this.getValue();(0,h.showTransformModal)({container:Z||f.ai,json:we,queryDescription:fe,createQuery:J,executeQuery:ae,onTransform:function(Ee){G.transform(Ee)}})}},{key:"_getType",value:function(G){return G instanceof Array?"array":G instanceof Object?"object":typeof G=="string"&&typeof(0,I.parseString)(G)!="string"?"string":"auto"}},{key:"_escapeHTML",value:function(G){return typeof G!="string"?String(G):(G=String(G).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/ {2}/g," ").replace(/^ /," ").replace(/ $/," "),G=(G=JSON.stringify(G)).substring(1,G.length-1),this.editor.options.escapeUnicode===!0?(0,I.escapeUnicodeChars)(G):G)}},{key:"_unescapeHTML",value:function(G){return G='"'+this._escapeJSON(G)+'"',(0,I.parse)(G).replace(/</g,"<").replace(/>/g,">").replace(/ |\u00A0/g," ").replace(/&/g,"&")}},{key:"_escapeJSON",value:function(G){for(var Z="",J=0;J<G.length;){var ae=G.charAt(J);ae===` 150`?Z+="\\n":ae==="\\"?(Z+=ae,J++,(ae=G.charAt(J))!==""&&'"\\/bfnrtu'.indexOf(ae)!==-1||(Z+="\\"),Z+=ae):Z+=ae==='"'?'\\"':ae,J++}return Z}},{key:"updateNodeName",value:function(){var G=this.childs?this.childs.length:0;
150if(this.type==="object"||this.type==="array"){if(this.editor.options.onNodeName)try{var Z=this.getValue.bind(this),J=this.editor.options.onNodeName({path:this.getPath(),size:G,type:this.type,get value(){return Z()}})}catch{}this.dom.value.textContent=this.type==="object"?"{"+(J||G)+"}":"["+(J||G)+"]"}}},{key:"recursivelyUpdateNodeName",value:function(){if(this.expanded&&(this.updateNodeName(),this.childs!=="undefined"))for(var G in this.childs)this.childs[G].recursivelyUpdateNodeName()}}])&&j(te.prototype,re),le&&j(te,le),Object.defineProperty(te,"prototype",{writable:!1}),te;var te,re,le})(),Q=(z.prototype.DEBOUNCE_INTERVAL=150,z.prototype.MAX_SEARCH_RESULTS=999,100);function D(V){return V.getInternalPath()}function K(V){return V.getField()}function H(V,te){return Object.prototype.hasOwnProperty.call(V,te)}z.focusElement=void 0,z.select=function(V){setTimeout(function(){(0,I.selectContentEditable)(V)},0)},z.onDragStart=function(V,te){if(!Array.isArray(V))return z.onDragStart([V],te);var re,le,G,Z,J;V.length!==0&&(le=V[V.length-1],G=(re=V[0]).parent,J=z.getNodeFromTarget(te.target),Z=re.editor,J=(0,I.getAbsoluteTop)(J.dom.tr)-(0,I.getAbsoluteTop)(re.dom.tr),Z.mousemove||(Z.mousemove=(0,I.addEventListener)(te.view,"mousemove",function(ae){z.onDrag(V,ae)})),Z.mouseup||(Z.mouseup=(0,I.addEventListener)(te.view,"mouseup",function(ae){z.onDragEnd(V,ae)})),Z.highlighter.lock(),Z.drag={oldCursor:document.body.style.cursor,oldSelection:Z.getDomSelection(),oldPaths:V.map(D),oldParent:G,oldNextNode:G.childs[le.getIndex()+1]||G.append,oldParentPathRedo:G.getInternalPath(),oldIndexRedo:re.getIndex(),mouseX:te.pageX,offsetY:J,level:re.getLevel()},document.body.style.cursor="move",te.preventDefault())},z.onDrag=function(V,te){if(!Array.isArray(V))return z.onDrag([V],te);if(V.length!==0){var re,le,G,Z,J,ae=V[0].editor,fe=te.pageY-ae.drag.offsetY,we=te.pageX,Ee=!1,$e=V[0],ce=$e.dom.tr,ge=(0,I.getAbsoluteTop)(ce),pe=ce.offsetHeight;if(fe<ge){for(De=ce;De=De.previousSibling,Ve=z.getNodeFromTarget(De),G=De?(0,I.getAbsoluteTop)(De):0,De&&fe<G;);(Ve=Ve&&!Ve.parent?void 0:Ve)||(De=(ce=ce.parentNode.firstChild)?ce.nextSibling:void 0,(Ve=z.getNodeFromTarget(De))===$e&&(Ve=void 0)),!(Ve=Ve&&Ve.isVisible()&&(G=(De=Ve.dom.tr)?(0,I.getAbsoluteTop)(De):0)+pe<fe?void 0:Ve)||ae.options.limitDragging!==!1&&Ve.parent!==V[0].parent||(V.forEach(function(ue){Ve.parent.moveBefore(ue,Ve)}),Ee=!0)}else{var Ce=V[V.length-1];if(pe=(ce=Ce.expanded&&Ce.append?Ce.append.getDom():Ce.dom.tr)?ce.nextSibling:void 0){for(Z=(0,I.getAbsoluteTop)(pe),re=pe;le=z.getNodeFromTarget(re),re&&(J=re.nextSibling?(0,I.getAbsoluteTop)(re.nextSibling):0,J=re?J-Z:0,le&&le.parent.childs.length===V.length&&le.parent.childs[V.length-1]===Ce&&(ge+=27),re=re.nextSibling),re&&ge+J<fe;);if(le&&le.parent){for(var pe=we-ae.drag.mouseX,pe=Math.round(pe/24/2),ke=ae.drag.level+pe,Pe=le.getLevel(),De=le.dom.tr&&le.dom.tr.previousSibling;Pe<ke&&De;){var Ve=z.getNodeFromTarget(De),Ge=V.some(function(ye){return ye===Ve||Ve.isDescendantOf(ye)});if(!Ge){if(!(Ve instanceof A)||(Ge=Ve.parent.childs,Ge.length===V.length&&Ge[V.length-1]===Ce))break;Pe=(le=z.getNodeFromTarget(De)).getLevel()}De=De.previousSibling}(le=le instanceof A&&!le.isVisible()&&le.parent.showMore.isVisible()?le._nextNode():le)&&(ae.options.limitDragging===!1||le.parent===V[0].parent)&&le.dom.tr&&le.dom.tr!==ce.nextSibling&&(V.forEach(function(ue){le.parent.moveBefore(ue,le)}),Ee=!0)}}}Ee&&(ae.drag.mouseX=we,ae.drag.level=$e.getLevel()),ae.startAutoScroll(fe),te.preventDefault()}},z.onDragEnd=function(V,te){if(!Array.isArray(V))return z.onDrag([V],te);var re,le,G,Z,J,ae,fe,we,Ee;V.length!==0&&(re=(ae=V[0]).editor,ae&&ae.dom.menu&&ae.dom.menu.focus(),le=re.drag.oldParent.getInternalPath(),G=ae.parent.getInternalPath(),Z=re.drag.oldParent===ae.parent,J=re.drag.oldNextNode.getIndex(),ae=ae.getIndex(),fe=re.drag.oldParentPathRedo,we=re.drag.oldIndexRedo,Ee=Z&&we<ae?ae+V.length:ae,Z&&we===ae||re._onAction("moveNodes",{count:V.length,fieldNames:V.map(K),oldParentPath:le,newParentPath:G,oldIndex:J,newIndex:ae,oldIndexRedo:we,newIndexRedo:Ee,oldParentPathRedo:fe,newParentPathRedo:null,oldSelection:re.drag.oldSelection,newSelection:re.getDomSelection()}),document.body.style.cursor=re.drag.oldCursor,re.highlighter.unlock(),V.forEac
150h(function($e){$e.updateDom(),te.target!==$e.dom.drag&&te.target!==$e.dom.menu&&re.highlighter.unhighlight()}),delete re.drag,re.mousemove&&((0,I.removeEventListener)(te.view,"mousemove",re.mousemove),delete re.mousemove),re.mouseup&&((0,I.removeEventListener)(te.view,"mouseup",re.mouseup),delete re.mouseup),re.stopAutoScroll(),te.preventDefault())},z._findEnum=function(V){return V.enum?V.enum:(V=V.oneOf||V.anyOf||V.allOf,V&&(V=V.filter(function(te){return te.enum}),0<V.length)?V[0].enum:null)},z._findOneSchema=function(V,te,re,le){var G=re.slice(1,re.length),Z=re[0];if(B(le)==="object"&&"$ref"in le&&typeof le.$ref=="string"){var J=le.$ref;if(J in te)le=te[J];else{if(!J.startsWith("#/")){if(((re=J.match(/#\//g))==null?void 0:re.length)===1){var ae,re=E(J.split("#/"),2),fe=re[0],re=re[1];if(fe in te)return fe=te[fe],re={$ref:"#/".concat(re)},(ae=[]).push(Z),0<G.length&&ae.push.apply(ae,w(G)),z._findSchema(fe,te,ae,re)}throw Error("Unable to resolve reference ".concat(J))}le=V;var we,Ee=k(J.substring(2).split("/"));try{for(Ee.s();!(we=Ee.n()).done;){var $e=we.value;if(!($e in le))throw Error("Unable to resolve reference ".concat(J));le=le[$e]}}catch(ge){Ee.e(ge)}finally{Ee.f()}}}if(Z===void 0)return le;if(typeof Z!="string")return typeof Z=="number"&&B(le.items)==="object"&&le.items!==null?(le=le.items,z._findSchema(V,te,G,le)):null;if(B(le.properties)==="object"&&le.properties!==null&&Z in le.properties)return le=le.properties[Z],z._findSchema(V,te,G,le);if(B(le.patternProperties)==="object"&&le.patternProperties!==null){for(var ce in le.patternProperties)if(Z.match(ce))return le=le.patternProperties[ce],z._findSchema(V,te,G,le)}return B(le.additionalProperties)==="object"?(le=le.additionalProperties,z._findSchema(V,te,G,le)):null},z._findSchema=function(V,te,re){for(var le=3<arguments.length&&arguments[3]!==void 0?arguments[3]:V,G=[le],Z=0,J=[le.oneOf,le.anyOf,le.allOf];Z<J.length;Z++){var ae=J[Z];Array.isArray(ae)&&(G=G.concat(ae))}var fe,we=null,Ee=k(G);try{for(Ee.s();!(fe=Ee.n()).done;){var $e=fe.value,ce=z._findOneSchema(V,te,re,$e);if(ce===!0)we=!0;else if(ce!==null)return ce}}catch(ge){Ee.e(ge)}finally{Ee.f()}return we},z.onRemove=function(V){if(!Array.isArray(V))return z.onRemove([V]);var te,re,le,G,Z,J;V&&0<V.length&&(te=(le=V[0]).parent,re=le.editor,le=le.getIndex(),re.highlighter.unhighlight(),G=re.getDomSelection(),z.blurNodes(V),Z=re.getDomSelection(),J=V.map(D),V.forEach(function(ae){ae.parent._remove(ae)}),re._onAction("removeNodes",{nodes:V,paths:J,parentPath:te.getInternalPath(),index:le,oldSelection:G,newSelection:Z}
150))},z.onDuplicate=function(V){if(!Array.isArray(V))return z.onDuplicate([V]);var te,re,le,G,Z,J,ae;V&&0<V.length&&(te=V[V.length-1],re=te.parent,(le=te.editor).deselect(le.multiselection.nodes),G=le.getDomSelection(),Z=te,J=V.map(function(fe){var we,Ee=fe.clone();return fe.parent.type==="object"&&(we=fe.parent.getFieldNames(),Ee.field=(0,I.findUniqueName)(fe.field,we)),re.insertAfter(Ee,Z),Z=Ee}),V.length===1?J[0].parent.type==="object"?(J[0].dom.field.innerHTML=V[0]._escapeHTML(V[0].field),J[0].focus("field")):J[0].focus():le.select(J),ae=le.getDomSelection(),le._onAction("duplicateNodes",{paths:V.map(D),clonePaths:J.map(D),afterPath:te.getInternalPath(),parentPath:re.getInternalPath(),oldSelection:G,newSelection:ae}))},z.getNodeFromTarget=function(V){for(;V;){if(V.node)return V.node;V=V.parentNode}},z.targetIsColorPicker=function(V){var te=z.getNodeFromTarget(V);if(te)for(var re=V&&V.parentNode;re;){if(re===te.dom.color)return!0;re=re.parentNode}return!1},z.blurNodes=function(V){var te,re;Array.isArray(V)?(te=(re=V[0]).parent,re=re.getIndex(),(te.childs[re+V.length]?te.childs[re+V.length]:te.childs[re-1]||te).focus()):z.blurNodes([V])},(W.prototype=new z).getDom=function(){var V=this.dom;if(V.tr)return V.tr;this._updateEditability();var te=document.createElement("tr"),re=(te.className="jsoneditor-append",te.node=this,V.tr=te,this.editor.options.mode==="tree"&&(V.tdDrag=document.createElement("td"),le=document.createElement("td"),V.tdMenu=le,(re=document.createElement("button")).type="button",re.className="jsoneditor-button jsoneditor-contextmenu-button",re.title="Click to open the actions menu (Ctrl+M)",V.menu=re,le.appendChild(V.menu)),document.createElement("td")),le=document.createElement("div");return le.appendChild(document.createTextNode("("+(0,p.Tl)("empty")+")")),le.className="jsoneditor-readonly",re.appendChild(le),V.td=re,V.text=le,this.updateDom(),te},W.prototype.getPath=function(){return null},W.prototype.getIndex=function(){return null},W.prototype.updateDom=function(V){var te=this.dom,re=te.td,le=(re&&(re.style.paddingLeft=24*this.getLevel()+26+"px"),te.text),le=(le&&(le.firstChild.nodeValue="("+(0,p.Tl)("empty")+" "+this.parent.type+")"),te.tr);this.isVisible()?te.tr.firstChild||(te.tdDrag&&le.appendChild(te.tdDrag),te.tdMenu&&le.appendChild(te.tdMenu),le.appendChild(re)):te.tr.firstChild&&(te.tdDrag&&le.removeChild(te.tdDrag),te.tdMenu&&le.removeChild(te.tdMenu),le.removeChild(re))},W.prototype.isVisible=function(){return this.parent.childs.length===0},W.prototype.showContextMenu=function(V,te){var re,le=this,G=[{text:(0,p.Tl)("auto"),className:"jsoneditor-type-auto",title:(0,p.Tl)("autoType"),click:function(){le._onAppend("","","auto")}},{text:(0,p.Tl)("array"),className:"jsoneditor-type-array",title:(0,p.Tl)("arrayType"),click:function(){le._onAppend("",[])}},{text:(0,p.Tl)("object"),className:"jsoneditor-type-object",title:(0,p.Tl)("objectType"),click:function(){le._onAppend("",{})}},{text:(0,p.Tl)("string"),className:"jsoneditor-type-string",title:(0,p.Tl)("stringType"),click:function(){le._onAppend("","","string")}}],G=(le.addTemplates(G,!0),[{text:(0,p.Tl)("appendText"),title:(0,p.Tl)("appendTitleAuto"),submenuTitle:(0,p.Tl)("appendSubmenuTitle"),className:"jsoneditor-insert",click:function(){le._onAppend("","","auto")},submenu:G}]);this.editor.options.onCreateMenu&&(re=le.parent.getPath(),G=this.editor.options.onCreateMenu(G,{type:"append",path:re,paths:[re]})),new C.t(G,{close:te}).show(V,this.editor.getPopupAnchor())},W.prototype.onEvent=function(V){var te,re=V.type,le=V.target||V.srcElement,G=this.dom;le===G.menu&&(re==="mouseover"?this.editor.highlighter.highlight(this.parent):re==="mouseout"&&this.editor.highlighter.unhighlight()),re==="click"&&le===G.menu&&((te=this.editor.highlighter).highlight(this.parent),te.lock(),(0,I.addClassName)(G.menu,"jsoneditor-selected"),this.showContextMenu(G.menu,function(){(0,I.removeClassName)(G.menu,"jsoneditor-selected"),te.unlock(),te.unhighlight()})),re==="keydown"&&this.onKeyDown(V)};var A=W;function W(V){this.editor=V,this.dom={}}(U.prototype=new z).getDom=function(){var V,te,re,le,G,Z;return this.dom.tr||(this._updateEditability(),this.dom.tr||(te=(V=this).parent,(G=document.createElement("a")).appendChild(document.createTextNode((0,p.Tl)("showMore"))),G.href="#",G.onclick=function(J){return te.visibleChilds=Math.floor(te.visibleChilds/te.getMaxVisibleChilds()+1)*te.getMaxVisibleChilds(),V.updateDom(),te.showChilds(),J.preventDefault(),!1},(Z=document.createElement("a")).appendChild(document.createTextNode((0,p.Tl)("showAll"))),Z.href="#",Z.onclick=function(J){return te.visibleChilds=1/0,V.updateDom(),te.showChilds(),J.preventDefault(),!1},re=document.createElement("div"),le=document.createTextNode(this._getShowMoreText()),re.className="jsoneditor-show-more",re.appendChild(le),re.appendChild(G),re.appendChild(document.createTextNode(". ")),re.appendChild(Z),re.appendChild(document.createTextNode(". ")),(G=document.createElement("td")).appendChild(re),Z=document.createElement("tr"),this.editor.options.mode==="tree"&&(Z.appendChild(document.createElement("td")),Z.appendChild(document.createElement("td"))),Z.appendChild(G),Z.className="jsoneditor-show-more",this.dom.tr=Z,this.dom.moreContents=re,this.dom.moreText=le),this.updateDom()),this.dom.tr},U.prototype.updateDom=function(V){var te;this.isVisible()?(this.dom.tr.node=this.parent.childs[this.parent.visibleChilds],this.dom.tr.parentNode||(te=this.parent._getNextTr())&&te.parentNode.insertBefore(this.dom.tr,te),this.dom.moreText.nodeValue=this._getShowMoreText(),this.dom.moreContents.style.marginLeft=24*(this.getLevel()+1)+"px"):this.dom.tr&&this.dom.tr.parentNode&&this.dom.tr.parentNode.removeChild(this.dom.tr)},U.prototype._getShowMoreText=function(){return(0,p.Tl)("showMoreStatus",{visibleChilds:this.parent.visibleChilds,totalChilds:this.parent.childs.length})+" "},U.prototype.isVisible=function(){return this.parent.expanded&&this.parent.childs.length>this.parent.visibleChilds}
150,U.prototype.onEvent=function(V){V.type==="keydown"&&this.onKeyDown(V)};var F=U;function U(V,te){this.editor=V,this.parent=te,this.dom={}}function Y(V){return(Y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(te){return typeof te}:function(te){return te&&typeof Symbol=="function"&&te.constructor===Symbol&&te!==Symbol.prototype?"symbol":typeof te})(V)}function ee(V,te){for(var re=0;re<te.length;re++){var le=te[re];le.enumerable=le.enumerable||!1,le.configurable=!0,"value"in le&&(le.writable=!0),Object.defineProperty(V,(G=>(G=((Z,J)=>{if(Y(Z)!="object"||!Z)return Z;var ae=Z[Symbol.toPrimitive];if(ae===void 0)return(J==="string"?String:Number)(Z);if(Y(ae=ae.call(Z,J))!="object")return ae;throw new TypeError("@@toPrimitive must return a primitive value.")})(G,"string"),Y(G)=="symbol"?G:G+""))(le.key),le)}}var X=(()=>{function V(G){if(!(this instanceof V))throw new TypeError("Cannot call a class as a function");function Z(J){return G.node.findNodeByInternalPath(J)}this.editor=G,this.history=[],this.index=-1,this.clear(),this.actions={editField:{undo:function(J){Z(J.parentPath).childs[J.index].updateField(J.oldValue)},redo:function(J){Z(J.parentPath).childs[J.index].updateField(J.newValue)}},editValue:{undo:function(J){Z(J.path).updateValue(J.oldValue)},redo:function(J){Z(J.path).updateValue(J.newValue)}},changeType:{undo:function(J){Z(J.path).changeType(J.oldType)},redo:function(J){Z(J.path).changeType(J.newType)}},appendNodes:{undo:function(J){var ae=Z(J.parentPath);J.paths.map(Z).forEach(function(fe){ae.removeChild(fe)})},redo:function(J){var ae=Z(J.parentPath);J.nodes.forEach(function(fe){ae.appendChild(fe)})}},insertBeforeNodes:{undo:function(J){var ae=Z(J.parentPath);J.paths.map(Z).forEach(function(fe){ae.removeChild(fe)})},redo:function(J){var ae=Z(J.parentPath),fe=Z(J.beforePath);J.nodes.forEach(function(we){ae.insertBefore(we,fe)})}},insertAfterNodes:{undo:function(J){var ae=Z(J.parentPath);J.paths.map(Z).forEach(function(fe){ae.removeChild(fe)})},redo:function(J){var ae=Z(J.parentPath),fe=Z(J.afterPath);J.nodes.forEach(function(we){ae.insertAfter(we,fe),fe=we})}},removeNodes:{undo:function(J){var ae=Z(J.parentPath),fe=ae.childs[J.index]||ae.append;J.nodes.forEach(function(we){ae.insertBefore(we,fe)})},redo:function(J){var ae=Z(J.parentPath);J.paths.map(Z).forEach(function(fe){ae.removeChild(fe)})}},duplicateNodes:{undo:function(J){var ae=Z(J.parentPath);J.clonePaths.map(Z).forEach(function(fe){ae.removeChild(fe)})},redo:function(J){var ae=Z(J.parentPath),fe=Z(J.afterPath);J.paths.map(Z).forEach(function(we){var Ee,$e=we.clone();ae.type==="object"&&(Ee=ae.getFieldNames(),$e.field=(0,I.findUniqueName)(we.field,Ee)),ae.insertAfter($e,fe),fe=$e})}},moveNodes:{undo:function(J){var ae=Z(J.oldParentPath),fe=Z(J.newParentPath),we=ae.childs[J.oldIndex]||ae.append;fe.childs.slice(J.newIndex,J.newIndex+J.count).forEach(function(Ee,$e){Ee.field=J.fieldNames[$e],ae.moveBefore(Ee,we)}),J.newParentPathRedo===null&&(J.newParentPathRedo=fe.getInternalPath())},redo:function(J){var ae=Z(J.oldParentPathRedo),fe=Z(J.newParentPathRedo),we=fe.childs[J.newIndexRedo]||fe.append;ae.childs.slice(J.oldIndexRedo,J.oldIndexRedo+J.count).forEach(function(Ee,$e){Ee.field=J.fieldNames[$e],fe.moveBefore(Ee,we)})}},sort:{undo:function(J){var ae=Z(J.path);ae.hideChilds(),ae.childs=J.oldChilds,ae.updateDom({updateIndexes:!0}),ae.showChilds()},redo:function(J){var ae=Z(J.path);ae.hideChilds(),ae.childs=J.newChilds,ae.updateDom({updateIndexes:!0}),ae.showChilds()}},transform:{undo:function(J){Z(J.path).setInternalValue(J.oldValue)},redo:function(J){Z(J.path).setInternalValue(J.newValue)}}}}return te=V,(re=[{key:"onChange",value:function(){}},{key:"add",value:function(G,Z){this.index++,this.history[this.index]={action:G,params:Z,timestamp:new Date},this.index<this.history.length-1&&this.history.splice(this.index+1,this.history.length-this.index-1),this.onChange()}},{key:"clear",value:function(){this.history=[],this.index=-1,this.onChange()}},{key:"canUndo",value:function(){return 0<=this.index}},{key:"canRedo",value:function(){return this.index<this.history.length-1}},{key:"undo",value:function(){if(this.canUndo()){var G=this.history[this.index];if(G){var Z=this.actions[G.action];if(Z&&Z.undo&&(Z.undo(G.params),G.params.oldSelection))try{this.editor.setDomSelection(G.params.oldSelection)}catch{}}this.index--,this.onChange()}}},{key:"redo",value:function(){if(this.canRedo()){this.index++;var G=this.history[this.index];if(G){var Z=this.actions[G.action];if(Z&&Z.redo&&(Z.redo(G.params),G.params.newSelection))try{this.editor.setDomSelection(G.params.newSelection)}catch{}}this.onChange()}}},{key:"destroy",value:function(){this.editor=null,this.history=[],this.index=-1}}])&&ee(te.prototype,re),le&&ee(te,le),Object.defineProperty(te,"prototype",{writable:!1}),te;var te,re,le})();function q(V){return(q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(te){return typeof te}:function(te){return te&&typeof Symbol=="function"&&te.constructor===Symbol&&te!==Symbol.prototype?"symbol":typeof te})(V)}function ne(V,te){for(var re=0;re<te.length;re++){var le=te[re];le.enumerable=le.enumerable||!1,le.configurable=!0,"value"in le&&(le.writable=!0),Object.defineProperty(V,(G=>(G=((Z,J)=>{if(q(Z)!="object"||!Z)return Z;var ae=Z[Symbol.toPrimitive];if(ae===void 0)return(J==="string"?String:Number)(Z);if(q(ae=ae.call(Z,J))!="object")return ae;throw new TypeError("@@toPrimitive must return a primitive value.")})(G,"string"),q(G)=="symbol"?G:G+""))(le.key),le)}}var se=(()=>{function V(we,ae){if(!(this instanceof V))throw new TypeError("Cannot call a class as a function");var J=this,we=(this.editor=we,this.timeout=void 0,this.delay=200,this.lastText=void 0,this.results=null,this.dom={},this.dom.container=ae,document.createElement("div")),ae=((this.dom.wrapper=we).className="jsoneditor-search",ae.appendChild(we),document.createElement("div")),ae=((this.dom.results=ae).className="jsoneditor-results",we.appendChild(ae),document.createElement("div")),we=((this.dom.input=ae).className="jsoneditor-frame",ae.title=(0,p.Tl)("searchTitle"),we.appendChild(ae),document.createElement("button")),fe=(we.type="button",we.className="jsoneditor-refresh",ae.appendChild(we),document.createElement("input")),we=(fe.type="text",(this.dom.search=fe).oninput=function(Ee){J._onDelayedSearch(Ee)},fe.onchange=function(Ee){J._onSearch()},fe.onkeydown=function(Ee){J._onKeyDown(Ee)},fe.onkeyup=function(Ee){J._onKeyUp(Ee)}
150,we.onclick=function(Ee){fe.select()},ae.appendChild(fe),document.createElement("button")),we=(we.type="button",we.title=(0,p.Tl)("searchNextResultTitle"),we.className="jsoneditor-next",we.onclick=function(){J.next()},ae.appendChild(we),document.createElement("button"));we.type="button",we.title=(0,p.Tl)("searchPreviousResultTitle"),we.className="jsoneditor-previous",we.onclick=function(){J.previous()},ae.appendChild(we)}return te=V,(re=[{key:"next",value:function(G){var Z;this.results&&((Z=this.resultIndex!==null?this.resultIndex+1:0)>this.results.length-1&&(Z=0),this._setActiveResult(Z,G))}},{key:"previous",value:function(G){var Z,J;this.results&&(Z=this.results.length-1,J=this.resultIndex!==null?this.resultIndex-1:Z,this._setActiveResult(J=J<0?Z:J,G))}},{key:"_setActiveResult",value:function(G,Z){var J,ae,fe;this.activeResult&&(J=this.activeResult.node,this.activeResult.elem==="field"?delete J.searchFieldActive:delete J.searchValueActive,J.updateDom()),this.results&&this.results[G]?(this.resultIndex=G,ae=this.results[this.resultIndex].node,(fe=this.results[this.resultIndex].elem)==="field"?ae.searchFieldActive=!0:ae.searchValueActive=!0,this.activeResult=this.results[this.resultIndex],ae.updateDom(),ae.scrollTo(function(){Z&&ae.focus(fe)})):(this.resultIndex=void 0,this.activeResult=void 0)}},{key:"_clearDelay",value:function(){this.timeout!==void 0&&(clearTimeout(this.timeout),delete this.timeout)}},{key:"_onDelayedSearch",value:function(G){this._clearDelay();var Z=this;this.timeout=setTimeout(function(J){Z._onSearch()},this.delay)}},{key:"_onSearch",value:function(G){this._clearDelay();var Z=this.dom.search.value,Z=0<Z.length?Z:void 0;if(Z!==this.lastText||G){this.lastText=Z,this.results=this.editor.search(Z);var G=this.results[0]?this.results[0].node.MAX_SEARCH_RESULTS:1/0,J=0;if(this.activeResult){for(var ae=0;ae<this.results.length;ae++)if(this.results[ae].node===this.activeResult.node){J=ae;break}}this._setActiveResult(J,!1),Z!==void 0?(Z=this.results.length,this.dom.results.textContent=Z===0?"no results":Z===1?"1 result":G<Z?G+"+ results":Z+" results"):this.dom.results.textContent=""}}},{key:"_onKeyDown",value:function(G){var Z=G.which;Z===27?(this.dom.search.value="",this._onSearch(),G.preventDefault(),G.stopPropagation()):Z===13&&(G.ctrlKey?this._onSearch(!0):G.shiftKey?this.previous():this.next(),G.preventDefault(),G.stopPropagation())}},{key:"_onKeyUp",value:function(G){var Z=G.keyCode;Z!==27&&Z!==13&&this._onDelayedSearch(G)}},{key:"clear",value:function(){this.dom.search.value="",this._onSearch()}},{key:"forceSearch",value:function(){this._onSearch(!0)}},{key:"isEmpty",value:function(){return this.dom.search.value===""}},{key:"destroy",value:function(){this.editor=null,this.dom.container.removeChild(this.dom.wrapper),this.dom=null,this.results=null,this.activeResult=null,this._clearDelay()}}])&&ne(te.prototype,re),le&&ne(te,le),Object.defineProperty(te,"prototype",{writable:!1}),te;var te,re,le})();function he(V){return(he=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(te){return typeof te}:function(te){return te&&typeof Symbol=="function"&&te.constructor===Symbol&&te!==Symbol.prototype?"symbol":typeof te})(V)}function ie(V,te){for(var re=0;re<te.length;re++){var le=te[re];le.enumerable=le.enumerable||!1,le.configurable=!0,"value"in le&&(le.writable=!0),Object.defineProperty(V,(G=>(G=((Z,J)=>{if(he(Z)!="object"||!Z)return Z;var ae=Z[Symbol.toPrimitive];if(ae===void 0)return(J==="string"?String:Number)(Z);if(he(ae=ae.call(Z,J))!="object")return ae;throw new TypeError("@@toPrimitive must return a primitive value.")})(G,"string"),he(G)=="symbol"?G:G+""))(le.key),le)}}var oe=(()=>{function V(G,Z){if(!(this instanceof V))throw new TypeError("Cannot call a class as a function");G&&(this.root=Z,this.path=document.createElement("div"),this.path.className="jsoneditor-treepath",this.path.setAttribute("tabindex",0),this.contentMenuClicked=!1,G.appendChild(this.path),this.reset())}return te=V,(re=[{key:"reset",value:function(){this.path.textContent=(0,p.Tl)("selectNode")}},{key:"setPath",value:function(G){var Z=this;this.path.textContent="",G&&G.length&&G.forEach(function(J,ae){var fe,we=document.createElement("span");we.className="jsoneditor-treepath-element",we.innerText=J.name,we.onclick=(function(Ee){this.selectionCallback&&this.selectionCallback(Ee)}).bind(Z,J),Z.path.appendChild(we),J.children.length&&((fe=document.createElement("span")).className="jsoneditor-treepath-seperator",fe.textContent="âº",fe.onclick=function(){Z.contentMenuClicked=!0;var Ee=[];
150J.children.forEach(function($e){Ee.push({text:$e.name,className:"jsoneditor-type-modes"+(G[ae+1]+1&&G[ae+1].name===$e.name?" jsoneditor-selected":""),click:(function(ce,ge){this.contextMenuCallback&&this.contextMenuCallback(ce,ge)}).bind(Z,J,$e.name)})}),new C.t(Ee,{limitHeight:!0}).show(fe,Z.root,!0)},Z.path.appendChild(fe)),ae===G.length-1&&(we=(fe||we).getBoundingClientRect().right,Z.path.offsetWidth<we&&(Z.path.scrollLeft=we),Z.path.scrollLeft)&&((we=document.createElement("span")).className="jsoneditor-treepath-show-all-btn",we.title="show all path",we.textContent="...",we.onclick=(function(Ee){(Z.contentMenuClicked=!1,I.addClassName)(Z.path,"show-all"),Z.path.style.width=Z.path.parentNode.getBoundingClientRect().width-10+"px",Z.path.onblur=function(){Z.contentMenuClicked?(Z.contentMenuClicked=!1,Z.path.focus()):((0,I.removeClassName)(Z.path,"show-all"),Z.path.onblur=void 0,Z.path.style.width="",Z.setPath(Ee))}}).bind(Z,G),Z.path.insertBefore(we,Z.path.firstChild))})}},{key:"onSectionSelected",value:function(G){typeof G=="function"&&(this.selectionCallback=G)}},{key:"onContextMenuItemSelected",value:function(G){typeof G=="function"&&(this.contextMenuCallback=G)}}])&&ie(te.prototype,re),le&&ie(te,le),Object.defineProperty(te,"prototype",{writable:!1}),te;var te,re,le})(),de=be(1746),me=be.n(de),be={create:function(V,te){if(!V)throw new Error("No container element provided.");this.container=V,this.dom={},this.highlighter=new b,this.selection=void 0,this.multiselection={nodes:[]},this.validateSchema=null,this.validationSequence=0,this.errorNodes=[],this.lastSchemaErrors=void 0,this.node=null,this.focusTarget=null,this._setOptions(te),te.autocomplete&&(this.autocomplete=T(te.autocomplete)),this.options.history&&this.options.mode!=="view"&&(this.history=new X(this)),this._createFrame(),this._createTable()},destroy:function(){this.frame&&this.container&&this.frame.parentNode===this.container&&(this.container.removeChild(this.frame),this.frame=null),this.container=null,this.dom=null,this.clear(),this.node=null,this.focusTarget=null,this.selection=null,this.multiselection=null,this.errorNodes=null,this.validateSchema=null,this._debouncedValidate=null,this.history&&(this.history.destroy(),this.history=null),this.searchBox&&(this.searchBox.destroy(),this.searchBox=null),this.modeSwitcher&&(this.modeSwitcher.destroy(),this.modeSwitcher=null),this.frameFocusTracker.destroy()},_setOptions:function(V){var te=this;this.options={search:!0,history:!0,mode:"tree",name:void 0,schema:null,schemaRefs:null,autocomplete:null,navigationBar:!0,mainMenuBar:!0,limitDragging:!1,onSelectionChange:null,colorPicker:!0,onColorPicker:function(re,le,G){var Z;me()&&(Z=re.getBoundingClientRect().top,Z=(0,I.getWindow)(re).innerHeight-Z<300&&300<Z,new(me())({parent:re,color:le,popup:Z?"top":"bottom",onDone:function(J){J=J.rgba[3]===1?J.hex.substr(0,7):J.hex,G(J)}}).show())},timestampTag:!0,timestampFormat:null,createQuery:g.V,executeQuery:g.e,onEvent:null,enableSort:!0,enableTransform:!0},V&&(Object.keys(V).forEach(function(re){te.options[re]=V[re]}),V.limitDragging==null)&&V.schema!=null&&(this.options.limitDragging=!0),this.setSchema(this.options.schema,this.options.schemaRefs),this._debouncedValidate=(0,I.debounce)(this._validateAndCatch.bind(this),this.DEBOUNCE_INTERVAL),V.onSelectionChange&&this.onSelectionChange(V.onSelectionChange),(0,p.AI)(this.options.languages),(0,p.xC)(this.options.language)},set:function(V){V instanceof Function||V===void 0?this.clear():(this.content.removeChild(this.table),V={field:this.options.name,value:V},V=new z(this,V),this._setRoot(V),this._validateAndCatch(),this.node.expand(!1),this.content.appendChild(this.table)),this.history&&this.history.clear(),this.searchBox&&this.searchBox.clear()},update:function(V){var te,re;this.node.deepEqual(V)||(te=this.getSelection(),this.onChangeDisabled=!0,this.node.update(V),this.onChangeDisabled=!1,this._validateAndCatch(),this.searchBox&&!this.searchBox.isEmpty()&&this.searchBox.forceSearch(),te&&te.start&&te.end&&(V=this.node.findNodeByPath(te.start.path),re=this.node.findNodeByPath(te.end.path),V)&&re?this.setSelection(te.start,te.end
150):this.setSelection({},{}))},get:function(){if(this.node)return this.node.getValue()},getText:function(){return JSON.stringify(this.get())},setText:function(V){try{this.set((0,I.parse)(V))}catch{V=(0,I.tryJsonRepair)(V),this.set((0,I.parse)(V))}},updateText:function(V){try{this.update((0,I.parse)(V))}catch{V=(0,I.tryJsonRepair)(V),this.update((0,I.parse)(V))}},setName:function(V){this.options.name=V,this.node&&this.node.updateField(this.options.name)},getName:function(){return this.options.name},focus:function(){var V=this.scrollableContent.querySelector("[contenteditable=true]");V?V.focus():this.node.dom.expand?this.node.dom.expand.focus():this.node.dom.menu?this.node.dom.menu.focus():(V=this.frame.querySelector("button"))&&V.focus()},clear:function(){this.node&&(this.node.hide(),delete this.node),this.treePath&&this.treePath.reset()},_setRoot:function(V){this.clear(),(this.node=V).setParent(null),V.setField(this.getName(),!1),delete V.index,this.tbody.appendChild(V.getDom())},search:function(V){var te;return this.node?(this.content.removeChild(this.table),te=this.node.search(V),this.content.appendChild(this.table)):te=[],te},expandAll:function(){this.node&&(this.content.removeChild(this.table),this.node.expand(),this.content.appendChild(this.table))},collapseAll:function(){this.node&&(this.content.removeChild(this.table),this.node.collapse(),this.content.appendChild(this.table))},expand:function(V){if(V&&this.node){var te=this.node.findNodeByPath(V.path);if(te){if(V.withPath)for(var re=0;re<V.path.length;re++){var le=this.node.findNodeByPath(V.path.slice(0,re));le&&(V.isExpand?le.expand(!1):le.collapse(!1))}V.isExpand?te.expand(V.recursive):te.collapse(V.recursive)}}},_onAction:function(V,te){this.history&&this.history.add(V,te),this._onChange()},_onChange:function(){if(!this.onChangeDisabled){var V;if(this.selection=this.getDomSelection(),this._debouncedValidate(),this.treePath&&((V=this.node&&this.selection?this.node.findNodeByInternalPath(this.selection.path):this.multiselection?this.multiselection.nodes[0]:void 0)?this._updateTreePath(V.getNodePath()):this.treePath.reset()),this.options.onChange)try{this.options.onChange()}catch{}if(this.options.onChangeJSON)try{this.options.onChangeJSON(this.get())}catch{}if(this.options.onChangeText)try{this.options.onChangeText(this.getText())}catch{}if(this.options.onClassName&&this.node.recursivelyUpdateCssClassesOnNodes(),this.options.onNodeName&&this.node.childs)try{this.node.recursivelyUpdateNodeName()}catch{}}},validate:function(){var V=this,te=this.node;if(!te)return Promise.resolve([]);var re=te.getValue(),le=[];this.validateSchema&&!this.validateSchema(re)&&(le=this.validateSchema.errors.map(function(J){return(0,I.improveSchemaError)(J)}).map(function(J){return{node:te.findNode(J.dataPath),error:J,type:"validation"}}).filter(function(J){return J.node!=null}));try{this.validationSequence++;var G=this,Z=this.validationSequence;return this._validateCustom(re).then(function(J){return Z===G.validationSequence&&(J=[].concat(le,J||[]),G._renderValidationErrors(J),typeof V.options.onValidationError=="function"&&(0,I.isValidationErrorChanged)(J,V.lastSchemaErrors)&&V.options.onValidationError.call(V,J),V.lastSchemaErrors=J),V.lastSchemaErrors})}catch(J){return Promise.reject(J)}},_validateAndCatch:function(){this.validate().catch(function(V){})},_renderValidationErrors:function(V){this.errorNodes&&this.errorNodes.forEach(function(re){re.setError(null)});var te=V.reduce(function(re,le){return le.node.findParents().filter(function(G){return!re.some(function(Z){return Z[0]===G})}).map(function(G){return[G,le.node]}).concat(re)},[]);this.errorNodes=te.map(function(re){return{node:re[0],child:re[1],error:{message:re[0].type==="object"?(0,p.Tl)("containsInvalidProperties"):(0,p.Tl)("containsInvalidItems")}}}).concat(V).map(function(re){return re.node.setError(re.error,re.child),re.node})},_validateCustom:function(V){try{var te,re;if(this.options.onValidate)return te=this.node,re=this.options.onValidate(V),((0,I.isPromise)(re)?re:Promise.resolve(re)).then(function(le){return Array.isArray(le)?le.filter(function(G){var Z=(0,I.isValidValidationError)(G);return Z}).map(function(G){var Z;try{Z=G&&G.path?te.findNodeByPath(G.path):null}catch{}return{node:Z,error:G,type:"customValidation"}}).filter(function(G){return G&&G.node&&G.error&&G.error.message}):null})}catch(le){return Promise.reject(le)}return Promise.resolve(null)},refresh:function(){this.node&&this.node.updateDom({recurse:!0})},startAutoScroll:function(V){var te=this,re=this.scrollableContent,le=(0,I.getAbsoluteTop)(re),G=re.clientHeight,Z=le+G;V<le+24&&0<re.scrollTop?this.autoScrollStep=(le+24-V)/3:Z-24<V&&G+re.scrollTop<re.scrollHeight?this.autoScrollStep=(Z-24-V)/3:this.autoScrollStep=void 0,this.autoScrollStep?this.autoScrollTimer||(this.autoScrollTimer=setInterval(function(){te.autoScrollStep?re.scrollTop-=te.autoScrollStep:te.stopAutoScroll()},50)):this.stopAutoScroll()},stopAutoScroll:function(){this.autoScrollTimer&&(clearTimeout(this.autoScrollTimer),delete this.autoScrollTimer),this.autoScrollStep&&delete this.autoScrollStep},setDomSelection:function(V){var te,re,le;V&&("scrollTop"in V&&this.scrollableContent&&(this.scrollableContent.scrollTop=V.scrollTop),V.paths?(te=this,re=V.paths.map(function(G){return te.
150node.findNodeByInternalPath(G)}),this.select(re)):(le=(re=V.path?this.node.findNodeByInternalPath(V.path):null)&&V.domName?re.dom[V.domName]:null,V.range&&le?(V=Object.assign({},V.range,{container:le}),(0,I.setSelectionOffset)(V)):re&&re.focus()))},getDomSelection:function(){var V=z.getNodeFromTarget(this.focusTarget),te=this.focusTarget,re=V?Object.keys(V.dom).find(function(G){return V.dom[G]===te}):null,le=(0,I.getSelectionOffset)();return(le=(le=le&&le.container.nodeName!=="DIV"?null:le)&&le.container!==te?null:le)&&delete le.container,{path:V?V.getInternalPath():null,domName:re,range:le,paths:0<this.multiselection.length?this.multiselection.nodes.map(function(G){return G.getInternalPath()}):null,scrollTop:this.scrollableContent?this.scrollableContent.scrollTop:0}},scrollTo:function(V,te){var re,le,G,Z,J,ae=this.scrollableContent;ae?((re=this).animateTimeout&&(clearTimeout(re.animateTimeout),delete re.animateTimeout),re.animateCallback&&(re.animateCallback(!1),delete re.animateCallback),le=ae.clientHeight,G=ae.scrollHeight-le,Z=Math.min(Math.max(V-le/4,0),G),(J=function(){var fe=ae.scrollTop,fe=Z-fe;3<Math.abs(fe)?(ae.scrollTop+=fe/3,re.animateCallback=te,re.animateTimeout=setTimeout(J,50)):(te&&te(!0),ae.scrollTop=Z,delete re.animateTimeout,delete re.animateCallback)})()):te&&te(!1)},_createFrame:function(){var V=this,te=(this.frame=document.createElement("div"),this.frame.className="jsoneditor jsoneditor-mode-"+this.options.mode,this.container.appendChild(this.frame),this.contentOuter=document.createElement("div"),this.contentOuter.className="jsoneditor-outer",this);function re(ae){te._onEvent&&te._onEvent(ae)}var le,G,Z,J={target:this.frame,onFocus:this.options.onFocus||null,onBlur:this.options.onBlur||null};this.frameFocusTracker=new N.$(J),this.frame.onclick=function(ae){var fe=ae.target;re(ae),fe.nodeName==="BUTTON"&&ae.preventDefault()},this.frame.oninput=re,this.frame.onchange=re,this.frame.onkeydown=re,this.frame.onkeyup=re,this.frame.oncut=re,this.frame.onpaste=re,this.frame.onmousedown=re,this.frame.onmouseup=re,this.frame.onmouseover=re,this.frame.onmouseout=re,(0,I.addEventListener)(this.frame,"focus",re,!0),(0,I.addEventListener)(this.frame,"blur",re,!0),this.frame.onfocusin=re,this.frame.onfocusout=re,this.options.mainMenuBar&&((0,I.addClassName)(this.contentOuter,"has-main-menu-bar"),this.menu=document.createElement("div"),this.menu.className="jsoneditor-menu",this.frame.appendChild(this.menu),(J=document.createElement("button")).type="button",J.className="jsoneditor-expand-all",J.title=(0,p.Tl)("expandAll"),J.onclick=function(){te.expandAll(),typeof V.options.onExpand=="function"&&V.options.onExpand({path:[],isExpand:!0,recursive:!0})},this.menu.appendChild(J),(J=document.createElement("button")).type="button",J.title=(0,p.Tl)("collapseAll"),J.className="jsoneditor-collapse-all",J.onclick=function(){te.collapseAll(),typeof V.options.onExpand=="function"&&V.options.onExpand({path:[],isExpand:!1,recursive:!0})},this.menu.appendChild(J),this.options.enableSort&&((J=document.createElement("button")).type="button",J.className="jsoneditor-sort",J.title=(0,p.Tl)("sortTitleShort"),J.onclick=function(){te.node.showSortModal()},this.menu.appendChild(J)),this.options.enableTransform&&((J=document.createElement("button")).type="button",J.title=(0,p.Tl)("transformTitleShort"),J.className="jsoneditor-transform",J.onclick=function(){te.node.showTransformModal()},this.menu.appendChild(J)),this.history&&((le=document.createElement("button")).type="button",le.className="jsoneditor-undo jsoneditor-separator",le.title=(0,p.Tl)("undo"),le.onclick=function(){te._onUndo()},this.menu.appendChild(le),this.dom.undo=le,(G=document.createElement("button")).type="button",G.className="jsoneditor-redo",G.title=(0,p.Tl)("redo"),G.onclick=function(){te._onRedo()},this.menu.appendChild(G),this.dom.redo=G,this.history.onChange=function(){le.disabled=!te.history.canUndo(),G.disabled=!te.history.canRedo()},this.history.onChange()),this.options&&this.options.modes&&this.options.modes.length&&((Z=this).modeSwitcher=new u.n(this.menu,this.options.modes,this.options.mode,function(ae){try{Z.setMode(ae),Z.modeSwitcher.focu
150s()}catch(fe){Z._onError(fe)}})),this.options.search)&&(this.searchBox=new se(this,this.menu)),this.options.navigationBar&&(this.navBar=document.createElement("div"),this.navBar.className="jsoneditor-navigation-bar nav-bar-empty",this.frame.appendChild(this.navBar),this.treePath=new oe(this.navBar,this.getPopupAnchor()),this.treePath.onSectionSelected(this._onTreePathSectionSelected.bind(this)),this.treePath.onContextMenuItemSelected(this._onTreePathMenuItemSelected.bind(this)))},_onUndo:function(){this.history&&(this.history.undo(),this._onChange())},_onRedo:function(){this.history&&(this.history.redo(),this._onChange())},_onEvent:function(V){if(!z.targetIsColorPicker(V.target)){var te,re=z.getNodeFromTarget(V.target);if(V.type==="keydown"&&this._onKeyDown(V),re&&V.type==="focus"&&(this.focusTarget=V.target,this.options.autocomplete)&&this.options.autocomplete.trigger==="focus"&&this._showAutoComplete(V.target),V.type==="mousedown"&&this._startDragDistance(V),V.type!=="mousemove"&&V.type!=="mouseup"&&V.type!=="click"||this._updateDragDistance(V),re&&this.options&&this.options.navigationBar&&re&&(V.type==="keydown"||V.type==="mousedown")&&(te=this,setTimeout(function(){te._updateTreePath(re.getNodePath())})),re&&re.selected){if(V.type==="click"){if(V.target===re.dom.menu)return void this.showContextMenu(V.target);V.hasMoved||this.deselect()}V.type==="mousedown"&&z.onDragStart(this.multiselection.nodes,V)}else V.type==="mousedown"&&(0,I.hasParentNode)(V.target,this.content)&&(this.deselect(),re&&V.target===re.dom.drag?z.onDragStart(re,V):re&&(V.target===re.dom.field||V.target===re.dom.value||V.target===re.dom.select)||this._onMultiSelectStart(V));re&&re.onEvent(V)}},_updateTreePath:function(V){var te;function re(le){return le.parent?le.parent.type==="array"?le.index:le.field:le.field||le.type}V&&V.length?((0,I.removeClassName)(this.navBar,"nav-bar-empty"),te=[],V.forEach(function(le){var G={name:re(le),node:le,children:[]};le.childs&&le.childs.length&&le.childs.forEach(function(Z){G.children.push({name:re(Z),node:Z})}),te.push(G)}),this.treePath.setPath(te)):(0,I.addClassName)(this.navBar,"nav-bar-empty")},_onTreePathSectionSelected:function(V){V&&V.node&&(V.node.expandTo(),V.node.focus())},_onTreePathMenuItemSelected:function(V,te){V&&V.children.length&&(V=V.children.find(function(re){return re.name===te}))&&V.node&&(this._updateTreePath(V.node.getNodePath()),V.node.expandTo(),V.node.focus())},_startDragDistance:function(V){this.dragDistanceEvent={initialTarget:V.target,initialPageX:V.pageX,initialPageY:V.pageY,dragDistance:0,hasMoved:!1}},_updateDragDistance:function(V){this.dragDistanceEvent||this._startDragDistance(V);var te=V.pageX-this.dragDistanceEvent.initialPageX,re=V.pageY-this.dragDistanceEvent.initialPageY;return this.dragDistanceEvent.dragDistance=Math.sqrt(te*te+re*re),this.dragDistanceEvent.hasMoved=this.dragDistanceEvent.hasMoved||10<this.dragDistanceEvent.dragDistance,V.dragDistance=this.dragDistanceEvent.dragDistance,V.hasMoved=this.dragDistanceEvent.hasMoved,V.dragDistance},_onMultiSelectStart:function(V){var te,re=z.getNodeFromTarget(V.target);this.options.mode==="tree"&&this.options.onEditable===void 0&&(this.multiselection={start:re||null,end:null,nodes:[]},this._startDragDistance(V),(te=this).mousemove||(this.mousemove=(0,I.addEventListener)(V.view,"mousemove",function(le){te._onMultiSelect(le)})),this.mouseup||(this.mouseup=(0,I.addEventListener)(V.view,"mouseup",function(le){te._onMultiSelectEnd(le)})),V.preventDefault())},_onMultiSelect:function(V){var te;V.preventDefault(),this._updateDragDistance(V),V.hasMoved&&((V=z.getNodeFromTarget(V.target))&&(this.multiselection.start==null&&(this.multiselection.start=V),this.multiselection.end=V),this.deselect(),V=this.multiselection.start,te=this.multiselection.end||this.multiselection.start,V)&&te&&(this.multiselection.nodes=this._findTopLevelNodes(V,te),this.multiselection.nodes&&this.multiselection.nodes.length&&(V=this.multiselection.nodes[0],this.multiselection.start===V||this.multiselection.start.isDescendantOf(V)?this.multiselection.direction="down":this.multiselection.direction="up"),this.select(this.multiselection.nodes))},_onMultiSelectEnd:function(V){var te=this.multiselection.nodes[0];te&&te.dom.menu&&te.dom.menu.focus(),this.multiselection.start=null,this.multiselection.end=null,this.mousemove&&((0,I.removeEventListener)(V.view,"mousemove",this.mousemove),delete this.mousemove),this.mouseup&&((0,I.removeEventListener)(V.view,"mouseup",this.mouseup),delete this.mouseup)},deselect:function(V){var te=!!this.multiselection.nodes.length;
150this.multiselection.nodes.forEach(function(re){re.setSelected(!1)}),this.multiselection.nodes=[],V&&(this.multiselection.start=null,this.multiselection.end=null),te&&this._selectionChangedHandler&&this._selectionChangedHandler()},select:function(V){if(!Array.isArray(V))return this.select([V]);var te;V&&(this.deselect(),this.multiselection.nodes=V.slice(0),te=V[0],V.forEach(function(re){re.expandPathToNode(),re.setSelected(!0,re===te)}),this._selectionChangedHandler)&&(V=this.getSelection(),this._selectionChangedHandler(V.start,V.end))},_findTopLevelNodes:function(J,ae){for(var re=J.getNodePath(),le=ae.getNodePath(),G=0;G<re.length&&re[G]===le[G];)G++;var Z,J=re[G-1],ae=re[G],fe=le[G];return ae&&fe||(J.parent?J=(fe=ae=J).parent:(ae=J.childs[0],fe=J.childs[J.childs.length-1])),J&&ae&&fe?(ae=J.childs.indexOf(ae),fe=J.childs.indexOf(fe),Z=Math.min(ae,fe),ae=Math.max(ae,fe),J.childs.slice(Z,ae+1)):[]},_showAutoComplete:function(V){var te,re=z.getNodeFromTarget(V),le="";0<=V.className.indexOf("jsoneditor-value")&&(le="value"),(le=0<=V.className.indexOf("jsoneditor-field")?"field":le)!==""&&(te=this,setTimeout(function(){var G;!re||!(te.options.autocomplete.trigger==="focus"||0<V.innerText.length)||(G=te.options.autocomplete.getOptions(V.innerText,re.getPath(),le,re.editor))===null?te.autocomplete.hideDropDown():typeof G.then=="function"?G.then(function(Z){Z===null?te.autocomplete.hideDropDown():Z.options?te.autocomplete.show(V,Z.startFrom,Z.options):te.autocomplete.show(V,0,Z)}).catch(function(Z){}):G.options?te.autocomplete.show(V,G.startFrom,G.options):te.autocomplete.show(V,0,G)},50))},_onKeyDown:function(V){var te,re=V.which||V.keyCode,le=V.altKey,G=V.ctrlKey,Z=V.metaKey,J=V.shiftKey,ae=!1,fe=this.focusTarget;re===9&&(te=this,setTimeout(function(){te.focusTarget!==fe&&(0,I.selectContentEditable)(te.focusTarget)},0)),this.searchBox&&(G&&re===70?(this.searchBox.dom.search.focus(),this.searchBox.dom.search.select(),ae=!0):(re===114||G&&re===71)&&(J?this.searchBox.previous(!0):this.searchBox.next(!0),ae=!0)),this.history&&(G&&!J&&re===90?(this._onUndo(),ae=!0):G&&J&&re===90&&(this._onRedo(),ae=!0)),!this.options.autocomplete||ae||G||le||Z||V.key.length!==1&&re!==8&&re!==46||(ae=!1,this._showAutoComplete(V.target)),ae&&(V.preventDefault(),V.stopPropagation())},_createTable:function(){var V;this.options.navigationBar&&(0,I.addClassName)(this.contentOuter,"has-nav-bar"),this.scrollableContent=document.createElement("div"),this.scrollableContent.className="jsoneditor-tree",this.contentOuter.appendChild(this.scrollableContent),this.content=document.createElement("div"),this.content.className="jsoneditor-tree-inner",this.scrollableContent.appendChild(this.content),this.table=document.createElement("table"),this.table.className="jsoneditor-tree",this.content.appendChild(this.table),this.colgroupContent=document.createElement("colgroup"),this.options.mode==="tree"&&((V=document.createElement("col")).width="24px",this.colgroupContent.appendChild(V)),(V=document.createElement("col")).width="24px",this.colgroupContent.appendChild(V),V=document.createElement("col"),this.colgroupContent.appendChild(V),this.table.appendChild(this.colgroupContent),this.tbody=document.createElement("tbody"),this.table.appendChild(this.tbody),this.frame.appendChild(this.contentOuter)},showContextMenu:function(V,te){var re,le=[],G=this.multiselection.nodes.slice();le.push({text:(0,p.Tl)("duplicateText"),title:(0,p.Tl)("duplicateTitle"),className:"jsoneditor-duplicate",click:function(){z.onDuplicate(G)}}),le.push({text:(0,p.Tl)("remove"),title:(0,p.Tl)("removeTitle"),className:"jsoneditor-remove",click:function(){z.onRemove(G)}}),this.options.onCreateMenu&&(re=G.map(function(Z){return Z.getPath()}),le=this.options.onCreateMenu(le,{type:"multiple",path:re[0],paths:re})),new C.t(le,{close:te}).show(V,this.getPopupAnchor())},getPopupAnchor:function(){return this.options.popupAnchor||this.frame},getSelection:function(){var V,te,re={start:null,end:null};return this.multiselection.nodes&&this.multiselection.nodes.length&&(V=this.multiselection.nodes[0],te=this.multiselection.nodes[this.multiselection.nodes.length-1],this.multiselection.direction==="down"?(re.start=V.serialize(),re.end=te.serialize()):(re.start=te.serialize(),re.end=V.seri
150alize())),re},onSelectionChange:function(V){typeof V=="function"&&(this._selectionChangedHandler=(0,I.debounce)(V,this.DEBOUNCE_INTERVAL))},setSelection:function(V,te){V&&V.dom&&V.range&&this.setDomSelection(V),V=this._getNodeInstancesByRange(V,te),V.forEach(function(re){re.expandTo()}),this.select(V)},_getNodeInstancesByRange:function(V,te){V&&V.path&&(re=this.node.findNodeByPath(V.path),te)&&te.path&&(le=this.node.findNodeByPath(te.path));var re,le,G=[];if(re instanceof z)if(le instanceof z&&le!==re)if(re.parent===le.parent){te=re.getIndex()<le.getIndex()?(V=re,le):(V=le,re);var Z=V;for(G.push(Z);Z=Z.nextSibling(),G.push(Z),Z&&Z!==te;);}else G=this._findTopLevelNodes(re,le);else G.push(re);return G},getNodesByRange:function(re,te){var re=this._getNodeInstancesByRange(re,te),le=[];return re.forEach(function(G){le.push(G.serialize())}),le}},Se=[{mode:"tree",mixin:be,data:"json"},{mode:"view",mixin:be,data:"json"},{mode:"form",mixin:be,data:"json"}]},2870:function(s,o,a){o.tryRequireAjv=function(){try{return a(2229)}catch{}}},5467:function(s,o,a){o.J=function(){try{a(9762)}catch{}}},6237:function(s,c,a){a.r(c),a.d(c,{addClassName:function(){return E},addEventListener:function(){return ee},asyncExec:function(){return Ve},clear:function(){return u},compileJSONPointer:function(){return re},contains:function(){return ke},debounce:function(){return me},escapeUnicodeChars:function(){return b},extend:function(){return g},findUniqueName:function(){return ae},formatSize:function(){return ge},get:function(){return J},getAbsoluteLeft:function(){return f},getAbsoluteTop:function(){return w},getChildPaths:function(){return fe},getColorCSS:function(){return le},getIndexForPosition:function(){return V},getInnerText:function(){return H},getInputSelection:function(){return Se},getInternetExplorerVersion:function(){return F},getPositionForPath:function(){return te},getSelection:function(){return z},getSelectionOffset:function(){return D},getType:function(){return y},getWindow:function(){return h},hasParentNode:function(){return W},improveSchemaError:function(){return he},insideRect:function(){return de},isArray:function(){return _},isChildOf:function(){return q},isFirefox:function(){return Y},isObject:function(){return Ce},isPromise:function(){return ie},isTimestamp:function(){return ce},isUrl:function(){return I},isValidColor:function(){return G},isValidValidationError:function(){return oe},isValidationErrorChanged:function(){return Pe},limitCharacters:function(){return pe},makeFieldTooltip:function(){return Z},parse:function(){return x},parsePath:function(){return ne},parseString:function(){return $e},removeAllClassNames:function(){return k},removeClassName:function(){return L},removeEventListener:function(){return X},removeReturnsAndSurroundingWhitespace:function(){return A},selectContentEditable:function(){return j},setEndOfContentEditable:function(){return B},setSelection:function(){return Q},setSelectionOffset:function(){return K},sort:function(){return we},sortObjectKeys:function(){return Ee},stringifyPath:function(){return se},stripFormatting:function(){return M},textDiff:function(){return be},tryJsonRepair:function(){return S},uniqueMergeArrays:function(){return De},validate:function(){return p}}),a(1081);var c=a(1342),l=a.n(c),d=a(9857),v=a(5736),R=a(3094),O=a(3057);function $(ue){return(ye=>{if(Array.isArray(ye))return P(ye)})(ue)||(ye=>{if(typeof Symbol<"u"&&ye[Symbol.iterator]!=null||ye["@@iterator"]!=null)return Array.from(ye)})(ue)||((ye,ve)=>{var _e;if(ye)return typeof ye=="string"?P(ye,ve):(_e=(_e={}.toString.call(ye).slice(8,-1))==="Object"&&ye.constructor?ye.constructor.name:_e)==="Map"||_e==="Set"?Array.from(ye):_e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_e)?P(ye,ve):void 0})(ue)||(()=>{throw new TypeError(`Invalid attempt to spread non-iterable instance. 151In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function P(ue,ye){(ye==null||ye>ue.length)&&(ye=ue.length);for(var ve=0,_e=Array(ye);ve<ye;ve++)_e[ve]=ue[ve];return _e}function T(ue){return(T=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ye){return typeof ye}:function(ye){return ye&&typeof Symbol=="function"&&ye.constructor===Symbol&&ye!==Symbol.prototype?"symbol":typeof ye})(ue)}var C=1e4,N=9466848e5;function x(ue){try{return JSON.parse(ue)}catch(ye){throw p(ue),ye}}function S(ue){try{return(0,d.m)(ue)}catch{return ue}}function b(ue){return ue.replace(/[\u007F-\uFFFF]/g,function(ye){return"\\u"+("0000"+ye.charCodeAt(0).toString(16)).slice(-4)})}function p(ue){(v!==void 0?v:JSON).parse(ue)}function g(ue,ye){for(var ve in ye)Ge(ye,ve)&&(ue[ve]=ye[ve]);return ue}function u(ue){for(var ye in ue)Ge(ue,ye)&&delete ue[ye];return ue}function y(ue){return ue===null?"null":ue===void 0?"undefined":ue instanceof Number||typeof ue=="number"?"number":ue instanceof String||typeof ue=="string"?"string":ue instanceof Boolean||typeof ue=="boolean"?"boolean":ue instanceof RegExp?"regexp":_(ue)?"array":"object"}var m=/^https?:\/\/\S+$/;function I(ue){return(typeof ue=="string"||ue instanceof String)&&m.test(ue)}function _(ue){return Object.prototype.toString.call(ue)==="[object Array]"}function h(ue){return ue.ownerDocument.defaultView}function f(ue){return ue.getBoundingClientRect().left+window.pageXOffset||document.scrollLeft||0}function w(ue){return ue.getBoundingClientRect().top+window.pageYOffset||document.scrollTop||0}function E(ue,ye){var ve=ue.className.split(" ");ve.indexOf(ye)===-1&&(ve.push(ye),ue.className=ve.join(" "))}function k(ue){ue.className=""}function L(ue,_e){var ve=ue.className.split(" "),_e=ve.indexOf(_e);_e!==-1&&(ve.splice(_e,1),ue.className=ve.join(" "))}function M(ue){for(var ye=ue.childNodes,ve=0,_e=ye.length;ve<_e;ve++){var Te=ye[ve],Le=(Te.style&&Te.removeAttribute("style"),Te.attributes);if(Le)for(var Ne=Le.length-1;0<=Ne;Ne--){var ze=Le[Ne];ze.specified===!0&&Te.removeAttribute(ze.name)}M(Te)}}function B(ue){var ye;document.createRange&&((ye=document.createRange()).selectNodeContents(ue),ye.collapse(!1),(ue=window.getSelection()).removeAllRanges(),ue.addRange(ye))}function j(ue){var ye;ue&&ue.nodeName==="DIV"&&window.getSelection&&document.createRange&&((ye=document.createRange()).selectNodeContents(ue),(ue=window.getSelection()).removeAllRanges(),ue.addRange(ye))}function z(){if(window.getSelection){var ue=window.getSelection();if(ue.getRangeAt&&ue.rangeCount)return ue.getRangeAt(0)}return null}function Q(ue){var ye;ue&&window.getSelection&&((ye=window.getSelection()).removeAllRanges(),ye.addRange(ue))}function D(){var ue=z();return ue&&"startOffset"in ue&&"endOffset"in ue&&ue.startContainer&&ue.startContainer===ue.endContainer?{startOffset:ue.startOffset,endOffset:ue.endOffset,container:ue.startContainer.parentNode}:null}function K(ue){var ye;document.createRange&&window.getSelection&&window.getSelection()&&(ye=document.createRange(),ue.container.firstChild||ue.container.appendChild(document.createTextNode("")),ye.setStart(ue.container.firstChild,ue.startOffset),ye.setEnd(ue.container.firstChild,ue.endOffset),Q(ye))}function H(ue,ye){var ve;if(ye===void 0&&(ye={_text:"",flush:function(){var ht=this._text;return this._text="",ht},set:function(ht){this._text=ht}}),ue.nodeValue)return(ve=A(ue.nodeValue))!==""?ye.flush()+ve:"";if(ue.hasChildNodes()){for(var _e=ue.childNodes,Te="",Le=0,Ne=_e.length;Le<Ne;Le++){var ze,et=_e[Le];et.nodeName==="DIV"||et.nodeName==="P"?((ze=(ze=_e[Le-1])?ze.nodeName:void 0)&&ze!=="DIV"&&ze!=="P"&&ze!=="BR"&&(Te!==""&&(Te+=` 152`),ye.flush()),Te+=H(et,ye),ye.set(` 153`)):et.nodeName==="BR"?(Te+=ye.flush(),ye.set(` 154`)):Te+=H(et,ye)}return Te}return""}function A(ue){return ue.replace(/(\b|^)\s*(\b|$)/g,function(ye){return/\n/.exec(ye)?"":ye})}function W(ue,ye){for(var ve=ue?ue.parentNode:void 0;ve;){if(ve===ye)return!0;ve=ve.parentNode}return!1}function F(){var ue;return U===-1&&(ue=-1,typeof navigator<"u"&&navigator.appName==="Microsoft Internet Explorer"&&/MSIE ([0-9]+[.0-9]+)/.exec(navigator.userAgent)!=null&&(ue=parseFloat(RegExp.$1)),U=ue),U}var U=-1;function Y(){return typeof navigator<"u"&&navigator.userAgent.indexOf("Firefox")!==-1}function ee(ue,ye,ve,_e){return ue.addEventListener?(_e===void 0&&(_e=!1),ye==="mousewheel"&&Y()&&(ye="DOMMouseScroll"),ue.addEventListener(ye,ve,_e),ve):ue.attachEvent?(ue.attachEvent("on"+ye,_e=function(){return ve.call(ue,window.event)}),_e):void 0}function X(ue,ye,ve,_e){ue.removeEventListener?(_e===void 0&&(_e=!1),ye==="mousewheel"&&Y()&&(ye="DOMMouseScroll"),ue.removeEventListener(ye,ve,_e)):ue.detachEvent&&ue.detachEvent("on"+ye,ve)}function q(ue,ye){for(var ve=ue.parentNode;ve;){if(ve===ye)return!0;ve=ve.parentNode}return!1}function ne(ue){var ye=[],ve=0;function _e(Le){for(var Ne="";ue[ve]!==void 0&&ue[ve]!==Le;)Ne+=ue[ve],ve++;if(ue[ve]!==Le)throw new Error("Invalid JSON path: unexpected end, character "+Le+" expected");return Ne}for(;ue[ve]!==void 0;)if(ue[ve]===".")ve++,ye.push((()=>{for(var Le="";ue[ve]!==void 0&&/[\w$]/.test(ue[ve]);)Le+=ue[ve],ve++;if(Le==="")throw new Error("Invalid JSON path: property name expected at index "+ve);return Le})());else{if(ue[ve]!=="[")throw new Error('Invalid JSON path: unexpected character "'+ue[ve]+'" at index '+ve);if(ue[++ve]==="'"||ue[ve]==='"'){var Te=ue[ve];if(ve++,ye.push(_e(Te)),ue[ve]!==Te)throw new Error("Invalid JSON path: closing quote ' expected at index "+ve);ve++}else{if(Te=_e("]").trim(),Te.length===0)throw new Error("Invalid JSON path: array value expected at index "+ve);Te=Te==="*"?Te:JSON.parse(Te),ye.push(Te)}if(ue[ve]!=="]")throw new Error("Invalid JSON path: closing bracket ] expected at index "+ve);ve++}return ye}function se(ue){return ue.map(function(ye){return typeof ye=="number"?"["+ye+"]":typeof ye=="string"&&ye.match(/^[A-Za-z0-9_$]+$/)?"."+ye:'["'+ye+'"]'}).join("")}function he(ue){var ye,ve;return ue.keyword==="enum"&&Array.isArray(ue.schema)&&(ve=ue.schema)&&(5<(ve=ve.map(function(_e){return JSON.stringify(_e)})).length&&(ye=["("+(ve.length-5)+" more...)"],(ve=ve.slice(0,5)).push(ye)),ue.message="should be equal to one of: "+ve.join(", ")),ue.keyword==="additionalProperties"&&(ue.message="should NOT have additional property: "+ue.params.additionalProperty),ue}function ie(ue){return ue&&typeof ue.then=="function"&&typeof ue.catch=="function"}function oe(ue){return T(ue)==="object"&&Array.isArray(ue.path)&&typeof ue.message=="string"}function de(ue,ye,ve){return ve=ve!==void 0?ve:0,ye.left-ve>=ue.left&&ye.right+ve<=ue.right&&ye.top-ve>=ue.top&&ye.bottom+ve<=ue.bottom}function me(ue,ye,ve){var _e;return function(){var Te=this,Le=arguments,Ne=ve&&!_e;clearTimeout(_e),_e=setTimeout(function(){_e=null,ve||ue.apply(Te,Le)},ye),Ne&&ue.apply(Te,Le)}}function be(ue,ye){for(var ve=ye.length,_e=0,Te=ue.length,Le=ye.length;ye.charAt(_e)===ue.charAt(_e)&&_e<ve;)_e++;for(;ye.charAt(Le-1)===ue.charAt(Te-1)&&_e<Le&&0<Te;)Le--,Te--;return{start:_e,end:Le}}function Se(ue){var ye,ve,_e,Te,Le=0,Ne=0;return typeof ue.selectionStart=="number"&&typeof ue.selectionEnd=="number"?(Le=ue.selectionStart,Ne=ue.selectionEnd):(Te=document.selection.createRange())&&Te.parentElement()===ue&&(_e=ue.value.length,ye=ue.value.replace(/\r\n/g,` 155`),(ve=ue.createTextRange()).moveToBookmark(Te.getBookmark()),(Te=ue.createTextRange()).collapse(!1),-1<ve.compareEndPoints("StartToEnd",Te)?Le=Ne=_e:(Le=-ve.moveStart("character",-_e),Le+=ye.slice(0,Le).split(` 156`).length-1,-1<ve.compareEndPoints("EndToEnd",Te)?Ne=_e:(Ne=-ve.moveEnd("character",-_e),Ne+=ye.slice(0,Ne).split(` 157`).length-1))),{startIndex:Le,endIndex:Ne,start:ze(Le),end:ze(Ne)};function ze(et){return et=ue.value.substring(0,et),{row:(et.match(/\n/g)||[]).length+1,column:et.length-et.lastIndexOf(` 158`)}}}function V(_e,ye,ve){var _e=_e.value||"";return 0<ye&&0<ve?(_e=_e.split(` 159`,ye),ye=Math.min(_e.length,ye),ve=Math.min(_e[ye-1].length,ve-1),ve=ye===1?ve:ve+1,_e.slice(0,ye-1).join(` 160`).length+ve):-1}function te(ue,ye){var ve,_e=[];
160if(ye&&ye.length){try{ve=R.parse(ue)}catch{return _e}ye.forEach(function(Te){var Le=re(ne(Te)),Le=ve.pointers[Le];Le&&_e.push({path:Te,line:Le.key?Le.key.line:Le.value?Le.value.line:0,column:Le.key?Le.key.column:Le.value?Le.value.column:0})})}return _e}function re(ue){return ue.map(function(ye){return"/"+String(ye).replace(/~/g,"~0").replace(/\//g,"~1")}).join("")}function le(ue){var ye=document.createElement("div");return ye.style.color=ue,ye.style.color.split(/\s+/).join("").toLowerCase()||null}function G(ue){return!!le(ue)}function Z(ue,ye){var ve;return ue?(ve="",ue.title&&(ve+=ue.title),ue.description&&(0<ve.length&&(ve+=` 161`),ve+=ue.description),ue.default&&(0<ve.length&&(ve+=` 162 163`),ve=(ve+=(0,O.Tl)("default",void 0,ye)+` 164`)+JSON.stringify(ue.default,null,2)),Array.isArray(ue.examples)&&0<ue.examples.length&&(0<ve.length&&(ve+=` 165 166`),ve+=(0,O.Tl)("examples",void 0,ye)+` 167`,ue.examples.forEach(function(_e,Te){ve+=JSON.stringify(_e,null,2),Te!==ue.examples.length-1&&(ve+=` 168`)})),ve):""}function J(ue,ye){for(var ve=ue,_e=0;_e<ye.length&&ve!=null;_e++)ve=ve[ye[_e]];return ve}function ae(ue,ye){if(ye.indexOf(ue)===-1)return ue;for(var ve=ue.replace(/ \(copy( \d+)?\)$/,""),_e=ve,Te=1;ye.indexOf(_e)!==-1;)_e=ve+" ("+("copy"+(1<Te?" "+Te:""))+")",Te++;return _e}function fe(ue,ye){var ve={};if(Array.isArray(ue))for(var _e=Math.min(ue.length,C),Te=0;Te<_e;Te++)(function Le(Ne,ze,et,ht){(Array.isArray(Ne)||Ce(Ne))&&!ht||(ze[et||""]=!0),Ce(Ne)&&Object.keys(Ne).forEach(function(Vt){Le(Ne[Vt],ze,et+"."+Vt,ht)})})(ue[Te],ve,"",ye);else ve[""]=!0;return Object.keys(ve).sort()}function we(ue,Le,ve){var _e=Le&&Le!=="."?ne(Le):[],Te=ve==="desc"?-1:1,Le=ue.slice();return Le.sort(function(Ne,ze){return Ne=J(Ne,_e),ze=J(ze,_e),Te*(ze<Ne?1:Ne<ze?-1:0)}),Le}function Ee(ue,_e){var ve=_e==="desc"?-1:1,_e=Object.keys(ue).sort(function(Le,Ne){return ve*l()(Le,Ne)}),Te={};return _e.forEach(function(Le){Te[Le]=ue[Le]}),Te}function $e(ue){var ye,ve,_e,Te;return ue===""?"":(ye=ue.toLowerCase())==="null"?null:ye==="true"||ye!=="false"&&(/^0\d+$/.test(ue)||/^0[xbo]/i.test(ue)||(ye=Number(ue),ve=parseFloat(ue),ve=!isNaN(ye)&&!isNaN(ve)&&isFinite(ye),_e=ye<=Number.MAX_SAFE_INTEGER&&ye>=Number.MIN_SAFE_INTEGER,Te=/^\d+$/.test(ue),!ve)||!_e&&Te?ue:ye)}function ce(ue,ye){return typeof ye=="number"&&N<ye&&isFinite(ye)&&Math.floor(ye)===ye&&!isNaN(new Date(ye).valueOf())}function ge(ue){return ue<900?ue.toFixed()+" B":(ue=ue/1e3)<900?ue.toFixed(1)+" KB":(ue=ue/1e3)<900?ue.toFixed(1)+" MB":(ue=ue/1e3)<900?ue.toFixed(1)+" GB":(ue/1e3).toFixed(1)+" TB"}function pe(ue,ye){return ue.length<=ye?ue:ue.slice(0,ye)+"..."}function Ce(ue){return T(ue)==="object"&&ue!==null&&!Array.isArray(ue)}function ke(ue,ye){return ue.indexOf(ye)!==-1}function Pe(ue,ye){if(ue||ye){if(!Array.isArray(ue)||!Array.isArray(ye)||ye.length!==ue.length)return!0;for(var ve=0;ve<ue.length;ve++){var _e=ue[ve],Te=ye[ve];if(_e.type!==Te.type||JSON.stringify(_e.error)!==JSON.stringify(Te.error))return!0}}return!1}function De(ue,ye){return ue=ue!=null&&ue.length?ue:[],ye=ye!=null&&ye.length?ye:[],$(new Set(ue.concat(ye)))}function Ve(ue){setTimeout(ue)}function Ge(ue,ye){return Object.prototype.hasOwnProperty.call(ue,ye)}},1746:function(s,o,a){var c;if(window.Picker)c=window.Picker;else try{c=a(7598)}catch{}s.exports=c},6990:function(s,o,a){var c,l,d,v,R,O,$,P;s=a.nmd(s),(d=(function(){return this})())||typeof window>"u"||(d=window),(v=function(T,C,N){typeof T!="string"?v.original&&v.original.apply(this,arguments):(arguments.length==2&&(N=C),v.modules[T]||(v.payloads[T]=N,v.modules[T]=null))}).modules={},v.payloads={},R=function(T,C,N){if(typeof C=="string"){var x=P(T,C);if(x!=null)return N&&N(),x}else if(Object.prototype.toString.call(C)==="[object Array]"){for(var S=[],b=0,p=C.length;b<p;++b){var g=P(T,C[b]);if(g==null&&O.original)return;S.push(g)}return N&&N.apply(null,S)||!0}},O=function(T,C){return T=R("",T,C),T==null&&O.original?O.original.apply(this,arguments):T},$=function(T,C){var N;if(C.indexOf("!")!==-1)return N=C.split("!"),$(T,N[0])+"!"+$(T,N[1]);if(C.charAt(0)==".")for(C=T.split("/").slice(0,-1).join("/")+"/"+C;C.indexOf(".")!==-1&&x!=C;){var x=C;C=C.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}return C},P=function(S,C){C=$(S,C);var N,x,S=v.modules[C];return S||(typeof(S=v.payloads[C])=="function"&&(N={id:C,uri:"",exports:x={},packaged:!0},x=S(function(b,p){return R(C,b,p)},x,N)||N.exports,v.modules[C]=x,delete v.payloads[C]),S=v.modules[C]=x||S),S},l=d,(c="ace")&&(d[c]||(d[c]={}),l=d[c]),l.define&&l.define.packaged||(v.original=l.define,l.define=v,l.define.packaged=!0),l.require&&l.require.packaged||(O.original=l.require,l.require=O,l.require.packaged=!0),ace.define("ace/lib/es6-shim",["require","exports","module"],function(T,C,N){function x(S,b,p){Object.defineProperty(S,b,{value:p,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||x(String.prototype,"startsWith",function(S,b){return this.lastIndexOf(S,b=b||0)===b}),String.prototype.endsWith||x(String.prototype,"endsWith",function(S,b){return(b===void 0||b>this.length)&&(b=this.length),b-=S.length,S=this.indexOf(S,b),S!==-1&&S===b}),String.prototype.repeat||x(String.prototype,"repeat",function(S){for(var b="",p=this;0<S;)1&S&&(b+=p),(S>>=1)&&(p+=p);return b}),String.prototype.includes||x(String.prototype,"includes",function(S,b){return this.indexOf(S,b)!=-1}),Object.assign||(Object.assign=function(S){if(S==null)throw new TypeError("Cannot convert undefined or null to object");for(var b=Object(S),p=1;p<arguments.length;p++){var g=arguments[p];g!=null&&Object.keys(g).forEach(function(u){b[u]=g[u]})}return b}),Object.values||(Object.values=function(S){return Object.keys(S).map(function(b){return S[b]})}),Array.prototype.find||x(Array.prototype,"find",function(S){for(var b=this.length,p=arguments[1],g=0;g<b;g++){var u=this[g];if(S.call(p,u,g,this))return u}}),Array.prototype.findIndex||x(Array.prototype,"findIndex",function(S){for(var b=this.length,p=arguments[1],g=0;g<b;g++){var u=this[g];if(S.call(p,u,g,this))return g}}),Array.prototype.includes||x(Array.prototype,"includes",function(S,b){return this.indexOf(S,b)!=-1}),Array.prototype.fill||x(Array.prototype,"fill",function(S){for(var b=this.length>>>0,g=arguments[1]>>0,p=g<0?Math.max(b+g,0):Math.min(g,b),g=arguments[2],g=g===void 0?b:g>>0,u=g<0?Math.max(b+g,0):Math.min(g,b);p<u;)this[p]=S,p++;return this}),Array.of||x(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(T,C,N){T("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(T,C,N){C.deepCopy=function x(S){if(typeof S!="object"||!S)return S;if(Array.isArray(S))for(var b=[],p=0;p<S.length;p++)b[p]=x(S[p]);else{if(Object.prototype.toString.call(S)!=="[object Object]")return S;for(var p in b={},S)b[p]=x(S[p])}return b}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(T,C,N){C.last=function(b){return b[b.length-1]}
168,C.stringReverse=function(b){return b.split("").reverse().join("")},C.stringRepeat=function(b,p){for(var g="";0<p;)1&p&&(g+=b),(p>>=1)&&(b+=b);return g};var x=/^\s\s*/,S=/\s\s*$/;C.stringTrimLeft=function(b){return b.replace(x,"")},C.stringTrimRight=function(b){return b.replace(S,"")},C.copyObject=function(b){var p,g={};for(p in b)g[p]=b[p];return g},C.copyArray=function(b){for(var p=[],g=0,u=b.length;g<u;g++)b[g]&&typeof b[g]=="object"?p[g]=this.copyObject(b[g]):p[g]=b[g];return p},C.deepCopy=T("./deep_copy").deepCopy,C.arrayToMap=function(b){for(var p={},g=0;g<b.length;g++)p[b[g]]=1;return p},C.createMap=function(b){var p,g=Object.create(null);for(p in b)g[p]=b[p];return g},C.arrayRemove=function(b,p){for(var g=0;g<=b.length;g++)p===b[g]&&b.splice(g,1)},C.escapeRegExp=function(b){return b.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},C.escapeHTML=function(b){return(""+b).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<")},C.getMatchOffsets=function(b,p){var g=[];return b.replace(p,function(u){g.push({offset:arguments[arguments.length-2],length:u.length})}),g},C.deferredCall=function(b){function p(){u=null,b()}function g(y){return g.cancel(),u=setTimeout(p,y||0),g}var u=null;return(g.schedule=g).call=function(){return this.cancel(),b(),g},g.cancel=function(){return clearTimeout(u),u=null,g},g.isPending=function(){return u},g},C.delayedCall=function(b,p){function g(){y=null,b()}function u(m){y==null&&(y=setTimeout(g,m||p))}var y=null;return u.delay=function(m){y&&clearTimeout(y),y=setTimeout(g,m||p)},(u.schedule=u).call=function(){this.cancel(),b()},u.cancel=function(){y&&clearTimeout(y),y=null},u.isPending=function(){return y},u},C.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},C.skipEmptyMatch=function(b,p,g){return g&&65535<b.codePointAt(p)?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(T,C,N){C.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},C.getOS=function(){return C.isMac?C.OS.MAC:C.isLinux?C.OS.LINUX:C.OS.WINDOWS};var b=typeof navigator=="object"?navigator:{},x=(/mac|win|linux/i.exec(b.platform)||["other"])[0].toLowerCase(),S=b.userAgent||"",b=b.appName||"";C.isWin=x=="win",C.isMac=x=="mac",C.isLinux=x=="linux",C.isIE=b=="Microsoft Internet Explorer"||0<=b.indexOf("MSAppHost")?parseFloat((S.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((S.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),C.isOldIE=C.isIE&&C.isIE<9,C.isGecko=C.isMozilla=S.match(/ Gecko\/\d+/),C.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",C.isWebKit=parseFloat(S.split("WebKit/")[1])||void 0,C.isChrome=parseFloat(S.split(" Chrome/")[1])||void 0,C.isSafari=parseFloat(S.split(" Safari/")[1])&&!C.isChrome||void 0,C.isEdge=parseFloat(S.split(" Edge/")[1])||void 0,C.isAIR=0<=S.indexOf("AdobeAIR"),C.isAndroid=0<=S.indexOf("Android"),C.isChromeOS=0<=S.indexOf(" CrOS "),C.isIOS=/iPad|iPhone|iPod/.test(S)&&!window.MSStream,C.isIOS&&(C.isMac=!0),C.isMobile=C.isIOS||C.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(b,C,N){var x,S,b=b("./useragent"),p=(C.buildDom=function y(m,I,_){if(typeof m=="string"&&m)return L=document.createTextNode(m),I&&I.appendChild(L),L;if(!Array.isArray(m))return m&&m.appendChild&&I&&I.appendChild(m),m;if(typeof m[0]!="string"||!m[0]){for(var h=[],f=0;f<m.length;f++){var w=y(m[f],I,_);w&&h.push(w)}return h}for(var E=document.createElement(m[0]),k=m[1],L=1,f=L=k&&typeof k=="object"&&!Array.isArray(k)?2:L;f<m.length;f++)y(m[f],E,_);return L==2&&Object.keys(k).forEach(function(M){var B=k[M];M==="class"?E.className=Array.isArray(B)?B.join(" "):B:typeof B=="function"||M=="value"||M[0]=="$"?E[M]=B:M==="ref"?_&&(_[B]=E):M==="style"?typeof B=="string"&&(E.style.cssText=B):B!=null&&E.setAttribute(M,B)}),I&&I.appendChild(E),E},C.getDocumentHead=function(y){return(y=y||document).head||y.getElementsByTagName("head")[0]||y.documentElement},C.createElement=function(y,m){return document.createElementNS?document.createElementNS(m||"http://www.w3.org/1999/xhtml",y):document.createElement(y)},C.removeChildren=function(y){y.innerHTML=""},C.createTextNode=function(y,m){return(m?m.ownerDocument:document).createTextNode(y)},C.createFragment=function(y){return(y?y.ownerDocument:document).createDocumentFragment()},C.hasCssClass=function(y,m){return(y.className+"").split(/\s+/g).indexOf(m)!==-1},C.addCssClass=function(y,m){C.hasCssClass(y,m)||(y.className+=" "+m)},C.removeCssClass=function(y,m){for(var I=y.className.split(/\s+/g);;){var _=I.indexOf(m);
168if(_==-1)break;I.splice(_,1)}y.className=I.join(" ")},C.toggleCssClass=function(y,m){for(var I=y.className.split(/\s+/g),_=!0;;){var h=I.indexOf(m);if(h==-1)break;_=!1,I.splice(h,1)}return _&&I.push(m),y.className=I.join(" "),_},C.setCssClass=function(y,m,I){I?C.addCssClass(y,m):C.removeCssClass(y,m)},C.hasCssString=function(y,m){var I,_=0;if(I=(m=m||document).querySelectorAll("style")){for(;_<I.length;)if(I[_++].id===y)return!0}},C.removeElementById=function(y,m){(m=m||document).getElementById(y)&&m.getElementById(y).remove()},[]);function g(){var y=p;p=null,y&&y.forEach(function(m){u(m[0],m[1])})}function u(y,m,I){if(typeof document<"u"){if(p){if(I)g();else if(I===!1)return p.push([y,m])}if(!x){var _=I,I=(_=I&&I.getRootNode&&(_=I.getRootNode())&&_!=I?_:document).ownerDocument||_;if(m&&C.hasCssString(m,_))return null;m&&(y+=` 169/*# sourceURL=ace/css/`+m+" */");var h=C.createElement("style");h.appendChild(I.createTextNode(y)),m&&(h.id=m),(_=_==I?C.getDocumentHead(I):_).insertBefore(h,_.firstChild)}}}C.useStrictCSP=function(y){(x=y)==0?g():p=p||[]},C.importCssString=u,C.importCssStylsheet=function(y,m){C.buildDom(["link",{rel:"stylesheet",href:y}],C.getDocumentHead(m))},C.$fixPositionBug=function(y){var m,I,_=y.getBoundingClientRect();y.style.left&&(m=parseFloat(y.style.left),I=+_.left,1<Math.abs(m-I))&&(y.style.left=2*m-I+"px"),y.style.right&&(m=parseFloat(y.style.right),I=window.innerWidth-_.right,1<Math.abs(m-I))&&(y.style.right=2*m-I+"px"),y.style.top&&(m=parseFloat(y.style.top),I=+_.top,1<Math.abs(m-I))&&(y.style.top=2*m-I+"px"),y.style.bottom&&(m=parseFloat(y.style.bottom),I=window.innerHeight-_.bottom,1<Math.abs(m-I))&&(y.style.bottom=2*m-I+"px")},C.scrollbarWidth=function(_){var m=C.createElement("ace_inner"),I=(m.style.width="100%",m.style.minWidth="0px",m.style.height="200px",m.style.display="block",C.createElement("ace_outer")),f=I.style,_=(f.position="absolute",f.left="-10000px",f.overflow="hidden",f.width="200px",f.minWidth="0px",f.height="150px",f.display="block",I.appendChild(m),_&&_.documentElement||document&&document.documentElement);if(!_)return 0;_.appendChild(I);var h=m.offsetWidth,f=(f.overflow="scroll",m.offsetWidth);return h===f&&(f=I.clientWidth),_.removeChild(I),h-f},C.computedStyle=function(y,m){return window.getComputedStyle(y,"")||{}},C.setStyle=function(y,m,I){y[m]!==I&&(y[m]=I)},C.HAS_CSS_ANIMATION=!1,C.HAS_CSS_TRANSFORMS=!1,C.HI_DPI=!b.isWin||typeof window<"u"&&1.5<=window.devicePixelRatio,b.isChromeOS&&(C.HI_DPI=!1),typeof document<"u"&&(S=document.createElement("div"),C.HI_DPI&&S.style.transform!==void 0&&(C.HAS_CSS_TRANSFORMS=!0),b.isEdge||S.style.animationName===void 0||(C.HAS_CSS_ANIMATION=!0),S=null),C.translate=C.HAS_CSS_TRANSFORMS?function(y,m,I){y.style.transform="translate("+Math.round(m)+"px, "+Math.round(I)+"px)"}:function(y,m,I){y.style.top=Math.round(I)+"px",y.style.left=Math.round(m)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(T,C,N){var x=T("./dom");C.get=function(S,b){var p=new XMLHttpRequest;p.open("GET",S,!0),p.onreadystatechange=function(){p.readyState===4&&b(p.responseText)},p.send(null)},C.loadScript=function(S,b){var p=x.getDocumentHead(),g=document.createElement("script");g.src=S,p.appendChild(g),g.onload=g.onreadystatechange=function(u,y){!y&&g.readyState&&g.readyState!="loaded"&&g.readyState!="complete"||(g=g.onload=g.onreadystatechange=null,y)||b()}},C.qualifyURL=function(S){var b=document.createElement("a");return b.href=S,b.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(T,C,N){C.inherits=function(x,S){x.super_=S,x.prototype=Object.create(S.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}})},C.mixin=function(x,S){for(var b in S)x[b]=S[b];return x},C.implement=function(x,S){C.mixin(x,S)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(T,C,N){function x(){this.propagationStopped=!0}function S(){this.defaultPrevented=!0}var b={};b._emit=b._dispatchEvent=function(p,g){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var u=this._eventRegistry[p]||[],y=this._defaultHandlers[p];if(u.length||y){(g=typeof g=="object"&&g?g:{}).type||(g.type=p),g.stopPropagation||(g.stopPropagation=x),g.preventDefault||(g.preventDefault=S);for(var u=u.slice(),m=0;m<u.length&&(u[m](g,this),!g.propagationStopped);m++);return y&&!g.defaultPrevented?y(g,this):void 0}},b._signal=function(p,g){if(u=(this._eventRegistry||{})[p])for(var u=u.slice(),y=0;y<u.length;y++)u[y](g,this)},b.once=function(p,g){var u=this;if(this.on(p,function y(){u.off(p,y),g.apply(null,arguments)}),!g)return new Promise(function(y){g=y})},b.setDefaultHandler=function(p,g){var u,y,m=this._defaultHandlers;(m=m||(this._defaultHandlers={_disabled_:{}}))[p]&&(y=m[p],(u=m._disabled_[p])||(m._disabled_[p]=u=[]),u.push(y),(y=u.indexOf(g))!=-1)&&u.splice(y,1),m[p]=g},b.removeDefaultHandler=function(p,g){var u,y=this._defaultHandlers;y&&(u=y._disabled_[p],y[p]==g?u&&this.setDefaultHandler(p,u.pop()):u&&(y=u.indexOf(g))!=-1&&u.splice(y,1))},b.on=b.addEventListener=function(p,g,u){this._eventRegistry=this._eventRegistry||{};var y=this._eventRegistry[p];return(y=y||(this._eventRegistry[p]=[])).indexOf(g)==-1&&y[u?"unshift":"push"](g),g},b.off=b.removeListener=b.removeEventListener=function(p,g){this._eventRegistry=this._eventRegistry||{},p=this._eventRegistry[p],p&&(g=p.indexOf(g))!==-1&&p.splice(g,1)},b.removeAllListeners=function(p){p||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[p]=void 0),this._defaultHandlers&&(this._defaultHandlers[p]=void 0)},C.EventEmitter=b}),ace.define("ace/lib/report_error",["require","exports","module"],function(T,C,N){C.reportError=function(x,S){var b=new Error(x);b.data=S,setTimeout(function(){throw b})}}),ace.define("ace/lib/default_english_messages",["require","exports","module"],function(T,C,N){C.defaultEnglishMessages={"autocomplete.popup.aria-roledescription":"Autocomplete suggestions","autocomplete.popup.aria-label":"Autocomplete suggestions","autocomplete.popup.item.aria-roledescription":"item","autocomplete.loading":"Loading...","editor.scroller.aria-roledescription":"editor","editor.scroller.aria-label":"Editor content, press Enter to start editing, press Escape to exit","editor.gutter.aria-roledescription":"editor gutter","editor.gutter.aria-label":"Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit","error-marker.good-state":"Looks good!","prompt.recently-used":"Recently used","prompt.other-commands":"Other commands","prompt.no-matching-commands":"No matching commands","search-box.find.placeholder":"Search for","search-box.find-all.text":"All","search-box.replace.placeholder":"Replace with","search-box.replace-next.text":"Replace","search-box.replace-all.text":"All","search-box.toggle-replace.title":"Toggle Replace mode","search-box.toggle-regexp.title":"RegExp Search","search-box.toggle-case.title":"CaseSensitive Search","search-box.toggle-whole-word.title":"Whole Word Search","search-box.toggle-in-selection.title":"Search In Selection","search-box.search-counter"
169:"$0 of $1","text-input.aria-roledescription":"editor","text-input.aria-label":"Cursor at row $0","gutter.code-folding.range.aria-label":"Toggle code folding, rows $0 through $1","gutter.code-folding.closed.aria-label":"Toggle code folding, rows $0 through $1","gutter.code-folding.open.aria-label":"Toggle code folding, row $0","gutter.code-folding.closed.title":"Unfold code","gutter.code-folding.open.title":"Fold code","gutter.annotation.aria-label.error":"Error, read annotations row $0","gutter.annotation.aria-label.warning":"Warning, read annotations row $0","gutter.annotation.aria-label.info":"Info, read annotations row $0","inline-fold.closed.title":"Unfold code","gutter-tooltip.aria-label.error.singular":"error","gutter-tooltip.aria-label.error.plural":"errors","gutter-tooltip.aria-label.warning.singular":"warning","gutter-tooltip.aria-label.warning.plural":"warnings","gutter-tooltip.aria-label.info.singular":"information message","gutter-tooltip.aria-label.info.plural":"information messages","gutter.annotation.aria-label.security":"Security finding, read annotations row $0","gutter.annotation.aria-label.hint":"Suggestion, read annotations row $0","gutter-tooltip.aria-label.security.singular":"security finding","gutter-tooltip.aria-label.security.plural":"security findings","gutter-tooltip.aria-label.hint.singular":"suggestion","gutter-tooltip.aria-label.hint.plural":"suggestions","editor.tooltip.disable-editing":"Editing is disabled"}}),ace.define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/report_error","ace/lib/default_english_messages"],function(T,C,N){var x,S,b=T("./oop"),p=T("./event_emitter").EventEmitter,g=T("./report_error").reportError,u=T("./default_english_messages").defaultEnglishMessages,y={setOptions:function(_){Object.keys(_).forEach(function(h){this.setOption(h,_[h])},this)},getOptions:function(_){var h,f={};return _?Array.isArray(_)||(_=Object.keys(_)):(h=this.$options,_=Object.keys(h).filter(function(w){return!h[w].hidden})),_.forEach(function(w){f[w]=this.getOption(w)},this),f},setOption:function(_,h){var f;if(this["$"+_]!==h)return(f=this.$options[_])?f.forwardTo?this[f.forwardTo]&&this[f.forwardTo].setOption(_,h):(f.handlesSet||(this["$"+_]=h),void(f&&f.set&&f.set.call(this,h))):m('misspelled option "'+_+'"')},getOption:function(_){var h=this.$options[_];return h?h.forwardTo?this[h.forwardTo]&&this[h.forwardTo].getOption(_):h&&h.get?h.get.call(this):this["$"+_]:m('misspelled option "'+_+'"')}};function m(_){typeof console<"u"}I.prototype.defineOptions=function(_,h,f){return _.$options||(this.$defaultOptions[h]=_.$options={}),Object.keys(f).forEach(function(w){var E=f[w];(E=typeof E=="string"?{forwardTo:E}:E).name||(E.name=w),"initialValue"in(_.$options[E.name]=E)&&(_["$"+E.name]=E.initialValue)}),b.implement(_,y),this},I.prototype.resetOptions=function(_){Object.keys(_.$options).forEach(function(h){var f=_.$options[h];"value"in f&&_.setOption(h,f.value)})},I.prototype.setDefaultValue=function(_,h,f){if(!_){for(_ in this.$defaultOptions)if(this.$defaultOptions[_][h])break;if(!this.$defaultOptions[_][h])return!1}var w=this.$defaultOptions[_]||(this.$defaultOptions[_]={});w[h]&&(w.forwardTo?this.setDefaultValue(w.forwardTo,h,f):w[h].value=f)},I.prototype.setDefaultValues=function(_,h){Object.keys(h).forEach(function(f){this.setDefaultValue(_,f,h[f])},this)},I.prototype.setMessages=function(_,h){x=_,h&&h.placeholders&&(S=h.placeholders)},I.prototype.nls=function(_,h,f){return x[_]||(m("No message found for the key '"+_+"' in messages with id "+x.$id+", trying to find a translation for the default string '"+h+"'."),x[h])||m("No message found for the default string '"+h+"' in the provided messages. Falling back to the default English message."),_=x[_]||x[h]||h,_=f&&(S==="dollarSigns"&&(_=_.replace(/\$(\$|[\d]+)/g,function(w,E){return E=="$"?"$":f[E]})),S==="curlyBrackets")?_.replace(/\{([^\}]+)\}/g,function(w,E){return f[E]}):_},T=I;function I(){this.$defaultOptions={},x=u,S="dollarSigns"}T.prototype.warn=m,T.prototype.reportError=g,b.implement(T.prototype,p),C.AppConfig=T}),ace.define("ace/theme/textmate-css",["require","exports","module"],function(T,C,N){N.exports=`.ace-tm .ace_gutter { 170 background: #f0f0f0; 171 color: #333; 172} 173 174.ace-tm .ace_print-margin { 175 width: 1px; 176 background: #e8e8e8; 177} 178 179.ace-tm .ace_fold { 180 background-color: #6B72E6; 181} 182 183.ace-tm { 184 background-color: #FFFFFF; 185 color: black; 186} 187 188.ace-tm .ace_cursor { 189 color: black; 190} 191 192.ace-tm .ace_invisible { 193 color: rgb(191, 191, 191); 194} 195 196.ace-tm .ace_storage, 197.ace-tm .ace_keyword { 198 color: blue; 199} 200 201.ace-tm .ace_constant { 202 color: rgb(197, 6, 11); 203} 204 205.ace-tm .ace_constant.ace_buildin { 206 color: rgb(88, 72, 246); 207} 208 209.ace-tm .ace_constant.ace_language { 210 color: rgb(88, 92, 246); 211} 212 213.ace-tm .ace_constant.ace_library { 214 color: rgb(6, 150, 14); 215} 216 217.ace-tm .ace_invalid { 218 background-color: rgba(255, 0, 0, 0.1); 219 color: red; 220} 221 222.ace-tm .ace_support.ace_function { 223 color: rgb(60, 76, 114); 224} 225 226.ace-tm .ace_support.ace_constant { 227 color: rgb(6, 150, 14); 228} 229 230.ace-tm .ace_support.ace_type, 231.ace-tm .ace_support.ace_class { 232 color: rgb(109, 121, 222); 233} 234 235.ace-tm .ace_keyword.ace_operator { 236 color: rgb(104, 118, 135); 237} 238 239.ace-tm .ace_string { 240 color: rgb(3, 106, 7); 241} 242 243.ace-tm .ace_comment {
244 color: rgb(76, 136, 107); 245} 246 247.ace-tm .ace_comment.ace_doc { 248 color: rgb(0, 102, 255); 249} 250 251.ace-tm .ace_comment.ace_doc.ace_tag { 252 color: rgb(128, 159, 191); 253} 254 255.ace-tm .ace_constant.ace_numeric { 256 color: rgb(0, 0, 205); 257} 258 259.ace-tm .ace_variable { 260 color: rgb(49, 132, 149); 261} 262 263.ace-tm .ace_xml-pe { 264 color: rgb(104, 104, 91); 265} 266 267.ace-tm .ace_entity.ace_name.ace_function { 268 color: #0000A2; 269} 270 271 272.ace-tm .ace_heading { 273 color: rgb(12, 7, 255); 274} 275 276.ace-tm .ace_list { 277 color:rgb(185, 6, 144); 278} 279 280.ace-tm .ace_meta.ace_tag { 281 color:rgb(0, 22, 142); 282} 283 284.ace-tm .ace_string.ace_regex { 285 color: rgb(255, 0, 0) 286} 287 288.ace-tm .ace_marker-layer .ace_selection { 289 background: rgb(181, 213, 255); 290} 291.ace-tm.ace_multiselect .ace_selection.ace_start { 292 box-shadow: 0 0 3px 0px white; 293} 294.ace-tm .ace_marker-layer .ace_step { 295 background: rgb(252, 255, 0); 296} 297 298.ace-tm .ace_marker-layer .ace_stack { 299 background: rgb(164, 229, 101); 300} 301 302.ace-tm .ace_marker-layer .ace_bracket { 303 margin: -1px 0 0 -1px; 304 border: 1px solid rgb(192, 192, 192); 305} 306 307.ace-tm .ace_marker-layer .ace_active-line { 308 background: rgba(0, 0, 0, 0.07); 309} 310 311.ace-tm .ace_gutter-active-line { 312 background-color : #dcdcdc; 313} 314 315.ace-tm .ace_marker-layer .ace_selected-word { 316 background: rgb(250, 250, 255); 317 border: 1px solid rgb(200, 200, 250); 318} 319 320.ace-tm .ace_indent-guide { 321 background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y; 322} 323 324.ace-tm .ace_indent-guide-active { 325 background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y; 326} 327`}),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],function(T,C,N){C.isDark=!1,C.cssClass="ace-tm",C.cssText=T("./textmate-css"),C.$id="ace/theme/textmate",T("../lib/dom").importCssString(C.cssText,C.cssClass,!1)}),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/net","ace/lib/dom","ace/lib/app_config","ace/theme/textmate"],function(T,C,N){var x,S=T("./lib/lang"),b=T("./lib/net"),p=T("./lib/dom"),g=T("./lib/app_config").AppConfig,u=(N.exports=C=new g,{packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null}),y=(C.get=function(m){if(u.hasOwnProperty(m))return u[m];throw new Error("Unknown config key: "+m)},C.set=function(m,I){if(u.hasOwnProperty(m))u[m]=I;else if(this.setDefaultValue("",m,I)==0)throw new Error("Unknown config key: "+m);m=="useStrictCSP"&&p.useStrictCSP(I)},C.all=function(){return S.copyObject(u)},C.$modes={},C.moduleUrl=function(m,I){var _,h,f;return u.$moduleUrls[m]||(m=m.split("/"),_=(I=I||m[m.length-2]||"")=="snippets"?"/":"-",h=m[m.length-1],I=="worker"&&_=="-"&&(f=new RegExp("^"+I+"[\\-_]|[\\-_]"+I+"$","g"),h=h.replace(f,"")),(!h||h==I)&&1<m.length&&(h=m[m.length-2]),(f=u[I+"Path"])==null?f=u.basePath:_=="/"&&(I=_=""),f&&f.slice(-1)!="/"&&(f+="/"),f+I+_+h+this.get("suffix"))},C.setModuleUrl=function(m,I){return u.$moduleUrls[m]=I},C.setLoader=function(m){x=m},C.dynamicModules=Object.create(null),C.$loading={},C.$loaded={},C.loadModule=function(m,I){function _(E){if(E&&!C.$loading[w])return I&&I(E);if(C.$loading[w]||(C.$loading[w]=[]),C.$loading[w].push(I),!(1<C.$loading[w].length)){if(E=function(){var k,L;L=function(M,B){B&&(C.$loaded[w]=B),C._emit("load.module",{name:w,module:B});var j=C.$loading[w];C.$loading[w]=null,j.forEach(function(z){z&&z(B)})}
327,(k=w)==="ace/theme/textmate"||k==="./theme/textmate"?L(null,T("./theme/textmate")):x&&x(k,L)},!C.get("packaged"))return E();b.loadScript(C.moduleUrl(w,f),E),y()}}var h,f,w;if(Array.isArray(m)?(f=m[0],w=m[1]):typeof m=="string"&&(w=m),C.dynamicModules[w])C.dynamicModules[w]().then(function(E){E.default?_(E.default):_(E)});else{try{h=this.$require(w)}catch{}_(h||C.$loaded[w])}},C.$require=function(m){if(typeof N.require=="function")return N.require(m)},C.setModuleLoader=function(m,I){C.dynamicModules[m]=I},function(){u.basePath||u.workerPath||u.modePath||u.themePath||Object.keys(u.$moduleUrls).length||(y=function(){})});C.version="1.43.6"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(T,C,N){T("./lib/fixoldbrowsers");var x=T("./config"),S=(x.setLoader(function(p,g){T([p],function(u){g(null,u)})}),(function(){return this||typeof window<"u"&&window})());function b(p){if(S&&S.document){x.set("packaged",p||T.packaged||N.packaged||S.define&&a.amdD.packaged);for(var g,u={},y="",p=document.currentScript||document._currentScript,m=p&&p.ownerDocument||document,I=(p&&p.src&&(y=p.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||""),m.getElementsByTagName("script")),_=0;_<I.length;_++){var h=I[_],f=h.src||h.getAttribute("src");if(f){for(var w=h.attributes,E=0,k=w.length;E<k;E++){var L=w[E];L.name.indexOf("data-ace-")===0&&(u[L.name.replace(/^data-ace-/,"").replace(/-(.)/g,function(B,j){return j.toUpperCase()})]=L.value)}h=f.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/),h&&(y=h[1])}}for(g in y&&(u.base=u.base||y,u.packaged=!0),u.basePath=u.base,u.workerPath=u.workerPath||u.base,u.modePath=u.modePath||u.base,u.themePath=u.themePath||u.base,delete u.base,u)u[g]!==void 0&&x.set(g,u[g])}}N.exports=function(p){x.init=b,x.$require=T,p.require=T,p.define=a.amdD},b(!0)}),ace.define("ace/range",["require","exports","module"],function(T,C,N){S.prototype.isEqual=function(b){return this.start.row===b.start.row&&this.end.row===b.end.row&&this.start.column===b.start.column&&this.end.column===b.end.column},S.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},S.prototype.contains=function(b,p){return this.compare(b,p)==0},S.prototype.compareRange=function(p){var g=p.end,p=p.start,g=this.compare(g.row,g.column);return g==1?(g=this.compare(p.row,p.column))==1?2:g==0?1:0:g==-1?-2:(g=this.compare(p.row,p.column))==-1?-1:g==1?42:0},S.prototype.comparePoint=function(b){return this.compare(b.row,b.column)},S.prototype.containsRange=function(b){return this.comparePoint(b.start)==0&&this.comparePoint(b.end)==0},S.prototype.intersects=function(b){return b=this.compareRange(b),b==-1||b==0||b==1},S.prototype.isEnd=function(b,p){return this.end.row==b&&this.end.column==p},S.prototype.isStart=function(b,p){return this.start.row==b&&this.start.column==p},S.prototype.setStart=function(b,p){typeof b=="object"?(this.start.column=b.column,this.start.row=b.row):(this.start.row=b,this.start.column=p)},S.prototype.setEnd=function(b,p){typeof b=="object"?(this.end.column=b.column,this.end.row=b.row):(this.end.row=b,this.end.column=p)},S.prototype.inside=function(b,p){return this.compare(b,p)==0&&!this.isEnd(b,p)&&!this.isStart(b,p)},S.prototype.insideStart=function(b,p){return this.compare(b,p)==0&&!this.isEnd(b,p)},S.prototype.insideEnd=function(b,p){return this.compare(b,p)==0&&!this.isStart(b,p)},S.prototype.compare=function(b,p){return this.isMultiLine()||b!==this.start.row?b<this.start.row?-1:b>this.end.row?1:this.start.row===b?p>=this.start.column?0:-1:this.end.row!==b||p<=this.end.column?0:1:p<this.start.column?-1:p>this.end.column?1:0},S.prototype.compareStart=function(b,p){return this.start.row==b&&this.start.column==p?-1:this.compare(b,p)},S.prototype.compareEnd=function(b,p){return this.end.row==b&&this.end.column==p?1:this.compare(b,p)},S.prototype.compareInside=function(b,p){return this.end.row==b&&this.end.column==p?1:this.start.row==b&&this.start.column==p?-1:this.compare(b,p)},S.prototype.clipRows=function(b,p){var g,u;return this.end.row>p?g={row:p+1,column:0}:this.end.row<b&&(g={row:b,column:0}),this.start.row>p?u={row:p+1,column:0}:this.start.row<b&&(u={row:b,column:0}),S.fromPoints(u||this.start,g||this.end)},S.prototype.extend=function(b,p){var g,u,y=this.compare(b,p);return y==0?this:(y==-1?g={row:b,column:p}:u={row:b,column:p},S.fromPoints(g||this.start,u||this.end))},S.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},S.prototype.isMultiLine=function(){return this.start.row!==this.end.row},S.prototype.clone=function(){return S.fromPoints(this.start,this.end)},S.prototype.collapseRows=function(){return this.end.column==0?new S(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new S(this.start.row,0,this.end.row,0)},S.prototype.toScreenRange=function(g){var p=g.documentToScreenPosition(this.start),g=g.documentToScreenPosition(this.end);return new S(p.row,p.column,g.row,g.column)},S.prototype.moveBy=function(b,p){this.start.row+=b,this.start.column+=p,this.end.row+=b,this.end.column+=p};var x=S;function S(b,p,g,u){this.start={row:b,column:p},this.end={row:g,column:u}}x.fromPoints=function(b,p){return new x(b.row,b.column,p.row,p.column)},x.comparePoints=function(b,p){return b.row-p.row||b.column-p.column},C.Range=x}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(T,C,N){for(var T=T("./oop"),x={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1}
327,FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete","-13":"NumpadEnter",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",59:";",61:"=",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}},S={Command:224,Backspace:8,Tab:9,Return:13,Enter:13,Pause:19,Escape:27,PageUp:33,PageDown:34,End:35,Home:36,Insert:45,Delete:46,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Backquote:192,Minus:189,Equal:187,BracketLeft:219,Backslash:220,BracketRight:221,Semicolon:186,Quote:222,Comma:188,Period:190,Slash:191,Space:32,NumpadAdd:107,NumpadDecimal:110,NumpadSubtract:109,NumpadDivide:111,NumpadMultiply:106},b=0;b<10;b++)S["Digit"+b]=48+b,S["Numpad"+b]=96+b,x.PRINTABLE_KEYS[48+b]=""+b,x.FUNCTION_KEYS[96+b]="Numpad"+b;for(b=65;b<91;b++){var p=String.fromCharCode(b+32);S["Key"+p.toUpperCase()]=b,x.PRINTABLE_KEYS[b]=p}for(b=1;b<13;b++)S["F"+b]=111+b,x.FUNCTION_KEYS[111+b]="F"+b;var g,u,y={Shift:16,Control:17,Alt:18,Meta:224};for(g in y)S[g]=S[g+"Left"]=S[g+"Right"]=y[g];for(u in C.$codeToKeyCode=S,x.PRINTABLE_KEYS[173]="-",x.FUNCTION_KEYS){var m=x.FUNCTION_KEYS[u].toLowerCase();x[m]=parseInt(u,10)}for(u in x.PRINTABLE_KEYS)m=x.PRINTABLE_KEYS[u].toLowerCase(),x[m]=parseInt(u,10);T.mixin(x,x.MODIFIER_KEYS),T.mixin(x,x.PRINTABLE_KEYS),T.mixin(x,x.FUNCTION_KEYS),x.enter=x.return,x.escape=x.esc,x.del=x.delete;for(var I=["cmd","ctrl","alt","shift"],_=Math.pow(2,I.length);_--;)x.KEY_MODS[_]=I.filter(function(h){return _&x.KEY_MODS[h]}).join("-")+"-";x.KEY_MODS[0]="",x.KEY_MODS[-1]="input-",T.mixin(C,x),(C.default=C).keyCodeToString=function(h){var f=x[h];return(f=typeof f!="string"?String.fromCharCode(h):f).toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(T,C,N){var x,S=T("./keys"),b=T("./useragent"),p=null,g=0;function u(){if(x==null){x=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){return x={passive:!1},!0}})}catch{}}return x}function y(w,E,k){this.elem=w,this.type=E,this.callback=k}y.prototype.destroy=function(){_(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var m,I=C.addListener=function(w,E,k,L){w.addEventListener(E,k,u()),L&&L.$toDestroy.push(new y(w,E,k))},_=C.removeListener=function(w,E,k){w.removeEventListener(E,k,u())};function h(w){return 0|(w.ctrlKey?1:0)|(w.altKey?2:0)|(w.shiftKey?4:0)|(w.metaKey?8:0)}function f(){p=Object.create(null)}C.stopEvent=function(w){return C.stopPropagation(w),C.preventDefault(w),!1},C.stopPropagation=function(w){w.stopPropagation&&w.stopPropagation()},C.preventDefault=function(w){w.preventDefault&&w.preventDefault()},C.getButton=function(w){return w.type=="dblclick"?0:w.type=="contextmenu"||b.isMac&&w.ctrlKey&&!w.altKey&&!w.shiftKey?2:w.button},C.capture=function(w,E,k){var L=w&&w.ownerDocument||document;function M(B){E&&E(B),k&&k(B),_(L,"mousemove",E),_(L,"mouseup",M),_(L,"dragstart",M)}return I(L,"mousemove",E),I(L,"mouseup",M),I(L,"dragstart",M),M},C.addMouseWheelListener=function(w,E,k){I(w,"wheel",function(L){var M=L.deltaX||0,B=L.deltaY||0;switch(L.deltaMode){case L.DOM_DELTA_PIXEL:L.wheelX=.15*M,L.wheelY=.15*B;break;case L.DOM_DELTA_LINE:L.wheelX=15*M,L.wheelY=15*B;break;case L.DOM_DELTA_PAGE:L.wheelX=150*M,L.wheelY=150*B}E(L)},k)},C.addMultiMouseDownListener=function(w,E,k,L,M){var B,j,z,Q=0,D={2:"dblclick",3:"tripleclick",4:"quadclick"};function K(H){var A;if(C.getButton(H)!==0?Q=0:1<H.detail&&!(4<++Q)||(Q=1),b.isIE&&(A=5<Math.abs(H.clientX-B)||5<Math.abs(H.clientY-j),z&&!A||(Q=1),z&&clearTimeout(z),z=setTimeout(function(){z=null},E[Q-1]||600),Q==1)&&(B=H.clientX,j=H.clientY),H._clicks=Q,k[L]("mousedown",H),4<Q)Q=0;else if(1<Q)return k[L](D[Q],H)}(w=Array.isArray(w)?w:[w]).forEach(function(H){I(H,"mousedown",K,M)})},C.getModifierString=function(w){return S.KEY_MODS[h(w)]},C.addCommandKeyListener=function(w,E,k){var L=null;I(w,"keydown",function(M){p[M.keyCode]=(p[M.keyCode]||0)+1;var B=((j,z,Q)=>{var D,K=h(z);if(!Q&&z.code&&(Q=S.$codeToKeyCode[z.code]||Q),!b.isMac&&p){if(z.getModifierState&&(z.getModifierState("OS")||z.getModifierState("Win"))&&(K|
327=8),p.altGr){if((3&K)==3)return;p.altGr=0}Q!==18&&Q!==17||(D=z.location,Q===17&&D===1?p[Q]==1&&(g=z.timeStamp):Q===18&&K===3&&D===2&&z.timeStamp-g<50&&(p.altGr=!0))}if(Q in S.MODIFIER_KEYS&&(Q=-1),K||Q!==13||z.location!==3||(j(z,K,-Q),!z.defaultPrevented)){if(b.isChromeOS&&8&K){if(j(z,K,Q),z.defaultPrevented)return;K&=-9}return K||Q in S.FUNCTION_KEYS||Q in S.PRINTABLE_KEYS?j(z,K,Q):!1}})(E,M,M.keyCode);return L=M.defaultPrevented,B},k),I(w,"keypress",function(M){L&&(M.ctrlKey||M.altKey||M.shiftKey||M.metaKey)&&(C.stopEvent(M),L=null)},k),I(w,"keyup",function(M){p[M.keyCode]=null},k),p||(f(),I(window,"focus",f))},typeof window=="object"&&window.postMessage&&!b.isOldIE&&(m=1,C.nextTick=function(w,E){E=E||window;function k(M){M.data==L&&(C.stopPropagation(M),_(E,"message",k),w())}var L="zero-timeout-message-"+m++;I(E,"message",k),E.postMessage(L,"*")}),C.$idleBlocked=!1,C.onIdle=function(w,E){return setTimeout(function k(){C.$idleBlocked?setTimeout(k,100):w()},E)},C.$idleBlockId=null,C.blockIdle=function(w){C.$idleBlockId&&clearTimeout(C.$idleBlockId),C.$idleBlocked=!0,C.$idleBlockId=setTimeout(function(){C.$idleBlocked=!1},w||100)},C.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),C.nextFrame=C.nextFrame?C.nextFrame.bind(window):function(w){setTimeout(w,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(T,C,N){var x;N.exports={lineMode:!1,pasteCancelled:function(){return!!(x&&x>Date.now()-50)||(x=!1)},cancel:function(){x=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/config","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(T,C,N){var x=T("../lib/event"),S=T("../config").nls,b=T("../lib/useragent"),p=T("../lib/dom"),g=T("../lib/lang"),u=T("../clipboard"),y=b.isChrome<18,m=b.isIE,I=63<b.isChrome,_=T("../lib/keys"),h=_.KEY_MODS,f=b.isIOS,w=f?/\s/:/\n/,E=b.isMobile;function k(L,M){var B=this;this.host=M,this.text=p.createElement("textarea"),this.text.className="ace_text-input",this.text.setAttribute("wrap","off"),this.text.setAttribute("autocomplete","off"),this.text.setAttribute("autocorrect","off"),this.text.setAttribute("autocapitalize","off"),this.text.setAttribute("spellcheck","false"),this.text.style.opacity="0",L.insertBefore(this.text,L.firstChild),this.copied=!1,this.pasted=!1,this.inComposition=!1,this.sendingText=!1,this.tempStyle="",E||(this.text.style.fontSize="1px"),this.commandMode=!1,this.ignoreFocusEvents=!1,this.lastValue="",this.lastSelectionStart=0,this.lastSelectionEnd=0,this.lastRestoreEnd=0,this.rowStart=Number.MAX_SAFE_INTEGER,this.rowEnd=Number.MIN_SAFE_INTEGER,this.numberOfExtraLines=0;try{this.$isFocused=document.activeElement===this.text}catch{}this.cancelComposition=this.cancelComposition.bind(this),this.setAriaOptions({role:"textbox"}),x.addListener(this.text,"blur",function(j){B.ignoreFocusEvents||(M.onBlur(j),B.$isFocused=!1)},M),x.addListener(this.text,"focus",function(j){if(!B.ignoreFocusEvents){if(B.$isFocused=!0,b.isEdge)try{if(!document.hasFocus())return}catch{}M.onFocus(j),b.isEdge?setTimeout(B.resetSelection.bind(B)):B.resetSelection()}},M),this.$focusScroll=!1,M.on("beforeEndOperation",function(){var j=M.curOp,z=j&&j.command&&j.command.name;z!="insertstring"&&(z=z&&(j.docChanged||j.selectionChanged),B.inComposition&&z&&(B.lastValue=B.text.value="",B.onCompositionEnd()),B.resetSelection())}),M.on("changeSelection",this.setAriaLabel.bind(this)),this.resetSelection=f?this.$resetSelectionIOS:this.$resetSelection,this.$isFocused&&M.onFocus(),this.inputHandler=null,this.afterContextMenu=!1,x.addCommandKeyListener(this.text,function(j,z,Q){if(!B.inComposition)return M.onCommandKey(j,z,Q)},M),x.addListener(this.text,"select",this.onSelect.bind(this),M),x.addListener(this.text,"input",this.onInput.bind(this),M),x.addListener(this.text,"cut",this.onCut.bind(this),M),x.addListener(this.text,"copy",this.onCopy.bind(this),M),x.addListener(this.text,"paste",this.onPaste.bind(this),M),"oncut"in this.text&&"oncopy"in this.text&&"onpaste"in this.text||x.addListener(L,"keydown",function(j){if((!b.isMac||j.metaKey)&&j.ctrlKey)switch(j.keyCode){case 67:B.onCopy(j);break;case 86:B.onPaste(j);break;case 88:B.onCut(j)}},M),this.syncComposition=g.delayedCall(this.onCompositionUpdate.bind(this),50).schedule.bind(null,null),x.addListener(this.text,"compositionstart",this.onCompositionStart.bind(this),M),x.addListener(this.text,"compositionupdate",this.onCompositionUpdate.bind(this),M),x.addListener(this.text,"keyup",this.onKeyup.bind(this),M),x.addListener(this.text,"keydown",this.syncComposition.bind(this),M),x.addListener(this.text,"compositionend",this.onCompositionEnd.bind(this),M),this.closeTimeout,x.addListener(this.text,"mouseup",this.$onContextMenu.bind(this),M),x.addListener(this.text,"mousedown",function(j){j.preventDefault(),B.onContextMenuClose()},M),x.addListener(M.renderer.scroller,"contextmenu",this.$onContextMenu.bind(this),M),x.addListener(this.text,"contextmenu",this.$onContextMenu.bind(this),M),f&&this.addIosSelectionHandler(L,M,this.text)}k.prototype.addIosSelectionHandler=function(L,M,B){function j(K){var H,A,W,F;document.activeElement!==B||D||z.inComposition||M.$mouseHandler.isMousePressed||z.copied||(H=B.selectionStart,A=B.selectionEnd,W=null,(F=0)==H?W=_.up:H==1?W=_.home:A>z.lastSelectionEnd&&z.lastValue[A]==` 328`?W=_.end:H<z.lastSelectionStart&&z.lastValue[H-1]==" "?(W=_.left,F=h.option):H<z.lastSelectionStart||H==z.lastSelectionStart&&z.lastSelectionEnd!=z.lastSelectionStart&&H==A?W=_.left:A>z.lastSelectionEnd&&2<z.lastValue.slice(0,A).split(` 329`).length?W=_.down:A>z.lastSelectionEnd&&z.lastValue[A-1]==" "?(W=_.right,F=h.option):(A>z.lastSelectionEnd||A==z.lastSelectionEnd&&z.lastSelectionEnd!=z.lastSelectionStart&&H==A)&&(W=_.right),H!==A&&(F|=h.shift),W&&(!M.onCommandKey({},F,W)&&M.commands&&(W=_.keyCodeToString(W),F=M.commands.findKeyCommand(F,W))&&M.execCommand(F),z.lastSelectionStart=H,z.lastSelectionEnd=A,z.resetSelection("")))}var z=this,Q=null,D=!1;B.addEventListener("keydown",function(K){Q&&clearTimeout(Q),D=!0},!0),B.addEventListener("keyup",function(K){Q=setTimeout(function(){D=!1},100)},!0),document.addEventListener("selectionchange",j),M.on("destroy",function(){document.removeEventListener("selectionchange",j)})},k.prototype.onContextMenuClose=function(){var L=this;clearTimeout(this.closeTimeout),this.closeTimeout=setTimeout(function(){L.tempStyle&&(L.text.style.cssText=L.tempStyle,L.tempStyle=""),L.host.renderer.$isMousePressed=!1,L.host.renderer.$keepTextAreaAtCurs
329or&&L.host.renderer.$moveTextAreaToCursor()},0)},k.prototype.$onContextMenu=function(L){this.host.textInput.onContextMenu(L),this.onContextMenuClose()},k.prototype.onKeyup=function(L){L.keyCode==27&&this.text.value.length<this.text.selectionStart&&(this.inComposition||(this.lastValue=this.text.value),this.lastSelectionStart=this.lastSelectionEnd=-1,this.resetSelection()),this.syncComposition()},k.prototype.cancelComposition=function(){this.ignoreFocusEvents=!0,this.text.blur(),this.text.focus(),this.ignoreFocusEvents=!1},k.prototype.onCompositionStart=function(L){this.inComposition||!this.host.onCompositionStart||this.host.$readOnly||(this.inComposition={},this.commandMode)||(L.data&&(this.inComposition.useTextareaForIME=!1),setTimeout(this.onCompositionUpdate.bind(this),0),this.host._signal("compositionStart"),this.host.on("mousedown",this.cancelComposition),(L=this.host.getSelectionRange()).end.row=L.start.row,L.end.column=L.start.column,this.inComposition.markerRange=L,this.inComposition.selectionStart=this.lastSelectionStart,this.host.onCompositionStart(this.inComposition),this.inComposition.useTextareaForIME?(this.lastValue=this.text.value="",this.lastSelectionStart=0,this.lastSelectionEnd=0):(this.text.msGetInputContext&&(this.inComposition.context=this.text.msGetInputContext()),this.text.getInputContext&&(this.inComposition.context=this.text.getInputContext())))},k.prototype.onCompositionUpdate=function(){var L;if(this.inComposition&&this.host.onCompositionUpdate&&!this.host.$readOnly)return this.commandMode?this.cancelComposition():void(this.inComposition.useTextareaForIME?this.host.onCompositionUpdate(this.text.value):(L=this.text.value,this.sendText(L),this.inComposition.markerRange&&(this.inComposition.context&&(this.inComposition.markerRange.start.column=this.inComposition.selectionStart=this.inComposition.context.compositionStartOffset),this.inComposition.markerRange.end.column=this.inComposition.markerRange.start.column+this.lastSelectionEnd-this.inComposition.selectionStart+this.lastRestoreEnd)))},k.prototype.onCompositionEnd=function(L){this.host.onCompositionEnd&&!this.host.$readOnly&&(this.inComposition=!1,this.host.onCompositionEnd(),this.host.off("mousedown",this.cancelComposition),L)&&this.onInput()},k.prototype.onCut=function(L){this.doCopy(L,!0)},k.prototype.onCopy=function(L){this.doCopy(L,!1)},k.prototype.onPaste=function(L){var M=this.handleClipboardData(L);u.pasteCancelled()||(typeof M=="string"?(M&&this.host.onPaste(M,L),b.isIE&&setTimeout(this.resetSelection),x.preventDefault(L)):(this.text.value="",this.pasted=!0))},k.prototype.doCopy=function(L,M){var B=this,j=this.host.getCopyText();if(!j)return x.preventDefault(L);this.handleClipboardData(L,j)?(f&&(this.resetSelection(j),this.copied=j,setTimeout(function(){B.copied=!1},10)),M?this.host.onCut():this.host.onCopy(),x.preventDefault(L)):(this.copied=!0,this.text.value=j,this.text.select(),setTimeout(function(){B.copied=!1,B.resetSelection(),M?B.host.onCut():B.host.onCopy()}))},k.prototype.handleClipboardData=function(L,M,B){var j=L.clipboardData||window.clipboardData;if(j&&!y){var z=m||B?"Text":"text/plain";try{return M?j.setData(z,M)!==!1:j.getData(z)}catch(Q){if(!B)return this.handleClipboardData(Q,M,!0)}}},k.prototype.onInput=function(M){if(this.inComposition)return this.onCompositionUpdate();if(M&&M.inputType){if(M.inputType=="historyUndo")return this.host.execCommand("undo");if(M.inputType=="historyRedo")return this.host.execCommand("redo")}var M=this.text.value,B=this.sendText(M,!0);(500<M.length||w.test(B)||E&&this.lastSelectionStart<1&&this.lastSelectionStart==this.lastSelectionEnd)&&this.resetSelection()},k.prototype.sendText=function(L,M){if(this.afterContextMenu&&(this.afterContextMenu=!1),this.pasted)return this.resetSelection(),L&&this.host.onPaste(L),this.pasted=!1,"";for(var B=this.text.selectionStart,j=this.text.selectionEnd,z=this.lastSelectionStart,Q=this.lastValue.length-this.lastSelectionEnd,D=L,K=L.length-B,H=L.length-j,A=0;0<z&&this.lastValue[A]==L[A];)A++,z--;for(D=D.slice(A),A=1;0<Q&&this.lastValue.length-A>this.lastSelectionStart-1&&this.lastValue[this.lastValue.length-A]==L[L.length-A];)A++,Q--;K-=A-1,H-=A-1;var W=D.length-A+1;return W<0&&(z=-W,W=0),D=D.slice(0,W),M||D||K||z||Q||H?(W=!(this.sendingText=!0),b.isAndroid&&D==". "&&(D=" ",W=!0),D&&!z&&!Q&&!K&&!H||this.commandMode?this.host.onTextInput(D):this.host.onTextInput(D,{extendLeft:z,extendRight:Q,restoreStart:K,restoreEnd:H}),this.sendingText=!1,this.lastValue=L,this.lastSelectionStart=B,this.lastSelectionEnd=j,this.lastRestoreEnd=H,W?` 330`:D):""},k.prototype.onSelect=function(L){var M,B=this;this.inComposition||(this.copied?this.copied=!1:(M=this.text).selectionStart===0&&M.selectionEnd>=B.lastValue.length&&M.value===B.lastValue&&B.lastValue&&M.selectionEnd!==B.lastSelectionEnd?(this.host.selectAll(),this.resetSelection()):E&&this.text.selectionStart!=this.lastSelectionStart&&this.resetSelection())},k.prototype.$resetSelectionIOS=function(L){var M;!this.$isFocused||this.copied&&!L||this.sendingText||((M=` 331 ab`+(L=L||"")+`cde fg 332`)!=this.text.value&&(this.text.value=this.lastValue=M),M=4+(L.length||(this.host.selection.isEmpty()?0:1)),this.lastSelectionStart==4&&this.lastSelectionEnd==M||this.text.setSelectionRange(4,M),this.lastSelectionStart=4,this.lastSelectionEnd=M)},k.prototype.$resetSelection=function(){var L=this;if(!this.inComposition&&!this.sendingText&&(this.$isFocused||this.afterContextMenu)){this.inComposition=!0;var M=0,B=0,j="",z=function(A,W){for(var F=W,U=1;U<=A-L.rowStart&&U<2*L.numberOfExtraLines+1;U++)F+=L.host.session.getLine(A-U).length+1;return F};if(this.host.session){for(var D=this.host.selection,Q=D.getRange(),D=D.cursor.row,K=(D===this.rowEnd+1?(this.rowStart=this.rowEnd+1,this.rowEnd=this.rowStart+2*this.numberOfExtraLines):D===this.rowStart-1?(this.rowEnd=this.rowStart-1,this.rowStart=this.rowEnd-2*this.numberOfExtraLines):(D<this.rowStart-1||D>this.rowEnd+1)&&(this.rowStart=D>this.numberOfExtraLines?D-this.numberOfExtraLines:0,this.rowEnd=D>this.numberOfExtraLines?D+this.numberOfExtraLines:2*this.numberOfExtraLines),[]),H=this.rowStart;H<=this.rowEnd;H++)K.push(this.host.session.getLine(H));j=K.join(` 333`),M=z(Q.start.row,Q.start.column),B=z(Q.end.row,Q.end.column),Q.start.row<this.rowStart?(z=this.host.session.getLine(this.rowStart-1),M=Q.start.row<this.rowStart-1?0:M,B+=z.length+1,j=z+` 334`+j):Q.end.row>this.rowEnd?(z=this.host.session.getLine(this.rowEnd+1),B=Q.end.row>this.rowEnd+1?z.length:Q.end.column,B+=j.length+1,j=j+` 335`+z):E&&0<D&&(j=` 336`+j,B+=1,M+=1),400<j.length&&(M<400&&B<400?j=j.slice(0,400):(j=` 337`,M==B?M=B=0:(M=0,B=1))),Q=j+` 338 339`,Q!=this.lastValue&&(this.text.value=this.lastValue=Q,this.lastSelectionStart=this.lastSelectionEnd=Q.length)}if(this.afterContextMenu&&(this.lastSelectionStart=this.text.selectionStart,this.lastSelectionEnd=this.text.selectionEnd),this.lastSelectionEnd!=B||this.lastSelectionStart!=M||this.text.selectionEnd!=this.lastSelectionEnd)try{this.text.setSelectionRange(M,B),this.lastSelectionStart=M,this.lastSelectionEnd=B}catch{}this.inComposition=!1}},k.prototype.setHost=function(L){this.host=L},k.prototype.setNumberOfExtraLines=function(L){this.rowStart=Number.MAX_SAFE_INTEGER,this.rowEnd=Number.MIN_SAFE_INTEGER,this.numberOfExtraLines=L<0?0:L},k.prototype.setAriaLabel=function(){var L,M="";this.host.$textInputAriaLabel&&(M+="".concat(this.host.$textInputAriaLabel,", ")),this.host.session&&(L=this.host.session.selection.cursor.row,M+=S("text-input.aria-label","Cursor at row $0",[L+1])),this.text.setAttribute("aria-label",M)},k.prototype.setAriaOptions=function(L){L.activeDescendant?(this.text.setAttribute("aria-haspopup","true"),this.text.setAttribute("aria-autocomplete",L.inline?"both":"list"),this.text.setAttribute("aria-activedescendant",L.activeDescendant)):(this.text.setAttribute("aria-haspopup","false"),this.text.setAttribute("aria-autocomplete","both"),this.text.removeAttribute("aria-activedescendant")),L.role&&this.text.setAttribute("role",L.role),L.setLabel&&(this.text.setAttribute("aria-roledescription",S("text-input.aria-roledescription","editor")),this.setAriaLabel())}
339,k.prototype.focus=function(){var L=this;if(this.setAriaOptions({setLabel:this.host.renderer.enableKeyboardAccessibility}),this.tempStyle||I||this.$focusScroll=="browser")return this.text.focus({preventScroll:!0});var M=this.text.style.top;this.text.style.position="fixed",this.text.style.top="0px";try{var B=this.text.getBoundingClientRect().top!=0}catch{return}var j=[];if(B)for(var z=this.text.parentElement;z&&z.nodeType==1;)j.push(z),z.setAttribute("ace_nocontext","true"),z=!z.parentElement&&z.getRootNode?z.getRootNode().host:z.parentElement;this.text.focus({preventScroll:!0}),B&&j.forEach(function(Q){Q.removeAttribute("ace_nocontext")}),setTimeout(function(){L.text.style.position="",L.text.style.top=="0px"&&(L.text.style.top=M)},0)},k.prototype.blur=function(){this.text.blur()},k.prototype.isFocused=function(){return this.$isFocused},k.prototype.setInputHandler=function(L){this.inputHandler=L},k.prototype.getInputHandler=function(){return this.inputHandler},k.prototype.getElement=function(){return this.text},k.prototype.setCommandMode=function(L){this.commandMode=L,this.text.readOnly=!1},k.prototype.setReadOnly=function(L){this.commandMode||(this.text.readOnly=L)},k.prototype.setCopyWithEmptySelection=function(L){},k.prototype.onContextMenu=function(L){this.afterContextMenu=!0,this.resetSelection(),this.host._emit("nativecontextmenu",{target:this.host,domEvent:L}),this.moveToMouse(L,!0)},k.prototype.moveToMouse=function(L,z){function B(A){p.translate(j.text,A.clientX-K-2,Math.min(A.clientY-D-2,H))}var j=this,z=(this.tempStyle||(this.tempStyle=this.text.style.cssText),this.text.style.cssText=(z?"z-index:100000;":"")+(b.isIE?"opacity:0.1;":"")+"text-indent: -"+(this.lastSelectionStart+this.lastSelectionEnd)*this.host.renderer.characterWidth*.5+"px;",this.host.container.getBoundingClientRect()),Q=p.computedStyle(this.host.container),D=z.top+(parseInt(Q.borderTopWidth)||0),K=z.left+(parseInt(Q.borderLeftWidth)||0),H=z.bottom-D-this.text.clientHeight-2;B(L),L.type=="mousedown"&&(this.host.renderer.$isMousePressed=!0,clearTimeout(this.closeTimeout),b.isWin)&&x.capture(this.host.container,B,this.onContextMenuClose.bind(this))},k.prototype.destroy=function(){this.text.parentElement&&this.text.parentElement.removeChild(this.text)},C.TextInput=k,C.$setUserAgentForTests=function(L,M){E=L,f=M}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(S,C,N){var x=S("../lib/useragent"),S=(b.prototype.onMouseDown=function(g){var u=g.inSelection(),y=g.getDocumentPosition(),m=(this.mousedownEvent=g,this.editor),I=g.getButton();if(I!==0)!m.getSelectionRange().isEmpty()&&I!=1||m.selection.moveToPosition(y),I==2&&(m.textInput.onContextMenu(g.domEvent),x.isMozilla||g.preventDefault());else{if(this.mousedownEvent.time=Date.now(),!u||m.isFocused()||(m.focus(),!this.$focusTimeout)||this.$clickSelection||m.inMultiSelectMode)return this.captureMouse(g),this.startSelect(y,1<g.domEvent._clicks),g.preventDefault();this.setState("focusWait"),this.captureMouse(g)}},b.prototype.startSelect=function(g,u){g=g||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var y=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?y.selection.selectToPosition(g):u||y.selection.moveToPosition(g),u||this.select(),y.setStyle("ace_selecting"),this.setState("select"))},b.prototype.select=function(){var g,u=this.editor,y=u.renderer.screenToTextCoordinates(this.x,this.y);this.$clickSelection&&(g=(g=this.$clickSelection.comparePoint(y))==-1?this.$clickSelection.end:g==1?this.$clickSelection.start:(y=(g=p(this.$clickSelection,y,u.session)).cursor,g.anchor),u.selection.setSelectionAnchor(g.row,g.column)),u.selection.selectToPosition(y),u.renderer.scrollCursorIntoView()},b.prototype.extendSelectionBy=function(h){var u,y,m,I=this.editor,_=I.renderer.screenToTextCoordinates(this.x,this.y),h=I.selection[h](_.row,_.column);this.$clickSelection&&(y=this.$clickSelection.comparePoint(h.start),u=this.$clickSelection.comparePoint(h.end),y==-1&&u<=0?(m=this.$clickSelection.end,h.end.row==_.row&&h.end.column==_.column||(_=h.start)):u==1&&0<=y?(m=this.$clickSelection.start,h.start.row==_.row&&h.start.column==_.column||(_=h.end)):m=y==-1&&u==1?(_=h.end,h.start):(_=(y=p(this.$clickSelection,_,I.session)).cursor,y.anchor),I.selection.setSelectionAnchor(m.row,m.column)),I.selection.selectToPosition(_),I.renderer.scrollCursorIntoView()},b.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")}
339,b.prototype.focusWait=function(){m=this.mousedownEvent.x,g=this.mousedownEvent.y,y=this.x,u=this.y;var g,u,y=Math.sqrt(Math.pow(y-m,2)+Math.pow(u-g,2)),m=Date.now();(0<y||m-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},b.prototype.onDoubleClick=function(u){var u=u.getDocumentPosition(),y=this.editor,m=y.session.getBracketRange(u);m?(m.isEmpty()&&(m.start.column--,m.end.column++),this.setState("select")):(m=y.selection.getWordRange(u.row,u.column),this.setState("selectByWords")),this.$clickSelection=m,this.select()},b.prototype.onTripleClick=function(u){var u=u.getDocumentPosition(),y=this.editor,m=(this.setState("selectByLines"),y.getSelectionRange());m.isMultiLine()&&m.contains(u.row,u.column)?(this.$clickSelection=y.selection.getLineRange(m.start.row),this.$clickSelection.end=y.selection.getLineRange(m.end.row).end):this.$clickSelection=y.selection.getLineRange(u.row),this.select()},b.prototype.onQuadClick=function(g){var u=this.editor;u.selectAll(),this.$clickSelection=u.getSelectionRange(),this.setState("selectAll")},b.prototype.onMouseWheel=function(g){var u,y,m,I,_,h,f;if(!g.getAccelKey())return g.getShiftKey()&&g.wheelY&&!g.wheelX&&(g.wheelX=g.wheelY,g.wheelY=0),u=this.editor,this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0}),y=this.$lastScroll,I=(f=(m=g.domEvent.timeStamp)-y.t)?g.wheelX/f:y.vx,_=f?g.wheelY/f:y.vy,f<550&&(I=(I+y.vx)/2,_=(_+y.vy)/2),f=!1,1<=(h=Math.abs(I/_))&&u.renderer.isScrollableBy(g.wheelX*g.speed,0)&&(f=!0),(f=h<=1&&u.renderer.isScrollableBy(0,g.wheelY*g.speed)?!0:f)?y.allowed=m:m-y.allowed<550&&(Math.abs(I)<=1.5*Math.abs(y.vx)&&Math.abs(_)<=1.5*Math.abs(y.vy)?(f=!0,y.allowed=m):y.allowed=0),y.t=m,y.vx=I,y.vy=_,f?(u.renderer.scrollBy(g.wheelX*g.speed,g.wheelY*g.speed),g.stop()):void 0},b);function b(g){g.$clickSelection=null;var u=g.editor;u.setDefaultHandler("mousedown",this.onMouseDown.bind(g)),u.setDefaultHandler("dblclick",this.onDoubleClick.bind(g)),u.setDefaultHandler("tripleclick",this.onTripleClick.bind(g)),u.setDefaultHandler("quadclick",this.onQuadClick.bind(g)),u.setDefaultHandler("mousewheel",this.onMouseWheel.bind(g)),["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"].forEach(function(y){g[y]=this[y]},this),g.selectByLines=this.extendSelectionBy.bind(g,"getLineRange"),g.selectByWords=this.extendSelectionBy.bind(g,"getWordRange")}function p(g,u,y){return(g.start.row==g.end.row?2*u.column-g.start.column-g.end.column:g.start.row!=g.end.row-1||g.start.column||g.end.column?2*u.row-g.start.row-g.end.row:3*u.column-2*y.getLine(g.start.row).length)<0?{cursor:g.start,anchor:g.end}:{cursor:g.end,anchor:g.start}}S.prototype.selectEnd=S.prototype.selectByLinesEnd,S.prototype.selectAllEnd=S.prototype.selectByLinesEnd,S.prototype.selectByWordsEnd=S.prototype.selectByLinesEnd,C.DefaultHandlers=S}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(T,C,N){var x=T("../lib/event"),S=T("../lib/useragent");function b(p,g){this.speed,this.wheelX,this.wheelY,this.domEvent=p,this.editor=g,this.x=this.clientX=p.clientX,this.y=this.clientY=p.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}b.prototype.stopPropagation=function(){x.stopPropagation(this.domEvent),this.propagationStopped=!0},b.prototype.preventDefault=function(){x.preventDefault(this.domEvent),this.defaultPrevented=!0},b.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},b.prototype.getDocumentPosition=function(){return this.$pos||(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY)),this.$pos},b.prototype.getGutterRow=function(){var p=this.getDocumentPosition().row;return this.editor.session.documentToScreenRow(p,0)-this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0)},b.prototype.inSelection=function(){var p,g;return this.$inSelection===null&&((p=this.editor.getSelectionRange()).isEmpty()?this.$inSelection=!1:(g=this.getDocumentPosition(),this.$inSelection=p.contains(g.row,g.column))),this.$inSelection},b.prototype.getButton=function(){return x.getButton(this.domEvent)},b.prototype.getShiftKey=function(){return this.domEvent.shiftKey},b.prototype.getAccelKey=function(){return S.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},C.MouseEvent=b}),ace.define("ace/lib/scroll",["require","exports","module"],function(T,C,N){C.preventParentScroll=function(x){x.stopPropagation();var S=x.currentTarget;S.scrollHeight>S.clientHeight||x.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(y,C,N){var x,f=this&&this.__extends||(x=function(E,k){return(x=Object.
339setPrototypeOf||({__proto__:[]}instanceof Array?function(L,M){L.__proto__=M}:function(L,M){for(var B in M)Object.prototype.hasOwnProperty.call(M,B)&&(L[B]=M[B])}))(E,k)},function(E,k){if(typeof k!="function"&&k!==null)throw new TypeError("Class extends value "+String(k)+" is not a constructor or null");function L(){this.constructor=E}x(E,k),E.prototype=k===null?Object.create(k):(L.prototype=k.prototype,new L)}),S=this&&this.__values||function(E){var k=typeof Symbol=="function"&&Symbol.iterator,L=k&&E[k],M=0;if(L)return L.call(E);if(E&&typeof E.length=="number")return{next:function(){return{value:(E=E&&M>=E.length?void 0:E)&&E[M++],done:!E}}};throw new TypeError(k?"Object is not iterable.":"Symbol.iterator is not defined.")},b=y("./lib/dom"),p=(y("./lib/event"),y("./range").Range),g=y("./lib/scroll").preventParentScroll,u="ace_tooltip",y=(m.prototype.$init=function(){return this.$element=b.createElement("div"),this.$element.className=u,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},m.prototype.getElement=function(){return this.$element||this.$init()},m.prototype.setText=function(E){this.getElement().textContent=E},m.prototype.setHtml=function(E){this.getElement().innerHTML=E},m.prototype.setPosition=function(E,k){this.getElement().style.left=E+"px",this.getElement().style.top=k+"px"},m.prototype.setClassName=function(E){b.addCssClass(this.getElement(),E)},m.prototype.setTheme=function(E){this.theme&&(this.theme.isDark&&b.removeCssClass(this.getElement(),"ace_dark"),this.theme.cssClass)&&b.removeCssClass(this.getElement(),this.theme.cssClass),E.isDark&&b.addCssClass(this.getElement(),"ace_dark"),E.cssClass&&b.addCssClass(this.getElement(),E.cssClass),this.theme={isDark:E.isDark,cssClass:E.cssClass}},m.prototype.show=function(E,k,L){E!=null&&this.setText(E),k!=null&&L!=null&&this.setPosition(k,L),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},m.prototype.hide=function(E){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=u,this.isOpen=!1)},m.prototype.getHeight=function(){return this.getElement().offsetHeight},m.prototype.getWidth=function(){return this.getElement().offsetWidth},m.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},m);function m(E){this.isOpen=!1,this.$element=null,this.$parentNode=E}function I(){this.popups=[]}I.prototype.addPopup=function(E){this.popups.push(E),this.updatePopups()},I.prototype.removePopup=function(E){E=this.popups.indexOf(E),E!==-1&&(this.popups.splice(E,1),this.updatePopups())},I.prototype.updatePopups=function(){this.popups.sort(function(W,F){return F.priority-W.priority});var E,k,L,M,B=[];try{for(var j=S(this.popups),z=j.next();!z.done;z=j.next()){var Q=z.value,D=!0;try{L=void 0;for(var K=S(B),H=K.next();!H.done;H=K.next()){var A=H.value;if(this.doPopupsOverlap(A,Q)){D=!1;break}}}catch(W){L={error:W}}finally{try{H&&!H.done&&(M=K.return)&&M.call(K)}finally{if(L)throw L.error}}D?B.push(Q):Q.hide()}}catch(W){E={error:W}}finally{try{z&&!z.done&&(k=j.return)&&k.call(j)}finally{if(E)throw E.error}}},I.prototype.doPopupsOverlap=function(E,k){return E=E.getElement().getBoundingClientRect(),k=k.getElement().getBoundingClientRect(),E.left<k.right&&E.right>k.left&&E.top<k.bottom&&E.bottom>k.top};var _,h=new I,f=(C.popupManager=h,f(w,_=C.Tooltip=y),w.prototype.addToEditor=function(E){E.on("mousemove",this.onMouseMove),E.on("mousedown",this.hide),E=E.renderer.getMouseEventTarget(),E&&typeof E.removeEventListener=="function"&&E.addEventListener("mouseout",this.onMouseOut,!0)},w.prototype.removeFromEditor=function(E){E.off("mousemove",this.onMouseMove),E.off("mousedown",this.hide),E=E.renderer.getMouseEventTarget(),E&&typeof E.removeEventListener=="function"&&E.removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},w.prototype.onMouseMove=function(E,M){this.lastEvent=E,this.lastT=Date.now();var L,M=M.$mouseHandler.isMousePressed;this.isOpen&&(L=this.lastEvent&&this.lastEvent.getDocumentPosition(),this.range&&this.range.contains(L.row,L.column)&&!M&&!this.isOutsideOfText(this.lastEvent)||this.hide()),this.timeout||M||(this.lastEvent=E,this.timeout=setTimeout(this.waitForHover,this.idleTime))},w.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var E=Date.now()-this.lastT;10<this.idleTime-E?this.timeout=setTimeout(this.waitForHover,this.idleTime-E):(this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor))},w.prototype.isOutsideOfText=function(E){var k=E.editor,L=E.getDocumentPosition(),M=k.session.getLine(L.row);return L.column==M.length&&(M=k.renderer.pixelToScreenCoordinates(E.clientX,E.clientY),E=k.session.documentToScreenPosition(L.row,L.column),E.column!=M.column||E.row!=M.row)},w.prototype.setDataProvider=function(E){this.$gatherData=E},w.prototype.showForRange=function(E,k,L,M){var B;M&&M!=this.lastEvent||this.isOpen&&document.activeElement==this.getElement()||(M=E.renderer,this.isOpen||(h.addPopup(this),this.$registerCloseEvents(),this.setTheme(M.theme)),this.isOpen=!0,this.range=p.fromPoints(k.start,k.end),B=M.textToScreenCoordinates(k.start.row,k.start.column),M=M.scroller.getBoundingClientRect(),B.pageX<M.left&&(B.pageX=M.left),(M=this.getElement()).innerHTML="",M.appendChild(L),M.style.maxHeight="",M.style.display="block",this.$setPosition(E,B,!0,k),b.$fixPositionBug(M))},w.prototype.$setPosition=function(H,D,B,j){B&&this.addMarker(j,H.session);var B=H.renderer,j=this.getElement(),H=j.offsetHeight,z=j.offsetWidth,Q=D.pageY,D=D.pageX,K=window.innerHeight-Q-B.lineHeight,H=this.$shouldPlaceAbove(H,Q,K-10);j.style.maxHeight=(H?Q:K)-10+"px",j.style.top=H?"":Q+B.lineHeight+"px",j.style.bottom=H?window.innerHeight-Q+"px":"",j.style.left=Math.min(D,window.innerWidth-z-10)+"px"},w.prototype.$shouldPlaceAbove=function(E,k,L){return!(k-E<0&&k<L)},w.prototype.addMarker=function(E,k){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=k,this.marker=k&&k.addMarker(E,"ace_highlight-marker","text")},w.prototype.hide=function(E){E&&this.$fromKeyboard&&E.type=="keydown"&&E.code=="Escape"||!E&&document.activeElement==this.getElement()||E&&E.target&&(E.type!="keydown"||E.ctrlKey||E.metaKey)&&this.$element.contains(E.target)||(this.lastEvent=null,this.timeout&&clearTimeout(this.timeout),this.timeout=null,this.addMarker(null),this.isOpen&&(this.$fromKeyboard=!1,this.$removeCloseEvents(),this.getElement().style.display="none",this.isOpen=!1,h.removePopup(this)))},w.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("wheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},w.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("wheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},w.prototype.onMouseOut=function(E){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,!this.isOpen||!E.relatedTarget||this.getElement().contains(E.relatedTarget)||E&&E.currentTarget.contains(E.relatedTarget)||E.relatedTarget.classList.contains("ace_content")||this.hide()},w);function w(k){k===void 0&&(k=document.body);var k=_.call(this,k)||this,L=(k.timeout=void 0,k.lastT=0,k.idleTime=350,k.lastEvent=void 0,k.onMouseOut=k.onMouseOut.bind(k),k.onMouseMove=k.onMouseMove.bind(k),k.waitForHover=k.waitForHover.bind(k),k.hide=k.hide.bind(k),k.getElement());return L.style.whiteSpace="pre-wrap",L.style.pointerEvents="auto",L.addEventListener("mouseout",k.onMouseOut),L.tabIndex=-1,L.addEventListener("blur",(function(){L.contains(document.activeElement)||this.hide()}).bind(k)),L.addEventListener("wheel",g),k}C.HoverTooltip=f}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/mouse/mouse_event","ace/tooltip","ace/config","ace/range"],function(T,C,N){var x,S=this&&this.__extends||(x=function(f,w){return(x=Object.
339setPrototypeOf||({__proto__:[]}instanceof Array?function(E,k){E.__proto__=k}:function(E,k){for(var L in k)Object.prototype.hasOwnProperty.call(k,L)&&(E[L]=k[L])}))(f,w)},function(f,w){if(typeof w!="function"&&w!==null)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");function E(){this.constructor=f}x(f,w),f.prototype=w===null?Object.create(w):(E.prototype=w.prototype,new E)}),b=this&&this.__values||function(f){var w=typeof Symbol=="function"&&Symbol.iterator,E=w&&f[w],k=0;if(E)return E.call(f);if(f&&typeof f.length=="number")return{next:function(){return{value:(f=f&&k>=f.length?void 0:f)&&f[k++],done:!f}}};throw new TypeError(w?"Object is not iterable.":"Symbol.iterator is not defined.")},p=T("../lib/dom"),g=T("./mouse_event").MouseEvent,u=T("../tooltip").HoverTooltip,y=T("../config").nls,m=T("../range").Range;C.GutterHandler=function(f){var w=f.editor,E=w.renderer.$gutterLayer;f.$tooltip=new _(w),f.$tooltip.addToEditor(w),f.$tooltip.setDataProvider(function(k,L){k=k.getDocumentPosition().row,f.$tooltip.showTooltip(k)}),f.editor.setDefaultHandler("guttermousedown",function(k){if(w.isFocused()&&k.getButton()==0){var L=E.getRegion(k);if(L!="foldWidgets"){var L=k.getDocumentPosition().row,M=w.session.selection;if(k.getShiftKey())M.selectTo(L,0);else{if(k.domEvent.detail==2)return w.selectAll(),k.preventDefault();f.$clickSelection=w.selection.getLineRange(L)}return f.setState("selectByLines"),f.captureMouse(k),k.preventDefault()}}})},S(h,I=u),h.prototype.onDomMouseMove=function(f){f=new g(f,this.editor),this.onMouseMove(f,this.editor)},h.prototype.onDomMouseOut=function(f){f=new g(f,this.editor),this.onMouseOut(f)},h.prototype.addToEditor=function(f){var w=f.renderer.$gutter;w.addEventListener("mousemove",this.onDomMouseMove),w.addEventListener("mouseout",this.onDomMouseOut),I.prototype.addToEditor.call(this,f)},h.prototype.removeFromEditor=function(f){var w=f.renderer.$gutter;w.removeEventListener("mousemove",this.onDomMouseMove),w.removeEventListener("mouseout",this.onDomMouseOut),I.prototype.removeFromEditor.call(this,f)},h.prototype.destroy=function(){this.editor&&this.removeFromEditor(this.editor),I.prototype.destroy.call(this)},Object.defineProperty(h,"annotationLabels",{get:function(){return{error:{singular:y("gutter-tooltip.aria-label.error.singular","error"),plural:y("gutter-tooltip.aria-label.error.plural","errors")},security:{singular:y("gutter-tooltip.aria-label.security.singular","security finding"),plural:y("gutter-tooltip.aria-label.security.plural","security findings")},warning:{singular:y("gutter-tooltip.aria-label.warning.singular","warning"),plural:y("gutter-tooltip.aria-label.warning.plural","warnings")},info:{singular:y("gutter-tooltip.aria-label.info.singular","information message"),plural:y("gutter-tooltip.aria-label.info.plural","information messages")},hint:{singular:y("gutter-tooltip.aria-label.hint.singular","suggestion"),plural:y("gutter-tooltip.aria-label.hint.plural","suggestions")}}},enumerable:!1,configurable:!0}),h.prototype.showTooltip=function(f){var w,E=this.editor.renderer.$gutterLayer,U=E.$annotations[f],k=U?{displayText:Array.from(U.displayText),type:Array.from(U.type)}:{displayText:[],type:[]},L=E.session.getFoldLine(f);if(L&&E.$showFoldedAnnotations){for(var M,B={error:[],security:[],warning:[],info:[],hint:[]},j={error:1,security:2,warning:3,info:4,hint:5},z=f+1;z<=L.end.row;z++)if(E.$annotations[z])for(var Q=0;Q<E.$annotations[z].text.length;Q++){var D=E.$annotations[z].type[Q];B[D].push(E.$annotations[z].text[Q]),(!M||j[D]<j[M])&&(M=D)}["error","security","warning"].includes(M)&&(U="".concat(h.annotationsToSummaryString(B)," in folded code."),k.displayText.push(U),k.type.push(M+"_fold"))}if(k.displayText.length===0)return this.hide();for(var K={error:[],security:[],warning:[],info:[],hint:[]},H=E.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",z=0;z<k.displayText.length;z++){var A=p.createElement("span"),W=p.createElement("span");(w=W.classList).add.apply(w,["ace_".concat(k.type[z]),H]),W.setAttribute("aria-label","".concat(h.annotationLabels[k.type[z].replace("_fold","")].singular)),W.setAttribute("role","img"),W.appendChild(p.createTextNode(" ")),A.appendChild(W),A.appendChild(p.createTextNode(k.displayText[z])),A.a
339ppendChild(p.createElement("br")),K[k.type[z].replace("_fold","")].push(A)}var F=p.createElement("span"),U=(K.error.forEach(function(Y){return F.appendChild(Y)}),K.security.forEach(function(Y){return F.appendChild(Y)}),K.warning.forEach(function(Y){return F.appendChild(Y)}),K.info.forEach(function(Y){return F.appendChild(Y)}),K.hint.forEach(function(Y){return F.appendChild(Y)}),F.setAttribute("aria-live","polite"),this.$findLinkedAnnotationNode(f)),U=(U&&U.setAttribute("aria-describedby",this.id),m.fromPoints({row:f,column:0},{row:f,column:0}));this.showForRange(this.editor,U,F),this.visibleTooltipRow=f,this.editor._signal("showGutterTooltip",this)},h.prototype.$setPosition=function(f,w,E,k){var L=this.$findCellByRow(k.start.row);if(L&&(L=L&&L.element,L=L&&L.querySelector(".ace_gutter_annotation"),L)){var L=L.getBoundingClientRect();if(L)return L={pageX:L.right,pageY:L.top},I.prototype.$setPosition.call(this,f,L,!1,k)}},h.prototype.$shouldPlaceAbove=function(f,w,E){return E<f},h.prototype.$findLinkedAnnotationNode=function(f){if(f=this.$findCellByRow(f),f&&(f=f.element,2<f.childNodes.length))return f.childNodes[2]},h.prototype.$findCellByRow=function(f){return this.editor.renderer.$gutterLayer.$lines.cells.find(function(w){return w.row===f})},h.prototype.hide=function(f){var w;this.isOpen&&(this.$element.removeAttribute("aria-live"),this.visibleTooltipRow!=null&&(w=this.$findLinkedAnnotationNode(this.visibleTooltipRow))&&w.removeAttribute("aria-describedby"),this.visibleTooltipRow=void 0,this.editor._signal("hideGutterTooltip",this),I.prototype.hide.call(this,f))},h.annotationsToSummaryString=function(f){var w,E,k=[];try{for(var L=b(["error","security","warning","info","hint"]),M=L.next();!M.done;M=L.next()){var B,j=M.value;f[j].length&&(B=f[j].length===1?h.annotationLabels[j].singular:h.annotationLabels[j].plural,k.push("".concat(f[j].length," ").concat(B)))}}catch(z){w={error:z}}finally{try{M&&!M.done&&(E=L.return)&&E.call(L)}finally{if(w)throw w.error}}return k.join(", ")},h.prototype.isOutsideOfText=function(f){var w=f.editor.renderer.$gutter.getBoundingClientRect();return!(f.clientX>=w.left&&f.clientX<=w.right&&f.clientY>=w.top&&f.clientY<=w.bottom)};var I,_=h;function h(E){var w=I.call(this,E.container)||this,E=(w.id="gt"+ ++h.$uid,w.editor=E,w.getElement());return E.setAttribute("role","tooltip"),E.setAttribute("id",w.id),E.style.pointerEvents="auto",w.idleTime=50,w.onDomMouseMove=w.onDomMouseMove.bind(w),w.onDomMouseOut=w.onDomMouseOut.bind(w),w.setClassName("ace_gutter-tooltip"),w}_.$uid=0,C.GutterTooltip=_}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(T,C,N){var x=T("../lib/dom"),S=T("../lib/event"),b=T("../lib/useragent");function p(u){var y,m,I,_,h,f,w,E,k,L,M,B=u.editor,j=x.createElement("div"),z=(j.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",j.textContent="Â ",["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"].forEach(function(Y){u[Y]=this[Y]},this),B.on("mousedown",this.onMouseDown.bind(u)),B.container),Q=0;function D(){var Y,ee,X,q,ne,se,he,ie,oe=f;f=B.renderer.screenToTextCoordinates(m,I),X=f,ee=oe,q=Date.now(),Y=!ee||X.row!=ee.row,ee=!ee||X.column!=ee.column,!L||Y||ee?(B.moveCursorToPosition(X),L=q,M={x:m,y:I}):5<g(M.x,M.y,m,I)?L=null:200<=q-L&&(B.renderer.scrollCursorIntoView(),L=null),Y=f,ee=oe,X=Date.now(),q=B.renderer.layerConfig.lineHeight,oe=B.renderer.layerConfig.characterWidth,ne=B.renderer.scroller.getBoundingClientRect(),ne={x:{left:m-ne.left,right:ne.right-m},y:{top:I-ne.top,bottom:ne.bottom-I}},se=Math.min(ne.x.left,ne.x.right),he=Math.min(ne.y.top,ne.y.bottom),ie={row:Y.row,column:Y.column},se/oe<=2&&(ie.column+=ne.x.left<ne.x.right?-3:2),he/q<=1&&(ie.row+=ne.y.top<ne.y.bottom?-1:1),se=!ee||Y.row!=ee.row,Y.row!=ie.row||Y.column!=ie.column&&!se?k?200<=X-k&&B.renderer.scrollCursorIntoView(ie):k=X:k=null}function K(){h=B.selection.toOrientedRange(),y=B.session.addMarker(h,"ace_selection",B.getSelectionStyle()),B.clearSelection(),B.isFocused()&&B.renderer.$cursorLayer.setBlinking(!1),clearInterval(_),D(),_=setInterval(D,20),Q=0,S.addListener(document,"mousemove",W)}function H(){clearInterval(_),B.session.removeMarker(y),y=null,B.selection.fromOrientedRange(h),B.isFocused()&&!E&&B.$resetCursorStyle(),Q=0,L=k=f=h=null,S.removeListener(document,"mousemove",W)}this.onDragStart=function(Y){var ee;if(this.cancelDrag||!z.draggable)return ee=this,setTimeout(function(){ee.startSelect(),ee.captureMouse(Y)},0),Y.preventDefault();h=B.getSelectionRange();var X=Y.dataTransfer;X.effectAllowed=B.getReadOnly()?"copy":"copyMove",B.container.appendChild(j),X.setDragImage&&X.setDragImage(j,0,0),setTimeout(function(){B.container.removeChild(j)}),X.clearData(),X.setData("Text",B.session.getTextRange()),E=!0,this.setState("drag")},this.onDragEnd=function(Y){z.draggable=!1,E=!1,this.setState(null),B.getReadOnly()||(Y=Y.dataTransfer.dropEffect,w||Y!="move"||B.session.remove(B.getSelectionRange()),B.$resetCursorStyle()),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(Y){if(!B.getReadOnly()&&F(Y.dataTransfer))return m=Y.clientX,I=Y.clientY,y||K(),Q++,Y.dataTransfer.dropEffect=w=U(Y),S.preventDefault(Y)},this.onDragOver=function(Y){if(!B.getReadOnly()&&F(Y.dataTransfer))return m=Y.clientX,I=Y.clientY,y||
339(K(),Q++),A!==null&&(A=null),Y.dataTransfer.dropEffect=w=U(Y),S.preventDefault(Y)},this.onDragLeave=function(Y){if(--Q<=0&&y)return H(),w=null,S.preventDefault(Y)},this.onDrop=function(Y){if(f){var ee=Y.dataTransfer;if(E)switch(w){case"move":h=h.contains(f.row,f.column)?{start:f,end:f}:B.moveText(h,f);break;case"copy":h=B.moveText(h,f,!0)}else ee=ee.getData("Text"),h={start:f,end:B.session.insert(f,ee)},B.focus(),w=null;return H(),S.preventDefault(Y)}},S.addListener(z,"dragstart",this.onDragStart.bind(u),B),S.addListener(z,"dragend",this.onDragEnd.bind(u),B),S.addListener(z,"dragenter",this.onDragEnter.bind(u),B),S.addListener(z,"dragover",this.onDragOver.bind(u),B),S.addListener(z,"dragleave",this.onDragLeave.bind(u),B),S.addListener(z,"drop",this.onDrop.bind(u),B);var A=null;function W(){A==null&&(A=setTimeout(function(){A!=null&&y&&H()},20))}function F(Y){return Y=Y.types,!Y||Array.prototype.some.call(Y,function(ee){return ee=="text/plain"||ee=="Text"})}function U(Y){var ee=["copy","copymove","all","uninitialized"],X=b.isMac?Y.altKey:Y.ctrlKey,q="uninitialized";try{q=Y.dataTransfer.effectAllowed.toLowerCase()}catch{}var ne="none";return X&&0<=ee.indexOf(q)?ne="copy":0<=["move","copymove","linkmove","all","uninitialized"].indexOf(q)?ne="move":0<=ee.indexOf(q)&&(ne="copy"),ne}}function g(u,y,m,I){return Math.sqrt(Math.pow(m-u,2)+Math.pow(I-y,2))}(function(){this.dragWait=function(){Date.now()-this.mousedownEvent.time>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){this.editor.container.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(u){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var u=this.editor,y=(u.container.draggable=!0,u.renderer.$cursorLayer.setBlinking(!1),u.setStyle("ace_dragging"),b.isWin?"default":"move");u.renderer.setCursorStyle(y),this.setState("dragReady")},this.onMouseDrag=function(u){var y=this.editor.container;b.isIE&&this.state=="dragReady"&&3<g(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)&&y.dragDrop(),this.state==="dragWait"&&0<g(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)&&(y.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))},this.onMouseDown=function(u){var y,m,I;this.$dragEnabled&&(this.mousedownEvent=u,y=this.editor,m=u.inSelection(),I=u.getButton(),(u.domEvent.detail||1)!==1||I!==0||!m||u.editor.inMultiSelectMode&&(u.getAccelKey()||u.getShiftKey())||(this.mousedownEvent.time=Date.now(),"unselectable"in(I=u.domEvent.target||u.domEvent.srcElement)&&(I.unselectable="on"),y.getDragDelay()?(b.isWebKit&&(this.cancelDrag=!0,y.container.draggable=!0),this.setState("dragWait")):this.startDrag(),this.captureMouse(u,this.onMouseDrag.bind(this)),u.defaultPrevented=!0))}}).call(p.prototype),C.DragdropHandler=p}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(T,C,N){var x=T("./mouse_event").MouseEvent,S=T("../lib/event"),b=T("../lib/dom");C.addTouchListeners=function(p,g){var u,y,m,I,_,h,f,w,E,k="scroll",L=0,M=0,B=0,j=0;function z(){function H(U){var Y,ee=U.target.getAttribute("action");ee!="more"&&W?(ee=="paste"?A.readText().then(function(X){g.execCommand(ee,X)}):ee&&(ee!="cut"&&ee!="copy"||(A?A.writeText(g.getCopyText()):document.execCommand("copy")),g.execCommand(ee)),E.firstChild.style.display="none",W=!1,ee!="openCommandPalette"&&g.focus()):(W=!W,U=g.getCopyText(),Y=g.session.getUndoManager().hasUndo(),E.replaceChild(b.buildDom(W?["span",!U&&F("selectall")&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],U&&F("copy")&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],U&&F("cut")&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],A&&F("paste")&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],Y&&F("undo")&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],F("find")&&["span",{class:"ace_mobile-button",action:"find"},"Find"],F("openCommandPalette")&&["span",{class:"ace_mobile-button",action:"openCommandPalette"},"Palette"]]:["span"]),E.firstChild))}var A=window.navigator&&window.navigator.clipboard,W=!1,F=function(U){return g.commands.canExecute(U,g)};E=b.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(U){k="menu",U.stopPropagation(),U.preventDefault(),g.textInput.focus()},ontouchend:function(U){U.stopPropagation(),U.preventDefault(),H(U)},onclick:H},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],g.container)}function Q(){var H,A,W,F;g.getOption("enableMobileMenu")?(E||z(),H=g.selection.cursor,H=g.renderer.textToScreenCoordinates(H.row,H.column),A=g.renderer.textToScreenCoordinates(0,0).pageX,W=g.renderer.scrollLeft,F=g.container.getBoundingClientRect(),E.style.top=H.pageY-F.top-3+"px",H.pageX-F.left<F.width-70?(E.style.left="",E.style.right="10px"):(E.style.right="",E.style.left=A+W-F.left+"px"),E.style.display="",E.firstChild.style.display="none",g.on("input",D)):E&&D()}
339function D(H){E&&(E.style.display="none"),g.off("input",D)}function K(){_=null,clearTimeout(_);var H=g.selection.getRange(),A=H.contains(f.row,f.column);!H.isEmpty()&&A||(g.selection.moveToPosition(f),g.selection.selectWord()),k="wait",Q()}S.addListener(p,"contextmenu",function(H){w&&g.textInput.getElement().focus()},g),S.addListener(p,"touchstart",function(H){var A=H.touches;if(_||1<A.length)clearTimeout(_),_=null,m=-1,k="zoom";else{w=g.$mouseHandler.isMousePressed=!0;var W=g.renderer.layerConfig.lineHeight,F=g.renderer.layerConfig.lineHeight,U=H.timeStamp,Y=(I=U,A[0]),ee=Y.clientX,Y=Y.clientY,ee=(Math.abs(u-ee)+Math.abs(y-Y)>W&&(m=-1),u=H.clientX=ee,y=H.clientY=Y,B=j=0,new x(H,g));if(f=ee.getDocumentPosition(),U-m<500&&A.length==1&&!L)M++,H.preventDefault(),H.button=0,_=null,clearTimeout(_),g.selection.moveToPosition(f),(Y=2<=M?g.selection.getLineRange(f.row):g.session.getBracketRange(f))&&!Y.isEmpty()?g.selection.setRange(Y):g.selection.selectWord(),k="wait";else{M=0;var ee=g.selection.cursor,A=g.selection.isEmpty()?ee:g.selection.anchor,Y=g.renderer.$cursorLayer.getPixelPosition(ee,!0),ee=g.renderer.$cursorLayer.getPixelPosition(A,!0),A=g.renderer.scroller.getBoundingClientRect(),X=g.renderer.layerConfig.offset,q=g.renderer.scrollLeft,ne=function(oe,de){return(oe/=F)*oe+(de=de/W-.75)*de};if(H.clientX<A.left)return void(k="zoom");Y=ne(H.clientX-A.left-Y.left+q,H.clientY-A.top-Y.top+X),ne=ne(H.clientX-A.left-ee.left+q,H.clientY-A.top-ee.top+X),Y<3.5&&ne<3.5&&(k=ne<Y?"cursor":"anchor"),k=ne<3.5?"anchor":Y<3.5?"cursor":"scroll",_=setTimeout(K,450)}m=U}},g),S.addListener(p,"touchend",function(H){w=g.$mouseHandler.isMousePressed=!1,h&&clearInterval(h),k=="zoom"?(k="",L=0):(_?(g.selection.moveToPosition(f),L=0,Q):k=="scroll"?(L+=60,h=setInterval(function(){L--<=0&&(clearInterval(h),h=null),Math.abs(B)<.01&&(B=0),Math.abs(j)<.01&&(j=0),L<20&&(B*=.9),L<20&&(j*=.9);var A=g.session.getScrollTop();g.renderer.scrollBy(10*B,10*j),A==g.session.getScrollTop()&&(L=0)},10),D):Q)(),clearTimeout(_),_=null},g),S.addListener(p,"touchmove",function(H){_&&(clearTimeout(_),_=null);var A=H.touches;if(!(1<A.length||k=="zoom")){var A=A[0],W=u-A.clientX,F=y-A.clientY;if(k=="wait"){if(!(4<W*W+F*F))return H.preventDefault();k="cursor"}u=A.clientX,y=A.clientY,H.clientX=A.clientX,H.clientY=A.clientY;var A=H.timeStamp,U=A-I;I=A,k=="scroll"?((A=new x(H,g)).speed=1,A.wheelX=W,A.wheelY=F,10*Math.abs(W)<Math.abs(F)&&(W=0),10*Math.abs(F)<Math.abs(W)&&(F=0),U!=0&&(B=W/U,j=F/U),g._emit("mousewheel",A),A.propagationStopped||(B=j=0)):(W=new x(H,g).getDocumentPosition(),k=="cursor"?g.selection.moveCursorToPosition(W):k=="anchor"&&g.selection.setSelectionAnchor(W.row,W.column),g.renderer.scrollCursorIntoView(W),H.preventDefault())}},g)}}),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/mouse/touch_handler","ace/config"],function(m,C,N){var x=m("../lib/event"),S=m("../lib/useragent"),b=m("./default_handlers").DefaultHandlers,p=m("./default_gutter_handler").GutterHandler,g=m("./mouse_event").MouseEvent,u=m("./dragdrop_handler").DragdropHandler,y=m("./touch_handler").addTouchListeners,m=m("../config"),I=(_.prototype.onMouseEvent=function(h,f){this.editor.session&&this.editor._emit(h,new g(f,this.editor))},_.prototype.onMouseMove=function(h,f){var w=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;w&&w.length&&this.editor._emit(h,new g(f,this.editor))},_.prototype.onMouseWheel=function(h,f){var w=new g(f,this.editor);w.speed=2*this.$scrollSpeed,w.wheelX=f.wheelX,w.wheelY=f.wheelY,this.editor._emit(h,w)},_.prototype.setState=function(h){this.state=h},_.prototype.captureMouse=function(h,f){this.x=h.x,this.y=h.y,this.isMousePressed=!0;function w(D){if(D){if(S.isWebKit&&!D.which&&M.releaseMouse)return M.releaseMouse();M.x=D.clientX,M.y=D.clientY,f&&f(D),M.mouseEvent=new g(D,M.editor),M.$mouseMoved=!0}}function E(D){k.off("beforeEndOperation",Q),B=!1,k.session&&j(),M[M.state+"End"]&&M[M.state+"End"](D),M.state="",M.isMousePressed=L.$isMousePressed=!1,L.$keepTextAreaAtCurs
339or&&L.$moveTextAreaToCursor(),M.$onCaptureMouseMove=M.releaseMouse=null,D&&M.onMouseEvent("mouseup",D),k.endOperation()}var k=this.editor,L=this.editor.renderer,M=(L.$isMousePressed=!0,this),B=!0,j=function(){M[M.state]&&M[M.state](),M.$mouseMoved=!1},z=function(){B&&(j(),x.nextFrame(z))};if(S.isOldIE&&h.domEvent.type=="dblclick")return setTimeout(function(){E(h)});var Q=function(D){M.releaseMouse&&k.curOp.command.name&&k.curOp.selectionChanged&&(M[M.state+"End"]&&M[M.state+"End"](),M.state="",M.releaseMouse())};k.on("beforeEndOperation",Q),k.startOperation({command:{name:"mouse"}}),M.$onCaptureMouseMove=w,M.releaseMouse=x.capture(this.editor.container,w,E),z()},_.prototype.cancelContextMenu=function(){var h=(function(f){f&&f.domEvent&&f.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",h),f&&f.domEvent&&x.stopEvent(f.domEvent))}).bind(this);setTimeout(h,10),this.editor.on("nativecontextmenu",h)},_.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse(),this.$tooltip&&this.$tooltip.destroy()},_);function _(h){this.$dragDelay,this.$dragEnabled,this.$mouseMoved,this.mouseEvent,this.$focusTimeout;function f(L){document.hasFocus&&document.hasFocus()&&(h.isFocused()||document.activeElement!=(h.textInput&&h.textInput.getElement()))||window.focus(),h.focus(),setTimeout(function(){h.isFocused()||h.focus()})}var w=this,E=(this.editor=h,new b(this),new p(this),new u(this),h.renderer.getMouseEventTarget()),k=(x.addListener(E,"click",this.onMouseEvent.bind(this,"click"),h),x.addListener(E,"mousemove",this.onMouseMove.bind(this,"mousemove"),h),x.addMultiMouseDownListener([E,h.renderer.scrollBarV&&h.renderer.scrollBarV.inner,h.renderer.scrollBarH&&h.renderer.scrollBarH.inner,h.textInput&&h.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",h),x.addMouseWheelListener(h.container,this.onMouseWheel.bind(this,"mousewheel"),h),y(h.container,h),h.renderer.$gutter);x.addListener(k,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),h),x.addListener(k,"click",this.onMouseEvent.bind(this,"gutterclick"),h),x.addListener(k,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),h),x.addListener(k,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),h),x.addListener(E,"mousedown",f,h),x.addListener(k,"mousedown",f,h),S.isIE&&h.renderer.scrollBarV&&(x.addListener(h.renderer.scrollBarV.element,"mousedown",f,h),x.addListener(h.renderer.scrollBarH.element,"mousedown",f,h)),h.on("mousemove",function(L){var M,B;w.state||w.$dragDelay||!w.$dragEnabled||(L=h.renderer.screenToTextCoordinates(L.x,L.y),M=h.session.selection.getRange(),B=h.renderer,!M.isEmpty()&&M.insideStart(L.row,L.column)?B.setCursorStyle("default"):B.setCursorStyle(""))},h)}I.prototype.releaseMouse=null,m.defineOptions(I.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:S.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0}}),C.MouseHandler=I}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(T,C,N){var x=T("../lib/dom");C.FoldHandler=function(S){S.on("click",function(b){var g=b.getDocumentPosition(),p=S.session,g=p.getFoldAt(g.row,g.column,1),g=(g&&(b.getAccelKey()?p.removeFold(g):p.expandFold(g),b.stop()),b.domEvent&&b.domEvent.target);g&&x.hasCssClass(g,"ace_inline_button")&&x.hasCssClass(g,"ace_toggle_wrap")&&(p.setOption("wrap",!p.getUseWrapMode()),S.renderer.scrollCursorIntoView())}),S.on("gutterclick",function(b){var p,g;S.renderer.$gutterLayer.getRegion(b)=="foldWidgets"&&(p=b.getDocumentPosition().row,(g=S.session).foldWidgets&&g.foldWidgets[p]&&S.session.onFoldWidgetClick(p,b),S.isFocused()||S.focus(),b.stop())}),S.on("gutterdblclick",function(b){var p,g,u;S.renderer.$gutterLayer.getRegion(b)=="foldWidgets"&&(u=b.getDocumentPosition().row,(g=(g=(p=S.session).getParentFoldRangeData(u,!0)).range||g.firstRange)&&(u=g.start.row,(u=p.getFoldAt(u,p.getLine(u).length,1))?p.removeFold(u):(p.addFold("...",g),S.renderer.scrollCursorIntoView({row:g.start.row,column:0}))),b.stop())})}}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(T,C,N){var x=T("../lib/keys"),S=T("../lib/event");function b(p){this.$editor=p,this.$data={editor:p},this.$handlers=[],this.setDefaultHandler(p.commands)}b.prototype.setDefaultHandler=function(p){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=p,this.addKeyboardHandler(p,0)},b.prototype.setKeyboardHandler=function(p){var g=this.$handlers;if(g[g.length-1]!=p){for(;g[g.length-1]&&g[g.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(g[g.length-1]);this.addKeyboardHandler(p,1)}},b.prototype.addKeyboardHandler=function(p,g){var u;p&&(typeof p!="function"||p.handleKeyboard||(p.handleKeyboard=p),(u=this.$handlers.indexOf(p))!=-1&&this.$handlers.splice(u,1),g==null?this.$handlers.push(p):this.$handlers.splice(g,0,p),u==-1)&&p.attach&&p.attach(this.$editor)},b.prototype.removeKeyboardHandler=function(p){var g=this.$handlers.indexOf(p);return g!=-1&&(this.$handlers.splice(g,1),p.detach&&p.detach(this.$editor),!0)},b.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},b.prototype.getStatusText=function(){var p=this.$data,g=p.editor;return this.$handlers.map(function(u){return u.getStatusText&&u.getStatusText(g,p)||""}
339).filter(Boolean).join(" ")},b.prototype.$callKeyboardHandlers=function(p,g,u,y){for(var m,I=!1,_=this.$editor.commands,h=this.$handlers.length;h--&&!((m=this.$handlers[h].handleKeyboard(this.$data,p,g,u,y))&&m.command&&((I=m.command=="null"||_.exec(m.command,this.$editor,m.args,y))&&y&&p!=-1&&m.passEvent!=1&&m.command.passEvent!=1&&S.stopEvent(y),I)););return I||p!=-1||(m={command:"insertstring"},I=_.exec("insertstring",this.$editor,g)),I&&this.$editor._signal&&this.$editor._signal("keyboardActivity",m),I},b.prototype.onCommandKey=function(p,g,u){var y=x.keyCodeToString(u);return this.$callKeyboardHandlers(g,y,u,p)},b.prototype.onTextInput=function(p){return this.$callKeyboardHandlers(-1,p)},C.KeyBinding=b}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(T,C,N){var x=0,S=0,b=!1,p=!1,g=!1,u=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],y=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],m=0,I=1,_=2,h=3,f=4,w=5,E=6,k=7,L=8,M=9,B=10,j=11,z=12,Q=13,D=14,K=15,H=16,A=17,W=18,F=[W,W,W,W,W,W,W,W,W,E,w,E,L,w,W,W,W,W,W,W,W,W,W,W,W,W,W,W,w,w,w,E,L,f,f,j,j,j,f,f,f,f,f,B,M,B,M,M,_,_,_,_,_,_,_,_,_,_,M,f,f,f,f,f,f,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,f,f,f,f,f,f,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,f,f,f,f,W,W,W,W,W,W,w,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,M,f,j,j,j,j,f,f,f,f,m,f,f,W,f,f,j,j,_,_,f,m,f,f,f,_,m,f,f,f,f,f],U=[L,L,L,L,L,L,L,L,L,L,L,W,W,W,m,I,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,L,w,Q,D,K,H,A,M,j,j,j,j,j,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,M,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,L];function Y(q,ne,se,he){var ie,oe,de,me=x?y:u,be=0,Se=-1,V=null,te=null,re=[];if(!he)for(V=0,he=[];V<se;V++)he[V]=X(q[V]);for(S=x,g=p=b=!1,te=0;te<se;te++){if(de=be,re[te]=ie=((G,Z,J,ae)=>{var fe,we,Ee,$e=Z[ae];switch($e){case m:case I:b=!1;case f:case h:return $e;case _:return b?h:_;case k:return b=!0,I;case L:return f;case M:return ae<1||ae+1>=Z.length||(fe=J[ae-1])!=_&&fe!=h||(ce=Z[ae+1])!=_&&ce!=h?f:(ce=b?h:ce)==fe?ce:f;case B:return(fe=0<ae?J[ae-1]:w)==_&&ae+1<Z.length&&Z[ae+1]==_?_:f;case j:if(0<ae&&J[ae-1]==_)return _;if(b)return f;for(Ee=ae+1,we=Z.length;Ee<we&&Z[Ee]==j;)Ee++;return Ee<we&&Z[Ee]==_?_:f;case z:for(we=Z.length,Ee=ae+1;Ee<we&&Z[Ee]==z;)Ee++;if(Ee<we){var ce=G[ae],ce=1425<=ce&&ce<=2303||ce==64286;if(fe=Z[Ee],ce&&(fe==I||fe==k))return I}return ae<1||(fe=Z[ae-1])==w?f:J[ae-1];case w:return p=!(b=!1),x;case E:return g=!0,f;case Q:case D:case H:case A:case K:b=!1;case W:return f}})(q,he,re,te),de=240&(be=me[de][ie]),be&=15,ne[te]=oe=me[be][5],0<de){if(de==16)for(V=Se;V<te;V++)ne[V]=1;Se=-1}if(me[be][6])Se==-1&&(Se=te);else if(-1<Se){for(V=Se;V<te;V++)ne[V]=oe;Se=-1}he[te]==w&&(ne[te]=0),S|=oe}if(g){for(V=0;V<se;V++)if(he[V]==E){ne[V]=x;for(var le=V-1;0<=le&&he[le]==L;le--)ne[le]=x}}}function ee(q,ne,se){if(!(S<q))if(q!=1||x!=1||p)for(var he,ie,oe,de,me=se.length,be=0;be<me;){if(ne[be]>=q){for(he=be+1;he<me&&ne[he]>=q;)he++;for(ie=be,oe=he-1;ie<oe;ie++,oe--)de=se[ie],se[ie]=se[oe],se[oe]=de;be=he}be++}else se.reverse()}function X(q){var ne=q.charCodeAt(0),se=ne>>8;return se==0?191<ne?m:F[ne]:se==5?/[\u0591-\u05f4]/.test(q)?I:m:se==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(q)?z:/[\u0660-\u0669\u066b-\u066c]/.test(q)?h:ne==1642?j:/[\u06f0-\u06f9]/.test(q)?_:k:se==32&&ne<=8287?U[255&ne]:se==254&&65136<=ne?k:f}C.L=m,C.R=I,C.EN=_,C.ON_R=3,C.AN=4,C.R_H=5,C.B=6,C.RLE=7,C.DOT="·",C.doBidiReorder=function(q,ne,se){if(q.length<2)return{};var he=q.split(""),ie=new Array(he.length),oe=new Array(he.length),de=[];x=se?1:0,Y(he,de,he.length,ne);for(var me=0;me<ie.length;ie[me]=me,me++);for(ee(2,de,ie),ee(1,de,ie),me=0;me<ie.length-1;me++)ne[me]===h?de[me]=C.AN:de[me]===I&&(ne[me]>k&&ne[me]<Q||ne[me]===f||ne[me]===W)?de[me]=C.ON_R:0<me&&he[me-1]==="Ù"&&/\u0622|\u0623|\u0625|\u0627/.test(he[me])&&(de[me-1]=de[me]=C.R_H,me++);for(he[he.length-1]===C.DOT&&(de[he.length-1]=C.B),he[0]==="â«"&&(de[0]=C.RLE),me=0;me<ie.length;me++)oe[me]=de[ie[me]];return{logicalFromVisual:ie,bidiLevels:oe}},C.hasBidiCharacters=function(q,ne){for(var se=!1,he=0;he<q.length;he++)ne[he]=X(q.charAt(he)),se||ne[he]!=I&&ne[he]!=k&&ne[he]!=h||(se=!0);return se},C.getVisualFromLogicalIdx=function(q,ne){for(var se=0;se<ne.logicalFromVisual.length;se++)if(ne.logicalFromVisual[se]==q)return se;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(T,C,N){var x=T("./lib/bidiutil"),S=T("./lib/lang"),b=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/;function p(g){this.session=g,this.bidiMap={},this.currentRow=null,this.bidiUtil=x,this.charWidths=[],this.EOL="¬",this.showInvisibles=!0,this.isRtlDir=!1,this.$isRtl=!1,this.line="",this.wrapIndent=0,this.EOF="¶",this.RLE="â«",this.contentWidth=0,this.fontMetrics=null,this.rtlLineOffset=0,this.wrapOffset=0,this.isMoveLeftOperation=!1,this.seenBidi=b.test(g.getValue())}p.prototype.isBidiRow=function(g,u,y){return!!this.seenBidi&&(g!==this.currentRow&&(this.currentRow=g,this.updateRowLine(u,y),this.updateBidiMap()),this.bidiMap.bidiLevels)},p.prototype.onChange=function(g){this.seenBidi?this.currentRow=null:g.action=="insert"&&b.test(g.lines.join(` 340`))&&(this.seenBidi=!0,this.currentRow=null)},p.prototype.getDocumentRow=function(){var g=0,u=this.session.$screenRowCache;return g=u.length&&0<=(u=this.session.$getRowCacheIndex(u,this.currentRow))?this.session.$docRowCache[u]:g},p.prototype.getSplitIndex=function(){var g=0,u=this.session.$screenRowCache;if(u.length)for(var y,m=this.session.$getRowCacheIndex(u,this.currentRow);0<this.currentRow-g&&(y=this.session.$getRowCacheIndex(u,this.currentRow-g-1))===m;)m=y,g++;else g=this.currentRow;return g},p.prototype.updateRowLine=function(g,u){var y,m=(g=g===void 0?this.getDocumentRow():g)===this.session.getLength()-1?this.EOF:this.EOL,I=(this.wrapIndent=0,this.line=this.session.getLine(g),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,(!this.session.$useWrapMode||(g=this.session.$wrapData[g])&&(0<(u=u===void 0?this.get
340SplitIndex():u)&&g.length?(this.wrapIndent=g.indent,this.wrapOffset=this.wrapIndent*this.charWidths[x.L],this.line=u<g.length?this.line.substring(g[u-1],g[u]):this.line.substring(g[g.length-1])):this.line=this.line.substring(0,g[u]),u==g.length))&&(this.line+=this.showInvisibles?m:x.DOT),this.session),_=0;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(h,f){return h===" "||I.isFullWidth(h.charCodeAt(0))?(y=h===" "?I.getScreenTabSize(f+_):2,_+=y-1,S.stringRepeat(x.DOT,y)):h}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==x.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},p.prototype.updateBidiMap=function(){var g=[];x.hasBidiCharacters(this.line,g)||this.isRtlDir?this.bidiMap=x.doBidiReorder(this.line,g,this.isRtlDir):this.bidiMap={}},p.prototype.markAsDirty=function(){this.currentRow=null},p.prototype.updateCharacterWidths=function(g){var u;this.characterWidth!==g.$characterSize.width&&(this.fontMetrics=g,u=this.characterWidth=g.$characterSize.width,g=g.$measureCharWidth("×"),this.charWidths[x.L]=this.charWidths[x.EN]=this.charWidths[x.ON_R]=u,this.charWidths[x.R]=this.charWidths[x.AN]=g,this.charWidths[x.R_H]=.45*g,this.charWidths[x.B]=this.charWidths[x.RLE]=0,this.currentRow=null)},p.prototype.setShowInvisibles=function(g){this.showInvisibles=g,this.currentRow=null},p.prototype.setEolChar=function(g){this.EOL=g},p.prototype.setContentWidth=function(g){this.contentWidth=g},p.prototype.isRtlLine=function(g){return!!this.$isRtl||(g!=null?this.session.getLine(g).charAt(0)==this.RLE:this.isRtlDir)},p.prototype.setRtlDirection=function(g,u){for(var y=g.getCursorPosition(),m=g.selection.getSelectionAnchor().row;m<=y.row;m++)u||g.session.getLine(m).charAt(0)!==g.session.$bidiHandler.RLE?u&&g.session.getLine(m).charAt(0)!==g.session.$bidiHandler.RLE&&g.session.doc.insert({column:0,row:m},g.session.$bidiHandler.RLE):g.session.doc.removeInLine(m,0,1)},p.prototype.getPosLeft=function(g){g-=this.wrapIndent;var u=this.line.charAt(0)===this.RLE?1:0,y=u<g?this.session.getOverwrite()?g:g-1:u,m=x.getVisualFromLogicalIdx(y,this.bidiMap),I=this.bidiMap.bidiLevels,_=0;!this.session.getOverwrite()&&g<=u&&I[m]%2!=0&&m++;for(var h=0;h<m;h++)_+=this.charWidths[I[h]];return!this.session.getOverwrite()&&u<g&&I[m]%2==0&&(_+=this.charWidths[I[m]]),this.wrapIndent&&(_+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(_+=this.rtlLineOffset),_},p.prototype.getSelections=function(g,u){var y,m=this.bidiMap,I=m.bidiLevels,_=[],h=0,f=Math.min(g,u)-this.wrapIndent,w=Math.max(g,u)-this.wrapIndent,E=!1,k=!1,L=0;this.wrapIndent&&(h+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var M,B=0;B<I.length;B++)M=m.logicalFromVisual[B],y=I[B],(E=f<=M&&M<w)&&!k?L=h:!E&&k&&_.push({left:L,width:h-L}),h+=this.charWidths[y],k=E;if(E&&B===I.length&&_.push({left:L,width:h-L}),this.isRtlDir)for(var j=0;j<_.length;j++)_[j].left+=this.rtlLineOffset;return _},p.prototype.offsetToCol=function(y){this.isRtlDir&&(y-=this.rtlLineOffset);var u=0,y=Math.max(y,0),m=0,I=0,_=this.bidiMap.bidiLevels,h=this.charWidths[_[I]];for(this.wrapIndent&&(y-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);m+h/2<y;){if(m+=h,I===_.length-1){h=0;break}h=this.charWidths[_[++I]]}return(u=0<I&&_[I-1]%2!=0&&_[I]%2==0?(y<m&&I--,this.bidiMap.logicalFromVisual[I]):0<I&&_[I-1]%2==0&&_[I]%2!=0?1+(m<y?this.bidiMap.logicalFromVisual[I]:this.bidiMap.logicalFromVisual[I-1]):this.isRtlDir&&I===_.length-1&&h===0&&_[I-1]%2==0||!this.isRtlDir&&I===0&&_[I]%2!=0?1+this.bidiMap.logicalFromVisual[I]:(0<I&&_[I-1]%2!=0&&h!==0&&I--,this.bidiMap.logicalFromVisual[I]))===0&&this.isRtlDir&&u++,u+this.wrapIndent},C.BidiHandler=p}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(g,C,N){var x=g("./lib/oop"),S=g("./lib/lang"),b=g("./lib/event_emitter").EventEmitter,p=g("./range").Range,g=(u.prototype.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},u.prototype.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},u.prototype.getCursor=function(){return this.lead.getPosition()},u.prototype.setAnchor=function(y,m){this.$isEmpty=!1,this.anchor.setPosition(y,m)}
340,u.prototype.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},u.prototype.getSelectionLead=function(){return this.lead.getPosition()},u.prototype.isBackwards=function(){var y=this.anchor,m=this.lead;return y.row>m.row||y.row==m.row&&y.column>m.column},u.prototype.getRange=function(){var y=this.anchor,m=this.lead;return this.$isEmpty?p.fromPoints(m,m):this.isBackwards()?p.fromPoints(m,y):p.fromPoints(y,m)},u.prototype.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},u.prototype.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},u.prototype.setRange=function(y,_){var I=_?y.end:y.start,_=_?y.start:y.end;this.$setSelection(I.row,I.column,_.row,_.column)},u.prototype.$setSelection=function(y,m,I,_){var h,f;!this.$silent&&(h=this.$isEmpty,f=this.inMultiSelectMode,this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(y,m),this.cursor.setPosition(I,_),this.$isEmpty=!p.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),this.$cursorChanged||this.$anchorChanged||h!=this.$isEmpty||f)&&this._emit("changeSelection")},u.prototype.$moveSelection=function(y){var m=this.lead;this.$isEmpty&&this.setSelectionAnchor(m.row,m.column),y.call(this)},u.prototype.selectTo=function(y,m){this.$moveSelection(function(){this.moveCursorTo(y,m)})},u.prototype.selectToPosition=function(y){this.$moveSelection(function(){this.moveCursorToPosition(y)})},u.prototype.moveTo=function(y,m){this.clearSelection(),this.moveCursorTo(y,m)},u.prototype.moveToPosition=function(y){this.clearSelection(),this.moveCursorToPosition(y)},u.prototype.selectUp=function(){this.$moveSelection(this.moveCursorUp)},u.prototype.selectDown=function(){this.$moveSelection(this.moveCursorDown)},u.prototype.selectRight=function(){this.$moveSelection(this.moveCursorRight)},u.prototype.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},u.prototype.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},u.prototype.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},u.prototype.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},u.prototype.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},u.prototype.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},u.prototype.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},u.prototype.getWordRange=function(y,m){var I;return m===void 0&&(y=(I=y||this.lead).row,m=I.column),this.session.getWordRange(y,m)},u.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},u.prototype.selectAWord=function(){var y=this.getCursor(),y=this.session.getAWordRange(y.row,y.column);this.setSelectionRange(y)},u.prototype.getLineRange=function(I,m){var I=typeof I=="number"?I:this.lead.row,_=this.session.getFoldLine(I),_=_?(I=_.start.row,_.end.row):I;return m===!0?new p(I,0,_,this.session.getLine(_).length):new p(I,0,_+1,0)},u.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},u.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},u.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},u.prototype.wouldMoveIntoSoftTab=function(y,m,I){var _=y.column,h=y.column+m;return I<0&&(_=y.column-m,h=y.column),this.session.isTabStop(y)&&this.doc.getLine(y.row).slice(_,h).split(" ").length-1==m},u.prototype.moveCursorLeft=function(){var y,m=this.lead.getPosition();(y=this.session.getFoldAt(m.row,m.column,-1))?this.moveCursorTo(y.start.row,y.start.column):m.column===0?0<m.row&&this.moveCursorTo(m.row-1,this.doc.getLine(m.row-1).length):(y=this.session.getTabSize(),this.wouldMoveIntoSoftTab(m,y,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-y):this.moveCursorBy(0,-1))},u.prototype.moveCursorRight=function(){var y,m=this.lead.getPosition();(y=this.session.getFoldAt(m.row,m.column,1))?this.moveCursorTo(y.end.row,y.end.column):this.lead.column==this.doc.getLine(this.lead.row).length?this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0):(y=this.session.getTabSize(),m=this.lead,this.wouldMoveIntoSoftTab(m,y,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,y):this.moveCursorBy(0,1))},u.prototype.moveCursorLineStart=function(){var I=this.lead.row,y=this.lead.column,m=this.session.documentToScreenRow(I,y),m=this.session.screenToDocumentPosition(m,0),I=this.session.getDisplayLine(I,null,m.row,m.column).match(/^\s*/);I[0].length==y||this.session.$useEmacsStyleLineStart||(m.column+=I[0].length),this.moveCursorToPosition(m)},u.prototype.moveCursorLineEnd=function(){var y,m=this.lead,m=this.session.getDocumentLastRowColumnPosition(m.row,m.column);this.lead.column==m.column&&(y=this.session.getLine(m.row),m.column==y.length)&&0<(y=y.search(/\s+$/))&&(m.column=y),this.moveCursorTo(m.row,m.column)},u.prototype.moveCursorFileEnd=function(){var y=this.doc.getLength()-1,m=this.doc.getLine(y).length;this.moveCursorTo(y,m)},u.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},u.prototype.moveCursorLongWordRight=function(){var y=this.lead.row,m=this.lead.column,I=this.doc.getLine(y),_=I.substring(m),h=(this.session.nonTokenRe.lastIndex=0,this.session.token
340Re.lastIndex=0,this.session.getFoldAt(y,m,1));h?this.moveCursorTo(h.end.row,h.end.column):(this.session.nonTokenRe.exec(_)&&(m+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,_=I.substring(m)),m>=I.length?(this.moveCursorTo(y,I.length),this.moveCursorRight(),y<this.doc.getLength()-1&&this.moveCursorWordRight()):(this.session.tokenRe.exec(_)&&(m+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(y,m)))},u.prototype.moveCursorLongWordLeft=function(){var y,m=this.lead.row,I=this.lead.column;(y=this.session.getFoldAt(m,I,-1))?this.moveCursorTo(y.start.row,y.start.column):((y=this.session.getFoldStringAt(m,I,-1))==null&&(y=this.doc.getLine(m).substring(0,I)),y=S.stringReverse(y),this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(y)&&(I-=this.session.nonTokenRe.lastIndex,y=y.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),I<=0?(this.moveCursorTo(m,0),this.moveCursorLeft(),0<m&&this.moveCursorWordLeft()):(this.session.tokenRe.exec(y)&&(I-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(m,I)))},u.prototype.$shortWordEndIndex=function(y){var m,I=0,_=/\s/,h=this.session.tokenRe;if(h.lastIndex=0,this.session.tokenRe.exec(y))I=this.session.tokenRe.lastIndex;else{for(;(m=y[I])&&_.test(m);)I++;if(I<1){for(h.lastIndex=0;(m=y[I])&&!h.test(m);)if(h.lastIndex=0,I++,_.test(m)){if(2<I){I--;break}for(;(m=y[I])&&_.test(m);)I++;if(2<I)break}}}return h.lastIndex=0,I},u.prototype.moveCursorShortWordRight=function(){var y=this.lead.row,m=this.lead.column,I=this.doc.getLine(y),_=I.substring(m),h=this.session.getFoldAt(y,m,1);if(h)return this.moveCursorTo(h.end.row,h.end.column);if(m==I.length){for(var f=this.doc.getLength();_=this.doc.getLine(++y),y<f&&/^\s*$/.test(_););/^\s+/.test(_)||(_=""),m=0}h=this.$shortWordEndIndex(_),this.moveCursorTo(y,m+h)},u.prototype.moveCursorShortWordLeft=function(){var y=this.lead.row,m=this.lead.column;if(_=this.session.getFoldAt(y,m,-1))return this.moveCursorTo(_.start.row,_.start.column);var I=this.session.getLine(y).substring(0,m);if(m===0){for(;I=this.doc.getLine(--y),0<y&&/^\s*$/.test(I););m=I.length,/\s+$/.test(I)||(I="")}var _=S.stringReverse(I),_=this.$shortWordEndIndex(_);return this.moveCursorTo(y,m-_)},u.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},u.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},u.prototype.moveCursorBy=function(y,m){var I,_=this.session.documentToScreenPosition(this.lead.row,this.lead.column),h=(m===0&&(y!==0&&(this.session.$bidiHandler.isBidiRow(_.row,this.lead.row)?(I=this.session.$bidiHandler.getPosLeft(_.column),_.column=Math.round(I/this.session.$bidiHandler.charWidths[0])):I=_.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?_.column=this.$desiredColumn:this.$desiredColumn=_.column),y!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]&&(h=this.session.lineWidgets[this.lead.row],y<0?y-=h.rowsAbove||0:0<y&&(y+=h.rowCount-(h.rowsAbove||0))),this.session.screenToDocumentPosition(_.row+y,_.column,I));y!==0&&m===0&&h.row===this.lead.row&&(h.column,this.lead.column),this.moveCursorTo(h.row,h.column+m,m===0)},u.prototype.moveCursorToPosition=function(y){this.moveCursorTo(y.row,y.column)},u.prototype.moveCursorTo=function(y,m,I){var _=this.session.getFoldAt(y,m,1),_=(_&&(y=_.start.row,m=_.start.column),this.$keepDesiredColumnOnChange=!0,this.session.getLine(y));/[\uDC00-\uDFFF]/.test(_.charAt(m))&&_.charAt(m-1)&&(this.lead.row==y&&this.lead.column==m+1?m-=1:m+=1),this.lead.setPosition(y,m),this.$keepDesiredColumnOnChange=!1,I||(this.$desiredColumn=null)},u.prototype.moveCursorToScreen=function(y,m,I){y=this.session.screenToDocumentPosition(y,m),this.moveCursorTo(y.row,y.column,I)},u.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},u.prototype.fromOrientedRange=function(y){this.setSelectionRange(y,y.cursor==y.start),this.$desiredColumn=y.desiredColumn||this.$desiredColumn},u.prototype.toOrientedRange=function(y){var m=this.getRange();return y?(y.start.column=m.start.column,y.start.row=m.start.row,y.end.column=m.end.column,y.end.row=m.end.row):y=m,y.cursor=this.isBackwards()?y.start:y.end,y.desiredColumn=this.$desiredColumn,y},u.prototype.getRangeOfMovements=function(y){var m=this.getCursor();try{y(this);var I=this.getCursor();return p.fromPoints(m,I)}catch{return p.fromPoints(m,m)}finally{this.moveCursorToPosition(m)}},u.prototype.toJSON=function(){var y;return this.rangeCount?y=this.ranges.map(function(m){var I=m.clone();return I.isBackwards=m.cursor==m.start,I}):(y=this.getRange()).isBackwards=this.isBackwards(),y},u.prototype.fromJSON=function(y){if(y.start==null){if(this.rangeList&&1<y.length){this.toSingleRange(y[0]);for(var m=y.length;m--;){var I=p.fromPoints(y[m].start,y[m].end);y[m].isBackwards&&(I.cursor=I.start),this.addRange(I,!0)}return}y=y[0]}this.rangeList&&this.toSingleRange(y),this.setSelectionRange(y,y.isBackwards)},u.prototype.isEqual=function(y){if((y.length||this.rangeCount)&&y.length!=this.rangeCount)return!1;if(!y.length||!this.ranges)return this.getRange().isEqual(y);for(var m=this.ranges.length;m--;)if(!this.ranges[m].isEqual(y[m]))return!1;return!0},u);function u(y){this.session=y,this.doc=y.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var m=this;this.cursor.on("change",function(I){m.$cursorChanged=!0,m.$silent||m._emit("changeCursor"),m.$isEmpty||m.$silent||m._emit("changeSelection"),m.$keepDesiredColumnOnChange||I.old.column==I.value.column||(m.$desiredColumn=null)}),this.anchor.on("change",function(){m.$anchorChanged=!0,m.$isEmpty||m.$silent||m._emit("changeSelection")})}g.prototype.setSelectionAnchor=g.prototype.setAnchor,g.prototype.getSelectionAnchor=g.prototype.getAnchor,g.prototype.setSelectionRange=g.prototype.setRange,x.implement(g.prototype,b),C.Selection=g}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(x,C,N){var x=x("./lib/report_error").reportError,S=2e3,b
340=(p.prototype.$setMaxTokenCount=function(g){S=0|g},p.prototype.$applyToken=function(g){var u=this.splitRegex.exec(g).slice(1),y=this.token.apply(this,u);if(typeof y=="string")return[{type:y,value:g}];for(var m=[],I=0,_=y.length;I<_;I++)u[I]&&(m[m.length]={type:y[I],value:u[I]});return m},p.prototype.$arrayTokens=function(g){if(!g)return[];var u=this.splitRegex.exec(g);if(!u)return"text";for(var y=[],m=this.tokenArray,I=0,_=m.length;I<_;I++)u[I+1]&&(y[y.length]={type:m[I],value:u[I+1]});return y},p.prototype.removeCapturingGroups=function(g){return g.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(u,y){return y?"(?:":u})},p.prototype.createSplitterRegexp=function(g,u){var y,m,I;return(g=(g=g.indexOf("(?=")!=-1&&(y=0,m=!1,I={},g.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(_,h,f,w,E,k){return m?m=E!="]":E?m=!0:w?(y==I.stack&&(I.end=k+1,I.stack=-1),y--):f&&(y++,f.length!=1)&&(I.stack=y,I.start=k),_}),I.end!=null)&&/^\)*$/.test(g.substr(I.end))?g.substring(0,I.start)+g.substr(I.end):g).charAt(0)!="^"?"^"+g:g).charAt(g.length-1)!="$"&&(g+="$"),new RegExp(g,(u||"").replace("g",""))},p.prototype.getLineTokens=function(g,u){u&&typeof u!="string"?(u=(y=u.slice(0))[0])==="#tmp"&&(y.shift(),u=y.shift()):y=[];for(var y,m,I=u||"start",_=(_=this.states[I])||this.states[I="start"],h=this.matchMappings[I],f=this.regExps[I],w=[],E=f.lastIndex=0,k=0,L={type:null,value:""};m=f.exec(g);){var M,B=h.defaultToken,j=null,z=m[0],Q=f.lastIndex;Q-z.length>E&&(M=g.substring(E,Q-z.length),L.type==B?L.value+=M:(L.type&&w.push(L),L={type:B,value:M}));for(var D=0;D<m.length-2;D++)if(m[D+1]!==void 0){B=(j=_[h[D]]).onMatch?j.onMatch(z,I,y,g):j.token,j.next&&(I=typeof j.next=="string"?j.next:j.next(I,y),(_=this.states[I])||(this.reportError("state doesn't exist",I),_=this.states[I="start"]),h=this.matchMappings[I],(f=this.regExps[I]).lastIndex=E=Q),j.consumeLineEnd&&(E=Q);break}if(z){if(typeof B=="string")j&&j.merge===!1||L.type!==B?(L.type&&w.push(L),L={type:B,value:z}):L.value+=z;else if(B)for(L.type&&w.push(L),L={type:null,value:""},D=0;D<B.length;D++)w.push(B[D])}if(E==g.length)break;if(E=Q,k++>S){for(k>2*g.length&&this.reportError("infinite loop with in ace tokenizer",{startState:u,line:g});E<g.length;)L.type&&w.push(L),L={value:g.substring(E,E+=500),type:"overflow"};I="start",y=[];break}}return L.type&&w.push(L),1<y.length&&y[0]!==I&&y.unshift("#tmp",I),{tokens:w,state:y.length?y:I}},p);function p(g){for(var u in this.splitRegex,this.states=g,this.regExps={},this.matchMappings={},this.states){for(var y=this.states[u],m=[],I=0,_=this.matchMappings[u]={defaultToken:"text"},h="g",f=[],w=0;w<y.length;w++){var E,k,L=y[w];L.defaultToken&&(_.defaultToken=L.defaultToken),L.caseInsensitive&&h.indexOf("i")===-1&&(h+="i"),L.unicode&&h.indexOf("u")===-1&&(h+="u"),L.regex==null||(L.regex instanceof RegExp&&(L.regex=L.regex.toString().slice(1,-1)),E=L.regex,k=new RegExp("(?:("+E+")|(.))").exec("a").length-2,Array.isArray(L.token)?L.token.length==1||k==1?L.token=L.token[0]:k-1!=L.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:L,groupCount:k-1}),L.token=L.token[0]):(L.tokenArray=L.token,L.token=null,L.onMatch=this.$arrayTokens):typeof L.token!="function"||L.onMatch||(L.onMatch=1<k?this.$applyToken:L.token),1<k&&(E=/\\\d/.test(L.regex)?L.regex.replace(/\\([0-9]+)/g,function(M,B){return"\\"+(parseInt(B,10)+I+1)}):(k=1,this.removeCapturingGroups(L.regex)),L.splitRegex||typeof L.token=="string"||f.push(L)),_[I]=w,I+=k,m.push(E),L.onMatch)||(L.onMatch=null)}m.length||(_[0]=0,m.push("$")),f.forEach(function(M){M.splitRegex=this.createSplitterRegexp(M.regex,h)},this),this.regExps[u]=new RegExp("("+m.join(")|(")+")|($)",h)}}b.prototype.reportError=x,C.Tokenizer=b}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(S,C,N){var x=S("../lib/deep_copy").deepCopy,S=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(g,u){if(u)for(var y in g){for(var m=g[y],I=0;I<m.length;I++){var _=m[I];(_.next||_.onMatch)&&(typeof _.next=="string"&&_.next.indexOf(u)!==0&&(_.next=u+_.next),_.nextState)&&_.nextState.indexOf(u)!==0&&(_.nextState=u+_.nextState)}this.$rules[u+y]=m}else for(var y in g)this.$rules[y]=g[y]},this.getRules=function(){return this.$rules},this.embedRules=function(g,u,y,m,I){if(g=typeof g=="function"?new g().getRules():g,m)for(var _=0;_<m.length;_++)m[_]=u+m[_];else for(var h in m=[],g)m.push(u+h);if(this.addRules(g,u),y)for(var f=Array.prototype[I?"push":"unshift"],_=0;_<m.length;_++)f.apply(this.$rules[m[_]],x(y));this.$embeds||(this.$embeds=[]),this.$embeds.push(u)},this.getEmbeds=function(){return this.$embeds};function b(g,u){return g=="start"&&!u.length||u.unshift(this.nextState,g),this.nextState}function p(g,u){return u.shift(),u.shift()||"start"}this.normalizeRules=function(){var g=0,u=this.$rules;Object.keys(u).forEach(function y(m){var I=u[m];I.processed=!0;for(var _=0;_<I.length;_++){var h=I[_],f=null,w=(Array.isArray(h)&&(f=h,h={}),!h.regex&&h.start&&(h.regex=h.start,h.next||(h.next=[]),h.next.push({defaultToken:h.token},{token:h.token+".end",regex:h.end||h.start,next:"pop"}),h.token=h.token+".start",h.push=!0),h.next||h.push);if(w&&Array.isArray(w)?((k=h.stateName)||(typeof(k=h.token)!="string"&&(k=k[0]||""),u[k]&&(k+=g++)),u[k]=w,y(h.next=k)):w=="pop"&&(h.next=p),h.push&&(h.nextState=h.next||h.push,h.next=b,delete h.push),h.rules)for(var E in h.rules)u[E]?u[E].push&&u[E].push.apply(u[E],h.rules[E]):u[E]=h.rules[E];var k=typeof h=="string"?h:h.include;k&&(k==="$self"&&(k="start"),f=Array.isArray(k)?k.map(function(L){return u[L]}):u[k]),f&&(w=[_,1].concat(f),h.noEscape&&(w=w.filter(function(L){return!L.next})),I.splice.apply(I,w),_--),h.keywordMap&&(h.token=this.createKeywordMapper(h.keywordMap,h.defaultToken||"text",h.caseInsensitive),delete h.defaultToken)}},this)},this.createKeywordMapper=function(g,u,y,m){var I=Object.create(null);return this.$keywordList=[],Object.keys(g).forEach(function(_){for(var h=g[_].split(m||"|"),f=h.length;f--;){var w=h[f];this.$keywordList.push(w),y&&(w=w.toLowerCase()),I[w]=_}},this),g=null,y?function(_){return I[_.toLowerCase()]||u}:function(_){return I[_]||u}},this.getKeywords=function(){return this.$keywords}}).call(S.prototype),C.TextHighlightRules=S}),ace.define("ace/mode/behaviour",["require","exports","module"],function(T,C,N){var x=function(){this.$behaviours={}};(function(){this.add=function(S,b,p){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[S]:this.$behaviours[S]={}}this.$behaviours[S][b]=p},this.addBehaviours=function(S){for(var b in S)for(var p in S[b])this.add(b,p,S[b][p])},this.remove=function(S){this.$behaviours&&this.$behaviours[S]&&delete this.$behaviours[S]},this.inherit=function(S,b){S=(typeof S=="function"?new S:S).getBehaviours(b),this.addBehaviours(S)},this.getBehaviours=function(S){if(S){for(var b={},p=0;p<S.length;p++)this.$behaviours[S[p]]&&(b[S[p]]=this.$behaviours[S[p]]);return b}return this.$behaviours}}).call(x.prototype),C.Behaviour=x}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(T,C,N){var x=T("./range").Range;function S(b,p,g){this.$session=b,this.$row=p,this.$rowTokens=b.getTokens(p),b=b.getTokenAt(p,g),this.$tokenIndex=b?b.index:-1}S.prototype.stepBackward=function(){for(--this.$tokenIndex;this.$tokenIndex<0;){if(--this.$row,this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]},S.prototype.stepForward=function(){var b;for(this.$tokenIndex+=1;this.$tokenIndex>
340=this.$rowTokens.length;){if(this.$row+=1,b=b||this.$session.getLength(),this.$row>=b)return this.$row=b-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},S.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},S.prototype.getCurrentTokenRow=function(){return this.$row},S.prototype.getCurrentTokenColumn=function(){var b=this.$rowTokens,p=this.$tokenIndex,g=b[p].start;if(g===void 0)for(g=0;0<p;)g+=b[--p].value.length;return g},S.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},S.prototype.getCurrentTokenRange=function(){var b=this.$rowTokens[this.$tokenIndex],p=this.getCurrentTokenColumn();return new x(this.$row,p,this.$row,p+b.value.length)},C.TokenIterator=S}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(T,C,N){function x(w){var E=-1;if((_=w.multiSelect&&(E=w.selection.index,_.rangeCount!=w.multiSelect.rangeCount)?{rangeCount:w.multiSelect.rangeCount}:_)[E])return b=_[E];b=_[E]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}}function S(w,E,k,L){var M=w.end.row-w.start.row;return{text:k+E+L,selection:[0,w.start.column+1,M,w.end.column+(M?0:1)]}}var b,p=T("../../lib/oop"),g=T("../behaviour").Behaviour,u=T("../../token_iterator").TokenIterator,y=T("../../lib/lang"),m=["text","paren.rparen","rparen","paren","punctuation.operator"],I=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],_={},h={'"':'"',"'":"'"},f=function(w){w=w||{},this.add("braces","insertion",function(E,k,L,M,B){var j=L.getCursorPosition(),z=M.doc.getLine(j.row);if(B=="{"){x(L);var Q=L.getSelectionRange(),D=M.doc.getTextRange(Q),K=M.getTokenAt(j.row,j.column);if(D!==""&&D!=="{"&&L.getWrapBehavioursEnabled())return S(Q,D,"{","}");if(K&&/(?:string)\.quasi|\.xml/.test(K.type)){if(!([/tag\-(?:open|name)/,/attribute\-name/].some(function(W){return W.test(K.type)})||/(string)\.quasi/.test(K.type)&&K.value[j.column-K.start-1]!=="$"))return f.recordAutoInsert(L,M,"}"),{text:"{}",selection:[1,1]}}else if(f.isSaneInsertion(L,M))return/[\]\}\)]/.test(z[j.column])||L.inMultiSelectMode||w.braces?(f.recordAutoInsert(L,M,"}"),{text:"{}",selection:[1,1]}):(f.recordMaybeInsert(L,M,"{"),{text:"{",selection:[1,1]})}else if(B=="}"){x(L);var H=z.substring(j.column,j.column+1);if(H=="}"&&M.$findOpeningBracket("}",{column:j.column+1,row:j.row})!==null&&f.isAutoInsertedClosing(j,z,B))return f.popAutoInsertedClosing(),{text:"",selection:[1,1]}}else{if(B==` 341`||B==`\r 342`){if(x(L),Q="",f.isMaybeInsertedClosing(j,z)&&(Q=y.stringRepeat("}",b.maybeInsertedBrackets),f.clearMaybeInsertedClosing()),(H=z.substring(j.column,j.column+1))==="}"){if(D=M.findMatchingBracket({row:j.row,column:j.column+1},"}"),!D)return null;var A=this.$getIndent(M.getLine(D.row))}else{if(!Q)return void f.clearMaybeInsertedClosing();A=this.$getIndent(z)}return B=A+M.getTabString(),{text:` 343`+B+` 344`+A+Q,selection:[1,B.length,1,B.length]}}f.clearMaybeInsertedClosing()}}),this.add("braces","deletion",function(E,k,L,M,B){var j=M.doc.getTextRange(B);if(!B.isMultiLine()&&j=="{"){if(x(L),M.doc.getLine(B.start.row).substring(B.end.column,B.end.column+1)=="}")return B.end.column++,B;b.maybeInsertedBrackets--}}),this.add("parens","insertion",function(E,k,L,M,B){if(B=="(")return x(L),j=L.getSelectionRange(),(z=M.doc.getTextRange(j))!==""&&L.getWrapBehavioursEnabled()?S(j,z,"(",")"):f.isSaneInsertion(L,M)?(f.recordAutoInsert(L,M,")"),{text:"()",selection:[1,1]}):void 0;if(B==")"){x(L);var j=L.getCursorPosition(),z=M.doc.getLine(j.row),L=z.substring(j.column,j.column+1);if(L==")"&&M.$findOpeningBracket(")",{column:j.column+1,row:j.row})!==null&&f.isAutoInsertedClosing(j,z,B))return f.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}),this.add("parens","deletion",function(E,k,L,M,B){var j=M.doc.getTextRange(B);if(!B.isMultiLine()&&j=="("&&(x(L),M.doc.getLine(B.start.row).substring(B.start.column+1,B.start.column+2)==")"))return B.end.column++,B}),this.add("brackets","insertion",function(E,k,L,M,B){if(B=="[")return x(L),j=L.getSelectionRange(),(z=M.doc.getTextRange(j))!==""&&L.getWrapBehavioursEnabled()?S(j,z,"[","]"):f.isSaneInsertion(L,M)?(f.recordAutoInsert(L,M,"]"),{text:"[]",selection:[1,1]}):void 0;if(B=="]"){x(L);var j=L.getCursorPosition(),z=M.doc.getLine(j.row),L=z.substring(j.column,j.column+1);if(L=="]"&&M.$findOpeningBracket("]",{column:j.column+1,row:j.row})!==null&&f.isAutoInsertedClosing(j,z,B))return f.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}),this.add("brackets","deletion",function(E,k,L,M,B){var j=M.doc.getTextRange(B);if(!B.isMultiLine()&&j=="["&&(x(L),M.doc.getLine(B.start.row).substring(B.start.column+1,B.start.column+2)=="]"))return B.end.column++,B}
344),this.add("string_dquotes","insertion",function(E,k,L,M,B){var j=M.$mode.$quotes||h;if(B.length==1&&j[B]&&(!this.lineCommentStart||this.lineCommentStart.indexOf(B)==-1)){x(L);var z=L.getSelectionRange(),Q=M.doc.getTextRange(z);if(!(Q===""||Q.length==1&&j[Q])&&L.getWrapBehavioursEnabled())return S(z,Q,B,B);if(!Q){var j=L.getCursorPosition(),z=M.doc.getLine(j.row),Q=z.substring(j.column-1,j.column),L=z.substring(j.column,j.column+1),H=M.getTokenAt(j.row,j.column),D=M.getTokenAt(j.row,j.column+1);if(Q=="\\"&&H&&/escape/.test(H.type))return null;var K,H=H&&/string|escape/.test(H.type),A=!D||/string|escape/.test(D.type);if(L==B)(K=H!==A)&&/string\.end/.test(D.type)&&(K=!1);else{if(H&&!A||H&&A||(D=M.$mode.tokenRe,H=(D.lastIndex=0,D.test(Q)),A=(D.lastIndex=0,D.test(L)),M=M.$mode.$pairQuotesAfter,!(M&&M[B]&&M[B].test(Q))&&H||A)||L&&!/[\s;,.})\]\\]/.test(L)||(M=z[j.column-2],Q==B&&(M==B||D.test(M))))return null;K=!0}return{text:K?B+B:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(E,k,L,M,B){var j=M.$mode.$quotes||h,z=M.doc.getTextRange(B);if(!B.isMultiLine()&&j.hasOwnProperty(z)&&(x(L),M.doc.getLine(B.start.row).substring(B.start.column+1,B.start.column+2)==z))return B.end.column++,B}),w.closeDocComment!==!1&&this.add("doc comment end","insertion",function(E,k,L,M,B){if(E==="doc-start"&&(B===` 345`||B===`\r 346`)&&L.selection.isEmpty()){var j=L.getCursorPosition();if(j.column!==0){for(var E=M.doc.getLine(j.row),L=M.doc.getLine(j.row+1),z=M.getTokens(j.row),Q=0,D=0;D<z.length;D++){Q+=z[D].value.length;var K=z[D];if(Q>=j.column){if(Q===j.column){if(!/\.doc/.test(K.type))return;if(/\*\//.test(K.value)){var H=z[D+1];if(!H||!/\.doc/.test(H.type))return}}var H=j.column-(Q-K.value.length),A=K.value.indexOf("*/"),W=K.value.indexOf("/**",-1<A?A+2:0);if(W!==-1&&W<H&&H<W+3||A!==-1&&W!==-1&&A<=H&&H<=W||!/\.doc/.test(K.type))return;break}}return M=this.$getIndent(E),/\s*\*/.test(L)?/^\s*\*/.test(E)?{text:B+M+"* ",selection:[1,2+M.length,1,2+M.length]}:{text:B+M+" * ",selection:[1,3+M.length,1,3+M.length]}:/\/\*\*/.test(E.substring(0,j.column))?{text:B+M+" * "+B+" "+M+"*/",selection:[1,4+M.length,1,4+M.length]}:void 0}}})};f.isSaneInsertion=function(w,E){var k=w.getCursorPosition(),L=new u(E,k.row,k.column);if(!this.$matchTokenType(L.getCurrentToken()||"text",m)){if(/[)}\]]/.test(w.session.getLine(k.row)[k.column]))return!0;if(w=new u(E,k.row,k.column+1),!this.$matchTokenType(w.getCurrentToken()||"text",m))return!1}return L.stepForward(),L.getCurrentTokenRow()!==k.row||this.$matchTokenType(L.getCurrentToken()||"text",I)},f.$matchTokenType=function(w,E){return-1<E.indexOf(w.type||w)},f.recordAutoInsert=function(w,E,k){w=w.getCursorPosition(),E=E.doc.getLine(w.row),this.isAutoInsertedClosing(w,E,b.autoInsertedLineEnd[0])||(b.autoInsertedBrackets=0),b.autoInsertedRow=w.row,b.autoInsertedLineEnd=k+E.substr(w.column),b.autoInsertedBrackets++},f.recordMaybeInsert=function(w,E,k){w=w.getCursorPosition(),E=E.doc.getLine(w.row),this.isMaybeInsertedClosing(w,E)||(b.maybeInsertedBrackets=0),b.maybeInsertedRow=w.row,b.maybeInsertedLineStart=E.substr(0,w.column)+k,b.maybeInsertedLineEnd=E.substr(w.column),b.maybeInsertedBrackets++},f.isAutoInsertedClosing=function(w,E,k){return 0<b.autoInsertedBrackets&&w.row===b.autoInsertedRow&&k===b.autoInsertedLineEnd[0]&&E.substr(w.column)===b.autoInsertedLineEnd},f.isMaybeInsertedClosing=function(w,E){return 0<b.maybeInsertedBrackets&&w.row===b.maybeInsertedRow&&E.substr(w.column)===b.maybeInsertedLineEnd&&E.substr(0,w.column)==b.maybeInsertedLineStart},f.popAutoInsertedClosing=function(){b.autoInsertedLineEnd=b.autoInsertedLineEnd.substr(1),b.autoInsertedBrackets--},f.clearMaybeInsertedClosing=function(){b&&(b.maybeInsertedBrackets=0,b.maybeInsertedRow=-1)},p.inherits(f,g),C.CstyleBehaviour=f}),ace.define("ace/unicode",["require","exports","module"],function(T,C,N){for(var x=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],S=0,b=[],p=0;p<x.length;p+=2)b.push(S+=x[p]),x[p+1]&&b.push(45,S+=x[p+1]);C.wordChars=String.fromCharCode.apply(null,b)}),ace.define("ace/mode/text",["require","exports","module","ace/config","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],function(I,C,N){var x=I("../config"),S=I("../tokenizer").Tokenizer,b=I("./text_highlight_rules").TextHighlightRules,p=I("./behaviour/cstyle").CstyleBehaviour,g=I("../unicode"),u=I("../lib/lang"),y=I("../token_iterator").TokenIterator,m=I("../range").Range,I=function(){this.HighlightRules=b};(function(){this.$defaultBehaviour=new p,this.tokenRe=new RegExp("^["+g.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+g.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new S(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(_,h,f,w){var E=h.doc,k=!0,L=!0,M=1/0,B=h.getTabSize(),j=!1;if(this.lineCommentStart){A=Array.isArray(this.lineCommentStart)?(F=this.lineCommentStart.map(u.escapeRegExp).join("|"),this.lineCommentStart[0]):(F=u.escapeRegExp(this.lineCommentStart),this.lineCommentStart),F=new RegExp("^(\\s*)(?:"+F+") ?"),j=h.getUseSoftTabs();var z=function(X,q){var ne,se,he=X.match(F);he&&(ne=he[1].length,se=he[0].length,H(X,ne,se)||he[0][se-1]!=" "||se--,E.removeInLine(q,ne,se))},Q=A+" ",D=function(X,q){k&&!/\S/.test(X)||(H(X,M,M)?E.insertInLine({row:q,column:M},Q):E.insertInLine({row:q,column:M},A))},K=function(X,q){return F.test(X)},H=function(X,q,ne){for(var se=0;q--&&X.charAt(q)==" ";)se++;if(se%B!=0)return!1;for(se=0;X.charAt(ne++)==" ";)se++;return 2<B?se%B!=B-1:se%B==0}}else{if(!this.blockComment)return!1;var A=this.blockComment.start,W=this.blockComment.end,F=new RegExp("^(\\s*)(?:"+u.escapeRegExp(A)+")"),U=new RegExp("(?:"+u.escapeRegExp(W)+")\\s*$"),D=function(se,he){K(se,he)||k&&!/\S/.test(se)||(E.insertInLine({row:he,column:se.length},W),E.insertInLine({row:he,column:M},A))},z=function(se,he){var ie;(ie=se.match(U))&&E.removeInLine(he,se.length-ie[0].length,se.length),(ie=se.match(F))&&E.removeInLine(he,ie[1].length,ie[0].length)},K=function(se,he){if(F.test(se))return!0;for(var ie=h.getTokens(he),oe=0;oe<ie.length;oe++)if(ie[oe].type==="comment")return!0}}function Y(X){for(var q=f;
346q<=w;q++)X(E.getLine(q),q)}var ee=1/0;Y(function(X,q){var ne=X.search(/\S/);ne!==-1?(ne<M&&(M=ne),L&&!K(X,q)&&(L=!1)):ee>X.length&&(ee=X.length)}),M==1/0&&(M=ee,L=k=!1),j&&M%B!=0&&(M=Math.floor(M/B)*B),Y(L?z:D)},this.toggleBlockComment=function(_,h,f,w){var E=this.blockComment;if(E){!E.start&&E[0]&&(E=E[0]);var k,L,M=(D=new y(h,w.row,w.column)).getCurrentToken(),B=(h.selection,h.selection.toOrientedRange());if(M&&/comment/.test(M.type)){for(;M&&/comment/.test(M.type);){if((K=M.value.indexOf(E.start))!=-1){var j=D.getCurrentTokenRow(),z=D.getCurrentTokenColumn()+K,Q=new m(j,z,j,z+E.start.length);break}M=D.stepBackward()}for(var D,K,M=(D=new y(h,w.row,w.column)).getCurrentToken();M&&/comment/.test(M.type);){if((K=M.value.indexOf(E.end))!=-1){var j=D.getCurrentTokenRow(),z=D.getCurrentTokenColumn()+K,H=new m(j,z,j,z+E.end.length);break}M=D.stepForward()}H&&h.remove(H),Q&&(h.remove(Q),k=Q.start.row,L=-E.start.length)}else L=E.start.length,k=f.start.row,h.insert(f.end,E.end),h.insert(f.start,E.start);B.start.row==k&&(B.start.column+=L),B.end.row==k&&(B.end.column+=L),h.selection.fromOrientedRange(B)}},this.getNextLineIndent=function(_,h,f){return this.$getIndent(h)},this.checkOutdent=function(_,h,f){return!1},this.autoOutdent=function(_,h,f){},this.$getIndent=function(_){return _.match(/^\s*/)[0]},this.createWorker=function(_){return null},this.createModeDelegates=function(_){for(var h in this.$embeds=[],this.$modes={},_){var f,w,E;_[h]&&(w=(f=_[h]).prototype.$id,(E=x.$modes[w])||(x.$modes[w]=E=new f),x.$modes[h]||(x.$modes[h]=E),this.$embeds.push(h),this.$modes[h]=E)}for(var k=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],L=this,h=0;h<k.length;h++)(B=>{var j,z;j=k[B],z=L[j],L[k[B]]=function(){return this.$delegator(j,arguments,z)}})(h)},this.$delegator=function(_,h,f){var w=h[0]||"start";if(typeof w!="string"){if(Array.isArray(w[2])){var E=w[2][w[2].length-1];if(L=this.$modes[E])return L[_].apply(L,[w[1]].concat([].slice.call(h,1)))}w=w[0]||"start"}for(var k=0;k<this.$embeds.length;k++)if(this.$modes[this.$embeds[k]]){var L,M=w.split(this.$embeds[k]);if(!M[0]&&M[1])return h[0]=M[1],(L=this.$modes[this.$embeds[k]])[_].apply(L,h)}return E=f.apply(this,h),f?E:void 0},this.transformAction=function(_,h,f,w,E){if(this.$behaviour){var k,L=this.$behaviour.getBehaviours();for(k in L)if(L[k][h]){var M=L[k][h].apply(this,arguments);if(M)return M}}},this.getKeywords=function(_){if(!this.completionKeywords){var h=this.$tokenizer.rules,f=[];for(L in h)for(var w=h[L],E=0,k=w.length;E<k;E++)if(typeof w[E].token=="string")/keyword|support|storage/.test(w[E].token)&&f.push(w[E].regex);else if(typeof w[E].token=="object")for(var L,M=0,B=w[E].token.length;M<B;M++)/keyword|support|storage/.test(w[E].token[M])&&(L=w[E].regex.match(/\(.+?\)/g)[M],f.push(L.substr(1,L.length-2)));this.completionKeywords=f}return _?f.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(_,h,f,w){return(this.$keywordList||this.$createKeywordList()).map(function(E){return{name:E,value:E,score:0,meta:"keyword"}})},this.$id="ace/mode/text"}).call(I.prototype),C.Mode=I}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(T,C,N){var x=T("./lib/dom");function S(b){this.session=b,(this.session.widgetManager=this).session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}S.prototype.getRowLength=function(b){var p=this.lineWidgets&&this.lineWidgets[b]&&this.lineWidgets[b].rowCount||0;return this.$useWrapMode&&this.$wrapData[b]?this.$wrapData[b].length+1+p:1+p}
346,S.prototype.$getWidgetScreenLength=function(){var b=0;return this.lineWidgets.forEach(function(p){p&&p.rowCount&&!p.hidden&&(b+=p.rowCount)}),b},S.prototype.$onChangeEditor=function(b){this.attach(b.editor)},S.prototype.attach=function(b){b&&b.widgetManager&&b.widgetManager!=this&&b.widgetManager.detach(),this.editor!=b&&(this.detach(),this.editor=b)&&(b.widgetManager=this,b.renderer.on("beforeRender",this.measureWidgets),b.renderer.on("afterRender",this.renderWidgets))},S.prototype.detach=function(b){var p=this.editor;p&&(this.editor=null,p.widgetManager=null,p.renderer.off("beforeRender",this.measureWidgets),p.renderer.off("afterRender",this.renderWidgets),p=this.session.lineWidgets)&&p.forEach(function(g){g&&g.el&&g.el.parentNode&&(g._inDocument=!1,g.el.parentNode.removeChild(g.el))})},S.prototype.updateOnFold=function(b,p){var g=p.lineWidgets;if(g&&b.action){for(var p=b.data,u=p.start.row,y=p.end.row,m=b.action=="add",I=u+1;I<y;I++)g[I]&&(g[I].hidden=m);g[y]&&(m?g[u]?g[y].hidden=m:g[u]=g[y]:(g[u]==g[y]&&(g[u]=void 0),g[y].hidden=m))}},S.prototype.updateOnChange=function(b){var p,g,u,y=this.session.lineWidgets;y&&(p=b.start.row,(g=b.end.row-p)!=0)&&(b.action=="remove"?(u=y.splice(p+1,g),!y[p]&&u[u.length-1]&&(y[p]=u.pop()),u.forEach(function(m){m&&this.removeLineWidget(m)},this)):(u=new Array(g),y[p]&&y[p].column!=null&&b.start.column>y[p].column&&p++,u.unshift(p,0),y.splice.apply(y,u)),this.$updateRows())},S.prototype.$updateRows=function(){var b,p=this.session.lineWidgets;p&&(b=!0,p.forEach(function(g,u){if(g)for(b=!1,g.row=u;g.$oldWidget;)g.$oldWidget.row=u,g=g.$oldWidget}),b)&&(this.session.lineWidgets=null)},S.prototype.$registerLineWidget=function(b){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var p=this.session.lineWidgets[b.row];return p&&(b.$oldWidget=p).el&&p.el.parentNode&&(p.el.parentNode.removeChild(p.el),p._inDocument=!1),this.session.lineWidgets[b.row]=b},S.prototype.addLineWidget=function(b){var p,g,u;return this.$registerLineWidget(b),b.session=this.session,this.editor&&(p=this.editor.renderer,b.html&&!b.el&&(b.el=x.createElement("div"),b.el.innerHTML=b.html),b.text&&!b.el&&(b.el=x.createElement("div"),b.el.textContent=b.text),b.el&&(x.addCssClass(b.el,"ace_lineWidgetContainer"),b.className&&x.addCssClass(b.el,b.className),b.el.style.position="absolute",b.el.style.zIndex="5",p.container.appendChild(b.el),b._inDocument=!0,b.coverGutter||(b.el.style.zIndex="3"),b.pixelHeight==null)&&(b.pixelHeight=b.el.offsetHeight),b.rowCount==null&&(b.rowCount=b.pixelHeight/p.layerConfig.lineHeight),g=this.session.getFoldAt(b.row,0),(b.$fold=g)&&(u=this.session.lineWidgets,b.row!=g.end.row||u[g.start.row]?b.hidden=!0:u[g.start.row]=b),this.session._emit("changeFold",{data:{start:{row:b.row}}}),this.$updateRows(),this.renderWidgets(null,p),this.onWidgetChanged(b)),b},S.prototype.removeLineWidget=function(b){if(b._inDocument=!1,b.session=null,b.el&&b.el.parentNode&&b.el.parentNode.removeChild(b.el),b.editor&&b.editor.destroy)try{b.editor.destroy()}catch{}if(this.session.lineWidgets){var p=this.session.lineWidgets[b.row];if(p==b)this.session.lineWidgets[b.row]=b.$oldWidget,b.$oldWidget&&this.onWidgetChanged(b.$oldWidget);else for(;p;){if(p.$oldWidget==b){p.$oldWidget=b.$oldWidget;break}p=p.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:b.row}}}),this.$updateRows()},S.prototype.getWidgetsAtRow=function(b){for(var p=this.session.lineWidgets,g=p&&p[b],u=[];g;)u.push(g),g=g.$oldWidget;return u},S.prototype.onWidgetChanged=function(b){this.session._changedWidgets.push(b),this.editor&&this.editor.renderer.updateFull()},S.prototype.measureWidgets=function(b,p){var g=this.session._changedWidgets,u=p.layerConfig;if(g&&g.length){for(var y=1/0,m=0;m<g.length;m++){var I=g[m];if(I&&I.el&&I.session==this.session){if(!I._inDocument){if(this.session.lineWidgets[I.row]!=I)continue;I._inDocument=!0,p.container.appendChild(I.el)}I.h=I.el.offsetHeight,I.fixedWidth||(I.w=I.el.offsetWidth,I.screenWidth=Math.ceil(I.w/u.characterWidth));var _=I.h/u.lineHeight;I.coverLine&&(_-=this.session.getRowLineCount(I.row))<0&&(_=0),I.rowCount!=_&&(I.rowCount=_,I.row<y)&&(y=I.row)}}y!=1/0&&(this.session._emit("changeFold",{data:{start:{row:y}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},S.prototype.renderWidgets=function(b,p){var g=p.layerConfig,u=this.session.lineWidgets;if(u){for(var y=Math.min(this.firstRow,g.firstRow),m=Math.max(this.lastRow,g.lastRow,u.length);0<y&&!u[y];)y--;
346this.firstRow=g.firstRow,this.lastRow=g.lastRow,p.$cursorLayer.config=g;for(var I=y;I<=m;I++){var _,h=u[I];h&&h.el&&(h.hidden?h.el.style.top=-100-(h.pixelHeight||0)+"px":(h._inDocument||(h._inDocument=!0,p.container.appendChild(h.el)),_=p.$cursorLayer.getPixelPosition({row:I,column:0},!0).top,h.coverLine||(_+=g.lineHeight*this.session.getRowLineCount(h.row)),h.el.style.top=_-g.offset+"px",_=h.coverGutter?0:p.gutterWidth,h.fixedWidth||(_-=p.scrollLeft),h.el.style.left=_+"px",h.fullWidth&&h.screenWidth&&(h.el.style.minWidth=g.width+2*g.padding+"px"),h.fixedWidth?h.el.style.right=p.scrollBar.getWidth()+"px":h.el.style.right=""))}}},C.LineWidgets=S}),ace.define("ace/apply_delta",["require","exports","module"],function(T,C,N){C.applyDelta=function(x,S,b){var p=S.start.row,g=S.start.column,u=x[p]||"";switch(S.action){case"insert":S.lines.length===1?x[p]=u.substring(0,g)+S.lines[0]+u.substring(g):(y=[p,1].concat(S.lines),x.splice.apply(x,y),x[p]=u.substring(0,g)+x[p],x[p+S.lines.length-1]+=u.substring(g));break;case"remove":var y=S.end.column,m=S.end.row;p===m?x[p]=u.substring(0,g)+u.substring(y):x.splice(p,m-p+1,u.substring(0,g)+x[m].substring(y))}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(S,C,N){var x=S("./lib/oop"),S=S("./lib/event_emitter").EventEmitter,b=(p.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},p.prototype.getDocument=function(){return this.document},p.prototype.onChange=function(u){u.start.row==u.end.row&&u.start.row!=this.row||u.start.row>this.row||(u=((y,m,I)=>{var _=((w=y.action=="insert")?1:-1)*(y.end.row-y.start.row),h=(w?1:-1)*(y.end.column-y.start.column),f=y.start,w=w?f:y.end;return g(m,f,I)?{row:m.row,column:m.column}:g(w,m,!I)?{row:m.row+_,column:m.column+(m.row==w.row?h:0)}:{row:f.row,column:f.column}})(u,{row:this.row,column:this.column},this.$insertRight),this.setPosition(u.row,u.column,!0))},p.prototype.setPosition=function(u,y,m){m=m?{row:u,column:y}:this.$clipPositionToDocument(u,y),this.row==m.row&&this.column==m.column||(u={row:this.row,column:this.column},this.row=m.row,this.column=m.column,this._signal("change",{old:u,value:m}))},p.prototype.detach=function(){this.document.off("change",this.$onChange)},p.prototype.attach=function(u){this.document=u||this.document,this.document.on("change",this.$onChange)},p.prototype.$clipPositionToDocument=function(u,y){var m={};return u>=this.document.getLength()?(m.row=Math.max(0,this.document.getLength()-1),m.column=this.document.getLine(m.row).length):u<0?(m.row=0,m.column=0):(m.row=u,m.column=Math.min(this.document.getLine(m.row).length,Math.max(0,y))),y<0&&(m.column=0),m},p);function p(u,y,m){this.$onChange=this.onChange.bind(this),this.attach(u),typeof y!="number"?this.setPosition(y.row,y.column):this.setPosition(y,m)}function g(u,y,m){return m=m?u.column<=y.column:u.column<y.column,u.row<y.row||u.row==y.row&&m}b.prototype.$insertRight=!1,x.implement(b.prototype,S),C.Anchor=b}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(u,C,N){var x=u("./lib/oop"),S=u("./apply_delta").applyDelta,b=u("./lib/event_emitter").EventEmitter,p=u("./range").Range,g=u("./anchor").Anchor,u=(y.prototype.setValue=function(m){var I=this.getLength()-1;this.remove(new p(0,0,I,this.getLine(I).length)),this.insert({row:0,column:0},m||"")},y.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},y.prototype.createAnchor=function(m,I){return new g(this,m,I)},y.prototype.$detectNewLine=function(m){m=m.match(/^.*?(\r\n|\r|\n)/m),this.$autoNewLine=m?m[1]:` 347`,this._signal("changeNewLineMode")},y.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r 348`;case"unix":return` 349`;default:return this.$autoNewLine||` 350`}},y.prototype.setNewLineMode=function(m){this.$newLineMode!==m&&(this.$newLineMode=m,this._signal("changeNewLineMode"))},y.prototype.getNewLineMode=function(){return this.$newLineMode},y.prototype.isNewLine=function(m){return m==`\r 351`||m=="\r"||m==` 352`},y.prototype.getLine=function(m){return this.$lines[m]||""},y.prototype.getLines=function(m,I){return this.$lines.slice(m,I+1)},y.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},y.prototype.getLength=function(){return this.$lines.length},y.prototype.getTextRange=function(m){return this.getLinesForRange(m).join(this.getNewLineCharacter())},y.prototype.getLinesForRange=function(m){var I,_;return m.start.row===m.end.row?I=[this.getLine(m.start.row).substring(m.start.column,m.end.column)]:((I=this.getLines(m.start.row,m.end.row))[0]=(I[0]||"").substring(m.start.column),_=I.length-1,m.end.row-m.start.row==_&&(I[_]=I[_].substring(0,m.end.column))),I},y.prototype.insertLines=function(m,I){return this.insertFullLines(m,I)},y.prototype.removeLines=function(m,I){return this.removeFullLines(m,I)},y.prototype.insertNewLine=function(m){return this.insertMergedLines(m,["",""])},y.prototype.insert=function(m,I){return this.getLength()<=1&&this.$detectNewLine(I),this.insertMergedLines(m,this.$split(I))},y.prototype.insertInLine=function(h,I){var _=this.clippedPos(h.row,h.column),h=this.pos(h.row,h.column+I.length);return this.applyDelta({start:_,end:h,action:"insert",lines:[I]},!0),this.clonePos(h)},y.prototype.clippedPos=function(m,I){var _=this.getLength(),_=(m===void 0?m=_:m<0?m=0:_<=m&&(m=_-1,I=void 0),this.getLine(m));return I==null&&(I=_.length),{row:m,column:I=Math.min(Math.max(I,0),_.length)}},y.prototype.clonePos=function(m){return{row:m.row,column:m.column}},y.prototype.pos=function(m,I){return{row:m,column:I}},y.prototype.$clipPosition=function(m){var I=this.getLength();return m.row>=I?(m.row=Math.max(0,I-1),m.column=this.getLine(I-1).length):(m.row=Math.max(0,m.row),m.column=Math.min(Math.max(m.column,0),this.getLine(m.row).length)),m},y.prototype.insertFullLines=function(m,I){var _=0,_=(m=Math.min(Math.max(m,0),this.getLength()))<this.getLength()?(I=I.concat([""]),0):(I=[""].concat(I
352),this.$lines[--m].length);this.insertMergedLines({row:m,column:_},I)},y.prototype.insertMergedLines=function(_,I){var _=this.clippedPos(_.row,_.column),h={row:_.row+I.length-1,column:(I.length==1?_.column:0)+I[I.length-1].length};return this.applyDelta({start:_,end:h,action:"insert",lines:I}),this.clonePos(h)},y.prototype.remove=function(_){var I=this.clippedPos(_.start.row,_.start.column),_=this.clippedPos(_.end.row,_.end.column);return this.applyDelta({start:I,end:_,action:"remove",lines:this.getLinesForRange({start:I,end:_})}),this.clonePos(I)},y.prototype.removeInLine=function(m,I,_){return I=this.clippedPos(m,I),m=this.clippedPos(m,_),this.applyDelta({start:I,end:m,action:"remove",lines:this.getLinesForRange({start:I,end:m})},!0),this.clonePos(I)},y.prototype.removeFullLines=function(m,I){m=Math.min(Math.max(0,m),this.getLength()-1);var w=(I=Math.min(Math.max(0,I),this.getLength()-1))==this.getLength()-1&&0<m,h=I<this.getLength()-1,f=w?m-1:m,w=w?this.getLine(f).length:0,_=h?I+1:I,h=h?0:this.getLine(_).length,f=new p(f,w,_,h),w=this.$lines.slice(m,I+1);return this.applyDelta({start:f.start,end:f.end,action:"remove",lines:this.getLinesForRange(f)}),w},y.prototype.removeNewLine=function(m){m<this.getLength()-1&&0<=m&&this.applyDelta({start:this.pos(m,this.getLine(m).length),end:this.pos(m+1,0),action:"remove",lines:["",""]})},y.prototype.replace=function(m,I){return m instanceof p||(m=p.fromPoints(m.start,m.end)),I.length===0&&m.isEmpty()?m.start:I==this.getTextRange(m)?m.end:(this.remove(m),I?this.insert(m.start,I):m.start)},y.prototype.applyDeltas=function(m){for(var I=0;I<m.length;I++)this.applyDelta(m[I])},y.prototype.revertDeltas=function(m){for(var I=m.length-1;0<=I;I--)this.revertDelta(m[I])},y.prototype.applyDelta=function(m,I){var _=m.action=="insert";(_?m.lines.length<=1&&!m.lines[0]:!p.comparePoints(m.start,m.end))||(_&&2e4<m.lines.length?this.$splitAndapplyLargeDelta(m,2e4):(S(this.$lines,m,I),this._signal("change",m)))},y.prototype.$safeApplyDelta=function(m){var I=this.$lines.length;(m.action=="remove"&&m.start.row<I&&m.end.row<I||m.action=="insert"&&m.start.row<=I)&&this.applyDelta(m)},y.prototype.$splitAndapplyLargeDelta=function(m,I){for(var _=m.lines,h=_.length-I+1,f=m.start.row,w=m.start.column,E=0,k=0;E<h;E=k){k+=I-1;var L=_.slice(E,k);L.push(""),this.applyDelta({start:this.pos(f+E,w),end:this.pos(f+k,w=0),action:m.action,lines:L},!0)}m.lines=_.slice(E),m.start.row=f+E,m.start.column=w,this.applyDelta(m,!0)},y.prototype.revertDelta=function(m){this.$safeApplyDelta({start:this.clonePos(m.start),end:this.clonePos(m.end),action:m.action=="insert"?"remove":"insert",lines:m.lines.slice()})},y.prototype.indexToPosition=function(m,I){for(var _=this.$lines||this.getAllLines(),h=this.getNewLineCharacter().length,f=I||0,w=_.length;f<w;f++)if((m-=_[f].length+h)<0)return{row:f,column:m+_[f].length+h};return{row:w-1,column:m+_[w-1].length+h}},y.prototype.positionToIndex=function(m,I){for(var _=this.$lines||this.getAllLines(),h=this.getNewLineCharacter().length,f=0,w=Math.min(m.row,_.length),E=I||0;E<w;++E)f+=_[E].length+h;return f+m.column},y.prototype.$split=function(m){return m.split(/\r\n|\r|\n/)},y);function y(m){this.$lines=[""],m.length===0?this.$lines=[""]:Array.isArray(m)?this.insertMergedLines({row:0,column:0},m):this.insert({row:0,column:0},m)}u.prototype.$autoNewLine="",u.prototype.$newLineMode="auto",x.implement(u.prototype,b),C.Document=u}),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(S,C,N){var x=S("./lib/oop"),S=S("./lib/event_emitter").EventEmitter,b=(p.prototype.setTokenizer=function(g){this.tokenizer=g,this.lines=[],this.states=[],this.start(0)},p.prototype.setDocument=function(g){this.doc=g,this.lines=[],this.states=[],this.stop()},p.prototype.fireUpdateEvent=function(g,u){this._signal("update",{data:{first:g,last:u}})},p.prototype.start=function(g){this.currentLine=Math.min(g||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},p.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},p.prototype.$updateOnChange=function(g){var u=g.start.row,y=g.end.row-u;y==0?this.lines[u]=null:g.action=="remove"?(this.lines.splice(u,1+y,null),this.states.splice(u,1+y,null)):((g=Array(1+y)).unshift(u,1),this.lines.splice.apply(this.lines,g),this.states.splice.apply(this.states,g)),this.currentLine=Math.min(u,this.currentLine,this.doc.getLength()),this.stop()},p.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},p.prototype.getTokens=function(g){return this.lines[g]||this.$tokenizeRow(g)},p.prototype.getState=function(g){return this.currentLine==g&&this.$tokenizeRow(g),this.states[g]||"start"},p.prototype.$tokenizeRow=function(g){var y=this.doc.getLine(g),u=this.states[g-1],y=this.tokenizer.getLineTokens(y,u,g);return this.states[g]+""!=y.state+""?(this.states[g]=y.state,this.lines[g+1]=null,this.currentLine>g+1&&(this.currentLine=g+1)):this.currentLine==g&&(this.currentLine=g+1),this.lines[g]=y.tokens},p.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},p);function p(g,u){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=g;var y=this;this.$worker=function(){if(y.running){for(var m=new Date,I=y.currentLine,_=-1,h=y.doc,f=I;y.lines[I];)I++;var w=h.getLength(),E=0;for(y.running=!1;I<w;){for(y.$tokenizeRow(I),_=I;I++,y.lines[I];);if(++E%5==0&&20<new Date-m){y.running=setTimeout(y.$worker,20);break}}y.currentLine=I,f<=(_=_==-1?I:_)&&y.fireUpdateEvent(f,_)}}}
352x.implement(b.prototype,S),C.BackgroundTokenizer=b}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(b,C,N){var x=b("./lib/lang"),S=b("./range").Range,b=(p.prototype.setRegexp=function(g){this.regExp+""!=g+""&&(this.regExp=g,this.cache=[])},p.prototype.update=function(g,u,y,m){if(this.regExp){for(var I=m.firstRow,_=m.lastRow,h={},f=y.$editor&&y.$editor.$search,w=f&&f.$isMultilineSearch(y.$editor.getLastSearchOptions()),E=I;E<=_;E++){var k,L,M=this.cache[E];if(M!=null&&y.getValue().length==this.docLen||(w?(M=[],(k=f.$multiLineForward(y,this.regExp,E,_))&&(L=k.endRow<=_?k.endRow-1:_,E<L&&(E=L),M.push(new S(k.startRow,k.startCol,k.endRow,k.endCol))),M.length>this.MAX_RANGES&&(M=M.slice(0,this.MAX_RANGES))):M=(M=(M=x.getMatchOffsets(y.getLine(E),this.regExp)).length>this.MAX_RANGES?M.slice(0,this.MAX_RANGES):M).map(function(Q){return new S(E,Q.offset,E,Q.offset+Q.length)}),this.cache[E]=M.length?M:""),M.length!==0)for(var B=M.length;B--;){var j=M[B].toScreenRange(y),z=j.toString();h[z]||(h[z]=!0,u.drawSingleLineMarker(g,j,this.clazz,m))}}this.docLen=y.getValue().length}},p);function p(g,u,y){y===void 0&&(y="text"),this.setRegexp(g),this.clazz=u,this.type=y,this.docLen=0}b.prototype.MAX_RANGES=500,C.SearchHighlight=b}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(T,C,N){S.prototype.addSession=function(f){this.$session=f},S.prototype.add=function(f,w,E){this.$fromUndo||f!=this.$lastDelta&&(this.$keepRedoStack||(this.$redoStack.length=0),w!==!1&&this.lastDeltas||(this.lastDeltas=[],(w=this.$undoStack.length)>this.$undoDepth-1&&this.$undoStack.splice(0,w-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),f.id=this.$rev=++this.$maxRev),f.action!="remove"&&f.action!="insert"||(this.$lastDelta=f),this.lastDeltas.push(f))},S.prototype.addSelection=function(f,w){this.selections.push({value:f,rev:w||this.$rev})},S.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},S.prototype.markIgnored=function(f,w){w==null&&(w=this.$rev+1);for(var E=this.$undoStack,k=E.length;k--;){var L=E[k][0];if(L.id<=f)break;L.id<w&&(L.ignore=!0)}this.lastDeltas=null},S.prototype.getSelection=function(f,w){for(var E=this.selections,k=E.length;k--;){var L=E[k];if(L.rev<f)return L=w?E[k+1]:L}},S.prototype.getRevision=function(){return this.$rev},S.prototype.getDeltas=function(f,w){w==null&&(w=this.$rev+1);for(var E=this.$undoStack,k=null,L=0,M=E.length;M--;){var B=E[M][0];if(B.id<w&&!k&&(k=M+1),B.id<=f){L=M+1;break}}return E.slice(L,k)},S.prototype.getChangedRanges=function(f,w){w==null&&this.$rev},S.prototype.getChangedLines=function(f,w){w==null&&this.$rev},S.prototype.undo=function(f,w){this.lastDeltas=null;var E,k=this.$undoStack;if(((L,M)=>{for(var B=M;B--;){var j=L[B];if(j&&!j[0].ignore){for(;B<M-1;){var z=((Q,D)=>{for(var K=Q.length;K--;)for(var H=0;H<D.length;H++)if(!m(Q[K],D[H])){for(;K<Q.length;){for(;H--;)m(D[H],Q[K]);H=D.length,K++}return[Q,D]}return Q.selectionBefore=D.selectionBefore=Q.selectionAfter=D.selectionAfter=null,[D,Q]})(L[B],L[B+1]);L[B]=z[0],L[B+1]=z[1],B++}return 1}}})(k,k.length))return f=f||this.$session,this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0,E=null,(k=k.pop())&&(E=f.undoChanges(k,w),this.$redoStack.push(k),this.$syncRev()),this.$fromUndo=!1,E},S.prototype.redo=function(f,w){if(this.lastDeltas=null,f=f||this.$session,this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){for(var A=this.getDeltas(this.$redoStackBaseRev,this.$rev+1),E=this.$redoStack,k=A,L=0;L<k.length;L++)for(var M=k[L],B=0;B<M.length;B++){j=void 0,z=void 0,Q=void 0,D=void 0,K=void 0,H=void 0;var j=E,z=M[B];z=(U=>({start:g(U.start),end:g(U.end),action:U.action,lines:U.lines.slice()}))(z);for(var Q=j.length;Q--;){for(var D=j[Q],K=0;K<D.length;K++){var H=((U,Y)=>{var ee,X,q=U.action=="insert",ne=Y.action=="insert";if(q&&ne)p(U.start,Y.start)<0?I(Y,U,1):I(U,Y,1);else if(q&&!ne)0<=p(U.start,Y.end)?I(U,Y,-1):(p(U.start,Y.start)<=0||I(U,b.fromPoints(Y.start,U.start),-1),I(Y,U,1));else if(!q&&ne)0<=p(Y.start,U.end)?I(Y,U,-1):(p(Y.start,U.start)<=0||I(Y,b.fromPoints(U.start,Y.start),-1),I(U,Y,1));else if(!q&&!ne)if(0<=p(Y.start,U.end))I(Y,U,-1);else{if(!(p(Y.end,U.start)<=0))return p(U.start,Y.start)<0&&(U=h(ee=U,Y.start)),0<p(U.end,Y.end
352)&&(X=h(U,Y.end)),_(Y.end,U.start,U.end,-1),X&&!ee&&(U.lines=X.lines,U.start=X.start,U.end=X.end,X=U),[Y,ee,X].filter(Boolean);I(U,Y,-1)}return[Y,U]})(D[K],z);z=H[0],H.length!=2&&(H[2]?(D.splice(K+1,1,H[1],H[2]),K++):H[1]||(D.splice(K,1),K--))}D.length||j.splice(Q,1)}}this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function(F){F[0].id=++this.$maxRev},this)}var A=this.$redoStack.pop(),W=null;return A&&(W=f.redoChanges(A,w),this.$undoStack.push(A),this.$syncRev()),this.$fromUndo=!1,W},S.prototype.$syncRev=function(){var f=this.$undoStack,f=f[f.length-1],f=f&&f[0].id||0;this.$redoStackBaseRev=f,this.$rev=f},S.prototype.reset=function(){this.lastDeltas=null,this.$lastDelta=null,this.$undoStack=[],this.$redoStack=[],this.$rev=0,this.mark=0,this.$redoStackBaseRev=this.$rev,this.selections=[]},S.prototype.canUndo=function(){return 0<this.$undoStack.length},S.prototype.canRedo=function(){return 0<this.$redoStack.length},S.prototype.bookmark=function(f){f==null&&(f=this.$rev),this.mark=f},S.prototype.isAtBookmark=function(){return this.$rev===this.mark},S.prototype.toJSON=function(){return{$redoStack:this.$redoStack,$undoStack:this.$undoStack}},S.prototype.fromJSON=function(f){this.reset(),this.$undoStack=f.$undoStack,this.$redoStack=f.$redoStack},S.prototype.$prettyPrint=function(f){return f?u(f):u(this.$undoStack)+` 353--- 354`+u(this.$redoStack)};var x=S;function S(){this.$keepRedoStack,this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}x.prototype.hasUndo=x.prototype.canUndo,x.prototype.hasRedo=x.prototype.canRedo,x.prototype.isClean=x.prototype.isAtBookmark,x.prototype.markClean=x.prototype.bookmark;var b=T("./range").Range,p=b.comparePoints;function g(f){return{row:f.row,column:f.column}}function u(f){var w;return f=f||this,Array.isArray(f)?f.map(u).join(` 355`):(w="",f.action?(w=f.action=="insert"?"+":"-",w+="["+f.lines+"]"):f.value&&(w=Array.isArray(f.value)?f.value.map(y).join(` 356`):y(f.value)),f.start&&(w+=y(f)),(f.id||f.rev)&&(w+=" ("+(f.id||f.rev)+")"),w)}function y(f){return f.start.row+":"+f.start.column+"=>"+f.end.row+":"+f.end.column}function m(f,w){var E=f.action=="insert",k=w.action=="insert";if(E&&k)if(0<=p(w.start,f.end))I(w,f,-1);else{if(!(p(w.start,f.start)<=0))return;I(f,w,1)}else if(E&&!k)if(0<=p(w.start,f.end))I(w,f,-1);else{if(!(p(w.end,f.start)<=0))return;I(f,w,-1)}else if(!E&&k)if(0<=p(w.start,f.start))I(w,f,1);else{if(!(p(w.start,f.start)<=0))return;I(f,w,1)}else if(!E&&!k)if(0<=p(w.start,f.start))I(w,f,1);else{if(!(p(w.end,f.start)<=0))return;I(f,w,-1)}return 1}function I(f,w,E){_(f.start,w.start,w.end,E),_(f.end,w.start,w.end,E)}function _(f,w,E,k){f.row==(k==1?w:E).row&&(f.column+=k*(E.column-w.column)),f.row+=k*(E.row-w.row)}function h(f,w){var E=f.lines,k=f.end,M=(f.end=g(w),f.end.row-f.start.row),L=E.splice(M,E.length),M=M?w.column:w.column-f.start.column;return E.push(L[0].substring(0,M)),L[0]=L[0].substr(M),{start:g(w),end:k,lines:L,action:f.action}}C.UndoManager=x}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(T,C,N){var x=T("../range").Range;function S(b,p){this.foldData=b,Array.isArray(p)?this.folds=p:p=this.folds=[p],b=p[p.length-1],this.range=new x(p[0].start.row,p[0].start.column,b.end.row,b.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(g){g.setFoldLine(this)},this)}S.prototype.shiftRow=function(b){this.start.row+=b,this.end.row+=b,this.folds.forEach(function(p){p.start.row+=b,p.end.row+=b})},S.prototype.addFold=function(b){if(b.sameRow){if(b.start.row<this.startRow||b.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(b),this.folds.sort(function(p,g){return-p.range.compareEnd(g.start.row,g.start.column)}),0<this.range.compareEnd(b.start.row,b.start.column)?(this.end.row=b.end.row,this.end.column=b.end.column):this.range.compareStart(b.end.row,b.end.column)<0&&(this.start.row=b.start.row,this.start.column=b.start.column)}else if(b.start.row==this.end.row)this.folds.push(b),this.end.row=b.end.row,this.end.column=b.end.column;else{if(b.end.row!=this.start.row)throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");this.folds.unshift(b),this.start.row=b.start.row,this.start.column=b.start.column}b.foldLine=this},S.prototype.containsRow=function(b){return b>=this.start.row&&b<=this.end.row},S.prototype.walk=function(b,p,g){var u,y,m=0,I=this.folds,_=!0;p==null&&(p=this.end.row,g=this.end.column);for(var h=0;h<I.length;h++){if((y=(u=I[h]).range.compareStart(p,g))==-1)return void b(null,p,g,m,_);if(!b(null,u.start.row,u.start.column,m,_)&&b(u.placeholder,u.start.row,u.start.column,m)||y===0)return;_=!u.sameRow,m=u.end.column}b(null,p,g,m,_)},S.prototype.getNextFoldTo=function(b,p){for(var g,u,y=0;y<this.folds.length;y++){if((u=(g=this.folds[y]).range.compareEnd(b,p))==-1)return{fold:g,kind:"after"};if(u===0)return{fold:g,kind:"inside"}}return null},S.prototype.addRemoveChars=function(b,p,g){var u,y=this.getNextFoldTo(b,p);if(y){if(u=y.fold,y.kind=="inside"&&u.start.column!=p&&u.start.row!=b)window.console&&window.console.log(b,p,u);else if(u.start.row==b){var m,I=(m=this.folds).indexOf(u);for(I===0&&(this.start.column+=g);I<m.length;I++){if((u=m[I]).start.column+=g,!u.sameRow)return;u.end.column+=g}this.end.column+=g}}},S.prototype.split=function(y,p){var g,u,y=this.getNextFoldTo(y,p);return y&&y.kind!="inside"?(p=y.fold,y=this.folds,g=this.foldData,p=y.indexOf(p),u=y[p-1],this.end.row=u.end.row,this.end.column=u.end.column,u=new S(g,y=y.splice(p,y.length-p)),g.splice(g.indexOf(this)+1,0,u),u):null},S.prototype.merge=function(b){for(var p=b.folds,g=0;g<p.length;g++)this.addFold(p[g]);var u=this.foldData;u.splice(u.indexOf(b),1)},S.prototype.toString=function(){var b=[this.range.toString()+": ["];return this.folds.forEach(function(p){b.push(" "+p.toString())}),b.push("]"),b.join(` 357`)},S.prototype.idxToPosition=function(b){for(var p=0,g=0;g<this.folds.length;g++){var u=this.folds[g];if((b-=u.start.column-p)<0)return{row:u.start.row,column:u.start.column+b};
357if((b-=u.placeholder.length)<0)return u.start;p=u.end.column}return{row:this.end.row,column:this.end.column+b}},C.FoldLine=S}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(S,C,N){var x=S("./range").Range.comparePoints,S=(b.prototype.pointIndex=function(p,g,u){for(var y=this.ranges,m=u||0;m<y.length;m++){var I=y[m],_=x(p,I.end);if(!(0<_))return I=x(p,I.start),_===0?g&&I!==0?-m-2:m:0<I||I===0&&!g?m:-m-1}return-m-1},b.prototype.add=function(p){var u=!p.isEmpty(),g=this.pointIndex(p.start,u),u=this.pointIndex(p.end,u,g=g<0?-g-1:g);return u<0?u=-u-1:u++,this.ranges.splice(g,u-g,p)},b.prototype.addList=function(p){for(var g=[],u=p.length;u--;)g.push.apply(g,this.add(p[u]));return g},b.prototype.substractPoint=function(p){if(p=this.pointIndex(p),0<=p)return this.ranges.splice(p,1)},b.prototype.merge=function(){for(var p=[],g=this.ranges,u=(g=g.sort(function(_,h){return x(_.start,h.start)}))[0],y=1;y<g.length;y++){var m=u,u=g[y],I=x(m.end,u.start);I<0||(I!=0||m.isEmpty()||u.isEmpty())&&(x(m.end,u.end)<0&&(m.end.row=u.end.row,m.end.column=u.end.column),g.splice(y,1),p.push(u),u=m,y--)}return this.ranges=g,p},b.prototype.contains=function(p,g){return 0<=this.pointIndex({row:p,column:g})},b.prototype.containsPoint=function(p){return 0<=this.pointIndex(p)},b.prototype.rangeAtPoint=function(p){if(p=this.pointIndex(p),0<=p)return this.ranges[p]},b.prototype.clipRows=function(p,g){var u=this.ranges;if(u[0].start.row>g||u[u.length-1].start.row<p)return[];for(var p=this.pointIndex({row:p,column:0}),y=this.pointIndex({row:g,column:0},p=p<0?-p-1:p),m=(y<0&&(y=-y-1),[]),I=p;I<y;I++)m.push(u[I]);return m},b.prototype.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},b.prototype.attach=function(p){this.session&&this.detach(),this.session=p,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},b.prototype.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},b.prototype.$onChange=function(p){for(var g=p.start,u=p.end,y=g.row,m=u.row,I=this.ranges,_=0,h=I.length;_<h&&!((E=I[_]).end.row>=y);_++);if(p.action=="insert")for(var f=m-y,w=-g.column+u.column;_<h&&!((E=I[_]).start.row>y);_++)E.start.row==y&&E.start.column>=g.column&&(E.start.column==g.column&&this.$bias<=0||(E.start.column+=w,E.start.row+=f)),E.end.row==y&&E.end.column>=g.column&&(E.end.column==g.column&&this.$bias<0||(E.end.column==g.column&&0<w&&_<h-1&&E.end.column>E.start.column&&E.end.column==I[_+1].start.column&&(E.end.column-=w),E.end.column+=w,E.end.row+=f));else for(var E,f=y-m,w=g.column-u.column;_<h&&!((E=I[_]).start.row>m);_++)E.end.row<m&&(y<E.end.row||y==E.end.row&&g.column<E.end.column)?(E.end.row=y,E.end.column=g.column):E.end.row==m?E.end.column<=u.column?(f||E.end.column>g.column)&&(E.end.column=g.column,E.end.row=g.row):(E.end.column+=w,E.end.row+=f):E.end.row>m&&(E.end.row+=f),E.start.row<m&&(y<E.start.row||y==E.start.row&&g.column<E.start.column)?(E.start.row=y,E.start.column=g.column):E.start.row==m?E.start.column<=u.column?(f||E.start.column>g.column)&&(E.start.column=g.column,E.start.row=g.row):(E.start.column+=w,E.start.row+=f):E.start.row>m&&(E.start.row+=f);if(f!=0&&_<h)for(;_<h;_++)(E=I[_]).start.row+=f,E.end.row+=f},b);function b(){this.ranges=[],this.$bias=1}S.prototype.comparePoints=x,C.RangeList=S}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],function(b,C,N){var x,S,p=this&&this.__extends||(x=function(m,I){return(x=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(_,h){_.__proto__=h}:function(_,h){for(var f in h)Object.prototype.hasOwnProperty.call(h,f)&&(_[f]=h[f])}))(m,I)},function(m,I){if(typeof I!="function"&&I!==null)throw new TypeError("Class extends value "+String(I)+" is not a constructor or null");function _(){this.constructor=m}x(m,I),m.prototype=I===null?Object.create(I):(_.prototype=I.prototype,new _)}),b=b("../range_list").RangeList,p=(p(g,S=b),g.prototype.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},g.prototype.setFoldLine=function(m){this.foldLine=m,this.subFolds.forEach(function(I){I.setFoldLine(m)})},g.prototype.clone=function(){var m=new g(this.range.clone(),this.placeholder);return this.subFolds.forEach(function(I){m.subFolds.push(I.clone())}),m.collapseChildren=this.collapseChildren,m}
357,g.prototype.addSubFold=function(m){if(!this.range.isEqual(m)){w=m,E=this.start,u(w.start,E),u(w.end,E);for(var I=m.start.row,_=m.start.column,h=0,f=-1;h<this.subFolds.length&&(f=this.subFolds[h].range.compare(I,_))==1;h++);var w=this.subFolds[h],E=0;if(f==0){if(w.range.containsRange(m))return w.addSubFold(m);E=1}for(var I=m.range.end.row,_=m.range.end.column,k=h,f=-1;k<this.subFolds.length&&(f=this.subFolds[k].range.compare(I,_))==1;k++);f==0&&k++;for(var L=this.subFolds.splice(h,k-h,m),M=f==0?L.length-1:L.length,B=E;B<M;B++)m.addSubFold(L[B]);return m.setFoldLine(this.foldLine),m}},g.prototype.restoreRange=function(m){return m=m,I=this.start,y(m.start,I),void y(m.end,I);var I},g);function g(m,I){var _=S.call(this)||this;return _.foldLine=null,_.placeholder=I,_.range=m,_.start=m.start,_.end=m.end,_.sameRow=m.start.row==m.end.row,_.subFolds=_.ranges=[],_}function u(m,I){m.row-=I.row,m.row==0&&(m.column-=I.column)}function y(m,I){m.row==0&&(m.column+=I.column),m.row+=I.row}C.Fold=p}),ace.define("ace/edit_session/folding",["require","exports","module","ace/range","ace/edit_session/fold_line","ace/edit_session/fold","ace/token_iterator","ace/mouse/mouse_event"],function(T,C,N){var x=T("../range").Range,S=T("./fold_line").FoldLine,b=T("./fold").Fold,p=T("../token_iterator").TokenIterator,g=T("../mouse/mouse_event").MouseEvent;C.Folding=function(){this.getFoldAt=function(u,y,m){var I=this.getFoldLine(u);if(!I)return null;for(var _=I.folds,h=0;h<_.length;h++){var f=_[h].range;if(f.contains(u,y)&&(m!=1||!f.isEnd(u,y)||f.isEmpty())&&(m!=-1||!f.isStart(u,y)||f.isEmpty()))return _[h]}},this.getFoldsInRange=function(u){var y=u.start,m=u.end,I=this.$foldData,_=[];y.column+=1,--m.column;for(var h=0;h<I.length;h++){var f=I[h].range.compareRange(u);if(f!=2){if(f==-2)break;for(var w=I[h].folds,E=0;E<w.length;E++){var k=w[E];if((f=k.range.compareRange(u))==-2)break;if(f!=2){if(f==42)break;_.push(k)}}}}return--y.column,m.column+=1,_},this.getFoldsInRangeList=function(u){var y;return Array.isArray(u)?(y=[],u.forEach(function(m){y=y.concat(this.getFoldsInRange(m))},this)):y=this.getFoldsInRange(u),y},this.getAllFolds=function(){for(var u=[],y=this.$foldData,m=0;m<y.length;m++)for(var I=0;I<y[m].folds.length;I++)u.push(y[m].folds[I]);return u},this.getFoldStringAt=function(u,y,m,I){if(!(I=I||this.getFoldLine(u)))return null;for(var _,h={end:{column:0}},f=0;f<I.folds.length;f++){var w,E=(w=I.folds[f]).range.compareEnd(u,y);if(E==-1){_=this.getLine(w.start.row).substring(h.end.column,w.start.column);break}if(E===0)return null;h=w}return _=_||this.getLine(w.start.row).substring(h.end.column),m==-1?_.substring(0,y-h.end.column):m==1?_.substring(y-h.end.column):_},this.getFoldLine=function(u,y){var m=this.$foldData,I=0;for((I=y?m.indexOf(y):I)==-1&&(I=0);I<m.length;I++){var _=m[I];if(_.start.row<=u&&_.end.row>=u)return _;if(_.end.row>u)return null}return null},this.getNextFoldLine=function(u,y){var m=this.$foldData,I=0;for((I=y?m.indexOf(y):I)==-1&&(I=0);I<m.length;I++){var _=m[I];if(_.end.row>=u)return _}return null},this.getFoldedRowCount=function(u,y){for(var m=this.$foldData,I=y-u+1,_=0;_<m.length;_++){var f=m[_],h=f.end.row,f=f.start.row;if(y<=h){f<y&&(u<=f?I-=y-f:I=0);break}u<=h&&(I-=u<=f?h-f:h-u+1)}return I},this.$addFoldLine=function(u){return this.$foldData.push(u),this.$foldData.sort(function(y,m){return y.start.row-m.start.row}),u},this.addFold=function(f,E){var m,I=this.$foldData,_=!1,h=(f instanceof b?m=f:(m=new b(E,f)).collapseChildren=E.collapseChildren,this.$clipRangeToDocument(m.range),m.start.row),f=m.start.column,w=m.end.row,E=m.end.column,k=this.getFoldAt(h,f,1),L=this.getFoldAt(w,E,-1);if(k&&L==k)return k.addSubFold(m);k&&!k.range.isStart(h,f)&&this.removeFold(k),L&&!L.range.isEnd(w,E)&&this.removeFold(L),f=this.getFoldsInRange(m.range),0<f.length&&(this.removeFolds(f),m.collapseChildren||f.forEach(function(z){m.addSubFold(z)}));for(var M=0;M<I.length;M++){var B=I[M];if(w==B.start.row){B.addFold(m),_=!0;break}if(h==B.end.row){if(B.addFold(m),_=!0,!m.sameRow){var j=I[M+1];if(j&&j.start.row==w){B.merge(j);break}}break}if(w<=B.start.row)break}return _||(B=this.$addFoldLine(new S(this.$foldData,m))),this.$useWrapMode?this.$updateWrapData(B.start.row,B.start.row):this.$updateRowLengthCache(B.start.row,B.start.row),this.$modified=!0,this._signal("changeFold",{data:m,action:"add"}),m},this.addFolds=function(u){u.forEach(function(y){this.addFold(y)},this)},this.removeFold=function(u){var y=u.foldLine,m=y.start.row,I=y.end.row,_=this.$foldData,h=y.folds;h.length==1?_.splice(_.indexOf(y),1):y.range.isEnd(u.end.row,u.end.column)?(h.pop(),y.end.row=h[h.length-1].end.row,y.end.column=h[h.length-1].end.column):y.range.isStart(u.start.row,u.start.column)?(h.shift(),y.start.row=h[0].start.row,y.start.column=h[0].start.column):u.sameRow?h.splice(h.indexOf(u),1):((h=(_=y.split(u.start.row,u.start.column)).folds).shift(),_.start.row=h[0].start.row,_.start.column=h[0].start.column),this.$updating||(this.$useWrapMode?this.$updateWrapData(m,I):this.$updateRowLengthCache(m,I)),this.$modified=!0,this._signal("changeFold",{data:u,action:"remove"})},this.removeFolds=function(u){for(var y=[],m=0;m<u.length;m++)y.push(u[m]);
357y.forEach(function(I){this.removeFold(I)},this),this.$modified=!0},this.expandFold=function(u){this.removeFold(u),u.subFolds.forEach(function(y){u.restoreRange(y),this.addFold(y)},this),0<u.collapseChildren&&this.foldAll(u.start.row+1,u.end.row,u.collapseChildren-1),u.subFolds=[]},this.expandFolds=function(u){u.forEach(function(y){this.expandFold(y)},this)},this.unfold=function(u,y){var m;if(u==null)m=new x(0,0,this.getLength(),0),y==null&&(y=!0);else if(typeof u=="number")m=new x(u,0,u,this.getLine(u).length);else if("row"in u)m=x.fromPoints(u,u);else{if(Array.isArray(u))return I=[],u.forEach(function(_){I=I.concat(this.unfold(_))},this),I;m=u}for(var I,u=I=this.getFoldsInRangeList(m);I.length==1&&x.comparePoints(I[0].start,m.start)<0&&0<x.comparePoints(I[0].end,m.end);)this.expandFolds(I),I=this.getFoldsInRangeList(m);if(y!=0?this.removeFolds(I):this.expandFolds(I),u.length)return u},this.isRowFolded=function(u,y){return!!this.getFoldLine(u,y)},this.getRowFoldEnd=function(u,y){return y=this.getFoldLine(u,y),y?y.end.row:u},this.getRowFoldStart=function(u,y){return y=this.getFoldLine(u,y),y?y.start.row:u},this.getFoldDisplayLine=function(u,y,m,I,_){I==null&&(I=u.start.row),_==null&&(_=0),y==null&&(y=u.end.row),m==null&&(m=this.getLine(y).length);var h=this.doc,f="";return u.walk(function(w,E,k,L){if(!(E<I)){if(E==I){if(k<_)return;L=Math.max(_,L)}f+=w??h.getLine(E).substring(L,k)}},y,m),f},this.getDisplayLine=function(u,y,m,I){var _=this.getFoldLine(u);return _?this.getFoldDisplayLine(_,u,y,m,I):(_=this.doc.getLine(u)).substring(I||0,y||_.length)},this.$cloneFoldData=function(){var u=[];return u=this.$foldData.map(function(y){return y=y.folds.map(function(m){return m.clone()}),new S(u,y)})},this.toggleFold=function(u){var y=this.selection.getRange();if(y.isEmpty()){var m,I=y.start;if(m=this.getFoldAt(I.row,I.column))return void this.expandFold(m);if(u)return void((_=this.getFoldLine(I.row))&&this.expandFolds(_.folds));(_=this.findMatchingBracket(I))?y.comparePoint(_)==1?y.end=_:(y.start=_,y.start.column++,y.end.column--):(_=this.findMatchingBracket({row:I.row,column:I.column+1}))?(y.comparePoint(_)==1?y.end=_:y.start=_,y.start.column++):y=this.getCommentFoldRange(I.row,I.column)||y}else{var _=this.getFoldsInRange(y);if(u&&_.length)return void this.expandFolds(_);_.length==1&&(m=_[0])}if((m=m||this.getFoldAt(y.start.row,y.start.column))&&m.range.toString()==y.toString())this.expandFold(m);else{if(I="...",!y.isMultiLine()){if((I=this.getTextRange(y)).length<4)return;I=I.trim().substring(0,2)+".."}this.addFold(I,y)}},this.getCommentFoldRange=function(u,y,m){var I=(f=new p(this,u,y)).getCurrentToken(),_=I&&I.type;if(I&&/^comment|string/.test(_)){(_=_.match(/comment|string/)[0])=="comment"&&(_+="|doc-start|\\.doc");var h=new RegExp(_),_=new x;if(m!=1){for(;(I=f.stepBackward())&&h.test(I.type););I=f.stepForward()}_.start.row=f.getCurrentTokenRow(),_.start.column=f.getCurrentTokenColumn()+I.value.length;var f=new p(this,u,y),w=this.getState(f.$row);if(m!=-1){var E=-1;do if(I=f.stepForward(),E==-1){var k=this.getState(f.$row);w.toString()!==k.toString()&&(E=f.$row)}else if(f.$row>E)break;while(I&&h.test(I.type));I=f.stepBackward()}else I=f.getCurrentToken();if(_.end.row=f.getCurrentTokenRow(),_.end.column=f.getCurrentTokenColumn(),!(_.start.row==_.end.row&&_.start.column>_.end.column))return _}},this.foldAll=function(u,y,m,I){m==null&&(m=1e5);var _=this.foldWidgets;if(_){y=y||this.getLength();for(var h,f=u=u||0;f<y;f++)_[f]==null&&(_[f]=this.getFoldWidget(f)),_[f]!="start"||I&&!I(f)||(h=this.getFoldWidgetRange(f))&&h.isMultiLine()&&h.end.row<=y&&h.start.row>=u&&(f=h.end.row,h.collapseChildren=m,this.addFold("...",h))}},this.foldToLevel=function(u){for(this.foldAll();0<u--;)this.unfold(null,!1)},this.foldAllComments=function(){var u=this;this.foldAll(null,null,null,function(y){for(var m=u.getTokens(y),I=0;I<m.length;I++){var _=m[I];if(_.type!="text"||!/^\s+$/.test(_.value))return!!/comment/.test(_.type)}})},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(u){if(!this.$foldStyles[u])throw new Error("invalid fold style: "+u+"["+Object.keys(this.$foldStyles).join(", ")+"]");this.$foldStyle!=u&&((this.$foldStyle=u)=="manual"&&this.unfold(),u=this.$foldMode,this.$setFolding(null),this.$setFolding(u))},this.$setFolding=function(u){this.$foldMode!=u&&(this.$foldMode=u,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),u&&this.$foldStyle!="manual"?(this.foldWidgets=[],this.getFoldWidget=u.getFoldWidget.bind(u,this,this.$foldStyle),this.getFoldWidgetRange=u.getFoldWidgetRange.bind(u,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)):this.foldWidgets=null)},this.getParentFoldRangeData=function(u,y){var m=this.foldWidgets;if(!m||y&&m[u])return{};for(var I=u-1;0<=I;){var _=m[I];if((_=_??(m[I]=this.getFoldWidget(I)))=="start"){var h=this.getFoldWidgetRange(I),f=f||h;if(h&&h.end.row>=u)break}I--}return{range:I!==-1&&h,firstRange:f}},this.onFoldWidgetClick=function(u,y){var m={children:(y=y instanceof g?y.domEvent:y).shiftKey,all:y.ctrlKey||y.metaKey,siblings:y.altKey};this.$toggleFoldWidget(u,m)||(u=y.target||y.srcElement)&&/ace_fold-widget/.test(u.className)&&(u.className+=" ace_invalid")},this.$toggleFoldWidget=function(u,y){var m,I,_,h;if(this.getFoldWidget)return m=this.getFoldWidget(u),I=this.getLine(u),(I=this.getFoldAt(u,(m=m==="end"?-1:1)==-1?0:I.length,m))?(y.children||y.all?this.removeFold(I):this.expandFold(I),I):(m=this.getFoldWidgetRange(u,!0))&&!m.isMultiLine()&&(I=this.getFoldAt(m.start.row,m.start.column,1))&&m.isEqual(I.range)?(this.removeFold(I),I):(y.siblings?((I=this.getParentFoldRangeData(u)).range&&(_=I.range.start.row+1,h=I.range.end.row),this.foldAll(_,h,y.all?1e4:0)):y.children?(h=m?m.end.row:this.getLength(),this.foldAll(u+1,h,y.all?1e4:0)):m&&(y.all&&(m.collapseChildren=1e4),this.addFold("...",m)),m)},this.toggleFoldWidget=function(u){var y,m=this.selection.getCursor().row;m=this.getRowFoldStart(m),!this.$toggleFoldWidget(m,{})&&(y=(y=this.getParentFoldRangeData(m,!0)).range||y.firstRange)&&(m=y.start.row,(m=this.getFoldAt(m,this.getLine(m).length,1))?this.removeFold(m):this.addFold("...",y))},this.updateFoldWidgets=function(u){var y=u.start.row,m=u.end.row-y;m==0?this.foldWidgets[y]=null:u.action=="remove"?this.foldWidgets.splice(y,1+m,null):((u=Array(1+m)).unshift(y,1),this.foldWidgets.splice.apply(this.foldWidgets,u))},this.tokenizerUpdateFoldWidgets=function(u){u=u.data,u.first!=u.last&&this.foldWidgets.length>u.first&&this.foldWidgets.splice(u.first,this.foldWidgets.length)}}}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(T,C,N){var x=T("../token_iterator").TokenIterator,S=T("../range").Range;C.BracketMatch=function(){this.findMatchingBracket=function(b,p){return b.column!=0&&(p=p||this.getLine(b.row).charAt(b.column-1))!=""&&(p=p.match(/([\(\[\{])|([\)\]\}])/))?p[1]?this.$findClosingBracket(p[1],b):this.$findOpeningBracket(p[2],b):null},this.getBracketRange=function(b){var p,g,u=this.getLine(b.row),y=!0,m=u.charAt(b.column-1),I=m&&m.match(/([\(\[\{])|([\)\]\}])/);if(I||(m=u.charAt(b.column),b={row:b.row,column:b.column+1},I=m&&m.match(/([\(\[\{])|([\)\]\}])/),y=!1),!I)return null;
357if(I[1]){if(!(g=this.$findClosingBracket(I[1],b)))return null;p=S.fromPoints(b,g),y||(p.end.column++,p.start.column--),p.cursor=p.end}else{if(!(g=this.$findOpeningBracket(I[2],b)))return null;p=S.fromPoints(g,b),y||(p.start.column++,p.end.column--),p.cursor=p.start}return p},this.getMatchingBracketRanges=function(b,p){var g=this.getLine(b.row),u=/([\(\[\{])|([\)\]\}])/,y=!p&&g.charAt(b.column-1),m=y&&y.match(u);return m||(y=(p===void 0||p)&&g.charAt(b.column),b={row:b.row,column:b.column+1},m=y&&y.match(u)),m?(p=new S(b.row,b.column-1,b.row,b.column),(g=m[1]?this.$findClosingBracket(m[1],b):this.$findOpeningBracket(m[2],b))?[p,new S(g.row,g.column,g.row,g.column+1)]:[p]):null},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(b,p,g){var u=this.$brackets[b],y=1,m=new x(this,p.row,p.column),I=m.getCurrentToken();if(I=I||m.stepForward()){g=g||new RegExp("(\\.?"+I.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+");for(var _=p.column-m.getCurrentTokenColumn()-2,h=I.value;;){for(;0<=_;){var f=h.charAt(_);if(f==u){if(--y==0)return{row:m.getCurrentTokenRow(),column:_+m.getCurrentTokenColumn()}}else f==b&&(y+=1);--_}for(;(I=m.stepBackward())&&!g.test(I.type););if(I==null)break;_=(h=I.value).length-1}return null}},this.$findClosingBracket=function(b,p,g){var u=this.$brackets[b],y=1,m=new x(this,p.row,p.column),I=m.getCurrentToken();if(I=I||m.stepForward()){g=g||new RegExp("(\\.?"+I.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+");for(var _=p.column-m.getCurrentTokenColumn();;){for(var h=I.value,f=h.length;_<f;){var w=h.charAt(_);if(w==u){if(--y==0)return{row:m.getCurrentTokenRow(),column:_+m.getCurrentTokenColumn()}}else w==b&&(y+=1);_+=1}for(;(I=m.stepForward())&&!g.test(I.type););if(I==null)break;_=0}return null}},this.getMatchingTags=function(p){var p=new x(this,p.row,p.column),g=this.$findTagName(p);if(g)return p.stepBackward().value==="<"?this.$findClosingTag(p,g):this.$findOpeningTag(p,g)},this.$findTagName=function(b){var p=b.getCurrentToken(),g=!1,u=!1;if(p&&p.type.indexOf("tag-name")===-1)for(;(p=u?b.stepBackward():b.stepForward())&&(p.value==="/>"?u=!0:p.type.indexOf("tag-name")!==-1&&(g=!0)),p&&!g;);return p},this.$findClosingTag=function(b,p){var g=p.value,u=p.value,y=0,m=new S(b.getCurrentTokenRow(),b.getCurrentTokenColumn(),b.getCurrentTokenRow(),b.getCurrentTokenColumn()+1),I=(p=b.stepForward(),new S(b.getCurrentTokenRow(),b.getCurrentTokenColumn(),b.getCurrentTokenRow(),b.getCurrentTokenColumn()+p.value.length)),_=!1;do{var h,f=p;if(f.type.indexOf("tag-close")===-1||_||(h=new S(b.getCurrentTokenRow(),b.getCurrentTokenColumn(),b.getCurrentTokenRow(),b.getCurrentTokenColumn()+1),_=!0),p=b.stepForward())if(p.value!==">"||_||(h=new S(b.getCurrentTokenRow(),b.getCurrentTokenColumn(),b.getCurrentTokenRow(),b.getCurrentTokenColumn()+1),_=!0),p.type.indexOf("tag-name")!==-1){if(u===(g=p.value)){if(f.value==="<")y++;else if(f.value==="</"&&--y<0){b.stepBackward();var w=new S(b.getCurrentTokenRow(),b.getCurrentTokenColumn(),b.getCurrentTokenRow(),b.getCurrentTokenColumn()+2),E=(p=b.stepForward(),new S(b.getCurrentTokenRow(),b.getCurrentTokenColumn(),b.getCurrentTokenRow(),b.getCurrentTokenColumn()+p.value.length));if(!(p=p.type.indexOf("tag-close")===-1?b.stepForward():p)||p.value!==">")return;var k=new S(b.getCurrentTokenRow(),b.getCurrentTokenColumn(),b.getCurrentTokenRow(),b.getCurrentTokenColumn()+1)}}}else u===g&&p.value==="/>"&&--y<0&&(k=E=w=new S(b.getCurrentTokenRow(),b.getCurrentTokenColumn(),b.getCurrentTokenRow(),b.getCurrentTokenColumn()+2),h=new S(I.end.row,I.end.column,I.end.row,I.end.column+1))}while(p&&0<=y);if(m&&h&&w&&k&&I&&E)return{openTag:new S(m.start.row,m.start.column,h.end.row,h.end.column),closeTag:new S(w.start.row,w.start.column,k.end.row,k.end.column),openTagName:I,closeTagName:E}},this.$findOpeningTag=function(b,p){var g,u=b.getCurrentToken(),y=p.value,m=0,I=b.getCurrentTokenRow(),_=b.getCurrentTokenColumn(),h=new S(I,_,I,_+2),f=(b.stepForward(),new S(b.getCurrentTokenRow(),b.getCurrentTokenColumn(),b.getCurrentTokenRow(),b.getCurrentTokenColumn()+p.value.length));if((p=p.type.indexOf("tag-close")===-1?b.stepForward():p)&&p.value===">"){var w=new S(b.getCurrentTokenRow(),b.getCurrentTokenColumn(),b.getCurrentTokenRow(),b.getCurrentTokenColumn()+1);b.stepBackward(),b.stepBackward();do if(p=u,I=b.getCurrentTokenRow(),g=(_=b.getCurrentTokenColumn())+p.value.length,u=b.stepBackward(),p){if(p.type.indexOf("tag-name")!==-1){if(y===p.value)if(u.value==="<"){if(0<++m){for(var E=new S(I,_,I,g),k=new S(b.getCurrentTokenRow(),b.getCurrentTokenColumn(),b.getCurrentTokenRow(),b.getCurrentTokenColumn()+1);(p=b.stepForward())&&p.value!==">";);var L=new S(b.getCurrentTokenRow(),b.getCurrentTokenColumn(),b.getCurrentTokenRow(),b.getCurrentTokenColumn()+1)}}else u.value==="</"&&m--}else if(p.value==="/>"){for(var M=0,B=u;B;){if(B.type.indexOf("tag-name")!==-1&&B.value===y){m--;break}if(B.value==="<")break;B=b.stepBackward(),M++}for(var j=0;j<M;j++)b.stepForward()}}while(u&&m<=0);return k&&L&&h&&w&&E&&f?{openTag:new S(k.start.row,k.start.column,L.end.row,L.end.column),closeTag:new S(h.start.row,h.start.column,w.end.row,w.end.column),openTagName:E,closeTagName:f}:void 0}}}}),ace.define("ace/edit_session",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/bidihandler","ace/config","ace/lib/event_emitter","ace/selection","ace/mode/text","ace/range","ace/line_widgets","ace/document","ace/background_tokenizer","ace/search_highlight","ace/undomanager","ace/edit_session/folding","ace/edit_session/bracket_match"],function(T,C,N){var x=T("./lib/oop"),S=T("./lib/lang"),b=T("./bidihandler").BidiHandler,p=T("./config"),g=T("./lib/event_emitter").EventEmitter,u=T("./selection").Selection,y=T("./mode/text").Mode,m=T("./range").Range,I=T("./line_widgets").LineWidgets,_=T("./document").Document,h=T("./background_tokenizer").Backgroun
357dTokenizer,f=T("./search_highlight").SearchHighlight,w=T("./undomanager").UndoManager,E=(k.prototype.$initOperationListeners=function(){var A=this;this.curOp=null,this.on("change",function(){A.curOp||(A.startOperation(),A.curOp.selectionBefore=A.$lastSel),A.curOp.docChanged=!0},!0),this.on("changeSelection",function(){A.curOp||(A.startOperation(),A.curOp.selectionBefore=A.$lastSel),A.curOp.selectionChanged=!0},!0),this.$operationResetTimer=S.delayedCall(this.endOperation.bind(this,!0))},k.prototype.startOperation=function(A){if(this.curOp){if(!A||this.curOp.command)return;this.prevOp=this.curOp}A=A||{},this.$operationResetTimer.schedule(),this.curOp={command:A.command||{},args:A.args},this.curOp.selectionBefore=this.selection.toJSON(),this._signal("startOperation",A)},k.prototype.endOperation=function(A){var W;this.curOp&&(A&&A.returnValue===!1?(this.curOp=null,this._signal("endOperation",A)):A==1&&this.curOp.command&&this.curOp.command.name=="mouse"||(W=this.selection.toJSON(),this.curOp.selectionAfter=W,this.$lastSel=this.selection.toJSON(),this.getUndoManager().addSelection(W),this._signal("beforeEndOperation"),this.prevOp=this.curOp,this.curOp=null,this._signal("endOperation",A)))},k.prototype.setDocument=function(A){this.doc&&this.doc.off("change",this.$onChange),(this.doc=A).on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},k.prototype.getDocument=function(){return this.doc},Object.defineProperty(k.prototype,"widgetManager",{get:function(){var A=new I(this);return this.widgetManager=A,this.$editor&&A.attach(this.$editor),A},set:function(A){Object.defineProperty(this,"widgetManager",{writable:!0,enumerable:!0,configurable:!0,value:A})},enumerable:!1,configurable:!0}),k.prototype.$resetRowCache=function(A){var W;A?(W=this.$docRowCache.length,(A=this.$getRowCacheIndex(this.$docRowCache,A)+1)<W&&(this.$docRowCache.splice(A,W),this.$screenRowCache.splice(A,W))):(this.$docRowCache=[],this.$screenRowCache=[])},k.prototype.$getRowCacheIndex=function(A,W){for(var F=0,U=A.length-1;F<=U;){var Y=F+U>>1,ee=A[Y];if(ee<W)F=1+Y;else{if(!(W<ee))return Y;U=Y-1}}return F-1},k.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},k.prototype.onChangeFold=function(A){A=A.data,this.$resetRowCache(A.start.row)},k.prototype.onChange=function(A){this.$modified=!0,this.$bidiHandler.onChange(A),this.$resetRowCache(A.start.row);var W=this.$updateInternalDataOnChange(A);!this.$fromUndo&&this.$undoManager&&(W&&W.length&&(this.$undoManager.add({action:"removeFolds",folds:W},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(A,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(A),this._signal("change",A)},k.prototype.onSelectionChange=function(){this._signal("changeSelection")},k.prototype.setValue=function(A){this.doc.setValue(A),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},k.fromJSON=function(A){typeof A=="string"&&(A=JSON.parse(A));var W=new w,F=(W.$undoStack=A.history.undo,W.$redoStack=A.history.redo,W.mark=A.history.mark,W.$rev=A.history.rev,new k(A.value));return A.folds.forEach(function(U){F.addFold("...",m.fromPoints(U.start,U.end))}),F.setAnnotations(A.annotations),F.setBreakpoints(A.breakpoints),F.setMode(A.mode),F.setScrollLeft(A.scrollLeft),F.setScrollTop(A.scrollTop),F.setUndoManager(W),F.selection.fromJSON(A.selection),F},k.prototype.toJSON=function(){return{annotations:this.$annotations,breakpoints:this.$breakpoints,folds:this.getAllFolds().map(function(A){return A.range}),history:this.getUndoManager(),mode:this.$mode.$id,scrollLeft:this.$scrollLeft,scrollTop:this.$scrollTop,selection:this.selection.toJSON(),value:this.doc.getValue()}},k.prototype.toString=function(){return this.doc.getValue()},k.prototype.getSelection=function(){return this.selection},k.prototype.getState=function(A){return this.bgTokenizer.getState(A)},k.prototype.getTokens=function(A){return this.bgTokenizer.getTokens(A)},k.prototype.getTokenAt=function(A,W){var F=this.bgTokenizer.getTokens(A),Y=0;
357if(W==null)var U=F.length-1,Y=this.getLine(A).length;else for(U=0;U<F.length&&!(W<=(Y+=F[U].value.length));U++);return(A=F[U])?(A.index=U,A.start=Y-A.value.length,A):null},k.prototype.setUndoManager=function(A){var W;this.$undoManager=A,this.$informUndoManager&&this.$informUndoManager.cancel(),A?(A.addSession(W=this),this.$syncInformUndoManager=function(){W.$informUndoManager.cancel(),W.mergeUndoDeltas=!1},this.$informUndoManager=S.delayedCall(this.$syncInformUndoManager)):this.$syncInformUndoManager=function(){}},k.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},k.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},k.prototype.getTabString=function(){return this.getUseSoftTabs()?S.stringRepeat(" ",this.getTabSize()):" "},k.prototype.setUseSoftTabs=function(A){this.setOption("useSoftTabs",A)},k.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},k.prototype.setTabSize=function(A){this.setOption("tabSize",A)},k.prototype.getTabSize=function(){return this.$tabSize},k.prototype.isTabStop=function(A){return this.$useSoftTabs&&A.column%this.$tabSize==0},k.prototype.setNavigateWithinSoftTabs=function(A){this.setOption("navigateWithinSoftTabs",A)},k.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs}
357,k.prototype.setOverwrite=function(A){this.setOption("overwrite",A)},k.prototype.getOverwrite=function(){return this.$overwrite},k.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},k.prototype.addGutterDecoration=function(A,W){this.$decorations[A]||(this.$decorations[A]=""),this.$decorations[A]+=" "+W,this._signal("changeBreakpoint",{})},k.prototype.removeGutterCustomWidget=function(A){this.$editor&&this.$editor.renderer.$gutterLayer.$removeCustomWidget(A)},k.prototype.addGutterCustomWidget=function(A,W){this.$editor&&this.$editor.renderer.$gutterLayer.$addCustomWidget(A,W)},k.prototype.removeGutterDecoration=function(A,W){this.$decorations[A]=(this.$decorations[A]||"").replace(" "+W,""),this._signal("changeBreakpoint",{})},k.prototype.getBreakpoints=function(){return this.$breakpoints},k.prototype.setBreakpoints=function(A){this.$breakpoints=[];for(var W=0;W<A.length;W++)this.$breakpoints[A[W]]="ace_breakpoint";this._signal("changeBreakpoint",{})},k.prototype.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},k.prototype.setBreakpoint=function(A,W){(W=W===void 0?"ace_breakpoint":W)?this.$breakpoints[A]=W:delete this.$breakpoints[A],this._signal("changeBreakpoint",{})},k.prototype.clearBreakpoint=function(A){delete this.$breakpoints[A],this._signal("changeBreakpoint",{})},k.prototype.addMarker=function(ee,W,F,U){var Y=this.$markerId++,ee={range:ee,type:F||"line",renderer:typeof F=="function"?F:null,clazz:W,inFront:!!U,id:Y};return U?(this.$frontMarkers[Y]=ee,this._signal("changeFrontMarker")):(this.$backMarkers[Y]=ee,this._signal("changeBackMarker")),Y},k.prototype.addDynamicMarker=function(A,W){var F;if(A.update)return F=this.$markerId++,A.id=F,A.inFront=!!W,W?(this.$frontMarkers[F]=A,this._signal("changeFrontMarker")):(this.$backMarkers[F]=A,this._signal("changeBackMarker")),A},k.prototype.removeMarker=function(A){var W=this.$frontMarkers[A]||this.$backMarkers[A];W&&(delete(W.inFront?this.$frontMarkers:this.$backMarkers)[A],this._signal(W.inFront?"changeFrontMarker":"changeBackMarker"))},k.prototype.getMarkers=function(A){return A?this.$frontMarkers:this.$backMarkers},k.prototype.highlight=function(A){var W;this.$searchHighlight||(W=new f(null,"ace_selected-word","text"),this.$searchHighlight=this.addDynamicMarker(W)),this.$searchHighlight.setRegexp(A)},k.prototype.highlightLines=function(A,W,F,U){return typeof W!="number"&&(F=W,W=A),F=F||"ace_step",A=new m(A,0,W,1/0),A.id=this.addMarker(A,F,"fullLine",U),A},k.prototype.setAnnotations=function(A){this.$annotations=A,this._signal("changeAnnotation",{})},k.prototype.getAnnotations=function(){return this.$annotations||[]},k.prototype.clearAnnotations=function(){this.setAnnotations([])},k.prototype.$detectNewLine=function(A){A=A.match(/^.*?(\r?\n)/m),this.$autoNewLine=A?A[1]:` 358`},k.prototype.getWordRange=function(A,W){var F,U=this.getLine(A),Y=!1,ee=(F=(Y=(Y=0<W?!!U.charAt(W-1).match(this.tokenRe):Y)||!!U.charAt(W).match(this.tokenRe))?this.tokenRe:/^\s+$/.test(U.slice(W-1,W+1))?/\s/:this.nonTokenRe,W);if(0<ee){for(;0<=--ee&&U.charAt(ee).match(F););ee++}for(var X=W;X<U.length&&U.charAt(X).match(F);)X++;return new m(A,ee,A,X)},k.prototype.getAWordRange=function(A,W){for(var F=this.getWordRange(A,W),U=this.getLine(F.end.row);U.charAt(F.end.column).match(/[ \t]/);)F.end.column+=1;return F},k.prototype.setNewLineMode=function(A){this.doc.setNewLineMode(A)},k.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},k.prototype.setUseWorker=function(A){this.setOption("useWorker",A)},k.prototype.getUseWorker=function(){return this.$useWorker},k.prototype.onReloadTokenizer=function(A){var W=A.data;this.bgTokenizer.start(W.first),this._signal("tokenizerUpdate",A)},k.prototype.setMode=function(A,W){if(A&&typeof A=="object"){if(A.getTokenizer)return this.$onChangeMode(A);var F=A,U=F.path}else U=A||"ace/mode/text";this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new y),this.$modes[U]&&!F?(this.$onChangeMode(this.$modes[U]),W&&W()):(this.$modeId=U,p.loadModule(["mode",U],(function(Y){if(!this.destroyed){
358if(this.$modeId!==U)return W&&W();this.$modes[U]&&!F?this.$onChangeMode(this.$modes[U]):Y&&Y.Mode&&(Y=new Y.Mode(F),F||((this.$modes[U]=Y).$id=U),this.$onChangeMode(Y)),W&&W()}}).bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0))},k.prototype.$onChangeMode=function(A,W){var F,U,Y;W||(this.$modeId=A.$id),this.$mode===A||(F=this.$mode,this.$mode=A,this.$stopWorker(),this.$useWorker&&this.$startWorker(),(U=A.getTokenizer()).on!==void 0&&(Y=this.onReloadTokenizer.bind(this),U.on("update",Y)),this.bgTokenizer.setTokenizer(U),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=A.tokenRe,this.nonTokenRe=A.nonTokenRe,W)||(A.attachToSession&&A.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(A.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:F,mode:A}))},k.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},k.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(A){p.warn("Could not load worker",A),this.$worker=null}},k.prototype.getMode=function(){return this.$mode},k.prototype.setScrollTop=function(A){this.$scrollTop===A||isNaN(A)||(this.$scrollTop=A,this._signal("changeScrollTop",A))},k.prototype.getScrollTop=function(){return this.$scrollTop},k.prototype.setScrollLeft=function(A){this.$scrollLeft===A||isNaN(A)||(this.$scrollLeft=A,this._signal("changeScrollLeft",A))},k.prototype.getScrollLeft=function(){return this.$scrollLeft},k.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},k.prototype.getLineWidgetMaxWidth=function(){var A;return this.lineWidgetsWidth!=null?this.lineWidgetsWidth:(A=0,this.lineWidgets.forEach(function(W){W&&W.screenWidth>A&&(A=W.screenWidth)}),this.lineWidgetWidth=A)},k.prototype.$computeWidth=function(A){if(this.$modified||A){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var W=this.doc.getAllLines(),F=this.$rowLengthCache,U=0,Y=0,ee=this.$foldData[Y],X=ee?ee.start.row:1/0,q=W.length,ne=0;ne<q;ne++){if(X<ne){if(q<=(ne=ee.end.row+1))break;X=(ee=this.$foldData[Y++])?ee.start.row:1/0}F[ne]==null&&(F[ne]=this.$getStringScreenWidth(W[ne])[0]),F[ne]>U&&(U=F[ne])}this.screenWidth=U}},k.prototype.getLine=function(A){return this.doc.getLine(A)},k.prototype.getLines=function(A,W){return this.doc.getLines(A,W)},k.prototype.getLength=function(){return this.doc.getLength()},k.prototype.getTextRange=function(A){return this.doc.getTextRange(A||this.selection.getRange())},k.prototype.insert=function(A,W){return this.doc.insert(A,W)},k.prototype.remove=function(A){return this.doc.remove(A)},k.prototype.removeFullLines=function(A,W){return this.doc.removeFullLines(A,W)},k.prototype.undoChanges=function(A,W){if(A.length){this.$fromUndo=!0;for(var F=A.length-1;F!=-1;F--){var U=A[F];U.action=="insert"||U.action=="remove"?this.doc.revertDelta(U):U.folds&&this.addFolds(U.folds)}!W&&this.$undoSelect&&(A.selectionBefore?this.selection.fromJSON(A.selectionBefore):this.selection.setRange(this.$getUndoSelection(A,!0))),this.$fromUndo=!1}},k.prototype.redoChanges=function(A,W){if(A.length){this.$fromUndo=!0;for(var F=0;F<A.length;F++){var U=A[F];U.action!="insert"&&U.action!="remove"||this.doc.$safeApplyDelta(U)}!W&&this.$undoSelect&&(A.selectionAfter?this.selection.fromJSON(A.selectionAfter):this.selection.setRange(this.$getUndoSelection(A,!1))),this.$fromUndo=!1}},k.prototype.setUndoSelect=function(A){this.$undoSelect=A},k.prototype.$getUndoSelection=function(A,W){function F(q){return W?q.action!=="insert":q.action==="insert"}for(var U,Y,ee=0;ee<A.length;ee++){var X=A[ee];X.start&&(U?F(X)?(Y=X.start,U.compare(Y.row,Y.column)==-1&&U.setStart(Y),Y=X.end,U.compare(Y.row,Y.column)==1&&U.setEnd(Y)):(Y=X.start,U.compare(Y.row,Y.column)==-1&&(U=m.fromPoints(X.start,X.start))):U=F(X)?m.fromPoints(X.start,X.end):m.fromPoints(X.start,X.start))}return U},k.prototype.replace=function(A,W){return this.doc.replace(A,W)},k.prototype.moveText=function(A,ne,F){var U,Y,ee,X=this.getTextRange(A),q=this.getFoldsInRange(A),ne=m.fromPoints(ne,ne);return F||(this.remove(A),Y=A.start.row-A.end.row,(ee=Y?-A.end.column:A.start.column-A.end.column)&&(ne.start.row==A.end.row&&ne.start.column>A.end.column&&(ne.start.column+=ee),ne.end.row==A.end.row)&&ne.end.column>A.end.column&&(ne.end.column+=ee),Y&&ne.start.row>=A.end.row&&(ne.start.row+=Y,ne.end.row+=Y)),ne.end=this.insert(ne.start,X),q.length&&(U=A.start,F=ne.start,Y=F.row-U.row,ee=F.column-U.column,this.addFolds(q.map(function(se){return(se=se.clone()).start.row==U.row&&(se.start.column+=ee),se.end.row==U.row&&(se.end.column+=ee),se.start.row+=Y,se.end.row+=Y,se}))),ne},k.prototype.indentRows=function(A,W,F){F=F.replace(/\t/g,this.getTabString());for(var U=A;U<=W;U++)this.doc.insertInLine({row:U,column:0},F)},k.prototype.outdentRows=function(A){for(var W=A.collapseRows(),F=new m(0,0,0,0),U=this.getTabSize(),Y=W.start.row;Y<=W.end.row;++Y){var ee=this.getLine(Y);F.start.row=Y,F.end.row=Y;for(var X=0;X<U&&ee.charAt(X)==" ";++X);X<U&&ee.charAt(X)==" "?(F.start.column=X,F.end.column=X+1):(F.start.column=0,F.end.column=X),this.remove(F)}},k.prototype.$moveLines=function(A,W,ee){if(A=this.getRowFoldStart(A),W=this.getRowFoldEnd(W),ee<0){if((Y=this.getRowFoldStart(A+ee))<0)return 0;var U=Y-A}else if(0<ee){if((Y=this.getRowFoldEnd(W+ee))>this.doc.getLength()-1)return 0;U=Y-W}else A=this.$clipRowToDocument(A),U=(W=this.$clipRowToDocument(W))-A+1;var Y=new m(A,0,W,Number.MAX_VALUE),Y=this.getFoldsInRange(Y).map(function(X){return(X=X.clone()).start.row+=U,X.end.row+=U,X}),ee=ee==0?this.doc.getLines(A,W):this.doc.removeFullLines(A,W);return this.doc.insertFullLines(A+U,ee),Y.length&&this.addFolds(Y),U},k.prototype.moveLinesUp=function(A,W){return this.$moveLines(A,W,-1)},k.prototype.moveLinesDown=function(A,W){return this.$moveLines(A,W,1)},k.prototype.duplicateLines=function(A,W){return this.$moveLines(A,W,0)},k.prototype.$clipRowToDocument=function(A){return Math.max(0,Math.min(A,this.doc.getLength()-1))},k.prototype.$clipColumnToRow=function(A,W){return W<0?0:Math.min(this.doc.getLine(A).length,W)},k.prototype.$clipPositionToDocument=function(A,W){var F;return W=Math.max(0,W),W=A<0?A=0:(F=this.doc.getLength())<=A?this.doc.getLine(A=F-1).length:Math.min(this.doc.getLine(A).length,W),{row:A,column:W}},k.prototype.$clipRangeToDocument=function(A){A.start.row<0?(A.start.row=0,A.start.column=0):A.start.column=this.$clipColumnToRow(A.start.row,A.start.column);var W=this.doc.getLength()-1;return A.end.row>W?(A.end.row=W,A.end.column=this.doc.getLine(W).length):A.end.column=this.$clipColumnToRow(A.end.row,A.end.column),A},k.prototype.setUseWrapMode=function(A){A!=this.$useWrapMode&&(this.$useWrapMode=A,this.$modified=!0,this.$resetRowCache(0),A&&(A=this.getLength(),this.$wrapData=Array(A),this.$updateWrapData(0,A-1)),this._signal("changeWrapMode"))},k.prototype.getUseWrapMode=function(){return this.$useWrapMode},k.prototype.setWrapLimitRange=function(A,W){this.$wrapLimitRange.min===A&&this.$wrapLimitRange.max===W||(this.$wrapLimitRange={min:A,max:W},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},k.prototype.adjustWrapLimit=function(A,U){var F=this.$wrapLimitRange,U=(F.max<0&&(F={min:U,max:U}),this.$constrainWrapLimit(A,F.min,F.max));return U!=this.$wrapLimit&&1<U&&(this.$wrapLimit=U,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0)},k.prototype.$constrainWrapLimit=function(A,W,F){return W&&(A=Math.max(W,A)),A=F?Math.min(F,A):A},k.prototype.getWrapLimit=function(){return this.$wrapLimit},k.prototype.setWrapLimit=function(A){this.setWrapLimitRange(A,A)},k.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},k.prototype.$updateInternalDataOnChange=function(A){var W=this.$useWrapMode,F=A.action,U=A.start,Y=A.end,ee=U.row,X=Y.row,q=X-ee,ne=null;if(this.$updating=!0,q!=0)if(F==="remove"){this[W?"$wrapData":"$rowLengthCache"].splice(ee,q);var se=this.$foldData,ne=this.getFoldsInRange(A);this.removeFolds(ne);var he=0;for((de=this.getFoldLine(Y.row))&&(de.addRemoveChars(Y.row,Y.column,U.column-Y.column),de.shiftRow(-q),(ie=this.getFoldLine(ee))&&ie!==de&&(ie.merge(de),de=ie),he=se.indexOf(de)+1);he<se.length;he++)(de=se[he]).start.row>=Y.row&&de.shiftRow(-q);X=ee}else{var ie=Array(q),oe=(ie.unshift(ee,0),W?this.$wrapData:this.$rowLengthCache),se=(oe.splice.apply(oe,ie),this.$foldData),he=0;for((de=this.getFoldLine(ee))&&((oe=de.range.compareInside(U.row,U.column))==0?(de=de.split(U.row,U.column))&&(de.shiftRow(q),de.addRemoveChars(X,0,Y.column-U.column)):oe==-1&&(de.addRemoveChars(ee,0,Y.column-U.column),de.shiftRow(q)),he=se.indexOf(de)+1);he<se.length;he++)(de=se[he]).start.row>=ee&&de.shiftRow(q)}else{var de,q=Math.abs(A.start.column-A.end.column);F==="remove"&&(ne=this.getFoldsInRange(A),this.removeFolds(ne),q=-q),(de=this.getFoldLine(ee))&&de.addRemoveChars(ee,U.column,q)}return W&&this.$wrapData.length!=this.doc.getLength(),this.$updating=!1,W?this.$updateWrapData(ee,X):this.$updateRowLengthCache(ee,X),ne},k.prototype.$updateRowLengthCache=function(A,W){this.$rowLengthCache[A]=null,this.$rowLengthCache[W]=null},k.prototype.$updateWrapData=function(A,W){var F,U,Y=this.doc.getAllLines(),ee=this.getTabSize(),X=this.$wrapData,q=this.$wrapLimit,ne=A;for(W=Math.min(W,Y.length-1);ne<=W;
358)(U=this.getFoldLine(ne,U))?(F=[],U.walk((function(se,he,ie,oe){var de;if(se!=null){(de=this.$getDisplayTokens(se,F.length))[0]=B;for(var me=1;me<de.length;me++)de[me]=j}else de=this.$getDisplayTokens(Y[he].substring(oe,ie),F.length);F=F.concat(de)}).bind(this),U.end.row,Y[U.end.row].length+1),X[U.start.row]=this.$computeWrapSplits(F,q,ee),ne=U.end.row+1):(F=this.$getDisplayTokens(Y[ne]),X[ne]=this.$computeWrapSplits(F,q,ee),ne++)},k.prototype.$computeWrapSplits=function(A,W,F){if(A.length==0)return[];var U=[],Y=A.length,ee=0,X=0,q=this.$wrapAsCode,ne=this.$indentedSoftWrap,se=W<=Math.max(2*F,8)||ne===!1?0:Math.floor(W/2);function he(me){for(var be=me-ee,Se=ee;Se<me;Se++){var V=A[Se];V!==12&&V!==2||--be}U.length||(ie=(()=>{var te=0;if(se===0)return te;if(ne)for(var re=0;re<A.length;re++){var le=A[re];if(le==Q)te+=1;else if(le==D)te+=F;else if(le!=K)break}return q&&ne!==!1&&(te+=F),Math.min(te,se)})(),U.indent=ie),X+=be,U.push(X),ee=me}for(var ie=0;W-ie<Y-ee;){var oe=ee+W-ie;if(A[oe-1]>=Q&&A[oe]>=Q)he(oe);else if(A[oe]==B||A[oe]==j){for(;oe!=ee-1&&A[oe]!=B;oe--);if(!(ee<oe)){for(oe=ee+W;oe<A.length&&A[oe]==j;oe++);if(oe==A.length)break}he(oe)}else{for(var de=Math.max(oe-(W-(W>>2)),ee-1);de<oe&&A[oe]<B;)oe--;if(q){for(;de<oe&&A[oe]<B;)oe--;for(;de<oe&&A[oe]==z;)oe--}else for(;de<oe&&A[oe]<Q;)oe--;de<oe?he(++oe):(A[oe=ee+W]==M&&oe--,he(oe-ie))}}return U},k.prototype.$getDisplayTokens=function(A,W){var F,U=[];W=W||0;for(var Y=0;Y<A.length;Y++){var ee=A.charCodeAt(Y);if(ee==9){F=this.getScreenTabSize(U.length+W),U.push(D);for(var X=1;X<F;X++)U.push(K)}else ee==32?U.push(Q):39<ee&&ee<48||57<ee&&ee<64?U.push(z):4352<=ee&&H(ee)?U.push(L,M):U.push(L)}return U},k.prototype.$getStringScreenWidth=function(A,W,F){if(W==0)return[0,0];var U,Y;for(W==null&&(W=1/0),F=F||0,Y=0;Y<A.length&&((U=A.charCodeAt(Y))==9?F+=this.getScreenTabSize(F):4352<=U&&H(U)?F+=2:F+=1,!(W<F));Y++);return[F,Y]},k.prototype.getRowLength=function(A){var W=1;return this.lineWidgets&&(W+=this.lineWidgets[A]&&this.lineWidgets[A].rowCount||0),this.$useWrapMode&&this.$wrapData[A]?this.$wrapData[A].length+W:W},k.prototype.getRowLineCount=function(A){return this.$useWrapMode&&this.$wrapData[A]?this.$wrapData[A].length+1:1},k.prototype.getRowWrapIndent=function(A){var W;return this.$useWrapMode&&(A=this.screenToDocumentPosition(A,Number.MAX_VALUE),(W=this.$wrapData[A.row]).length)&&W[0]<A.column?W.indent:0},k.prototype.getScreenLastRowColumn=function(A){return A=this.screenToDocumentPosition(A,Number.MAX_VALUE),this.documentToScreenColumn(A.row,A.column)},k.prototype.getDocumentLastRowColumn=function(A,W){return A=this.documentToScreenRow(A,W),this.getScreenLastRowColumn(A)},k.prototype.getDocumentLastRowColumnPosition=function(A,W){return A=this.documentToScreenRow(A,W),this.screenToDocumentPosition(A,Number.MAX_VALUE/10)},k.prototype.getRowSplitData=function(A){if(this.$useWrapMode)return this.$wrapData[A]},k.prototype.getScreenTabSize=function(A){return this.$tabSize-(A%this.$tabSize|0)},k.prototype.screenToDocumentRow=function(A,W){return this.screenToDocumentPosition(A,W).row},k.prototype.screenToDocumentColumn=function(A,W){return this.screenToDocumentPosition(A,W).column},k.prototype.screenToDocumentPosition=function(A,W,F){if(A<0)return{row:0,column:0};for(var U,Y,ee,X=0,q=0,ne=0,se=0,he=this.$screenRowCache,ie=this.$getRowCacheIndex(he,A),oe=he.length,de=(ee=oe&&0<=ie?(ne=he[ie],X=this.$docRowCache[ie],A>he[oe-1]):!oe,this.getLength()-1),me=this.getNextFoldLine(X),be=me?me.start.row:1/0;ne<=A&&!(A<ne+(se=this.getRowLength(X))||de<=X);)ne+=se,be<++X&&(X=me.end.row+1,be=(me=this.getNextFoldLine(X,me))?me.start.row:1/0),ee&&(this.$docRowCache.push(X),this.$screenRowCache.push(ne));if(me&&me.start.row<=X)U=this.getFoldDisplayLine(me),X=me.start.row;else{if(ne+se<=A||de<X)return{row:de,column:this.getLine(de).length};U=this.getLine(X),me=null}return ie=0,he=Math.floor(A-ne),this.$useWrapMode&&(oe=this.$wrapData[X])&&(Y=oe[he],0<he)&&oe.length&&(ie=oe.indent,q=oe[he-1]||oe[oe.length-1],U=U.substring(q)),F!==void 0&&this.$bidiHandler.isBidiRow(ne+he,X,he)&&(W=this.$bidiHandler.offsetToCol(F)),q+=this.$getStringScreenWidth(U,W-ie)[1],this.$useWrapMode&&Y<=q&&(q=Y-1),me?me.idxToPosition(q):{row:X,column:q}}
358,k.prototype.documentToScreenPosition=function(A,W){var ie=W===void 0?this.$clipPositionToDocument(A.row,A.column):this.$clipPositionToDocument(A,W),F=(A=ie.row,W=ie.column,0),ie=null;(X=this.getFoldAt(A,W,1))&&(A=X.start.row,W=X.start.column);for(var U,Y,ee=0,X=this.$docRowCache,oe=this.$getRowCacheIndex(X,A),q=X.length,ne=(Y=q&&0<=oe?(ee=X[oe],F=this.$screenRowCache[oe],A>X[q-1]):!q,this.getNextFoldLine(ee)),se=ne?ne.start.row:1/0;ee<A;){if(se<=ee){if(A<(U=ne.end.row+1))break;se=(ne=this.getNextFoldLine(U,ne))?ne.start.row:1/0}else U=ee+1;F+=this.getRowLength(ee),ee=U,Y&&(this.$docRowCache.push(ee),this.$screenRowCache.push(F))}var he="",ie=ne&&se<=ee?(he=this.getFoldDisplayLine(ne,A,W),ne.start.row):(he=this.getLine(A).substring(0,W),A),oe=0;if(this.$useWrapMode){var de=this.$wrapData[ie];if(de){for(var me=0;he.length>=de[me];)F++,me++;he=he.substring(de[me-1]||0,he.length),oe=0<me?de.indent:0}}return this.lineWidgets&&this.lineWidgets[ee]&&this.lineWidgets[ee].rowsAbove&&(F+=this.lineWidgets[ee].rowsAbove),{row:F,column:oe+this.$getStringScreenWidth(he)[0]}},k.prototype.documentToScreenColumn=function(A,W){return this.documentToScreenPosition(A,W).column},k.prototype.documentToScreenRow=function(A,W){return this.documentToScreenPosition(A,W).row},k.prototype.getScreenLength=function(){var A=0,W=null;if(this.$useWrapMode)for(var F=this.$wrapData.length,U=0,Y=0,ee=(W=this.$foldData[Y++])?W.start.row:1/0;U<F;){var X=this.$wrapData[U];A+=X?X.length+1:1,ee<++U&&(U=W.end.row+1,ee=(W=this.$foldData[Y++])?W.start.row:1/0)}else for(var A=this.getLength(),q=this.$foldData,Y=0;Y<q.length;Y++)A-=(W=q[Y]).end.row-W.start.row;return this.lineWidgets&&(A+=this.$getWidgetScreenLength()),A},k.prototype.$setFontMetrics=function(A){this.$enableVarChar&&(this.$getStringScreenWidth=function(W,F,U){if(F===0)return[0,0];var Y,ee;for(F=F||1/0,U=U||0,ee=0;ee<W.length&&!(F<(U+=(Y=W.charAt(ee))===" "?this.getScreenTabSize(U):A.getCharacterWidth(Y)));ee++);return[U,ee]})},k.prototype.getPrecedingCharacter=function(){var A=this.selection.getCursor();return A.column===0?A.row===0?"":this.doc.getNewLineCharacter():this.getLine(A.row)[A.column-1]},k.prototype.destroy=function(){this.destroyed||(this.bgTokenizer.setDocument(null),this.bgTokenizer.cleanup(),this.destroyed=!0),this.endOperation(),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection&&(this.selection.off("changeCursor",this.$onSelectionChange),this.selection.off("changeSelection",this.$onSelectionChange)),this.selection.detach()},k);function k(A,W){this.doc,this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$editor=null,this.prevOp={},this.$foldData=[],this.id="session"+ ++k.$uid,this.$foldData.toString=function(){return this.join(` 359`)},this.$gutterCustomWidgets={},this.bgTokenizer=new h(new y().getTokenizer(),this);var F=this;this.bgTokenizer.on("update",function(U){F._signal("tokenizerUpdate",U)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),typeof A=="object"&&A.getLine||(A=new _(A)),this.setDocument(A),this.selection=new u(this),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.selection.on("changeCursor",this.$onSelectionChange),this.$bidiHandler=new b(this),p.resetOptions(this),this.setMode(W),p._signal("session",this),this.destroyed=!1,this.$initOperationListeners()}E.$uid=0,E.prototype.$modes=p.$modes,E.prototype.getValue=E.prototype.toString,E.prototype.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},E.prototype.$overwrite=!1,E.prototype.$mode=null,E.prototype.$modeId=null,E.prototype.$scrollTop=0,E.prototype.$scrollLeft=0,E.prototype.$wrapLimit=80,E.prototype.$useWrapMode=!1,E.prototype.$wrapLimitRange={min:null,max:null},E.prototype.lineWidgets=null,E.prototype.isFullWidth=H,x.implement(E.prototype,g);var L=1,M=2,B=3,j=4,z=9,Q=10,D=11,K=12;function H(A){return!(A<4352)&&(4352<=A&&A<=4447||4515<=A&&A<=4519||4602<=A&&A<=4607||9001<=A&&A<=9002||11904<=A&&A<=11929||11931<=A&&A<=12019||12032<=A&&A<=12245||12272<=A&&A<=12283||12288<=A&&A<=12350||12353<=A&&A<=12438||12441<=A&&A<=12543||12549<=A&&A<=12589||12593<=A&&A<=12686||12688<=A&&A<=12730||12736<=A&&A<=12771||12784<=A&&A<=12830||12832<=A&&A<=12871||12880<=A&&A<=13054||13056<=A&&A<=19903||19968<=A&&A<=42124||42128<=A&&A<=42182||43360<=A&&A<=43388||44032<=A&&A<=55203||55216<=A&&A<=55238||55243<=A&&A<=55291||63744<=A&&A<=64255||65040<=A&&A<=65049||65072<=A&&A<=65106||65108<=A&&A<=65126||65128<=A&&A<=65131||65281<=A&&A<=65376||65504<=A&&A<=65510)}T("./edit_session/folding").Folding.call(E.prototype),T("./edit_session/bracket_match").BracketMatch.call(E.prototype),p.defineOptions(E.prototype,"session",{wrap:{set:function(A){A&&A!="off"?A=="free"?A=!0:A=="printMargin"?A=-1:typeof A=="string"&&(A=parseInt(A,10)||
359!1):A=!1,this.$wrap!=A&&((this.$wrap=A)?(this.setWrapLimitRange(A=typeof A=="number"?A:null,A),this.setUseWrapMode(!0)):this.setUseWrapMode(!1))},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(A){(A=A=="auto"?this.$mode.type!="text":A!="text")!=this.$wrapAsCode&&(this.$wrapAsCode=A,this.$useWrapMode)&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(A){this.$useWorker=A,this.$stopWorker(),A&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(A){0<(A=parseInt(A))&&this.$tabSize!==A&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=A,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(A){this.setFoldStyle(A)},handlesSet:!0},overwrite:{set:function(A){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(A){this.doc.setNewLineMode(A)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(A){this.setMode(A)},get:function(){return this.$modeId},handlesSet:!0}}),C.EditSession=E}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(T,C,N){var x=T("./lib/lang"),S=T("./lib/oop"),b=T("./range").Range;function p(){this.$options={}}function g(u,y){return y=u.doc.positionToIndex({row:y,column:0}),u.doc.indexToPosition(y+5e3).row+1}p.prototype.set=function(u){return S.mixin(this.$options,u),this},p.prototype.getOptions=function(){return x.copyObject(this.$options)},p.prototype.setOptions=function(u){this.$options=u},p.prototype.find=function(I){var y,m=this.$options,I=this.$matchIterator(I,m);return!!I&&(y=null,I.forEach(function(_,h,f,w){return y=new b(_,h,f,w),!(h==w&&m.start&&m.start.start&&m.skipCurrent!=0&&y.isEqual(m.start)&&(y=null,1))}),y)},p.prototype.findAll=function(u){var y=this.$options;if(!y.needle)return[];this.$assembleRegExp(y);var m=y.range,I=m?u.getLines(m.start.row,m.end.row):u.doc.getAllLines(),_=[],h=y.re;if(y.$isMultiLine){var f,w=h.length,E=I.length-w;e:for(var k=h.offset||0;k<=E;k++){for(var L=0;L<w;L++)if(I[k+L].search(h[L])==-1)continue e;var M=I[k],B=I[k+w-1],M=M.length-M.match(h[0])[0].length,B=B.match(h[w-1])[0].length;f&&f.end.row===k&&f.end.column>M||(_.push(f=new b(k,M,k+w-1,B)),2<w&&(k=k+w-2))}}else for(var j=0;j<I.length;j++)if(this.$isMultilineSearch(y)){var z,Q=I.length-1;(z=this.$multiLineForward(u,h,j,Q))&&(j<(Q=z.endRow<=Q?z.endRow-1:Q)&&(j=Q),_.push(new b(z.startRow,z.startCol,z.endRow,z.endCol)))}else for(z=x.getMatchOffsets(I[j],h),L=0;L<z.length;L++){var D=z[L];_.push(new b(j,D.offset,j,D.offset+D.length))}if(m){for(var K=m.start.column,H=m.end.column,j=0,L=_.length-1;j<L&&_[j].start.column<K&&_[j].start.row==0;)j++;for(var A=m.end.row-m.start.row;j<L&&_[L].end.column>H&&_[L].end.row==A;)L--;for(_=_.slice(j,L+1),j=0,L=_.length;j<L;j++)_[j].start.row+=m.start.row,_[j].end.row+=m.start.row}return _},p.prototype.parseReplaceString=function(u){for(var y=36,m=38,I=48,_=49,h=57,f=92,w=110,E=116,k="",L=0,M=u.length;L<M;L++){var B=u.charCodeAt(L);if(B===f){if(M<=++L){k+="\\";break}switch(u.charCodeAt(L)){case f:k+="\\";break;case w:k+=` 360`;break;case E:k+=" "}}else{if(B===y){if(M<=++L){k+="$";break}if(B=u.charCodeAt(L),B===y){k+="$$";continue}if(B===I||B===m){k+="$&";continue}if(_<=B&&B<=h){k+="$"+u[L];continue}}k+=u[L]}}return k||u},p.prototype.replace=function(u,y){var m=this.$options,I=this.$assembleRegExp(m);if(m.$isMultiLine)return y;if(I){var _=this.$isMultilineSearch(m),h=(_&&(u=u.replace(/\r\n|\r|\n/g,` 361`)),I.exec(u));if(!h||!_&&h[0].length!=u.length)return null;if(y=m.regExp?this.parseReplaceString(y):y.replace(/\$/g,"$$$$"),y=u.replace(I,y),m.preserveCase){y=y.split("");for(var f=Math.min(u.length,u.length);f--;){var w=u[f];w&&w.toLowerCase()!=w?y[f]=y[f].toUpperCase():y[f]=y[f].toLowerCase()}y=y.join("")}return y}},p.prototype.$assembleRegExp=function(u,y){if(u.needle instanceof RegExp)return u.re=u.needle;var m=u.needle;if(!u.needle)return u.re=!1;u.regExp||(m=x.escapeRegExp(m));var I,_,h,f,w,E=u.caseSensitive?"gm":"gmi";
361try{new RegExp(m,"u"),u.$supportsUnicodeFlag=!0,E+="u"}catch{u.$supportsUnicodeFlag=!1}function k(M,B){return B===void 0&&(B=!0),(h&&_.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w")).test(M)||_.regExp?h&&_.$supportsUnicodeFlag?B?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}if(u.wholeWord&&(I=m,_=u,h=x.supportsLookbehind(),f=Array.from(I),w=f[0],f=f[f.length-1],m=k(w)+I+k(f,!1)),u.$isMultiLine=!y&&/[\n\r]/.test(m),u.$isMultiLine)return u.re=this.$assembleMultilineRegExp(m,E);try{var L=new RegExp(m,E)}catch{L=!1}return u.re=L},p.prototype.$assembleMultilineRegExp=function(u,y){for(var m=u.replace(/\r\n|\r|\n/g,`$ 362^`).split(` 363`),I=[],_=0;_<m.length;_++)try{I.push(new RegExp(m[_],y))}catch{return!1}return I},p.prototype.$isMultilineSearch=function(u){return u.re&&/\\r\\n|\\r|\\n/.test(u.re.source)&&u.regExp&&!u.$isMultiLine},p.prototype.$multiLineForward=function(u,y,m,I){for(var _=g(u,m),h=m;h<=I;){for(var f=0;f<_&&!(I<h);f++)var w=u.getLine(h++),E=E==null?w:E+` 364`+w;var k,L,M=y.exec(E);if(y.lastIndex=0,M)return L=E.slice(0,M.index).split(` 365`),M=M[0].split(` 366`),{startRow:k=m+L.length-1,startCol:L=L[L.length-1].length,endRow:k+M.length-1,endCol:M.length==1?L+M[0].length:M[M.length-1].length}}return null},p.prototype.$multiLineBackward=function(u,y,m,I,_){for(var h=g(u,I),f=u.getLine(I).length-m,w=I;_<=w;){for(var E=0;E<h&&_<=w;E++)var k=u.getLine(w--),L=L==null?k:k+` 367`+L;var M,B,j=((z,Q,D)=>{for(var K=null,H=0;H<=z.length;){Q.lastIndex=H;var A=Q.exec(z);if(!A)break;var W=A.index+A[0].length;if(W>z.length-D)break;(!K||W>K.index+K[0].length)&&(K=A),H=A.index+1}return K})(L,y,f);if(j)return B=L.slice(0,j.index).split(` 368`),j=j[0].split(` 369`),{startRow:M=w+B.length,startCol:B=B[B.length-1].length,endRow:M+j.length-1,endCol:j.length==1?B+j[0].length:j[j.length-1].length}}return null},p.prototype.$matchIterator=function(u,y){var m,I,_,h,f,w,E,k,L,M,B,j,z=this.$assembleRegExp(y);return!!z&&(m=this.$isMultilineSearch(y),I=this.$multiLineForward,_=this.$multiLineBackward,h=y.backwards==1,f=y.skipCurrent!=0,w=z.unicode,E=y.range,(k=(k=y.start)||(E?E[h?"end":"start"]:u.selection.getRange())).start&&(k=k[f!=h?"end":"start"]),L=E?E.start.row:0,M=E?E.end.row:u.getLength()-1,j=y.$isMultiLine?(B=z.length,function(Q,D,K){var H=h?Q-B+1:Q;if(!(H<0||H+B>u.getLength())){var A=u.getLine(H),Q=A.search(z[0]);if(!(!h&&Q<D||Q===-1)){for(var W=1;W<B;W++)if((A=u.getLine(H+W)).search(z[W])==-1)return;var F=A.match(z[B-1])[0].length;if(!(h&&D<F))return!!K(H,Q,H+B-1,F)||void 0}}}):h?function(Q,D,K){var H;if(m)return!!(H=_(u,z,D,Q,L))&&(!!K(H.startRow,H.startCol,H.endRow,H.endCol)||void 0);var A,W=u.getLine(Q),F=[];for(z.lastIndex=0;A=z.exec(W);){var U=A[0].length,Y=A.index;if(!U){if(Y>=W.length)break;z.lastIndex=Y+=x.skipEmptyMatch(W,Y,w)}if(D<A.index+U)break;F.push(A.index,U)}for(var ee=F.length-1;0<=ee;ee-=2){var X=F[ee-1];if(K(Q,X,Q,X+(U=F[ee])))return!0}}:function(Q,D,K){var H;if(z.lastIndex=D,m)return(D=I(u,z,Q,M))&&Q<(H=D.endRow<=M?D.endRow-1:M)&&(Q=H),!!D&&(!!K(D.startRow,D.startCol,D.endRow,D.endCol)||void 0);for(var A=u.getLine(Q);W=z.exec(A);){var W,F=W[0].length;if(K(Q,W=W.index,Q,W+F))return!0;if(!F&&(z.lastIndex=W+=x.skipEmptyMatch(A,W,w),W>=A.length))return!1}},{forEach:h?function(Q){var D=k.row;if(!j(D,k.column,Q)){for(D--;L<=D;D--)if(j(D,Number.MAX_VALUE,Q))return;if(y.wrap!=0){for(D=M,L=k.row;L<=D;D--)if(j(D,Number.MAX_VALUE,Q))return}}}:function(Q){var D=k.row;if(!j(D,k.column,Q)){for(D+=1;D<=M;D++)if(j(D,0,Q))return;if(y.wrap!=0){for(D=L,M=k.row;D<=M;D++)if(j(D,0,Q))return}}}})},C.Search=p}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(_,C,N){var x,S=this&&this.__extends||(x=function(f,w){return(x=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(E,k){E.__proto__=k}:function(E,k){for(var L in k)Object.prototype.hasOwnProperty.call(k,L)&&(E[L]=k[L])}))(f,w)},function(f,w){if(typeof w!="function"&&w!==null)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");function E(){this.constructor=f}
369x(f,w),f.prototype=w===null?Object.create(w):(E.prototype=w.prototype,new E)}),b=_("../lib/keys"),p=_("../lib/useragent"),g=b.KEY_MODS,u=(y.prototype.$init=function(f,w,E){this.platform=w||(p.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(f),this.$singleCommand=E},y.prototype.addCommand=function(f){this.commands[f.name]&&this.removeCommand(f),(this.commands[f.name]=f).bindKey&&this._buildKeyHash(f)},y.prototype.removeCommand=function(f,w){var E,k=f&&(typeof f=="string"?f:f.name),L=(f=this.commands[k],w||delete this.commands[k],this.commandKeyBinding);for(E in L){var M,B=L[E];B==f?delete L[E]:Array.isArray(B)&&(M=B.indexOf(f))!=-1&&(B.splice(M,1),B.length==1)&&(L[E]=B[0])}},y.prototype.bindKey=function(f,w,E){if(typeof f=="object"&&f&&(E==null&&(E=f.position),f=f[this.platform]),f)return typeof w=="function"?this.addCommand({exec:w,bindKey:f,name:w.name||f}):void f.split("|").forEach(function(B){var L="",M=(B.indexOf(" ")!=-1&&(B=(M=B.split(/\s+/)).pop(),M.forEach(function(j){j=this.parseKeys(j),j=g[j.hashId]+j.key,L+=(L?" ":"")+j,this._addCommandToBinding(L,"chainKeys")},this),L+=" "),this.parseKeys(B)),B=g[M.hashId]+M.key;this._addCommandToBinding(L+B,w,E)},this)},y.prototype._addCommandToBinding=function(f,w,E){var k=this.commandKeyBinding;if(w)if(!k[f]||this.$singleCommand)k[f]=w;else{Array.isArray(k[f])?(M=k[f].indexOf(w))!=-1&&k[f].splice(M,1):k[f]=[k[f]],typeof E!="number"&&(E=m(w));for(var L=k[f],M=0;M<L.length&&!(E<m(L[M]));M++);L.splice(M,0,w)}else delete k[f]},y.prototype.addCommands=function(f){f&&Object.keys(f).forEach(function(w){var E=f[w];if(E){if(typeof E=="string")return this.bindKey(E,w);typeof(E=typeof E=="function"?{exec:E}:E)=="object"&&(E.name||(E.name=w),this.addCommand(E))}},this)},y.prototype.removeCommands=function(f){Object.keys(f).forEach(function(w){this.removeCommand(f[w])},this)},y.prototype.bindKeys=function(f){Object.keys(f).forEach(function(w){this.bindKey(w,f[w])},this)},y.prototype._buildKeyHash=function(f){this.bindKey(f.bindKey,f)},y.prototype.parseKeys=function(f){var w=f.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(j){return j}),E=w.pop(),k=b[E];if(b.FUNCTION_KEYS[k])E=b.FUNCTION_KEYS[k].toLowerCase();else{if(!w.length)return{key:E,hashId:-1};if(w.length==1&&w[0]=="shift")return{key:E.toUpperCase(),hashId:-1}}for(var L=0,M=w.length;M--;){var B=b.KEY_MODS[w[M]];if(B==null)return typeof console<"u",!1;L|=B}return{key:E,hashId:L}},y.prototype.findKeyCommand=function(f,w){return f=g[f]+w,this.commandKeyBinding[f]},y.prototype.handleKeyboard=function(f,w,E,k){var L,M;if(!(k<0))return L=g[w]+E,M=this.commandKeyBinding[L],f.$keyChain&&(f.$keyChain+=" "+L,M=this.commandKeyBinding[f.$keyChain]||M),!M||M!="chainKeys"&&M[M.length-1]!="chainKeys"?(f.$keyChain&&(w&&w!=4||E.length!=1?(w==-1||0<k)&&(f.$keyChain=""):f.$keyChain=f.$keyChain.slice(0,-L.length-1)),{command:M}):(f.$keyChain=f.$keyChain||L,{command:"null"})},y.prototype.getStatusText=function(f,w){return w.$keyChain||""},y);function y(f,w){this.$init(f,w,!1)}function m(f){return typeof f=="object"&&f.bindKey&&f.bindKey.position||(f.isDefault?-100:0)}S(h,I=u);var I,_=h;function h(f,w){return f=I.call(this,f,w)||this,f.$singleCommand=!0,f}_.call=function(f,w,E){u.prototype.$init.call(f,w,E,!0)},u.call=function(f,w,E){u.prototype.$init.call(f,w,E,!1)},C.HashHandler=_,C.MultiHashHandler=u}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(g,C,N){var x,S,u=this&&this.__extends||(x=function(m,I){return(x=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(_,h){_.__proto__=h}:function(_,h){for(var f in h)Object.prototype.hasOwnProperty.call(h,f)&&(_[f]=h[f])}))(m,I)},function(m,I){if(typeof I!="function"&&I!==null)throw new TypeError("Class extends value "+String(I)+" is not a constructor or null");function _(){this.constructor=m}x(m,I),m.prototype=I===null?Object.create(I):(_.prototype=I.prototype,new _)}),b=g("../lib/oop"),p=g("../keyboard/hash_handler").MultiHashHandler,g=g("../lib/event_emitter").EventEmitter,u=(u(y,S=p),y.prototype.exec=function(m,I,_){if(Array.isArray(m)){for(var h=m.length;h--;)if(this.exec(m[h],I,_))return!0;return!1}var f={editor:I,command:m=typeof m=="string"?this.commands[m]:m,args:_};return this.canExecute(m,I)?(f.returnValue=this._emit("exec",f),this._signal("after
369Exec",f),f.returnValue!==!1):(this._signal("commandUnavailable",f),!1)},y.prototype.canExecute=function(m,I){return!!(m=typeof m=="string"?this.commands[m]:m)&&!(I&&I.$readOnly&&!m.readOnly||this.$checkCommandState!=0&&m.isAvailable&&!m.isAvailable(I))},y.prototype.toggleRecording=function(m){if(!this.$inReplay)return m&&m._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=(function(I){this.macro.push([I.command,I.args])}).bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},y.prototype.replay=function(m){if(!this.$inReplay&&this.macro){if(this.recording)return this.toggleRecording(m);try{this.$inReplay=!0,this.macro.forEach(function(I){typeof I=="string"?this.exec(I,m):this.exec(I[0],m,I[1])},this)}finally{this.$inReplay=!1}}},y.prototype.trimMacro=function(m){return m.map(function(I){return typeof I[0]!="str
369ing"&&(I[0]=I[0].name),I=I[1]?I:I[0]})},y);function y(m,I){return I=S.call(this,I,m)||this,I.byName=I.commands,I.setDefaultHandler("exec",function(_){return _.args?_.command.exec(_.editor,_.args,_.event,!1):_.command.exec(_.editor,{},_.event,!0)}),I}b.implement(u.prototype,g),C.CommandManager=u}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(T,C,N){var x=T("../lib/lang"),S=T("../config"),b=T("../range").Range;function p(u,y){return{win:u,mac:y}}C.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:p("Ctrl-,","Command-,"),exec:function(u){S.loadModule("ace/ext/settings_menu",function(y){y.init(u),u.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:p("Alt-E","F4"),exec:function(u){S.loadModule("ace/ext/error_marker",function(y){y.showErrorMarker(u,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:p("Alt-Shift-E","Shift-F4"),exec:function(u){S.loadModule("ace/ext/error_marker",function(y){y.showErrorMarker(u,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:p("Ctrl-A","Command-A"),exec:function(u){u.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:p(null,"Ctrl-L"),exec:function(u){u.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:p("Ctrl-L","Command-L"),exec:function(u,y){typeof y!="number"||isNaN(y)||u.gotoLine(y),u.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:p("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(u){u.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:p("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(u){u.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:p("F2","F2"),exec:function(u){u.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:p("Alt-F2","Alt-F2"),exec:function(u){u.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:p(null,"Ctrl-Command-Option-0"),exec:function(u){u.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:p(null,"Ctrl-Command-Option-0"),exec:function(u){u.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:p("Alt-0","Command-Option-0"),exec:function(u){u.session.foldAll(),u.session.unfold(u.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:p("Alt-Shift-0","Command-Option-Shift-0"),exec:function(u){u.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:p("Ctrl-K","Command-G"),exec:function(u){u.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:p("Ctrl-Shift-K","Command-Shift-G"),exec:function(u){u.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:p("Alt-K","Ctrl-G"),exec:function(u){u.selection.isEmpty()?u.selection.selectWord():u.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:p("Alt-Shift-K","Ctrl-Shift-G"),exec:function(u){u.selection.isEmpty()?u.selection.selectWord():u.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:p("Ctrl-F","Command-F"),exec:function(u){S.loadModule("ace/ext/searchbox",function(y){y.Search(u)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(u){u.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:p("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(u){u.getSelection().selectFileStart()}
369,multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:p("Ctrl-Home","Command-Home|Command-Up"),exec:function(u){u.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:p("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(u){u.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:p("Up","Up|Ctrl-P"),exec:function(u,y){u.navigateUp(y.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:p("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(u){u.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:p("Ctrl-End","Command-End|Command-Down"),exec:function(u){u.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:p("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(u){u.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:p("Down","Down|Ctrl-N"),exec:function(u,y){u.navigateDown(y.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:p("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(u){u.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:p("Ctrl-Left","Option-Left"),exec:function(u){u.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:p("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(u){u.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:p("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(u){u.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:p("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(u){u.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:p("Left","Left|Ctrl-B"),exec:function(u,y){u.navigateLeft(y.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:p("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(u){u.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:p("Ctrl-Right","Option-Right"),exec:function(u){u.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:p("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(u){u.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:p("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(u){u.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:p("Shift-Right","Shift-Right"),exec:function(u){u.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:p("Right","Right|Ctrl-F"),exec:function(u,y){u.navigateRight(y.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0}
vendor: 8,549 bytes, line 369
369,{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(u){u.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:p(null,"Option-PageDown"),exec:function(u){u.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:p("PageDown","PageDown|Ctrl-V"),exec:function(u){u.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(u){u.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:p(null,"Option-PageUp"),exec:function(u){u.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(u){u.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:p("Ctrl-Up",null),exec:function(u){u.renderer.scrollBy(0,-2*u.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:p("Ctrl-Down",null),exec:function(u){u.renderer.scrollBy(0,2*u.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(u){u.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(u){u.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:p("Ctrl-Alt-E","Command-Option-E"),exec:function(u){u.commands.toggleRecording(u)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:p("Ctrl-Shift-E","Command-Shift-E"),exec:function(u){u.commands.replay(u)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:p("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(u){u.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:p("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(u){u.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:p("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(u){u.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:p(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(u){},readOnly:!0},{name:"cut",description:"Cut",exec:function(u){var y=u.$copyWithEmptySelection&&u.selection.isEmpty()?u.selection.getLineRange():u.selection.getRange();u._emit("cut",y),y.isEmpty()||u.session.remove(y),u.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(u,y){u.$handlePaste(y)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:p("Ctrl-D","Command-D"),exec:function(u){u.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:p("Ctrl-Shift-D","Command-Shift-D"),exec:function(u){u.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:p("Ctrl-Alt-S","Command-Alt-S"),exec:function(u){u.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:p("Ctrl-/","Command-/"),exec:function(u){u.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:p("Ctrl-Shift-/","Command-Shift-/"),exec:function(u){u.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:p("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(u){u.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:p("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(u){u.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:p("Ctrl-H","Command-Option-F"),exec:function(u){S.loadModule("ace/ext/searchbox",function(y){y.Search(u,!0)})}},{name:"undo",description:"Undo",bindKey:p("Ctrl-Z","Command-Z"),exec:function(u){u.undo()}},{name:"redo",description:"Redo",bindKey:p("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(u){u.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:p("Alt-Shift-Up","Command-Option-Up"),exec:function(u){u.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:p("Alt-Up","Option-Up"),exec:function(u){u.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:p("Alt-Shift-Down","Command-Option-Down"),exec:function(u){u.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:p("Alt-Down","Option-Down"),exec:function(u){u.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:p("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(u){u.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:p("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(u){u.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:p("Shift-Delete",null),exec:function(u){if(!u.selection.isEmpty())return!1;u.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:p("Alt-Backspace","Command-Backspace"),exec:function(u){u.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:p("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(u){u.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:p("Ctrl-Shift-Backspace",null),exec:function(u){var y=u.selection.getRange();y.start.column=0,u.session.remove(y)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:p("Ctrl-Shift-Delete",null),exec:function(u){var y=u.selection.getRange();y.end.column=Number.MAX_VALUE,u.session.remove(y)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:p("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(u){u.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:p("Ctrl-Delete","Alt-Delete"),exec:function(u){u.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:p("Shift-Tab","Shift-Tab"),exec:function(u){u.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:p("Tab","Tab"),exec:function(u){u.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:p("Ctrl-[","Ctrl-["),exec:function(u){u.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:p("Ctrl-]","Ctrl-]"),exec:function(u){u.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(u,y){u.insert(y)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(u,y){u.insert(x.stringRepeat(y.text||"",y.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:p(null,"Ctrl-O"),exec:function(u){u.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:p("Alt-Shift-X","Ctrl-T"),exec:function(u){u.transposeLetters()},multiSelectAction:function(u){u.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:p("Ctrl-U","Ctrl-U"),exec:function(u){u.toUpperCase()}
369,multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:p("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(u){u.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:p(null,null),exec:function(u){u.autoIndent()},scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:p("Ctrl-Shift-L","Command-Shift-L"),exec:function(u){var y=u.selection.getRange();y.start.column=y.end.column=0,y.end.row++,u.selection.setRange(y,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:p("Ctrl+F3","F3"),exec:function(u){u.openLink()}},{name:"joinlines",description:"Join lines",bindKey:p(null,null),exec:function(u){for(var I=u.selection.isBackwards(),y=I?u.selection.getSelectionLead():u.selection.getSelectionAnchor(),m=I?u.selection.getSelectionAnchor():u.selection.getSelectionLead(),I=u.session.doc.getLine(y.row).length,_=u.session.doc.getTextRange(u.selection.getRange()).replace(/\n\s*/," ").length,h=u.session.doc.getLine(y.row),f=y.row+1;f<=m.row+1;f++){var w=x.stringTrimLeft(x.stringTrimRight(u.session.doc.getLine(f)));h+=w=w.length!==0?" "+w:w}m.row+1<u.session.doc.getLength()-1&&(h+=u.session.doc.getNewLineCharacter()),u.clearSelection(),u.session.doc.replace(new b(y.row,0,m.row+2,0),h),0<_?(u.selection.moveCursorTo(y.row,y.column),u.selection.selectTo(y.row,y.column+_)):(I=u.session.doc.getLine(y.row).length>I?I+1:I,u.selection.moveCursorTo(y.row,I))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:p(null,null),exec:function(u){var y=u.session.doc.getLength()-1,m=u.session.doc.getLine(y).length,I=u.selection.rangeList.ranges,_=[];I.length<1&&(I=[u.selection.getRange()]);for(var h=0;h<I.length;h++)h!=I.length-1||I[h].end.row===y&&I[h].end.column===m||_.push(new b(I[h].end.row,I[h].end.column,y,m)),h===0?I[h].start.row===0&&I[h].start.column===0||_.push(new b(0,0,I[h].start.row,I[h].start.column)):_.push(new b(I[h-1].end.row,I[h-1].end.column,I[h].start.row,I[h].start.column));for(u.exitMultiSelectMode(),u.clearSelection(),h=0;h<_.length;h++)u.selection.addRange(_[h],!1)},readOnly:!0,scrollIntoView:"none"},{name:"addLineAfter",description:"Add new line after the current line",exec:function(u){u.selection.clearSelection(),u.navigateLineEnd(),u.insert(` 370`)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(u){u.selection.clearSelection();var y=u.getCursorPosition();u.selection.moveTo(y.row-1,Number.MAX_VALUE),u.insert(` 371`),y.row===0&&u.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",exec:function(u){u.prompt({$type:"commands"})},readOnly:!0},{name:"openCommandPalette",description:"Open command palette",bindKey:p("F1","F1"),exec:function(u){u.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:p(null,null),exec:function(u){u.prompt({$type:"modes"})},readOnly:!0}];for(var g=1;g<9;g++)C.commands.push({name:"foldToLevel"+g,description:"Fold To Level "+g,level:g,exec:function(u){u.session.foldToLevel(this.level)},scrollIntoView:"center",readOnly:!0})}),ace.define("ace/keyboard/gutter_handler",["require","exports","module","ace/lib/keys"],function(T,C,N){var x=T("../lib/keys");function S(g){this.editor=g,this.gutterLayer=g.renderer.$gutterLayer,this.element=g.renderer.$gutter,this.lines=g.renderer.$gutterLayer.$lines,this.activeRowIndex=null,this.activeLane=null,this.annotationTooltip=this.editor.$mouseHandler.$tooltip}S.prototype.addListener=function(){this.element.addEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.addEventListener("focusout",this.$blurGutter.bind(this)),this.editor.on("mousewheel",this.$blurGutter.bind(this))},S.prototype.removeListener=function(){this.element.removeEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.removeEventListener("focusout",this.$blurGutter.bind(this)),this.editor.off("mousewheel",this.$blurGutter.bind(this))},S.prototype.$onGutterKeyDown=function(g){var u;this.annotationTooltip.isOpen?(g.preventDefault(),g.keyCode===x.escape&&this.annotationTooltip.hide()):g.target===this.element?g.keyCode==x.enter&&(g.preventDefault(),u=this.editor.getCursorPosition().row,this.editor.isRowVisible(u)||this.editor.scrollToLine(u,!0,!0),setTimeout((function(){var y=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),m=this.$findNearestFoldLaneWidget(y),I=this.$findNearestAnnotation(y);m===null&&I===null||(this.$findClosestNumber(m,I,y)===m?(this.activeLane="fold",this.activeRowIndex=m,this.$isCustomWidgetVisible(m)?this.$focusCustomWidget(this.activeRowIndex):this.$focusFoldWidget(this.activeRowIndex)):(this.activeRowIndex=I,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex)))}).bind(this),10)):(this.$handleGutterKeyboardInteraction(g),setTimeout((function(){this.editor._signal("gutterkeydown",new b(g,this))}).bind(this),10))},S.prototype.$handleGutterKeyboardInteraction=function(g){if(g.keyCode===x.tab)g.preventDefault();else if(g.keyCode===x.escape)g.preventDefault(),this.$blurGutter(),this.element.focus(),this.lane=null;else if(g.keyCode===x.up)switch(g.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetUp();break;case"annotation":this.$moveAnnotationUp()}else if(g.keyCode===x.down)switch(g.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetDown();break;case"annotation":this.$moveAnnotationDown()}else if(g.keyCode===x.left)g.preventDefault(),this.$switchLane("annotation");else if(g.keyCode===x.right)g.preventDefault(),this.$switchLane("fold");else if(g.keyCode===x.enter||g.keyCode===x.space)switch(g.preventDefault(),this.activeLane){case"fold":var u=this.$rowIndexToRow(this.activeRowIndex),y=this.editor.session.$gutterCustomWidgets[u];if(y)y.callbacks&&y.callbacks.onClick&&y.callbacks.onClick(g,u);else{if(this.gutterLayer.session.foldWidgets[u]==="start"){this.editor.session.onFoldWidgetClick(this.$rowIndexToRow(this.activeRowIndex),g),setTimeout((function(){this.$rowIndexToRow(this.activeRowIndex)!==u&&(this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=this.$rowToRowIndex(u),this.$focusFoldWidget(this.activeRowIndex))}).bind(this),10);break}if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="end")break}return;case"annotation":this.annotationTooltip.showTooltip(this.$rowIndexToRow(this.activeRowIndex)),this.annotationTooltip.$fromKeyboard=!0}},S.prototype.$blurGutter=function(){if(this.activeRowIndex!==null)switch(this.activeLane){case"fold":this.$blurFoldWidget(this.activeRowIndex),this.$blurCustomWidget(this.activeRowIndex);break;case"annotation":this.$blurAnnotation(this.activeRowIndex)}this.annotationTooltip.isOpen&&this.annotationTooltip.hide()},S.prototype.$isFoldWidgetVisible=function(y){var u=this.editor.isRowFullyVisible(this.$rowIndexToRow(y)),y=this.$getFoldWidget(y).style.display!=="none";return u&&y},S.prototype.$isCustomWidgetVisible=function(y){var u=this.editor.isRowFullyVisible(this.$rowIndexToRow(y)),y=!!this.$getCustomWidget(y);return u&&y},S.prototype.$isAnnotationVisible=function(y){var u=this.editor.isRowFullyVisible(this.$rowIndexToRow(y)),y=this.$getAnnotation(y).style.display!=="none";return u&&y},S.prototype.$getFoldWidget=function(g){return this.lines.get(g).element.childNodes[1]},S.prototype.$getCustomWidget=function(g){return this.lines.get(g).element.childNodes[3]},S.prototype.$getAnnotation=function(g){return this.lines.get(g).element.childNodes[2]},S.prototype.$findNearestFoldLaneWidget=function(g){if(this.$isCustomWidgetVisible(g)||this.$isFoldWidgetVisible(g))return g;for(var u=0;0<g-u||g+u<this.lines.getLength()-1;){if(0<=g-++u&&this.$isCustomWidgetVisible(g-u))return g-u;if(g+u<=this.lines.getLength()-1&&this.$isCustomWidgetVisible(g+u))return g+u;if(0<=g-u&&this.$isFoldWidgetVisible(g-u))return g-u;if(g+u<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(g+u))return g+u}return null},S.prototype.$findNearestAnnotation=function(g){if(this.$isAnnotationVisible(g))return g;for(var u=0;0<g-u||g+u<this.lines.getLength()-1;){if(0<=g-++u&&this.$isAnnotationVisible(g-u))return g-u;if(g+u<=this.lines.getLength()-1&&this.$isAnnotationVisible(g+u))return g+u}return null},S.prototype.$focusFoldWidget=function(g){g!=null&&((g=this.$getFoldWidget(g)).classList.add(this.editor.renderer.keyboardFocusClassName),g.focus())},S.prototype.$focusCustomWidget=function(g){g!=null&&(g=this.$getCustomWidget(g))&&(g.classList.add(this.editor.renderer.keyboardFocusClassName),g.focus())},S.prototype.$focusAnnotation=function(g){g!=null&&((g=this.$getAnnotation(g)).classList.add(this.editor.renderer.keyboardFocusClassName),g.focus())},S.prototype.$blurFoldWidget=function(g){g=this.$getFoldWidget(g),g.classList.remove(this.editor.renderer.keyboardFocusClassName),g.blur()},S.prototype.$blurCustomWidget=function(g){g=this.$getCustomWidget(g),g&&(g.classList.remove(this.editor.renderer.keyboardFocusClassName),g.blur())},S.prototype.$blurAnnotation=function(g){g=this.$getAnnotation(g),g.classList.remove(this.editor.renderer.keyboardFocusClassName),g.blur()},S.prototype.$moveFoldWidgetUp=function(){for(var g=this.activeRowIndex;0<g;)if(this.$isFoldWidgetVisible(--g)||this.$isCustomWidgetVisible(g))return this.$blurFoldWidget(this.activeRowIndex),this.$blurCustomWidget(this.activeRowIndex),this.activeRowIndex=g,void(this.$isFoldWidgetVisible(g)?this.$focusFoldWidget(this.activeRowIndex):this.$focusCustomWidget(this.activeRowIndex))},S.prototype.$moveFoldWidgetDown=function(){for(var g=this.activeRowIndex;g<this.lines.getLength()-1;)if(this.$isFoldWidgetVisible(++g)||this.$isCustomWidgetVisible(g))return this.$blurFoldWidget(this.activeRowIndex),this.$blurCustomWidget(this.activeRowIndex),this.activeRowIndex=g,void(this.$isFoldWidgetVisible(g)?this.$focusFoldWidget(this.activeRowIndex):this.$focusCustomWidget(this.activeRowIndex))},S.prototype.$moveAnnotationUp=function(){for(var g=this.activeRowIndex;0<g;)if(this.$isAnnotationVisible(--g))return this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=g,void this.$focusAnnotation(this.activeRowIndex)},S.prototype.$moveAnnotationDown=function(){for(var g=this.activeRowIndex;g<this.lines.getLength()-1;)if(this.$isAnnotationVisible(++g))return this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=g,void this.$focusAnnotation(this.activeRowIndex)},S.prototype.$findClosestNumber=function(g,u,y){return g!==null&&(u===null||Math.abs(y-g)<=Math.abs(y-u))?g:u},S.prototype.$switchLane=function(g){switch(g){case"annotation":this.activeLane!=="annotation"&&(u=this.$findNearestAnnotation(this.activeRowIndex))!=null&&(this.activeLane="annotation",this.$blurFoldWidget(this.activeRowIndex),this.$blurCustomWidget(this.activeRowIndex),this.activeRowIndex=u,this.$focusAnnotation(this.activeRowIndex));break;case"fold":var u;this.activeLane!=="fold"&&(u=this.$findNearestFoldLaneWidget(this.activeRowIndex))!==null&&(this.activeLane="fold",this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=u,this.$isCustomWidgetVisible(u)?this.$focusCustomWidget(this.activeRowIndex):this.$focusFoldWidget(this.activeRowIndex))}},S.prototype.$rowIndexToRow=function(g){return g=this.lines.get(g),g?g.row:null},S.prototype.$rowToRowIndex=function(g){for(var u=0;u<this.lines.getLength();u++)if(this.lines.get(u).row==g)return u;return null},C.GutterKeyboardHandler=S,p.prototype.getKey=function(){return x.keyCodeToString(this.domEvent.keyCode)},p.prototype.getRow=function(){return this.gutterKeyboardHandler.$rowIndexToRow(this.gutterKeyboardHandler.activeRowIndex)},p.prototype.isInAnnotationLane=function(){return this.gutterKeyboardHandler.activeLane==="annotation"},p.prototype.isInFoldLane=function(){return this.gutterKeyboardHandler.activeLane==="fold"};var b=p;function p(g,u){this.gutterKeyboardHandler=u,this.domEvent=g}C.GutterKeyboardEvent=b}),ace.define("ace/editor",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/keyboard/textinput","ace/mouse/mouse_handler","ace/mouse/fold_handler","ace/keyboard/keybinding","ace/edit_session","ace/search","ace/range","ace/lib/event_emitter","ace/commands/command_manager","ace/commands/default_commands","ace/config","ace/token_iterator","ace/keyboard/gutter_handler","ace/config","ace/clipboard","ace/lib/keys","ace/lib/event","ace/tooltip"],function(H,C,N){var x=this&&this.__values||function(F){var U=typeof Symbol=="function"&&Symbol.iterator,Y=U&&F[U],ee=0;if(Y)return Y.call(F);if(F&&typeof F.length=="number")return{next:function(){return{value:(F=F&&ee>=F.length?void 0:F)&&F[ee++],done:!F}}};throw new TypeError(U?"Object is not iterable.":"Symbol.iterator is not defined.")},S=H("./lib/oop"),b=H("./lib/dom"),p=H("./lib/lang"),g=H("./lib/useragent"),u=H("./keyboard/textinput").TextInput,y=H("./mouse/mouse_handler").MouseHandler,m=H("./mouse/fold_handler").FoldHandler,I=H("./keyboard/keybinding").KeyBinding,_=H("./edit_session").EditSession,h=H("./search").Search,f=H("./range").Range,w=H("./lib/event_emitter").EventEmitter,E=H("./commands/command_manager").CommandManager,k=H("./commands/default_commands").commands,L=H("./config"),M=H("./token_iterator").TokenIterator,B=H("./keyboard/gutter_handler").GutterKeyboardHandler,j=H("./config").nls,z=H("./clipboard"),Q=H("./lib/keys"),D=H("./lib/event"),K=H("./tooltip").HoverTooltip,H=(A.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0)},A.prototype.startOperation=function(F){this.session.startOperation(F)},A.prototype.endOperation=function(F){this.session.endOperation(F)},A.prototype.onStartOperation=function(F){this.curOp=this.session.curOp,this.curOp.scrollTop=this.renderer.scrollTop,this.prevOp=this.session.prevOp,F||(this.previousCommand=null)},A.prototype.onEndOperation=function(F){if(this.curOp&&this.session){if(F&&F.returnValue===!1)this.curOp=null;else if(this._signal("beforeEndOperation"),this.curOp){var F=this.curOp.command,U=F&&F.scrollIntoView;if(U){switch(U){case"center-animate":U="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var Y=this.selection.getRange(),ee=this.renderer.layerConfig;(Y.start.row>=ee.lastRow||Y.end.row<=ee.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead)}U=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}this.$lastSel=this.session.selection.toJSON(),this.prevOp=this.curOp,this.curOp=null}}},A.prototype.$historyTracker=function(F){var U,Y,ee,X;this.$mergeUndoDeltas&&(U=this.prevOp,Y=this.$mergeableCommands,ee=U.command&&F.command.name==U.command.name,F.command.name=="insertstring"?(X=F.args,this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),ee=ee&&this.mergeNextCommand&&(!/\s/.test(X)||/\s/.test(U.args)),this.mergeNextCommand=!0):ee=ee&&Y.indexOf(F.command.name)!==-1,(ee=this.$mergeUndoDeltas!="always"&&2e3<Date.now()-this.sequenceStartTime?!1:ee)?this.session.mergeUndoDeltas=!0:Y.indexOf(F.command.name)!==-1&&(this.sequenceStartTime=Date.now()))},A.prototype.setKeyboardHandler=function(F,U){var Y;
371F&&typeof F=="string"&&F!="ace"?(this.$keybindingId=F,Y=this,L.loadModule(["keybinding",F],function(ee){Y.$keybindingId==F&&Y.keyBinding.setKeyboardHandler(ee&&ee.handler),U&&U()})):(this.$keybindingId=null,this.keyBinding.setKeyboardHandler(F),U&&U())},A.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},A.prototype.setSession=function(F){var U,Y;this.session!=F&&(this.curOp&&this.endOperation(),this.curOp={},(U=this.session)&&(this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange),this.session.off("startOperation",this.$onStartOperation),this.session.off("endOperation",this.$onEndOperation),(Y=this.session.getSelection()).off("changeCursor",this.$onCursorChange),Y.off("changeSelection",this.$onSelectionChange)),(this.session=F)?(this.$onDocumentChange=this.onDocumentChange.bind(this),F.on("change",this.$onDocumentChange),this.renderer.setSession(F),this.$onChangeMode=this.onChangeMode.bind(this),F.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),F.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),F.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),F.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),F.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),F.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=F.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.$onStartOperation=this.onStartOperation.bind(this),this.session.on("startOperation",this.$onStartOperation),this.$onEndOperation=this.onEndOperation.bind(this),this.session.on("endOperation",this.$onEndOperation),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(F)),this._signal("changeSession",{session:F,oldSession:U}),this.curOp=null,U&&U._signal("changeEditor",{oldEditor:this}),U&&(U.$editor=null),F&&F._signal("changeEditor",{editor:this}),F&&(F.$editor=this),F)&&!F.destroyed&&F.bgTokenizer.scheduleStart()},A.prototype.getSession=function(){return this.session},A.prototype.setValue=function(F,U){return this.session.doc.setValue(F),U?U==1?this.navigateFileEnd():U==-1&&this.navigateFileStart():this.selectAll(),F},A.prototype.getValue=function(){return this.session.getValue()},A.prototype.getSelection=function(){return this.selection},A.prototype.resize=function(F){this.renderer.onResize(F)},A.prototype.setTheme=function(F,U){this.renderer.setTheme(F,U)},A.prototype.getTheme=function(){return this.renderer.getTheme()},A.prototype.setStyle=function(F,U){this.renderer.setStyle(F,U)},A.prototype.unsetStyle=function(F){this.renderer.unsetStyle(F)},A.prototype.getFontSize=function(){return this.getOption("fontSize")||b.computedStyle(this.container).fontSize},A.prototype.setFontSize=function(F){this.setOption("fontSize",F)},A.prototype.$highlightBrackets=function(){var F;this.$highlightPending||((F=this).$highlightPending=!0,setTimeout(function(){F.$highlightPending=!1;var U,Y,ee,X,q=F.session;q&&!q.destroyed&&(q.$bracketHighlight&&(q.$bracketHighlight.markerIds.forEach(function(ne){q.removeMarker(ne)}),q.$bracketHighlight=null),U=F.getCursorPosition(),Y=(Y=F.getKeyboardHandler())&&Y.$getDirectionForHighlight&&Y.$getDirectionForHighlight(F),(Y=q.getMatchingBracketRanges(U,Y))||(ee=new M(q,U.row,U.column).getCurrentToken())&&/\b(?:tag-open|tag-name)/.test(ee.type)&&(ee=q.getMatchingTags(U))&&(Y=[ee.openTagName.isEmpty()?ee.openTag:ee.openTagName,ee.closeTagName.isEmpty()?ee.closeTag:ee.closeTagName]),(Y=!Y&&q.$mode.getMatching?q.$mode.getMatching(F.session):Y)&&(X="ace_bracket",Array.isArray(Y)?Y.length==1&&(X="ace_error_bracket"):Y=[Y],Y.length==2&&(f.comparePoints(Y[0].end,Y[1].start)==0?Y=[f.fromPoints(Y[0].start,Y[1].end)]:f.comparePoints(Y[0].start,Y[1].end)==0&&(Y=[f.fromPoints(Y[1].start,Y[0].end)])),q.$bracketHighlight={ranges:Y,markerIds:Y.map(function(ne){return q.addMarker(ne,X,"text")})}),F.getHighlightIndentGuides())&&F.renderer.$textLayer.$highlightIndentGuide()},50))}
371,A.prototype.focus=function(){this.textInput.focus()},A.prototype.isFocused=function(){return this.textInput.isFocused()},A.prototype.blur=function(){this.textInput.blur()},A.prototype.onFocus=function(F){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",F))},A.prototype.onBlur=function(F){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",F))},A.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},A.prototype.onDocumentChange=function(F){var U=this.session.$useWrapMode,Y=F.start.row==F.end.row?F.end.row:1/0;this.renderer.updateLines(F.start.row,Y,U),this._signal("change",F),this.$cursorChange()},A.prototype.onTokenizerUpdate=function(F){F=F.data,this.renderer.updateLines(F.first,F.last)},A.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},A.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},A.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},A.prototype.$updateHighlightActiveLine=function(){var F,U,Y=this.getSession();this.$highlightActiveLine&&(this.$selectionStyle=="line"&&this.selection.isMultiLine()||(F=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(F=!1),!this.renderer.$maxLines||this.session.getLength()!==1||1<this.renderer.$minLines||(F=!1)),Y.$highlightLineMarker&&!F?(Y.removeMarker(Y.$highlightLineMarker.id),Y.$highlightLineMarker=null):!Y.$highlightLineMarker&&F?((U=new f(F.row,F.column,F.row,1/0)).id=Y.addMarker(U,"ace_active-line","screenLine"),Y.$highlightLineMarker=U):F&&(Y.$highlightLineMarker.start.row=F.row,Y.$highlightLineMarker.end.row=F.row,Y.$highlightLineMarker.start.column=F.column,Y._signal("changeBackMarker"))},A.prototype.onSelectionChange=function(F){var U,Y,ee=this.session,ee=(ee.$selectionMarker&&ee.removeMarker(ee.$selectionMarker),ee.$selectionMarker=null,this.selection.isEmpty()?this.$updateHighlightActiveLine():(U=this.selection.getRange(),Y=this.getSelectionStyle(),ee.$selectionMarker=ee.addMarker(U,"ace_selection",Y)),this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp());this.session.highlight(ee),this._signal("changeSelection")},A.prototype.$getSelectionHighLightRegexp=function(){var F=this.session,U=this.getSelectionRange();if(!U.isEmpty()&&!U.isMultiLine()){var Y=U.start.column,ee=U.end.column,F=F.getLine(U.start.row),U=F.substring(Y,ee);if(!(5e3<U.length)&&/[\w\d]/.test(U)&&(U=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:U}),F=F.substring(Y-1,ee+1),U.test(F)))return U}},A.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},A.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},A.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},A.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},A.prototype.onChangeMode=function(F){this.renderer.updateText(),this._emit("changeMode",F)},A.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},A.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},A.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},A.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},A.prototype.getCopyText=function(){var F=this.getSelectedText(),U=this.session.doc.getNewLineCharacter(),Y=!1;if(!F&&this.$copyWithEmptySelection)for(var Y=!0,ee=this.selection.getAllRanges(),X=0;X<ee.length;X++){var q=ee[X];X&&ee[X-1].start.row==q.start.row||(F+=this.session.getLine(q.start.row)+U)}var ne={text:F};return this._signal("copy",ne),z.lineMode=!!Y&&ne.text,ne.text},A.prototype.onCopy=function(){this.commands.exec("copy",this)},A.prototype.onCut=function(){this.commands.exec("cut",this)},A.prototype.onPaste=function(F,U){this.commands.exec("paste",this,{text:F,event:U})},A.prototype.$handlePaste=function(Y){this._signal("paste",Y=typeof Y=="string"?{text:Y}:Y);var U=Y.text,Y=U===z.lineMode,ee=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)Y?ee.insert({row:this.selection.lead.row,column:0},U):this.insert(U);
371else if(Y)this.selection.rangeList.ranges.forEach(function(he){ee.insert({row:he.start.row,column:0},U)});else{var X=U.split(/\r\n|\r|\n/),q=this.selection.rangeList.ranges,Y=!(X.length!=2||X[0]&&X[1]);if(X.length!=q.length||Y)return this.commands.exec("insertstring",this,U);for(var ne=q.length;ne--;){var se=q[ne];se.isEmpty()||ee.remove(se),ee.insert(se.start,X[ne])}}},A.prototype.execCommand=function(F,U){return this.commands.exec(F,this,U)},A.prototype.insert=function(F,se){var Y,ee=this.session,X=ee.getMode(),q=this.getCursorPosition(),ne=(this.getBehavioursEnabled()&&!se&&(Y=X.transformAction(ee.getState(q.row),"insertion",this,ee,F))&&(F===Y.text||this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1),F=Y.text),F==" "&&(F=this.session.getTabString()),this.selection.isEmpty()?this.session.getOverwrite()&&F.indexOf(` 372`)==-1&&((ne=f.fromPoints(q,q)).end.column+=F.length,this.session.remove(ne)):(ne=this.getSelectionRange(),q=this.session.remove(ne),this.clearSelection()),F!=` 373`&&F!=`\r 374`||(he=ee.getLine(q.row),q.column>he.search(/\S|$/)&&(se=he.substr(q.column).search(/\S|$/),ee.doc.removeInLine(q.row,q.column,q.column+se))),this.clearSelection(),q.column),se=ee.getState(q.row),he=ee.getLine(q.row),ie=X.checkOutdent(se,he,F);ee.insert(q,F),Y&&Y.selection&&(Y.selection.length==2?this.selection.setSelectionRange(new f(q.row,ne+Y.selection[0],q.row,ne+Y.selection[1])):this.selection.setSelectionRange(new f(q.row+Y.selection[0],Y.selection[1],q.row+Y.selection[2],Y.selection[3]))),this.$enableAutoIndent&&(ee.getDocument().isNewLine(F)&&(ne=X.getNextLineIndent(se,he.slice(0,q.column),ee.getTabString()),ee.insert({row:q.row+1,column:0},ne)),ie)&&X.autoOutdent(se,ee,q.row)},A.prototype.autoIndent=function(){for(var F=this.session,U=F.getMode(),Y=this.selection.isEmpty()?[new f(0,0,F.doc.getLength()-1,0)]:this.selection.getAllRanges(),ee="",X="",q=F.getTabString(),ne=0;ne<Y.length;ne++)for(var se=Y[ne].start.row,he=Y[ne].end.row,ie=se;ie<=he;ie++){0<ie&&(ee=F.getState(ie-1),oe=F.getLine(ie-1),X=U.getNextLineIndent(ee,oe,q));var oe=F.getLine(ie),de=U.$getIndent(oe);X!==de&&(0<de.length&&(de=new f(ie,0,ie,de.length),F.remove(de)),0<X.length)&&F.insert({row:ie,column:0},X),U.autoOutdent(ee,F,ie)}},A.prototype.onTextInput=function(F,U){if(!U)return this.keyBinding.onTextInput(F);this.startOperation({command:{name:"insertstring"}}),F=this.applyComposition.bind(this,F,U),this.selection.rangeCount?this.forEachSelection(F):F(),this.endOperation()},A.prototype.applyComposition=function(F,U){var Y;(U.extendLeft||U.extendRight)&&((Y=this.selection.getRange()).start.column-=U.extendLeft,Y.end.column+=U.extendRight,Y.start.column<0&&(Y.start.row--,Y.start.column+=this.session.getLine(Y.start.row).length+1),this.selection.setRange(Y),F||Y.isEmpty()||this.remove()),!F&&this.selection.isEmpty()||this.insert(F,!0),(U.restoreStart||U.restoreEnd)&&((Y=this.selection.getRange()).start.column-=U.restoreStart,Y.end.column-=U.restoreEnd,this.selection.setRange(Y))},A.prototype.onCommandKey=function(F,U,Y){return this.keyBinding.onCommandKey(F,U,Y)},A.prototype.setOverwrite=function(F){this.session.setOverwrite(F)},A.prototype.getOverwrite=function(){return this.session.getOverwrite()},A.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},A.prototype.setScrollSpeed=function(F){this.setOption("scrollSpeed",F)},A.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},A.prototype.setDragDelay=function(F){this.setOption("dragDelay",F)},A.prototype.getDragDelay=function(){return this.getOption("dragDelay")},A.prototype.setSelectionStyle=function(F){this.setOption("selectionStyle",F)},A.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},A.prototype.setHighlightActiveLine=function(F){this.setOption("highlightActiveLine",F)},A.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},A.prototype.setHighlightGutterLine=function(F){this.setOption("highlightGutterLine",F)},A.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},A.prototype.setHighlightSelectedWord=function(F){this.setOption("highlightSelectedWord",F)},A.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},A.prototype.setAnimatedScroll=function(F){this.renderer.setAnimatedScroll(F)},A.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},A.prototype.setShowInvisibles=function(F){this.renderer.setShowInvisibles(F)},A.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},A.prototype.setDisplayIndentGuides=function(F){this.renderer.setDisplayIndentGuides(F)},A.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},A.prototype.setHighlightIndentGuides=function(F){this.renderer.setHighlightIndentGuides(F)},A.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},A.prototype.setShowPrintMargin=function(F){this.renderer.setShowPrintMargin(F)},A.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},A.prototype.setPrintMarginColumn=function(F){this.renderer.setPrintMarginColumn(F)},A.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},A.prototype.setReadOnly=function(F){this.setOption("readOnly",F)},A.prototype.getReadOnly=function(){return this.getOption("readOnly")},A.prototype.setBehavioursEnabled=function(F){this.setOption("behavioursEnabled",F)},A.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},A.prototype.setWrapBehavioursEnabled=function(F){this.setOption("wrapBehavioursEnabled",F)},A.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},A.prototype.setShowFoldWidgets=function(F){this.setOption("showFoldWidgets",F)},A.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},A.prototype.setFadeFoldWidgets=function(F){this.setOption("fadeFoldWidgets",F)},A.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},A.prototype.remove=function(X){this.selection.isEmpty()&&(X=="left"?this.selection.selectLeft():this.selection.selectRight());var U,Y,ee,X=this.getSelectionRange();this.getBehavioursEnabled()&&(Y=(U=this.session).getState(X.start.row),Y=U.getMode().transformAction(Y,"deletion",this,U,X),X.end.column===0&&(ee=U.getTextRange(X))[ee.length-1]==` 375`&&(ee=U.getLine(X.end.row),/^\s+$/.test(ee))&&(X.end.column=ee.length),Y)&&(X=Y),this.session.remove(X),this.clearSelection()},A.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},A.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},A.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},A.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var F=this.getSelectionRange();F.start.column==F.end.column&&F.start.row==F.end.row&&(F.end.column=0,F.end.row++),this.session.remove(F),this.clearSelection()},A.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var F=this.getCursorPosition();this.insert(` 376`),this.moveCursorToPosition(F)},A.prototype.setGhostText=function(F,U){this.renderer.setGhostText(F,U)},A.prototype.removeGhostText=function(){this.renderer.removeGhostText()},A.prototype.transposeLetters=function(){var F,U,Y,ee;this.selection.isEmpty()&&(U=(F=this.getCursorPosition()).column)!==0&&(ee=U<(ee=this.session.getLine(F.row)).length?(Y=ee.charAt(U)+ee.charAt(U-1),new f(F.row,U-1,F.row,U+1)):(Y=ee.charAt(U-1)+ee.charAt(U-2),new f(F.row,U-2,F.row,U)),this.session.replace(ee,Y),this.session.selection.moveToPosition(ee.end))},A.prototype.toLowerCase=function(){var F=this.getSelectionRange(),U=(this.selection.isEmpty()&&this.selection.selectWord(),this.get
376SelectionRange()),Y=this.session.getTextRange(U);this.session.replace(U,Y.toLowerCase()),this.selection.setSelectionRange(F)},A.prototype.toUpperCase=function(){var F=this.getSelectionRange(),U=(this.selection.isEmpty()&&this.selection.selectWord(),this.getSelectionRange()),Y=this.session.getTextRange(U);this.session.replace(U,Y.toUpperCase()),this.selection.setSelectionRange(F)},A.prototype.indent=function(){var F=this.session,U=this.getSelectionRange();if(!(U.start.row<U.end.row)){if(U.start.column<U.end.column){var Y,q=F.getTextRange(U);if(!/^\s+$/.test(q))return Y=this.$getSelectedRows(),void F.indentRows(Y.first,Y.last," ")}var ee=F.getLine(U.start.row),q=U.start,X=F.getTabSize(),q=F.documentToScreenColumn(q.row,q.column);if(this.session.getUseSoftTabs())var ne=X-q%X,se=p.stringRepeat(" ",ne);else{for(ne=q%X;ee[U.start.column-1]==" "&≠)U.start.column--,ne--;this.selection.setSelectionRange(U),se=" "}return this.insert(se)}Y=this.$getSelectedRows(),F.indentRows(Y.first,Y.last," ")},A.prototype.blockIndent=function(){var F=this.$getSelectedRows();this.session.indentRows(F.first,F.last," ")},A.prototype.blockOutdent=function(){var F=this.session.getSelection();this.session.outdentRows(F.getRange())},A.prototype.sortLines=function(){for(var F=this.$getSelectedRows(),U=this.session,Y=[],ee=F.first;ee<=F.last;ee++)Y.push(U.getLine(ee));Y.sort(function(ne,se){return ne.toLowerCase()<se.toLowerCase()?-1:ne.toLowerCase()>se.toLowerCase()?1:0});for(var X=new f(0,0,0,0),ee=F.first;ee<=F.last;ee++){var q=U.getLine(ee);X.start.row=ee,X.end.row=ee,X.end.column=q.length,U.replace(X,Y[ee-F.first])}},A.prototype.toggleCommentLines=function(){var F=this.session.getState(this.getCursorPosition().row),U=this.$getSelectedRows();this.session.getMode().toggleCommentLines(F,this.session,U.first,U.last)},A.prototype.toggleBlockComment=function(){var F=this.getCursorPosition(),U=this.session.getState(F.row),Y=this.getSelectionRange();this.session.getMode().toggleBlockComment(U,this.session,Y,F)},A.prototype.getNumberAt=function(F,U){for(var Y=/[\-]?[0-9]+(?:\.[0-9]+)?/g,ee=(Y.lastIndex=0,this.session.getLine(F));Y.lastIndex<U;){var X=Y.exec(ee);if(X.index<=U&&X.index+X[0].length>=U)return{value:X[0],start:X.index,end:X.index+X[0].length}}return null},A.prototype.modifyNumber=function(F){var U,Y,ee,X=this.selection.getCursor().row,q=this.selection.getCursor().column,ne=new f(X,q-1,X,q),ne=this.session.getTextRange(ne);!isNaN(parseFloat(ne))&&isFinite(ne)?(ne=this.getNumberAt(X,q))&&(ee=0<=ne.value.indexOf(".")?ne.start+ne.value.indexOf(".")+1:ne.end,U=ne.start+ne.value.length-ee,Y=parseFloat(ne.value),Y*=Math.pow(10,U),ee!==ne.end&&q<ee?F*=Math.pow(10,ne.end-q-1):F*=Math.pow(10,ne.end-q),ee=(Y=(Y+=F)/Math.pow(10,U)).toFixed(U),F=new f(X,ne.start,X,ne.end),this.session.replace(F,ee),this.moveCursorTo(X,Math.max(ne.start+1,q+ee.length-ne.value.length))):this.toggleWord()},A.prototype.toggleWord=function(){for(var F,U=this.selection.getCursor().row,Y=this.selection.getCursor().column,ee=(this.selection.selectWord(),this.get
376SelectedText()),X=this.selection.getWordRange().start.column,q=ee.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),ne=Y-X-1,se=(ne<0&&(ne=0),0),he=this,ie=(ee.match(/[A-Za-z0-9_]+/)&&q.forEach(function(V,te){F=se+V.length,se<=ne&&ne<=F&&(ee=V,he.selection.clearSelection(),he.moveCursorTo(U,se+X),he.selection.selectTo(U,F+X)),se=F}),this.$toggleWordPairs),oe=0;oe<ie.length;oe++)for(var de=ie[oe],me=0;me<=1;me++){var be=+!me,Se=ee.match(new RegExp("^\\s?_?("+p.escapeRegExp(de[me])+")\\s?$","i"));Se&&ee.match(new RegExp("([_]|^|\\s)("+p.escapeRegExp(Se[1])+")($|\\s)","g"))&&(Se=ee.replace(new RegExp(p.escapeRegExp(de[me]),"i"),function(V){var te=de[be];return V.toUpperCase()==V?te=te.toUpperCase():V.charAt(0).toUpperCase()==V.charAt(0)&&(te=te.substr(0,0)+de[be].charAt(0).toUpperCase()+te.substr(1)),te}),this.insert(Se))}},A.prototype.findLinkAt=function(q,U){var Y,ee,X,q=this.session.getLine(q).split(/((?:https?|ftp):\/\/[\S]+)/),ne=U,se=(ne<0&&(ne=0),0);try{for(var he=x(q),ie=he.next();!ie.done;ie=he.next()){var oe=ie.value,de=se+oe.length;if(se<=ne&&ne<=de&&oe.match(/((?:https?|ftp):\/\/[\S]+)/)){X=oe.replace(/[\s:.,'";}\]]+$/,"");break}se=de}}catch(me){Y={error:me}}finally{try{ie&&!ie.done&&(ee=he.return)&&ee.call(he)}finally{if(Y)throw Y.error}}return X},A.prototype.openLink=function(){var F=this.selection.getCursor(),F=this.findLinkAt(F.row,F.column);return F&&window.open(F,"_blank"),F!=null},A.prototype.removeLines=function(){var F=this.$getSelectedRows();this.session.removeFullLines(F.first,F.last),this.clearSelection()},A.prototype.duplicateSelection=function(){var F,U=this.selection,Y=this.session,ee=U.getRange(),X=U.isBackwards();ee.isEmpty()?(F=ee.start.row,Y.duplicateLines(F,F)):(F=X?ee.start:ee.end,Y=Y.insert(F,Y.getTextRange(ee)),ee.start=F,ee.end=Y,U.setSelectionRange(ee,X))},A.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},A.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},A.prototype.moveText=function(F,U,Y){return this.session.moveText(F,U,Y)},A.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},A.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},A.prototype.$moveLines=function(F,U){var Y=this.selection;if(!Y.inMultiSelectMode||this.inVirtualSelectionMode){var ee=Y.toOrientedRange(),X=this.$getSelectedRows(ee),q=this.session.$moveLines(X.first,X.last,U?0:F);ee.moveBy(q=U&&F==-1?0:q,0),Y.fromOrientedRange(ee)}else{for(var ne=Y.rangeList.ranges,se=(Y.rangeList.detach(this.session),this.inVirtualSelectionMode=!0,0),he=0,ie=ne.length,oe=0;oe<ie;oe++){for(var de=oe,me=(ne[oe].moveBy(se,0),(X=this.$getSelectedRows(ne[oe])).first),be=X.last;++oe<ie;){he&&ne[oe].moveBy(he,0);var Se=this.$getSelectedRows(ne[oe]);if(U&&Se.first!=be||!U&&Se.first>be+1)break;be=Se.last}for(oe--,se=this.session.$moveLines(me,be,U?0:F),U&&F==-1&&(de=oe+1);de<=oe;)ne[de].moveBy(se,0),de++;he+=se=U?se:0}Y.fromOrientedRange(Y.ranges[0]),Y.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},A.prototype.$getSelectedRows=function(F){return F=(F||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(F.start.row),last:this.session.getRowFoldEnd(F.end.row)}},A.prototype.onCompositionStart=function(F){this.renderer.showComposition(F)},A.prototype.onCompositionUpdate=function(F){this.renderer.setCompositionText(F)},A.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},A.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},A.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},A.prototype.isRowVisible=function(F){return F>=this.getFirstVisibleRow()&&F<=this.getLastVisibleRow()},A.prototype.isRowFullyVisible=function(F){return F>=this.renderer.getFirstFullyVisibleRow()&&F<=this.renderer.getLastFullyVisibleRow()},A.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},A.prototype.$moveByPage=function(q,U){var Y=this.renderer,ee=this.renderer.layerConfig,X=q*Math.floor(ee.height/ee.lineHeight),q=(U===!0?this.selection.$moveSelection(function(){this.moveCursorBy(X,0)}):U===!1&&(this.selection.moveCursorBy(X,0),this.selection.clearSelection()),Y.scrollTop);Y.scrollBy(0,X*ee.lineHeight),U!=null&&Y.scrollCursorIntoView(null,.5),Y.animateScrolling(q)},A.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},A.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},A.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},A.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},A.prototype.scrollPageDown=function(){this.$moveByPage(1)},A.prototype.scrollPageUp=function(){this.$moveByPage(-1)},A.prototype.scrollToRow=function(F){this.renderer.scrollToRow(F)},A.prototype.scrollToLine=function(F,U,Y,ee){this.renderer.scrollToLine(F,U,Y,ee)},A.prototype.centerSelection=function(){var F=this.getSelectionRange(),F={row:Math.floor(F.start.row+(F.end.row-F.start.row)/2),column:Math.floor(F.start.column+(F.end.column-F.start.column)/2)};this.renderer.alignCursor(F,.5)},A.prototype.getCursorPosition=function(){return this.selection.getCursor()},A.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},A.prototype.getSelectionRange=function(){return this.selection.getRange()},A.prototype.selectAll=function(){this.selection.selectAll()},A.prototype.clearSelection=function(){this.selection.clearSelection()},A.prototype.moveCursorTo=function(F,U){this.selection.moveCursorTo(F,U)},A.prototype.moveCursorToPosition=function(F){this.selection.moveCursorToPosition(F)},A.prototype.jumpToMatching=function(F,U){var Y=this.getCursorPosition(),ee=new M(this.session,Y.row,Y.column),X=ee.getCurrentToken(),q=0,ne=(X=X&&X.type.indexOf("tag-name")!==-1?ee.stepBackward():X)||ee.stepForward();if(ne){var se,he,ie=!1,oe={},de=Y.column-ne.start,me={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do if(ne.value.match(/[{}()\[\]]/g)){for(;de<ne.value.length&&!ie;de++)if(me[ne.value[de]])switch(he=me[ne.value[de]]+"."+ne.type.replace("rparen","lparen"),isNaN(oe[he])&&(oe[he]=0),ne.value[de]){case"(":case"[":case"{":oe[he]++;break;case")":case"]":case"}":oe[he]--,oe[he]===-1&&(se="bracket",ie=!0)}}else ne.type.indexOf("tag-name")!==-1&&(isNaN(oe[ne.value])&&(oe[ne.value]=0),X.value==="<"&&1<q?oe[ne.value]++:X.value==="</"&&oe[ne.value]--,oe[ne.value]===-1)&&(se="tag",ie=!0);while(ie||(X=ne,q++,ne=ee.stepForward(),de=0),ne&&!ie);if(se){if(se==="bracket")!(Se=this.session.getBracketRange(Y))&&(V=(Se=new f(ee.getCurrentTokenRow(),ee.getCurrentTokenColumn()+de-1,ee.getCurrentTokenRow(),ee.getCurrentTokenColumn()+de-1)).start,U||V.row===Y.row&&Math.abs(V.column-Y.column)<2)&&(Se=this.session.getBracketRange(V));else if(se==="tag"){if(!ne||ne.type.indexOf("tag-name")===-1)return;var be,Se,V=(V=(Se=new f(ee.getCurrentTokenRow(),ee.getCurrentTokenColumn()-2,ee.getCurrentTokenRow(),ee.getCurrentTokenColumn()-2)).compare(Y.row,Y.column)===0&&(be=this.session.getMatchingTags(Y))?be.openTag.contains(Y.row,Y.column)?(Se=be.closeTag).start:(Se=be.openTag,be.closeTag.start.row===Y.row&&be.closeTag.start.column===Y.column?Se.end:Se.start):V)||Se.start}(V=Se&&Se.cursor||V)&&(F?Se&&U?this.selection.setRange(Se):Se&&Se.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(V.row,V.column):this.selection.moveTo(V.row,V.column))}}},A.prototype.gotoLine=function(F,U,Y){this.selection.clearSelection(),this.session.unfold({row:F-1,column:U||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(F-1,U||0),this.isRowFullyVisible(F-1)||this.scrollToLine(F-1,!0,Y)},A.prototype.navigateTo=function(F,U){this.selection.moveTo(F,U)},A.prototype.navigateUp=function(F){var U;if(this.selection.isMultiLine()&&!this.selection.isBackwards())return U=this.selection.anchor.getPosition(),this.moveCursorToPosition(U);this.selection.clearSelection(),this.selection.moveCursorBy(-F||-1,0)},A.prototype.navigateDown=function(F){var U;if(this.selection.isMultiLine()&&this.selection.isBackwards())return U=this.selection.anchor.getPosition(),this.moveCursorToPosition(U);this.selection.clearSelection(),this.selection.moveCursorBy(F||1,0)},A.prototype.navigateLeft=function(F){if(this.selection.isEmpty())for(F=F||1;F--;)this.selection.moveCursorLeft();else{var U=this.getSelectionRange().start;this.moveCursorToPosition(U)}this.clearSelection()},A.prototype.navigateRight=function(F){if(this.selection.isEmpty())for(F=F||1;F--;)this.selection.moveCursorRight();else{var U=this.getSelectionRange().end;this.moveCursorToPosition(U)}this.clearSelection()},A.prototype.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},A.prototype.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},A.prototype.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},A.prototype.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},A.prototype.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},A.prototype.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},A.prototype.replace=function(F,Y){Y&&this.$search.set(Y);var Y=this.$search.find(this.session),ee=0;return Y&&(this.$tryReplace(Y,F)&&(ee=1),this.selection.setSelectionRange(Y),this.renderer.scrollSelectionIntoView(Y.start,Y.end)),ee},A.prototype.replaceAll=function(F,U){U&&this.$search.set(U);var Y=this.$search.findAll(this.session),ee=0;if(Y.length){U=this.getSelectionRange(),this.selection.moveTo(0,0);for(var X=Y.length-1;0<=X;--X)this.$tryReplace(Y[X],F)&&ee++;this.selection.setSelectionRange(U)}return ee},A.prototype.$tryReplace=function(F,U){var Y=this.session.getTextRange(F);return(U=this.$search.replace(Y,U))!==null?(F.end=this.session.replace(F,U),F):null},A.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},A.prototype.find=function(X,U,Y){U=U||{},typeof X=="string"||X instanceof RegExp?U.needle=X:typeof X=="object"&&S.mixin(U,X);var ee=this.selection.getRange(),X=(U.needle==null&&((X=this.session.getTextRange(ee)||this.$search.$options.needle)||(ee=this.session.getWordRange(ee.start.row,ee.start.column),X=this.session.getTextRange(ee)),this.$search.set({needle:X})),this.$search.set(U),U.start||this.$search.set({start:ee}),this.$search.find(this.session));return U.preventScroll?X:X?(this.revealRange(X,Y),X):(U.backwards?ee.start=ee.end:ee.end=ee.start,void this.selection.setRange(ee))}
376,A.prototype.findNext=function(F,U){this.find({skipCurrent:!0,backwards:!1},F,U)},A.prototype.findPrevious=function(F,U){this.find(F,{skipCurrent:!0,backwards:!0},U)},A.prototype.revealRange=function(F,U){this.session.unfold(F),this.selection.setSelectionRange(F);var Y=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(F.start,F.end,.5),U!==!1&&this.renderer.animateScrolling(Y)},A.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},A.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},A.prototype.destroy=function(){this.destroyed=!0,this.$toDestroy&&(this.$toDestroy.forEach(function(F){F.destroy()}),this.$toDestroy=[]),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},A.prototype.setAutoScrollEditorIntoView=function(F){var U,Y,ee,X,q,ne,se;F&&(ee=!1,(Y=this).$scrollAnchor||(this.$scrollAnchor=document.createElement("div")),(X=this.$scrollAnchor).style.cssText="position:absolute",this.container.insertBefore(X,this.container.firstChild),q=this.on("changeSelection",function(){ee=!0}),ne=this.renderer.on("beforeRender",function(){ee&&(U=Y.renderer.container.getBoundingClientRect())}),se=this.renderer.on("afterRender",function(){var he,ie,oe;ee&&U&&(Y.isFocused()||Y.searchBox&&Y.searchBox.isFocused())&&(oe=(he=(ie=Y.renderer).$cursorLayer.$pixelPos).top-(ie=ie.layerConfig).offset,(ee=0<=he.top&&oe+U.top<0||!(he.top<ie.height&&he.top+U.top+ie.lineHeight>window.innerHeight)&&null)!=null&&(X.style.top=oe+"px",X.style.left=he.left+"px",X.style.height=ie.lineHeight+"px",X.scrollIntoView(ee)),ee=U=null)}),this.setAutoScrollEditorIntoView=function(he){he||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",q),this.renderer.off("afterRender",se),this.renderer.off("beforeRender",ne))})},A.prototype.$resetCursorStyle=function(){var F=this.$cursorStyle||"ace",U=this.renderer.$cursorLayer;U&&(U.setSmoothBlinking(/smooth/.test(F)),U.isBlinking=!this.$readOnly&&F!="wide",b.setCssClass(U.element,"ace_slim-cursors",/slim/.test(F)))},A.prototype.prompt=function(F,U,Y){var ee=this;L.loadModule("ace/ext/prompt",function(X){X.prompt(ee,F,U,Y)})},Object.defineProperty(A.prototype,"hoverTooltip",{get:function(){return this.$hoverTooltip||(this.$hoverTooltip=new K(this.container))},set:function(F){this.$hoverTooltip&&this.$hoverTooltip.destroy(),this.$hoverTooltip=F},enumerable:!1,configurable:!0}),A);function A(F,U,Y){this.id="editor"+ ++A.$uid,this.session,this.$toDestroy=[];var ee=F.getContainerElement();this.container=ee,this.renderer=F,this.commands=new E(g.isMac?"mac":"win",k),typeof document=="object"&&(this.textInput=new u(F.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new y(this),new m(this)),this.keyBinding=new I(this),this.$search=new h().set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=p.delayedCall((function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}).bind(this)),this.on("change",function(X,q){q._$emitInputEvent.schedule(31)}),this.setSession(U||Y&&Y.session||new _("")),L.resetOptions(this),Y&&this.setOptions(Y),L._signal("editor",this)}H.$uid=0,H.prototype.curOp=null,H.prototype.prevOp={},H.prototype.$mergeableCommands=["backspace","del","insertstring"],H.prototype.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["in","out"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],S.implement(H.prototype,w),L.defineOptions(H.prototype,"editor",{selectionStyle:{set:function(F){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:F})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(F){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(F){var U,Y=this;this.textInput.setReadOnly(F),this.destroyed||(this.$resetCursorStyle(),this.$readOnlyCallback||(this.$readOnlyCallback=function(ee){var X=!1;if(ee&&ee.type=="keydown"){if(ee&&ee.key&&!ee.ctrlKey&&!ee.metaKey&&(ee.key==" "&&ee.preventDefault(),X=ee.key.length==1),!X)return}else ee&&ee.type!=="exec"&&(X=!0);X?((ee=b.createElement("div")).textContent=j("editor.tooltip.disable-editing","Editing is disabled"),Y.hoverTooltip.isOpen||Y.hoverTooltip.showForRange(Y,Y.getSelectionRange(),ee)):Y.hoverTooltip&&Y.hoverTooltip.isOpen&&Y.hoverTooltip.hide()}),U=this.textInput.getElement(),F?(D.addListener(U,"keydown",this.$readOnlyCallback,this),this.commands.on("exec",this.$readOnlyCallback),this.commands.on("commandUnavailable",this.$readOnlyCallback)):(D.removeListener(U,"keydown",this.$readOnlyCallback),this.commands.off("exec",this.$readOnlyCallback),this.commands.off("
376commandUnavailable",this.$readOnlyCallback)))},initialValue:!1},copyWithEmptySelection:{set:function(F){this.textInput.setCopyWithEmptySelection(F)},initialValue:!1},cursorStyle:{set:function(F){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(F){this.setAutoScrollEditorIntoView(F)}},keyboardHandler:{set:function(F){this.setKeyboardHandler(F)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(F){this.session.setValue(F)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(F){this.setSession(F)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(F){this.renderer.$gutterLayer.setShowLineNumbers(F),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),F&&this.$relativeLineNumbers?W.attach(this):W.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(F){this.$showLineNumbers&&F?W.attach(this):W.detach(this)}},placeholder:{set:function(F){this.$updatePlaceholder||(this.$updatePlaceholder=(function(){var U=this.session&&(this.renderer.$composition||1<this.session.getLength()||0<this.session.getLine(0).length);U&&this.renderer.placeholderNode?(this.renderer.off("afterRender",this.$updatePlaceholder),b.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null):U||this.renderer.placeholderNode?!U&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||""):(this.renderer.on("afterRender",this.$updatePlaceholder),b.addCssClass(this.container,"ace_hasPlaceholder"),(U=b.createElement("div")).className="ace_placeholder",U.textContent=this.$placeholder||"",this.renderer.placeholderNode=U,this.renderer.content.appendChild(this.renderer.placeholderNode))}).bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function(F){function U(X){X.target==this.renderer.scroller&&X.keyCode===Q.enter&&(X.preventDefault(),X=this.getCursorPosition().row,this.isRowVisible(X)||this.scrollToLine(X,!0,!0),this.focus())}var Y,ee={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(X){X.blur(),X.renderer.scroller.focus()},readOnly:!0};F?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(g.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",j("editor.scroller.aria-roledescription","editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",j("editor.scroller.aria-label","Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",U.bind(this)),this.commands.addCommand(ee),this.renderer.$gutter.setAttribute("tabindex",0),this.renderer.$gutter.setAttribute("aria-hidden",!1),this.renderer.$gutter.setAttribute("role","group"),this.renderer.$gutter.setAttribute("aria-roledescription",j("editor.gutter.aria-roledescription","editor gutter")),this.renderer.$gutter.setAttribute("aria-label",j("editor.gutter.aria-label","Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit")),this.renderer.$gutter.classList.add(this.renderer.keyboardFocusClassName),this.renderer.content.setAttribute("aria-hidden",!0),(Y=Y||new B(this)).addListener(),this.textInput.setAriaOptions({setLabel:!0})):(this.renderer.enableKeyboardAccessibility=!1,this.textInput.getElement().setAttribute("tabindex",0),this.textInput.setNumberOfExtraLines(0),this.renderer.scroller.setAttribute("tabindex",-1),this.renderer.scroller.removeAttribute("role"),this.renderer.scroller.removeAttribute("aria-roledescription"),this.renderer.scroller.classList.remove(this.renderer.keyboardFocusClassName),this.renderer.scroller.removeAttribute("aria-label"),this.renderer.scroller.removeEventListener("keyup",U.bind(this)),this.commands.removeCommand(ee),this.renderer.content.removeAttribute("aria-hidden"),this.renderer.$gutter.setAttribute("tabindex",-1),this.renderer.$gutter.setAttribute("aria-hidden",!0),this.renderer.$gutter.removeAttribute("role"),this.renderer.$gutter.removeAttribute("aria-roledescription"),this.renderer.$gutter.removeAttribute("aria-label"),this.renderer.$gutter.classList.remove(this.renderer.keyboardFocusClassName),Y&&Y.removeListener())},initialValue:!1},textInputAriaLabel:{set:function(F){this.$textInputAriaLabel=F},initialValue:""},enableMobileMenu:{set:function(F){this.$enableMobileMenu=F},initialValue:!0},customScrollbar:"renderer",hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",highlightIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",useResizeObserver:"renderer",useSvgGutterIcons:"renderer",showFoldedAnnotations:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focu
376sTimeout:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var W={getText:function(F,U){return(Math.abs(F.selection.lead.row-U)||U+1+(U<9?"·":""))+""},getWidth:function(F,U,Y){return Math.max(U.toString().length,(Y.lastRow+1).toString().length,2)*Y.characterWidth},update:function(F,U){U.renderer.$loop.schedule(U.renderer.CHANGE_GUTTER)},attach:function(F){F.renderer.$gutterLayer.$renderer=this,F.on("changeSelection",this.update),this.update(null,F)},detach:function(F){F.renderer.$gutterLayer.$renderer==this&&(F.renderer.$gutterLayer.$renderer=null),F.off("changeSelection",this.update),this.update(null,F)}};C.Editor=H}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(T,C,N){var x=T("../lib/dom");function S(b,p){this.element=b,this.canvasHeight=p||5e5,this.element.style.height=2*this.canvasHeight+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}S.prototype.moveContainer=function(b){x.translate(this.element,0,-(b.firstRowScreen*b.lineHeight%this.canvasHeight)-b.offset*this.$offsetCoefficient)},S.prototype.pageChanged=function(b,p){return Math.floor(b.firstRowScreen*b.lineHeight/this.canvasHeight)!==Math.floor(p.firstRowScreen*p.lineHeight/this.canvasHeight)},S.prototype.computeLineTop=function(b,p,g){var u=p.firstRowScreen*p.lineHeight,u=Math.floor(u/this.canvasHeight);return g.documentToScreenRow(b,0)*p.lineHeight-u*this.canvasHeight},S.prototype.computeLineHeight=function(b,p,g){return p.lineHeight*g.getRowLineCount(b)},S.prototype.getLength=function(){return this.cells.length},S.prototype.get=function(b){return this.cells[b]},S.prototype.shift=function(){this.$cacheCell(this.cells.shift())},S.prototype.pop=function(){this.$cacheCell(this.cells.pop())},S.prototype.push=function(b){if(Array.isArray(b)){this.cells.push.apply(this.cells,b);for(var p=x.createFragment(this.element),g=0;g<b.length;g++)p.appendChild(b[g].element);this.element.appendChild(p)}else this.cells.push(b),this.element.appendChild(b.element)},S.prototype.unshift=function(b){if(Array.isArray(b)){this.cells.unshift.apply(this.cells,b);for(var p=x.createFragment(this.element),g=0;g<b.length;g++)p.appendChild(b[g].element);this.element.firstChild?this.element.insertBefore(p,this.element.firstChild):this.element.appendChild(p)}else this.cells.unshift(b),this.element.insertAdjacentElement("afterbegin",b.element)},S.prototype.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},S.prototype.$cacheCell=function(b){b&&(b.element.remove(),this.cellCache.push(b))},S.prototype.createCell=function(b,p,g,u){var y,m=this.cellCache.pop();return m||(y=x.createElement("div"),u&&u(y),this.element.appendChild(y),m={element:y,text:"",row:b}),m.row=b,m},C.Lines=S}),ace.define("ace/layer/gutter",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/layer/lines","ace/config"],function(y,C,N){var x=y("../lib/dom"),S=y("../lib/oop"),b=y("../lib/lang"),p=y("../lib/event_emitter").EventEmitter,g=y("./lines").Lines,u=y("../config").nls,y=(m.prototype.setSession=function(_){this.session&&this.session.off("change",this.$updateAnnotations),(this.session=_)&&_.on("change",this.$updateAnnotations)},m.prototype.addGutterDecoration=function(_,h){window.console,this.session.addGutterDecoration(_,h)},m.prototype.removeGutterDecoration=function(_,h){window.console,this.session.removeGutterDecoration(_,h)},m.prototype.setAnnotations=function(_){this.$annotations=[];for(var h=0;h<_.length;h++){var f=_[h],k=f.row,w=(w=this.$annotations[k])||(this.$annotations[k]={text:[],type:[],displayText:[]}),k=f.text,E=f.type,L=(L=f.text)?b.escapeHTML(L):f.html||"",k=k||f.html||"",L=(w.text.indexOf(L)===-1&&(w.text.push(L),w.type.push(E),w.displayText.push(k)),f.className);L?w.className=L:E==="error"?w.className=" ace_error":E!=="security"||/\bace_error\b/.test(w.className)?E!=="warning"||/\bace_(error|security)\b/.test(w.className)?E!=="info"||w.className?E!=="hint"||w.className||(w.className=" ace_hint"):w.className=" ace_info":w.className=" ace_warning":w.className=" ace_security"}},m.prototype.$updateAnnotations=function(_){var h,f;this.$annotations.length&&(h=_.start.row,(f=_.end.row-h)!=0)&&(_.action=="remove"?this.$annotations.splice(h,1+f,null):((_=new Array(1+f)).unshift(h,1),this.$annotations.splice.apply(this.$annotations,_)))},m.prototype.update=function(_){this.config=_;for(var h=this.session,f=_.firstRow,w=Math.min(_.lastRow+_.gutterOffset,h.getLength()-1),E=(this.oldLastRow=w,this.config=_,this.$lines.moveC
376ontainer(_),this.$updateCursorRow(),h.getNextFoldLine(f)),k=E?E.start.row:1/0,L=null,M=-1,B=f;;){if(k<B&&(B=E.end.row+1,k=(E=h.getNextFoldLine(B,E))?E.start.row:1/0),w<B){for(;this.$lines.getLength()>M+1;)this.$lines.pop();break}(L=this.$lines.get(++M))?L.row=B:(L=this.$lines.createCell(B,_,this.session,I),this.$lines.push(L)),this.$renderCell(L,_,E,B),B++}this._signal("afterRender"),this.$updateGutterWidth(_),this.$showCursorMarker&&this.$highlightGutterLine&&this.$updateCursorMarker()},m.prototype.$updateGutterWidth=function(_){var h=this.session,E=h.gutterRenderer||this.$renderer,w=h.$firstLineNumber,f=this.$lines.last()?this.$lines.last().text:"",w=((this.$fixedWidth||h.$useWrapMode)&&(f=h.getLength()+w-1),E?E.getWidth(h,f,_):f.toString().length*_.characterWidth),E=this.$padding||this.$computePadding();(w+=E.left+E.right)===this.gutterWidth||isNaN(w)||(this.gutterWidth=w,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",w))},m.prototype.$updateCursorRow=function(){var _;this.$highlightGutterLine&&(_=this.session.selection.getCursor(),this.$cursorRow!==_.row)&&(this.$cursorRow=_.row)},m.prototype.updateLineHighlight=function(){if(this.$showCursorMarker&&this.$updateCursorMarker(),this.$highlightGutterLine){var _=this.session.selection.cursor.row;if(this.$cursorRow=_,!this.$cursorCell||this.$cursorCell.row!=_){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var h=this.$lines.cells;this.$cursorCell=null;for(var f=0;f<h.length;f++){var w=h[f];if(w.row>=this.$cursorRow){if(w.row>this.$cursorRow){var E=this.session.getFoldLine(this.$cursorRow);if(!(0<f&&E&&E.start.row==h[f-1].row))break;w=h[f-1]}w.element.className="ace_gutter-active-line "+w.element.className,this.$cursorCell=w;break}}}}},m.prototype.$updateCursorMarker=function(){var _,h,f,w,E;this.session&&(E=this.session,this.$highlightElement||(this.$highlightElement=x.createElement("div"),this.$highlightElement.className="ace_gutter-cursor",this.$highlightElement.style.pointerEvents="none",this.element.appendChild(this.$highlightElement)),_=E.selection.cursor,h=this.config,f=this.$lines,w=h.firstRowScreen*h.lineHeight,w=Math.floor(w/f.canvasHeight),E=E.documentToScreenRow(_)*h.lineHeight-w*f.canvasHeight,x.setStyle(this.$highlightElement.style,"height",h.lineHeight+"px"),x.setStyle(this.$highlightElement.style,"top",E+"px"))},m.prototype.scrollLines=function(_){var h=this.config;if(this.config=_,this.$updateCursorRow(),this.$lines.pageChanged(h,_))return this.update(_);this.$lines.moveContainer(_);var f=Math.min(_.lastRow+_.gutterOffset,this.session.getLength()-1),w=this.oldLastRow;if(this.oldLastRow=f,!h||w<_.firstRow)return this.update(_);if(f<h.firstRow)return this.update(_);if(h.firstRow<_.firstRow)for(var E=this.session.getFoldedRowCount(h.firstRow,_.firstRow-1);0<E;E--)this.$lines.shift();if(f<w)for(E=this.session.getFoldedRowCount(f+1,w);0<E;E--)this.$lines.pop();_.firstRow<h.firstRow&&this.$lines.unshift(this.$renderLines(_,_.firstRow,h.firstRow-1)),w<f&&this.$lines.push(this.$renderLines(_,w+1,f)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(_)},m.prototype.$renderLines=function(_,h,f){for(var w=[],E=h,k=this.session.getNextFoldLine(E),L=k?k.start.row:1/0;L<E&&(E=k.end.row+1,L=(k=this.session.getNextFoldLine(E,k))?k.start.row:1/0),!(f<E);){var M=this.$lines.createCell(E,_,this.session,I);this.$renderCell(M,_,k,E),w.push(M),E++}return w},m.prototype.$renderCell=function(_,h,f,w){var E,k=_.element,L=this.session,M=k.childNodes[0],B=k.childNodes[1],j=k.childNodes[2],z=k.childNodes[3],Q=j.firstChild,D=L.$firstLineNumber,K=L.$breakpoints,he=L.$decorations,H=L.gutterRenderer||this.$renderer,A=this.$showFoldWidgets&&L.foldWidgets,W=f?f.start.row:Number.MAX_VALUE,F=h.lineHeight+"px",U=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",Y=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",ee=(H?H.getText(L,w):w+D).toString();
376if(this.$highlightGutterLine&&(w==this.$cursorRow||f&&w<this.$cursorRow&&W<=w&&this.$cursorRow<=f.end.row)&&(U+="ace_gutter-active-line ",this.$cursorCell!=_)&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=_),K[w]&&(U+=K[w]),he[w]&&(U+=he[w]),this.$annotations[w]&&w!==W&&(U+=this.$annotations[w].className),E=A&&(E=A[w])==null?A[w]=L.getFoldWidget(w):E){if(H="ace_fold-widget ace_"+E,D=E=="start"&&w==W&&w<f.end.row,D){H+=" ace_closed";for(var X="",q=!1,ne=w+1;ne<=f.end.row;ne++)if(this.$annotations[ne]){if(this.$annotations[ne].className===" ace_error"){q=!0,X=" ace_error_fold";break}this.$annotations[ne].className===" ace_security"?(q=!0,X=" ace_security_fold"):this.$annotations[ne].className===" ace_warning"&&X!==" ace_security_fold"&&(q=!0,X=" ace_warning_fold")}U+=X}else H+=" ace_open";B.className!=H&&(B.className=H),x.setStyle(B.style,"height",F),x.setStyle(B.style,"display","inline-block"),B.setAttribute("role","button"),B.setAttribute("tabindex","-1"),K=L.getFoldWidgetRange(w),K?B.setAttribute("aria-label",u("gutter.code-folding.range.aria-label","Toggle code folding, rows $0 through $1",[K.start.row+1,K.end.row+1])):f?B.setAttribute("aria-label",u("gutter.code-folding.closed.aria-label","Toggle code folding, rows $0 through $1",[f.start.row+1,f.end.row+1])):B.setAttribute("aria-label",u("gutter.code-folding.open.aria-label","Toggle code folding, row $0",[w+1])),D?(B.setAttribute("aria-expanded","false"),B.setAttribute("title",u("gutter.code-folding.closed.title","Unfold code"))):(B.setAttribute("aria-expanded","true"),B.setAttribute("title",u("gutter.code-folding.open.title","Fold code")))}else B&&(x.setStyle(B.style,"display","none"),B.setAttribute("tabindex","0"),B.removeAttribute("role"),B.removeAttribute("aria-label"));var se,he=this.session.$gutterCustomWidgets[w];if(he?this.$addCustomWidget(w,he,_):z&&this.$removeCustomWidget(w,_),q&&this.$showFoldedAnnotations){switch(j.className="ace_gutter_annotation",Q.className=Y,Q.className+=X,x.setStyle(Q.style,"height",F),x.setStyle(j.style,"display","block"),x.setStyle(j.style,"height",F),X){case" ace_error_fold":se=u("gutter.annotation.aria-label.error","Error, read annotations row $0",[ee]);break;case" ace_security_fold":se=u("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[ee]);break;case" ace_warning_fold":se=u("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[ee])}j.setAttribute("aria-label",se),j.setAttribute("tabindex","-1"),j.setAttribute("role","button")}else if(this.$annotations[w]){switch(j.className="ace_gutter_annotation",Q.className=Y,this.$useSvgGutterIcons?Q.className+=this.$annotations[w].className:k.classList.add(this.$annotations[w].className.replace(" ","")),x.setStyle(Q.style,"height",F),x.setStyle(j.style,"display","block"),x.setStyle(j.style,"height",F),this.$annotations[w].className){case" ace_error":se=u("gutter.annotation.aria-label.error","Error, read annotations row $0",[ee]);break;case" ace_security":se=u("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[ee]);break;case" ace_warning":se=u("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[ee]);break;case" ace_info":se=u("gutter.annotation.aria-label.info","Info, read annotations row $0",[ee]);break;case" ace_hint":se=u("gutter.annotation.aria-label.hint","Suggestion, read annotations row $0",[ee])}j.setAttribute("aria-label",se),j.setAttribute("tabindex","-1"),j.setAttribute("role","button")}else x.setStyle(j.style,"display","none"),j.removeAttribute("aria-label"),j.removeAttribute("role"),j.setAttribute("tabindex","0");return ee!==M.data&&(M.data=ee),k.className!=U&&(k.className=U),x.setStyle(_.element.style,"height",this.$lines.computeLineHeight(w,h,L)+"px"),x.setStyle(_.element.style,"top",this.$lines.computeLineTop(w,h,L)+"px"),_.text=ee,j.style.display!=="none"||B.style.display!=="none"||he?_.element.setAttribute("aria-hidden",!1):_.element.setAttribute("aria-hidden",!0),_},m.prototype.setHighlightGutterLine=function(_){!(this.$highlightGutterLine=_)&&this.$highlightElement&&(this.$highlightElement.remove(),this.$highlightElement=null)},m.prototype.setShowLineNumbers=function(_){this.$renderer=!_&&{getWidth:function(){return 0},getText:function(){return""}}},m.prototype.getShowLineNumbers=function(){return this.$showLineNumbers},m.prototype.setShowFoldWidgets=function(_){_?x.addCssClass(this.element,"ace_folding-enabled"):x.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=_,this.$padding=null},m.prototype.getShowFoldWidgets=function(){return this.$showFoldWidgets},m.prototype.$hideFoldWidget=function(_,h){h=h||this.$getGutterCell(_),h&&h.element&&(_=h.element.childNodes[1])&&x.setStyle(_.style,"display","none")},m.prototype.$showFoldWidget=function(_,h){h=h||this.$getGutterCell(_),h&&h.element&&(_=h.element.childNodes[1])&&this.session.foldWidgets&&this.session.foldWidgets[h.row]&&x.setStyle(_.style,"display","inline-block")},m.prototype.$getGutterCell=function(_){var h=this.$lines.cells,f=0,w=h.length-1;if(!(_<h[0].row||_>h[w].row)){for(;f<=w;){var E=Math.floor((f+w)/2),k=h[E];if(k.row>_)w=E-1;else{if(!(k.row<_))return k;f=E+1}}return k}},m.prototype.$addCustomWidget=function(_,M,f){var w=M.className,E=M.label,k=M.title,L=M.callbacks,M=(this.session.$gutterCustomWidgets[_]={className:w,label:E,title:k,callbacks:L},this.$hideFoldWidget(_,f),f||this.$getGutterCell(_));M&&M.element&&((f=M.element.querySelector(".ace_custom-widget"))&&f.remove(),(f=x.createElement("span")).className="ace_custom-widget ".concat(w),f.setAttribute("tabindex","-1"),f.setAttribute("role","button"),f.setAttribute("aria-label",E),f.setAttribute("title",k),x.setStyle(f.style,"display","inline-block"),x.setStyle(f.style,"height","inherit"),L&&L.onClick&&f.addEventListener("click",function(B){L.onClick(B,_),B.stopPropagation()}),M.element.appendChild(f))},m.prototype.$removeCustomWidget=function(_,h){delete this.session.$gutterCustomWidgets[_],this.$showFoldWidget(_,h),h=h||this.$getGutterCell(_),h&&h.element&&(_=h.element.querySelector(".ace_custom-widget"))&&h.element.removeChild(_)},m.prototype.$computePadding=function(){var _;return this.element.firstChild?(_=x.computedStyle(this.element.firstChild),this.$padding={},this.$padding.left=(parseInt(_.borderLeftWidth)||0)+(parseInt(_.paddingLeft)||0)+1,this.$padding.right=(parseInt(_.borderRightWidth)||0)+(parseInt(_.paddingRight)||0),this.$padding):{left:0,right:0}},m.prototype.getRegion=function(_){var h=this.$padding||this.$computePadding(),f=this.element.getBoundingClientRect();return _.x<h.left+f.left?"markers":this.$showFoldWidgets&&_.x>f.right-h.right?"foldWidgets":void 0},m);function m(_){this.$showCursorMarker=null,this.element=x.createElement("div"),this.element.className="ace_layer ace_gutter-layer",_.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new g(this.element),this.$lines.$offsetCoefficient=1}function I(_){var h=document.createTextNode(""),h=(_.appendChild(h),x.createElement("span")),h=(_.appendChild(h),x.createElement("span")),f=(_.appendChild(h),x.createElement("span"));return h.appendChild(f),_}y.prototype.$fixedWidth=!1,y.prototype.$highlightGutterLine=!0,y.prototype.$renderer=void 0,y.prototype.$showLineNumbers=!0,y.prototype.$showFoldWidgets=!0,S.implement(y.prototype,p),C.Gutter=y}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(b,C,N){var x=b("../range").Range,S=b("../lib/dom"),b=(p.prototype.setPadding=function(g){this.$padding=g},p.prototype.setSession=function(g){this.session=g},p.prototype.setMarkers=function(g){this.markers=g},p.prototype.elt=function(g,u){var y=this.i!=-1&&this.element.childNodes[this.i];y?this.i++:(y=document.createElement("div"),this.element.appendChild(y),this.i=-1),y.style.cssText=u,y.className=g},p.prototype.update=function(g){if(g){var u,y;for(y in this.config=g,this.i=0,this.markers){var m,I,_,h=this.markers[y];h.range?(_=h.range.clipRows(g.firstRow,g.lastRow)).isEmpty()||(_=_.toScreenRange(this.session),h.renderer?(m=this.$getTop(_.start.row,g),I=this.$padding+_.start.column*g.characterWidth,h.renderer(u,_,I,m,g)):h.type=="fullLine"?this.drawFullLineMarker(u,_,h.clazz,g):h.type=="screenLine"?this.drawScreenLineMarker(u,_,h.clazz,g):_.isMultiLine()?h.type=="text"?this.drawTextMarker(u,_,h.clazz,g):this.drawMultiLineMarker(u,_,h.clazz,g):this.drawSingleLineMarker(u,_,h.clazz+" ace_start ace_br15",g)):h.update(u,this,this.session,g)}if(this.i!=-1)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},p.prototype.$getTop=function(g,u){return(g-u.firstRowScreen)*u.lineHeight},p.prototype.drawTextMarker=function(g,u,y,m,I){for(var _,h=this.session,f=u.start.row,w=u.end.row,E=f,k=0,L=h.getScreenLastRowColumn(E),M=new x(E,u.start.column,E,k);E<=w;E++)M.start.row=M.end.row=E,M.start.column=E==f?u.start.column:h.getRowWrapIndent(E),M.end.column=L,_=k,k=L,L=E+1<w?h.getScreenLastRowColumn(E+1):E==w?0:u.end.column,this.drawSingleLineMarker(g,M,y+(E==f?" ace_start":"")+" ace_br"+((E==f||E==f+1&&u.start.column?1:0)|(_<k?2:0)|(L<k?4:0)|(E==w?8:0)),m,E==w?0:1,I)},p.prototype.drawMultiLineMarker=function(g,u,y,m,I){var _,h=this.$padding,f
376=m.lineHeight,w=this.$getTop(u.start.row,m),E=h+u.start.column*m.characterWidth;I=I||"",this.session.$bidiHandler.isBidiRow(u.start.row)?((_=u.clone()).end.row=_.start.row,_.end.column=this.session.getLine(_.start.row).length,this.drawBidiSingleLineMarker(g,_,y+" ace_br1 ace_start",m,null,I)):this.elt(y+" ace_br1 ace_start","height:"+f+"px;right:"+h+"px;top:"+w+"px;left:"+E+"px;"+(I||"")),this.session.$bidiHandler.isBidiRow(u.end.row)?((_=u.clone()).start.row=_.end.row,_.start.column=0,this.drawBidiSingleLineMarker(g,_,y+" ace_br12",m,null,I)):(w=this.$getTop(u.end.row,m),E=u.end.column*m.characterWidth,this.elt(y+" ace_br12","height:"+f+"px;width:"+E+"px;top:"+w+"px;left:"+h+"px;"+(I||""))),(f=(u.end.row-u.start.row-1)*m.lineHeight)<=0||(w=this.$getTop(u.start.row+1,m),g=(u.start.column?1:0)|(u.end.column?0:8),this.elt(y+(g?" ace_br"+g:""),"height:"+f+"px;right:"+h+"px;top:"+w+"px;left:"+h+"px;"+(I||"")))},p.prototype.drawSingleLineMarker=function(h,E,y,m,f,_){if(this.session.$bidiHandler.isBidiRow(E.start.row))return this.drawBidiSingleLineMarker(h,E,y,m,f,_);var h=m.lineHeight,f=(E.end.column+(f||0)-E.start.column)*m.characterWidth,w=this.$getTop(E.start.row,m),E=this.$padding+E.start.column*m.characterWidth;this.elt(y,"height:"+h+"px;width:"+f+"px;top:"+w+"px;left:"+E+"px;"+(_||""))},p.prototype.drawBidiSingleLineMarker=function(g,u,y,m,I,_){var h=m.lineHeight,f=this.$getTop(u.start.row,m),w=this.$padding;this.session.$bidiHandler.getSelections(u.start.column,u.end.column).forEach(function(E){this.elt(y,"height:"+h+"px;width:"+(E.width+(I||0))+"px;top:"+f+"px;left:"+(w+E.left)+"px;"+(_||""))},this)},p.prototype.drawFullLineMarker=function(g,u,y,m,I){var _=this.$getTop(u.start.row,m),h=m.lineHeight;u.start.row!=u.end.row&&(h+=this.$getTop(u.end.row,m)-_),this.elt(y,"height:"+h+"px;top:"+_+"px;left:0;right:0;"+(I||""))},p.prototype.drawScreenLineMarker=function(g,u,y,m,I){u=this.$getTop(u.start.row,m),m=m.lineHeight,this.elt(y,"height:"+m+"px;top:"+u+"px;left:0;right:0;"+(I||""))},p);function p(g){this.element=S.createElement("div"),this.element.className="ace_layer ace_marker-layer",g.appendChild(this.element)}b.prototype.$padding=0,C.Marker=b}),ace.define("ace/layer/text_util",["require","exports","module"],function(T,C,N){var x=new Set(["text","rparen","lparen"]);C.isTextToken=function(S){return x.has(S)}}),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter","ace/config","ace/layer/text_util"],function(m,C,N){var x=m("../lib/oop"),S=m("../lib/dom"),b=m("../lib/lang"),p=m("./lines").Lines,g=m("../lib/event_emitter").EventEmitter,u=m("../config").nls,y=m("./text_util").isTextToken,m=(I.prototype.$updateEolChar=function(){var _=this.session.doc,_=_.getNewLineCharacter()==` 377`&&_.getNewLineMode()!="windows"?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=_)return this.EOL_CHAR=_,!0},I.prototype.setPadding=function(_){this.$padding=_,this.element.style.margin="0 "+_+"px"},I.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},I.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},I.prototype.$setFontMetrics=function(_){this.$fontMetrics=_,this.$fontMetrics.on("changeCharacterSize",(function(h){this._signal("changeCharacterSize",h)}).bind(this)),this.$pollSizeChanges()},I.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},I.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},I.prototype.setSession=function(_){(this.session=_)&&this.$computeTabString()},I.prototype.setShowInvisibles=function(_){return this.showInvisibles!=_&&(typeof(this.showInvisibles=_)=="string"?(this.showSpaces=/tab/i.test(_),this.showTabs=/space/i.test(_),this.showEOL=/eol/i.test(_)):this.showSpaces=this.showTabs=this.showEOL=_,this.$computeTabString(),!0)},I.prototype.setDisplayIndentGuides=function(_){return this.displayIndentGuides!=_&&(this.displayIndentGuides=_,this.$computeTabString(),!0)},I.prototype.setHighlightIndentGuides=function(_){return this.$highlightIndentGuides!==_&&(this.$highlightIndentGuides=_)},I.prototype.$computeTabString=function(){for(var _,h,f,w,E,k,L=this.session.getTabSize(),M=(this.tabSize=L,this.$tabStrings=[0]),B=1;B<L+1;B++)this.showTabs?((k=this.dom.createElement("span")).className="ace_invisible ace_invisible_tab",k.textContent=b.stringRepeat(this.TAB_CHAR,B),M.push(k)):M.push(this.dom.createTextNode(b.stringRepeat(" ",B),this.element));this.displayIndentGuides&&(this.$indentGuideRe=/\s\S| \t|\t |\s$/,_="ace_indent-guide",h=this.showSpaces?" ace_invisible ace_invisible_space":"",f=this.showSpaces?b.stringRepeat(this.SPACE_CHAR,this.tabSize):b.stringRepeat(" ",this.tabSize),w=this.showTabs?" ace_invisible ace_invisible_tab":"",E=this.showTabs?b.stringRepeat(this.TAB_CHAR,this.tabSize):f,(k=this.dom.createElement("span")).className=_+h,k.textContent=f,this.$tabStrings[" "]=k,(k=this.dom.createElement("span")).className=_+w,k.textContent=E,this.$tabStrings[" "]=k)},I.prototype.updateLines=function(_,h,f){if(this.config.lastRow!=_.lastRow||this.config.firstRow!=_.firstRow)return this.update(_);this.config=_;for(var w=Math.max(h,_.firstRow),E=Math.min(f,_.lastRow),k=this.element.childNodes,L=0,M=_.firstRow;M<w;M++){if(B=this.session.getFoldLine(M)){if(B.containsRow(w)){w=B.start.row;break}M=B.end.row}L++}for(var B,j=!1,M=w,z=(B=this.session.getNextFoldLine(M))?B.start.row:1/0;z<M&&(M=B.end.row+1,z=(B=this.session.getNextFoldLine(M,B))?B.start.row:1/0),!(E<M);){var Q,D=k[L++];D&&(this.dom.removeChildren(D),this.$renderLine(D,M,M==z&&B),j&&(D.style.top=this.$lines.computeLineTop(M,_,this.session)+"px"),Q=_.lineHeight*this.session.getRowLength(M)+"px",D.style.height!=Q)&&
377(j=!0,D.style.height=Q),M++}if(j)for(;L<this.$lines.cells.length;){var K=this.$lines.cells[L++];K.element.style.top=this.$lines.computeLineTop(K.row,_,this.session)+"px"}},I.prototype.scrollLines=function(_){var h=this.config;if(this.config=_,this.$lines.pageChanged(h,_))return this.update(_);this.$lines.moveContainer(_);var f=_.lastRow,w=h?h.lastRow:-1;if(!h||w<_.firstRow)return this.update(_);if(f<h.firstRow)return this.update(_);if(!h||h.lastRow<_.firstRow)return this.update(_);if(_.lastRow<h.firstRow)return this.update(_);if(h.firstRow<_.firstRow)for(var E=this.session.getFoldedRowCount(h.firstRow,_.firstRow-1);0<E;E--)this.$lines.shift();if(h.lastRow>_.lastRow)for(E=this.session.getFoldedRowCount(_.lastRow+1,h.lastRow);0<E;E--)this.$lines.pop();_.firstRow<h.firstRow&&this.$lines.unshift(this.$renderLinesFragment(_,_.firstRow,h.firstRow-1)),_.lastRow>h.lastRow&&this.$lines.push(this.$renderLinesFragment(_,h.lastRow+1,_.lastRow)),this.$highlightIndentGuide()},I.prototype.$renderLinesFragment=function(_,h,f){for(var w=[],E=h,k=this.session.getNextFoldLine(E),L=k?k.start.row:1/0;L<E&&(E=k.end.row+1,L=(k=this.session.getNextFoldLine(E,k))?k.start.row:1/0),!(f<E);){var M=this.$lines.createCell(E,_,this.session),B=M.element;this.dom.removeChildren(B),S.setStyle(B.style,"height",this.$lines.computeLineHeight(E,_,this.session)+"px"),S.setStyle(B.style,"top",this.$lines.computeLineTop(E,_,this.session)+"px"),this.$renderLine(B,E,E==L&&k),this.$useLineGroups()?B.className="ace_line_group":B.className="ace_line",w.push(M),E++}return w},I.prototype.update=function(_){this.$lines.moveContainer(_);for(var h=(this.config=_).firstRow,f=_.lastRow,w=this.$lines;w.getLength();)w.pop();w.push(this.$renderLinesFragment(_,h,f))},I.prototype.$renderToken=function(_,h,f,w){for(var E,k,L=this,M=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC\u2066\u2067\u2068\u202A\u202B\u202D\u202E\u202C\u2069\u2060\u2061\u2062\u2063\u2064\u206A\u206B\u206B\u206C\u206D\u206E\u206F]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,B=this.dom.createFragment(this.element),j=0;E=M.exec(w);){var z,Q,D=E[1],K=E[2],H=E[3],A=E[4],W=E[5];!L.showSpaces&&K||(z=j!=E.index?w.slice(j,E.index):"",j=E.index+E[0].length,z&&B.appendChild(this.dom.createTextNode(z,this.element)),D?(z=L.session.getScreenTabSize(h+E.index),(D=L.$tabStrings[z].cloneNode(!0)).charCount=1,B.appendChild(D),h+=z-1):K?L.showSpaces?((Q=this.dom.createElement("span")).className="ace_invisible ace_invisible_space",Q.textContent=b.stringRepeat(L.SPACE_CHAR,K.length),B.appendChild(Q)):B.appendChild(this.dom.createTextNode(K,this.element)):H?((Q=this.dom.createElement("span")).className="ace_invisible ace_invisible_space ace_invalid",Q.textContent=b.stringRepeat(L.SPACE_CHAR,H.length),B.appendChild(Q)):A?(h+=1,(Q=this.dom.createElement("span")).style.width=2*L.config.characterWidth+"px",Q.className=L.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",Q.textContent=L.showSpaces?L.SPACE_CHAR:A,B.appendChild(Q)):W&&(h+=1,(Q=this.dom.createElement("span")).style.width=2*L.config.characterWidth+"px",Q.className="ace_cjk",Q.textContent=W,B.appendChild(Q)))}return B.appendChild(this.dom.createTextNode(j?w.slice(j):w,this.element)),y(f.type)?_.appendChild(B):(k="ace_"+f.type.replace(/\./g," ace_"),Q=this.dom.createElement("span"),f.type=="fold"&&(Q.style.width=f.value.length*this.config.characterWidth+"px",Q.setAttribute("title",u("inline-fold.closed.title","Unfold code"))),Q.className=k,Q.appendChild(B),_.appendChild(Q)),h+w.length},I.prototype.renderIndentGuide=function(_,h,f){var w=h.search(this.$indentGuideRe);if(!(w<=0||f<=w)){if(h[0]==" "){for(var E=(w-=w%this.tabSize)/this.tabSize,k=0;k<E;k++)_.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),h.substr(w)}if(h[0]==" "){for(k=0;k<w;k++)_.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),h.substr(w)}this.$highlightIndentGuide()}return h},I.prototype.$highlightIndentGuide=function(){if(this.$highlightIndentGuides&&this.displayIndentGuides){this.$highlightIndentGuideMarker={indentLevel:void 0,start:void 0,end:void 0,dir:void 0};var _=this.session.doc.$lines;if(_){var h=this.session.selection.getCursor(),f=/^\s*/.exec(this.session.doc.getLine(h.row))[0].length,w=Math.floor(f/this.tabSize);if(this.$highlightIndentGuideMarker={indentLevel:w,start:h.row},this.session.$bracketHighlight){for(var E=this.session.$bracketHighlight.ranges,k=0;k<E.length;k++)if(h.row!==E[k].start.row){this.$highlightIndentGuideMarker.end=E[k].start.row+1,h.row>E[k].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&_[h.row]!==""&&h.column===_[h.row].length)for(this.$highlightIndentGuideMarker.dir=1,k=h.row+1;k<_.length;k++){var L=_[k],M=/^\s*/.exec(L)[0].length;if(L!==""&&(this.$highlightIndentGuideMarker.end=k,M<=f))break}this.$renderHighlightIndentGuide()}}},I.prototype.$clearActiveIndentGuide=function(){for(var _=this.element.querySelectorAll(".ace_indent-guide-active"),h=0;h<_.length;h++)_[h].classList.remove("ace_indent-guide-active")},I.prototype.$setIndentGuideActive=function(_,h){if(this.session.doc.getLine(_.row)!==""){var f=_.element;if(_.element.classList&&_.element.classList.contains("ace_line_group")){if(!(0<_.element.childNodes.length))return;f=_.element.childNodes[0]}_=f.childNodes,_&&(f=_[h-1])&&f.classList&&f.classList.contains("ace_indent-guide")&&f.classList.add("ace_indent-guide-active")}},I.prototype.$renderHighlightIndentGuide=function(){if(this.$lines){var _=this.$lines.cells,h=(this.$clearActiveIndentGuide(),this.$highlightIndentGuideMarker.indentLevel);if(h!==0){if(this.$highlightIndentGuideMarker.dir===1)for(var f=0;f<_.length;f++){var w=_[f];if(this.$highlightIndentGuideMarker.end&&w.row>=this.$highlightIndentGuideMarker.start+1){if(w.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(w,h)}}else for(f=_.length-1;0<=f;f--)if(w=_[f],this.$highlightIndentGuideMarker.end&&w.row<this.$highlightIndentGuideMarker.start){if(w.row<this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(w,h)}}}},I.prototype.$createLineElement=function(_){var h=this.dom.createElement("div");return h.className="ace_line",h.style.height=this.config.lineHeight+"px",h},I.prototype.$renderWrappedLine=function(_,h,f){var w=0,E=0,k=f[0],L=0,M=this.$createLineElement();_.appendChild(M);for(var B=0;B<h.length;B++){var j=h[B],z=j.value;if(B==0&&this.displayIndentGuides){if(w=z.length,!(z=this.renderIndentGuide(M,z,k)))continue;w-=z.length}if(w+z.length<k)L=this.$renderToken(M,L,j,z),w+=z.length;else{for(;w+z.length>=k;){L=this.$renderToken(M,L,j,z.substring(0,k-w)),z=z.substring(k-w),w=k,M=this.$createLineElement(),_.appendChild(M);var Q=this.dom.createTextNode(b.stringRepeat("Â ",f.indent),this.element);Q.charCount=0,M.appendChild(Q),L=0,k=f[++E]||Number.MAX_VALUE}z.length!=0&&(w+=z.length,L=this.$renderToken(M,L,j,z))}}f[f.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(M,L,null,"",!0)}
377,I.prototype.$renderSimpleLine=function(_,h){for(var f=0,w=0;w<h.length;w++){var E=h[w],k=E.value;if(w!=0||!this.displayIndentGuides||(k=this.renderIndentGuide(_,k))){if(f+k.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(_,f,E,k);f=this.$renderToken(_,f,E,k)}}},I.prototype.$renderOverflowMessage=function(_,h,f,w,E){f&&this.$renderToken(_,h,f,w.slice(0,this.MAX_LINE_LENGTH-h)),f=this.dom.createElement("span"),f.className="ace_inline_button ace_keyword ace_toggle_wrap",f.textContent=E?"<hide>":"<click to see more...>",_.appendChild(f)},I.prototype.$renderLine=function(_,h,f){var w,E,k=_;(w=(f=f||f==0?f:this.session.getFoldLine(h))?this.$getFoldLineTokens(h,f):this.session.getTokens(h)).length?(E=this.session.getRowSplitData(h))&&E.length?(this.$renderWrappedLine(_,w,E),k=_.lastChild):(k=_,this.$useLineGroups()&&(k=this.$createLineElement(),_.appendChild(k)),this.$renderSimpleLine(k,w)):this.$useLineGroups()&&(k=this.$createLineElement(),_.appendChild(k)),this.showEOL&&k&&(f&&(h=f.end.row),(E=this.dom.createElement("span")).className="ace_invisible ace_invisible_eol",E.textContent=h==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,k.appendChild(E))},I.prototype.$getFoldLineTokens=function(_,h){var f=this.session,w=[],E=f.getTokens(_);return h.walk(function(k,L,M,B,j){if(k!=null)w.push({type:"fold",value:k});else if((E=j?f.getTokens(L):E).length){for(var z,Q=E,D=B,K=M,H=0,A=0;A+Q[H].value.length<D;)if(A+=Q[H].value.length,++H==Q.length)return;for(A!=D&&((z=Q[H].value.substring(D-A)).length>K-D&&(z=z.substring(0,K-D)),w.push({type:Q[H].type,value:z}),A=D+z.length,H+=1);A<K&&H<Q.length;)(z=Q[H].value).length+A>K?w.push({type:Q[H].type,value:z.substring(0,K-A)}):w.push(Q[H]),A+=z.length,H+=1}},h.end.row,this.session.getLine(h.end.row).length),w},I.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},I);function I(_){this.dom=S,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",_.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new p(this.element)}m.prototype.EOF_CHAR="¶",m.prototype.EOL_CHAR_LF="¬",m.prototype.EOL_CHAR_CRLF="¤",m.prototype.EOL_CHAR=m.prototype.EOL_CHAR_LF,m.prototype.TAB_CHAR="â",m.prototype.SPACE_CHAR="·",m.prototype.$padding=0,m.prototype.MAX_LINE_LENGTH=1e4,m.prototype.showInvisibles=!1,m.prototype.showSpaces=!1,m.prototype.showTabs=!1,m.prototype.showEOL=!1,m.prototype.displayIndentGuides=!0,m.prototype.$highlightIndentGuides=!0,m.prototype.$tabStrings=[],m.prototype.destroy={},m.prototype.onChangeTabSize=m.prototype.$computeTabString,x.implement(m.prototype,g),C.Text=m}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(S,C,N){var x=S("../lib/dom"),S=(b.prototype.$updateOpacity=function(p){for(var g=this.cursors,u=g.length;u--;)x.setStyle(g[u].style,"opacity",p?"":"0")},b.prototype.$startCssAnimation=function(){for(var p=this.cursors,g=p.length;g--;)p[g].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout((function(){this.$isAnimating&&x.addCssClass(this.element,"ace_animate-blinking")}).bind(this))},b.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,x.removeCssClass(this.element,"ace_animate-blinking")},b.prototype.setPadding=function(p){this.$padding=p},b.prototype.setSession=function(p){this.session=p},b.prototype.setBlinking=function(p){p!=this.isBlinking&&(this.isBlinking=p,this.restartTimer())},b.prototype.setBlinkInterval=function(p){p!=this.blinkInterval&&(this.blinkInterval=p,this.restartTimer())},b.prototype.setSmoothBlinking=function(p){p!=this.smoothBlinking&&(this.smoothBlinking=p,x.setCssClass(this.element,"ace_smooth-blinking",p),this.$updateCursors(!0),this.restartTimer())},b.prototype.addCursor=function(){var p=x.createElement("div");return p.className="ace_cursor",this.element.appendChild(p),this.cursors.push(p),p},b.prototype.removeCursor=function(){var p;if(1<this.cursors.length)return(p=this.cursors.pop()).parentNode.removeChild(p),p},b.prototype.hideCursor=function(){this.isVisible=!1,x.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},b.prototype.showCursor=function(){this.isVisible=!0,x.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},b.prototype.restartTimer=function(){var p,g=this.$updateCursors;clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,x.removeCssClass(this.element,"ace_smooth-blinking")),g(!0),this.isBlinking&&this.blinkInterval&&this.isVisible?(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout((function(){this.$isSmoothBlinking&&x.addCssClass(this.element,"ace_smooth-blinking")}).bind(this))),x.HAS_CSS_ANIMATION?this.$startCssAnimation():(p=(function(){this.timeoutId=setTimeout(function(){g(!1)},.6*this.blinkInterval)}).bind(this),this.intervalId=setInterval(function(){g(!0),p()},this.blinkInterval),p())):this.$stopCssAnimation()},b.prototype.getPixelPosition=function(p,g){if(!this.config||!this.session)return{left:0,top:0};p=p||this.session.selection.getCursor();var u=this.session.documentToScreenPosition(p);return{left:this.$padding+(this.session.$bidiHandler.isBidiRow(u.row,p.row)?this.session.$bidiHandler.getPosLeft(u.column):u.column*this.config.characterWidth),top:(u.row-(g?this.config.firstRowScreen:0))*this.config.lineHeight}},b.prototype.isCursorInView=function(p,g){return 0<=p.top&&p.top<g.maxHeight},b.prototype.update=function(p){this.config=p;for(var g=this.session.$selectionMarkers,y=0,u=0,y=0,m=(g=g!==void 0&&g.length!==0?g:[{cursor:null}]).length;y<m;y++){var I,_,h=this.getPixelPosition(g[y].cursor,!0);(h.top>p.height+p.offset||h.top<0)&&1<y||(_=(I=this.cursors[u++]||this.addCursor()).style,this.drawCursor?this.drawCursor(I,h,p,g[y],this.session):this.isCursorInView(h,p)?(x.setStyle(_,"display","block"),x.translate(I,h.left,h.top),x.setStyle(_,"width",Math.round(p.characterWidth)+"px"),x.setStyle(_,"height",p.lineHeight+"px")):x.setStyle(_,"display","none"))}for(;this.cursors.length>u;
377)this.removeCursor();var f=this.session.getOverwrite();this.$setOverwrite(f),this.$pixelPos=h,this.restartTimer()},b.prototype.$setOverwrite=function(p){p!=this.overwrite&&((this.overwrite=p)?x.addCssClass(this.element,"ace_overwrite-cursors"):x.removeCssClass(this.element,"ace_overwrite-cursors"))},b.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},b);function b(p){this.element=x.createElement("div"),this.element.className="ace_layer ace_cursor-layer",p.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),x.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}S.prototype.$padding=0,S.prototype.drawCursor=null,C.Cursor=S}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(h,C,N){var x,S=this&&this.__extends||(x=function(w,E){return(x=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(k,L){k.__proto__=L}:function(k,L){for(var M in L)Object.prototype.hasOwnProperty.call(L,M)&&(k[M]=L[M])}))(w,E)},function(w,E){if(typeof E!="function"&&E!==null)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");function k(){this.constructor=w}x(w,E),w.prototype=E===null?Object.create(E):(k.prototype=E.prototype,new k)}),m=h("./lib/oop"),b=h("./lib/dom"),p=h("./lib/event"),h=h("./lib/event_emitter").EventEmitter,g=(u.prototype.setVisible=function(w){this.element.style.display=w?"":"none",this.isVisible=w,this.coeff=1},u);function u(w,E){this.element=b.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+E,this.inner=b.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent="Â ",this.element.appendChild(this.inner),w.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,p.addListener(this.element,"scroll",this.onScroll.bind(this)),p.addListener(this.element,"mousedown",p.preventDefault)}m.implement(g.prototype,h),S(I,y=g),I.prototype.onScroll=function(){var w;this.skipEvent||(this.scrollTop=this.element.scrollTop,this.coeff!=1&&(w=this.element.clientHeight/this.scrollHeight,this.scrollTop=this.scrollTop*(1-w)/(this.coeff-w)),this._emit("scroll",{data:this.scrollTop})),this.skipEvent=!1},I.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},I.prototype.setHeight=function(w){this.element.style.height=w+"px"},I.prototype.setScrollHeight=function(w){32768<(this.scrollHeight=w)?(this.coeff=32768/w,w=32768):this.coeff!=1&&(this.coeff=1),this.inner.style.height=w+"px"},I.prototype.setScrollTop=function(w){this.scrollTop!=w&&(this.skipEvent=!0,this.scrollTop=w,this.element.scrollTop=w*this.coeff)};var y,m=I;function I(w,E){var k=y.call(this,w,"-v")||this;return k.scrollTop=0,k.scrollHeight=0,E.$scrollbarWidth=k.width=b.scrollbarWidth(w.ownerDocument),k.inner.style.width=k.element.style.width=(k.width||15)+5+"px",k.$minWidth=0,k}m.prototype.setInnerHeight=m.prototype.setScrollHeight,S(f,_=g),f.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},f.prototype.getHeight=function(){return this.isVisible?this.height:0},f.prototype.setWidth=function(w){this.element.style.width=w+"px"},f.prototype.setInnerWidth=function(w){this.inner.style.width=w+"px"},f.prototype.setScrollWidth=function(w){this.inner.style.width=w+"px"},f.prototype.setScrollLeft=function(w){this.scrollLeft!=w&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=w)};var _,h=f;function f(w,E){return w=_.call(this,w,"-h")||this,w.scrollLeft=0,w.height=E.$scrollbarWidth,w.inner.style.height=w.element.style.height=(w.height||15)+5+"px",w}C.ScrollBar=m,C.ScrollBarV=m,C.ScrollBarH=h,C.VScrollBar=m,C.HScrollBar=h}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(h,C,N){var x,S=this&&this.__extends||(x=function(w,E){return(x=Object.
377setPrototypeOf||({__proto__:[]}instanceof Array?function(k,L){k.__proto__=L}:function(k,L){for(var M in L)Object.prototype.hasOwnProperty.call(L,M)&&(k[M]=L[M])}))(w,E)},function(w,E){if(typeof E!="function"&&E!==null)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");function k(){this.constructor=w}x(w,E),w.prototype=E===null?Object.create(E):(k.prototype=E.prototype,new k)}),m=h("./lib/oop"),b=h("./lib/dom"),p=h("./lib/event"),h=h("./lib/event_emitter").EventEmitter,g=(b.importCssString(`.ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{ 378 position: absolute; 379 background: rgba(128, 128, 128, 0.6); 380 -moz-box-sizing: border-box; 381 box-sizing: border-box; 382 border: 1px solid #bbb; 383 border-radius: 2px; 384 z-index: 8; 385} 386.ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h { 387 position: absolute; 388 z-index: 6; 389 background: none; 390 overflow: hidden!important; 391} 392.ace_editor>.ace_sb-v { 393 z-index: 6; 394 right: 0; 395 top: 0; 396 width: 12px; 397} 398.ace_editor>.ace_sb-v div { 399 z-index: 8; 400 right: 0; 401 width: 100%; 402} 403.ace_editor>.ace_sb-h { 404 bottom: 0; 405 left: 0; 406 height: 12px; 407} 408.ace_editor>.ace_sb-h div { 409 bottom: 0; 410 height: 100%; 411} 412.ace_editor>.ace_sb_grabbed { 413 z-index: 8; 414 background: #000; 415}`,"ace_scrollbar.css",!1),u.prototype.setVisible=function(w){this.element.style.display=w?"":"none",this.isVisible=w,this.coeff=1},u);function u(w,E){this.element=b.createElement("div"),this.element.className="ace_sb"+E,this.inner=b.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,w.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,p.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}m.implement(g.prototype,h),S(I,y=g),I.prototype.onMouseDown=function(w,E){var k,L,M,B,j;if(w==="mousedown"&&p.getButton(E)===0&&E.detail!==2)return E.target===this.inner?(k=this,L=E.clientY,M=E.clientY,B=this.thumbTop,p.capture(this.inner,function(z){L=z.clientY},function(){clearInterval(j)}),j=setInterval(function(){var z;L!==void 0&&(z=k.scrollTopFromThumbTop(B+L-M))!==k.scrollTop&&k._emit("scroll",{data:z})},20)):(w=E.clientY-this.element.getBoundingClientRect().top-this.thumbHe
415ight/2,this._emit("scroll",{data:this.scrollTopFromThumbTop(w)})),p.preventDefault(E)},I.prototype.getHeight=function(){return this.height},I.prototype.scrollTopFromThumbTop=function(w){return w=w*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight),(w>>=0)<0?w=0:w>this.pageHeight-this.viewHeight&&(w=this.pageHeight-this.viewHeight),w},I.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},I.prototype.setHeight=function(w){this.height=Math.max(0,w),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},I.prototype.setScrollHeight=function(w,E){(this.pageHeight!==w||E)&&(this.pageHeight=w,this.thumbHeight=this.slideHeight*this.viewHeight/this.pageHeight,this.thumbHeight>this.slideHeight&&(this.thumbHeight=this.slideHeight),this.thumbHeight<15&&(this.thumbHeight=15),this.inner.style.height=this.thumbHeight+"px",this.scrollTop>this.pageHeight-this.viewHeight)&&(this.scrollTop=this.pageHeight-this.viewHeight,this.scrollTop<0&&(this.scrollTop=0),this._emit("scroll",{data:this.scrollTop}))},I.prototype.setScrollTop=function(w){this.scrollTop=w,this.thumbTop=(w=w<0?0:w)*(this.slideHeight-this.thumbHe
415ight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"};var y,m=I;function I(w,E){var k=y.call(this,w,"-v")||this;return k.scrollTop=0,k.scrollHeight=0,k.parent=w,k.width=k.VScrollWidth,k.renderer=E,k.inner.style.width=k.element.style.width=(k.width||15)+"px",k.$minWidth=0,k}m.prototype.setInnerHeight=m.prototype.setScrollHeight,S(f,_=g),f.prototype.onMouseDown=function(w,E){var k,L,M,B,j;if(w==="mousedown"&&p.getButton(E)===0&&E.detail!==2)return E.target===this.inner?(k=this,L=E.clientX,M=E.clientX,B=this.thumbLeft,p.capture(this.inner,function(z){L=z.clientX},function(){clearInterval(j)}),j=setInterval(function(){var z;L!==void 0&&(z=k.scrollLeftFromThumbLeft(B+L-M))!==k.scrollLeft&&k._emit("scroll",{data:z})},20)):(w=E.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2,this._emit("scroll",{data:this.scrollLeftFromThumbLeft(w)})),p.preventDefault(E)},f.prototype.getHeight=function(){return this.isVisible?this.height:0},f.prototype.scrollLeftFromThumbLeft=function(w){return w=w*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth),(w>>=0)<0?w=0:w>this.pageWidth-this.viewWidth&&(w=this.pageWidth-this.viewWidth),w},f.prototype.setWidth=function(w){this.width=Math.max(0,w),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},f.prototype.setScrollWidth=function(w,E){(this.pageWidth!==w||E)&&(this.pageWidth=w,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>this.slideWidth&&(this.thumbWidth=this.slideWidth),this.thumbWidth<15&&(this.thumbWidth=15),this.inner.style.width=this.thumbWidth+"px",this.scrollLeft>this.pageWidth-this.viewWidth)&&(this.scrollLeft=this.pageWidth-this.viewWidth,this.scrollLeft<0&&(this.scrollLeft=0),this._emit("scroll",{data:this.scrollLeft}))},f.prototype.setScrollLeft=function(w){this.scrollLeft=w,this.thumbLeft=(w=w<0?0:w)*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"};var _,h=f;function f(w,E){return w=_.call(this,w,"-h")||this,w.scrollLeft=0,w.scrollWidth=0,w.height=w.HScrollHeight,w.inner.style.height=w.element.style.height=(w.height||12)+"px",w.renderer=E,w}h.prototype.setInnerWidth=h.prototype.setScrollWidth,C.ScrollBar=m,C.ScrollBarV=m,C.ScrollBarH=h,C.VScrollBar=m,C.HScrollBar=h}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(T,C,N){var x=T("./lib/event");function S(b,p){this.onRender=b,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=p||window;var g=this;this._flush=function(u){g.pending=!1;var y=g.changes;y&&(x.blockIdle(100),g.changes=0,g.onRender(y)),g.changes?g.$recursionLimit--<0||g.schedule():g.$recursionLimit=2}}S.prototype.schedule=function(b){this.changes=this.changes|b,this.changes&&!this.pending&&(x.nextFrame(this._flush),this.pending=!0)},S.prototype.clear=function(b){var p=this.changes;return this.changes=0,p},C.RenderLoop=S}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(u,C,N){var x=u("../lib/oop"),S=u("../lib/dom"),b=u("../lib/lang"),p=u("../lib/event"),g=u("../lib/useragent"),u=u("../lib/event_emitter").EventEmitter,y=typeof ResizeObserver=="function",m=(I.prototype.$setMeasureNodeStyles=function(_,h){_.width=_.height="auto",_.left=_.top="0px",_.visibility="hidden",_.position="absolute",_.whiteSpace="pre",g.isIE<8?_["font-family"]="inherit":_.font="inherit",_.overflow=h?"hidden":"visible"},I.prototype.checkForSizeChanges=function(_){var h;!(_=_===void 0?this.$measureSizes():_)||this.$characterSize.width===_.width&&this.$characterSize.height===_.height||(this.$measureNode.style.fontWeight="bold",h=this.$measureSizes(),this.$measureNode.style.fontWeight="",this.$characterSize=_,this.charSizes=Object.create(null),this.allowBoldFonts=h&&h.width===_.width&&h.height===_.height,this._emit("changeCharacterSize",{data:_}))},I.prototype.$addObserver=function(){var _=this;this.$observer=new window.ResizeObserver(function(h){_.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},I.prototype.$pollSizeChanges=function(){var _;return this.$pollSizeChangesTimer||this.$observer?this.$pollSizeChangesTimer:(_
415=this).$pollSizeChangesTimer=p.onIdle(function h(){_.checkForSizeChanges(),p.onIdle(h,500)},500)},I.prototype.setPolling=function(_){_?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},I.prototype.$measureSizes=function(_){return _={height:(_||this.$measureNode).clientHeight,width:(_||this.$measureNode).clientWidth/512},_.width===0||_.height===0?null:_},I.prototype.$measureCharWidth=function(_){return this.$main.textContent=b.stringRepeat(_,512),this.$main.getBoundingClientRect().width/512},I.prototype.getCharacterWidth=function(_){var h=this.charSizes[_];return h=h===void 0?this.charSizes[_]=this.$measureCharWidth(_)/this.$characterSize.width:h},I.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},I.prototype.$getZoom=function(_){return _&&_.parentElement?(Number(window.getComputedStyle(_).zoom)||1)*this.$getZoom(_.parentElement):1},I.prototype.$initTransformMeasureNodes=function(){function _(h,f){return["div",{style:"position: absolute;top:"+h+"px;left:"+f+"px;"}]}this.els=S.buildDom([_(0,0),_(200,0),_(0,200),_(200,200)],this.el)},I.prototype.transformCoordinates=function(_,h){function f(D,K,H){var A=D[1]*K[0]-D[0]*K[1];return[(-K[1]*H[0]+K[0]*H[1])/A,(+D[1]*H[0]-D[0]*H[1])/A]}function w(D,K){return[D[0]-K[0],D[1]-K[1]]}function E(D,K){return[D[0]+K[0],D[1]+K[1]]}function k(D,K){return[D*K[0],D*K[1]]}function L(D){return D=D.getBoundingClientRect(),[D.left,D.top]}_=_&&k(1/this.$getZoom(this.el),_),this.els||this.$initTransformMeasureNodes();var M,B=L(this.els[0]),z=L(this.els[1]),Q=L(this.els[2]),j=L(this.els[3]),j=f(w(j,z),w(j,Q),w(E(z,Q),E(j,B))),z=k(1+j[0],w(z,B)),Q=k(1+j[1],w(Q,B));return h?(M=j[0]*h[0]/200+j[1]*h[1]/200+1,h=E(k(h[0],z),k(h[1],Q)),E(k(1/M/200,h),B)):(M=w(_,B),h=f(w(z,k(j[0],M)),w(Q,k(j[1],M)),M),k(200,h))},I);function I(_){this.el=S.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=S.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=S.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),_.appendChild(this.el),this.$measureNode.textContent=b.stringRepeat("X",512),this.$characterSize={width:0,height:0},y?this.$addObserver():this.checkForSizeChanges()}m.prototype.$characterSize={width:0,height:0},x.implement(m.prototype,u),C.FontMetrics=m}),ace.define("ace/css/editor-css",["require","exports","module"],function(T,C,N){N.exports=` 416.ace_br1 {border-top-left-radius : 3px;} 417.ace_br2 {border-top-right-radius : 3px;} 418.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;} 419.ace_br4 {border-bottom-right-radius: 3px;} 420.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;} 421.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;} 422.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;} 423.ace_br8 {border-bottom-left-radius : 3px;} 424.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;} 425.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;} 426.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;} 427.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;} 428.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;} 429.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;} 430.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;} 431 432 433.ace_editor { 434 position: relative; 435 overflow: hidden; 436 padding: 0; 437 font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Source Code Pro', 'source-code-pro', monospace; 438 direction: ltr; 439 text-align: left; 440 -webkit-tap-highlight-color: rgba(0, 0, 0, 0); 441 forced-color-adjust: none; 442} 443 444.ace_scroller { 445 position: absolute; 446 overflow: hidden; 447 top: 0; 448 bottom: 0; 449 background-color: inherit;
450 -ms-user-select: none; 451 -moz-user-select: none; 452 -webkit-user-select: none; 453 user-select: none; 454 cursor: text; 455} 456 457.ace_content { 458 position: absolute; 459 box-sizing: border-box; 460 min-width: 100%; 461 contain: style size layout; 462 font-variant-ligatures: no-common-ligatures; 463} 464.ace_invisible { 465 font-variant-ligatures: none; 466} 467 468.ace_keyboard-focus:focus { 469 box-shadow: inset 0 0 0 2px #5E9ED6; 470 outline: none; 471} 472 473.ace_dragging .ace_scroller:before{ 474 position: absolute; 475 top: 0; 476 left: 0; 477 right: 0; 478 bottom: 0; 479 content: ''; 480 background: rgba(250, 250, 250, 0.01); 481 z-index: 1000; 482} 483.ace_dragging.ace_dark .ace_scroller:before{ 484 background: rgba(0, 0, 0, 0.01); 485} 486 487.ace_gutter { 488 position: absolute; 489 overflow : hidden; 490 width: auto; 491 top: 0; 492 bottom: 0; 493 left: 0; 494 cursor: default; 495 z-index: 4; 496 -ms-user-select: none; 497 -moz-user-select: none; 498 -webkit-user-select: none; 499 user-select: none; 500 contain: style size layout; 501} 502 503.ace_gutter-active-line { 504 position: absolute; 505 left: 0; 506 right: 0; 507} 508 509.ace_scroller.ace_scroll-left:after { 510 content: ""; 511 position: absolute; 512 top: 0; 513 right: 0; 514 bottom: 0; 515 left: 0; 516 box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset; 517 pointer-events: none; 518} 519 520.ace_gutter-cell, .ace_gutter-cell_svg-icons { 521 position: absolute; 522 top: 0; 523 left: 0; 524 right: 0; 525 padding-left: 19px; 526 padding-right: 6px; 527 background-repeat: no-repeat; 528} 529 530.ace_gutter-cell_svg-icons .ace_gutter_annotation { 531 margin-left: -14px; 532 float: left; 533} 534 535.ace_gutter-cell .ace_gutter_annotation { 536 margin-left: -19px; 537 float: left; 538} 539 540.ace_gutter-cell.ace_error, .ace_icon.ace_error, .ace_icon.ace_error_fold, .ace_gutter-cell.ace_security, .ace_icon.ace_security, .ace_icon.ace_security_fold { 541 background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitm
541k2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg=="); 542 background-repeat: no-repeat; 543 background-position: 2px center; 544} 545 546.ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold { 547 background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg=="); 548 background-repeat: no-repeat; 549 background-position: 2px center; 550} 551 552.ace_gutter-cell.ace_info, .ace_icon.ace_info, .ace_gutter-cell.ace_hint, .ace_icon.ace_hint { 553 background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII="); 554 background-repeat: no-repeat; 555 background-position: 2px center; 556} 557 558.ace_dark .ace_gutter-cell.ace_info, .ace_dark .ace_icon.ace_info, .ace_dark .ace_gutter-cell.ace_hint, .ace_dark .ace_icon.ace_hint { 559 background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC"); 560} 561 562.ace_icon_svg.ace_error { 563 -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+"); 564 background-color: crimson; 565} 566.ace_icon_svg.ace_security { 567 -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0iZGFya29yYW5nZSIgZmlsbD0ibm9uZSIgc2hhcGUtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iPgogICAgICAgIDxwYXRoIGNsYXNzPSJzdHJva2UtbGluZWpvaW4tcm91bmQiIGQ9Ik04IDE0LjgzMDdDOCAxNC44MzA3IDIgMTIuOTA0NyAyIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOEM3Ljk4OTk5IDEuMzQ5MTggMTAuNjkgMy4yNjU0OCAxNCAzLjI2NTQ4VjguMDg5OTJDMTQgMTIuOTA0NyA4IDE0LjgzMDcgOCAxNC44MzA3WiIvPgogICAgICAgIDxwYXRoIGQ9Ik0yIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOCIvPgogICAgICAgIDxwYXRoIGQ9Ik0xMy45OSA4LjA4OTkyVjMuMjY1NDhDMTAuNjggMy4yNjU0OCA4IDEuMzQ5MTggOCAxLjM0OTE4Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggNFY5Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggMTBWMTIiLz4KICAgIDwvZz4KPC9zdmc+"); 568 background-color: crimson; 569} 570.ace_icon_svg.ace_warning { 571 -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg=="); 572 background-color: darkorange; 573} 574.ace_icon_svg.ace_info { 575 -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGx
575pbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg=="); 576 background-color: royalblue; 577} 578.ace_icon_svg.ace_hint { 579 -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0ic2lsdmVyIiBmaWxsPSJub25lIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTYgMTRIMTAiLz4KICAgICAgICA8cGF0aCBkPSJNOCAxMUg5QzkgOS40NzAwMiAxMiA4LjU0MDAyIDEyIDUuNzYwMDJDMTIuMDIgNC40MDAwMiAxMS4zOSAzLjM2MDAyIDEwLjQzIDIuNjcwMDJDOSAxLjY0MDAyIDcuMDAwMDEgMS42NDAwMiA1LjU3MDAxIDIuNjcwMDJDNC42MTAwMSAzLjM2MDAyIDMuOTggNC40MDAwMiA0IDUuNzYwMDJDNCA4LjU0MDAyIDcuMDAwMDEgOS40NzAwMiA3LjAwMDAxIDExSDhaIi8+CiAgICA8L2c+Cjwvc3ZnPg=="); 580 background-color: silver; 581} 582 583.ace_icon_svg.ace_error_fold { 584 -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4="); 585 background-color: crimson; 586} 587.ace_icon_svg.ace_security_fold { 588 -webkit-mask-image: url("data:image/svg+xml;base64,CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTcgMTQiIGZpbGw9Im5vbmUiPgogICAgPHBhdGggZD0iTTEwLjAwMDEgMTMuNjk5MkMxMC4wMDAxIDEzLjY5OTIgMTEuOTI0MSAxMy40NzYzIDEzIDEyLjY5OTJDMTQuNDEzOSAxMS42NzgxIDE2IDEwLjUgMTYuMTI1MSA2LjgxMTI2VjIuNTg5ODdDMTYuMTI1MSAyLjU0NzY4IDE2LjEyMjEgMi41MDYxOSAxNi4xMTY0IDIuNDY1NTlWMS43MTQ4NUgxNS4yNDE0TDE1LjIzMDcgMS43MTQ4NEwxNC42MjUxIDEuNjk5MjJWNi44MTEyM0MxNC42MjUxIDguNTEwNjEgMTQuNjI1MSA5LjQ2NDYxIDEyLjc4MjQgMTEuNzIxQzEyLjE1ODYgMTIuNDg0OCAxMC4wMDAxIDEzLjY5OTIgMTAuMDAwMSAxMy42OTkyWiIgZmlsbD0iY3JpbXNvbiIgc3Ryb2tlLXdpZHRoPSIyIi8+CiAgICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTcuMzM2MDkgMC4zNjc0NzVDNy4wMzIxNCAwLjE1MjY1MiA2LjYyNTQ4IDAuMTUzNjE0IDYuMzIyNTMgMC4zNjk5OTdMNi4zMDg2OSAwLjM3OTU1NEM2LjI5NTUzIDAuMzg4NTg4IDYuMjczODggMC40MDMyNjYgNi4yNDQxNyAwLjQyMjc4OUM2LjE4NDcxIDAuNDYxODYgNi4wOTMyMSAwLjUyMDE3MSA1Ljk3MzEzIDAuNTkxMzczQzUuNzMyNTEgMC43MzQwNTkgNS4zNzk5IDAuOTI2ODY0IDQuOTQyNzkgMS4xMjAwOUM0LjA2MTQ0IDEuNTA5NyAyLjg3NTQxIDEuODgzNzcgMS41ODk4NCAxLjg4Mzc3SDAuNzE0ODQ0VjIuNzU4NzdWNi45ODAxNUMwLjcxNDg0NCA5LjQ5Mzc0IDIuMjg4NjYgMTEuMTk3MyAzLjcwMjU0IDEyLjIxODVDNC40MTg0NSAxMi43MzU1IDUuMTI4NzQgMTMuMTA1MyA1LjY1NzMzIDEzLjM0NTdDNS45MjI4NCAxMy40NjY0IDYuMTQ1NjYgMTMuNTU1OSA2LjMwNDY1IDEzLjYxNjFDNi4zODQyMyAxMy42NDYyIDYuNDQ4MDUgMTMuNjY5IDYuNDkzNDkgMTMuNjg0OEM2LjUxNjIyIDEzLjY5MjcgNi41MzQzOCAxMy42OTg5IDYuNTQ3NjQgMTMuNzAzM0w2LjU2MzgyIDEzLjcwODdMNi41NjkwOCAxMy43MTA0TDYuNTcwOTkgMTMuNzExTDYuODM5ODQgMTMuNzUzM0w2LjU3MjQyIDEzLjcxMTVDNi43NDYzMyAxMy43NjczIDYuOTMzMzUgMTMuNzY3MyA3LjEwNzI3IDEzLjcxMTVMNy4xMDg3IDEzLjcxMUw3LjExMDYxIDEzLjcxMDRMNy4xMTU4NyAxMy43MDg3TDcuMTMyM
588DUgMTMuNzAzM0M3LjE0NTMxIDEzLjY5ODkgNy4xNjM0NiAxMy42OTI3IDcuMTg2MTkgMTMuNjg0OEM3LjIzMTY0IDEzLjY2OSA3LjI5NTQ2IDEzLjY0NjIgNy4zNzUwMyAxMy42MTYxQzcuNTM0MDMgMTMuNTU1OSA3Ljc1Njg1IDEzLjQ2NjQgOC4wMjIzNiAxMy4zNDU3QzguNTUwOTUgMTMuMTA1MyA5LjI2MTIzIDEyLjczNTUgOS45NzcxNSAxMi4yMTg1QzExLjM5MSAxMS4xOTczIDEyLjk2NDggOS40OTM3NyAxMi45NjQ4IDYuOTgwMThWMi43NTg4QzEyLjk2NDggMi43MTY2IDEyLjk2MTkgMi42NzUxMSAxMi45NTYxIDIuNjM0NTFWMS44ODM3N0gxMi4wODExQzEyLjA3NzUgMS44ODM3NyAxMi4wNzQgMS44ODM3NyAxMi4wNzA0IDEuODgzNzdDMTAuNzk3OSAxLjg4MDA0IDkuNjE5NjIgMS41MTEwMiA4LjczODk0IDEuMTI0ODZDOC43MzUzNCAxLjEyMzI3IDguNzMxNzQgMS4xMjE2OCA4LjcyODE0IDEuMTIwMDlDOC4yOTEwMyAwLjkyNjg2NCA3LjkzODQyIDAuNzM0MDU5IDcuNjk3NzkgMC41OTEzNzNDNy41Nzc3MiAwLjUyMDE3MSA3LjQ4NjIyIDAuNDYxODYgNy40MjY3NiAwLjQyMjc4OUM3LjM5NzA1IDAuNDAzMjY2IDcuMzc1MzkgMC4zODg1ODggNy4zNjIyNCAwLjM3OTU1NEw3LjM0ODk2IDAuMzcwMzVDNy4zNDg5NiAwLjM3MDM1IDcuMzQ4NDcgMC4zNzAwMiA3LjM0NTYzIDAuMzc0MDU0TDcuMzM3NzkgMC4zNjg2NTlMNy4zMzYwOSAwLjM2NzQ3NVpNOC4wMzQ3MSAyLjcyNjkxQzguODYwNCAzLjA5MDYzIDkuOTYwNjYgMy40NjMwOSAxMS4yMDYxIDMuNTg5MDdWNi45ODAxNUgxMS4yMTQ4QzExLjIxNDggOC42Nzk1MyAxMC4xNjM3IDkuOTI1MDcgOC45NTI1NCAxMC43OTk4QzguMzU1OTUgMTEuMjMwNiA3Ljc1Mzc0IDExLjU0NTQgNy4yOTc5NiAxMS43NTI3QzcuMTE2NzEgMTEuODM1MSA2Ljk2MDYyIDExLjg5OTYgNi44Mzk4NCAxMS45NDY5QzYuNzE5MDYgMTEuODk5NiA2LjU2Mjk3IDExLjgzNTEgNi4zODE3MyAxMS43NTI3QzUuOTI1OTUgMTEuNTQ1NCA1LjMyMzczIDExLjIzMDYgNC43MjcxNSAxMC43OTk4QzMuNTE2MDMgOS45MjUwNyAyLjQ2NDg0IDguNjc5NTUgMi40NjQ4NCA2Ljk4MDE4VjMuNTg5MDlDMy43MTczOCAzLjQ2MjM5IDQuODIzMDggMy4wODYzOSA1LjY1MDMzIDIuNzIwNzFDNi4xNDIyOCAyLjUwMzI0IDYuNTQ0ODUgMi4yODUzNyA2LjgzMjU0IDIuMTE2MjRDNy4xMjE4MSAyLjI4NTM1IDcuNTI3IDIuNTAzNTIgOC4wMjE5NiAyLjcyMTMxQzguMDI2MiAyLjcyMzE3IDguMDMwNDUgMi43MjUwNCA4LjAzNDcxIDIuNzI2OTFaTTUuOTY0ODQgMy40MDE0N1Y3Ljc3NjQ3SDcuNzE0ODRWMy40MDE0N0g1Ljk2NDg0Wk01Ljk2NDg0IDEwLjQwMTVWOC42NTE0N0g3LjcxNDg0VjEwLjQwMTVINS45NjQ4NFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4="); 589 background-color: crimson; 590} 591.ace_icon_svg.ace_warning_fold { 592 -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4="); 593 background-color: darkorange; 594} 595 596.ace_scrollbar { 597 contain: strict; 598 position: absolute; 599 right: 0; 600 bottom: 0; 601 z-index: 6; 602} 603 604.ace_scrollbar-inner { 605 position: absolute; 606 cursor: text; 607 left: 0; 608 top: 0; 609} 610 611.ace_scrollbar-v{ 612 overflow-x: hidden; 613 overflow-y: scroll; 614 top: 0; 615} 616 617.ace_scrollbar-h { 618 overflow-x: scroll; 619 overflow-y: hidden; 620 left: 0; 621} 622 623.ace_print-margin { 624 position: absolute; 625 height: 100%; 626} 627 628.ace_text-input { 629 position: absolute; 630 z-index: 0; 631 width: 0.5em; 632 height: 1em; 633 opacity: 0; 634 background: transparent; 635 -moz-appearance: none; 636 appearance: none; 637 border: none; 638 resize: none; 639 outline: none; 640 overflow: hidden; 641 font: inherit; 642 padding: 0 1px; 643 margin: 0 -1px; 644 contain: strict; 645 -ms-user-select: text; 646 -moz-user-select: text; 647 -webkit-user-select: text; 648 user-select: text; 649 /*with \`pre-line\` chrome inserts instead of space*/ 650 white-space: pre!important; 651} 652.ace_text-input.ace_composition { 653 background: transparent; 654 color: inherit; 655 z-index: 1000; 656 opacity: 1; 657} 658.ace_composition_placeholder { color: transparent } 659.ace_composition_marker { 660 border-bottom: 1px solid; 661 position: absolute; 662 border-radius: 0;
663 margin-top: 1px; 664} 665 666[ace_nocontext=true] { 667 transform: none!important; 668 filter: none!important; 669 clip-path: none!important; 670 mask : none!important; 671 contain: none!important; 672 perspective: none!important; 673 mix-blend-mode: initial!important; 674 z-index: auto; 675} 676 677.ace_layer { 678 z-index: 1; 679 position: absolute; 680 overflow: hidden; 681 /* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/ 682 word-wrap: normal; 683 white-space: pre; 684 height: 100%; 685 width: 100%; 686 box-sizing: border-box; 687 /* setting pointer-events: auto; on node under the mouse, which changes 688 during scroll, will break mouse wheel scrolling in Safari */ 689 pointer-events: none; 690} 691 692.ace_gutter-layer { 693 position: relative; 694 width: auto; 695 text-align: right; 696 pointer-events: auto; 697 height: 1000000px; 698 contain: style size layout; 699} 700 701.ace_text-layer { 702 font: inherit !important; 703 position: absolute; 704 height: 1000000px; 705 width: 1000000px; 706 contain: style size layout; 707} 708 709.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group { 710 contain: style size layout; 711 position: absolute; 712 top: 0; 713 left: 0; 714 right: 0; 715} 716 717.ace_hidpi .ace_text-layer, 718.ace_hidpi .ace_gutter-layer, 719.ace_hidpi .ace_content, 720.ace_hidpi .ace_gutter { 721 contain: strict; 722} 723.ace_hidpi .ace_text-layer > .ace_line, 724.ace_hidpi .ace_text-layer > .ace_line_group { 725 contain: strict; 726} 727 728.ace_cjk { 729 display: inline-block; 730 text-align: center; 731} 732 733.ace_cursor-layer { 734 z-index: 4; 735} 736 737.ace_cursor { 738 z-index: 4; 739 position: absolute; 740 box-sizing: border-box; 741 border-left: 2px solid; 742 /* workaround for smooth cursor repaintng whole screen in chrome */ 743 transform: translatez(0); 744} 745 746.ace_multiselect .ace_cursor { 747 border-left-width: 1px; 748} 749 750.ace_slim-cursors .ace_cursor { 751 border-left-width: 1px; 752} 753 754.ace_overwrite-cursors .ace_cursor { 755 border-left-width: 0; 756 border-bottom: 1px solid; 757} 758 759.ace_hidden-cursors .ace_cursor { 760 opacity: 0.2; 761} 762 763.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor { 764 opacity: 0; 765} 766 767.ace_smooth-blinking .ace_cursor { 768 transition: opacity 0.18s; 769} 770 771.ace_animate-blinking .ace_cursor { 772 animation-duration: 1000ms; 773 animation-timing-function: step-end; 774 animation-name: blink-ace-animate; 775 animation-iteration-count: infinite; 776} 777 778.ace_animate-blinking.ace_smooth-blinking .ace_cursor { 779 animation-duration: 1000ms; 780 animation-timing-function: ease-in-out; 781 animation-name: blink-ace-animate-smooth; 782} 783 784@keyframes blink-ace-animate { 785 from, to { opacity: 1; } 786 60% { opacity: 0; } 787} 788 789@keyframes blink-ace-animate-smooth { 790 from, to { opacity: 1; } 791 45% { opacity: 1; } 792 60% { opacity: 0; } 793 85% { opacity: 0; } 794} 795 796.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack { 797 position: absolute; 798 z-index: 3; 799} 800 801.ace_marker-layer .ace_selection { 802 position: absolute; 803 z-index: 5; 804} 805 806.ace_marker-layer .ace_bracket { 807 position: absolute; 808 z-index: 6; 809} 810 811.ace_marker-layer .ace_error_bracket { 812 position: absolute; 813 border-bottom: 1px solid #DE5555; 814 border-radius: 0; 815} 816 817.ace_marker-layer .ace_active-line { 818 position: absolute; 819 z-index: 2; 820} 821 822.ace_marker-layer .ace_selected-word { 823 position: absolute; 824 z-index: 4; 825 box-sizing: border-box; 826} 827 828.ace_line .ace_fold { 829 box-sizing: border-box; 830 831 display: inline-block; 832 height: 11px; 833 margin-top: -2px; 834 vertical-align: middle; 835 836 background-image: 837 url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="), 838 url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII="); 839 background-repeat: no-repeat, repeat-x; 840 background-position: center center, top left; 841 color: transparent; 842 843 border: 1px solid black; 844 border-radius: 2px; 845 846 cursor: pointer; 847 pointer-events: auto; 848} 849 850.ace_dark .ace_fold { 851} 852 853.ace_fold:hover{ 854 background-image: 855 url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="), 856 url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC"); 857} 858 859.ace_tooltip { 860 background-color: #f5f5f5; 861 border: 1px solid gray; 862 border-radius: 1px; 863 box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); 864 color: black; 865 padding: 3px 4px; 866 position: fixed; 867 z-index: 999999; 868 box-sizing: border-box; 869 cursor: default; 870 white-space: pre-wrap; 871 word-wrap: break-word; 872 line-height: normal; 873 font-style: normal; 874 font-weight: normal; 875 letter-spacing: normal; 876 pointer-events: none; 877 overflow: auto; 878 max-width: min(33em, 66vw); 879 overscroll-behavior: contain; 880} 881.ace_tooltip pre { 882 white-space: pre-wrap; 883} 884 885.ace_tooltip.ace_dark { 886 background-color: #636363; 887 color: #fff; 888} 889 890.ace_tooltip:focus { 891 outline: 1px solid #5E9ED6; 892} 893 894.ace_icon { 895 display: inline-block; 896 width: 18px; 897 vertical-align: top; 898} 899 900.ace_icon_svg { 901 display: inline-block; 902 width: 12px; 903 vertical-align: top; 904 -webkit-mask-repeat: no-repeat; 905 -webkit-mask-size: 12px; 906 -webkit-mask-position: center; 907} 908 909.ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons { 910 padding-right: 13px; 911} 912 913.ace_fold-widget, .ace_custom-widget { 914 box-sizing: border-box; 915 916 margin: 0 -12px 0 1px; 917 display: none; 918 width: 11px; 919 vertical-align: top; 920 921 background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVo
921DBUxKAAAAABJRU5ErkJggg=="); 922 background-repeat: no-repeat; 923 background-position: center; 924 925 border-radius: 3px; 926 927 border: 1px solid transparent; 928 cursor: pointer; 929 pointer-events: auto; 930} 931 932.ace_custom-widget { 933 background: none; 934} 935 936.ace_folding-enabled .ace_fold-widget { 937 display: inline-block; 938} 939 940.ace_fold-widget.ace_end { 941 background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg=="); 942} 943 944.ace_fold-widget.ace_closed { 945 background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA=="); 946} 947 948.ace_fold-widget:hover { 949 border: 1px solid rgba(0, 0, 0, 0.3); 950 background-color: rgba(255, 255, 255, 0.2); 951 box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7); 952} 953 954.ace_fold-widget:active { 955 border: 1px solid rgba(0, 0, 0, 0.4); 956 background-color: rgba(0, 0, 0, 0.05); 957 box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8); 958} 959/** 960 * Dark version for fold widgets 961 */ 962.ace_dark .ace_fold-widget { 963 background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC"); 964} 965.ace_dark .ace_fold-widget.ace_end { 966 background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg=="); 967} 968.ace_dark .ace_fold-widget.ace_closed { 969 background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg=="); 970} 971.ace_dark .ace_fold-widget:hover { 972 box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2); 973 background-color: rgba(255, 255, 255, 0.1); 974} 975.ace_dark .ace_fold-widget:active { 976 box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2); 977} 978 979.ace_inline_button { 980 border: 1px solid lightgray; 981 display: inline-block; 982 margin: -1px 8px; 983 padding: 0 5px; 984 pointer-events: auto; 985 cursor: pointer; 986} 987.ace_inline_button:hover { 988 border-color: gray; 989 background: rgba(200,200,200,0.2); 990 display: inline-block; 991 pointer-events: auto; 992} 993 994.ace_fold-widget.ace_invalid { 995 background-color: #FFB4B4; 996 border-color: #DE5555; 997} 998 999.ace_fade-fold-widgets .ace_fold-widget { 1000 transition: opacity 0.4s ease 0.05s; 1001 opacity: 0; 1002} 1003 1004.ace_fade-fold-widgets:hover .ace_fold-widget { 1005 transition: opacity 0.05s ease 0.05s; 1006 opacity:1; 1007} 1008 1009.ace_underline { 1010 text-decoration: underline; 1011} 1012 1013.ace_bold { 1014 font-weight: bold; 1015} 1016 1017.ace_nobold .ace_bold { 1018 font-weight: normal; 1019} 1020 1021.ace_italic { 1022 font-style: italic; 1023} 1024 1025 1026.ace_error-marker { 1027 background-color: rgba(255, 0, 0,0.2); 1028 position: absolute; 1029 z-index: 9; 1030} 1031 1032.ace_highlight-marker { 1033 background-color: rgba(255, 255, 0,0.2); 1034 position: absolute; 1035 z-index: 8; 1036} 1037 1038.ace_mobile-menu { 1039 position: absolute; 1040 line-height: 1.5; 1041 border-radius: 4px; 1042 -ms-user-select: none; 1043 -moz-user-select: none; 1044 -webkit-user-select: none; 1045 user-select: none; 1046 background: white; 1047 box-shadow: 1px 3px 2px grey; 1048 border: 1px solid #dcdcdc; 1049 color: black; 1050} 1051.ace_dark > .ace_mobile-menu { 1052 background: #333; 1053 color: #ccc; 1054 box-shadow: 1px 3px 2px grey; 1055 border: 1px solid #444; 1056 1057} 1058.ace_mobile-button { 1059 padding: 2px; 1060 cursor: pointer; 1061 overflow: hidden; 1062} 1063.ace_mobile-button:hover { 1064 background-color: #eee; 1065 opacity:1; 1066} 1067.ace_mobile-button:active { 1068 background-color: #ddd; 1069} 1070 1071.ace_placeholder { 1072 position: relative; 1073 font-family: arial; 1074 transform: scale(0.9); 1075 transform-origin: left; 1076 white-space: pre; 1077 opacity: 0.7; 1078 margin: 0 10px; 1079 z-index: 1; 1080} 1081 1082.ace_ghost_text { 1083 opacity: 0.5; 1084 font-style: italic; 1085} 1086 1087.ace_ghost_text_container > div { 1088 white-space: pre; 1089} 1090 1091.ghost_text_line_wrapped::after { 1092 content: "â©"; 1093 position: absolute; 1094} 1095 1096.ace_lineWidgetContainer.ace_ghost_text { 1097 margin: 0px 4px 1098} 1099 1100.ace_screenreader-only { 1101 position:absolute; 1102 left:-10000px; 1103 top:auto; 1104 width:1px; 1105 height:1px; 1106 overflow:hidden; 1107} 1108 1109.ace_hidden_token { 1110 display: none; 1111}`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(b,C,N){var x=b("../lib/dom"),S=b("../lib/oop"),b=b("../lib/event_emitter").EventEmitter,p=(g.prototype.$createCanvas=function(){this.canvas=x.createElement("canvas"),this.canvas.style.top="0px",this.canvas.style.right="0px",this.canvas.style.zIndex="7",this.canvas.style.position="absolute"},g.prototype.setScrollBarV=function(u){this.$createCanvas(),(this.scrollbarV=u).element.appendChild(this.canvas),this.setDimensions()},g.prototype.$updateDecorators=function(u){if(typeof this.canvas.getContext=="function"){var y=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light,m=(this.setDimensions(u),this.canvas.getContext("2d")),I=this.renderer.session.$annotations;if(m.clearRect(0,0,this.canvas.width,this.canvas.height),I){var _={info:1,warning:2,error:3};I.forEach(function(L){L.priority=_[L.type]||null});for(var I=I.sort(function(M,B){return M.priority<B.priority?-1:B.priority<M.priority?1:0}),h=0;h<I.length;h++){var E=I[h].row,E=this.getVerticalOffsetForRow(E),f=E+this.lineHeight,E=Math.round(this.heightRatio*E),f=Math.round(this.heightRatio*f),E=Math.round((E+f)/2),f=f-E,w=(E=(E=E-(f=f<this.halfMinDecorationHeight?this.halfMinDecorationHeight:f)<0?f:E)+f>this.canvasHeight?this.canvasHeight-f:E)-f,E=E+f-w;m.fillStyle=y[I[h].type]||null,m.fillRect(0,w,Math.round(this.oneZoneWidth-1),E)}}var u=this.renderer.session.selection.getCursor();u&&(u=Math.round(this.getVerticalOffsetForRow(u.row)*this.heightRatio),m.fillStyle="rgba(0, 0, 0, 0.5)",m.fillRect(0,u,this.canvasWidth,2))}},g.prototype.getVerticalOffsetForRow=function(u){return this.renderer.session.documentToScreenRow(u|=0,0)*this.lineHeight},g.prototype.setDimensions=function(u){u=u||this.renderer.layerConfig,this.maxHeight=u.maxHeight,this.lineHeight=u.lineHeight,this.canvasHeight=u.height,this.canvasWidth=this.scrollbarV.width||this.canvasWidth,this.setZoneWidth(),this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.maxHeight<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight},g.prototype.setZoneWidth=function(){this.oneZoneWidth=this.canvasWidth},g.prototype.destroy=function(){this.canvas.parentNode.removeChild(this.canvas)},g);function g(u,y){this.renderer=y,this.pixelRatio=1,this.maxHeight=y.layerConfig.maxHeight,this.lineHeight=y.layerConfig.lineHeight,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.colors={},this.colors.dark={error:"rgba(255, 18, 18, 1)",warning:"rgba(18, 136, 18, 1)",info:"rgba(18, 18, 136, 1)"},this.colors.light={error:"rgb(255,51,51)",warning:"rgb(32,133,72)",info:"rgb(35,68,138)"},this.setScrollBarV(u)}S.implement(p.prototype,b),C.Decorator=p}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/scrollbar_custom","ace/scrollbar_custom","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/css/editor-css","ace/layer/decorators","ace/lib/useragent","ace/layer/text_util"],function(z,C,N){var x=z("./lib/oop"),S=z("./lib/dom"),b=z("./lib/lang"),p=z("./config"),g=z("./layer/gutter").Gutter,u=z("./layer/marker").Marker,y=z("./layer/text").Text,m=z("./layer/cursor").Cursor,I=z("./scrollbar").HScrollBar,_=z("./scrollbar").VScrollBar,h=z("./scrollbar_custom").HScrollBar,f=z("./scrollbar_custom").VScrollBar,w=z("./renderloop").Ren
1111derLoop,E=z("./layer/font_metrics").FontMetrics,k=z("./lib/event_emitter").EventEmitter,L=z("./css/editor-css"),M=z("./layer/decorators").Decorator,B=z("./lib/useragent"),j=z("./layer/text_util").isTextToken,z=(S.importCssString(L,"ace_editor.css",!1),Q.prototype.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),S.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},Q.prototype.setSession=function(D){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),(this.session=D)&&this.scrollMargin.top&&D.getScrollTop()<=0&&D.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(D),this.$markerBack.setSession(D),this.$markerFront.setSession(D),this.$gutterLayer.setSession(D),this.$textLayer.setSession(D),D&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},Q.prototype.updateLines=function(D,K,H){if(K===void 0&&(K=1/0),this.$changedLines?(this.$changedLines.firstRow>D&&(this.$changedLines.firstRow=D),this.$changedLines.lastRow<K&&(this.$changedLines.lastRow=K)):this.$changedLines={firstRow:D,lastRow:K},this.$changedLines.lastRow<this.layerConfig.firstRow){if(!H)return;this.$changedLines.lastRow=this.layerConfig.lastRow}this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},Q.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},Q.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},Q.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},Q.prototype.updateFull=function(D){D?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},Q.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},Q.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},Q.prototype.onResize=function(D,K,H,A){if(!(2<this.resizing)){0<this.resizing?this.resizing++:this.resizing=D?1:0;var W=this.container,W=(!(A=A||W.clientHeight||W.scrollHeight)&&this.$maxLines&&1<this.lineHeight&&(W.style.height&&W.style.height!="0px"||(W.style.height="1px",A=W.clientHeight||W.scrollHeight)),H=H||W.clientWidth||W.scrollWidth,this.$updateCachedSize(D,K,H,A));if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!H&&!A)return this.resizing=0;D&&(this.$gutterLayer.$padding=null),D?this.$renderChanges(W|this.$changes,!0):this.$loop.schedule(W|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},Q.prototype.$updateCachedSize=function(D,K,H,A){A-=this.$extraHeight||0;var W=0,F=this.$size,U={width:F.width,height:F.height,scrollerHeight:F.scrollerHeight,scrollerWidth:F.scrollerWidth};return A&&(D||F.height!=A)&&(F.height=A,W|=this.CHANGE_SIZE,F.scrollerHeight=F.height,this.$horizScroll&&(F.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(F.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",W|=this.CHANGE_SCROLL),H&&(D||F.width!=H)&&(W|=this.CHANGE_SIZE,F.width=H,K==null&&(K=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=K,S.setStyle(this.scrollBarH.element.style,"left",K+"px"),S.setStyle(this.scroller.style,"left",K+this.margin.left+"px"),F.scrollerWidth=Math.max(0,H-K-this.scrollBarV.getWidth()-this.margin.h),S.setStyle(this.$gutter.style,"left",this.margin.left+"px"),K=this.scrollBarV.getWidth()+"px",S.setStyle(this.scrollBarH.element.style,"right",K),S.setStyle(this.scroller.style,"right",K),S.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(F.scrollerWidth),this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||D)&&(W|=this.CHANGE_FULL),F.$dirty=!H||!A,W&&this._signal("resize",U),W},Q.prototype.onGutterResize=function(D){D=this.$showGutter?D:0,D!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,D,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()||this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},Q.prototype.adjustWrapLimit=function(){var D=this.$size.scrollerWidth-2*this.$padding,D=Math.floor(D/this.characterWidth);return this.session.adjustWrapLimit(D,this.$showPrintMargin&&this.$printMarginColumn)},Q.prototype.setAnimatedScroll=function(D){this.setOption("animatedScroll",D)},Q.prototype.getAnimatedScroll=function(){return this.$animatedScroll},Q.prototype.setShowInvisibles=function(D){this.setOption("showInvisibles",D),this.session.$bidiHandler.setShowInvisibles(D)},Q.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},Q.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},Q.prototype.setDisplayIndentGuides=function(D){this.setOption("displayIndentGuides",D)},Q.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},Q.prototype.setHighlightIndentGuides=function(D){this.setOption("highlightIndentGuides",D)},Q.prototype.setShowPrintMargin=function(D){this.setOption("showPrintMargin",D)},Q.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},Q.prototype.setPrintMarginColumn=function(D){this.setOption("printMarginColumn",D)},Q.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},Q.prototype.getShowGutter=function(){return this.getOption("showGutter")},Q.prototype.setShowGutter=function(D){return this.setOption("showGutter",D)},Q.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},Q.prototype.setFadeFoldWidgets=function(D){this.setOption("fadeFoldWidgets",D)},Q.prototype.setHighlightGutterLine=function(D){this.setOption("highlightGutterLine",D)},Q.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},Q.prototype.$updatePrintMargin=function(){var D;(this.$showPrintMargin||this.$printMarginEl)&&(this.$printMarginEl||((D=S.createElement("div")).className="ace_layer ace_print-margin-layer",this.$printMarginEl=S.createElement("div"),this.$printMarginEl.className="ace_print-margin",D.appendChild(this.$printMarginEl),this.content.insertBefore(D,this.content.firstChild)),(D=this.$printMarginEl.style).left
1111=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",D.visibility=this.$showPrintMargin?"visible":"hidden",this.session)&&this.session.$wrap==-1&&this.adjustWrapLimit()},Q.prototype.getContainerElement=function(){return this.container},Q.prototype.getMouseEventTarget=function(){return this.scroller},Q.prototype.getTextAreaContainer=function(){return this.container},Q.prototype.$moveTextAreaToCursor=function(){var D,K,H,A,W,F,U;this.$isMousePressed||(D=this.textarea.style,F=this.$composition,this.$keepTextAreaAtCursor||F?(H=this.$cursorLayer.$pixelPos)&&(F&&F.markerRange&&(H=this.$cursorLayer.getPixelPosition(F.markerRange.start,!0)),U=this.layerConfig,K=H.top,H=H.left,K-=U.offset,A=F&&F.useTextareaForIME||B.isMobile?this.lineHeight:1,K<0||K>U.height-A?S.translate(this.textarea,0,0):(U=1,W=this.$size.height-A,F?F.useTextareaForIME?(F=this.textarea.value,U=this.characterWidth*this.session.$getStringScreenWidth(F)[0]):K+=this.lineHeight+2:K+=this.lineHeight,(H-=this.scrollLeft)>this.$size.scrollerWidth-U&&(H=this.$size.scrollerWidth-U),H+=this.gutterWidth+this.margin.left,S.setStyle(D,"height",A+"px"),S.setStyle(D,"width",U+"px"),S.translate(this.textarea,Math.min(H,this.$size.scrollerWidth-U),Math.min(K,W)))):S.translate(this.textarea,-100,0))},Q.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},Q.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},Q.prototype.getLastFullyVisibleRow=function(){var D=this.layerConfig,K=D.lastRow;return this.session.documentToScreenRow(K,0)*D.lineHeight-this.session.getScrollTop()>D.height-D.lineHeight?K-1:K},Q.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},Q.prototype.setPadding=function(D){this.$padding=D,this.$textLayer.setPadding(D),this.$cursorLayer.setPadding(D),this.$markerFront.setPadding(D),this.$markerBack.setPadding(D),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},Q.prototype.setScrollMargin=function(D,K,H,A){var W=this.scrollMargin;W.top=0|D,W.bottom=0|K,W.right=0|A,W.left=0|H,W.v=W.top+W.bottom,W.h=W.left+W.right,W.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-W.top),this.updateFull()},Q.prototype.setMargin=function(D,K,H,A){var W=this.margin;W.top=0|D,W.bottom=0|K,W.right=0|A,W.left=0|H,W.v=W.top+W.bottom,W.h=W.left+W.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},Q.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},Q.prototype.setHScrollBarAlwaysVisible=function(D){this.setOption("hScrollBarAlwaysVisible",D)},Q.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},Q.prototype.setVScrollBarAlwaysVisible=function(D){this.setOption("vScrollBarAlwaysVisible",D)},Q.prototype.$updateScrollBarV=function(){var D=this.layerConfig.maxHeight,K=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(D-=(K-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>D-K)&&(D=this.scrollTop+K,this.scrollBarV.scrollTop=null),this.scrollBarV.setScrollHeight(D+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},Q.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},Q.prototype.freeze=function(){this.$frozen=!0},Q.prototype.unfreeze=function(){this.$frozen=!1},Q.prototype.$renderChanges=function(D,K){if(this.$changes&&(D|=this.$changes,this.$changes=0),this.session&&this.container.offsetWidth&&!this.$frozen&&(D||K)){if(this.$size.$dirty)return this.$changes|=D,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",D),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var H,A,K=this.layerConfig;(D&this.CHANGE_FULL||D&this.CHANGE_SIZE||D&this.CHANGE_TEXT||D&this.CHANGE_LINES||D&this.CHANGE_SCROLL||D&this.CHANGE_H_SCROLL)&&(D|=this.$computeLayerConfig()|this.$loop.clear(),K.firstRow!=this.layerConfig.firstRow&&K.firstRowScreen==this.layerConfig.firstRowScreen&&0<(H=this.scrollTop+(K.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight)&&(this.scrollTop=H,D=(D|=this.CHANGE_SCROLL)|(this.$computeLayerConfig()|this.$loop.clear())),K=this.layerConfig,this.$updateScrollBarV(),D&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),S.translate(this.content,-this.scrollLeft,-K.offset),H=K.width+2*this.$padding+"px",A=K.minHeight+"px",S.setStyle(this.content.style,"width",H),S.setStyle(this.content.style,"height",A)),D&this.CHANGE_H_SCROLL&&(S.translate(this.content,-this.scrollLeft,-K.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility)&&(this.scroller.className+=this.keyboardFocusClassName),D&this.CHANGE_FULL?(this.$changedLines=null,this.$textLayer.update(K),this.$showGutter&&this.$gutterLayer.update(K),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(K),this.$markerBack.update(K),this.$markerFront.update(K),this.$curs
1111orLayer.update(K),this.$moveTextAreaToCursor()):D&this.CHANGE_SCROLL?(this.$changedLines=null,D&this.CHANGE_TEXT||D&this.CHANGE_LINES?this.$textLayer.update(K):this.$textLayer.scrollLines(K),this.$showGutter&&(D&this.CHANGE_GUTTER||D&this.CHANGE_LINES?this.$gutterLayer.update(K):this.$gutterLayer.scrollLines(K)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(K),this.$markerBack.update(K),this.$markerFront.update(K),this.$cursorLayer.update(K),this.$moveTextAreaToCursor()):(D&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(K),this.$showGutter&&this.$gutterLayer.update(K),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(K)):D&this.CHANGE_LINES?((this.$updateLines()||D&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(K),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(K)):D&this.CHANGE_TEXT||D&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(K),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(K)):D&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(K),this.$customScrollbar)&&this.$scrollDecorator.$updateDecorators(K),D&this.CHANGE_CURSOR&&(this.$cursorLayer.update(K),this.$moveTextAreaToCursor()),D&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(K),D&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(K)),this._signal("afterRender",D)}else this.$changes|=D},Q.prototype.$autosize=function(){var D=this.session.getScreenLength()*this.lineHeight,K=this.$maxLines*this.lineHeight,H=Math.min(K,Math.max((this.$minLines||1)*this.lineHeight,D))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(H+=this.scrollBarH.getHeight()),K=!((H=this.$maxPixelHeight&&H>this.$maxPixelHeight?this.$maxPixelHeight:H)<=2*this.lineHeight)&&K<D,H==this.desiredHeight&&this.$size.height==this.desiredHeight&&K==this.$vScroll||(K!=this.$vScroll&&(this.$vScroll=K,this.scrollBarV.setVisible(K)),D=this.container.clientWidth,this.container.style.height=H+"px",this.$updateCachedSize(!0,this.$gutterWidth,D,H),this.desiredHeight=H,this._signal("autosize"))},Q.prototype.$computeLayerConfig=function(){var D,se=this.session,K=this.$size,q=K.height<=2*this.lineHeight,H=this.session.getScreenLength()*this.lineHeight,A=this.$getLongestLine(),ee=!q&&(this.$hScrollBarAlwaysVisible||K.scrollerWidth-A-2*this.$padding<0),W=this.$horizScroll!==ee,ee=(W&&(this.$horizScroll=ee,this.scrollBarH.setVisible(ee)),this.$vScroll),F=(this.$maxLines&&1<this.lineHeight&&(this.$autosize(),q=K.height<=2*this.lineHeight),K.scrollerHeight+this.lineHeight),U=!this.$maxLines&&this.$scrollPastEnd?(K.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0,Y=(H+=U,this.scrollMargin),q=(this.session.setScrollTop(Math.max(-Y.top,Math.min(this.scrollTop,H-K.scrollerHeight+Y.bottom))),this.session.setScrollLeft(Math.max(-Y.left,Math.min(this.scrollLeft,A+2*this.$padding-K.scrollerWidth+Y.right))),!q&&(this.$vScrollBarAlwaysVisible||K.scrollerHeight-H+U<0||this.scrollTop>Y.top)),U=ee!==q,Y=(U&&(this.$vScroll=q,this.scrollBarV.setVisible(q)),this.scrollTop%this.lineHeight),ee=Math.ceil(F/this.lineHeight)-1,ee=(q=Math.max(0,Math.round((this.scrollTop-Y)/this.lineHeight)))+ee,X=this.lineHeight,q=se.screenToDocumentRow(q,0),ne=se.getFoldLine(q),se=(ne&&(q=ne.start.row),ne=se.documentToScreenRow(q,0),D=se.getRowLength(q)*X,ee=Math.min(se.screenToDocumentRow(ee,0),se.getLength()-1),F=K.scrollerHeight+se.getRowLength(ee)*X+D,(Y=this.scrollTop-ne*X)<0&&0<ne&&(ne=Math.max(0,ne+Math.floor(Y/X)),Y=this.scrollTop-ne*X),0);return this.layerConfig.width==A&&!W||(se=this.CHANGE_H_SCROLL),(W||U)&&(se|=this.$updateCachedSize(!0,this.gutterWidth,K.width,K.height),this._signal("scrollbarVisibilityChanged"),U)&&(A=this.$getLongestLine()),this.layerConfig={width:A,padding:this.$padding,firstRow:q,firstRowScreen:ne,lastRow:ee,lineHeight:X,characterWidth:this.characterWidth,minHeight:F,maxHeight:H,offset:Y,gutterOffset:X?Math.max(0,Math.ceil((Y+K.height-K.scrollerHeight)/X)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(A-this.$padding),se},Q.prototype.$updateLines=function(){if(this.$changedLines){var D=this.$changedLines.firstRow,K=this.$changedLines.lastRow,H=(this.$changedLines=null,this.layerConfig);if(!(D>H.lastRow+1||K<H.firstRow)){if(K!==1/0)return this.$textLayer.updateLines(H,D,K),!0;this.$showGutter&&this.$gutterLayer.update(H),this.$textLayer.update(H)}}},Q.prototype.$getLongestLine=function(){var D=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(D+=1),this.$textLayer&&D>this.$textLayer.MAX_LINE_LENGTH&&(D=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(D*this.characterWidth))},Q.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},Q.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},Q.prototype.addGutterDecoration=function(D,K){this.$gutterLayer.addGutterDecoration(D,K)},Q.prototype.removeGutterDecoration=function(D,K){this.$gutterLayer.removeGutterDecoration(D,K)},Q.prototype.updateBreakpoints=function(D){this._rows=D,this.$loop.schedule(this.CHANGE_GUTTER)},Q.prototype.setAnnotations=function(D){this.$gutterLayer.setAnnotations(D),this.$loop.schedule(this.CHANGE_GUTTER)},Q.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)}
1111,Q.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},Q.prototype.showCursor=function(){this.$cursorLayer.showCursor()},Q.prototype.scrollSelectionIntoView=function(D,K,H){this.scrollCursorIntoView(D,H),this.scrollCursorIntoView(K,H)},Q.prototype.scrollCursorIntoView=function(D,K,H){var A,W,F;this.$size.scrollerHeight!==0&&(A=(D=this.$cursorLayer.getPixelPosition(D)).left,D=D.top,W=H&&H.top||0,H=H&&H.bottom||0,this.$scrollAnimation&&(this.$stopAnimation=!0),D<(F=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop)+W?(K&&F+W>D+this.lineHeight&&(D-=K*this.$size.scrollerHeight),D===0&&(D=-this.scrollMargin.top),this.session.setScrollTop(D)):F+this.$size.scrollerHeight-H<D+this.lineHeight&&(K&&F+this.$size.scrollerHeight-H<D-this.lineHeight&&(D+=K*this.$size.scrollerHeight),this.session.setScrollTop(D+this.lineHeight+H-this.$size.scrollerHeight)),W=this.scrollLeft,A-(F=2*this.layerConfig.characterWidth)<W?((A-=F)<this.$padding+F&&(A=-this.scrollMargin.left),this.session.setScrollLeft(A)):W+this.$size.scrollerWidth<(A+=F)+this.characterWidth?this.session.setScrollLeft(Math.round(A+this.characterWidth-this.$size.scrollerWidth)):W<=this.$padding&&A-W<this.characterWidth&&this.session.setScrollLeft(0))},Q.prototype.getScrollTop=function(){return this.session.getScrollTop()},Q.prototype.getScrollLeft=function(){return this.session.getScrollLeft()},Q.prototype.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},Q.prototype.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},Q.prototype.scrollToRow=function(D){this.session.setScrollTop(D*this.lineHeight)},Q.prototype.alignCursor=function(A,K){var A=this.$cursorLayer.getPixelPosition(A=typeof A=="number"?{row:A,column:0}:A),H=this.$size.scrollerHeight-this.lineHeight,A=A.top-H*(K||0);return this.session.setScrollTop(A),A},Q.prototype.$calcSteps=function(D,K){for(var H,A,U=0,W=this.STEPS,F=[],U=0;U<W;++U)F.push((H=U/this.STEPS,(K-(A=D))*(Math.pow(H-1,3)+1)+A));return F},Q.prototype.scrollToLine=function(D,K,H,A){D=this.$cursorLayer.getPixelPosition({row:D,column:0}).top,K&&(D-=this.$size.scrollerHeight/2),K=this.scrollTop,this.session.setScrollTop(D),H!==!1&&this.animateScrolling(K,A)},Q.prototype.animateScrolling=function(D,K){var H=this.scrollTop;if(this.$animatedScroll){var A=this;if(D!=H){if(this.$scrollAnimation){var W=this.$scrollAnimation.steps;if(W.length&&(D=W[0])==H)return}var F=A.$calcSteps(D,H);this.$scrollAnimation={from:D,to:H,steps:F},clearInterval(this.$timer),A.session.setScrollTop(F.shift()),A.session.$scrollTop=H,this.$timer=setInterval(function(){if(!A.$stopAnimation)return A.session?void(F.length?(A.session.setScrollTop(F.shift()),A.session.$scrollTop=H):H!=null?(A.session.$scrollTop=-1,A.session.setScrollTop(H),H=null):U()):clearInterval(A.$timer);U()},10)}}function U(){A.$timer=clearInterval(A.$timer),A.$scrollAnimation=null,A.$stopAnimation=!1,K&&K()}},Q.prototype.scrollToY=function(D){this.scrollTop!==D&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=D)},Q.prototype.scrollToX=function(D){this.scrollLeft!==D&&(this.scrollLeft=D),this.$loop.schedule(this.CHANGE_H_SCROLL)},Q.prototype.scrollTo=function(D,K){this.session.setScrollTop(K),this.session.setScrollLeft(D)},Q.prototype.scrollBy=function(D,K){K&&this.session.setScrollTop(this.session.getScrollTop()+K),D&&this.session.setScrollLeft(this.session.getScrollLeft()+D)},Q.prototype.isScrollableBy=function(D,K){return K<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||0<K&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||D<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||0<D&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right||void 0},Q.prototype.pixelToScreenCoordinates=function(A,W){this.$hasCssTransforms?(F={top:0,left:0},A=(H=this.$fontMetrics.transformCoordinates([A,W]))[1]-this.gutterWidth-this.margin.left,W=H[0]):F=this.scroller.getBoundingClientRect();var H=A+this.scrollLeft-F.left-this.$padding,A=H/this.characterWidth,W=Math.floor((W+this.scrollTop-F.top)/this.lineHeight),F=this.$blockCursor?Math.floor(A):Math.round(A);return{row:W,column:F,side:0<A-F?1:-1,offsetX:H}},Q.prototype.screenToTextCoordinates=function(W,F){this.$hasCssTransforms?(H={top:0,left:0},W=(A=this.$fontMetrics.transformCoordinates([W,F]))[1]-this.gutterWidth-this.margin.left,F=A[0]):H=this.scroller.getBoundingClientRect();var H,A=W+this.scrollLeft-H.left-this.$padding,W=A/this.characterWidth,W=this.$blockCursor?Math.floor(W):Math.round(W),F=Math.floor((F+this.scrollTop-H.top)/this.lineHeight);return this.session.screenToDocumentPosition(F,Math.max(W,0),A)},Q.prototype.textToScreenCoordinates=function(A,W){var H=this.scroller.getBoundingClientRect(),W=this.session.documentToScreenPosition(A,W),A=this.$padding+(this.session.$bidiHandler.isBidiRow(W.row,A)?this.session.$bidiHandler.getPosLeft(W.column):Math.round(W.column*this.characterWidth)),W=W.row*this.lineHeight;return{pageX:H.left+A-this.scrollLeft,pageY:H.top+W-this.scrollTop}},Q.prototype.visualizeFocus=function(){S.addCssClass(this.container,"ace_focus")},Q.prototype.visualizeBlur=function(){S.removeCssClass(this.container,"ace_focus")},Q.prototype.showComposition=function(D){(this.$composition=D).cssText||(D.cssText=this.textarea.style.cssText),D.useTextareaForIME==null&&(D.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(S.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$curs
1111orLayer.element.style.display="none"):D.markerId=this.session.addMarker(D.markerRange,"ace_composition_marker","text")},Q.prototype.setCompositionText=function(D){var K=this.session.selection.cursor;this.addToken(D,"composition_placeholder",K.row,K.column),this.$moveTextAreaToCursor()},Q.prototype.hideComposition=function(){var D;this.$composition&&(this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),S.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText,D=this.session.selection.cursor,this.removeExtraToken(D.row,D.column),this.$composition=null,this.$cursorLayer.element.style.display="")},Q.prototype.setGhostText=function(D,F){var H,A,W,U=this.session.selection.cursor,F=F||{row:U.row,column:U.column},U=(this.removeGhostText(),this.$calculateWrappedTextChunks(D,F)),Y=(this.addToken(U[0].text,"ghost_text",F.row,F.column),this.$ghostText={text:D,position:{row:F.row,column:F.column}},S.createElement("div"));1<U.length&&(D=this.hideTokensAfterPosition(F.row,F.column),U.slice(1).forEach(function(ee){var X=S.createElement("div"),q=S.createElement("span");q.className="ace_ghost_text",ee.wrapped&&(X.className="ghost_text_line_wrapped"),ee.text.length===0&&(ee.text=" "),q.appendChild(S.createTextNode(ee.text)),X.appendChild(q),Y.appendChild(X),H=X}),D.forEach(function(ee){var X=S.createElement("span");j(ee.type)||(X.className="ace_"+ee.type.replace(/\./g," ace_")),X.appendChild(S.createTextNode(ee.value)),H.appendChild(X)}),this.$ghostTextWidget={el:Y,row:F.row,column:F.column,className:"ace_ghost_text_container"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget),D=this.$cursorLayer.getPixelPosition(F,!0),A=this.container.getBoundingClientRect().height,(W=U.length*this.lineHeight)<A-D.top||(W<A?this.scrollBy(0,(U.length-1)*this.lineHeight):this.scrollToRow(F.row)))},Q.prototype.$calculateWrappedTextChunks=function(D,K){for(var H=this.$size.scrollerWidth-2*this.$padding,A=(A=Math.floor(H/this.characterWidth)-2)<=0?60:A,W=D.split(/\r?\n/),F=[],U=0;U<W.length;U++){var Y=this.session.$getDisplayTokens(W[U],K.column),ee=this.session.$computeWrapSplits(Y,A,this.session.$tabSize);if(0<ee.length){var X=0;ee.push(W[U].length);for(var q=0;q<ee.length;q++){var ne=W[U].slice(X,ee[q]);F.push({text:ne,wrapped:!0}),X=ee[q]}}else F.push({text:W[U],wrapped:!1})}return F},Q.prototype.removeGhostText=function(){var D;this.$ghostText&&(D=this.$ghostText.position,this.removeExtraToken(D.row,D.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null)},Q.prototype.addToken=function(D,K,H,A){var W=this.session,F=(W.bgTokenizer.lines[H]=null,{type:K,value:D}),U=W.getTokens(H);if(A!=null&&U.length)for(var Y=0,ee=0;ee<U.length;ee++){var X=U[ee];if(A<=(Y+=X.value.length)){var ne=X.value.length-(Y-A),q=X.value.slice(0,ne),ne=X.value.slice(ne);U.splice(ee,1,{type:X.type,value:q},F,{type:X.type,value:ne});break}}else U.push(F);this.updateLines(H,H)},Q.prototype.hideTokensAfterPosition=function(D,K){for(var H=this.session.getTokens(D),A=0,W=!1,F=[],U=0;U<H.length;U++){var Y=H[U];A+=Y.value.length,Y.type!=="ghost_text"&&(W?(F.push({type:Y.type,value:Y.value}),Y.type="hidden_token"):A===K&&(W=!0))}return this.updateLines(D,D),F},Q.prototype.removeExtraToken=function(D,K){this.session.bgTokenizer.lines[D]=null,this.updateLines(D,D)},Q.prototype.setTheme=function(D,K){var H,A=this;function W(F){if(A.$themeId!=D)return K&&K();if(!F||!F.cssClass)throw new Error("couldn't load module "+D+" or it didn't call define");F.$id&&(A.$themeId=F.$id),S.importCssString(F.cssText,F.cssClass,A.container),A.theme&&S.removeCssClass(A.container,A.theme.cssClass);var U="padding"in F?F.padding:"padding"in(A.theme||{})?4:A.$padding;A.$padding&&U!=A.$padding&&A.setPadding(U),A.$gutterLayer&&((U=F.$showGutterCursorMarker)&&!A.$gutterLayer.$showCursorMarker?A.$gutterLayer.$showCursorMarker="theme":U||A.$gutterLayer.$showCursorMarker!="theme"||(A.$gutterLayer.$showCursorMarker=null)),A.$theme=F.cssClass,A.theme=F,S.addCssClass(A.container,F.cssClass),S.setCssClass(A.container,"ace_dark",F.isDark),A.$size&&(A.$size.width=0,A.$updateSizeAsync()),A._dispatchEvent("themeLoaded",{theme:F}),K&&K(),B.isSafari&&A.scroller&&(A.scroller.style.background="red",A.scroller.style.background="")}this.$themeId=D,A._dispatchEvent("themeChange",{theme:D}),D&&typeof D!="string"?W(D):(H=D||this.$options.theme.initialValue,p.loadModule(["theme",H],W))},Q.prototype.getTheme=function(){return this.$themeId},Q.prototype.setStyle=function(D,K){S.setCssClass(this.container,D,K!==!1)},Q.prototype.unsetStyle=function(D){S.removeCssClass(this.container,D)},Q.prototype.setCursorStyle=function(D){S.setStyle(this.scroller.style,"cursor",D)},Q.prototype.setMouseCursor=function(D){S.setStyle(this.scroller.style,"cursor",D)},Q.prototype.attachToShadowRoot=function(){S.importCssString(L,"ace_editor.css",this.container)},Q.prototype.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$curs
1111orLayer.destroy(),this.removeAllListeners(),this.container.textContent="",this.setOption("useResizeObserver",!1)},Q.prototype.$updateCustomScrollbar=function(D){var K=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),D===!0?(this.scrollBarV=new f(this.container,this),this.scrollBarH=new h(this.container,this),this.scrollBarV.setHeight(this.$size.scrollerHeight),this.scrollBarH.setWidth(this.$size.scrollerWidth),this.scrollBarV.addEventListener("scroll",function(H){K.$scrollAnimation||K.session.setScrollTop(H.data-K.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(H){K.$scrollAnimation||K.session.setScrollLeft(H.data-K.scrollMargin.left)}),this.$scrollDecorator?this.$scrollDecorator.setScrollBarV(this.scrollBarV):this.$scrollDecorator=new M(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators()):(this.scrollBarV=new _(this.container,this),this.scrollBarH=new I(this.container,this),this.scrollBarV.addEventListener("scroll",function(H){K.$scrollAnimation||K.session.setScrollTop(H.data-K.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(H){K.$scrollAnimation||K.session.setScrollLeft(H.data-K.scrollMargin.left)}))},Q.prototype.$addResizeObserver=function(){var D;window.ResizeObserver&&!this.$resizeObserver&&((D=this).$resizeTimer=b.delayedCall(function(){D.destroyed||D.onResize()},50),this.$resizeObserver=new window.ResizeObserver(function(A){var H=A[0].contentRect.width,A=A[0].contentRect.height;1<Math.abs(D.$size.width-H)||1<Math.abs(D.$size.height-A)?D.$resizeTimer.delay():D.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container))},Q);function Q(A,K){var H=this,A=(this.container=A||S.createElement("div"),S.addCssClass(this.container,"ace_editor"),S.HI_DPI&&S.addCssClass(this.container,"ace_hidpi"),this.setTheme(K),p.get("useStrictCSP")==null&&p.set("useStrictCSP",!1),this.$gutter=S.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden","true"),this.scroller=S.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=S.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new g(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new u(this.content),this.$textLayer=new y(this.content));this.canvas=A.element,this.$markerFront=new u(this.content),this.$cursorLayer=new m(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new _(this.container,this),this.scrollBarH=new I(this.container,this),this.scrollBarV.on("scroll",function(W){H.$scrollAnimation||H.session.setScrollTop(W.data-H.scrollMargin.top)}),this.scrollBarH.on("scroll",function(W){H.$scrollAnimation||H.session.setScrollLeft(W.data-H.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new E(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(W){H.updateCharacterSize(),H.onResize(!0,H.gutterWidth,H.$size.width,H.$size.height),H._signal("changeCharacterSize",W)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!B.isIOS,this.$loop=new w(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),this.$addResizeObserver(),p.resetOptions(this),p._signal("renderer",this)}z.prototype.CHANGE_CURSOR=1,z.prototype.CHANGE_MARKER=2,z.prototype.CHANGE_GUTTER=4,z.prototype.CHANGE_SCROLL=8,z.prototype.CHANGE_LINES=16,z.prototype.CHANGE_TEXT=32,z.prototype.CHANGE_SIZE=64,z.prototype.CHANGE_MARKER_BACK=128,z.prototype.CHANGE_MARKER_FRONT=256,z.prototype.CHANGE_FULL=512,z.prototype.CHANGE_H_SCROLL=1024,z.prototype.$changes=0,z.prototype.$padding=null,z.prototype.$frozen=!1,z.prototype.STEPS=8,x.implement(z.prototype,k),p.defineOptions(z.prototype,"renderer",{useResizeObserver:{set:function(D){!D&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):D&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(D){this.$textLayer.setShowInvisibles(D)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(D){typeof D=="number"&&(this.$printMarginColumn=D),this.$showPrintMargin=!!D,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(D){this.$gutter.style.display=D?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(D){this.$gutterLayer.$useSvgGutterIcons=D},initialValue:!1},showFoldedAnnotations:{set:function(D){this.$gutterLayer.$showFoldedAnnotations=D},initialValue:!1},fadeFoldWidgets:{set:function(D){S.setCssClass(this.$gutter,"ace_fade-fold-widgets",D)},initialValue:!1},showFoldWidgets:{set:function(D){this.$gutterLayer.setShowFoldWidgets(D),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(D){this.$textLayer.setDisplayIndentGuides(D)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(D){this.$textLayer.setHighlightIndentGuides(D)==1?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(D){this.$gutterLayer.setHighlightGutterLine(D),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(D){this.$hScrollBarAlwaysVisible&&this.$horizScroll||this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(D){this.$vScrollBarAlwaysVisible&&this.$vScroll||this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(D){typeof D=="number"&&(D+="px"),this.container.style.fontSize=D,this.updateFontSize()},initialValue:12},fontFamily:{set:function(D){this.container.style.fontFamily=D,this.updateFontSize()}},maxLines:{set:function(D){this.updateFull()}},minLines:{set:function(D){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(D){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(D){this.$scrollPastEnd!=(D=+D||0)&&(this.$scrollPastEnd=D,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(D){this.$gutterLayer.$fixedWidth=!!D,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(D){this.$updateCustomScrollbar(D)},initialValue:!1},theme:{set:function(D){this.setTheme(D)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!B.isMobile&&!B.isIE}}),C.VirtualRenderer=z}
1111),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(T,C,N){var x=T("../lib/oop"),S=T("../lib/net"),b=T("../lib/event_emitter").EventEmitter,p=T("../config");function g(y){var m;return typeof Worker>"u"?{postMessage:function(){},terminate:function(){}}:p.get("loadWorkerFromBlob")?(m=(I=>{I="importScripts('"+S.qualifyURL(I)+"');";try{return new Blob([I],{type:"application/javascript"})}catch{var _=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder);return _.append(I),_.getBlob("application/javascript")}})(y),m=(window.URL||window.webkitURL).createObjectURL(m),new Worker(m)):new Worker(y)}function u(y){y.postMessage||(y=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=y,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage}(function(){x.implement(this,b),this.$createWorkerFromOldConfig=function(y,m,I,_,h){var f,w;return T.nameToUrl&&!T.toUrl&&(T.toUrl=T.nameToUrl),p.get("packaged")||!T.toUrl?_=_||p.moduleUrl(m,"worker"):(f=this.$normalizePath,_=_||f(T.toUrl("ace/worker/worker.js",null,"_")),w={},y.forEach(function(E){w[E]=f(T.toUrl(E,null,"_").replace(/(\.js)?(\?.*)?$/,""))})),this.$worker=g(_),h&&this.send("importScripts",h),this.$worker.postMessage({init:!0,tlns:w,module:m,classname:I}),this.$worker},this.onMessage=function(y){var m=y.data;switch(m.type){case"event":this._signal(m.name,{data:m.data});break;case"call":var I=this.callbacks[m.id];I&&(I(m.data),delete this.callbacks[m.id]);break;case"error":this.reportError(m.data);break;case"log":window.console}},this.reportError=function(y){window.console},this.$normalizePath=function(y){return S.qualifyURL(y)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(y){y.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(y,m){this.$worker.postMessage({command:y,args:m})},this.call=function(y,m,I){var _;I&&(_=this.callbackId++,this.callbacks[_]=I,m.push(_)),this.send(y,m)},this.emit=function(y,m){try{m.data&&m.data.err&&(m.data.err={message:m.data.err.message,stack:m.data.err.stack,code:m.data.err.code}),this.$worker&&this.$worker.postMessage({event:y,data:{data:m.data}})}catch{}},this.attachToDocument=function(y){this.$doc&&this.terminate(),this.$doc=y,this.call("setValue",[y.getValue()]),y.on("change",this.changeListener,!0)},this.changeListener=function(y){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),y.action=="insert"?this.deltaQueue.push(y.start,y.lines):this.deltaQueue.push(y.start,y.end)},this.$sendDeltaQueue=function(){var y=this.deltaQueue;y&&(this.deltaQueue=null,50<y.length&&y.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:y}))}}).call(u.prototype),C.UIWorkerClient=function(y,m,I){var _=null,h=!1,f=Object.create(b),w=[],E=new u({messageBuffer:w,terminate:function(){},postMessage:function(L){w.push(L),_&&(h?setTimeout(k):k())}}),k=(E.setEmitSync=function(L){h=L},function(){var L=w.shift();L.command?_[L.command].apply(_,L.args):L.event&&f._signal(L.event,L.data)});return f.postMessage=function(L){E.onMessage({data:L})},f.callback=function(L,M){this.postMessage({type:"call",id:M,data:L})},f.emit=function(L,M){this.postMessage({type:"event",name:L,data:M})},p.loadModule(["worker",m],function(L){for(_=new L[I](f);w.length;)k()}),E},C.WorkerClient=u,C.createWorker=g}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(b,C,N){var x=b("./range").Range,S=b("./lib/event_emitter").EventEmitter,b=b("./lib/oop"),p=(g.prototype.setup=function(){var u=this,y=this.doc,m=this.session,I=(this.selectionBefore=m.selection.toJSON(),m.selection.inMultiSelectMode&&m.selection.toSingleRange(),this.pos=y.createAnchor(this.$pos.row,this.$pos.column),this.pos);I.$insertRight=!0,I.detach(),I.markerId=m.addMarker(new x(I.row,I.column,I.row,I.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEac
1111h(function(_){_=y.createAnchor(_.row,_.column),_.$insertRight=!0,_.detach(),u.others.push(_)}),m.setUndoSelect(!1)},g.prototype.showOtherMarkers=function(){var u,y;this.othersActive||(u=this.session,(y=this).othersActive=!0,this.others.forEach(function(m){m.markerId=u.addMarker(new x(m.row,m.column,m.row,m.column+y.length),y.othersClass,null,!1)}))},g.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var u=0;u<this.others.length;u++)this.session.removeMarker(this.others[u].markerId)}},g.prototype.onUpdate=function(u){if(this.$updating)return this.updateAnchors(u);var y=u;if(y.start.row===y.end.row&&y.start.row===this.pos.row){this.$updating=!0;var m=u.action==="insert"?y.end.column-y.start.column:y.start.column-y.end.column,I=y.start.column>=this.pos.column&&y.start.column<=this.pos.column+this.length+1,_=y.start.column-this.pos.column;if(this.updateAnchors(u),I&&(this.length+=m),I&&!this.session.$fromUndo){if(u.action==="insert")for(var h=this.others.length-1;0<=h;h--){var f={row:(w=this.others[h]).row,column:w.column+_};this.doc.insertMergedLines(f,u.lines)}else if(u.action==="remove")for(h=this.others.length-1;0<=h;h--){var w,f={row:(w=this.others[h]).row,column:w.column+_};this.doc.remove(new x(f.row,f.column,f.row,f.column-m))}}this.$updating=!1,this.updateMarkers()}},g.prototype.updateAnchors=function(u){this.pos.onChange(u);for(var y=this.others.length;y--;)this.others[y].onChange(u);this.updateMarkers()},g.prototype.updateMarkers=function(){if(!this.$updating){var u=this,y=this.session,m=function(_,h){y.removeMarker(_.markerId),_.markerId=y.addMarker(new x(_.row,_.column,_.row,_.column+u.length),h,null,!1)};m(this.pos,this.mainClass);for(var I=this.others.length;I--;)m(this.others[I],this.othersClass)}},g.prototype.onCursorChange=function(u){var y;!this.$updating&&this.session&&((y=this.session.selection.getCursor()).row===this.pos.row&&y.column>=this.pos.column&&y.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",u)):(this.hideOtherMarkers(),this._emit("cursorLeave",u)))},g.prototype.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},g.prototype.cancel=function(){if(this.$undoStackDepth!==-1){for(var u=this.session.getUndoManager(),y=(u.$undoStack||u.$undostack).length-this.$undoStackDepth,m=0;m<y;m++)u.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}},g);function g(u,w,m,I,_,h){var f=this,w=(this.length=w,this.session=u,this.doc=u.getDocument(),this.mainClass=_,this.othersClass=h,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=I,this.$onCursorChange=function(){setTimeout(function(){f.onCursorChange()})},this.$pos=m,u.getUndoManager().$undoStack||u.getUndoManager().$undostack||{length:-1});this.$undoStackDepth=w.length,this.setup(),u.selection.on("changeCursor",this.$onCursorChange)}b.implement(p.prototype,S),C.PlaceHolder=p}),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(T,C,N){var x=T("../lib/event"),S=T("../lib/useragent");function b(p,g){return p.row==g.row&&p.column==g.column}C.onMouseDown=function(p){var g=p.domEvent,u=g.altKey,y=g.shiftKey,m=g.ctrlKey,I=p.getAccelKey(),_=p.getButton();if(m&&S.isMac&&(_=g.button),p.editor.inMultiSelectMode&&_==2)p.editor.textInput.onContextMenu(p.domEvent);else if(m||u||I){if(_===0){var h,f,w,E,k,L,M,B,j=p.editor,z=j.selection,Q=j.inMultiSelectMode,D=p.getDocumentPosition(),K=z.getCursor(),K=p.inSelection()||z.isEmpty()&&b(D,K),H=p.x,A=p.y,W=j.session,F=j.renderer.pixelToScreenCoordinates(H,A),U=F;if(j.$mouseHandler.$enableJumpToDef)m&&u||I&&u?h=y?"block":"add":u&&j.$blockSelectEnabled&&(h="block");else if(I&&!u){if(h="add",!Q&&y)return}else u&&j.$blockSelectEnabled&&(h="block");if(h&&S.isMac&&g.ctrlKey&&j.$mouseHandler.cancelContextMenu(),h=="add")!Q&&K||(Q||(f=z.toOr
1111ientedRange(),j.addSelectionMarker(f)),w=z.rangeList.rangeAtPoint(D),j.inVirtualSelectionMode=!0,y&&(w=null,f=z.ranges[0]||f,j.removeSelectionMarker(f)),j.once("mouseup",function(){var Y=z.toOrientedRange();w&&Y.isEmpty()&&b(w.cursor,Y.cursor)?z.substractPoint(Y.cursor):(y?z.substractPoint(f.cursor):f&&(j.removeSelectionMarker(f),z.addRange(f)),z.addRange(Y)),j.inVirtualSelectionMode=!1}));else if(h=="block")return p.stop(),j.inVirtualSelectionMode=!0,k=[],L=function(){var Y=j.renderer.pixelToScreenCoordinates(H,A),ee=W.screenToDocumentPosition(Y.row,Y.column,Y.offsetX);b(U,Y)&&b(ee,z.lead)||(U=Y,j.selection.moveToPosition(ee),j.renderer.scrollCursorIntoView(),j.removeSelectionMarkers(k),k=z.rectangularRangeBlock(U,F),j.$mouseHandler.$clickSelection&&k.length==1&&k[0].isEmpty()&&(k[0]=j.$mouseHandler.$clickSelection.clone()),k.forEach(j.addSelectionMarker,j),j.updateSelectionMarkers())},Q&&!I?z.toSingleRange():!Q&&I&&(E=z.toOrientedRange(),j.addSelectionMarker(E)),y?F=W.documentToScreenPosition(z.lead):z.moveToPosition(D),U={row:-1,column:-1},M=L,x.capture(j.container,function(Y){H=Y.clientX,A=Y.clientY},function(Y){L(),clearInterval(B),j.removeSelectionMarkers(k),k.length||(k=[z.toOrientedRange()]),E&&(j.removeSelectionMarker(E),z.toSingleRange(E));for(var ee=0;ee<k.length;ee++)z.addRange(k[ee]);j.inVirtualSelectionMode=!1,j.$mouseHandler.$clickSelection=null}),B=setInterval(function(){M()},20),p.preventDefault()}}else _===0&&p.editor.inMultiSelectMode&&p.editor.exitMultiSelectMode()}}),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],function(T,C,N){C.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(x){x.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(x){x.selectMoreLines(1)},bindKey:{win:"Ctrl-Alt-Down",mac:"Ctrl-Alt-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorAboveSkipCurrent",description:"Add cursor above (skip current)",exec:function(x){x.selectMoreLines(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Up",mac:"Ctrl-Alt-Shift-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelowSkipCurrent",description:"Add cursor below (skip current)",exec:function(x){x.selectMoreLines(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Down",mac:"Ctrl-Alt-Shift-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreBefore",description:"Select more before",exec:function(x){x.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(x){x.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(x){x.selectMore(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Left",mac:"Ctrl-Alt-Shift-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextAfter",description:"Select next after",exec:function(x){x.selectMore(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Right",mac:"Ctrl-Alt-Shift-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"toggleSplitSelectionIntoLines",description:"Split selection into lines",exec:function(x){1<x.multiSelect.rangeCount?x.multiSelect.joinSelections():x.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(x){x.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(x){x.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(x){x.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],C.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(x){x.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(x){return x&&x.inMultiSelectMode}}],T=T("../keyboard/hash_handler").HashHandler,C.keyboardHandler=new T(C.multiSelectCommands)}),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],function(T,C,N){var x=T("./range_list").RangeList,S=T("./range").Range,b=T("./selection").Selection,p=T("./mouse/multi_select_handler").onMouseDown,g=T("./lib/event"),u=T("./lib/lang"),y=T("./commands/multi_select_commands");C.commands=y.defaultCommands.concat(y.multiSelectCommands);var m=new(T("./search")).Search,I=T("./edit_session").EditSession,I=((function(){this.get
1111SelectionMarkers=function(){return this.$selectionMarkers}}).call(I.prototype),(function(){this.ranges=null,this.rangeList=null,this.addRange=function(h,f){if(h){if(!this.inMultiSelectMode&&this.rangeCount===0){var w=this.toOrientedRange();if(this.rangeList.add(w),this.rangeList.add(h),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),f||this.fromOrientedRange(h);this.rangeList.removeAll(),this.rangeList.add(w),this.$onAddRange(w)}return h.cursor||(h.cursor=h.end),w=this.rangeList.add(h),this.$onAddRange(h),w.length&&this.$onRemoveRange(w),1<this.rangeCount&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),f||this.fromOrientedRange(h)}},this.toSingleRange=function(h){h=h||this.ranges[0];var f=this.rangeList.removeAll();f.length&&this.$onRemoveRange(f),h&&this.fromOrientedRange(h)},this.substractPoint=function(h){if(h=this.rangeList.substractPoint(h),h)return this.$onRemoveRange(h),h[0]},this.mergeOverlappingRanges=function(){var h=this.rangeList.merge();h.length&&this.$onRemoveRange(h)},this.$onAddRange=function(h){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(h),this._signal("addRange",{range:h})},this.$onRemoveRange=function(h){var f;this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode&&(f=this.rangeList.ranges.pop(),h.push(f),this.rangeCount=0);for(var w=h.length;w--;){var E=this.ranges.indexOf(h[w]);this.ranges.splice(E,1)}this._signal("removeRange",{ranges:h}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),(f=f||this.ranges[0])&&!f.isEqual(this.getRange())&&this.fromOrientedRange(f)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new x,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var h=this.ranges.length?this.ranges:[this.getRange()],f=[],w=0;w<h.length;w++){var E=h[w],k=E.start.row,L=E.end.row;if(k===L)f.push(E.clone());else{for(f.push(new S(k,E.start.column,k,this.session.getLine(k).length));++k<L;)f.push(this.getLineRange(k,!0));f.push(new S(L,0,L,E.end.column))}w!=0||this.isBackwards()||(f=f.reverse())}for(this.toSingleRange(),w=f.length;w--;)this.addRange(f[w])},this.joinSelections=function(){var f=this.rangeList.ranges,h=f[f.length-1],f=S.fromPoints(f[0].start,h.end);this.toSingleRange(),this.setSelectionRange(f,h.cursor==h.start)},this.toggleBlockSelection=function(){var h,f;1<this.rangeCount?(f=(h=this.rangeList.ranges)[h.length-1],h=S.fromPoints(h[0].start,f.end),this.toSingleRange(),this.setSelectionRange(h,f.cursor==f.start)):(h=this.session.documentToScreenPosition(this.cursor),f=this.session.documentToScreenPosition(this.anchor),this.rectangularRangeBlock(h,f).forEach(this.addRange,this))},this.rectangularRangeBlock=function(h,f,w){var E,k,L,M,B,j,z,Q=[],D=h.column<f.column,K=(M=(D?(E=h.column,k=f.column,L=h.offsetX,f):(E=f.column,k=h.column,L=f.offsetX,h)).offsetX,h.row<f.row);j=(K?(B=h.row,f):(B=f.row,h)).row,E<0&&(E=0),(B=B<0?0:B)==j&&(w=!0);for(var H,A,W=B;W<=j;W++){var F=S.fromPoints(this.session.screenToDocumentPosition(W,E,L),this.session.screenToDocumentPosition(W,k,M));if(F.isEmpty()){if(z&&(H=F.end,A=z,H.row==A.row)&&H.column==A.column)break;z=F.end}F.cursor=D?F.start:F.end,Q.push(F)}if(K&&Q.reverse(),!w){for(var U=Q.length-1;Q[U].isEmpty()&&0<U;)U--;if(0<U)for(var Y=0;Q[Y].isEmpty();)Y++;for(var ee=U;Y<=ee;ee--)Q[ee].isEmpty()&&Q.splice(ee,1)}return Q}}).call(b.prototype),T("./editor").Editor);function _(h){var f,w;function E(k){w&&(f.renderer.setMouseCursor(""),w=!1)}h.$multiselectOnSessionChange||(h.$onAddRange=h.$onAddRange.bind(h),h.$onRemoveRange=h.$onRemoveRange.bind(h),h.$onMultiSelect=h.$onMultiSelect.bind(h),h.$onSingleSelect=h.$onSingleSelect.bind(h),h.$multiselectOnSessionChange=C.onSessionChange.bind(h),h.$checkMultiselectChange=h.$checkMultiselectChange.bind(h),h.$multiselectOnSessionChange(h),h.on("changeSession",h.$multiselectOnSessionChange),h.on("mousedown",p),h.commands.addCommands(y.defaultCommands),(f=h).textInput&&(h=f.textInput.getElement(),w=!1,g.addListener(h,"ke
1111ydown",function(k){k=k.keyCode==18&&!(k.ctrlKey||k.shiftKey||k.metaKey),f.$blockSelectEnabled&&k?w||(f.renderer.setMouseCursor("crosshair"),w=!0):w&&E()},f),g.addListener(h,"keyup",E,f),g.addListener(h,"blur",E,f)))}(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(h){h.cursor||(h.cursor=h.end);var f=this.getSelectionStyle();return h.marker=this.session.addMarker(h,"ace_selection",f),this.session.$selectionMarkers.push(h),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,h},this.removeSelectionMarker=function(h){h.marker&&(this.session.removeMarker(h.marker),(h=this.session.$selectionMarkers.indexOf(h))!=-1&&this.session.$selectionMarkers.splice(h,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length)},this.removeSelectionMarkers=function(h){for(var f=this.session.$selectionMarkers,w=h.length;w--;){var E=h[w];E.marker&&(this.session.removeMarker(E.marker),(E=f.indexOf(E))!=-1)&&f.splice(E,1)}this.session.selectionMarkerCount=f.length},this.$onAddRange=function(h){this.addSelectionMarker(h.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(h){this.removeSelectionMarkers(h.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(h){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(y.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(h){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(y.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(h){var f,w=h.command,E=h.editor;if(E.multiSelect)return w.multiSelectAction?f=w.multiSelectAction=="forEach"?E.forEachSelection(w,h.args):w.multiSelectAction=="forEachLine"?E.forEachSelection(w,h.args,!0):w.multiSelectAction=="single"?(E.exitMultiSelectMode(),w.exec(E,h.args||{})):w.multiSelectAction(E,h.args||{}):(f=w.exec(E,h.args||{}),E.multiSelect.addRange(E.multiSelect.toOrientedRange()),E.multiSelect.mergeOverlappingRanges()),f},this.forEachSelection=function(h,f,w){if(!this.inVirtualSelectionMode){var E,j=w&&w.keepOrder,k=w==1||w&&w.$byLines,L=this.session,w=this.selection,M=w.rangeList,B=(j?w:M).ranges;if(!B.length)return h.exec?h.exec(this,f||{}):h(this,f||{});var j=w._eventRegistry,z=(w._eventRegistry={},new b(L));this.inVirtualSelectionMode=!0;for(var Q=B.length;Q--;){if(k)for(;0<Q&&B[Q].start.row==B[Q-1].end.row;)Q--;z.fromOrientedRange(B[Q]),z.index=Q,this.selection=L.selection=z;var D=h.exec?h.exec(this,f||{}):h(this,f||{});E||D===void 0||(E=D),z.toOrientedRange(B[Q])}return z.detach(),this.selection=L.selection=w,this.inVirtualSelectionMode=!1,w._eventRegistry=j,w.mergeOverlappingRanges(),w.ranges[0]&&w.fromOrientedRange(w.ranges[0]),M=this.renderer.$scrollAnimation,this.onCursorChange(),this.onSelectionChange(),M&&M.from==M.to&&this.renderer.animateScrolling(M.from),E}},this.exitMultiSelectMode=function(){this.inMultiSelectMode&&!this.inVirtualSelectionMode&&this.multiSelect.toSingleRange()},this.getSelectedText=function(){var h="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var f=this.multiSelect.rangeList.ranges,w=[],E=0;E<f.length;E++)w.push(this.session.getTextRange(f[E]));var k=this.session.getDocument().getNewLineCharacter();(h=w.join(k)).length==(w.length-1)*k.length&&(h="")}else this.selection.isEmpty()||(h=this.session.getTextRange(this.getSelectionRange()));return h},this.$checkMultiselectChange=function(h,f){var w;this.inMultiSelectMode&&!this.inVirtualSelectionMode&&(w=this.multiSelect.ranges[0],this.multiSelect.isEmpty()&&f==this.multiSelect.anchor||((w=f==this.multiSelect.anchor?w.cursor==w.start?w.end:w.start:w.cursor).row!=f.row||this.session.$clipPositionToDocument(w.row,w.column).column!=f.column?this.multiSelect.toSingleRange(this.multiSelect.toOr
1111ientedRange()):this.multiSelect.mergeOverlappingRanges()))},this.findAll=function(h,f,w){(f=f||{}).needle=h||f.needle,f.needle==null&&(E=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange(),f.needle=this.session.getTextRange(E)),this.$search.set(f);var E,k=this.$search.findAll(this.session);if(!k.length)return 0;var L=this.multiSelect;w||L.toSingleRange(k[0]);for(var M=k.length;M--;)L.addRange(k[M],!0);return E&&L.rangeList.rangeAtPoint(E.start)&&L.addRange(E,!0),k.length},this.selectMoreLines=function(h,f){var w,E,k,L=this.selection.toOrientedRange(),M=L.cursor==L.end,B=this.session.documentToScreenPosition(L.cursor),j=(this.selection.$desiredColumn&&(B.column=this.selection.$desiredColumn),this.session.screenToDocumentPosition(B.row+h,B.column));h=L.isEmpty()?j:(w=this.session.documentToScreenPosition(M?L.end:L.start),this.session.screenToDocumentPosition(w.row+h,w.column)),M?(E=S.fromPoints(j,h)).cursor=E.start:(E=S.fromPoints(h,j)).cursor=E.end,E.desiredColumn=B.column,this.selection.inMultiSelectMode?f&&(k=L.cursor):this.selection.addRange(L),this.selection.addRange(E),k&&this.selection.substractPoint(k)},this.transposeSelections=function(h){for(var f,w=this.session,E=w.multiSelect,k=E.ranges,L=k.length;L--;)(B=k[L]).isEmpty()&&(f=w.getWordRange(B.start.row,B.start.column),B.start.row=f.start.row,B.start.column=f.start.column,B.end.row=f.end.row,B.end.column=f.end.column);E.mergeOverlappingRanges();for(var M=[],L=k.length;L--;){var B=k[L];M.unshift(w.getTextRange(B))}for(h<0?M.unshift(M.pop()):M.push(M.shift()),L=k.length;L--;){var j=(B=k[L]).clone();w.replace(B,M[L]),B.start.row=j.start.row,B.start.column=j.start.column}E.fromOrientedRange(E.ranges[0])},this.selectMore=function(h,f,w){var E,k=this.session,L=k.multiSelect.toOrientedRange();L.isEmpty()&&((L=k.getWordRange(L.start.row,L.start.column)).cursor=h==-1?L.start:L.end,this.multiSelect.addRange(L),w)||(w=k.getTextRange(L),k=k,w=w,E=h,m.$options.wrap=!0,m.$options.needle=w,m.$options.backwards=E==-1,(w=m.find(k))&&(w.cursor=h==-1?w.start:w.end,this.session.unfold(w),this.multiSelect.addRange(w),this.renderer.scrollCursorIntoView(null,.5)),f&&this.multiSelect.substractPoint(L.cursor))},this.alignCursors=function(){var h=this.session,f=h.multiSelect,w=f.ranges,E=-1,k=w.filter(function(H){if(H.cursor.row==E)return!0;E=H.cursor.row});if(w.length&&k.length!=w.length-1){k.forEach(function(H){f.substractPoint(H.cursor)});var L=0,M=1/0,B=w.map(function(A){var A=A.cursor,W=h.getLine(A.row).substr(A.column).search(/\S/g);return A.column>L&&(L=A.column),(W=W==-1?0:W)<M&&(M=W),W});w.forEach(function(H,U){var W=H.cursor,F=L-W.column,U=B[U]-M;U<F?h.insert(W,u.stringRepeat(" ",F-U)):h.remove(new S(W.row,W.column,W.row,W.column-F+U)),H.start.column=H.end.column=L,H.start.row=H.end.row=W.row,H.cursor=H.end}),f.fromOrientedRange(w[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}else{var k=this.selection.getRange(),j=k.start.row,z=k.end.row,w=j==z;if(w){for(var Q,D=this.session.getLength();Q=this.session.getLine(z),/[=:]/.test(Q)&&++z<D;);for(;Q=this.session.getLine(j),/[=:]/.test(Q)&&0<--j;);j<0&&(j=0),D<=z&&(z=D-1)}var K=this.session.removeFullLines(j,z),K=this.$reAlignText(K,w);this.session.insert({row:j,column:0},K.join(` 1112`)+` 1113`),w||(k.start.column=0,k.end.column=K[K.length-1].length),this.selection.setRange(k)}},this.$reAlignText=function(h,f){var w,E,k,L=!0,M=!0;return h.map(function(z){var Q=z.match(/(\s*)(.*?)(\s*)([=:].*)/);return Q?(w==null?(w=Q[1].length,E=Q[2].length,k=Q[3].length):(w+E+k!=Q[1].length+Q[2].length+Q[3].length&&(M=!1),w!=Q[1].length&&(L=!1),w>Q[1].length&&(w=Q[1].length),E<Q[2].length&&(E=Q[2].length),k>Q[3].length&&(k=Q[3].length)),Q):[z]}).map(f?j:L?M?function(z){return z[2]?B(w+E-z[2].length)+z[2]+B(k)+z[4].replace(/^([=:])\s+/,"$1 "):z[0]}:j:function(z){return z[2]?B(w)+z[2]+B(k)+z[4].replace(/^([=:])\s+/,"$1 "):z[0]});function B(z){return u.stringRepeat(" ",z)}function j(z){return z[2]?B(w)+z[2]+B(E-z[2].length+k)+z[4].replace(/^([=:])\s+/,"$1 "):z[0]}}}).call(I.prototype),C.onSessionChange=function(w){var f=w.session,w=(f&&!f.multiSelect&&(f.$selectionMarkers=[],f.selection.$initRangeList(
1113),f.multiSelect=f.selection),this.multiSelect=f&&f.multiSelect,w.oldSession);w&&(w.multiSelect.off("addRange",this.$onAddRange),w.multiSelect.off("removeRange",this.$onRemoveRange),w.multiSelect.off("multiSelect",this.$onMultiSelect),w.multiSelect.off("singleSelect",this.$onSingleSelect),w.multiSelect.lead.off("change",this.$checkMultiselectChange),w.multiSelect.anchor.off("change",this.$checkMultiselectChange)),f&&(f.multiSelect.on("addRange",this.$onAddRange),f.multiSelect.on("removeRange",this.$onRemoveRange),f.multiSelect.on("multiSelect",this.$onMultiSelect),f.multiSelect.on("singleSelect",this.$onSingleSelect),f.multiSelect.lead.on("change",this.$checkMultiselectChange),f.multiSelect.anchor.on("change",this.$checkMultiselectChange)),f&&this.inMultiSelectMode!=f.selection.inMultiSelectMode&&(f.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},C.MultiSelect=_,T("./config").defineOptions(I.prototype,"editor",{enableMultiselect:{set:function(h){_(this),h?this.on("mousedown",p):this.off("mousedown",p)},value:!0},enableBlockSelect:{set:function(h){this.$blockSelectEnabled=h},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(S,C,N){var x=S("../../range").Range,S=C.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(b,p,g){return b=b.getLine(g),this.foldingStartMarker.test(b)?"start":p=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(b)?"end":""},this.getFoldWidgetRange=function(b,p,g){return null},this.indentationBlock=function(b,p,g){var u=/\S/,y=b.getLine(p),m=y.search(u);if(m!=-1){for(var I,g=g||y.length,_=b.getLength(),y=p,h=p;++p<_;){var f=b.getLine(p).search(u);if(f!=-1){if(f<=m&&(f=b.getTokenAt(p,0),!f||f.type!=="string"))break;h=p}}return y<h?(I=b.getLine(h).length,new x(y,g,h,I)):void 0}},this.openingBracketBlock=function(b,p,g,u,y){if(g={row:g,column:u+1},u=b.$findClosingBracket(p,g,y),u)return(p=(p=b.foldWidgets[u.row])==null?b.getFoldWidget(u.row):p)=="start"&&u.row>g.row&&(u.row--,u.column=b.getLine(u.row).length),x.fromPoints(g,u)},this.closingBracketBlock=function(b,p,g,u,y){if(g={row:g,column:u},u=b.$findOpeningBracket(p,g),u)return u.column++,g.column--,x.fromPoints(u,g)}}).call(S.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/lib/dom","ace/range","ace/config"],function(T,C,N){var x=T("../lib/dom"),S=T("../range").Range,b=T("../config").nls;function p(g,u,y){var m=g.getAnnotations().sort(S.comparePoints);if(m.length){var I=((f,w,E)=>{for(var k=0,L=f.length-1;k<=L;){var M=k+L>>1,B=E(w,f[M]);if(0<B)k=1+M;else{if(!(B<0))return M;L=M-1}}return-(k+1)})(m,{row:u,column:-1},S.comparePoints),_=(m.length<=(I=I<0?-I-1:I)?I=0<y?0:m.length-1:I===0&&y<0&&(I=m.length-1),m[I]);if(_&&y){if(_.row===u){for(;(_=m[I+=y])&&_.row===u;);if(!_)return m.slice()}var h=[];for(u=_.row;h[y<0?"unshift":"push"](_),(_=m[I+=y])&&_.row==u;);return h.length&&h}}}C.showErrorMarker=function(g,k){var y,m=g.session,I=g.getCursorPosition(),E=I.row,_=m.widgetManager.getWidgetsAtRow(E).filter(function(L){return L.type=="errorMarker"})[0],E=(_?_.destroy():E-=k,p(m,E,k));if(E)k=E[0],I.column=(k.pos&&typeof k.column!="number"?k.pos.sc:k.column)||0,I.row=k.row,y=g.renderer.$gutterLayer.$annotations[I.row];else{if(_)return;y={displayText:[b("error-marker.good-state","Looks good!")],className:"ace_ok"}}g.session.unfold(I.row),g.selection.moveToPosition(I);function h(L,M,B){if(M===0&&(B==="esc"||B==="return"))return f.destroy(),{command:"null"}}var f={row:I.row,fixedWidth:!0,coverGutter:!0,el:x.createElement("div"),type:"errorMarker"},w=f.el.appendChild(x.createElement("div")),E=f.el.appendChild(x.createElement("div")),k=(E.className="error_widget_arrow "+y.className,g.renderer.$cursorLayer.getPixelPosition(I).left);E.style.left=k+g.renderer.gutterWidth-5+"px",f.el.className="error_widget_wrapper",w.className="error_widget "+y.className,y.displayText.forEach(function(L,M){w.appendChild(x.createTextNode(L)),M<y.displayText.length-1&&w.appendChild(x.createElement("br"))}),w.appendChild(x.createElement("div")),f.destroy=function(){g.$mouseHandler.isMousePressed||(g.keyBinding.removeKeyboardHandler(h),m.widgetManager.removeLineWidget(f),g.off("changeSelection",f.destroy),g.off("changeSession",f.destroy),g.off("mouseup",f.destroy),g.off("change",f.destroy))},g.keyBinding.addKeyboardHandler(h),g.on("changeSelection",f.destroy),g.on("changeSession",f.destroy),g.on("mouseup",f.destroy),g.on("change",f.destroy),g.session.widgetManager.addLineWidget(f),f.el.onmousedown=g.focus.bind(g),g.renderer.scrollCursorIntoView(null,.5,{bottom:f.el.offsetHeight})},x.importCssString(` 1114 .error_widget_wrapper { 1115 background: inherit; 1116 color: inherit; 1117 border:none 1118 } 1119 .error_widget { 1120 border-top: solid 2px; 1121 border-bottom: solid 2px; 1122 margin: 5px 0; 1123 padding: 10px 40px; 1124 white-space: pre-wrap; 1125 } 1126 .error_widget.ace_error, .error_widget_arrow.ace_error{ 1127 border-color: #ff5a5a 1128 } 1129 .error_widget.ace_warning, .error_widget_arrow.ace_warning{ 1130 border-color: #F1D817 1131 } 1132 .error_widget.ace_info, .error_widget_arrow.ace_info{ 1133 border-color: #5a5a5a 1134 } 1135 .error_widget.ace_ok, .error_widget_arrow.ace_ok{ 1136 border-color: #5aaa5a 1137 } 1138 .error_widget_arrow { 1139 position: absolute; 1140 border: solid 5px; 1141 border-top-color: transparent!important; 1142 border-right-color: transparent!important; 1143 border-left-color: transparent!important; 1144 top: -5px; 1145 } 1146`,"error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/dom","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/wor
1146ker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config","ace/loader_build"],function(y,C,N){y("./loader_build")(C);var x=y("./lib/dom"),S=y("./range").Range,b=y("./editor").Editor,p=y("./edit_session").EditSession,g=y("./undomanager").UndoManager,u=y("./virtual_renderer").VirtualRenderer,y=(y("./worker/worker_client"),y("./keyboard/hash_handler"),y("./placeholder"),y("./multi_select"),y("./mode/folding/fold_mode"),y("./theme/textmate"),y("./ext/error_marker"),C.config=y("./config"),C.edit=function(m,I){if(typeof m=="string"){var _=m;if(!(m=document.getElementById(_)))throw new Error("ace.edit can't find div #"+_)}var h,f;return m&&m.env&&m.env.editor instanceof b?m.env.editor:(_="",m&&/input|textarea/i.test(m.tagName)?(_=(h=m).value,m=x.createElement("pre"),h.parentNode.replaceChild(m,h)):m&&(_=m.textContent,m.innerHTML=""),_=C.createEditSession(_),m=new b(new u(m),_,I),f={document:_,editor:m,onResize:m.resize.bind(m,null)},h&&(f.textarea=h),m.on("destroy",function(){f.editor.container.env=null}),m.container.env=m.env=f,m)},C.createEditSession=function(m,I){return m=new p(m,I),m.setUndoManager(new g),m},C.Range=S,C.Editor=b,C.EditSession=p,C.UndoManager=g,C.VirtualRenderer=u,C.config.version);C.version=y}),ace.require(["ace/ace"],function(T){T&&(T.config.init(!0),T.define=ace.define);var C,N=(function(){return this})();for(C in(N=(N=N||typeof window>"u"?N:window)||typeof self>"u"?N:self).ace||(N.ace=T),T)T.hasOwnProperty(C)&&(N.ace[C]=T[C]);N.ace.default=N.ace,s&&(s.exports=N.ace)})},6489:function(s,o,a){s=a.nmd(s),ace.define("ace/snippets",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/range_list","ace/keyboard/hash_handler","ace/tokenizer","ace/clipboard","ace/editor"],function(c,l,d){var v=c("./lib/dom"),_=c("./lib/oop"),R=c("./lib/event_emitter").EventEmitter,O=c("./lib/lang"),$=c("./range").Range,P=c("./range_list").RangeList,T=c("./keyboard/hash_handler").HashHandler,C=c("./tokenizer").Tokenizer,N=c("./clipboard"),x={CURRENT_WORD:function(h){return h.session.getTextRange(h.session.getWordRange())},SELECTION:function(h,f,w){return h=h.session.getTextRange(),w?h.replace(/\n\r?([ \t]*\S)/g,` 1147`+w+"$1"):h},CURRENT_LINE:function(h){return h.session.getLine(h.getCursorPosition().row)},PREV_LINE:function(h){return h.session.getLine(h.getCursorPosition().row-1)},LINE_INDEX:function(h){return h.getCursorPosition().row},LINE_NUMBER:function(h){return h.getCursorPosition().row+1},SOFT_TABS:function(h){return h.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(h){return h.session.getTabSize()},CLIPBOARD:function(h){return N.getText&&N.getText()},FILENAME:function(h){return/[^/\\]*$/.exec(this.FILEPATH(h))[0]},FILENAME_BASE:function(h){return/[^/\\]*$/.exec(this.FILEPATH(h))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(h){return this.FILEPATH(h).replace(/[^/\\]*$/,"")},FILEPATH:function(h){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(h){return h=h.session.$mode||{},h.blockComment&&h.blockComment.start||""},BLOCK_COMMENT_END:function(h){return h=h.session.$mode||{},h.blockComment&&h.blockComment.end||""},LINE_COMMENT:function(h){return(h.session.$mode||{}).lineCommentStart||""},CURRENT_YEAR:S.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:S.bind(null,{year:"2-digit"}),CURRENT_MONTH:S.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:S.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:S.bind(null,{month:"short"}),CURRENT_DATE:S.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:S.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:S.bind(null,{weekday:"short"}),CURRENT_HOUR:S.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:S.bind(null,{minute:"2-digit"}),CURRENT_SECOND:S.bind(null,{second:"2-digit"})};function S(h){return h=new Date().toLocaleString("en-us",h),h.length==1?"0"+h:h}x.SELECTED_TEXT=x.SELECTION,p.prototype.getTokenizer=function(){return p.$tokenizer||this.createTokenizer()},p.prototype.createTokenizer=function(){function h(E){return E=E.substr(1),/^\d+$/.test(E)?[{tabstopId:parseInt(E,10)}]:[{text:E}]}function f(E){return"(?:[^\\\\"+E+"]|\\\\.)"}var w={regex:"/("+f("/")+"+)/",onMatch:function(E,k,L){return L=L[0],L.fmtString=!0,L.guard=E.slice(1,-1),L.flag=""},next:"formatString"};return p.$tokenizer=new C({start:[{regex:/\\./,onMatch:function(E,k,L){var M=E[1];return[E=M=="}"&&L.length||"`$\\".indexOf(M)!=-1?M:E]}},{regex:/}/,onMatch:function(E,k,L){return[L.length?L.shift():E]}},{regex:/\$(?:\d+|\w+)/,onMatch:h},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(E,k,L){return E=h(E.substr(1)),L.unshift(E[0]),E},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+f("\\|")+"*\\|",onMatch:function(E,k,L){return E=E.slice(1,-1).replace(/\\[,|\\]|,/g,function(M){return M.length==2?M[1]:"\0"}).split("\0").map(function(M){return{value:M}}),[(L[0].choices=E)[0]]},next:"start"},w,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(E,k,L){return L.length&&L[0].expectElse?(L[0].expectElse=!1,L[0].ifEnd={elseEnd:L[0]},[L[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(E,k,L){var M=E[1];return M=="}"&&L.length||"`$\\".indexOf(M)!=-1?E=M:M=="n"?E=`
1148`:M=="t"?E=" ":"ulULE".indexOf(M)!=-1&&(E={changeCase:M,local:"a"<M}),[E]}},{regex:"/\\w*}",onMatch:function(E,k,L){return L=L.shift(),L&&(L.flag=E.slice(1,-1)),this.next=L&&L.tabstopId?"start":"",[L||E]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(E,k,L){return[{text:E.slice(1)}]}},{regex:/\${\w+/,onMatch:function(E,k,L){return E={text:E.slice(2)},L.unshift(E),[E]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(E,k,L){return L=L.shift(),this.next=L&&L.tabstopId?"start":"",[L||E]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(E,k,L){return L[0].formatFunction=E.slice(2,-1),[L.shift()]},next:"formatString"},w,{regex:/:[\?\-+]?/,onMatch:function(E,k,L){E[1]=="+"&&(L[0].ifEnd=L[0]),E[1]=="?"&&(L[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]})},p.prototype.tokenizeTmSnippet=function(h,f){return this.getTokenizer().getLineTokens(h,f).tokens.map(function(w){return w.value||w})},p.prototype.getVariableValue=function(h,f,w){var E;return/^\d+$/.test(f)?(this.variables.__||{})[f]||"":/^[A-Z]\d+$/.test(f)?(this.variables[f[0]+"__"]||{})[f.substr(1)]||"":(f=f.replace(/^TM_/,""),!this.variables.hasOwnProperty(f)||(E=typeof(E=this.variables[f])=="function"?this.variables[f](h,f,w):E)==null?"":E)},p.prototype.tmStrFormat=function(h,f,w){var E,k,L;return f.fmt?(E=f.guard,E=new RegExp(E,(f.flag||"").replace(/[^gim]/g,"")),k=typeof f.fmt=="string"?this.tokenizeTmSnippet(f.fmt,"formatString"):f.fmt,L=this,h.replace(E,function(){for(var M=L.variables.__,B=(L.variables.__=[].slice.call(arguments),L.resolveVariables(k,w)),j="E",z=0;z<B.length;z++){var Q,D=B[z];typeof D=="object"?(B[z]="",D.changeCase&&D.local?(Q=B[z+1])&&typeof Q=="string"&&(D.changeCase=="u"?B[z]=Q[0].toUpperCase():B[z]=Q[0].toLowerCase(),B[z+1]=Q.substr(1)):D.changeCase&&(j=D.changeCase)):j=="U"?B[z]=D.toUpperCase():j=="L"&&(B[z]=D.toLowerCase())}return L.variables.__=M,B.join("")})):h},p.prototype.tmFormatFunction=function(h,f,w){return f.formatFunction=="upcase"?h.toUpperCase():f.formatFunction=="downcase"?h.toLowerCase():h},p.prototype.resolveVariables=function(h,f){for(var w=[],E="",k=!0,L=0;L<h.length;L++){var M,B=h[L];typeof B=="string"?(w.push(B),B==` 1149`?(k=!0,E=""):k&&(E=/^\t*/.exec(B)[0],k=/\S/.test(B))):B&&(k=!1,B.fmtString&&((M=h.indexOf(B,L+1))==-1&&(M=h.length),B.fmt=h.slice(L+1,M),L=M),B.text?(M=this.getVariableValue(f,B.text,E)+"",B.fmtString&&(M=this.tmStrFormat(M,B,f)),(M=B.formatFunction?this.tmFormatFunction(M,B,f):M)&&!B.ifEnd?(w.push(M),j(B)):!M&&B.ifEnd&&j(B.ifEnd)):B.elseEnd?j(B.elseEnd):B.tabstopId==null&&B.changeCase==null||w.push(B))}function j(z){z=h.indexOf(z,L+1),z!=-1&&(L=z)}return w},p.prototype.getDisplayTextForSnippet=function(h,f){return g.call(this,h,f).text},p.prototype.insertSnippetForSelection=function(B,E,k){var E=g.call(this,B,E,k=k===void 0?{}:k),k=B.getSelectionRange(),L=B.session.replace(k,E.text),M=new u(B),B=B.inVirtualSelectionMode&&B.selection.index;M.addTabstops(E.tabstops,k.start,L,B)},p.prototype.insertSnippet=function(h,f,w){w===void 0&&(w={});var E=this;if(h.inVirtualSelectionMode)return E.insertSnippetForSelection(h,f,w);h.forEachSelection(function(){E.insertSnippetForSelection(h,f,w)},null,{keepOrder:!0}),h.tabstopManager&&h.tabstopManager.tabNext()},p.prototype.$getScope=function(h){var f,w=h.session.$mode.$id||"";return(w=w.split("/").pop())!=="html"&&w!=="php"||(w!=="php"||h.session.$mode.inlinePhp||(w="html"),f=h.getCursorPosition(),(h=typeof(h=h.session.getState(f.row))=="object"?h[0]:h).substring&&(h.substring(0,3)=="js-"?w="javascript":h.substring(0,4)=="css-"?w="css":h.substring(0,4)=="php-"&&(w="php"))),w},p.prototype.getActiveScopes=function(f){var f=this.$getScope(f),w=[f],E=this.snippetMap;return E[f]&&E[f].includeScopes&&w.push.apply(w,E[f].includeScopes),w.push("_"),w},p.prototype.expandWithTab=function(h,f){var w=this,E=h.forEachSelection(function(){return w.expandSnippetForSelection(h,f)},null,{keepOrder:!0});return E&&h.tabstopManager&&h.tabstopManager.tabNext(),E},p.prototype.expandSnippetForSelection=function(h,f){var w,E=h.getCursorPosition(),k=h.session.getLine(E.row),L=k.substring(0,E.c
1149olumn),M=k.substr(E.column),B=this.snippetMap;return this.getActiveScopes(h).some(function(j){return j=B[j],!!(w=j?this.findMatchingSnippet(j,L,M):w)},this),!!w&&(f&&f.dryRun||(h.session.doc.removeInLine(E.row,E.column-w.replaceBefore.length,E.column+w.replaceAfter.length),this.variables.M__=w.matchBefore,this.variables.T__=w.matchAfter,this.insertSnippetForSelection(h,w.content),this.variables.M__=this.variables.T__=null),!0)},p.prototype.findMatchingSnippet=function(h,f,w){for(var E=h.length;E--;){var k=h[E];if((!k.startRe||k.startRe.test(f))&&(!k.endRe||k.endRe.test(w))&&(k.startRe||k.endRe))return k.matchBefore=k.startRe?k.startRe.exec(f):[""],k.matchAfter=k.endRe?k.endRe.exec(w):[""],k.replaceBefore=k.triggerRe?k.triggerRe.exec(f)[0]:"",k.replaceAfter=k.endTriggerRe?k.endTriggerRe.exec(w)[0]:"",k}},p.prototype.register=function(h,f){var w=this.snippetMap,E=this.snippetNameMap,k=this;function L(j){return(j=j&&!/^\^?\(.*\)\$?$|^\\b$/.test(j)?"(?:"+j+")":j)||""}function M(j,z,Q){return j=L(j),z=L(z),(j=z+j)&&j[j.length-1]!="$"&&(j+="$"),new RegExp(j)}function B(j){j.scope||(j.scope=f||"_"),w[f=j.scope]||(w[f]=[],E[f]={});var z,Q=E[f];j.name&&((z=Q[j.name])&&k.unregister(z),Q[j.name]=j),w[f].push(j),j.prefix&&(j.tabTrigger=j.prefix),!j.content&&j.body&&(j.content=Array.isArray(j.body)?j.body.join(` 1150`):j.body),j.tabTrigger&&!j.trigger&&(!j.guard&&/^\w/.test(j.tabTrigger)&&(j.guard="\\b"),j.trigger=O.escapeRegExp(j.tabTrigger)),(j.trigger||j.guard||j.endTrigger||j.endGuard)&&(j.startRe=M(j.trigger,j.guard),j.triggerRe=new RegExp(j.trigger),j.endRe=M(j.endTrigger,j.endGuard),j.endTriggerRe=new RegExp(j.endTrigger))}h=h||[],Array.isArray(h)?h.forEach(B):Object.keys(h).forEach(function(j){B(h[j])}),this._signal("registerSnippets",{scope:f})},p.prototype.unregister=function(h,f){var w=this.snippetMap,E=this.snippetNameMap;function k(L){var M=E[L.scope||f];M&&M[L.name]&&(delete M[L.name],0<=(L=(M=w[L.scope||f])&&M.indexOf(L)))&&M.splice(L,1)}h.content?k(h):Array.isArray(h)&&h.forEach(k)},p.prototype.parseSnippetFile=function(h){h=h.replace(/\r/g,"");for(var f,w,E,k=[],L={},M=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm;w=M.exec(h);){if(w[1])try{L=JSON.parse(w[1]),k.push(L)}catch{}w[4]?(L.content=w[4].replace(/^\t/gm,""),k.push(L),L={}):(f=w[2],w=w[3],f=="regex"?(L.guard=(E=/\/((?:[^\/\\]|\\.)*)|$/g).exec(w)[1],L.trigger=E.exec(w)[1],L.endTrigger=E.exec(w)[1],L.endGuard=E.exec(w)[1]):f=="snippet"?(L.tabTrigger=w.match(/^\S*/)[0],L.name||(L.name=w)):f&&(L[f]=w))}return k},p.prototype.getSnippetByName=function(h,f){var w,E=this.snippetNameMap;return this.getActiveScopes(f).some(function(k){return k=E[k],!!(w=k?k[h]:w)},this),w};var b=p;function p(){this.snippetMap={},this.snippetNameMap={},this.variables=x}_.implement(b.prototype,R);var g=function(h,f,w){w===void 0&&(w={});for(var E=h.getCursorPosition(),k=h.session.getLine(E.row),L=h.session.getTabString(),M=k.match(/^\s*/)[0],B=(E.column<M.length&&(M=M.slice(0,E.column)),f=f.replace(/\r/g,""),this.tokenizeTmSnippet(f)),j=(B=(B=this.resolveVariables(B,h)).map(function(Y){return Y!=` 1151`||w.excludeExtraIndent?typeof Y=="string"?Y.replace(/\t/g,L):Y:Y+M}),[]),z=(B.forEach(function(Y,ee){var X,q,ne;typeof Y=="object"&&(ne=Y.tabstopId,(X=j[ne])||((X=j[ne]=[]).index=ne,X.value="",X.parents={}),X.indexOf(Y)===-1)&&(Y.choices&&!X.choices&&(X.choices=Y.choices),X.push(Y),(q=B.indexOf(Y,ee+1))!==-1)&&((ne=B.slice(ee+1,q)).some(function(se){return typeof se=="object"})&&!X.value?X.value=ne:!ne.length||X.value&&typeof X.value=="string"||(X.value=ne.join("")))}),j.forEach(function(Y){Y.length=0}),{}),Q=0;Q<B.length;Q++){var D,K,H,A=B[Q];typeof A=="object"&&(H=A.tabstopId,D=j[H],K=B.indexOf(A,Q+1),z[H]?z[H]===A&&(delete z[H],Object.keys(z).forEach(function(Y){D.parents[Y]=!0})):(z[H]=A,typeof(H=D.value)!="string"?H=(Y=>{for(var ee=[],X=0;X<Y.length;X++){if(typeof(q=Y[X])=="object"){if(z[q.tabstopId])continue;var q=ee[Y.lastIndexOf(q,X-1)]||{tabstopId:q.tabstopId}}ee[X]=q}return ee})(H):A.fmt&&(H=this.tmStrFormat(H,A,h)),B.splice.apply(B,[Q+1,Math.max(0,K-Q)].concat(H,A)),D.indexOf(A)===-1&&D.push(A)))}var W=0,F=0,U="";return B.forEach(function(Y){var ee;typeof Y=="string"?(1<(ee=Y.split(` 1152`)).length?(F=ee[ee.length-1].length,W+=ee.length-1):F+=Y.length,U+=Y):Y&&(Y.start?Y.end={row:W,column:F}:Y.start={row:W,column:F})}),{text:U,tabstops:j,tokens:B}},u=(y.prototype.attach=function(h){this.$openTabstops=null,this.selectedTabstop=null,this.editor=h,this.session=h.session,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},y.prototype.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges.length=0,this.tabstops.length=0,this.selectedTabstop=null,this.editor.off("change",this.$onChange),this.editor.off("changeSelection",this.$onChangeSelection),this.editor.off("changeSession",this.$onChangeSession),this.editor.commands.off("after
1152Exec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.session=null,this.editor=null},y.prototype.onChange=function(h){for(var f=h.action[0]=="r",w=this.selectedTabstop||{},E=w.parents||{},k=this.tabstops.slice(),L=0;L<k.length;L++){var M=k[L],B=M==w||E[M.index];if(M.rangeList.$bias=B?0:1,h.action=="remove"&&M!==w)for(var B=M.parents&&M.parents[w.index],j=(j=M.rangeList.pointIndex(h.start,B))<0?-j-1:j+1,B=M.rangeList.pointIndex(h.end,B),z=M.rangeList.ranges.slice(j,B<0?-B-1:B-1),Q=0;Q<z.length;Q++)this.removeRange(z[Q]);M.rangeList.$onChange(h)}var D=this.session;this.$inChange||!f||D.getLength()!=1||D.getValue()||this.detach()},y.prototype.updateLinkedFields=function(){var h=this.selectedTabstop;if(h&&h.hasLinkedRanges&&h.firstNonLinked){this.$inChange=!0;for(var f=this.session,w=f.getTextRange(h.firstNonLinked),E=0;E<h.length;E++){var k,L=h[E];L.linked&&(k=l.snippetManager.tmStrFormat(w,L.original,this.editor),f.replace(L,k))}this.$inChange=!1}},y.prototype.onAfterExec=function(h){h.command&&!h.command.readOnly&&this.updateLinkedFields()},y.prototype.onChangeSelection=function(){if(this.editor){for(var h=this.editor.selection.lead,f=this.editor.selection.anchor,w=this.editor.selection.isEmpty(),E=0;E<this.ranges.length;E++)if(!this.ranges[E].linked){var k=this.ranges[E].contains(h.row,h.column),L=w||this.ranges[E].contains(f.row,f.column);if(k&&L)return}this.detach()}},y.prototype.onChangeSession=function(){this.detach()},y.prototype.tabNext=function(w){var f=this.tabstops.length,w=this.index+(w||1),w=Math.min(Math.max(w,1),f);this.selectTabstop(w=w==f?0:w),this.updateTabstopMarkers(),w===0&&this.detach()},y.prototype.selectTabstop=function(h){this.$openTabstops=null;var f=this.tabstops[this.index];if(f&&this.addTabstopMarkers(f),this.index=h,(f=this.tabstops[this.index])&&f.length){if(h=(this.selectedTabstop=f).firstNonLinked||f,f.choices&&(h.cursor=h.start),this.editor.inVirtualSelectionMode)this.editor.selection.fromOrientedRange(h);else{var w=this.editor.multiSelect;w.toSingleRange(h);for(var E=0;E<f.length;E++)f.hasLinkedRanges&&f[E].linked||w.addRange(f[E].clone(),!0)}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler),this.selectedTabstop&&this.selectedTabstop.choices&&this.editor.execCommand("startAutocomplete",{matches:this.selectedTabstop.choices})}},y.prototype.addTabstops=function(h,f,w){var E=this.useLink||!this.editor.getOption("enableMultiselect");this.$openTabstops||(this.$openTabstops=[]),h[0]||(w=$.fromPoints(w,w),I(w.start,f),I(w.end,f),h[0]=[w],h[0].index=0);var k=[this.index+1,0],L=this.ranges,M=this.snippetId=(this.snippetId||0)+1;h.forEach(function(B,j){var z=this.$openTabstops[j]||B;z.snippetId=M;for(var Q=0;Q<B.length;Q++){var D=B[Q],K=$.fromPoints(D.start,D.end||D.start);m(K.start,f),m(K.end,f),K.original=D,K.tabstop=z,L.push(K),z!=B?z.unshift(K):z[Q]=K,D.fmtString||z.firstNonLinked&&E?(K.linked=!0,z.hasLinkedRanges=!0):z.firstNonLinked||(z.firstNonLinked=K)}z.firstNonLinked||(z.hasLinkedRanges=!1),z===B&&(k.push(z),this.$openTabstops[j]=z),this.addTabstopMarkers(z),z.rangeList=z.rangeList||new P,z.rangeList.$bias=0,z.rangeList.addList(z)},this),2<k.length&&(this.tabstops.length&&k.push(k.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,k))},y.prototype.addTabstopMarkers=function(h){var f=this.session;h.forEach(function(w){w.markerId||(w.markerId=f.addMarker(w,"ace_snippet-marker","text"))})},y.prototype.removeTabstopMarkers=function(h){var f=this.session;h.forEach(function(w){f.removeMarker(w.markerId),w.markerId=null})},y.prototype.updateTabstopMarkers=function(){var h;this.selectedTabstop&&(h=this.selectedTabstop.snippetId,this.selectedTabstop.index===0&&h--,this.tabstops.forEach(function(f){f.snippetId===h?this.addTabstopMarkers(f):this.removeTabstopMarkers(f)},this))},y.prototype.removeRange=function(h){var f=h.tabstop.indexOf(h);f!=-1&&h.tabstop.splice(f,1),(f=this.ranges.indexOf(h))!=-1&&this.ranges.splice(f,1),(f=h.tabstop.rangeList.ranges.indexOf(h))!=-1&&h.tabstop.splice(f,1),this.session.removeMarker(h.markerId),h.tabstop.length||((f=this.tabstops.indexOf(h.tabstop))!=-1&&this.tabstops.splice(f,1),this.tabstops.length)||this.detach()},y);function y(h){if(this.index=0,this.ranges=[],this.tabstops=[],h.tabstopManager)return h.tabstopManager;(h.tabstopManager=this).$onChange=this.onChange.bind(this),this.$onChangeSelection=O.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(h)}u.prototype.keyboardHandler=new T,u.prototype.keyboardHandler.bindKeys({Tab:function(h){l.snippetManager&&l.snippetManager.expandWithTab(h)||
1152(h.tabstopManager.tabNext(1),h.renderer.scrollCursorIntoView())},"Shift-Tab":function(h){h.tabstopManager.tabNext(-1),h.renderer.scrollCursorIntoView()},Esc:function(h){h.tabstopManager.detach()}});var m=function(h,f){h.row==0&&(h.column+=f.column),h.row+=f.row},I=function(h,f){h.row==f.row&&(h.column-=f.column),h.row-=f.row},_=(v.importCssString(` 1153.ace_snippet-marker { 1154 -moz-box-sizing: border-box; 1155 box-sizing: border-box; 1156 background: rgba(194, 193, 208, 0.09); 1157 border: 1px dotted rgba(211, 208, 235, 0.62); 1158 position: absolute; 1159}`,"snippets.css",!1),l.snippetManager=new b,c("./editor").Editor);(function(){this.insertSnippet=function(h,f){return l.snippetManager.insertSnippet(this,h,f)},this.expandSnippet=function(h){return l.snippetManager.expandWithTab(this,h)}}).call(_.prototype)}),ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom","ace/config","ace/lib/useragent"],function(b,l,d){function v(y){return"suggest-aria-id:".concat(y)}function R(y){return(y=new $(y)).$maxLines=4,(y=new P(y)).setHighlightActiveLine(!1),y.setShowPrintMargin(!1),y.renderer.setShowGutter(!1),y.renderer.setHighlightGutterLine(!1),y.$mouseHandler.$focusTimeout=0,y.$highlightTagPending=!0,y}function O(y){function m(){}function I(){k(-1)}var _,h=x.createElement("div"),f=R(h),w=(y&&y.appendChild(h),h.style.display="none",f.renderer.content.style.cursor="default",f.renderer.setStyle("ace_autocomplete"),f.renderer.$textLayer.element.setAttribute("role",p),f.renderer.$textLayer.element.setAttribute("aria-roledescription",S("autocomplete.popup.aria-roledescription","Autocomplete suggestions")),f.renderer.$textLayer.element.setAttribute("aria-label",S("autocomplete.popup.aria-label","Autocomplete suggestions")),f.renderer.textarea.setAttribute("aria-hidden","true"),f.setOption("displayIndentGuides",!1),f.setOption("dragDelay",150),f.focu
1159s=m,f.$isFocused=!0,f.renderer.$cursorLayer.restartTimer=m,f.renderer.$cursorLayer.element.style.opacity="0",f.renderer.$maxLines=8,f.renderer.$keepTextAreaAtCursor=!1,f.setHighlightActiveLine(!1),f.session.highlight(""),f.session.$searchHighlight.clazz="ace_highlight-marker",f.on("mousedown",function(L){var M=L.getDocumentPosition();f.selection.moveToPosition(M),E.start.row=E.end.row=M.row,L.stop()}),new T(-1,0,-1,1/0)),E=new T(-1,0,-1,1/0),k=(E.id=f.session.addMarker(E,"ace_active-line","fullLine"),f.setSelectOnHover=function(L){L?w.id&&(f.session.removeMarker(w.id),w.id=null):w.id=f.session.addMarker(w,"ace_line-hover","fullLine")},f.setSelectOnHover(!1),f.on("mousemove",function(L){var M;_?_.x==L.x&&_.y==L.y||((_=L).scrollTop=f.renderer.scrollTop,f.isMouseOver=!0,M=_.getDocumentPosition().row,w.start.row!=M&&(w.id||f.setRow(M),k(M))):_=L}),f.renderer.on("beforeRender",function(){var L;_&&w.start.row!=-1&&(_.$pos=null,L=_.getDocumentPosition().row,w.id||f.setRow(L),k(L,!0))}),f.renderer.on("afterRender",function(){for(var L=f.renderer.$textLayer,M=L.config.firstRow,B=L.config.lastRow;M<=B;M++){var j=L.element.childNodes[M-L.config.firstRow],z=(j.setAttribute("role",g),j.setAttribute("aria-roledescription",S("autocomplete.popup.item.aria-roledescription","item")),j.setAttribute("aria-setsize",f.data.length),j.setAttribute("aria-describedby","doc-tooltip"),j.setAttribute("aria-posinset",M+1),f.getData(M));z&&(z="".concat(z.caption||z.value).concat(z.meta?", ".concat(z.meta):""),j.setAttribute("aria-label",z)),j.querySelectorAll(".ace_completion-highlight").forEach(function(Q){Q.setAttribute("role","mark")})}}),f.renderer.on("afterRender",function(){var L=f.getRow(),M=f.renderer.$textLayer,B=M.element.childNodes[L-M.config.firstRow],j=document.activeElement;B!==f.selectedNode&&f.selectedNode&&(x.removeCssClass(f.selectedNode,"ace_selected"),f.selectedNode.removeAttribute(u),f.selectedNode.removeAttribute("id")),j.removeAttribute("aria-activedescendant"),(f.selectedNode=B)&&(L=v(L),x.addCssClass(B,"ace_selected"),B.id=L,M.element.setAttribute("aria-activedescendant",L),j.setAttribute("aria-activedescendant",L),B.setAttribute(u,"true"))}),function(L,M){L!==w.start.row&&(w.start.row=w.end.row=L,M||f.session._emit("changeBackMarker"),f._emit("changeHoverMarker"))});return f.getHoveredRow=function(){return w.start.row},C.addListener(f.container,"mouseout",function(){f.isMouseOver=!1,I()}),f.on("hide",I),f.on("changeSelection",I),f.session.doc.getLength=function(){return f.data.length},f.session.doc.getLine=function(L){return L=f.data[L],typeof L=="string"?L:L&&L.value||""},(y=f.session.bgTokenizer).$tokenizeRow=function(L){var M=f.data[L],B=[];if(M){for(var j,z,Q=(M=typeof M=="string"?{value:M}:M).caption||M.value||M.name,D=Q.toLowerCase(),K=(f.filterText||"").toLowerCase(),H=0,A=0,W=0;W<=K.length;W++)W!=A&&(M.matchMask&1<<W||W==K.length)&&(j=K.slice(A,W),A=W,(z=D.indexOf(j,H))!=-1)&&(F(Q.slice(H,z),""),H=z+j.length,F(Q.slice(z,H),"completion-highlight"));F(Q.slice(H,Q.length),""),B.push({type:"completion-spacer",value:" "}),M.meta&&B.push({type:"completion-meta",value:M.meta}),M.message&&B.push({type:"completion-message",value:M.message})}return B;function F(U,Y){U&&B.push({type:(M.className||"")+(Y||""),value:U})}},y.$updateOnChange=m,y.start=m,f.session.$computeWidth=function(){return this.screenWidth=0},f.isOpen=!1,f.isTopdown=!1,f.autoSelect=!0,f.filterText="",f.isMouseOver=!1,f.data=[],f.setData=function(L,M){f.filterText=M||"",f.setValue(N.stringRepeat(` 1160`,L.length),-1),f.data=L||[],f.setRow(0)},f.getData=function(L){return f.data[L]},f.getRow=function(){return E.start.row},f.setRow=function(L){L=Math.max(this.autoSelect?0:-1,Math.min(this.data.length-1,L)),E.start.row!=L&&(f.selection.clearSelection(),E.start.row=E.end.row=L||0,f.session._emit("changeBackMarker"),f.moveCursorTo(L||0,0),f.isOpen)&&f._signal("select")},f.on("changeSelection",function(){f.isOpen&&f.setRow(f.selection.lead.row),f.renderer.scrollCursorIntoView()}),f.hide=function(){this.container.style.display="none",f.anchorPos=null,f.anchor=null,f.isOpen&&(f.isOpen=!1,this._signal("hide"))}
1160,f.tryShow=function(L,M,B,j){if(j||!f.isOpen||!f.anchorPos||!f.anchor||f.anchorPos.top!==L.top||f.anchorPos.left!==L.left||f.anchor!==B){var z=this.container,Q=this.renderer.scrollBar.width||10,D=window.innerHeight-Q,K=window.innerWidth-Q,H=this.renderer,A=H.$maxLines*M*1.4,W={top:0,bottom:0,left:0},F=D-L.top-3*this.$borderSize-M,U=L.top-3*this.$borderSize,M=((B=B||(U<=F||A<=F?"bottom":"top"))==="top"?(W.bottom=L.top-this.$borderSize,W.top=W.bottom-A):B==="bottom"&&(W.top=L.top+M+this.$borderSize,W.bottom=W.top+A),0<=W.top&&W.bottom<=D);if(!j&&!M)return!1;H.$maxPixelHeight=M?null:B==="top"?U:F,B==="top"?(z.style.top="",z.style.bottom=D+Q-W.bottom+"px",f.isTopdown=!1):(z.style.top=W.top+"px",z.style.bottom="",f.isTopdown=!0),z.style.display="",A=L.left,K<A+z.offsetWidth&&(A=K-z.offsetWidth),z.style.left=A+"px",z.style.right="",x.$fixPositionBug(z),f.isOpen||(f.isOpen=!0,this._signal("show"),_=null),f.anchorPos=L,f.anchor=B}return!0},f.show=function(L,M,B){this.tryShow(L,M,B?"bottom":void 0,!0)},f.goTo=function(L){var M=this.getRow(),B=this.session.getLength()-1;switch(L){case"up":M=M<=0?B:M-1;break;case"down":M=B<=M?-1:M+1;break;case"start":M=0;break;case"end":M=B}this.setRow(M)},f.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},f.$imageSize=0,f.$borderSize=1,f}var $=b("../virtual_renderer").VirtualRenderer,P=b("../editor").Editor,T=b("../range").Range,C=b("../lib/event"),N=b("../lib/lang"),x=b("../lib/dom"),S=b("../config").nls,b=b("./../lib/useragent"),p=b.isSafari?"menu":"listbox",g=b.isSafari?"menuitem":"option",u=b.isSafari?"aria-current":"aria-selected";x.importCssString(` 1161.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line { 1162 background-color: #CAD6FA; 1163 z-index: 1; 1164} 1165.ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line { 1166 background-color: #3a674e; 1167} 1168.ace_editor.ace_autocomplete .ace_line-hover { 1169 border: 1px solid #abbffe; 1170 margin-top: -1px; 1171 background: rgba(233,233,253,0.4); 1172 position: absolute; 1173 z-index: 2; 1174} 1175.ace_dark.ace_editor.ace_autocomplete .ace_line-hover { 1176 border: 1px solid rgba(109, 150, 13, 0.8); 1177 background: rgba(58, 103, 78, 0.62); 1178} 1179.ace_completion-meta { 1180 opacity: 0.5; 1181 margin-left: 0.9em; 1182} 1183.ace_completion-message { 1184 margin-left: 0.9em; 1185 color: blue; 1186} 1187.ace_editor.ace_autocomplete .ace_completion-highlight{ 1188 color: #2d69c7; 1189} 1190.ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{ 1191 color: #93ca12; 1192} 1193.ace_editor.ace_autocomplete { 1194 width: 300px; 1195 z-index: 200000; 1196 border: 1px lightgray solid; 1197 position: fixed; 1198 box-shadow: 2px 3px 5px rgba(0,0,0,.2); 1199 line-height: 1.4; 1200 background: #fefefe; 1201 color: #111; 1202} 1203.ace_dark.ace_editor.ace_autocomplete { 1204 border: 1px #484747 solid; 1205 box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51); 1206 line-height: 1.4; 1207 background: #25282c; 1208 color: #c1c1c1; 1209} 1210.ace_autocomplete .ace_text-layer { 1211 width: calc(100% - 8px); 1212} 1213.ace_autocomplete .ace_line { 1214 display: flex; 1215 align-items: center; 1216} 1217.ace_autocomplete .ace_line > * { 1218 min-width: 0; 1219 flex: 0 0 auto; 1220} 1221.ace_autocomplete .ace_line .ace_ { 1222 flex: 0 1 auto; 1223 overflow: hidden; 1224 text-overflow: ellipsis; 1225} 1226.ace_autocomplete .ace_completion-spacer { 1227 flex: 1; 1228} 1229.ace_autocomplete.ace_loading:after { 1230 content: ""; 1231 position: absolute; 1232 top: 0px; 1233 height: 2px; 1234 width: 8%; 1235 background: blue; 1236 z-index: 100; 1237 animation: ace_progress 3s infinite linear; 1238 animation-delay: 300ms; 1239 transform: translateX(-100%) scaleX(1); 1240} 1241@keyframes ace_progress { 1242 0% { transform: translateX(-100%) scaleX(1) } 1243 50% { transform: translateX(625%) scaleX(2) } 1244 100% { transform: translateX(1500%) scaleX(3) } 1245} 1246@media (prefers-reduced-motion) { 1247 .ace_autocomplete.ace_loading:after { 1248 transform: translateX(625%) scaleX(2); 1249 animation: none; 1250 } 1251} 1252`,"autocompletion.css",!1),l.AcePopup=O,l.$singleLineEditor=R,l.getAriaId=v}),ace.define("ace/autocomplete/inline_screenreader",["require","exports","module"],function(c,l,d){function v(R){this.editor=R,this.screenReaderDiv=document.createElement("div"),this.screenReaderDiv.classList.add("ace_screenreader-only"),this.editor.container.appendChild(this.screenReaderDiv)}v.prototype.setScreenReaderContent=function(R){for(!this.popup&&this.editor.completer&&this.editor.completer.popup&&(this.popup=this.editor.completer.popup,this.popup.renderer.on("afterRender",(function(){var $=this.popup.getRow(),O=this.popup.renderer.$textLayer,$=O.element.childNodes[$-O.config.firstRow];if($){for(var P="doc-tooltip ",T=0;T<this._lines.length;T++)P+="ace-inline-screenreader-line-".concat(T," ");$.setAttribute("aria-describedby",P)}}).bind(this)));this.screenReaderDiv.firstChild;)this.screenReaderDiv.removeChild(this.screenReaderDiv.firstChild);this._lines=R.split(/\r\n|\r|\n/),R=this.createCodeBlock(),this.screenReaderDiv.appendChild(R)},v.prototype.destroy=function(){this.screenReaderDiv.remove()},v.prototype.createCodeBlock=function(){var R=document.createElement("pre");R.setAttribute("id","ace-inline-screenreader");for(var O=0;O<this._lines.length;O++){var $=document.createElement("code"),P=($.setAttribute("id","ace-inline-screenreader-line-".concat(O)),document.createTextNode(this._lines[O]));$.appendChild(P),R.appendChild($)}return R},l.AceInlineScreenReader=v}),ace.define("ace/autocomplete/inline",["require","exports","module","ace/snippets","ace/autocomplete/inline_screenreader"],function(c,l,d){var v=c("../snippets").snippetManager,R=c("./inline_screenreader").AceInlineScreenReader;function O(){this.editor=null}O.prototype.show=function($,P,T){if(T=T||"",$&&this.editor&&this.editor!==$&&(this.hide(),this.editor=null,this.inlineScreenReader=null),!$||!P)return!1;
1252this.inlineScreenReader||(this.inlineScreenReader=new R($));var C=P.snippet?v.getDisplayTextForSnippet($,P.snippet):P.value;return!(P.hideInlinePreview||!C||!C.startsWith(T)||(this.editor=$,this.inlineScreenReader.setScreenReaderContent(C),(C=C.slice(T.length))===""?$.removeGhostText():$.setGhostText(C),0))},O.prototype.isOpen=function(){return!!this.editor&&!!this.editor.renderer.$ghostText},O.prototype.hide=function(){return!!this.editor&&(this.editor.removeGhostText(),!0)},O.prototype.destroy=function(){this.hide(),this.editor=null,this.inlineScreenReader&&(this.inlineScreenReader.destroy(),this.inlineScreenReader=null)},l.AceInline=O}),ace.define("ace/autocomplete/util",["require","exports","module"],function(c,l,d){l.parForEach=function(R,O,$){var P=0,T=R.length;T===0&&$();for(var C=0;C<T;C++)O(R[C],function(N,x){++P===T&&$(N,x)})};var v=/[a-zA-Z_0-9\$\-\u00A2-\u2000\u2070-\uFFFF]/;l.retrievePrecedingIdentifier=function(R,O,$){$=$||v;for(var P=[],T=O-1;0<=T&&$.test(R[T]);T--)P.push(R[T]);return P.reverse().join("")},l.retrieveFollowingIdentifier=function(R,O,$){$=$||v;for(var P=[],T=O;T<R.length&&$.test(R[T]);T++)P.push(R[T]);return P},l.getCompletionPrefix=function(R){var O,$=R.getCursorPosition(),P=R.session.getLine($.row);return R.completers.forEach((function(T){T.identifierRegexps&&T.identifierRegexps.forEach((function(C){!O&&C&&(O=this.retrievePrecedingIdentifier(P,$.column,C))}).bind(this))}).bind(this)),O||this.retrievePrecedingIdentifier(P,$.column)},l.triggerAutocomplete=function(R,O){return O=O??R.session.getPrecedingCharacter(),R.completers.some(function($){if($.triggerCharacters&&Array.isArray($.triggerCharacters))return $.triggerCharacters.includes(O)})}}),ace.define("ace/autocomplete",["require","exports","module","ace/keyboard/hash_handler","ace/autocomplete/popup","ace/autocomplete/inline","ace/autocomplete/popup","ace/autocomplete/util","ace/lib/lang","ace/lib/dom","ace/snippets","ace/config","ace/lib/event","ace/lib/scroll"],function(c,l,d){function v(h,f){f.completer&&f.completer.destroy()}var R=c("./keyboard/hash_handler").HashHandler,O=c("./autocomplete/popup").AcePopup,$=c("./autocomplete/inline").AceInline,P=c("./autocomplete/popup").getAriaId,T=c("./autocomplete/util"),C=c("./lib/lang"),N=c("./lib/dom"),x=c("./snippets").snippetManager,S=c("./config"),b=c("./lib/event"),p=c("./lib/scroll").preventParentScroll,g=(Object.defineProperty(u,"completionsForLoading",{get:function(){return[{caption:S.nls("autocomplete.loading","Loading..."),value:""}]},enumerable:!1,configurable:!0}),u.prototype.$init=function(){return this.popup=new O(this.parentNode||document.body||document.documentElement),this.popup.on("click",(function(h){this.insertMatch(),h.stop()}).bind(this)),this.popup.focus=this.editor.focus.bind(this.editor),this.popup.on("show",this.$onPopupShow.bind(this)),this.popup.on("hide",this.$onHidePopup.bind(this)),this.popup.on("select",this.$onPopupChange.bind(this)),b.addListener(this.popup.container,"mouseout",this.mouseOutListener.bind(this)),this.popup.on("changeHoverMarker",this.tooltipTimer.bind(null,null)),this.popup.renderer.on("afterRender",this.$onPopupRender.bind(this)),this.popup},u.prototype.$initInline=function(){if(this.inlineEnabled&&!this.inlineRenderer)return this.inlineRenderer=new $,this.inlineRenderer},u.prototype.getPopup=function(){return this.popup||this.$init()},u.prototype.$onHidePopup=function(){this.inlineRenderer&&this.inlineRenderer.hide(),this.hideDocTooltip(),this.stickySelectionTimer.cancel(),this.popupTimer.cancel(),this.stickySelection=!1},u.prototype.$seen=function(h){!this.hasSeen.has(h)&&h&&h.completer&&h.completer.onSeen&&typeof h.completer.onSeen=="function"&&(h.completer.onSeen(this.editor,h),this.hasSeen.add(h))},u.prototype.$onPopupChange=function(h){this.inlineRenderer&&this.inlineEnabled?(h=h?null:this.popup.getData(this.popup.getRow()),this.$updateGhostText(h),this.popup.isMouseOver&&this.setSelectOnHover?this.tooltipTimer.call(null,null):(this.popupTimer.schedule(),this.tooltipTimer.schedule())):(this.popupTimer.call(null,null),this.tooltipTimer.call(null,null))},u.prototype.$updateGhostText=function(h){var E=this.base.row,f=this.base.column,w=this.editor.getCursorPosition().column,E=this.editor.session.getLine(E).slice(f,w);this.inlineRenderer.show(this.editor,h,E)?this.$seen(h):this.inl
1252ineRenderer.hide()},u.prototype.$onPopupRender=function(){var h=this.inlineRenderer&&this.inlineEnabled;if(this.completions&&this.completions.filtered&&0<this.completions.filtered.length)for(var f=this.popup.getFirstVisibleRow();f<=this.popup.getLastVisibleRow();f++){var w=this.popup.getData(f);!w||h&&!w.hideInlinePreview||this.$seen(w)}},u.prototype.$onPopupShow=function(h){this.$onPopupChange(h),this.stickySelection=!1,0<=this.stickySelectionDelay&&this.stickySelectionTimer.schedule(this.stickySelectionDelay)},u.prototype.observeLayoutChanges=function(){if(!this.$elements&&this.editor){window.addEventListener("resize",this.onLayoutChange,{passive:!0}),window.addEventListener("wheel",this.mousewheelListener);for(var h=this.editor.container.parentNode,f=[];h;)f.push(h),h.addEventListener("scroll",this.onLayoutChange,{passive:!0}),h=h.parentNode;this.$elements=f}},u.prototype.unObserveLayoutChanges=function(){var h=this;window.removeEventListener("resize",this.onLayoutChange,{passive:!0}),window.removeEventListener("wheel",this.mousewheelListener),this.$elements&&this.$elements.forEach(function(f){f.removeEventListener("scroll",h.onLayoutChange,{passive:!0})}),this.$elements=null},u.prototype.onLayoutChange=function(){if(!this.popup.isOpen)return this.unObserveLayoutChanges();this.$updatePopupPosition(),this.updateDocTooltip()},u.prototype.$updatePopupPosition=function(){var h=this.editor,k=h.renderer,f=k.layerConfig.lineHeight,w=k.$cursorLayer.getPixelPosition(this.base,!0),E=(w.left-=this.popup.getTextLeftOffset(),h.container.getBoundingClientRect()),E=(w.top+=E.top-k.layerConfig.offset,w.left+=E.left-h.renderer.scrollLeft,w.left+=k.gutterWidth,{top:w.top,left:w.left}),k=(k.$ghostText&&k.$ghostTextWidget&&this.base.row===k.$ghostText.position.row&&(E.top+=k.$ghostTextWidget.el.offsetHeight),h.container.getBoundingClientRect().bottom-f);this.popup.tryShow(k<E.top?{top:k,left:E.left}:E,f,"bottom")||this.popup.tryShow(w,f,"top")||this.popup.show(w,f)},u.prototype.openPopup=function(h,f,w){this.$firstOpenTimer.cancel(),this.popup||this.$init(),this.inlineEnabled&&!this.inlineRenderer&&this.$initInline(),this.popup.autoSelect=this.autoSelect,this.popup.setSelectOnHover(this.setSelectOnHover);var E,k=this.popup.getRow(),L=this.popup.data[k],L=(this.popup.setData(this.completions.filtered,this.completions.filterText),this.editor.textInput.setAriaOptions&&this.editor.textInput.setAriaOptions({activeDescendant:P(this.popup.getRow()),inline:this.inlineEnabled}),h.keyBinding.addKeyboardHandler(this.keyboardHandler),(E=this.stickySelection?this.popup.data.indexOf(L):E)&&E!==-1||(E=0),this.popup.setRow(this.autoSelect?E:-1),E===k&&L!==this.completions.filtered[E]&&this.$onPopupChange(),this.inlineRenderer&&this.inlineEnabled);E===k&&L&&(E=this.popup.getData(this.popup.getRow()),this.$updateGhostText(E)),w||(this.popup.setTheme(h.getTheme()),this.popup.setFontSize(h.getFontSize()),this.$updatePopupPosition(),this.tooltipNode&&this.updateDocTooltip()),this.changeTimer.cancel(),this.observeLayoutChanges()},u.prototype.detach=function(){this.editor&&(this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.off("changeSelection",this.changeListener),this.editor.off("blur",this.blurListener),this.editor.off("mousedown",this.mousedownListener),this.editor.off("mousewheel",this.mousewheelListener)),this.$firstOpenTimer.cancel(),this.changeTimer.cancel(),this.hideDocTooltip(),this.completionProvider&&this.completionProvider.detach(),this.popup&&this.popup.isOpen&&this.popup.hide(),this.popup&&this.popup.renderer&&this.popup.renderer.off("afterRender",this.$onPopupRender),this.base&&this.base.detach(),this.activated=!1,this.completionProvider=this.completions=this.base=null,this.unObserveLayoutChanges()},u.prototype.changeListener=function(h){var f=this.editor.selection.lead;(f.row!=this.base.row||f.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},u.prototype.blurListener=function(h){var f=document.activeElement,w=this.editor.textInput.getElement(),E=h.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(h.relatedTarget),k=this.popup&&this.popup.container;f==w||f.parentNode==k||E||f==this.tooltipNode||h.relatedTarget==w||this.detach()},u.prototype.mousedownListener=function(h){this.detach()},u.prototype.mousewheelListener=function(h){this.popup&&!this.popup.isMouseOver&&this.detach()},u.prototype.mouseOutListener=function(h){this.popup.isOpen&&this.$updatePopupPosition()},u.prototype.goTo=function(h){this.popup.goTo(h)},u.prototype.insertMatch=function(h,f){var w;return!!(h=h||this.popup.getData(this.popup.getRow()))&&(h.value===""?this.detach():(w=this.completions,h=this.getCompletionProvider().insertMatch(this.editor,h,w.filterText,f),this.completions==w&&this.detach(),h))},u.prototype.showPopup=function(h,f){this.editor&&this.detach(),this.activated=!0,(this.editor=h).completer!=this&&(h.completer&&h.completer.detach(),h.completer=this),h.on("changeSelection",this.changeListener),h.on("blur",this.blurListener),h.on("mousedown",this.mousedownListener),h.on("mousewheel",this.mousewheelListener),this.updateCompletions(!1,f)},u.prototype.getCompletionProvider=function(h){return this.completionProvider||(this.completionProvider=new y(h)),this.completionProvider},u.prototype.gatherCompletions=function(h,f){return this.getCompletionProvider().gatherCompletions(h,f)},u.prototype.updateCompletions=function(h,f){var w,E;return h&&this.base&&this.completions?(w=this.editor.getCursorPosition(),(E=this.editor.session.getTextRange({start:this.base,end:w}))==this.completions.filterText?void 0:(this.completions.setFilter(E),this.completions.filtered.length&&(this.completions.filtered.length!=1||this.completions.filtered[0].value!=E||this.completions.filtered[0].snippet)?void this.openPopup(this.editor,E,h):this.detach())):f&&f.matches?(w=this.editor.getSelectionRange().start,this.base=this.editor.session.doc.createAnchor(w.row,w.column),this.base.$insertRight=!0,this.completions=new I(f.matches),this.getCompletionProvider().completions=this.completions,this.openPopup(this.editor,"",h)):(f=this.editor.getSession(),w=this.editor.getCursorPosition(),E=T.getCompletionPrefix(this.editor),this.base=f.doc.createAnchor(w.row,w.column-E.length),this.base.$insertRight=!0,f={exactMatch:this.exactMatch,ignoreCaption:this.ignoreCaption},this.getCompletionProvider({prefix:E,pos:w}).provideCompletions(this.editor,f,(function(k,L,M){var B,j=L.filtered,z=T.getCompletionPrefix(this.editor);if(this.$firstOpenTimer.cancel(),M){if(!j.length)return(B=typeof(B=!this.autoShown&&this.emptyMessage)=="function"?this.emptyMessage(z):B)?(this.completions=new I([{caption:B,value:""}]),this.openPopup(this.editor,z,h),this.popup.renderer.setStyle("ace_loading",!1),void this.popup.renderer.setStyle("ace_empty-message",!0)):this.detach();if(j.length==1&&j[0].value==z&&!j[0].snippet)return this.detach();if(this.autoInsert&&!this.autoShown&&j.length==1)return this.insertMatch(j[0])}this.completions=!M&&this.showLoadingState?new I(u.completionsForLoading.concat(j),L.filterText):L,this.openPopup(this.editor,z,h),this.popup.renderer.setStyle("ace_empty-message",!1),this.popup.renderer.setStyle("ace_loading",!M)}).bind(this)),void(!this.showLoadingState||this.autoShown||this.popup&&this.popup.isOpen||this.$firstOpenTimer.delay(this.stickySelectionDelay/2)))},u.prototype.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},u.prototype.updateDocTooltip=function(){var h=this.popup,f=this.completions&&this.completions.filtered,w=f&&(f[h.getHoveredRow()]||f[h.getRow()]),E=null;if(!w||!this.editor||!this.popup.isOpen)return this.hideDocTooltip();for(var k=this.editor.completers.length,L=0;L<k;L++){var M=this.editor.completers[L];if(M.getDocTooltip&&w.completerId===M.id){E=M.getDocTooltip(w);break}}if(!(E=typeof(E=E||typeof w=="string"?E:w)=="string"?{docText:E}:E)||!E.docHTML&&!E.docText)return this.hideDocTooltip();this.showDocTooltip(E)},u.prototype.showDocTooltip=function(w){this.tooltipNode||(this.tooltipNode=N.createElement("div"),this.tooltipNode.style.margin="0",this.tooltipNode.style.pointerEvents="auto",this.tooltipNode.style.overscrollBehavior="contain",this.tooltipNode.tabIndex=-1,this.tooltipNode.onblur=this.blurListener.bind(this),this.tooltipNode.onclick=this.onTooltipClick.bind(this),this.tooltipNode.id="doc-tooltip",this.tooltipNode.setAttribute("role","tooltip"),this.tooltipNode.addEventListener("wheel",p));var f=this.editor.renderer.theme,f=(this.tooltipNode.className="ace_tooltip ace_doc-tooltip "+(f.isDark?"ace_dark ":"")+(f.cssClass||""),this.tooltipNode),w=(w.docHTML?f.innerHTML=w.docHTML:w.docText&&(f.textContent=w.docText),f.parentNode||this.popup.container.appendChild(this.tooltipNode),this.popup),E=w.container.getBoundingClientRect(),k=w.renderer.scrollBar.width||10,M=E.left,L=window.innerWidth-E.right-k,B=w.isTopdown?window.innerHeight-k-E.bottom:E.top,L=[Math.min(L/400,1),Math.min(M/400,1),.9*Math.min(B/300,1)],M=Math.max.apply(Math,L),B=f.style;
1252B.display="block",M==L[0]||1<=L[0]?(B.left=E.right+1+"px",B.right="",B.maxWidth=400*M+"px",B.top=E.top+"px",B.bottom="",B.maxHeight=Math.min(window.innerHeight-k-E.top,300)+"px"):M==L[1]||1<=L[1]?(B.right=window.innerWidth-E.left+"px",B.left="",B.maxWidth=400*M+"px",B.top=E.top+"px",B.bottom="",B.maxHeight=Math.min(window.innerHeight-k-E.top,300)+"px"):M==L[2]&&(B.left=E.left+"px",B.right="",B.maxWidth=Math.min(400,window.innerWidth-E.left)+"px",w.isTopdown?(B.top=E.bottom+"px",B.bottom="",B.maxHeight=Math.min(window.innerHeight-k-E.bottom,300)+"px"):(B.top="",B.bottom=window.innerHeight-E.top+"px",B.maxHeight=Math.min(E.top,300)+"px")),N.$fixPositionBug(f)},u.prototype.hideDocTooltip=function(){var h;this.tooltipTimer.cancel(),this.tooltipNode&&(h=this.tooltipNode,this.editor.isFocused()||document.activeElement!=h||this.editor.focus(),this.tooltipNode=null,h.parentNode)&&h.parentNode.removeChild(h)},u.prototype.onTooltipClick=function(h){for(var f=h.target;f&&f!=this.tooltipNode;){if(f.nodeName=="A"&&f.href){f.rel="noreferrer",f.target="_blank";break}f=f.parentNode}},u.prototype.destroy=function(){var h;this.detach(),this.popup&&(this.popup.destroy(),h=this.popup.container)&&h.parentNode&&h.parentNode.removeChild(h),this.editor&&this.editor.completer==this&&(this.editor.off("destroy",v),this.editor.completer=null),this.inlineRenderer=this.popup=this.editor=null},u.for=function(h){return h.completer instanceof u||(h.completer&&(h.completer.destroy(),h.completer=null),S.get("sharedPopups")?(u.$sharedInstance||(u.$sharedInstance=new u),h.completer=u.$sharedInstance):(h.completer=new u,h.once("destroy",v))),h.completer},u);function u(){this.autoInsert=!1,this.autoSelect=!0,this.autoShown=!1,this.exactMatch=!1,this.inlineEnabled=!1,this.keyboardHandler=new R,this.keyboardHandler.bindKeys(this.commands),this.parentNode=null,this.setSelectOnHover=!1,this.hasSeen=new Set,this.showLoadingState=!1,this.stickySelectionDelay=500,this.blurListener=this.blurListener.bind(this),this.changeListener=this.changeListener.bind(this),this.mousedownListener=this.mousedownListener.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this),this.onLayoutChange=this.onLayoutChange.bind(this),this.changeTimer=C.delayedCall((function(){this.updateCompletions(!0)}).bind(this)),this.tooltipTimer=C.delayedCall(this.updateDocTooltip.bind(this),50),this.popupTimer=C.delayedCall(this.$updatePopupPosition.bind(this),50),this.stickySelectionTimer=C.delayedCall((function(){this.stickySelection=!0}).bind(this),this.stickySelectionDelay),this.$firstOpenTimer=C.delayedCall((function(){var h=this.completionProvider&&this.completionProvider.initialPosition;this.autoShown||this.popup&&this.popup.isOpen||!h||this.editor.completers.length===0||(this.completions=new I(u.completionsForLoading),this.openPopup(this.editor,h.prefix,!1),this.popup.renderer.setStyle("ace_loading",!0))}).bind(this),this.stickySelectionDelay)}g.prototype.commands={Up:function(h){h.completer.goTo("up")},Down:function(h){h.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(h){h.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(h){h.completer.goTo("end")},Esc:function(h){h.completer.detach()},Return:function(h){return h.completer.insertMatch()},"Shift-Return":function(h){h.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(h){var f=h.completer.insertMatch();if(f||h.tabstopManager)return f;h.completer.goTo("down")},Backspace:function(h){h.execCommand("backspace"),!T.getCompletionPrefix(h)&&h.completer&&h.completer.detach()},PageUp:function(h){h.completer.popup.gotoPageUp()},PageDown:function(h){h.completer.popup.gotoPageDown()}},g.startCommand={name:"startAutocomplete",exec:function(h,f){var w=g.for(h);w.autoInsert=!1,w.autoSelect=!0,w.autoShown=!1,w.showPopup(h,f),w.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"},m.prototype.insertByIndex=function(h,f,w){return!(!this.completions||!this.completions.filtered)&&this.insertMatch(h,this.completions.filtered[f],w)},m.prototype.insertMatch=function(h,f,w){if(!f)return!1;if(h.startOperation({command:{name:"insertMatch"}}),f.completer&&f.completer.insertMatch)f.completer.insertMatch(h,f);else{if(!this.completions)return!1;var E=this.completions.filterText.length,k=0;if(f.range&&f.range.start.row===f.range.end.row&&(E=(E-=this.initialPosition.prefix.length)+(this.initialPosition.pos.column-f.range.start.column),k+=f.range.end.column-this.initialPosition.pos.column),E||k)for(var L,M=h.selection.getAllRanges?h.selection.getAllRanges():[h.getSelectionRange()],B=0;L=M[B];B++)L.start.column-=E,L.end.column+=k,h.session.remove(L);f.snippet?x.insertSnippet(h,f.snippet):this.$insertString(h,f),f.completer&&f.completer.onInsert&&typeof f.completer.onInsert=="function"&&f.completer.onInsert(h,f),f.command&&f.command==="startAutocomplete"&&h.execCommand(f.command)}return h.endOperation(),!0},m.prototype.$insertString=function(h,f){f=f.value||f,h.execCommand("insertstring",f)},m.prototype.gatherCompletions=function(h,f){var w=h.getSession(),E=h.getCursorPosition(),k=T.getCompletionPrefix(h),L=[],M=(this.completers=h.completers,h.completers.length);
1252return h.completers.forEach(function(B,j){B.getCompletions(h,w,E,k,function(z,Q){B.hideInlinePreview&&(Q=Q.map(function(D){return Object.assign(D,{hideInlinePreview:B.hideInlinePreview})})),!z&&Q&&(L=L.concat(Q)),f(null,{prefix:T.getCompletionPrefix(h),matches:L,finished:--M==0})})}),!0},m.prototype.provideCompletions=function(h,f,w){var E=(function(M){var B=M.prefix;this.completions=new I(M.matches),f.exactMatch&&(this.completions.exactMatch=!0),f.ignoreCaption&&(this.completions.ignoreCaption=!0),this.completions.setFilter(B),(M.finished||this.completions.filtered.length)&&w(null,this.completions,M.finished)}).bind(this),k=!0,L=null;this.gatherCompletions(h,(function(M,B){this.active&&(M&&(w(M,[],!0),this.detach()),B.prefix.indexOf(B.prefix)===0)&&(k?L=B:E(B))}).bind(this)),k=!1,L&&(h=L,L=null,E(h))},m.prototype.detach=function(){this.active=!1,this.completers&&this.completers.forEach(function(h){typeof h.cancel=="function"&&h.cancel()})};var y=m;function m(h){this.initialPosition=h,this.active=!0}_.prototype.setFilter=function(h){f=h.length>this.filterText&&h.lastIndexOf(this.filterText,0)===0?this.filtered:this.all,this.filterText=h,f=(f=this.filterCompletions(f,this.filterText)).sort(function(E,k){return k.exactMatch-E.exactMatch||k.$score-E.$score||(E.caption||E.value).localeCompare(k.caption||k.value)});var f,w=null;f=f.filter(function(E){return E=E.snippet||E.caption||E.value,E!==w&&(w=E,!0)}),this.filtered=f},_.prototype.filterCompletions=function(h,f){var w=[],E=f.toUpperCase(),k=f.toLowerCase();e:for(var L,M=0;L=h[M];M++)if(L.skipFilter)L.$score=L.score,w.push(L);else{var B=!this.ignoreCaption&&L.caption||L.value||L.snippet;if(B){var j=-1,z=0,Q=0;if(this.exactMatch){if(f!==B.substr(0,f.length))continue}else{var D=B.toLowerCase().indexOf(k);if(-1<D)Q=D;else for(var K=0;K<f.length;K++){var H=B.indexOf(k[K],j+1),A=B.indexOf(E[K],j+1);if((H=0<=H&&(A<0||H<A)?H:A)<0)continue e;0<(A=H-j-1)&&(j===-1&&(Q+=10),Q+=A,z|=1<<K),j=H}}L.matchMask=z,L.exactMatch=Q?0:1,L.$score=(L.score||0)-Q,w.push(L)}}return w};var I=_;function _(h,f){this.all=h,this.filtered=h,this.filterText=f||"",this.exactMatch=!1,this.ignoreCaption=!1}l.Autocomplete=g,l.CompletionProvider=y,l.FilteredList=I}),ace.define("ace/marker_group",["require","exports","module"],function(c,l,d){R.prototype.getMarkerAtPosition=function(O){return this.markers.find(function($){return $.range.contains(O.row,O.column)})},R.prototype.markersComparator=function(O,$){return O.range.start.row-$.range.start.row},R.prototype.setMarkers=function(O){this.markers=O.sort(this.markersComparator).slice(0,this.MAX_MARKERS),this.session._signal("changeBackMarker")},R.prototype.update=function(O,$,P,T){if(this.markers&&this.markers.length)for(var C,N=T.firstRow,x=T.lastRow,S=0,b=0,p=0;p<this.markers.length;p++){var g,u,y=this.markers[p];y.range.end.row<N||y.range.start.row>x||(y.range.start.row===b?S++:(b=y.range.start.row,S=0),200<S)||(g=y.range.clipRows(N,x)).start.row===g.end.row&&g.start.column===g.end.column||((u=g.toScreenRange(P)).isEmpty()?(C=P.getNextFoldLine(g.end.row,C))&&C.end.row>g.end.row&&(N=C.end.row):this.markerType==="fullLine"?$.drawFullLineMarker(O,u,y.className,T):u.isMultiLine()?this.markerType==="line"?$.drawMultiLineMarker(O,u,y.className,T):$.drawTextMarker(O,u,y.className,T):$.drawSingleLineMarker(O,u,y.className+" ace_br15",T))}};var v=R;function R(O,$){$&&(this.markerType=$.markerType),this.markers=[],(this.session=O).addDynamicMarker(this)}v.prototype.MAX_MARKERS=1e4,l.MarkerGroup=v}),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],function(c,l,d){var v=c("../range").Range,R=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;function O($,P){var T=$.getTextRange(v.fromPoints({row:0,column:0},P)).split(R).length-1,C=$.getValue().split(R),N=Object.create(null),x=C[T];
1252return C.forEach(function(S,b){S&&S!==x&&(b=Math.abs(T-b),b=C.length-b,N[S]?N[S]=Math.max(b,N[S]):N[S]=b)}),N}l.id="textCompleter",l.getCompletions=function($,P,T,C,N){var x=O(P,T);N(null,Object.keys(x).map(function(S){return{caption:S,value:S,score:x[S],meta:"local"}}))}}),ace.define("ace/ext/language_tools",["require","exports","module","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/marker_group","ace/autocomplete/text_completer","ace/editor","ace/config"],function(c,l,d){function v(h,f){u(f.session.$mode)}function R(h){var f=h.editor,w=f.completer&&f.completer.activated;h.command.name==="backspace"?w&&!N.getCompletionPrefix(f)&&f.completer.detach():h.command.name!=="insertstring"||w||((f=(O=h).editor.$liveAutocompletionDelay)?m.delay(f):I(h))}var O,$=c("../snippets").snippetManager,P=c("../autocomplete").Autocomplete,T=c("../config"),C=c("../lib/lang"),N=c("../autocomplete/util"),x=c("../marker_group").MarkerGroup,_=c("../autocomplete/text_completer"),S={getCompletions:function(h,f,w,E,k){if(f.$mode.completer)return f.$mode.completer.getCompletions(h,f,w,E,k);h=h.session.getState(w.row),k(null,f.$mode.getCompletions(h,f,w,E).map(function(L){return L.completerId=S.id,L}))},id:"keywordCompleter"},b={getCompletions:function(h,M,w,E,k){var L=[],M=M.getTokenAt(w.row,w.column),B=(M&&M.type.match(/(tag-name|tag-open|tag-whitespace|attribute-name|attribute-value)\.xml$/)?L.push("html-tag"):L=$.getActiveScopes(h),$.snippetMap),j=[];L.forEach(function(z){for(var Q=B[z]||[],D=Q.length;D--;){var K=Q[D],H=K.name||K.tabTrigger;H&&j.push({caption:H,snippet:K.content,meta:K.tabTrigger&&!K.name?K.tabTrigger+"⥠":"snippet",completerId:b.id})}},this),k(null,j)},getDocTooltip:function(h){var f;h.snippet&&!h.docHTML&&(h.docHTML=["<b>",C.escapeHTML(h.caption),"</b>","<hr></hr>",C.escapeHTML((h=h.snippet,f={},h.replace(/\${(\d+)(:(.*?))?}/g,function(w,E,k,L){return f[E]=L||""}).replace(/\$(\d+?)/g,function(w,E){return f[E]})))].join(""))},id:"snippetCompleter"},p=[b,_,S],g=(l.setCompleters=function(h){p.length=0,h&&p.push.apply(p,h)},l.addCompleter=function(h){p.push(h)},l.textCompleter=_,l.keyWordCompleter=S,l.snippetCompleter=b,{name:"expandSnippet",exec:function(h){return $.expandWithTab(h)},bindKey:"Tab"}),u=function(h){(h=typeof h=="string"?T.$modes[h]:h)&&($.files||($.files={}),y(h.$id,h.snippetFileId),h.modes)&&h.modes.forEach(u)},y=function(h,f){f&&h&&!$.files[h]&&($.files[h]={},T.loadModule(f,function(w){w&&(!($.files[h]=w).snippets&&w.snippetText&&(w.snippets=$.parseSnippetFile(w.snippetText)),$.register(w.snippets||[],w.scope),w.includeScopes)&&($.snippetMap[w.scope].includeScopes=w.includeScopes,w.includeScopes.forEach(function(E){u("ace/mode/"+E)}))}))},m=C.delayedCall(function(){I(O)},0),I=function(E){var f=E.editor,w=N.getCompletionPrefix(f),E=E.args,E=N.triggerAutocomplete(f,E);(w&&w.length>=f.$liveAutocompletionThreshold||E)&&((w=P.for(f)).autoShown=!0,w.showPopup(f))},_=c("../editor").Editor;c("../config").defineOptions(_.prototype,"editor",{enableBasicAutocompletion:{set:function(h){h?(P.for(this),this.completers||(this.completers=Array.isArray(h)?h:p),this.commands.addCommand(P.startCommand)):this.commands.removeCommand(P.startCommand)},value:!1},enableLiveAutocompletion:{set:function(h){h?(this.completers||(this.completers=Array.isArray(h)?h:p),this.commands.on("afterExec",R)):this.commands.off("afterExec",R)},value:!1},liveAutocompletionDelay:{initialValue:0},liveAutocompletionThreshold:{initialValue:0},enableSnippets:{set:function(h){h?(this.commands.addCommand(g),this.on("changeMode",v),v(0,this)):(this.commands.removeCommand(g),this.off("changeMode",v))},value:!1}}),l.MarkerGroup=x}),ace.require(["ace/ext/language_tools"],function(c){s&&(s.exports=c)})},6534:function(s,o,a){s=a.nmd(s),ace.define("ace/ext/searchbox-css",["require","exports","module"],function(c,l,d){d.exports=` 1253 1254/* ------------------------------------------------------------------------------------------ 1255 * Editor Search Form 1256 * --------------------------------------------------------------------------------------- */ 1257.ace_search { 1258 background-color: #ddd; 1259 color: #666; 1260 border: 1px solid #cbcbcb; 1261 border-top: 0 none; 1262 overflow: hidden; 1263 margin: 0; 1264 padding: 4px 6px 0 4px; 1265 position: absolute; 1266 top: 0; 1267 z-index: 99; 1268 white-space: normal; 1269} 1270.ace_search.left { 1271 border-left: 0 none; 1272 border-radius: 0px 0px 5px 0px; 1273 left: 0; 1274} 1275.ace_search.right { 1276 border-radius: 0px 0px 0px 5px; 1277 border-right: 0 none; 1278 right: 0; 1279} 1280 1281.ace_search_form, .ace_replace_form { 1282 margin: 0 20px 4px 0; 1283 overflow: hidden; 1284 line-height: 1.9; 1285} 1286.ace_replace_form { 1287 margin-right: 0; 1288} 1289.ace_search_form.ace_nomatch { 1290 outline: 1px solid red; 1291} 1292 1293.ace_search_field { 1294 border-radius: 3px 0 0 3px; 1295 background-color: white; 1296 color: black; 1297 border: 1px solid #cbcbcb; 1298 border-right: 0 none; 1299 outline: 0; 1300 padding: 0; 1301 font-size: inherit; 1302 margin: 0; 1303 line-height: inherit; 1304 padding: 0 6px; 1305 min-width: 17em; 1306 vertical-align: top; 1307 min-height: 1.8em; 1308 box-sizing: content-box; 1309} 1310.ace_searchbtn { 1311 border: 1px solid #cbcbcb; 1312 line-height: inherit; 1313 display: inline-block; 1314 padding: 0 6px; 1315 background: #fff; 1316 border-right: 0 none; 1317 border-left: 1px solid #dcdcdc; 1318 cursor: pointer; 1319 margin: 0; 1320 position: relative; 1321 color: #666; 1322} 1323.ace_searchbtn:last-child { 1324 border-radius: 0 3px 3px 0; 1325 border-right: 1px solid #cbcbcb; 1326} 1327.ace_searchbtn:disabled { 1328 background: none; 1329 cursor: default; 1330} 1331.ace_searchbtn:hover { 1332 background-color: #eef1f6; 1333} 1334.ace_searchbtn.prev, .ace_searchbtn.next { 1335 padding: 0px 0.7em 1336} 1337.ace_searchbtn.prev:after, .ace_searchbtn.next:after { 1338 content: ""; 1339 border: solid 2px #888; 1340 width: 0.5em; 1341 height: 0.5em; 1342 border-width: 2px 0 0 2px; 1343 display:inline-block; 1344 transform: rotate(-45deg); 1345} 1346.ace_searchbtn.next:after { 1347 border-width: 0 2px 2px 0 ; 1348} 1349.ace_searchbtn_close { 1350 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0; 1351 border-radius: 50%; 1352 border: 0 none; 1353 color: #656565; 1354 cursor: pointer; 1355 font: 16px/16px Arial;
1356 padding: 0; 1357 height: 14px; 1358 width: 14px; 1359 top: 9px; 1360 right: 7px; 1361 position: absolute; 1362} 1363.ace_searchbtn_close:hover { 1364 background-color: #656565; 1365 background-position: 50% 100%; 1366 color: white; 1367} 1368 1369.ace_button { 1370 margin-left: 2px; 1371 cursor: pointer; 1372 -webkit-user-select: none; 1373 -moz-user-select: none; 1374 -o-user-select: none; 1375 -ms-user-select: none; 1376 user-select: none; 1377 overflow: hidden; 1378 opacity: 0.7; 1379 border: 1px solid rgba(100,100,100,0.23); 1380 padding: 1px; 1381 box-sizing: border-box!important; 1382 color: black; 1383} 1384 1385.ace_button:hover { 1386 background-color: #eee; 1387 opacity:1; 1388} 1389.ace_button:active { 1390 background-color: #ddd; 1391} 1392 1393.ace_button.checked { 1394 border-color: #3399ff; 1395 opacity:1; 1396} 1397 1398.ace_search_options{ 1399 margin-bottom: 3px; 1400 text-align: right; 1401 -webkit-user-select: none; 1402 -moz-user-select: none; 1403 -o-user-select: none; 1404 -ms-user-select: none; 1405 user-select: none; 1406 clear: both; 1407} 1408 1409.ace_search_counter { 1410 float: left; 1411 font-family: arial; 1412 padding: 0 8px; 1413}`}),ace.define("ace/ext/searchbox",["require","exports","module","ace/ext/searchbox","ace/ext/searchbox","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/ext/searchbox-css","ace/keyboard/hash_handler","ace/lib/keys","ace/config"],function(c,l,d){var v=c("../lib/dom"),R=c("../lib/lang"),O=c("../lib/event"),$=c("./searchbox-css"),P=c("../keyboard/hash_handler").HashHandler,T=c("../lib/keys"),C=c("../config").nls,N=(v.importCssString($,"ace_searchbox",!1),x.prototype.setEditor=function(S){S.searchBox=this,S.renderer.scroller.appendChild(this.element),this.editor=S},x.prototype.setSession=function(S){this.searchRange=null,this.$syncOptions(!0)},x.prototype.onEditorInput=function(){this.find(!1,!1,!0)},x.prototype.$initElements=function(S){this.searchBox=S.querySelector(".ace_search_form"),this.replaceBox=S.querySelector(".ace_replace_form"),this.searchOption=S.querySelector("[action=searchInSelection]"),this.replaceOption=S.querySelector("[action=toggleReplace]"),this.regExpOption=S.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=S.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=S.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field"),this.searchCounter=S.querySelector(".ace_search_counter")},x.prototype.$init=function(){var S=this.element,b=(this.$initElements(S),this);O.addListener(S,"mousedown",function(p){setTimeout(function(){b.activeInput.focus()},0),O.stopPropagation(p)}),O.addListener(S,"click",function(p){var g=(p.target||p.srcElement).getAttribute("action");g&&b[g]?b[g]():b.$searchBarKb.commands[g]&&b.$searchBarKb.commands[g].exec(b),O.stopPropagation(p)}),O.addCommandKeyListener(S,function(p,g,u){u=T.keyCodeToString(u),g=b.$searchBarKb.findKeyCommand(g,u),g&&g.exec&&(g.exec(b),O.stopEvent(p))}),this.$onChange=R.delayedCall(function(){b.find(!1,!1)}),O.addListener(this.searchInput,"input",function(){b.$onChange.schedule(20)}),O.addListener(this.searchInput,"focus",function(){b.activeInput=b.searchInput,b.searchInput.value&&b.highlight()}),O.addListener(this.replaceInput,"focus",function(){b.activeInput=b.replaceInput,b.searchInput.value&&b.highlight()})}
1413,x.prototype.setSearchRange=function(S){(this.searchRange=S)?this.searchRangeMarker=this.editor.session.addMarker(S,"ace_active-line"):this.searchRangeMarker&&(this.editor.session.removeMarker(this.searchRangeMarker),this.searchRangeMarker=null)},x.prototype.$syncOptions=function(S){v.setCssClass(this.replaceOption,"checked",this.searchRange),v.setCssClass(this.searchOption,"checked",this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?"-":"+",v.setCssClass(this.regExpOption,"checked",this.regExpOption.checked),v.setCssClass(this.wholeWordOption,"checked",this.wholeWordOption.checked),v.setCssClass(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked);var b=this.editor.getReadOnly();this.replaceOption.style.display=b?"none":"",this.replaceBox.style.display=this.replaceOption.checked&&!b?"":"none",this.find(!1,!1,S)},x.prototype.highlight=function(S){this.editor.session.highlight(S||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},x.prototype.find=function(S,b,p){this.editor.session&&(S=!this.editor.find(this.searchInput.value,{skipCurrent:S,backwards:b,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:p,range:this.searchRange})&&this.searchInput.value,v.setCssClass(this.searchBox,"ace_nomatch",S),this.editor._emit("findSearchBox",{match:!S}),this.highlight(),this.updateCounter())},x.prototype.updateCounter=function(){var S=this.editor,b=S.$search.$options.re,p=b.unicode,g=0,u=0;if(b){var y,m,I=this.searchRange?S.session.getTextRange(this.searchRange):S.getValue(),_=(S.$search.$isMultilineSearch(S.getLastSearchOptions())&&(I=I.replace(/\r\n|\r|\n/g,` 1414`),S.session.doc.$autoNewLine=` 1415`),S.session.doc.positionToIndex(S.selection.anchor));for(this.searchRange&&(_-=S.session.doc.positionToIndex(this.searchRange.start)),b.lastIndex=0;(m=b.exec(I))&&((y=m.index)<=_&&u++,!(999<++g))&&(m[0]||(b.lastIndex=y+=R.skipEmptyMatch(I,y,p),!(y>=I.length))););}this.searchCounter.textContent=C("search-box.search-counter","$0 of $1",[u,999<g?"999+":g])},x.prototype.findNext=function(){this.find(!0,!1)},x.prototype.findPrev=function(){this.find(!0,!0)},x.prototype.findAll=function(){var S=!this.editor.findAll(this.searchInput.value,{regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked})&&this.searchInput.value;v.setCssClass(this.searchBox,"ace_nomatch",S),this.editor._emit("findSearchBox",{match:!S}),this.highlight(),this.hide()},x.prototype.replace=function(){this.editor.getReadOnly()||this.editor.replace(this.replaceInput.value)},x.prototype.replaceAndFindNext=function(){this.editor.getReadOnly()||(this.editor.replace(this.replaceInput.value),this.findNext())},x.prototype.replaceAll=function(){this.editor.getReadOnly()||this.editor.replaceAll(this.replaceInput.value)},x.prototype.hide=function(){this.active=!1,this.setSearchRange(null),this.editor.off("changeSession",this.setSession),this.editor.off("input",this.$onEditorInput),this.element.style.display="none",this.editor.keyBinding.removeKeyboardHandler(this.$closeSearchBarKb),this.editor.focus()},x.prototype.show=function(S,b){this.active=!0,this.editor.on("changeSession",this.setSession),this.editor.on("input",this.$onEditorInput),this.element.style.display="",this.replaceOption.checked=b,(S=this.editor.$search.$options.regExp?R.escapeRegExp(S):S)!=null&&(this.searchInput.value=S),this.searchInput.focus(),this.searchInput.select(),this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb),this.$syncOptions(!0)},x.prototype.isFocused=function(){var S=document.activeElement;return S==this.searchInput||S==this.replaceInput},x);function x(S,b,p){this.activeInput,this.element=v.buildDom(["div",{class:"ace_search right"},["span",{action:"hide",class:"ace_searchbtn_close"}],["div",{class:"ace_search_form"},["input",{class:"ace_search_field",placeholder:C("search-box.find.placeholder","Search for"),spellcheck:"false"}],["span",{action:"findPrev",class:"ace_searchbtn prev"},"â"],["span",{action:"findNext",class:"ace_searchbtn next"},"â"],["span",{action:"findAll",class:"ace_searchbtn",title:"Alt-Enter"},C("search-box.find-all.text","All")]],["div",{class:"ace_replace_form"},["input",{class:"ace_search_field",placeholder:C("search-box.replace.placeholder","Replace with"),spellcheck:"false"}],["span",{action:"replaceAndFindNext",class:"ace_searchbtn"},C("search-box.replace-next.text","Replace")],["span",{action:"replaceAll",class:"ace_searchbtn"},C("search-box.replace-all.text","All")]],["div",{class:"ace_search_options"},["span",{action:"toggleReplace",class:"ace_button",title:C("search-box.toggle-replace.title","Toggle Replace mode"),style:"float:left;margin-top:-2px;padding:0 5px;"},"+"],["span",{class:"ace_search_counter"}],["span",{action:"toggleRegexpMode",class:"ace_button",title:C("search-box.toggle-regexp.title","RegExp Search")},".*"],["span",{action:"toggleCaseSensitive",class:"ace_button",title:C("search-box.toggle-case.title","CaseSensitive Search")},"Aa"],["span",{action:"toggleWholeWords",class:"ace_button",title:C("search-box.toggle-whole-word.title","Whole Word Search")},"\\b"],["span",{action:"searchInSelection",class:"ace_button",title:C("search-box.toggle-in-selection.title","Search In Selection")},"S"]]]),this.setSession=this.setSession.bind(this),this.$onEditorInput=this.onEditorInput.bind(this),this.$init(),this.setEditor(S),v.importCssString($,"ace_searchbox",S.container),O.addListener(this.element,"touchstart",function(g){g.stopPropagation()},S)}c=new P,c.bindKeys({"Ctrl-f|Command-f":function(S){var b=S.isReplace=!S.isReplace;S.replaceBox.style.display=b?"":"none",S.replaceOption.checked=!1,S.$syncOptions(),S.searchInput.focus()},"Ctrl-H|Command-Option-F":function(S){S.editor.getReadOnly()||(S.replaceOption.checked=!0,S.$syncOptions(),S.replaceInput.focus())}
1415,"Ctrl-G|Command-G":function(S){S.findNext()},"Ctrl-Shift-G|Command-Shift-G":function(S){S.findPrev()},esc:function(S){setTimeout(function(){S.hide()})},Return:function(S){S.activeInput==S.replaceInput&&S.replace(),S.findNext()},"Shift-Return":function(S){S.activeInput==S.replaceInput&&S.replace(),S.findPrev()},"Alt-Return":function(S){S.activeInput==S.replaceInput&&S.replaceAll(),S.findAll()},Tab:function(S){(S.activeInput==S.replaceInput?S.searchInput:S.replaceInput).focus()}}),c.addCommands([{name:"toggleRegexpMode",bindKey:{win:"Alt-R|Alt-/",mac:"Ctrl-Alt-R|Ctrl-Alt-/"},exec:function(S){S.regExpOption.checked=!S.regExpOption.checked,S.$syncOptions()}},{name:"toggleCaseSensitive",bindKey:{win:"Alt-C|Alt-I",mac:"Ctrl-Alt-R|Ctrl-Alt-I"},exec:function(S){S.caseSensitiveOption.checked=!S.caseSensitiveOption.checked,S.$syncOptions()}},{name:"toggleWholeWords",bindKey:{win:"Alt-B|Alt-W",mac:"Ctrl-Alt-B|Ctrl-Alt-W"},exec:function(S){S.wholeWordOption.checked=!S.wholeWordOption.checked,S.$syncOptions()}},{name:"toggleReplace",exec:function(S){S.replaceOption.checked=!S.replaceOption.checked,S.$syncOptions()}},{name:"searchInSelection",exec:function(S){S.searchOption.checked=!S.searchRange,S.setSearchRange(S.searchOption.checked&&S.editor.getSelectionRange()),S.$syncOptions()}}]),P=new P([{bindKey:"Esc",name:"closeSearchBar",exec:function(S){S.searchBox.hide()}}]),N.prototype.$searchBarKb=c,N.prototype.$closeSearchBarKb=P,l.SearchBox=N,l.Search=function(u,b){var p=u.searchBox||new N(u),g=u.session.selection.getRange(),u=g.isMultiLine()?"":u.session.getTextRange(g);p.show(u,b)}}),ace.require(["ace/ext/searchbox"],function(c){s&&(s.exports=c)})},4221:function(s,o,a){s=a.nmd(s),ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(O,l,d){function v(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"text",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"comment",regex:"\\/\\/.*$"},{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"punctuation.operator",regex:/[,]/},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]}}var R=O("../lib/oop"),O=O("./text_highlight_rules").TextHighlightRules;R.inherits(v,O),l.JsonHighlightRules=v}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(c,l,d){function v(){}var R=c("../range").Range;(function(){this.checkOutdent=function(O,$){return!!/^\s+$/.test(O)&&/^\s*\}/.test($)},this.autoOutdent=function(O,$){var P,T=O.getLine($).match(/^(\s*\})/);return T&&(T=T[1].length,P=O.findMatchingBracket({row:$,column:T}))&&P.row!=$?(P=this.$getIndent(O.getLine(P.row)),void O.replace(new R($,0,$,T-1),P)):0},this.$getIndent=function(O){return O.match(/^\s*/)[0]}}).call(v.prototype),l.MatchingBraceOutdent=v}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(O,$,d){var v=O("../../lib/oop"),R=O("../../range").Range,O=O("./fold_mode").FoldMode,$=$.FoldMode=function(P){P&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+P.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+P.end)))};v.inherits($,O),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(P,T,C){var N=P.getLine(C);return!this.singleLineBlockCommentRe.test(N)||this.startRegionRe.test(N)||this.tripleStarBlockCommentRe.test(N)?!(P=this._getFoldWidgetBase(P,T,C))&&this.startRegionRe.test(N)?"start":P:""},this.getFoldWidgetRange=function(P,T,C,N){var x,S,b,p=P.getLine(C);return this.startRegionRe.test(p)?this.getCommentRegionBlock(P,p,C):(S=p.match(this.foldingStartMarker))?(b=S.index,S[1]?this.openingBracketBlock(P,S[1],C,b):((x=P.getCommentFoldRange(C,b+S[0].length,1))&&!x.isMultiLine()&&(N?x=this.getSectionRange(P,C):T!="all"&&(x=null)),x)):T!=="markbegin"&&(S=p.match(this.foldingStopMarker))?(b=S.index+S[0].length,S[1]?this.closingBracketBlock(P,S[1],C,b):P.getCommentFoldRange(C,b,-1)):void 0}
1415,this.getSectionRange=function(P,T){for(var C=(p=P.getLine(T)).search(/\S/),N=T,x=p.length,S=T+=1,b=P.getLength();++T<b;){var p,g=(p=P.getLine(T)).search(/\S/);if(g!==-1){if(g<C)break;var u=this.getFoldWidgetRange(P,"all",T);if(u){if(u.start.row<=N)break;if(u.isMultiLine())T=u.end.row;else if(C==g)break}S=T}}return new R(N,x,S,P.getLine(S).length)},this.getCommentRegionBlock=function(P,T,C){for(var N=T.search(/\s*$/),x=P.getLength(),S=C,b=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,p=1;++C<x;){T=P.getLine(C);var g=b.exec(T);if(g&&(g[1]?p--:p++,!p))break}if(S<C)return new R(S,N,C,T.length)}}).call($.prototype)}),ace.define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/folding/cstyle","ace/worker/worker_client"],function(c,l,d){function v(){this.HighlightRules=$,this.$outdent=new P,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new T}var R=c("../lib/oop"),O=c("./text").Mode,$=c("./json_highlight_rules").JsonHighlightRules,P=c("./matching_brace_outdent").MatchingBraceOutdent,T=c("./folding/cstyle").FoldMode,C=c("../worker/worker_client").WorkerClient;R.inherits(v,O),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(N,x,S){var b=this.$getIndent(x);return N=="start"&&x.match(/^.*[\{\(\[]\s*$/)&&(b+=S),b},this.checkOutdent=function(N,x,S){return this.$outdent.checkOutdent(x,S)},this.autoOutdent=function(N,x,S){this.$outdent.autoOutdent(x,S)},this.createWorker=function(N){var x=new C(["ace"],"ace/mode/json_worker","JsonWorker");return x.attachToDocument(N.getDocument()),x.on("annotate",function(S){N.setAnnotations(S.data)}),x.on("terminate",function(){N.clearAnnotations()}),x},this.$id="ace/mode/json"}).call(v.prototype),l.Mode=v}),ace.require(["ace/mode/json"],function(c){s&&(s.exports=c)})},2229:function(C,o,a){var c=a(2620),l=a(4292),d=a(9336),v=a(4427),R=a(9306),O=a(2084),$=a(3483),P=a(8852),T=a(6862),C=((C.exports=b).prototype.validate=function(h,f){var w;if(typeof h=="string"){if(!(w=this.getSchema(h)))throw new Error('no schema with key or ref "'+h+'"')}else h=this._addSchema(h),w=h.validate||this._compile(h);return h=w(f),w.$async!==!0&&(this.errors=w.errors),h},b.prototype.compile=function(h,f){return h=this._addSchema(h,void 0,f),h.validate||this._compile(h)},b.prototype.addSchema=function(h,f,w,E){if(Array.isArray(h))for(var k=0;k<h.length;k++)this.addSchema(h[k],void 0,w,E);else{var L=this._getId(h);if(L!==void 0&&typeof L!="string")throw new Error("schema id must be string");I(this,f=l.normalizeId(f||L)),this._schemas[f]=this._addSchema(h,w,E,!0)}return this},b.prototype.addMetaSchema=function(h,f,w){return this.addSchema(h,f,w,!0),this},b.prototype.validateSchema=function(h,f){var w=h.$schema;if(w!==void 0&&typeof w!="string")throw new Error("$schema must be a string");if(!(w=w||this._opts.defaultMeta||(E=>{var k=E._opts.meta;return E._opts.defaultMeta=typeof k=="object"?E._getId(k)||k:E.getSchema(N)?N:void 0,E._opts.defaultMeta})(this)))return this.logger.warn("meta-schema not available"),!(this.errors=null);if(w=this.validate(w,h),!w&&f){if(h="schema is invalid: "+this.errorsText(),this._opts.validateSchema!="log")throw new Error(h);this.logger.error(h)}return w},b.prototype.getSchema=function(h){var f=p(this,h);switch(typeof f){case"object":return f.validate||this._compile(f);case"string":return this.getSchema(f);case"undefined":return((w,E)=>{var k,L,M,B=l.schema.call(w,{schema:{}},E);if(B)return k=B.schema,L=B.root,B=B.baseId,M=c.call(w,k,L,void 0,B),w._fragments[E]=new v({ref:E,fragment:!0,schema:k,root:L,baseId:B,validate:M}),M})(this,h)}},b.prototype.removeSchema=function(h){if(h instanceof RegExp)g(this,this._schemas,h),g(this,this._refs,h);else switch(typeof h){case"undefined":return g(this,this._schemas),g(this,this._refs),this._cache.clear(),this;case"string":var f=p(this,h);return f&&this._cache.del(f.cacheKey),delete this._schemas[h],delete this._refs[h],this;case"object":f=this._opts.serialize,f=f?f(h):h,f=(this._cache.del(f),this._getId(h)),f&&(f=l.normalizeId(f),delete this._schemas[f],delete this._refs[f])}return this},b.prototype.addFormat=function(h,f){return typeof f=="string"&&(f=new RegExp(f)),this._formats[h]=f,this},b.prototype.errorsText=function(h,f){if(!(h=h||this.errors))return"No errors";for(var w=(f=f||{}
1415).separator===void 0?", ":f.separator,E=f.dataVar===void 0?"data":f.dataVar,k="",L=0;L<h.length;L++){var M=h[L];M&&(k+=E+M.dataPath+" "+M.message+w)}return k.slice(0,-w.length)},b.prototype._addSchema=function(h,B,w,E){if(typeof h!="object"&&typeof h!="boolean")throw new Error("schema should be object or boolean");var k=this._opts.serialize,k=k?k(h):h,L=this._cache.get(k);if(L)return L;E=E||this._opts.addUsedSchema!==!1,L=l.normalizeId(this._getId(h)),L&&E&&I(this,L);var M,B=this._opts.validateSchema!==!1&&!B;B&&!(M=L&&L==l.normalizeId(h.$schema))&&this.validateSchema(h,!0);var j=l.ids.call(this,h),j=new v({id:L,schema:h,localRefs:j,cacheKey:k,meta:w});return L[0]!="#"&&E&&(this._refs[L]=j),this._cache.put(k,j),B&&M&&this.validateSchema(h,!0),j},b.prototype._compile=function(h,f){if(h.compiling)return(h.validate=k).schema=h.schema,k.errors=null,k.root=f||k,h.schema.$async===!0&&(k.$async=!0),k;var w,E;h.compiling=!0,h.meta&&(w=this._opts,this._opts=this._metaOpts);try{E=c.call(this,h.schema,f,h.localRefs)}catch(L){throw delete h.validate,L}finally{h.compiling=!1,h.meta&&(this._opts=w)}return h.validate=E,h.refs=E.refs,h.refVal=E.refVal,h.root=E.root,E;function k(){var L=h.validate,M=L.apply(this,arguments);return k.errors=L.errors,M}},b.prototype.compileAsync=a(600),a(413)),C=(b.prototype.addKeyword=C.add,b.prototype.getKeyword=C.get,b.prototype.removeKeyword=C.remove,b.prototype.validateKeyword=C.validate,a(3689)),N=(b.ValidationError=C.Validation,b.MissingRefError=C.MissingRef,b.$dataMetaSchema=P,"http://json-schema.org/draft-07/schema"),x=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],S=["/properties"];function b(h){if(!(this instanceof b))return new b(h);h=this._opts=T.copy(h)||{};var z=this,f=z._opts.logger;if(f===!1)z.logger={log:_,warn:_,error:_};else{if(!(typeof(f=f===void 0?console:f)=="object"&&f.log&&f.warn&&f.error))throw new Error("logger must implement log, warn and error methods");z.logger=f}if(this._schemas={},this._refs={},this._fragments={},this._formats=O(h.format),this._cache=h.cache||new d,this._loadingSchemas={},this._compilations=[],this.RULES=$(),this._getId=(H=>{switch(H.schemaId){case"auto":return m;case"id":return u;default:return y}})(h),h.loopRequired=h.loopRequired||1/0,h.errorDataPath=="property"&&(h._errorDataPathProperty=!0),h.serialize===void 0&&(h.serialize=R),this._metaOpts=(H=>{for(var A=T.copy(H._opts),W=0;W<x.length;W++)delete A[x[W]];return A})(this),h.formats){var w,E=this;for(w in E._opts.formats){var k=E._opts.formats[w];E.addFormat(w,k)}}if(h.keywords){var L,M=this;for(L in M._opts.keywords){var B=M._opts.keywords[L];M.addKeyword(L,B)}}var j,z=this,Q=(z._opts.$data&&(j=a(3420),z.addMetaSchema(j,j.$id,!0)),z._opts.meta!==!1&&(j=a(8198),z._opts.$data&&(j=P(j,S)),z.addMetaSchema(j,N,!0),z._refs["http://json-schema.org/schema"]=N),typeof h.meta=="object"&&this.addMetaSchema(h.meta),h.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),this),D=Q._opts.schemas;if(D)if(Array.isArray(D))Q.addSchema(D);else for(var K in D)Q.addSchema(D[K],K)}function p(h,f){return f=l.normalizeId(f),h._schemas[f]||h._refs[f]||h._fragments[f]}function g(h,f,w){for(var E in f){var k=f[E];k.meta||w&&!w.test(E)||(h._cache.del(k.cacheKey),delete f[E])}}function u(h){return h.$id&&this.logger.warn("schema $id ignored",h.$id),h.id}function y(h){return h.id&&this.logger.warn("schema id ignored",h.id),h.$id}function m(h){if(h.$id&&h.id&&h.$id!=h.id)throw new Error("schema $id is different from id");return h.$id||h.id}function I(h,f){if(h._schemas[f]||h._refs[f])throw new Error('schema with key or id "'+f+'" already exists')}function _(){}},9336:function(s){s=s.exports=function(){this._cache={}},s.prototype.put=function(o,a){this._cache[o]=a},s.prototype.get=function(o){return this._cache[o]},s.prototype.del=function(o){delete this._cache[o]},s.prototype.clear=function(){this._cache={}}},600:function(s,o,a){var c=a(3689).MissingRef;function l(d,v,R){var O=this;if(typeof this._opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");typeof v=="function"&&(R=v,v=void 0);var $=P(d).then(function(){var T=O._addSchema(d,void 0,v);return T.validate||(function C(N){try{return O._compile(N)}catch(S){if(S instanceof c)return x(S);throw S}function x(S){var b=S.missingSchema;if(g(b))throw new Error("Schema "+b+" is loaded but "+S.missingRef+" cannot be resolved");return S=O._loadingSchemas[b],S||(S=O._loadingSchemas[b]=O._opts.loadSchema(b)).then(p,p),S.then(function(u){if(!g(b))return P(u).then(function(){g(b)||O.addSchema(u,b,void 0,v)})}).then(function(){return C(N)});function p(){delete O._loadingSchemas[b]}function g(u){return O._refs[u]||O._schemas[u]}}})(T)});return R&&$.then(function(T){R(null,T)},R),$;function P(T){return T=T.$schema,T&&!O.getSchema(T)?l.call(O,{$ref:T},!0):Promise.resolve()}}s.exports=l},3689:function(s,o,a){var c=a(4292);function l(v,R,O){this.message=O||l.message(v,R),this.missingRef=c.url(v,R),this.missingSchema=c.normalizeId(c.fullPath(this.missingRef))}function d(v){return v.prototype=Object.create(Error.prototype),v.prototype.constructor=v}s.exports={Validation:d(function(v){this.message="validation failed",this.errors=v,this.ajv=this.validation=!0}
1415),MissingRef:d(l)},l.message=function(v,R){return"can't resolve reference "+R+" from id "+v}},2084:function(s,o,R){var c=R(6862),l=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,d=[0,31,28,31,30,31,30,31,31,30,31,30,31],v=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,R=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,O=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,$=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,P=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,T=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,C=/^(?:\/(?:[^~/]|~0|~1)*)*$/,N=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,x=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function S(I){return c.copy(S[I=I=="full"?"full":"fast"])}function b(f){var _,h,f=f.match(l);return!!f&&(_=+f[1],h=+f[3],1<=(f=+f[2]))&&f<=12&&1<=h&&h<=(f!=2||(h=_)%4!=0||h%100==0&&h%400!=0?d[f]:29)}function p(E,_){var h,f,w,E=E.match(v);return!!E&&(h=E[1],f=E[2],w=E[3],h<=23&&f<=59&&w<=59||h==23&&f==59&&w==60)&&(!_||E[5])}(s.exports=S).fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":$,url:P,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:R,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}
1415(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:m,uuid:T,"json-pointer":C,"json-pointer-uri-fragment":N,"relative-json-pointer":x},S.full={date:b,time:p,"date-time":function(I){return I=I.split(g),I.length==2&&b(I[0])&&p(I[1],!0)},uri:function(I){return u.test(I)&&O.test(I)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":$,url:P,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:R,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:m,uuid:T,"json-pointer":C,"json-pointer-uri-fragment":N,"relative-json-pointer":x};var g=/t|\s/i,u=/\/|:/,y=/[^\\]\\Z/;function m(I){if(y.test(I))return!1;try{return new RegExp(I),!0}catch{return!1}}},2620:function(s,o,a){var c=a(4292),l=a(6862),d=a(3689),v=a(9306),R=a(1035),O=l.ucs2length,$=a(5215),P=d.Validation;function T(p,g,u,y){var m=this,I=this._opts,_=[void 0],h={},f=[],w={},E=[],k={},L=[];function M(q,ne){return"var pattern"+q+" = "+(I.regExp?"regExp":"new RegExp")+"("+l.toQuotedString(ne[q])+");"}g=g||{schema:p,refVal:_,refs:h};var B=(function(q,ne,se){var he=C.call(this,q,ne,se);return 0<=he?{index:he,compiling:!0}:(he=this._compilations.length,this._compilations[he]={schema:q,root:ne,baseId:se},{index:he,compiling:!1})}).call(this,p,g,y),j=this._compilations[B.index];if(B.compiling)return j.callValidate=H;var z=this._formats,Q=this.RULES;try{var D=A(p,g,u,y),K=(j.validate=D,j.callValidate);return K&&(K.schema=D.schema,K.errors=null,K.refs=D.refs,K.refVal=D.refVal,K.root=D.root,K.$async=D.$async,I.sourceCode)&&(K.source=D.source),D}finally{(function(q,ne,se){q=C.call(this,q,ne,se),0<=q&&this._compilations.splice(q,1)}).call(this,p,g,y)}function H(){var q=j.validate,ne=q.apply(this,arguments);return H.errors=q.errors,ne}function A(q,ne,se,he){var ie=!ne||ne.schema==q;if(ne.schema!=g.schema)return T.call(m,q,ne,se,he);se=q.$async===!0,he=R({isTop:!0,schema:q,isRoot:ie,baseId:he,root:ne,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:d.MissingRef,RULES:Q,validate:R,util:l,resolve:c,resolveRef:W,usePattern:Y,useDefault:ee,useCustomRule:X,opts:I,formats:z,logger:m.logger,self:m}
1415),he=b(_,x)+b(f,M)+b(E,N)+b(L,S)+he,I.processCode&&(he=I.processCode(he,q));try{var oe=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError","regExp",he)(m,Q,z,g,_,E,L,$,O,P,I.regExp);_[0]=oe}catch(de){throw m.logger.error("Error compiling schema, function code:",he),de}return oe.schema=q,oe.errors=null,oe.refs=h,oe.refVal=_,oe.root=ie?oe:ne,se&&(oe.$async=!0),I.sourceCode===!0&&(oe.source={code:he,patterns:f,defaults:E}),oe}function W(q,ne,de){ne=c.url(q,ne);var he=h[ne];if(he!==void 0)return U(ie=_[he],oe="refVal["+he+"]");if(!de&&g.refs&&(he=g.refs[ne],he!==void 0))return U(ie=g.refVal[he],oe=F(ne,ie));var ie,oe=F(ne),de=c.call(m,A,g,ne);if((de=de===void 0&&(he=u&&u[ne])?c.inlineRef(he,I.inlineRefs)?he:T.call(m,he,g,u,q):de)!==void 0)return ie=de,he=h[he=ne],_[he]=ie,U(de,oe);delete h[ne]}function F(q,ne){var se=_.length;return _[se]=ne,"refVal"+(h[q]=se)}function U(q,ne){return typeof q=="object"||typeof q=="boolean"?{code:ne,schema:q,inline:!0}:{code:ne,$async:q&&!!q.$async}}function Y(q){var ne=w[q];return ne===void 0&&(ne=w[q]=f.length,f[ne]=q),"pattern"+ne}function ee(q){switch(typeof q){case"boolean":case"number":return""+q;case"string":return l.toQuotedString(q);case"object":var ne,se;return q===null?"null":(ne=v(q),(se=k[ne])===void 0&&(se=k[ne]=E.length,E[se]=q),"default"+se)}}function X(q,ne,se,he){if(m._opts.validateSchema!==!1){var oe=q.definition.dependencies;if(oe&&!oe.every(function(Se){return Object.prototype.hasOwnProperty.call(se,Se)}))throw new Error("parent schema must have all required keywords: "+oe.join(","));if(oe=q.definition.validateSchema,oe&&!oe(ne)){if(oe="keyword schema is invalid: "+m.errorsText(oe.errors),m._opts.validateSchema!="log")throw new Error(oe);m.logger.error(oe)}}var ie,oe=q.definition.compile,de=q.definition.inline,me=q.definition.macro;if(oe)ie=oe.call(m,ne,se,he);else if(me)ie=me.call(m,ne,se,he),I.validateSchema!==!1&&m.validateSchema(ie,!0);else if(de)ie=de.call(m,he,q.keyword,ne,se);else if(!(ie=q.definition.validate))return;if(ie===void 0)throw new Error('custom keyword "'+q.keyword+'"failed to compile');return oe=L.length,{code:"customRule"+oe,validate:L[oe]=ie}}}function C(p,g,u){for(var y=0;y<this._compilations.length;y++){var m=this._compilations[y];if(m.schema==p&&m.root==g&&m.baseId==u)return y}return-1}function N(p){return"var default"+p+" = defaults["+p+"];"}function x(p,g){return g[p]===void 0?"":"var refVal"+p+" = refVal["+p+"];"}function S(p){return"var customRule"+p+" = customRules["+p+"];"}function b(p,g){if(!p.length)return"";for(var u="",y=0;y<p.length;y++)u+=g(y,p);return u}s.exports=T},4292:function(s,o,a){var c=a(6777),l=a(5215),d=a(6862),v=a(4427),R=a(4316);function O(u,y,m){var I,_,h,f=this._refs[m];if(typeof f=="string"){if(!this._refs[f])return O.call(this,u,y,f);f=this._refs[f]}return(f=f||this._schemas[m])instanceof v?N(f.schema,this._opts.inlineRefs)?f.schema:f.validate||this._compile(f):((f=$.call(this,y,m))&&(I=f.schema,y=f.root,h=f.baseId),I instanceof v?_=I.validate||u.call(this,I.schema,y,void 0,h):I!==void 0&&(_=N(I,this._opts.inlineRefs)?I:u.call(this,I,y,void 0,h)),_)}function $(u,y){var m=c.parse(y),I=S(m),_=x(this._getId(u.schema));if(Object.keys(u.schema).length===0||I!==_){var I=p(I),h=this._refs[I];if(typeof h=="string")return(function(w,E,k){E=$.call(this,w,E);{var L,M;if(E)return L=E.schema,M=E.baseId,w=E.root,(E=this._getId(L))&&(M=g(M,E)),T.call(this,k,M,L,w)}}).call(this,u,h,m);if(h instanceof v)h.validate||this._compile(h);else{if(!((h=this._schemas[I])instanceof v))return;if(h.validate||this._compile(h),I==p(y))return{schema:h,root:u,baseId:_}}if(!(u=h).schema)return;_=x(this._getId(u.schema))}return T.call(this,m,_,u.schema,u)}(s.exports=O).normalizeId=p,O.fullPath=x,O.url=g,O.ids=function(u){var y=p(this._getId(u)),m={"":y},I={"":x(y,!1)},_={},h=this;return R(u,{allKeys:!0},function(f,w,E,k,L,M,B){if(w!==""){var j=h._getId(f),z=m[k],k=I[k]+"/"+L;if(B!==void 0&&(k+="/"+(typeof B=="number"?B:d.escapeFragment(B))),typeof j=="string"){if(j=z=p(z?c.resolve(z,j):j),L=h._refs[j],(L=typeof L=="string"?h._refs[L]:L)&&L.schema){if(!l(f,L.schema))throw new Error('id "'+j+'" resolves to more than one schema')}else if(j!=p(k))if(j[0]=="#"){if(_[j]&&!l(f,_[j]))throw new Error('id "'+j+'" resolves to more than one schema');_[j]=f}else h._refs[j]=k}m[w]=z,I[w]=k}}),_}
1415,O.inlineRef=N,O.schema=$;var P=d.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function T(u,y,m,I){if(u.fragment=u.fragment||"",u.fragment.slice(0,1)=="/"){for(var _=u.fragment.split("/"),h=1;h<_.length;h++){var f=_[h];if(f){if((m=m[f=d.unescapeFragment(f)])===void 0)break;P[f]||((f=this._getId(m))&&(y=g(y,f)),m.$ref&&(f=g(y,m.$ref),f=$.call(this,I,f))&&(m=f.schema,I=f.root,y=f.baseId))}}return m!==void 0&&m!==I.schema?{schema:m,root:I,baseId:y}:void 0}}var C=d.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function N(u,y){return y!==!1&&(y===void 0||y===!0?(function m(I){var _;if(Array.isArray(I)){for(var h=0;h<I.length;h++)if(typeof(_=I[h])=="object"&&!m(_))return!1}else for(var f in I)if(f=="$ref"||typeof(_=I[f])=="object"&&!m(_))return!1;return!0})(u):y?(function m(I){var _,h=0;if(Array.isArray(I)){for(var f=0;f<I.length;f++)if(typeof(_=I[f])=="object"&&(h+=m(_)),h==1/0)return 1/0}else for(var w in I){if(w=="$ref")return 1/0;if(C[w])h++;else if(typeof(_=I[w])=="object"&&(h+=m(_)+1),h==1/0)return 1/0}return h})(u)<=y:void 0)}function x(u,y){return y!==!1&&(u=p(u)),S(c.parse(u))}function S(u){return c.serialize(u).split("#")[0]+"#"}var b=/#\/?$/;function p(u){return u?u.replace(b,""):""}function g(u,y){return y=p(y),c.resolve(u,y)}},3483:function(s,o,a){var c=a(8161),l=a(6862).toHash;s.exports=function(){var d=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],v=["type","$comment"];return d.all=l(v),d.types=l(["number","integer","string","array","object","boolean","null"]),d.forEach(function(R){R.rules=R.rules.map(function(O){var $,P;return typeof O=="object"&&(P=O[$=Object.keys(O)[0]],O=$,P.forEach(function(T){v.push(T),d.all[T]=!0})),v.push(O),d.all[O]={keyword:O,code:c[O],implements:P}}),d.all.$comment={keyword:"$comment",code:c.$comment},R.type&&(d.types[R.type]=R)}),d.keywords=l(v.concat(["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"])),d.custom={},d}},4427:function(s,o,a){var c=a(6862);s.exports=function(l){c.copy(l,this)}},611:function(s){s.exports=function(o){for(var a,c=0,l=o.length,d=0;d<l;)c++,55296<=(a=o.charCodeAt(d++))&&a<=56319&&d<l&&(64512&o.charCodeAt(d))==56320&&d++;return c}},6862:function(s,o,a){function c(b,p,g,u){var y=u?" !== ":" === ",m=u?" || ":" && ",I=u?"!":"",_=u?"":"!";switch(b){case"null":return p+y+"null";case"array":return I+"Array.isArray("+p+")";case"object":return"("+I+p+m+"typeof "+p+y+'"object"'+m+_+"Array.isArray("+p+"))";case"integer":return"(typeof "+p+y+'"number"'+m+_+"("+p+" % 1)"+m+p+y+p+(g?m+I+"isFinite("+p+")":"")+")";case"number":return"(typeof "+p+y+'"'+b+'"'+(g?m+I+"isFinite("+p+")":"")+")";default:return"typeof "+p+y+'"'+b+'"'}}s.exports={copy:function(b,p){for(var g in p=p||{},b)p[g]=b[g];return p},checkDataType:c,checkDataTypes:function(b,p,g){{if(b.length===1)return c(b[0],p,g,!0);var u,y="",b=d(b);for(u in b.array&&b.object&&(y=b.null?"(":"(!"+p+" || ",y+="typeof "+p+' !== "object")',delete b.null,delete b.array,delete b.object),b.number&&delete b.integer,b)y+=(y?" && ":"")+c(u,p,g,!0);return y}},coerceToTypes:function(b,p){{if(!Array.isArray(p))return l[p]?[p]:b==="array"&&p==="array"?["array"]:void 0;for(var g=[],u=0;u<p.length;u++){var y=p[u];(l[y]||b==="array"&&y==="array")&&(g[g.length]=y)}return g.length?g:void 0}},toHash:d,getProperty:O,escapeQuotes:$,equal:a(5215),ucs2length:a(611),varOccurences:function(b,p){return p+="[^0-9]",b=b.match(new RegExp(p,"g")),b?b.length:0},varReplace:function(b,p,g){return p+="([^0-9])",g=g.replace(/\$/g,"$$$$"),b.replace(new RegExp(p,"g"),g+"$1")},schemaHasRules:function(b,p){if(typeof b=="boolean")return!b;for(var g in b)if(p[g])return!0},schemaHasRulesExcept:function(b,p,g){if(typeof b=="boolean")return!b&&g!="not";for(var u in b)if(u!=g&&p[u])return!0},schemaUnknownRules:function(b,p){if(typeof b!="boolean"){for(var g in b)if(!p[g])return g}},toQuotedString:P,getPathExpr:function(b,p,g,u){return N(b,g?"'/' + "+p+(u?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):u?"'[' + "+p+" + ']'":"'[\\'' + "+p+" + '\\']'")},getPath:function(b,p,g){return g=P(g?"/"+x(p):O(p)),N(b,g)},getData:function(b,p,g){var u,y,m;if(b==="")return"rootData";if(b[0]=="/"){if(!T.test(b))throw new Error("Invalid JSON-pointer: "+b);u=b,y="rootData"}else{if(!(m=b.match(C)))throw new Error("Invalid JSON-pointer: "+b);if(b=+m[1],(u=m[2])=="#"){if(p<=b)throw new Error("Cannot access property/index "+b+" levels up, current level is "+p);return g[p-b]}if(p<b)throw new Error("Cannot access data "+b+" levels up, current level is "+p);if(y="data"+(p-b||""),!u)return y}for(var I=y,_=u.split("/"),h=0;h<_.length;h++){var f=_[h];f&&(y+=O(S(f)),I+=" && "+y)}return I},unescapeFragment:function(b){return S(decodeURIComponent(b))},unescapeJsonPointer:S,escapeFragment:function(b){return encodeURIComponent(x(b))},escapeJsonPointer:x};var l=d(["string","number","integer","boolean","null"]);function d(b){for(var p={},g=0;g<b.length;g++)p[b[g]]=!0;return p}var v=/^[a-z$_][a-z$_0-9]*$/i,R=/'|\\/g;function O(b){return typeof b=="number"?"["+b+"]":v.test(b)?"."+b:"['"+$(b)+"']"}function $(b){return b.replace(R,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function P(b){return"'"+$(b)+"'"}var T=/^\/(?:[^~]|~0|~1)*$/,C=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function N(b,p){return b=='""'?p:(b+" + "+p).replace(/([^\\])' \+ '/g,"$1")}function x(b){return b.replace(/~/g,"~0").replace(/\//g,"~1")}function S(b){return b.replace(/~1/g,"/").replace(/~0/g,"~")}},8852:function(s){var o=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];s.exports=function(a,c){for(var l=0;l<c.length;l++){a=JSON.parse(JSON.stringify(a));for(var d=c[l].split("/"),v=a,R=1;R<d.length;R++)v=v[d[R]];for(R=0;R<o.length;R++){var O=o[R],$=v[O];$&&(v[O]={anyOf:[$,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return a}},9407:function(s,o,a){a=a(8198),s.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:a.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:a.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}},1765:function(s){s.exports=function(o,a,c){var l,d,v,R,O,$=" ",P=o.level,T=o.dataLevel,C=o.schema[a],N=o.schemaPath+o.util.getProperty(a),x=o.errSchemaPath+"/"+a,S=!o.opts.allErrors,b="data"+(T||""),p=o.opts.$data&&C&&C.$data,g=p?($+=" var schema"+P+" = "+o.util.getData(C.$data,T,o.dataPathArr)+"; ","schema"+P):C,u=a=="maximum",y=u?"exclusiveMaximum":"exclusiveMinimum",m=o.schema[y],I=o.opts.$data&&m&&m.$data,_=u?"<":">",h=u?">":"<",f=void 0;if(!p&&typeof C!="number"&&C!==void 0)throw new Error(a+" must be number");if(!I&&m!==void 0&&typeof m!="number"&&typeof m!="boolean")throw new Error(y+" must be number or boolean");I?(T=o.util.getData(m.$data,T,o.dataPathArr),v="exclIsNumber"+P,R="' + "+(O="op"+P)+" + '",f=y,(w=w||[]).push($=$+(" var schemaExcl"+P+" = "+T+"; ")+(" var "+(l="exclusive"+P)+"; var "+(d="exclType"+P)+" = typeof "+(T="schemaExcl"+P)+"; if ("+d+" != 'boolean' && "+d+" != 'undefined' && "+d+" != 'number') { ")),$="",o.
1415createErrors!==!1?($+=" { keyword: '"+(f||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+o.errorPath+" , schemaPath: "+o.util.toQuotedString(x)+" , params: {} ",o.opts.messages!==!1&&($+=" , message: '"+y+" should be boolean' "),o.opts.verbose&&($+=" , schema: validate.schema"+N+" , parentSchema: validate.schema"+o.schemaPath+" , data: "+b+" "),$+=" } "):$+=" {} ",E=$,$=w.pop(),!o.compositeRule&&S?o.async?$+=" throw new ValidationError(["+E+"]); ":$+=" validate.errors = ["+E+"]; return false; ":$+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",$+=" } else if ( ",p&&($+=" ("+g+" !== undefined && typeof "+g+" != 'number') || "),$+=" "+d+" == 'number' ? ( ("+l+" = "+g+" === undefined || "+T+" "+_+"= "+g+") ? "+b+" "+h+"= "+T+" : "+b+" "+h+" "+g+" ) : ( ("+l+" = "+T+" === true) ? "+b+" "+h+"= "+g+" : "+b+" "+h+" "+g+" ) || "+b+" !== "+b+") { var op"+P+" = "+l+" ? '"+_+"' : '"+_+"='; ",C===void 0&&(x=o.errSchemaPath+"/"+(f=y),g=T,p=I)):(R=_,(v=typeof m=="number")&&p?(O="'"+R+"'",$+=" if ( ",p&&($+=" ("+g+" !== undefined && typeof "+g+" != 'number') || "),$+=" ( "+g+" === undefined || "+m+" "+_+"= "+g+" ? "+b+" "+h+"= "+m+" : "+b+" "+h+" "+g+" ) || "+b+" !== "+b+") { "):(v&&C===void 0?(l=!0,x=o.errSchemaPath+"/"+(f=y),g=m,h+="="):(v&&(g=Math[u?"min":"max"](m,C)),m===(!v||g)?(l=!0,x=o.errSchemaPath+"/"+(f=y),h+="="):(l=!1,R+="=")),O="'"+R+"'",$+=" if ( ",p&&($+=" ("+g+" !== undefined && typeof "+g+" != 'number') || "),$+=" "+b+" "+h+" "+g+" || "+b+" !== "+b+") { ")),f=f||a,(w=w||[]).push($),$="",o.createErrors!==!1?($+=" { keyword: '"+(f||"_limit")+"' , dataPath: (dataPath || '') + "+o.errorPath+" , schemaPath: "+o.util.toQuotedString(x)+" , params: { comparison: "+O+", limit: "+g+", exclusive: "+l+" } ",o.opts.messages!==!1&&($=$+" , message: 'should be "+R+" "+(p?"' + "+g:g+"'")),o.opts.verbose&&($=($+=" , schema: ")+(p?"validate.schema"+N:""+C)+" , parentSchema: validate.schema"+o.schemaPath+" , data: "+b+" "),$+=" } "):$+=" {} ";var w,E=$;return $=w.pop(),!o.compositeRule&&S?o.async?$+=" throw new ValidationError(["+E+"]); ":$+=" validate.errors = ["+E+"]; return false; ":$+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",$+=" } ",S&&($+=" else { "),$}},9337:function(s){s.exports=function(o,a,c){var l,d=" ",v=o.level,N=o.dataLevel,R=o.schema[a],O=o.schemaPath+o.util.getProperty(a),$=o.errSchemaPath+"/"+a,P=!o.opts.allErrors,T="data"+(N||""),C=o.opts.$data&&R&&R.$data,N=C?(d+=" var schema"+v+" = "+o.util.getData(R.$data,N,o.dataPathArr)+"; ","schema"+v):R;if(C||typeof R=="number")return d+="if ( ",C&&(d+=" ("+N+" !== undefined && typeof "+N+" != 'number') || "),(v=[]).push(d+=" "+T+".length "+((l=a)=="maxItems"?">":"<")+" "+N+") { "),d="",o.createErrors!==!1?(d+=" { keyword: '"+(l||"_limitItems")+"' , dataPath: (dataPath || '') + "+o.errorPath+" , schemaPath: "+o.util.toQuotedString($)+" , params: { limit: "+N+" } ",o.opts.messages!==!1&&(d=(d=(d+=" , message: 'should NOT have ")+(a=="maxItems"?"more":"fewer")+" than ")+(C?"' + "+N+" + '":""+R)+" items' "),o.opts.verbose&&(d=(d+=" , schema: ")+(C?"validate.schema"+O:""+R)+" , parentSchema: validate.schema"+o.schemaPath+" , data: "+T+" "),d+=" } "):d+=" {} ",l=d,d=v.pop(),!o.compositeRule&&P?o.async?d+=" throw new ValidationError(["+l+"]); ":d+=" validate.errors = ["+l+"]; return false; ":d+=" var err = "+l+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",d+="} ",P&&(d+=" else { "),d;throw new Error(a+" must be number")}},5433:function(s){s.exports=function(o,a,c){var l,d=" ",v=o.level,N=o.dataLevel,R=o.schema[a],O=o.schemaPath+o.util.getProperty(a),$=o.errSchemaPath+"/"+a,P=!o.opts.allErrors,T="data"+(N||""),C=o.opts.$data&&R&&R.$data,N=C?(d+=" var schema"+v+" = "+o.util.getData(R.$data,N,o.dataPathArr)+"; ","schema"+v):R;if(C||typeof R=="number")return d+="if ( ",C&&(d+=" ("+N+" !== undefined && typeof "+N+" != 'number') || "),o.opts.unicode===!1?d+=" "+T+".length ":d+=" ucs2length("+T+") ",(v=[]).push(d+=" "+((l=a)=="maxLength"?">":"<")+" "+N+") { "),d="",o.createErrors!==!1?(d+=" { keyword: '"+(l||"_limitLength")+"' , dataPath: (dataPath || '') + "+o.errorPath+" , schemaPath: "+o.util.toQuotedString($)+" , params: { limit: "+N+" } ",o.opts.messages!==!1&&(d=(d=(d+=" , message: 'should NOT be ")+(a=="maxLength"?"longer":"shorter")+" than ")+(C?"' + "+N+" + '"
1415:""+R)+" characters' "),o.opts.verbose&&(d=(d+=" , schema: ")+(C?"validate.schema"+O:""+R)+" , parentSchema: validate.schema"+o.schemaPath+" , data: "+T+" "),d+=" } "):d+=" {} ",l=d,d=v.pop(),!o.compositeRule&&P?o.async?d+=" throw new ValidationError(["+l+"]); ":d+=" validate.errors = ["+l+"]; return false; ":d+=" var err = "+l+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",d+="} ",P&&(d+=" else { "),d;throw new Error(a+" must be number")}},7724:function(s){s.exports=function(o,a,c){var l,d=" ",v=o.level,N=o.dataLevel,R=o.schema[a],O=o.schemaPath+o.util.getProperty(a),$=o.errSchemaPath+"/"+a,P=!o.opts.allErrors,T="data"+(N||""),C=o.opts.$data&&R&&R.$data,N=C?(d+=" var schema"+v+" = "+o.util.getData(R.$data,N,o.dataPathArr)+"; ","schema"+v):R;if(C||typeof R=="number")return d+="if ( ",C&&(d+=" ("+N+" !== undefined && typeof "+N+" != 'number') || "),(v=[]).push(d+=" Object.keys("+T+").length "+((l=a)=="maxProperties"?">":"<")+" "+N+") { "),d="",o.createErrors!==!1?(d+=" { keyword: '"+(l||"_limitProperties")+"' , dataPath: (dataPath || '') + "+o.errorPath+" , schemaPath: "+o.util.toQuotedString($)+" , params: { limit: "+N+" } ",o.opts.messages!==!1&&(d=(d=(d+=" , message: 'should NOT have ")+(a=="maxProperties"?"more":"fewer")+" than ")+(C?"' + "+N+" + '":""+R)+" properties' "),o.opts.verbose&&(d=(d+=" , schema: ")+(C?"validate.schema"+O:""+R)+" , parentSchema: validate.schema"+o.schemaPath+" , data: "+T+" "),d+=" } "):d+=" {} ",l=d,d=v.pop(),!o.compositeRule&&P?o.async?d+=" throw new ValidationError(["+l+"]); ":d+=" validate.errors = ["+l+"]; return false; ":d+=" var err = "+l+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",d+="} ",P&&(d+=" else { "),d;throw new Error(a+" must be number")}},3531:function(s){s.exports=function(o,a,c){var l=" ",d=o.schema[a],v=o.schemaPath+o.util.getProperty(a),R=o.errSchemaPath+"/"+a,O=!o.opts.allErrors,$=o.util.copy(o),P="",T=($.level++,"valid"+$.level),C=$.baseId,N=!0,x=d;if(x)for(var S,b=-1,p=x.length-1;b<p;)S=x[b+=1],(o.opts.strictKeywords?typeof S=="object"&&0<Object.keys(S).length||S===!1:o.util.schemaHasRules(S,o.RULES.all))&&(N=!1,$.schema=S,$.schemaPath=v+"["+b+"]",$.errSchemaPath=R+"/"+b,l+=" "+o.validate($)+" ",$.baseId=C,O)&&(l+=" if ("+T+") { ",P+="}");return O&&(l+=N?" if (true) { ":" "+P.slice(0,-1)+" "),l}},8854:function(s){s.exports=function(o,O,c){var l=" ",T=o.level,$=o.dataLevel,d=o.schema[O],v=o.schemaPath+o.util.getProperty(O),R=o.errSchemaPath+"/"+O,O=!o.opts.allErrors,$="data"+($||""),P="valid"+T,T="errs__"+T,C=o.util.copy(o),N="",x=(C.level++,"valid"+C.level);if(d.every(function(m){return o.opts.strictKeywords?typeof m=="object"&&0<Object.keys(m).length||m===!1:o.util.schemaHasRules(m,o.RULES.all)})){var S=C.baseId,b=(l+=" var "+T+" = errors; var "+P+" = false; ",o.compositeRule),p=(o.compositeRule=C.compositeRule=!0,d);if(p)for(var g,u=-1,y=p.length-1;u<y;)g=p[u+=1],C.schema=g,C.schemaPath=v+"["+u+"]",C.errSchemaPath=R+"/"+u,l+=" "+o.validate(C)+" ",C.baseId=S,l+=" "+P+" = "+P+" || "+x+"; if (!"+P+") { ",N+="}";o.compositeRule=C.compositeRule=b,l+=" "+N+" if (!"+P+") { var err = ",o.createErrors!==!1?(l+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+o.errorPath+" , schemaPath: "+o.util.toQuotedString(R)+" , params: {} ",o.opts.messages!==!1&&(l+=" , message: 'should match some schema in anyOf' "),o.opts.verbose&&(l+=" , schema: validate.schema"+v+" , parentSchema: validate.schema"+o.schemaPath+" , data: "+$+" "),l+=" } "):l+=" {} ",l+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!o.compositeRule&&O&&(o.async?l+=" throw new ValidationError(vErrors); ":l+=" validate.errors = vErrors; return false; "),l+=" } else { errors = "+T+"; if (vErrors !== null) { if ("+T+") vErrors.length = "+T+"; else vErrors = null; } ",o.opts.allErrors&&(l+=" } ")}else O&&(l+=" if (true) { ");return l}},8372:function(s){s.exports=function(o,d,c){var l=" ",v=o.schema[d],d=o.errSchemaPath+"/"+d,v=(o.opts.allErrors,o.util.toQuotedString(v));return o.opts.$comment===!0?l+=" console.log("+v+");":typeof o.opts.$comment=="function"&&(l+=" self._opts.$comment("+v+", "+o.util.toQuotedString(d)+", validate.root.schema);"),l}},9650:function(s){s.exports=function(o,v,c){var N=" ",l=o.level,C=o.dataLevel,T=o.schema[v],d=o.schemaPath+o.util.getProperty(v),v=o.errSchemaPath+"/"+v,R=!o.opts.allErrors,O="data"+(C||""),$="valid"+l,P=o.opts.$data&&T&&T.$data,T=(P&&(N+=" var schema"+l+" = "+o.util.getData(T.$data,C,o.dataPathArr)+"; "),P||(N+=" var schema"+l+" = validate.schema"+d+";"),[]),C=(T.push(N+="var "+$+" = equal("+O+", schema"+l+"); if (!"+$+") { "),N="",o.createErrors!==!1?(N+=" { keyword: 'const' , dataPath: (dataPath || '') + "+o.errorPath+" , schemaPath: "+o.util.toQuotedString(v)+" , params: { allowedValue: schema"+l+" } ",o.opts.messages!==!1&&(N+=" , message: 'should be equal to constant' "),o.opts.verbose&&(N+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+o.schemaPath+" , data: "+O+" "),N+=" } "):N+=" {} ",N),N=T.pop();return!o.compositeRule&&R?o.async?N+=" throw new ValidationError(["+C+"]); ":N+=" validate.errors = ["+C+"]; return false; ":N+=" var err = "+C+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",N+=" }",R&&(N+=" else { "),N}},1292:function(s){s.exports=function(o,v,c){var g=" ",b=o.level,O=o.dataLevel,l=o.schema[v],d=o.schemaPath+o.util.getProperty(v),v=o.errSchemaPath+"/"+v,R=!o.opts.allErrors,O="data"+(O||""),$="valid"+b,P="errs__"+b,T=o.util.copy(o),C=(T.level++,"valid"+T.level),b="i"+b,N=T.dataLevel=o.dataLevel+1,x="data"+N,p=o.baseId,S=o.opts.strictKeywords?typeof l=="object"&&0<Object.keys(l).length||l===!1:o.util.schemaHasRules(l,o.RULES.all),b=(g+="var "+P+" = errors;var "+$+";",S?($=o.compositeRule,o.compositeRule=T.compositeRule=!0,T.schema=l,T.schemaPath=d,T.errSchemaPath=v,g+=" var "+C+" = false; for (var "+b+" = 0; "+b+" < "+O+".length; "+b+"++) { ",T.errorPath=o.util.getPathExpr(o.errorPath,b,o.opts.jsonPointers,!0),l=O+"["+b+"]",T.dataPathArr[N]=b,N=o.validate(T),T.baseId=p,o.util.varOccurences(N,x)<2?g+=" "+o.util.varReplace(N,x,l)+" ":g+=" var "+x+" = "+l+"; "+N+" ",g+=" if ("+C+") break; } ",o.compositeRule=T.compositeRule=$,g+=" if (!"+C+") {"):g+=" if ("+O+".length == 0) {",[]),p=(b.push(g),g="",o.
1415createErrors!==!1?(g+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+o.errorPath+" , schemaPath: "+o.util.toQuotedString(v)+" , params: {} ",o.opts.messages!==!1&&(g+=" , message: 'should contain a valid item' "),o.opts.verbose&&(g+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+o.schemaPath+" , data: "+O+" "),g+=" } "):g+=" {} ",g),g=b.pop();return!o.compositeRule&&R?o.async?g+=" throw new ValidationError(["+p+"]); ":g+=" validate.errors = ["+p+"]; return false; ":g+=" var err = "+p+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",g+=" } else { ",S&&(g+=" errors = "+P+"; if (vErrors !== null) { if ("+P+") vErrors.length = "+P+"; else vErrors = null; } "),o.opts.allErrors&&(g+=" } "),g}},8050:function(s){s.exports=function(o,k,c){var l,d,v,R=" ",O=o.level,$=o.dataLevel,L=o.schema[k],P=o.schemaPath+o.util.getProperty(k),T=o.errSchemaPath+"/"+k,C=!o.opts.allErrors,N="data"+($||""),x="valid"+O,S="errs__"+O,b=o.opts.$data&&L&&L.$data,p=b?(R+=" var schema"+O+" = "+o.util.getData(L.$data,$,o.dataPathArr)+"; ","schema"+O):L,g="definition"+O,u=this.definition,y="";if(b&&u.$data){var m="keywordValidate"+O,I=u.validateSchema;R+=" var "+g+" = RULES.custom['"+k+"'].definition; var "+m+" = "+g+".validate;"}else{if(!(w=o.useCustomRule(this,L,o.schema,o)))return;p="validate.schema"+P,m=w.code,l=u.compile,d=u.inline,v=u.macro}var _,h,f,w,E,k=m+".errors",L="i"+O,M="ruleErr"+O,B=u.async;if(B&&!o.async)throw new Error("async keyword in sync schema");return d||v||(R+=k+" = null;"),R+="var "+S+" = errors;var "+x+";",b&&u.$data&&(y+="}",R+=" if ("+p+" === undefined) { "+x+" = true; } else { ",I)&&(y+="}",R+=" "+x+" = "+g+".validateSchema("+p+"); if ("+x+") { "),d?u.statements?R+=" "+w.validate+" ":R+=" "+x+" = "+w.validate+"; ":v?(y="",(b=o.util.copy(o)).level++,_="valid"+b.level,b.schema=w.validate,b.schemaPath="",I=o.compositeRule,o.compositeRule=b.compositeRule=!0,g=o.validate(b).replace(/validate\.schema/g,m),o.compositeRule=b.compositeRule=I,R+=" "+g):((E=E||[]).push(R),R="",R+=" "+m+".call( ",o.opts.passContext?R+="this":R+="self",l||u.schema===!1?R+=" , "+N+" ":R+=" , "+p+" , "+N+" , validate.schema"+o.schemaPath+" ",R+=" , (dataPath || '')",o.errorPath!='""'&&(R+=" + "+o.errorPath),w=R+=" , "+(h=$?"data"+($-1||""):"parentData")+" , "+(f=$?o.dataPathArr[$]:"parentDataProperty")+" , rootData ) ",R=E.pop(),u.errors===!1?(R+=" "+x+" = ",B&&(R+="await "),R+=w+"; "):R+=B?" var "+(k="customErrors"+O)+" = null; try { "+x+" = await "+w+"; } catch (e) { "+x+" = false; if (e instanceof ValidationError) "+k+" = e.errors; else throw e; } ":" "+k+" = null; "+x+" = "+w+"; "),u.modifying&&(R+=" if ("+h+") "+N+" = "+h+"["+f+"];"),R+=""+y,u.valid?C&&(R+=" if (true) { "):(R+=" if ( ",u.valid===void 0?R=R+" !"+(v?""+_:x):R+=" "+!u.valid+" ",b=this.keyword,(E=E||[]).push(R+=") { "),(E=E||[]).push(R=""),R="",o.createErrors!==!1?(R+=" { keyword: '"+(b||"custom")+"' , dataPath: (dataPath || '') + "+o.errorPath+" , schemaPath: "+o.util.toQuotedString(T)+" , params: { keyword: '"+this.keyword+"' } ",o.opts.messages!==!1&&(R+=` , message: 'should pass "`+this.keyword+`" keyword validation' `),o.opts.verbose&&(R+=" , schema: validate.schema"+P+" , parentSchema: validate.schema"+o.schemaPath+" , data: "+N+" "),R+=" } "):R+=" {} ",I=R,R=E.pop(),!o.compositeRule&&C?o.async?R+=" throw new ValidationError(["+I+"]); ":R+=" validate.errors = ["+I+"]; return false; ":R+=" var err = "+I+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",g=R,R=E.pop(),d?u.errors?u.errors!="full"&&(R+=" for (var "+L+"="+S+"; "+L+"<errors; "+L+"++) { var "+M+" = vErrors["+L+"]; if ("+M+".dataPath === undefined) "+M+".dataPath = (dataPath || '') + "+o.errorPath+"; if ("+M+".schemaPath === undefined) { "+M+'.schemaPath = "'+T+'"; } ',o.opts.verbose&&(R+=" "+M+".schema = "+p+"; "+M+".data = "+N+"; "),R+=" } "):u.errors===!1?R+=" "+g+" ":(R+=" if ("+S+" == errors) { "+g+" } else { for (var "+L+"="+S+"; "+L+"<errors; "+L+"++) { var "+M+" = vErrors["+L+"]; if ("+M+".dataPath === undefined) "+M+".dataPath = (dataPath || '') + "+o.errorPath+"; if ("+M+".schemaPath === undefined) { "+M+'.schemaPath = "'+T+'"; } ',o.opts.verbose&&(R+=" "+M+".schema = "+p+"; "+M+".data = "+N+"; "),R+=" } } "):v?(R+=" var err = ",o.createErrors!==!1?(R+=" { keyword: '"+(b||"custom")+"' , dataPath: (dataPath || '') + "+o.errorPath+" , schemaPath: "+o.util.toQuotedString(T)+" , params: { keyword: '"+this.keyword+"' } ",o.opts.messages!==!1&&(R+=` , message: 'should pass "`+this.keyword+`" keyword validation' `),o.opts.verbose&&(R+=" , schema: validate.schema"+P+" , parentSchema: validate.schema"+o.schemaPath+" , data: "+N+" "),R+=" } "):R+=" {} ",R+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++;
1415 ",!o.compositeRule&&C&&(o.async?R+=" throw new ValidationError(vErrors); ":R+=" validate.errors = vErrors; return false; ")):u.errors===!1?R+=" "+g+" ":(R+=" if (Array.isArray("+k+")) { if (vErrors === null) vErrors = "+k+"; else vErrors = vErrors.concat("+k+"); errors = vErrors.length; for (var "+L+"="+S+"; "+L+"<errors; "+L+"++) { var "+M+" = vErrors["+L+"]; if ("+M+".dataPath === undefined) "+M+".dataPath = (dataPath || '') + "+o.errorPath+"; "+M+'.schemaPath = "'+T+'"; ',o.opts.verbose&&(R+=" "+M+".schema = "+p+"; "+M+".data = "+N+"; "),R+=" } } else { "+g+" } "),R+=" } ",C&&(R+=" else { ")),R}},2860:function(s){s.exports=function(o,N,c){var l,d=" ",v=o.level,R=o.dataLevel,O=o.schema[N],$=o.schemaPath+o.util.getProperty(N),P=o.errSchemaPath+"/"+N,T=!o.opts.allErrors,C="data"+(R||""),N="errs__"+v,x=o.util.copy(o),S="",b=(x.level++,"valid"+x.level),p={},g={},u=o.opts.ownProperties;for(z in O)z!="__proto__"&&(D=O[z],(l=Array.isArray(D)?g:p)[z]=D);var y=o.errorPath;for(z in d=d+("var "+N+" = errors;")+("var missing"+v+";"),g)if((l=g[z]).length){if(d+=" if ( "+C+o.util.getProperty(z)+" !== undefined ",u&&(d+=" && Object.prototype.hasOwnProperty.call("+C+", '"+o.util.escapeQuotes(z)+"') "),T){d+=" && ( ";var m=l;if(m)for(var I=-1,_=m.length-1;I<_;)k=m[I+=1],I&&(d+=" || "),d+=" ( ( "+(j=C+(B=o.util.getProperty(k)))+" === undefined ",u&&(d+=" || ! Object.prototype.hasOwnProperty.call("+C+", '"+o.util.escapeQuotes(k)+"') "),d+=") && (missing"+v+" = "+o.util.toQuotedString(o.opts.jsonPointers?k:B)+") ) ";d+=")) { ";var w="missing"+v,h="' + "+w+" + '",f=(o.opts._errorDataPathProperty&&(o.errorPath=o.opts.jsonPointers?o.util.getPathExpr(y,w,!0):y+" + "+w),f||[]),w=(f.push(d),d="",o.createErrors!==!1?(d+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+o.errorPath+" , schemaPath: "+o.util.toQuotedString(P)+" , params: { property: '"+o.util.escapeQuotes(z)+"', missingProperty: '"+h+"', depsCount: "+l.length+", deps: '"+o.util.escapeQuotes(l.length==1?l[0]:l.join(", "))+"' } ",o.opts.messages!==!1&&(d+=" , message: 'should have ",l.length==1?d+="property "+o.util.escapeQuotes(l[0]):d+="properties "+o.util.escapeQuotes(l.join(", ")),d+=" when property "+o.util.escapeQuotes(z)+" is present' "),o.opts.verbose&&(d+=" , schema: validate.schema"+$+" , parentSchema: validate.schema"+o.schemaPath+" , data: "+C+" "),d+=" } "):d+=" {} ",d),d=f.pop();!o.compositeRule&&T?o.async?d+=" throw new ValidationError(["+w+"]); ":d+=" validate.errors = ["+w+"]; return false; ":d+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{d+=" ) { ";var E=l;if(E)for(var k,L=-1,M=E.length-1;L<M;){k=E[L+=1];var B=o.util.getProperty(k),h=o.util.escapeQuotes(k),j=C+B;o.opts._errorDataPathProperty&&(o.errorPath=o.util.getPath(y,k,o.opts.jsonPointers)),d+=" if ( "+j+" === undefined ",u&&(d+=" || ! Object.prototype.hasOwnProperty.call("+C+", '"+o.util.escapeQuotes(k)+"') "),d+=") { var err = ",o.createErrors!==!1?(d+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+o.errorPath+" , schemaPath: "+o.util.toQuotedString(P)+" , params: { property: '"+o.util.escapeQuotes(z)+"', missingProperty: '"+h+"', depsCount: "+l.length+", deps: '"+o.util.escapeQuotes(l.length==1?l[0]:l.join(", "))+"' } ",o.opts.messages!==!1&&(d+=" , message: 'should have ",l.length==1?d+="property "+o.util.escapeQuotes(l[0]):d+="properties "+o.util.escapeQuotes(l.join(", ")),d+=" when property "+o.util.escapeQuotes(z)+" is present' "),o.opts.verbose&&(d+=" , schema: validate.schema"+$+" , parentSchema: validate.schema"+o.schemaPath+" , data: "+C+" "),d+=" } "):d+=" {} ",d+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}d+=" } ",T&&(S+="}",d+=" else { ")}o.errorPath=y;var z,Q=x.baseId;for(z in p){var D=p[z];(o.opts.strictKeywords?typeof D=="object"&&0<Object.keys(D).length||D===!1:o.util.schemaHasRules(D,o.RULES.all))&&(d+=" "+b+" = true; if ( "+C+o.util.getProperty(z)+" !== undefined ",u&&(d+=" && Object.prototype.hasOwnProperty.call("+C+", '"+o.util.escapeQuotes(z)+"') "),d+=") { ",x.schema=D,x.schemaPath=$+o.util.getProperty(z),x.errSchemaPath=P+"/"+o.util.escapeFragment(z),d+=" "+o.validate(x)+" ",x.baseId=Q,d+=" } ",T)&&(d+=" if ("+b+") { ",S+="}")}return T&&(d+=" "+S+" if ("+N+" == errors) {"),d}},7112:function(s){s.exports=function(o,v,c){var N=" ",l=o.level,T=o.dataLevel,C=o.schema[v],d=o.schemaPath+o.util.getProperty(v),v=o.errSchemaPath+"/"+v,R=!o.opts.allErrors,O="data"+(T||""),$="valid"+l,P=o.opts.$data&&C&&C.$data,C=(P&&(N+=" var schema"+l+" = "+o.util.getData(C.$data,T,o.dataPathArr)+"; "),"i"+l),T="schema"+l,T=(P||(N+=" var "+T+" = validate.schema"+d+";"),N+="var "+$+";",P&&(N+=" if (schema"+l+" === undefined) "+$+" = true; else if (!Array.isArray(schema"+l+")) "+$+" = false; else {"),N+=$+" = false;for (var "+C+"=0; "+C+"<"+T+".length; "+C+"++) if (equal("+O+", "+T+"["+C+"])) { "+$+" = true; break; }",P&&(N+=" } "),[]),C=(T.push(N+=" if (!"+$+") { "),N="",o.createErrors!==!1?(N+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+o.errorPath+" , schemaPath: "+o.util.toQuotedString(v)+" , params: { allowedValues: schema"+l+" } ",o.opts.messages!==!1&&(N+=" , message: 'should be equal to one of the allowed values' "),o.opts.verbose&&(N+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+o.schemaPath+" , data: "+O+" "),N+=" } "):N+=" {} ",N),N=T.pop();return!o.compositeRule&&R?o.async?N+=" throw new ValidationError(["+C+"]); ":N+=" validate.errors = ["+C+"]; return false; ":N+=" var err = "+C+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",N+=" }",R&&(N+=" else { "),N}},4682:function(s){s.exports=function(o,$,c){var l=" ",d=o.level,v=o.dataLevel,R=o.schema[$],O=o.schemaPath+o.util.getProperty($),$=o.errSchemaPath+"/"+$,P=!o.opts.allErrors,T="data"+(v||"");if(o.opts.format===!1)P&&(l+=" if (true) { ");else{var C,N=o.opts.$data&&R&&R.$data,v=N?(l+=" var schema"+d+" = "+o.util.getData(R.$data,v,o.dataPathArr)+"; ","schema"+d):R,x=o.opts.unknownFormats,S=Array.isArray(x);if(N)l+=" var "+(C="format"+d)+" = formats["+v+"];
1415 var "+(b="isObject"+d)+" = typeof "+C+" == 'object' && !("+C+" instanceof RegExp) && "+C+".validate; var "+(g="formatType"+d)+" = "+b+" && "+C+".type || 'string'; if ("+b+") { ",o.async&&(l+=" var async"+d+" = "+C+".async; "),l+=" "+C+" = "+C+".validate; } if ( ",N&&(l+=" ("+v+" !== undefined && typeof "+v+" != 'string') || "),l+=" (",x!="ignore"&&(l+=" ("+v+" && !"+C+" ",S&&(l+=" && self._opts.unknownFormats.indexOf("+v+") == -1 "),l+=") || "),l=(l+=" ("+C+" && "+g+" == '"+c+"' && !(typeof "+C+" == 'function' ? ")+(o.async?" (async"+d+" ? await "+C+"("+T+") : "+C+"("+T+")) ":" "+C+"("+T+") ")+(" : "+C+".test("+T+"))))) {");else{if(!(C=o.formats[R])){if(x=="ignore")return o.logger.warn('unknown format "'+R+'" ignored in schema at path "'+o.errSchemaPath+'"'),P&&(l+=" if (true) { "),l;if(S&&0<=x.indexOf(R))return P&&(l+=" if (true) { "),l;throw new Error('unknown format "'+R+'" is used in schema at path "'+o.errSchemaPath+'"')}var b,p,g=(b=typeof C=="object"&&!(C instanceof RegExp)&&C.validate)&&C.type||"string";if(b&&(p=C.async===!0,C=C.validate),g!=c)return P&&(l+=" if (true) { "),l;if(p){if(!o.async)throw new Error("async format in sync schema");l+=" if (!(await "+(u="formats"+o.util.getProperty(R)+".validate")+"("+T+"))) { "}else{l+=" if (! ";var u="formats"+o.util.getProperty(R);b&&(u+=".validate"),l=l+(typeof C=="function"?" "+u+"("+T+") ":" "+u+".test("+T+") ")+") { "}}d=[],S=(d.push(l),l="",o.createErrors!==!1?(l=(l+=" { keyword: 'format' , dataPath: (dataPath || '') + "+o.errorPath+" , schemaPath: "+o.util.toQuotedString($)+" , params: { format: ")+(N?""+v:""+o.util.toQuotedString(R))+" } ",o.opts.messages!==!1&&(l=(l+=` , message: 'should match format "`)+(N?"' + "+v+" + '":""+o.util.escapeQuotes(R))+`"' `),o.opts.verbose&&(l=(l=(l+=" , schema: ")+(N?"validate.schema"+O:""+o.util.toQuotedString(R)))+" , parentSchema: validate.schema"+o.schemaPath+" , data: "+T+" "),l+=" } "):l+=" {} ",l),l=d.pop(),!o.compositeRule&&P?o.async?l+=" throw new ValidationError(["+S+"]); ":l+=" validate.errors = ["+S+"]; return false; ":l+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l+=" } ",P&&(l+=" else { ")}return l}},1678:function(s){s.exports=function(o,$,c){var l,d=" ",v=o.level,T=o.dataLevel,R=o.schema[$],O=o.schemaPath+o.util.getProperty($),$=o.errSchemaPath+"/"+$,P=!o.opts.allErrors,T="data"+(T||""),C="valid"+v,N="errs__"+v,x=o.util.copy(o),S=(x.level++,"valid"+x.level),b=o.schema.then,p=o.schema.else,b=b!==void 0&&(o.opts.strictKeywords?typeof b=="object"&&0<Object.keys(b).length||b===!1:o.util.schemaHasRules(b,o.RULES.all)),p=p!==void 0&&(o.opts.strictKeywords?typeof p=="object"&&0<Object.keys(p).length||p===!1:o.util.schemaHasRules(p,o.RULES.all)),g=x.baseId;return b||p?(x.createErrors=!1,x.schema=R,x.schemaPath=O,x.errSchemaPath=$,d+=" var "+N+" = errors; var "+C+" = true; ",R=o.compositeRule,o.compositeRule=x.compositeRule=!0,d+=" "+o.validate(x)+" ",x.baseId=g,x.createErrors=!0,d+=" errors = "+N+"; if (vErrors !== null) { if ("+N+") vErrors.length = "+N+"; else vErrors = null; } ",o.compositeRule=x.compositeRule=R,b?(d+=" if ("+S+") { ",x.schema=o.schema.then,x.schemaPath=o.schemaPath+".then",x.errSchemaPath=o.errSchemaPath+"/then",d+=" "+o.validate(x)+" ",x.baseId=g,d+=" "+C+" = "+S+"; ",b&&p?d+=" var "+(l="ifClause"+v)+" = 'then'; ":l="'then'",d+=" } ",p&&(d+=" else { ")):d+=" if (!"+S+") { ",p&&(x.schema=o.schema.else,x.schemaPath=o.schemaPath+".else",x.errSchemaPath=o.errSchemaPath+"/else",d+=" "+o.validate(x)+" ",x.baseId=g,d+=" "+C+" = "+S+"; ",b&&p?d+=" var "+(l="ifClause"+v)+" = 'else'; ":l="'else'",d+=" } "),d+=" if (!"+C+") { var err = ",o.createErrors!==!1?(d+=" { keyword: 'if' , dataPath: (dataPath || '') + "+o.errorPath+" , schemaPath: "+o.util.toQuotedString($)+" , params: { failingKeyword: "+l+" } ",o.opts.messages!==!1&&(d+=` , message: 'should match "' + `+l+` + '" schema' `),o.opts.verbose&&(d+=" , schema: validate.schema"+O+" , parentSchema: validate.schema"+o.schemaPath+" , data: "+T+" "),d+=" } "):d+=" {} ",d+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!o.compositeRule&&P&&(o.async?d+=" throw new ValidationError(vErrors); ":d+=" validate.errors = vErrors; return false; "),d+=" } ",P&&(d+=" else { ")):P&&(d+=" if (true) { "),d}},8161:function(s,o,a){s.exports={$ref:a(7096),allOf:a(3531),anyOf:a(8854),$comment:a(8372),const:a(9650),contains:a(1292),dependencies:a(2860),enum:a(7112),format:a(4682),if:a(1678),items:a(3913),maximum:a(1765),minimum:a(1765),maxItems:a(9337),minItems:a(9337),maxLength:a(5433),minLength:a(5433),maxProperties:a(7724),minProperties:a(7724),multipleOf:a(812),not:a(1004),oneOf:a(6288),pattern:a(2079),properties:a(2124),propertyNames:a(4926),required:a(2e3),uniqueItems:a(7812),validate:a(1035)}},3913:function(s){s.exports=function(o,P,c){var l=" ",S=o.level,T=o.dataLevel,d=o.schema[P],v=o.schemaPath+o.util.getProperty(P),R=o.errSchemaPath+"/"+P,O=!o.opts.allErrors,$="data"+(T||""),P="valid"+S,T="errs__"+S,C=o.util.copy(o),N="",x=(C.level++,"valid"+C.level),S="i"+S,b=C.dataLevel=o.dataLevel+1,p="data"+b,g=o.baseId;if(l+="var "+T+" = errors;var "+P+";",Array.isArray(d)){var u,y,m=o.schema.additionalItems,I=(m===!1&&(l+=" "+P+" = "+$+".length <= "+d.length+"; ",u=R,R=o.errSchemaPath+"/additionalItems",(y=y||[]).push(l+=" if (!"+P+") { "),l="",o.createErrors!==!1?(l+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+o.errorPath+" , schemaPath: "+o.util.toQuotedString(R)+" , params: { limit: "+d.length+" } ",o.opts.messages!==!1&&(l+=" , message: 'should NOT have more than "+d.length+" items' "),o.opts.verbose&&(l+=" , schema: false , parentSchema: validate.schema"+o.schemaPath+" , data: "+$+" "),l+=" } "):l+=" {}
1415 ",P=l,l=y.pop(),!o.compositeRule&&O?o.async?l+=" throw new ValidationError(["+P+"]); ":l+=" validate.errors = ["+P+"]; return false; ":l+=" var err = "+P+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l+=" } ",R=u,O)&&(N+="}",l+=" else { "),d);if(I)for(var _=-1,h=I.length-1;_<h;){var f,w,E=I[_+=1];(o.opts.strictKeywords?typeof E=="object"&&0<Object.keys(E).length||E===!1:o.util.schemaHasRules(E,o.RULES.all))&&(l+=" "+x+" = true; if ("+$+".length > "+_+") { ",f=$+"["+_+"]",C.schema=E,C.schemaPath=v+"["+_+"]",C.errSchemaPath=R+"/"+_,C.errorPath=o.util.getPathExpr(o.errorPath,_,o.opts.jsonPointers,!0),C.dataPathArr[b]=_,w=o.validate(C),C.baseId=g,o.util.varOccurences(w,p)<2?l+=" "+o.util.varReplace(w,p,f)+" ":l+=" var "+p+" = "+f+"; "+w+" ",l+=" } ",O)&&(l+=" if ("+x+") { ",N+="}")}typeof m=="object"&&(o.opts.strictKeywords?typeof m=="object"&&0<Object.keys(m).length||m===!1:o.util.schemaHasRules(m,o.RULES.all))&&(C.schema=m,C.schemaPath=o.schemaPath+".additionalItems",C.errSchemaPath=o.errSchemaPath+"/additionalItems",l+=" "+x+" = true; if ("+$+".length > "+d.length+") { for (var "+S+" = "+d.length+"; "+S+" < "+$+".length; "+S+"++) { ",C.errorPath=o.util.getPathExpr(o.errorPath,S,o.opts.jsonPointers,!0),f=$+"["+S+"]",C.dataPathArr[b]=S,w=o.validate(C),C.baseId=g,o.util.varOccurences(w,p)<2?l+=" "+o.util.varReplace(w,p,f)+" ":l+=" var "+p+" = "+f+"; "+w+" ",O&&(l+=" if (!"+x+") break; "),l+=" } } ",O)&&(l+=" if ("+x+") { ",N+="}")}else(o.opts.strictKeywords?typeof d=="object"&&0<Object.keys(d).length||d===!1:o.util.schemaHasRules(d,o.RULES.all))&&(C.schema=d,C.schemaPath=v,C.errSchemaPath=R,l+=" for (var "+S+" = 0; "+S+" < "+$+".length; "+S+"++) { ",C.errorPath=o.util.getPathExpr(o.errorPath,S,o.opts.jsonPointers,!0),f=$+"["+S+"]",C.dataPathArr[b]=S,w=o.validate(C),C.baseId=g,o.util.varOccurences(w,p)<2?l+=" "+o.util.varReplace(w,p,f)+" ":l+=" var "+p+" = "+f+"; "+w+" ",O&&(l+=" if (!"+x+") break; "),l+=" }");return O&&(l+=" "+N+" if ("+T+" == errors) {"),l}},812:function(s){s.exports=function(o,a,c){var l=" ",d=o.level,C=o.dataLevel,v=o.schema[a],R=o.schemaPath+o.util.getProperty(a),O=o.errSchemaPath+"/"+a,$=!o.opts.allErrors,P="data"+(C||""),T=o.opts.$data&&v&&v.$data,C=T?(l+=" var schema"+d+" = "+o.util.getData(v.$data,C,o.dataPathArr)+"; ","schema"+d):v;if(!T&&typeof v!="number")throw new Error(a+" must be number");return l+="var division"+d+";if (",T&&(l+=" "+C+" !== undefined && ( typeof "+C+" != 'number' || "),l+=" (division"+d+" = "+P+" / "+C+", ",o.opts.multipleOfPrecision?l+=" Math.abs(Math.round(division"+d+") - division"+d+") > 1e-"+o.opts.multipleOfPrecision+" ":l+=" division"+d+" !== parseInt(division"+d+") ",l+=" ) ",T&&(l+=" ) "),a=[],a.push(l+=" ) { "),l="",o.createErrors!==!1?(l+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+o.errorPath+" , schemaPath: "+o.util.toQuotedString(O)+" , params: { multipleOf: "+C+" } ",o.opts.messages!==!1&&(l=l+" , message: 'should be multiple of "+(T?"' + "+C:C+"'")),o.opts.verbose&&(l=(l+=" , schema: ")+(T?"validate.schema"+R:""+v)+" , parentSchema: validate.schema"+o.schemaPath+" , data: "+P+" "),l+=" } "):l+=" {} ",d=l,l=a.pop(),!o.compositeRule&&$?o.async?l+=" throw new ValidationError(["+d+"]); ":l+=" validate.errors = ["+d+"]; return false; ":l+=" var err = "+d+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l+="} ",$&&(l+=" else { "),l}},1004:function(s){s.exports=function(o,$,c){var l,d,v=" ",C=o.level,T=o.dataLevel,R=o.schema[$],O=o.schemaPath+o.util.getProperty($),$=o.errSchemaPath+"/"+$,P=!o.opts.allErrors,T="data"+(T||""),C="errs__"+C,N=o.util.copy(o),x=(N.level++,"valid"+N.level);return(o.opts.strictKeywords?typeof R=="object"&&0<Object.keys(R).length||R===!1:o.util.schemaHasRules(R,o.RULES.all))?(N.schema=R,N.schemaPath=O,N.errSchemaPath=$,v+=" var "+C+" = errors; ",R=o.compositeRule,o.compositeRule=N.compositeRule=!0,N.createErrors=!1,N.opts.allErrors&&(d=N.opts.allErrors,N.opts.allErrors=!1),v+=" "+o.validate(N)+" ",N.createErrors=!0,d&&(N.opts.allErrors=d),o.compositeRule=N.compositeRule=R,(l=l||[]).push(v+=" if ("+x+") { "),v="",o.createErrors!==!1?(v+=" { keyword: 'not' , dataPath: (dataPath || '') + "+o.errorPath+" , schemaPath: "+o.util.toQuotedString($)+" , params: {} ",o.opts.messages!==!1&&(v+=" , message: 'should NOT be valid' "),o.opts.verbose&&(v+=" , schema: validate.schema"+O+" , parentSchema: validate.schema"+o.schemaPath+" , data: "+T+" "),v+=" } "):v+=" {} ",d=v,v=l.pop(),!o.compositeRule&&P?o.async?v+=" throw new ValidationError(["+d+"]); ":v+=" validate.errors = ["+d+"]; return false; ":v+=" var err = "+d+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",v+=" } else { errors = "+C+"; if (vErrors !== null) { if ("+C+") vErrors.length = "+C+"; else vErrors = null; } ",o.opts.allErrors&&(v+=" } ")):(v+=" var err = ",o.createErrors!==!1?(v+=" { keyword: 'not' , dataPath: (dataPath || '') + "+o.errorPath+" , schemaPath: "+o.util.toQuotedString($)+" , params: {} ",o.opts.messages!==!1&&(v+=" , message: 'should NOT be valid' "),o.opts.verbose&&(v+=" , schema: validate.schema"+O+" , parentSchema: validate.schema"+o.schemaPath+" , data: "+T+" "),v+=" } "):v+=" {} ",v+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",P&&(v+=" if (false) { ")),v}},6288:function(s){s.exports=function(o,O,c){var l=" ",g=o.level,$=o.dataLevel,d=o.schema[O],v=o.schemaPath+o.util.getProperty(O),R=o.errSchemaPath+"/"+O,O=!o.opts.allErrors,$="data"+($||""),P="valid"+g,T="errs__"+g,C=o.util.copy(o),N="",x=(C.level++,"valid"+C.level),S=C.baseId,b="prevValid"+g,p="passingSchemas"+g,g=(l+="var "+T+" = errors , "+b+" = false , "+P+" = false , "+p+" = null; ",o.compositeRule),u=(o.compositeRule=C.compositeRule=!0,d);if(u)for(var y,m=-1,I=u.length-1;m<I;)y=u[m+=1],(o.opts.strictKeywords?typeof y=="object"&&0<Object.keys(y).length||y===!1:o.util.schemaHasRules(y,o.RULES.all))?(C.schema=y,C.schemaPath=v+"["+m+"]",C.errSchemaPath=R+"/"+m,l+=" "+o.validate(C)+" ",C.baseId=S):l+=" var "+x+" = true; ",m&&(l+=" if ("+x+" && "+b+") { "+P+" = false; "+p+" = ["+p+", "+m+"]; } else { ",N+="}"),l+=" if ("+x+") { "+P+" = "+b+" = true; "+p+" = "+m+"; }";return o.compositeRule=C.compositeRule=g,l+=N+"if (!"+P+") { var err = ",o.createErrors!==!1?(l+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+o.errorPath+" , schemaPath: "+o.util.toQuotedString(R)+" , params: { passingSchemas: "+p+" } ",o.opts.messages!==!1&&(l+=" , message: 'should match exactly one schema in oneOf' "),o.opts.verbose&&(l+=" , schema: validate.schema"+v+" , parentSchema: validate.schema"+o.schemaPath+" , data: "+$+" "),l+=" } "):l+=" {} ",l+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!o.compositeRule&&O&&(o.async?l+=" throw new ValidationError(vErrors); ":l+=" validate.errors = vErrors; return false; "),l+="} else { errors = "+T+"; if (vErrors !== null) { if ("+T+") vErrors.length = "+T+"; else vErrors = null; }",o.opts.allErrors&&(l+=" } "),l}},2079:function(s){s.exports=function(o,v,c){var N=" ",T=o.level,P=o.dataLevel,l=o.schema[v],d=o.schemaPath+o.util.getProperty(v),v=o.errSchemaPath+"/"+v,R=!o.opts.allErrors,O="data"+(P||""),C="valid"+T,$=o.opts.$data&&l&&l.$data,P=$?(N+=" var schema"+T+" = "+o.util.getData(l.$data,P,o.dataPathArr)+"; ","schema"+T):l,T=o.opts.regExp?"regExp":"new RegExp",T=($?(N+=" var "+C+" = true; try { "+C+" = "+T+"("+P+").test("+O+"); } catch(e) { "+C+" = false; } if ( ",$&&(N+=" ("+P+" !== undefined && typeof "+P+" != 'string') || "),N+=" !"+C+") {"):(N+=" if ( ",$&&(N+=" ("+P+" !== undefined && typeof "+P+" != 'string') || "),N+=" !"+o.usePattern(l)+".test("+O+") ) {"),[]),C=(T.push(N),N="",o.createErrors!==!1?(N=(N+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+o.errorPath+" , schemaPath: "+o.util.toQuotedString(v)+" , params: { pattern: ")+($?""+P:""+o.util.toQuotedString(l))+" } ",o.opts.messages!==!1&&(N=(N+=` , message: 'should match pattern "`)+($?"' + "+P+" + '":""+o.util.escapeQuotes(l))+`"' `),o.opts.verbose&&(N=(N=(N+=" , schema: ")+($?"validate.schema"+d:""+o.util.toQuotedString(l)))+" , parentSchema: validate.schema"+o.schemaPath+" , data: "+O+" "),N+=" } "):N+=" {} ",N),N=T.pop();return!o.compositeRule&&R?o.async?N+=" throw new ValidationError(["+C+"]); ":N+=" validate.errors = ["+C+"]; return false; ":N+=" var err = "+C+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",N+="} ",R&&(N+=" else { "),N}},2124:function(s){s.exports=function(o,C,c){var l,d=" ",v=o.level,m=o.dataLevel,R=o.schema[C],O=o.schemaPath+o.util.getProperty(C),$=o.errSchemaPath+"/"+C,P=!o.opts.allErrors,T="data"+(m||""),C="errs__"+v,N=o.util.copy(o),x="",S=(N.level++,"valid"+N.level),b="key"+v,p="idx"+v,g=N.dataLevel=o.dataLevel+1,u="data"+g,y="dataProperties"+v,m=Object.keys(R||{}).filter(z),I=o.schema.patternProperties||{},_=Object.keys(I).filter(z),h=o.schema.additionalProperties,f=m.length||_.length,w=h===!1,E=typeof h=="object"&&Object.keys(h).length,k=o.opts.removeAdditional,L=w||E||k,M=o.opts.ownProperties,B=o.baseId,j=o.schema.required;function z(G){return G!=="__proto__"}if(j&&(!o.opts.$data||!j.$data)&&j.length<o.opts.loopRequired&&(l=o.util.toHash(j)),d+="var "+C+" = errors;var "+S+" = true;",M&&(d+=" var "+y+" = undefined;
1415"),L){if(d+=M?" "+y+" = "+y+" || Object.keys("+T+"); for (var "+p+"=0; "+p+"<"+y+".length; "+p+"++) { var "+b+" = "+y+"["+p+"]; ":" for (var "+b+" in "+T+") { ",f){if(d+=" var isAdditional"+v+" = !(false ",m.length)if(8<m.length)d+=" || validate.schema"+O+".hasOwnProperty("+b+") ";else{var Q=m;if(Q)for(var D=-1,K=Q.length-1;D<K;)Y=Q[D+=1],d+=" || "+b+" == "+o.util.toQuotedString(Y)+" "}if(_.length){var H=_;if(H)for(var A=-1,W=H.length-1;A<W;)Se=H[A+=1],d+=" || "+o.usePattern(Se)+".test("+b+") "}d+=" ); if (isAdditional"+v+") { "}k=="all"?d+=" delete "+T+"["+b+"]; ":(se=o.errorPath,j="' + "+b+" + '",o.opts._errorDataPathProperty&&(o.errorPath=o.util.getPathExpr(o.errorPath,b,o.opts.jsonPointers)),w?k?d+=" delete "+T+"["+b+"]; ":(he=$,$=o.errSchemaPath+"/additionalProperties",(oe=oe||[]).push(d+=" "+S+" = false; "),d="",o.createErrors!==!1?(d+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+o.errorPath+" , schemaPath: "+o.util.toQuotedString($)+" , params: { additionalProperty: '"+j+"' } ",o.opts.messages!==!1&&(d+=" , message: '",o.opts._errorDataPathProperty?d+="is an invalid additional property":d+="should NOT have additional properties",d+="' "),o.opts.verbose&&(d+=" , schema: false , parentSchema: validate.schema"+o.schemaPath+" , data: "+T+" "),d+=" } "):d+=" {} ",de=d,d=oe.pop(),!o.compositeRule&&P?o.async?d+=" throw new ValidationError(["+de+"]); ":d+=" validate.errors = ["+de+"]; return false; ":d+=" var err = "+de+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",$=he,P&&(d+=" break; ")):E&&(k=="failing"?(d+=" var "+C+" = errors; ",L=o.compositeRule,o.compositeRule=N.compositeRule=!0,N.schema=h,N.schemaPath=o.schemaPath+".additionalProperties",N.errSchemaPath=o.errSchemaPath+"/additionalProperties",N.errorPath=o.opts._errorDataPathProperty?o.errorPath:o.util.getPathExpr(o.errorPath,b,o.opts.jsonPointers),re=T+"["+b+"]",N.dataPathArr[g]=b,le=o.validate(N),N.baseId=B,o.util.varOccurences(le,u)<2?d+=" "+o.util.varReplace(le,u,re)+" ":d+=" var "+u+" = "+re+"; "+le+" ",d+=" if (!"+S+") { errors = "+C+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+T+"["+b+"]; } ",o.compositeRule=N.compositeRule=L):(N.schema=h,N.schemaPath=o.schemaPath+".additionalProperties",N.errSchemaPath=o.errSchemaPath+"/additionalProperties",N.errorPath=o.opts._errorDataPathProperty?o.errorPath:o.util.getPathExpr(o.errorPath,b,o.opts.jsonPointers),re=T+"["+b+"]",N.dataPathArr[g]=b,le=o.validate(N),N.baseId=B,o.util.varOccurences(le,u)<2?d+=" "+o.util.varReplace(le,u,re)+" ":d+=" var "+u+" = "+re+"; "+le+" ",P&&(d+=" if (!"+S+") break; "))),o.errorPath=se),f&&(d+=" } "),d+=" } ",P&&(d+=" if ("+S+") { ",x+="}")}var F=o.opts.useDefaults&&!o.compositeRule;if(m.length){var U=m;if(U)for(var Y,ee=-1,X=U.length-1;ee<X;){var q,ne,se,he,ie,oe,de,me=R[Y=U[ee+=1]];(o.opts.strictKeywords?typeof me=="object"&&0<Object.keys(me).length||me===!1:o.util.schemaHasRules(me,o.RULES.all))&&(re=T+(ie=o.util.getProperty(Y)),q=F&&me.default!==void 0,N.schema=me,N.schemaPath=O+ie,N.errSchemaPath=$+"/"+o.util.escapeFragment(Y),N.errorPath=o.util.getPath(o.errorPath,Y,o.opts.jsonPointers),N.dataPathArr[g]=o.util.toQuotedString(Y),le=o.validate(N),N.baseId=B,o.util.varOccurences(le,u)<2?(le=o.util.varReplace(le,u,re),ne=re):d+=" var "+(ne=u)+" = "+re+"; ",q?d+=" "+le+" ":(l&&l[Y]?(d+=" if ( "+ne+" === undefined ",M&&(d+=" || ! Object.prototype.hasOwnProperty.call("+T+", '"+o.util.escapeQuotes(Y)+"') "),d+=") { "+S+" = false; ",se=o.errorPath,he=$,ie=o.util.escapeQuotes(Y),o.opts._errorDataPathProperty&&(o.errorPath=o.util.getPath(se,Y,o.opts.jsonPointers)),$=o.errSchemaPath+"/required",(oe=oe||[]).push(d),d="",o.createErrors!==!1?(d+=" { keyword: 'required' , dataPath: (dataPath || '') + "+o.errorPath+" , schemaPath: "+o.util.toQuotedString($)+" , params: { missingProperty: '"+ie+"' } ",o.opts.messages!==!1&&(d+=" , message: '",o.opts._errorDataPathProperty?d+="is a required property":d+="should have required property \\'"+ie+"\\'",d+="' "),o.opts.verbose&&(d+=" , schema: validate.schema"+O+" , parentSchema: validate.schema"+o.schemaPath+" , data: "+T+" "),d+=" } "):d+=" {} ",de=d,d=oe.pop(),!o.compositeRule&&P?o.async?d+=" throw new ValidationError(["+de+"]); ":d+=" validate.errors = ["+de+"]; return false; ":d+=" var err = "+de+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++;
1415 ",$=he,o.errorPath=se,d+=" } else { "):P?(d+=" if ( "+ne+" === undefined ",M&&(d+=" || ! Object.prototype.hasOwnProperty.call("+T+", '"+o.util.escapeQuotes(Y)+"') "),d+=") { "+S+" = true; } else { "):(d+=" if ("+ne+" !== undefined ",M&&(d+=" && Object.prototype.hasOwnProperty.call("+T+", '"+o.util.escapeQuotes(Y)+"') "),d+=" ) { "),d+=" "+le+" } ")),P&&(d+=" if ("+S+") { ",x+="}")}}if(_.length){var be=_;if(be)for(var Se,V=-1,te=be.length-1;V<te;){var re,le,me=I[Se=be[V+=1]];(o.opts.strictKeywords?typeof me=="object"&&0<Object.keys(me).length||me===!1:o.util.schemaHasRules(me,o.RULES.all))&&(N.schema=me,N.schemaPath=o.schemaPath+".patternProperties"+o.util.getProperty(Se),N.errSchemaPath=o.errSchemaPath+"/patternProperties/"+o.util.escapeFragment(Se),d=(d+=M?" "+y+" = "+y+" || Object.keys("+T+"); for (var "+p+"=0; "+p+"<"+y+".length; "+p+"++) { var "+b+" = "+y+"["+p+"]; ":" for (var "+b+" in "+T+") { ")+" if ("+o.usePattern(Se)+".test("+b+")) { ",N.errorPath=o.util.getPathExpr(o.errorPath,b,o.opts.jsonPointers),re=T+"["+b+"]",N.dataPathArr[g]=b,le=o.validate(N),N.baseId=B,o.util.varOccurences(le,u)<2?d+=" "+o.util.varReplace(le,u,re)+" ":d+=" var "+u+" = "+re+"; "+le+" ",P&&(d+=" if (!"+S+") break; "),d+=" } ",P&&(d+=" else "+S+" = true; "),d+=" } ",P)&&(d+=" if ("+S+") { ",x+="}")}}return P&&(d+=" "+x+" if ("+C+" == errors) {"),d}},4926:function(s){s.exports=function(o,S,c){var l,d,v,R,O,$,P,T=" ",C=o.level,p=o.dataLevel,N=o.schema[S],x=o.schemaPath+o.util.getProperty(S),S=o.errSchemaPath+"/"+S,b=!o.opts.allErrors,p="data"+(p||""),g="errs__"+C,u=o.util.copy(o),y=(u.level++,"valid"+u.level);return T+="var "+g+" = errors;",(o.opts.strictKeywords?typeof N=="object"&&0<Object.keys(N).length||N===!1:o.util.schemaHasRules(N,o.RULES.all))&&(u.schema=N,u.schemaPath=x,u.errSchemaPath=S,N="idx"+C,d="i"+C,v="' + "+(l="key"+C)+" + '",R="data"+(u.dataLevel=o.dataLevel+1),P="dataProperties"+C,$=o.opts.ownProperties,O=o.baseId,$&&(T+=" var "+P+" = undefined; "),T=T+($?" "+P+" = "+P+" || Object.keys("+p+"); for (var "+N+"=0; "+N+"<"+P+".length; "+N+"++) { var "+l+" = "+P+"["+N+"]; ":" for (var "+l+" in "+p+") { ")+" var startErrs"+C+" = errors; ",$=l,P=o.compositeRule,o.compositeRule=u.compositeRule=!0,N=o.validate(u),u.baseId=O,o.util.varOccurences(N,R)<2?T+=" "+o.util.varReplace(N,R,$)+" ":T+=" var "+R+" = "+$+"; "+N+" ",o.compositeRule=u.compositeRule=P,T+=" if (!"+y+") { for (var "+d+"=startErrs"+C+"; "+d+"<errors; "+d+"++) { vErrors["+d+"].propertyName = "+l+"; } var err = ",o.createErrors!==!1?(T+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+o.errorPath+" , schemaPath: "+o.util.toQuotedString(S)+" , params: { propertyName: '"+v+"' } ",o.opts.messages!==!1&&(T+=" , message: 'property name \\'"+v+"\\' is invalid' "),o.opts.verbose&&(T+=" , schema: validate.schema"+x+" , parentSchema: validate.schema"+o.schemaPath+" , data: "+p+" "),T+=" } "):T+=" {} ",T+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!o.compositeRule&&b&&(o.async?T+=" throw new ValidationError(vErrors); ":T+=" validate.errors = vErrors; return false; "),b&&(T+=" break; "),T+=" } }"),b&&(T+=" if ("+g+" == errors) {"),T}},7096:function(s){s.exports=function(o,$,c){var l,d,v=" ",C=o.level,R=o.dataLevel,O=o.schema[$],$=o.errSchemaPath+"/"+$,P=!o.opts.allErrors,T="data"+(R||""),C="valid"+C;if(O=="#"||O=="#/")d=o.isRoot?(l=o.async,"validate"):(l=o.root.schema.$async===!0,"root.refVal[0]");else{var N=o.resolveRef(o.baseId,O,o.isRoot);if(N===void 0){var x=o.MissingRefError.message(o.baseId,O);if(o.opts.missingRefs=="fail")o.logger.error(x),(S=S||[]).push(v),v="",o.createErrors!==!1?(v+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+o.errorPath+" , schemaPath: "+o.util.toQuotedString($)+" , params: { ref: '"+o.util.escapeQuotes(O)+"' } ",o.opts.messages!==!1&&(v+=" , message: 'can\\'t resolve reference "+o.util.escapeQuotes(O)+"' "),o.opts.verbose&&(v+=" , schema: "+o.util.toQuotedString(O)+" , parentSchema: validate.schema"+o.schemaPath+" , data: "+T+" "),v+=" } "):v+=" {} ",$=v,v=S.pop(),!o.compositeRule&&P?o.async?v+=" throw new ValidationError(["+$+"]); ":v+=" validate.errors = ["+$+"]; return false; ":v+=" var err = "+$+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",P&&(v+=" if (false) { ");else{if(o.opts.missingRefs!="ignore")throw new o.MissingRefError(o.baseId,O,x);o.logger.warn(x),P&&(v+=" if (true) { ")}}else N.inline?(($=o.util.copy(o)).level++,x="valid"+$.level,$.schema=N.schema,$.schemaPath="",$.errSchemaPath=O,v+=" "+o.validate($).replace(/validate\.schema/g,N.code)+" ",P&&(v+=" if ("+x+") { ")):(l=N.$async===!0||o.async&&N.$async!==!1,d=N.code)}if(d){(S=S||[]).push(v),v="",o.opts.passContext?v+=" "+d+".call(this, ":v+=" "+d+"( ",v+=" "+T+", (dataPath || '')",o.errorPath!='""'&&(v+=" + "+o.errorPath);var S,O=R?"data"+(R-1||""):"parentData",$=v+=" , "+O+" , "+(R?o.dataPathArr[R]:"parentDataProperty")+", rootData) ";if(v=S.pop(),l){if(!o.async)throw new Error("async schema referenced by sync schema");P&&(v+=" var "+C+"; "),v+=" try { await "+$+"; ",P&&(v+=" "+C+" = true; "),v+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",P&&(v+=" "+C+" = false; "),v+=" } ",P&&(v+=" if ("+C+") { ")}else v+=" if (!"+$+") { if (vErrors === null) vErrors = "+d+".errors; else vErrors = vErrors.concat("+d+".errors); errors = vErrors.length; } ",P&&(v+=" else { ")}return v}},2e3:function(s){s.exports=function(o,$,c){var l=" ",d=o.level,N=o.dataLevel,v=o.schema[$],R=o.schemaPath+o.util.getProperty($),O=o.errSchemaPath+"/"+$,$=!o.opts.allErrors,P="data"+(N||""),T="valid"+d,C=o.opts.$data&&v&&v.$data,N=(C&&(l+=" var schema"+d+" = "+o.util.getData(v.$data,N,o.dataPathArr)+"; "),"schema"+d);if(!C)if(v.length<o.opts.loopRequired&&o.schema.properties&&Object.keys(o.schema.properties).length){var x=[],S=v;if(S)for(var b=-1,p=S.length-1;b<p;){var g=S[b+=1],u=o.schema.properties[g];u&&(o.opts.strictKeywords?typeof u=="object"&&0<Object.keys(u).length||u===!1:o.util.schemaHasRules(u,o.RULES.all))||(x[x.length]=g)}}else x=v;if(C||x.length){var y=o.errorPath,v=C||x.length>=o.opts.loopRequired,m=o.opts.ownProperties;if($){if(l+=" var missing"+d+"; ",v){C||(l+=" var "+N+" = validate.schema"+R+"; ");var I="' + "+(k="schema"+d+"["+(f="i"+d)+"]")+" + '";o.opts._errorDataPathProperty&&(o.errorPath=o.util.getPathExpr(y,k,o.opts.jsonPointers)),l+=" var "+T+" = true; ",C&&(l+=" if (schema"+d+" === undefined) "+T+" = true; else if (!Array.isArray(schema"+d+")) "+T+" = false; else {"),l+=" for (var "+f+" = 0; "+f+" < "+N+".length; "+f+"++) { "+T+" = "+P+"["+N+"["+f+"]] !== undefined ",m&&(l+=" && Object.prototype.hasOwnProperty.call("+P+", "+N+"["+f+"]) "),l+="; if (!"+T+") break; } ",C&&(l+=" } "),(E=E||[]).push(l+=" if (!"+T+") { "),l="",o.createErrors!==!1?(l+=" { keyword: 'required' , dataPath: (dataPath || '') + "+o.errorPath+" , schemaPath: "+o.util.toQuotedString(O)+" , params: { missingProperty: '"+I+"' } ",o.opts.messages!==!1&&(l+=" , message: '",o.opts._errorDataPathProperty?l+="is a required property":l+="should have required property \\'"+I+"\\'",l+="' "),o.opts.verbose&&(l+=" , schema: validate.schema"+R+" , parentSchema: validate.schema"+o.schemaPath+" , data: "+P+" "),l+=" } "):l+=" {} ";var _=l,l=E.pop()}else{l+=" if ( ";var h=x;if(h)for(var f=-1,w=h.length-1;f<w;)M=h[f+=1],f&&(l+=" || "),l+=" ( ( "+(Q=P+(z=o.util.getProperty(M)))+" === undefined ",m&&(l+=" || ! Object.prototype.hasOwnProperty.call("+P+", '"+o.util.escapeQuotes(M)+"') "),l+=") && (missing"+d+" = "+o.util.toQuotedString(o.opts.jsonPointers?M:z)+") ) ";l+=") { ",I="' + "+(k="missing"+d)+" + '",o.opts._errorDataPathProperty&&(o.errorPath=o.opts.jsonPointers?o.util.getPathExpr(y,k,!0):y+" + "+k),(E=E||[]).push(l),l="",o.createErrors!==!1?(l+=" { keyword: 'required' , dataPath: (dataPath || '') + "+o.errorPath+" , schemaPath: "+o.util.toQuotedString(O)+" , params: { missingProperty: '"+I+"' } ",o.opts.messages!==!1&&(l+=" , message: '",o.opts._errorDataPathProperty?l+="is a required property":l+="should have required property \\'"+I+"\\'",l+="' "),o.opts.verbose&&(l+=" , schema: validate.schema"+R+" , parentSchema: validate.schema"+o.schemaPath+" , data: "+P+" "),l+=" } "):l+=" {} ";var E,_=l;l=E.pop()}!o.compositeRule&&$?o.async?l+=" throw new ValidationError(["+_+"]); ":l+=" validate.errors = ["+_+"]; return false; ":l+=" var err = "+_+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l+=" } else { "}else if(v){C||(l+=" var "+N+" = validate.schema"+R+"; ");var k,I="' + "+(k="schema"+d+"["+(f="i"+d)+"]")+" + '";o.opts._errorDataPathProperty&&(o.errorPath=o.util.getPathExpr(y,k,o.opts.jsonPointers)),
1415C&&(l+=" if ("+N+" && !Array.isArray("+N+")) { var err = ",o.createErrors!==!1?(l+=" { keyword: 'required' , dataPath: (dataPath || '') + "+o.errorPath+" , schemaPath: "+o.util.toQuotedString(O)+" , params: { missingProperty: '"+I+"' } ",o.opts.messages!==!1&&(l+=" , message: '",o.opts._errorDataPathProperty?l+="is a required property":l+="should have required property \\'"+I+"\\'",l+="' "),o.opts.verbose&&(l+=" , schema: validate.schema"+R+" , parentSchema: validate.schema"+o.schemaPath+" , data: "+P+" "),l+=" } "):l+=" {} ",l+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+N+" !== undefined) { "),l+=" for (var "+f+" = 0; "+f+" < "+N+".length; "+f+"++) { if ("+P+"["+N+"["+f+"]] === undefined ",m&&(l+=" || ! Object.prototype.hasOwnProperty.call("+P+", "+N+"["+f+"]) "),l+=") { var err = ",o.createErrors!==!1?(l+=" { keyword: 'required' , dataPath: (dataPath || '') + "+o.errorPath+" , schemaPath: "+o.util.toQuotedString(O)+" , params: { missingProperty: '"+I+"' } ",o.opts.messages!==!1&&(l+=" , message: '",o.opts._errorDataPathProperty?l+="is a required property":l+="should have required property \\'"+I+"\\'",l+="' "),o.opts.verbose&&(l+=" , schema: validate.schema"+R+" , parentSchema: validate.schema"+o.schemaPath+" , data: "+P+" "),l+=" } "):l+=" {} ",l+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",C&&(l+=" } ")}else{var L=x;if(L)for(var M,B=-1,j=L.length-1;B<j;){M=L[B+=1];var z=o.util.getProperty(M),I=o.util.escapeQuotes(M),Q=P+z;o.opts._errorDataPathProperty&&(o.errorPath=o.util.getPath(y,M,o.opts.jsonPointers)),l+=" if ( "+Q+" === undefined ",m&&(l+=" || ! Object.prototype.hasOwnProperty.call("+P+", '"+o.util.escapeQuotes(M)+"') "),l+=") { var err = ",o.createErrors!==!1?(l+=" { keyword: 'required' , dataPath: (dataPath || '') + "+o.errorPath+" , schemaPath: "+o.util.toQuotedString(O)+" , params: { missingProperty: '"+I+"' } ",o.opts.messages!==!1&&(l+=" , message: '",o.opts._errorDataPathProperty?l+="is a required property":l+="should have required property \\'"+I+"\\'",l+="' "),o.opts.verbose&&(l+=" , schema: validate.schema"+R+" , parentSchema: validate.schema"+o.schemaPath+" , data: "+P+" "),l+=" } "):l+=" {} ",l+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}o.errorPath=y}else $&&(l+=" if (true) {");return l}},7812:function(s){s.exports=function(o,$,c){var l,d=" ",v=o.level,x=o.dataLevel,R=o.schema[$],O=o.schemaPath+o.util.getProperty($),$=o.errSchemaPath+"/"+$,P=!o.opts.allErrors,T="data"+(x||""),C="valid"+v,N=o.opts.$data&&R&&R.$data,x=N?(d+=" var schema"+v+" = "+o.util.getData(R.$data,x,o.dataPathArr)+"; ","schema"+v):R;return(R||N)&&o.opts.uniqueItems!==!1?(N&&(d+=" var "+C+"; if ("+x+" === false || "+x+" === undefined) "+C+" = true; else if (typeof "+x+" != 'boolean') "+C+" = false; else { "),d+=" var i = "+T+".length , "+C+" = true , j; if (i > 1) { ",v=o.schema.items&&o.schema.items.type,x=Array.isArray(v),!v||v=="object"||v=="array"||x&&(0<=v.indexOf("object")||0<=v.indexOf("array"))?d+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+T+"[i], "+T+"[j])) { "+C+" = false; break outer; } } } ":(d=(d+=" var itemIndices = {}, item; for (;i--;) { var item = "+T+"[i]; ")+" if ("+o.util["checkDataType"+(x?"s":"")](v,"item",o.opts.strictNumbers,!0)+") continue; ",x&&(d+=` if (typeof item == 'string') item = '"' + item; `),d+=" if (typeof itemIndices[item] == 'number') { "+C+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "),d+=" } ",N&&(d+=" } "),(l=l||[]).push(d+=" if (!"+C+") { "),d="",o.createErrors!==!1?(d+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+o.errorPath+" , schemaPath: "+o.util.toQuotedString($)+" , params: { i: i, j: j } ",o.opts.messages!==!1&&(d+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),o.opts.verbose&&(d=(d+=" , schema: ")+(N?"validate.schema"+O:""+R)+" , parentSchema: validate.schema"+o.schemaPath+" , data: "+T+" "),d+=" } "):d+=" {} ",v=d,d=l.pop(),!o.compositeRule&&P?o.async?d+=" throw new ValidationError(["+v+"]); ":d+=" validate.errors = ["+v+"]; return false; ":d+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",d+=" } ",P&&(d+=" else { ")):P&&(d+=" if (true) { "),d}},1035:function(s){s.exports=function(o,a,c){var l="",d=o.schema.$async===!0,v=o.util.schemaHasRulesExcept(o.schema,o.RULES.all,"$ref"),R=o.self._getId(o.schema);if(o.opts.strictKeywords){var O=o.util.schemaUnknownRules(o.schema,o.RULES.keywords);if(O){if(O="unknown keyword: "+O,o.opts.strictKeywords!=="log")throw new Error(O);o.logger.warn(O)}}
1415if(o.isTop&&(l+=" var validate = ",d&&(o.async=!0,l+="async "),l+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",R)&&(o.opts.sourceCode||o.opts.processCode)&&(l+=" /*# sourceURL="+R+" */ "),typeof o.schema=="boolean"||!v&&!o.schema.$ref)P=o.level,T=o.dataLevel,Q=o.schema[a="false schema"],I=o.schemaPath+o.util.getProperty(a),_=o.errSchemaPath+"/"+a,S=!o.opts.allErrors,C="data"+(T||""),x="valid"+P,o.schema===!1?(o.isTop?S=!0:l+=" var "+x+" = false; ",(ee=ee||[]).push(l),l="",o.createErrors!==!1?(l+=" { keyword: 'false schema' , dataPath: (dataPath || '') + "+o.errorPath+" , schemaPath: "+o.util.toQuotedString(_)+" , params: {} ",o.opts.messages!==!1&&(l+=" , message: 'boolean schema is false' "),o.opts.verbose&&(l+=" , schema: false , parentSchema: validate.schema"+o.schemaPath+" , data: "+C+" "),l+=" } "):l+=" {} ",M=l,l=ee.pop(),!o.compositeRule&&S?o.async?l+=" throw new ValidationError(["+M+"]); ":l+=" validate.errors = ["+M+"]; return false; ":l+=" var err = "+M+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "):o.isTop?l+=d?" return data; ":" validate.errors = null; return true; ":l+=" var "+x+" = true; ",o.isTop&&(l+=" }; return validate; ");else{if(o.isTop){var $=o.isTop,P=o.level=0,T=o.dataLevel=0,C="data";if(o.rootId=o.resolve.fullPath(o.self._getId(o.root.schema)),o.baseId=o.baseId||o.rootId,delete o.isTop,o.dataPathArr=[""],o.schema.default!==void 0&&o.opts.useDefaults&&o.opts.strictDefaults){var N="default is ignored in the schema root";if(o.opts.strictDefaults!=="log")throw new Error(N);o.logger.warn(N)}l=(l+=" var vErrors = null; ")+" var errors = 0; if (rootData === undefined) rootData = data; "}else{if(P=o.level,C="data"+((T=o.dataLevel)||""),R&&(o.baseId=o.resolve.url(o.baseId,R)),d&&!o.async)throw new Error("async schema in sync schema");l+=" var errs_"+P+" = errors;"}var x="valid"+P,S=!o.opts.allErrors,b="",p="",g=o.schema.type,u=Array.isArray(g);if(g&&o.opts.nullable&&o.schema.nullable===!0&&(u?g.indexOf("null")==-1&&(g=g.concat("null")):g!="null"&&(g=[g,"null"],u=!0)),u&&g.length==1&&(g=g[0],u=!1),o.schema.$ref&&v){if(o.opts.extendRefs=="fail")throw new Error('$ref: validation keywords used in schema at path "'+o.errSchemaPath+'" (see option extendRefs)');o.opts.extendRefs!==!0&&(v=!1,o.logger.warn('$ref: keywords ignored in schema at path "'+o.errSchemaPath+'"'))}if(o.schema.$comment&&o.opts.$comment&&(l+=" "+o.RULES.all.$comment.code(o,"$comment")),g){o.opts.coerceTypes&&(y=o.util.coerceToTypes(o.opts.coerceTypes,g));var y,m=o.RULES.types[g];if(y||u||m===!0||m&&!he(m)){var I=o.schemaPath+".type",_=o.errSchemaPath+"/type",I=o.schemaPath+".type",_=o.errSchemaPath+"/type";if(l+=" if ("+o.util[u?"checkDataTypes":"checkDataType"](g,C,o.opts.strictNumbers,!0)+") { ",y){var h="dataType"+P,f="coerced"+P,w=(l+=" var "+h+" = typeof "+C+"; var "+f+" = undefined; ",o.opts.coerceTypes=="array"&&(l+=" if ("+h+" == 'object' && Array.isArray("+C+") && "+C+".length == 1) { "+C+" = "+C+"[0]; "+h+" = typeof "+C+"; if ("+o.util.checkDataType(o.schema.type,C,o.opts.strictNumbers)+") "+f+" = "+C+"; } "),l+=" if ("+f+" !== undefined) ; ",y);if(w)for(var E,k=-1,L=w.length-1;k<L;)(E=w[k+=1])=="string"?l+=" else if ("+h+" == 'number' || "+h+" == 'boolean') "+f+" = '' + "+C+"; else if ("+C+" === null) "+f+" = ''; ":E=="number"||E=="integer"?(l+=" else if ("+h+" == 'boolean' || "+C+" === null || ("+h+" == 'string' && "+C+" && "+C+" == +"+C+" ",E=="integer"&&(l+=" && !("+C+" % 1)"),l+=")) "+f+" = +"+C+"; "):E=="boolean"?l+=" else if ("+C+" === 'false' || "+C+" === 0 || "+C+" === null) "+f+" = false; else if ("+C+" === 'true' || "+C+" === 1) "+f+" = true; ":E=="null"?l+=" else if ("+C+" === '' || "+C+" === 0 || "+C+" === false) "+f+" = null; ":o.opts.coerceTypes=="array"&&E=="array"&&(l+=" else if ("+h+" == 'string' || "+h+" == 'number' || "+h+" == 'boolean' || "+C+" == null) "+f+" = ["+C+"]; ");(ee=ee||[]).push(l+=" else { "),l="",o.createErrors!==!1?(l=(l+=" { keyword: 'type' , dataPath: (dataPath || '') + "+o.errorPath+" , schemaPath: "+o.util.toQuotedString(_)+" , params: { type: '")+(u?""+g.join(","):""+g)+"' } ",o.opts.messages!==!1&&(l=(l+=" , message: 'should be ")+(u?""+g.join(","):""+g)+"' "),o.opts.verbose&&(l+=" , schema: validate.schema"+I+" , parentSchema: validate.schema"+o.schemaPath+" , data: "+C+" "),l+=" } "):l+=" {} ";var M=l,O=(l=ee.pop(),!o.compositeRule&&S?o.async?l+=" throw new ValidationError(["+M+"]); ":l+=" validate.errors = ["+M+"]; return false; ":l+=" var err = "+M+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",T?"data"+(T-1||""):"parentData");l=l+(" } if ("+f+" !== undefined) { ")+(" "+C+" = "+f+"; "),T||(l+="if ("+O+" !== undefined)"),l+=" "+O+"["+(T?o.dataPathArr[T]:"parentDataProperty")+"] = "+f+"; } "}else M=((ee=ee||[]).push(l),l="",o.createErrors!==!1?(l=(l+=" { keyword: 'type' , dataPath: (dataPath || '') + "+o.errorPath+" , schemaPath: "+o.util.toQuotedString(_)+" , params: { type: '")+(u?""+g.join(","):""+g)+"' } ",o.opts.messages!==!1&&(l=(l+=" , message: 'should be ")+(u?""+g.join(","):""+g)+"' "),o.opts.verbose&&(l+=" , schema: validate.schema"+I+" , parentSchema: validate.schema"+o.schemaPath+" , data: "+C+" "),l+=" } "):l+=" {} ",l),l=ee.pop(),!o.compositeRule&&S?o.async?l+=" throw new ValidationError(["+M+"]); ":l+=" validate.errors = ["+M+"]; return false; ":l+=" var err = "+M+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";l+=" } "}}if(o.schema.$ref&&!v)l+=" "+o.RULES.all.$ref.code(o,"$ref")+" ",S&&(l=(l+=" } if (errors === ")+($?"0":"errs_"+P)+") { ",p+="}");else{var B=o.RULES;if(B){for(var j=-1,z=B.length-1;j<z;
1415)if(he(m=B[j+=1])){if(m.type&&(l+=" if ("+o.util.checkDataType(m.type,C,o.opts.strictNumbers)+") { "),o.opts.useDefaults){if(m.type=="object"&&o.schema.properties){var Q=o.schema.properties,D=Object.keys(Q);if(D){for(var K,H=-1,A=D.length-1;H<A;)if((U=Q[K=D[H+=1]]).default!==void 0){var W=C+o.util.getProperty(K);if(o.compositeRule){if(o.opts.strictDefaults){if(N="default is ignored for: "+W,o.opts.strictDefaults!=="log")throw new Error(N);o.logger.warn(N)}}else l+=" if ("+W+" === undefined ",o.opts.useDefaults=="empty"&&(l+=" || "+W+" === null || "+W+" === '' "),l+=" ) "+W+" = ",o.opts.useDefaults=="shared"?l+=" "+o.useDefault(U.default)+" ":l+=" "+JSON.stringify(U.default)+" ",l+="; "}}}else if(m.type=="array"&&Array.isArray(o.schema.items)){var F=o.schema.items;if(F){for(var U,k=-1,Y=F.length-1;k<Y;)if((U=F[k+=1]).default!==void 0)if(W=C+"["+k+"]",o.compositeRule){if(o.opts.strictDefaults){if(N="default is ignored for: "+W,o.opts.strictDefaults!=="log")throw new Error(N);o.logger.warn(N)}}else l+=" if ("+W+" === undefined ",o.opts.useDefaults=="empty"&&(l+=" || "+W+" === null || "+W+" === '' "),l+=" ) "+W+" = ",o.opts.useDefaults=="shared"?l+=" "+o.useDefault(U.default)+" ":l+=" "+JSON.stringify(U.default)+" ",l+="; "}}}var ee,X=m.rules;if(X)for(var q,ne=-1,se=X.length-1;ne<se;)ie(q=X[ne+=1])&&(q=q.code(o,q.keyword,m.type))&&(l+=" "+q+" ",S)&&(b+="}");S&&(l+=" "+b+" ",b=""),m.type&&(l+=" } ",g)&&g===m.type&&!y&&(l+=" else { ",I=o.schemaPath+".type",_=o.errSchemaPath+"/type",(ee=ee||[]).push(l),l="",o.createErrors!==!1?(l=(l+=" { keyword: 'type' , dataPath: (dataPath || '') + "+o.errorPath+" , schemaPath: "+o.util.toQuotedString(_)+" , params: { type: '")+(u?""+g.join(","):""+g)+"' } ",o.opts.messages!==!1&&(l=(l+=" , message: 'should be ")+(u?""+g.join(","):""+g)+"' "),o.opts.verbose&&(l+=" , schema: validate.schema"+I+" , parentSchema: validate.schema"+o.schemaPath+" , data: "+C+" "),l+=" } "):l+=" {} ",M=l,l=ee.pop(),!o.compositeRule&&S?o.async?l+=" throw new ValidationError(["+M+"]); ":l+=" validate.errors = ["+M+"]; return false; ":l+=" var err = "+M+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l+=" } "),S&&(l=(l+=" if (errors === ")+($?"0":"errs_"+P)+") { ",p+="}")}}}S&&(l+=" "+p+" "),$?l=l+(d?" if (errors === 0) return data; else throw new ValidationError(vErrors); ":" validate.errors = vErrors; return errors === 0; ")+" }; return validate;":l+=" var "+x+" = errors === errs_"+P+";"}return l;function he(oe){for(var de=oe.rules,me=0;me<de.length;me++)if(ie(de[me]))return 1}function ie(oe){return o.schema[oe.keyword]!==void 0||oe.implements&&(de=>{for(var me=de.implements,be=0;be<me.length;be++)if(o.schema[me[be]]!==void 0)return 1})(oe)}}},413:function(s,o,a){var c=/^[a-z_$][a-z0-9_$-]*$/i,l=a(8050),d=a(9407);function v(R,O){v.errors=null;var $=this._validateKeyword=this._validateKeyword||this.compile(d,!0);if($(R))return!0;if(v.errors=$.errors,O)throw new Error("custom keyword definition is invalid: "+this.errorsText($.errors));return!1}s.exports={add:function(R,O){var $=this.RULES;if($.keywords[R])throw new Error("Keyword "+R+" is already defined");if(!c.test(R))throw new Error("Keyword "+R+" is not a valid identifier");if(O){this.validateKeyword(O,!0);var P=O.type;if(Array.isArray(P))for(var T=0;T<P.length;T++)N(R,P[T],O);else N(R,P,O);var C=O.metaSchema;C&&(O.$data&&this._opts.$data&&(C={anyOf:[C,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),O.validateSchema=this.compile(C,!0))}function N(x,S,b){for(var p,g=0;g<$.length;g++){var u=$[g];if(u.type==S){p=u;break}}p||$.push(p={type:S,rules:[]}),b={keyword:x,definition:b,custom:!0,code:l,implements:b.implements},p.rules.push(b),$.custom[x]=b}return $.keywords[R]=$.all[R]=!0,this},get:function(R){var O=this.RULES.custom[R];return O?O.definition:this.RULES.keywords[R]||!1},remove:function(R){var O=this.RULES;delete O.keywords[R],delete O.all[R],delete O.custom[R];for(var $=0;$<O.length;$++)for(var P=O[$].rules,T=0;T<P.length;T++)if(P[T].keyword==R){P.splice(T,1);break}return this},validate:v}},5215:function(s){s.exports=function o(a,c){if(a===c)return!0;
1415if(a&&c&&typeof a=="object"&&typeof c=="object"){if(a.constructor!==c.constructor)return!1;var l,d,v;if(Array.isArray(a)){if((l=a.length)!=c.length)return!1;for(d=l;d--!=0;)if(!o(a[d],c[d]))return!1}else{if(a.constructor===RegExp)return a.source===c.source&&a.flags===c.flags;if(a.valueOf!==Object.prototype.valueOf)return a.valueOf()===c.valueOf();if(a.toString!==Object.prototype.toString)return a.toString()===c.toString();if((l=(v=Object.keys(a)).length)!==Object.keys(c).length)return!1;for(d=l;d--!=0;)if(!Object.prototype.hasOwnProperty.call(c,v[d]))return!1;for(d=l;d--!=0;){var R=v[d];if(!o(a[R],c[R]))return!1}}return!0}return a!=a&&c!=c}},9306:function(s){s.exports=function(o,a){var c,l=typeof(a=typeof(a=a||{})=="function"?{cmp:a}:a).cycles=="boolean"&&a.cycles,d=a.cmp&&(c=a.cmp,function(R){return function(O,$){return O={key:O,value:R[O]},c(O,{key:$,value:R[$]})}}),v=[];return(function R(O){if((O=O&&O.toJSON&&typeof O.toJSON=="function"?O.toJSON():O)!==void 0){if(typeof O=="number")return isFinite(O)?""+O:"null";if(typeof O!="object")return JSON.stringify(O);if(Array.isArray(O)){for(T="[",C=0;C<O.length;C++)C&&(T+=","),T+=R(O[C])||"null";return T+"]"}if(O===null)return"null";if(v.indexOf(O)!==-1){if(l)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}for(var $=v.push(O)-1,P=Object.keys(O).sort(d&&d(O)),T="",C=0;C<P.length;C++){var N=P[C],x=R(O[N]);x&&(T&&(T+=","),T+=JSON.stringify(N)+":"+x)}return v.splice($,1),"{"+T+"}"}})(o)}},1342:function(s){s.exports=function o(P,T){function l(g){return o.insensitive&&(""+g).toLowerCase()||""+g}var d,v,S=/(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,x=/(^[ ]*|[ ]*$)/g,R=/(^([\w ]+,?[\w ]+)?[\w ]+,?[\w ]+\d+:\d+(:\d+)?[\w ]?|^\d{1,4}[\/\-]\d{1,4}[\/\-]\d{1,4}|^\w+, \w+ \d+, \d{4})/,O=/^0x[0-9a-f]+$/i,$=/^0/,P=l(P).replace(x,"")||"",T=l(T).replace(x,"")||"",C=P.replace(S,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),N=T.replace(S,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),x=parseInt(P.match(O),16)||C.length!==1&&P.match(R)&&Date.parse(P),S=parseInt(T.match(O),16)||x&&T.match(R)&&Date.parse(T)||null;if(S){if(x<S)return-1;if(S<x)return 1}for(var b=0,p=Math.max(C.length,N.length);b<p;b++){if(d=!(C[b]||"").match($)&&parseFloat(C[b])||C[b]||0,v=!(N[b]||"").match($)&&parseFloat(N[b])||N[b]||0,isNaN(d)!==isNaN(v))return isNaN(d)?1:-1;if(typeof d!=typeof v&&(d+="",v+=""),d<v)return-1;if(v<d)return 1}return 0}},9151:function(s,o){function a(D){return D!==null&&Object.prototype.toString.call(D)==="[object Array]"}function c(D){return D!==null&&Object.prototype.toString.call(D)==="[object Object]"}function l(D,K){if(D!==K){if(Object.prototype.toString.call(D)!==Object.prototype.toString.call(K))return!1;if(a(D)===!0){if(D.length!==K.length)return!1;for(var H=0;H<D.length;H++)if(l(D[H],K[H])===!1)return!1}else{if(c(D)!==!0)return!1;var A,W,F={};for(A in D)if(hasOwnProperty.call(D,A)){if(l(D[A],K[A])===!1)return!1;F[A]=!0}for(W in K)if(hasOwnProperty.call(K,W)&&F[W]!==!0)return!1}}return!0}function d(D){if(D===""||D===!1||D===null||a(D)&&D.length===0)return!0;if(c(D)){for(var K in D)if(D.hasOwnProperty(K))return!1;return!0}return!1}function v(D){return"0"<=D&&D<="9"||D==="-"}function R(){}function O(){}function $(D){this.runtime=D}function P(D){this._interpreter=D,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[0]}]},avg:{_func:this._functionAvg,_signature:[{types:[8]}]},ceil:{_func:this._functionCeil,_signature:[{types:[0]}]},contains:{_func:this._functionContains,_signature:[{types:[2,3]},{types:[1]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[2]},{types:[2]}]},floor:{_func:this._functionFloor,_signature:[{types:[0]}]},length:{_func:this._functionLength,_signature:[{types:[2,3,4]}]},map:{_func:this._functionMap,_signature:[{types:[6]},{types:[3]}]},max:{_func:this._functionMax,_signature:[{types:[8,9]}]},merge:{_func:this._functionMerge,_signature:[{types:[4],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[3]},{types:[6]}]},sum:{_func:this._functionSum,_signature:[{types:[8]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[2]},{types:[2]}]},min:{_func:this._functionMin,_signature:[{types:[8,9]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[3]},{types:[6]}]},type:{_func:this._functionType,_signature:[{types:[1]}]},keys:{_func:this._functionKeys,_signature:[{types:[4]}]},values:{_func:this._functionValues,_signature:[{types:[4]}]},sort:{_func:this._functionSort,_signature:[{types:[9,8]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[3]},{types:[6]}]},join:{_func:this._functionJoin,_signature:[{types:[2]},{types:[9]}]},reverse:{_func:this._functionReverse,_signature:[{types:[2,3]}]},to_array:{_func:this._functionToArray,_signature:[{types:[1]}]},to_string:{_func:this._functionToString,_signature:[{types:[1]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[1]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[1],variadic:!0}]}}}var T,C,N,x,S,b,p,g,u,y,m,I,_,h,f,w,E,k,L,M,B,j,z,Q;o=o,T=typeof String.prototype.trimLeft=="function"?function(D){return D.trimLeft()}:function(D){return D.match(/^\s*(.*)/)[1]},C={0:"number",1:"any",2:"string",3:"array",4:"object",5:"boolean",6:"expression",7:"null",8:"Array<number>",9:"Array<string>"},N="UnquotedIdentifier",x="QuotedIdentifier",y="Number",I="Expref",_="Pipe",h="Flatten",w="Filter",k="Lbracket",M="Literal",B={".":"Dot","*":f="Star",",":p="Comma",":":g="Colon","{":E="Lbrace","}":u="Rbrace","]":S="Rbracket","(":L="Lparen",")":b="Rparen","@":m="Current"},j={"<":!0,">":!0,"=":!0,"!":!0},z={" ":!0," ":!0,"\n":!0},R.prototype={tokenize:function(D){var K,H,A=[];for(this._current=0;this._current<D.length;)if("a"<=(F=D[this._current])&&F<="z"||"A"<=F&&F<="Z"||F==="_")W=this._current,K=this._consumeUnquotedIdentifier(D),A.push({type:N,value:K,start:W});else if(B[D[this._current]]!==void 0)A.push({type:B[D[this._current]],value:D[this._current],start:this._current}),this._current++;else if(v(D[this._current]))H=this._consumeNumber(D),A.push(H);else if(D[this._current]==="[")H=this._consumeLBracket(D),A.push(H);else if(D[this._current]==='"')W=this._current,K=this._consumeQuotedIdentifier(D),A.push({type:x,value:K,start:W});else if(D[this._current]==="'")W=this._current,K=this._consumeRawStringLiteral(D),A.push({type:M,value:K,start:W});else if(D[this._current]==="`"){var W=this._current,F=this._consumeLiteral(D);A.push({type:M,value:F,start:W})}else if(j[D[this._current]]!==void 0)A.push(this._consumeOperator(D));else if(z[D[this._current]]!==void 0)this._current++;else if(D[this._current]==="&")W=this._current,this._current++,D[this._current]==="&"?(this._current++,A.push({type:"And",value:"&&",start:W})):A.push({type:I,value:"&",start:W});else{if(D[this._current]!=="|")throw(F=new Error("Unknown character:"+D[this._current])).name="LexerError",F;W=this._current,this._current++,D[this._current]==="|"?(this._current++,A.push({type:"Or",value:"||",start:W})):A.push({type:_,value:"|",start:W})}return A},_consumeUnquotedIdentifier:function(D){var K,H=this._current;for(this._current++;this._current<D.length&&("a"<=(K=D[this._current])&&K<="z"||"A"<=K&&K<="Z"||"0"<=K&&K<="9"||K==="_");)this._current++;return D.slice(H,this._current)},_consumeQuotedIdentifier:function(D){for(var K=this._current,H=(this._current++,D.length);D[this._current]!=='"'&&this._current<H;){var A=this._current;D[A]!=="\\"||D[A+1]!=="\\"&&D[A+1]!=='"'?A++:A+=2,this._current=A}return this._current++,JSON.parse(D.slice(K,this._current))}
1415,_consumeRawStringLiteral:function(D){for(var K=this._current,H=(this._current++,D.length);D[this._current]!=="'"&&this._current<H;){var A=this._current;D[A]!=="\\"||D[A+1]!=="\\"&&D[A+1]!=="'"?A++:A+=2,this._current=A}return this._current++,D.slice(K+1,this._current-1).replace("\\'","'")},_consumeNumber:function(D){for(var K=this._current,H=(this._current++,D.length);v(D[this._current])&&this._current<H;)this._current++;var A=parseInt(D.slice(K,this._current));return{type:y,value:A,start:K}},_consumeLBracket:function(D){var K=this._current;return this._current++,D[this._current]==="?"?(this._current++,{type:w,value:"[?",start:K}):D[this._current]==="]"?(this._current++,{type:h,value:"[]",start:K}):{type:k,value:"[",start:K}},_consumeOperator:function(D){var K=this._current,H=D[K];return this._current++,H==="!"?D[this._current]==="="?(this._current++,{type:"NE",value:"!=",start:K}):{type:"Not",value:"!",start:K}:H==="<"?D[this._current]==="="?(this._current++,{type:"LTE",value:"<=",start:K}):{type:"LT",value:"<",start:K}:H===">"?D[this._current]==="="?(this._current++,{type:"GTE",value:">=",start:K}):{type:"GT",value:">",start:K}:H==="="&&D[this._current]==="="?(this._current++,{type:"EQ",value:"==",start:K}):void 0},_consumeLiteral:function(D){this._current++;for(var K=this._current,H=D.length;D[this._current]!=="`"&&this._current<H;){var A=this._current;D[A]!=="\\"||D[A+1]!=="\\"&&D[A+1]!=="`"?A++:A+=2,this._current=A}return K=(K=T(D.slice(K,this._current))).replace("\\`","`"),K=this._looksLikeJSON(K)?JSON.parse(K):JSON.parse('"'+K+'"'),this._current++,K},_looksLikeJSON:function(D){if(D==="")return!1;if(0<='[{"'.indexOf(D[0])||0<=["true","false","null"].indexOf(D))return!0;if(!(0<="-0123456789".indexOf(D[0])))return!1;try{return JSON.parse(D),!0}catch{return!1}}},Q={EOF:0,UnquotedIdentifier:0,QuotedIdentifier:0,Rbracket:0,Rparen:0,Comma:0,Rbrace:0,Number:0,Current:0,Expref:0,Pipe:1,Or:2,And:3,EQ:5,GT:5,LT:5,GTE:5,LTE:5,NE:5,Flatten:9,Star:20,Filter:21,Dot:40,Not:45,Lbrace:50,Lbracket:55,Lparen:60},O.prototype={parse:function(H){this._loadTokens(H),this.index=0;var K,H=this.expression(0);if(this._lookahead(0)!=="EOF")throw K=this._lookaheadToken(0),(K=new Error("Unexpected token type: "+K.type+", value: "+K.value)).name="ParserError",K;return H},_loadTokens:function(D){var K=new R().tokenize(D);K.push({type:"EOF",value:"",start:D.length}),this.tokens=K},expression:function(D){for(var K=this._lookaheadToken(0),H=(this._advance(),this.nud(K)),A=this._lookahead(0);D<Q[A];)this._advance(),H=this.led(A,H),A=this._lookahead(0);return H},_lookahead:function(D){return this.tokens[this.index+D].type},_lookaheadToken:function(D){return this.tokens[this.index+D]},_advance:function(){this.index++},nud:function(D){var K,H;switch(D.type){case M:return{type:"Literal",value:D.value};case N:return{type:"Field",name:D.value};case x:var A={type:"Field",name:D.value};if(this._lookahead(0)===L)throw new Error("Quoted identifier not allowed for function names.");return A;case"Not":return{type:"NotExpression",children:[K=this.expression(Q.Not)]};case f:return K=null,{type:"ValueProjection",children:[{type:"Identity"},K=this._lookahead(0)===S?{type:"Identity"}:this._parseProjectionRHS(Q.Star)]};case w:return this.led(D.type,{type:"Identity"});case E:return this._parseMultiselectHash();case h:return{type:"Projection",children:[{type:h,children:[{type:"Identity"}]},K=this._parseProjectionRHS(Q.Flatten)]};case k:return this._lookahead(0)===y||this._lookahead(0)===g?(K=this._parseIndexExpression(),this._projectIfSlice({type:"Identity"},K)):this._lookahead(0)===f&&this._lookahead(1)===S?(this._advance(),this._advance(),{type:"Projection",children:[{type:"Identity"},K=this._parseProjectionRHS(Q.Star)]}):this._parseMultiselectList();case m:return{type:m};case I:return{type:"ExpressionReference",children:[H=this.expression(Q.Expref)]};case L:for(var W=[];this._lookahead(0)!==b;)this._lookahead(0)===m?(H={type:m},this._advance()):H=this.expression(0),W.push(H);return this._match(b),W[0];default:this._errorToken(D)}},led:function(D,K){var H;switch(D){case"Dot":var A=Q.Dot;return this._lookahead(0)!==f?{type:"Subexpression",children:[K,H=this._parseDotRHS(A)]}:(this._advance(),{type:"ValueProjection",children:[K,H=this._parseProjectionRHS(A)]});case _:return H=this.expression(Q.Pipe),{type:_,children:[K,H]};case"Or":return{type:"OrExpression",children:[K,H=this.expression(Q.Or)]};case"And":return{type:"AndExpression",children:[K,H=this.expression(Q.And)]};case L:for(var W,A=K.name,F=[];this._lookahead(0)!==b;)this._lookahead(0)===m?(W={type:m},this._advance()):W=this.expression(0),this._lookahead(0)===p&&this._match(p),F.push(W);return this._match(b),{type:"Function",name:A,children:F};case w:return A=this.expression(0),this._match(S),{type:"FilterProjection",children:[K,H=this._lookahead(0)===h?{type:"Identity"}:this._parseProjectionRHS(Q.Filter),A]};case h:return{type:"Projection",children:[{type:h,children:[K]},this._parseProjectionRHS(Q.Flatten)]};case"EQ":case"NE":case"GT":case"GTE":case"LT":case"LTE":return this._parseComparator(K,D);case k:return A=this._lookaheadToken(0),A.type===y||A.type===g?(H=this._parseIndexExpression(),this._projectIfSlice(K,H)):(this._match(f),this._match(S),{type:"Projection",children:[K,H=this._parseProjectionRHS(Q.Star)]});default:this._errorToken(this._lookaheadToken(0))}},_match:function(D){var K;if(this._lookahead(0)!==D)throw K=this._lookaheadToken(0),(D=new Error("Expected "+D+", got: "+K.type)).name="ParserError",D;this._advance()},_errorToken:function(D){throw D=new Error("Invalid token ("+D.type+'): "'+D.value+'"'),D.name="ParserError",D},_parseIndexExpression:function(){var D;return this._lookahead(0)===g||this._lookahead(1)===g?this._parseSliceExpression():(D={type:"Index",value:this._lookaheadToken(0).value},this._advance(),this._match(S),D)},_projectIfSlice:function(D,K){return D={type:"IndexExpression",children:[D,K]},K.type==="Slice"?{type:"Projection",children:[D,this._parseProjectionRHS(Q.Star)]}:D},_parseSliceExpression:function(){for(var D,K=[null,null,null],H=0,A=this._lookahead(0);A!==S&&H<3;){if(A===g)H++;else{if(A!==y)throw D=this._lookahead(0),(D=new Error("Syntax error, unexpected token: "+D.value+"("+D.type+")")).name="Parsererror",D;K[H]=this._lookaheadToken(0).value}this._advance(),A=this._lookahead(0)}return this._match(S),{type:"Slice",children:K}},_parseComparator:function(D,K){return{type:"Comparator",name:K,children:[D,this.expression(Q[K])]}},_parseDotRHS:function(D){var K=this._lookahead(0);return 0<=[N,x,f].indexOf(K)?this.expression(D):K===k?(this._match(k),this._parseMultiselectList()):K===E?(this._match(E),this._parseMultiselectHash()):void 0},_parseProjectionRHS:function(D){var K,H;if(Q[this._lookahead(0)]<10)K={type:"Identity"};else if(this._lookahead(0)===k)K=this.expression(D);else if(this._lookahead(0)===w)K=this.expression(D);else{if(this._lookahead(0)!=="Dot")throw H=this._lookaheadToken(0),(H=new Error("Sytanx error, unexpected token: "+H.value+"("+H.type+")")).name="ParserError",H;this._match("Dot"),K=this._parseDotRHS(D)}return K},_parseMultiselectList:function(){for(var D=[];this._lookahead(0)!==S;){var K=this.expression(0);if(D.push(K),this._lookahead(0)===p&&(this._match(p),this._lookahead(0)===S))throw new Error("Unexpected token Rbracket")}return this._match(S),{type:"MultiSelectList",children:D}},_parseMultiselectHash:function(){for(var D,K,H=[],A=[N,x];;){if(D=this._lookaheadToken(0),A.indexOf(D.type)<0)throw new Error("Expecting an identifier token, got: "+D.type);if(D=D.value,this._advance(),this._match(g),K=this.expression(0),H.push({type:"KeyValuePair",name:D,value:K}),this._lookahead(0)===p)this._match(p);else if(this._lookahead(0)===u){this._match(u);break}}return{type:"MultiSelectHash",children:H}}},$.prototype={search:function(D,K){return this.visit(D,K)},visit:function(D,K){var H,A,W,F,U,Y;switch(D.type){case"Field":return K!==null&&c(K)?(ee=K[D.name])===void 0?null:ee:null;case"Subexpression":for(se=this.visit(D.children[0],K),de=1;de<D.children.length;de++)if((se=this.visit(D.children[1],se))===null)return null;return se;case"IndexExpression":return U=this.visit(D.children[0],K),this.visit(D.children[1],U);case"Index":return a(K)?(se=K[ee=(ee=D.value)<0?K.length+ee:ee])===void 0?null:se:null;case"Slice":if(!a(K))return null;var ee=D.children.slice(0),ee=this.computeSliceParams(K.length,ee),X=ee[0],q=ee[1],ne=ee[2],se=[];if(0<ne)for(de=X;de<q;de+=ne)se.push(K[de]);else for(de=X;q<de;de+=ne)se.push(K[de]);return se;case"Projection":var he=this.visit(D.children[0],K);if(!a(he))return null;for(ie=[],de=0;de<he.length;de++)(A=this.visit(D.children[1],he[de]))!==null&&ie.push(A);return ie;case"ValueProjection":if(!c(he=this.visit(D.children[0],K)))return null;for(var ie=[],oe=(le=>{for(var G=Object.keys(le),Z=[],J=0;J<G.length;J++)Z.push(le[G[J]]);return Z})(he),de=0;de<oe.length;de++)(A=this.visit(D.children[1],oe[de]))!==null&&ie.push(A);return ie;case"FilterProjection":if(!a(he=this.visit(D.children[0],K)))return null;var me=[],be=[];for(de=0;de<he.length;de++)d(H=this.visit(D.children[2],he[de]))||me.push(he[de]);for(var Se=0;Se<me.length;Se++)(A=this.visit(D.children[1],me[Se]))!==null&&be.push(A);return be;case"Comparator":switch(W=this.visit(D.children[0],K),F=this.visit(D.children[1],K),D.name){case"EQ":se=l(W,F);break;case"NE":se=!l(W,F);break;case"GT":se=F<W;break;case"GTE":se=F<=W;break;case"LT":se=W<F;break;case"LTE":se=W<=F;break;default:throw new Error("Unknown comparator: "+D.name)}return se;case h:var V=this.visit(D.children[0],K);if(!a(V))return null;var te=[];for(de=0;de<V.length;de++)a(A=V[de])?te.push.apply(te,A):te.push(A);return te;case"Identity":return K;case"MultiSelectList":if(K===null)return null;for(ie=[],de=0;de<D.children.length;de++)ie.push(this.visit(D.children[de],K));return ie;case"MultiSelectHash":if(K===null)return null;for(ie={},de=0;de<D.children.length;de++)ie[(Y=D.children[de]).name]=this.visit(Y.value,K);return ie;case"OrExpression":return H=d(H=this.visit(D.children[0],K))?this.visit(D.children[1],K):H;case"AndExpression":return d(W=this.visit(D.children[0],K))===!0?W:this.visit(D.children[1],K);case"NotExpression":return d(W=this.visit(D.children[0],K));case"Literal":return D.value;case _:return U=this.visit(D.children[0],K),this.visit(D.children[1],U);case m:return K;
1415case"Function":var re=[];for(de=0;de<D.children.length;de++)re.push(this.visit(D.children[de],K));return this.runtime.callFunction(D.name,re);case"ExpressionReference":return ee=D.children[0],ee.jmespathType=I,ee;default:throw new Error("Unknown node type: "+D.type)}},computeSliceParams:function(D,H){var F=H[0],U=H[1],H=H[2],A=[null,null,null];if(H===null)H=1;else if(H===0)throw(W=new Error("Invalid slice, step cannot be 0")).name="RuntimeError",W;var W=H<0,F=F===null?W?D-1:0:this.capSliceRange(D,F,H),U=U===null?W?-1:D:this.capSliceRange(D,U,H);return A[0]=F,A[1]=U,A[2]=H,A},capSliceRange:function(D,K,H){return K<0?(K+=D)<0&&(K=H<0?-1:0):D<=K&&(K=H<0?D-1:D),K}},P.prototype={callFunction:function(D,K){var H=this.functionTable[D];if(H===void 0)throw new Error("Unknown function: "+D+"()");return this._validateArgs(D,K,H._signature),H._func.call(this,K)},_validateArgs:function(D,K,H){var A;if(H[H.length-1].variadic){if(K.length<H.length)throw A=H.length===1?" argument":" arguments",new Error("ArgumentError: "+D+"() takes at least"+H.length+A+" but received "+K.length)}else if(K.length!==H.length)throw A=H.length===1?" argument":" arguments",new Error("ArgumentError: "+D+"() takes "+H.length+A+" but received "+K.length);for(var W=0;W<H.length;W++){for(var F,U=!1,Y=H[W].types,ee=this._getTypeName(K[W]),X=0;X<Y.length;X++)if(this._typeMatches(ee,Y[X],K[W])){U=!0;break}if(!U)throw F=Y.map(function(q){return C[q]}).join(","),new Error("TypeError: "+D+"() expected argument "+(W+1)+" to be type "+F+" but received type "+C[ee]+" instead.")}},_typeMatches:function(D,K,H){if(K===1)return!0;if(K!==9&&K!==8&&K!==3)return D===K;if(K===3)return D===3;if(D===3){var A;K===8?A=0:K===9&&(A=2);for(var W=0;W<H.length;W++)if(!this._typeMatches(this._getTypeName(H[W]),A,H[W]))return!1;return!0}},_getTypeName:function(D){switch(Object.prototype.toString.call(D)){case"[object String]":return 2;case"[object Number]":return 0;case"[object Array]":return 3;case"[object Boolean]":return 5;case"[object Null]":return 7;case"[object Object]":return D.jmespathType===I?6:4}},_functionStartsWith:function(D){return D[0].lastIndexOf(D[1])===0},_functionEndsWith:function(H){var K=H[0],H=H[1];return K.indexOf(H,K.length-H.length)!==-1},_functionReverse:function(D){var K;if(this._getTypeName(D[0])!==2)return(K=D[0].slice(0)).reverse(),K;for(var H=D[0],A="",W=H.length-1;0<=W;W--)A+=H[W];return A},_functionAbs:function(D){return Math.abs(D[0])},_functionCeil:function(D){return Math.ceil(D[0])},_functionAvg:function(D){for(var K=0,H=D[0],A=0;A<H.length;A++)K+=H[A];return K/H.length},_functionContains:function(D){return 0<=D[0].indexOf(D[1])},_functionFloor:function(D){return Math.floor(D[0])},_functionLength:function(D){return(c(D[0])?Object.keys(D[0]):D[0]).length},_functionMap:function(D){for(var K=[],H=this._interpreter,A=D[0],W=D[1],F=0;F<W.length;F++)K.push(H.visit(A,W[F]));return K},_functionMerge:function(D){for(var K={},H=0;H<D.length;H++){var A,W=D[H];for(A in W)K[A]=W[A]}return K},_functionMax:function(D){if(0<D[0].length){if(this._getTypeName(D[0][0])===0)return Math.max.apply(Math,D[0]);for(var K=D[0],H=K[0],A=1;A<K.length;A++)H.localeCompare(K[A])<0&&(H=K[A]);return H}return null},_functionMin:function(D){if(0<D[0].length){if(this._getTypeName(D[0][0])===0)return Math.min.apply(Math,D[0]);for(var K=D[0],H=K[0],A=1;A<K.length;A++)K[A].localeCompare(H)<0&&(H=K[A]);return H}return null},_functionSum:function(D){for(var K=0,H=D[0],A=0;A<H.length;A++)K+=H[A];return K},_functionType:function(D){switch(this._getTypeName(D[0])){case 0:return"number";case 2:return"string";case 3:return"array";case 4:return"object";case 5:return"boolean";case 6:return"expref";case 7:return"null"}},_functionKeys:function(D){return Object.keys(D[0])},_functionValues:function(D){for(var K=D[0],H=Object.keys(K),A=[],W=0;W<H.length;W++)A.push(K[H[W]]);return A},_functionJoin:function(D){var K=D[0];return D[1].join(K)},_functionToArray:function(D){return this._getTypeName(D[0])===3?D[0]:[D[0]]},_functionToString:function(D){return this._getTypeName(D[0])===2?D[0]:JSON.stringify(D[0])},_functionToNumber:function(D){var K=this._getTypeName(D[0]);return K===0?D[0]:K!==2||(K=+D[0],isNaN(K))?null:K},_functionNotNull:function(D){for(var K=0;K<D.length;
1415K++)if(this._getTypeName(D[K])!==7)return D[K];return null},_functionSort:function(D){return D=D[0].slice(0),D.sort(),D},_functionSortBy:function(D){var K=D[0].slice(0);if(K.length!==0){var H=this._interpreter,A=D[1],W=this._getTypeName(H.visit(A,K[0]));if([0,2].indexOf(W)<0)throw new Error("TypeError");for(var F=this,U=[],Y=0;Y<K.length;Y++)U.push([Y,K[Y]]);U.sort(function(X,q){var ne=H.visit(A,X[1]),se=H.visit(A,q[1]);if(F._getTypeName(ne)!==W)throw new Error("TypeError: expected "+W+", received "+F._getTypeName(ne));if(F._getTypeName(se)!==W)throw new Error("TypeError: expected "+W+", received "+F._getTypeName(se));return se<ne?1:ne<se?-1:X[0]-q[0]});for(var ee=0;ee<U.length;ee++)K[ee]=U[ee][1]}return K},_functionMaxBy:function(D){for(var K,H,A=D[1],W=D[0],F=this.createKeyFunction(A,[0,2]),U=-1/0,Y=0;Y<W.length;Y++)U<(H=F(W[Y]))&&(U=H,K=W[Y]);return K},_functionMinBy:function(D){for(var K,H,A=D[1],W=D[0],F=this.createKeyFunction(A,[0,2]),U=1/0,Y=0;Y<W.length;Y++)(H=F(W[Y]))<U&&(U=H,K=W[Y]);return K},createKeyFunction:function(D,K){var H=this,A=this._interpreter;return function(U){var F,U=A.visit(D,U);if(K.indexOf(H._getTypeName(U))<0)throw F="TypeError: expected one of "+K+", received "+H._getTypeName(U),new Error(F);return U}}},o.tokenize=function(D){return new R().tokenize(D)},o.compile=function(D){return new O().parse(D)},o.search=function(D,K){var H=new O,A=new $(W=new P),W=(W._interpreter=A,H.parse(K));return A.search(W,D)},o.strictDeepEqual=l},4316:function(s){var o=s.exports=function(c,l,d){typeof l=="function"&&(d=l,l={}),(function v(R,O,$,P,T,C,N,x,S,b){if(P&&typeof P=="object"&&!Array.isArray(P)){for(var p in O(P,T,C,N,x,S,b),P){var g=P[p];if(Array.isArray(g)){if(p in o.arrayKeywords)for(var u=0;u<g.length;u++)v(R,O,$,g[u],T+"/"+p+"/"+u,C,T,p,P,u)}else if(p in o.propsKeywords){if(g&&typeof g=="object")for(var y in g)v(R,O,$,g[y],T+"/"+p+"/"+a(y),C,T,p,P,y)}else(p in o.keywords||R.allKeys&&!(p in o.skipKeywords))&&v(R,O,$,g,T+"/"+p,C,T,p,P)}$(P,T,C,N,x,S,b)}})(l,typeof(d=l.cb||d)=="function"?d:d.pre||function(){},d.post||function(){},c,"",c)};function a(c){return c.replace(/~/g,"~0").replace(/\//g,"~1")}o.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0},o.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},o.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},o.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0}},3094:function(s,o){var a={b:"\b",f:"\f",n:` 1416`,r:"\r",t:" ",'"':'"',"/":"/","\\":"\\"},c=97,l=(o.parse=function(b,p,g){var u={},y=0,m=0,I=0,_=g&&g.bigint&&typeof BigInt<"u";return{data:h("",!0),pointers:u};function h(H,A){f(),B(H,"value");var W,F=k();switch(F){case"t":E("rue"),W=!0;break;case"f":E("alse"),W=!1;break;case"n":E("ull"),W=null;break;case'"':W=w();break;case"[":W=(U=>{f();var Y=[],ee=0;if(k()!="]")for(L();;){Y.push(h(U+"/"+ee)),f();var X=k();if(X=="]")break;X!=","&&D(),f(),ee++}return Y})(H);break;case"{":W=(U=>{f();var Y={};if(k()!="}")for(L();;){var q=z(),ee=(k()!='"'&&D(),w()),X=U+"/"+S(ee),q=(j(X,"key",q),B(X,"keyEnd"),f(),k()!=":"&&D(),f(),Y[ee]=h(X),f(),k());if(q=="}")break;q!=","&&D(),f()}return Y})(H);break;default:L(),0<="-0123456789".indexOf(F)?W=(()=>{var U="",Y=!0,ee=(b[I]=="-"&&(U+=k()),U+=(b[I]=="0"?k:M)(),b[I]=="."&&(U+=k()+M(),Y=!1),b[I]!="e"&&b[I]!="E"||(U+=k(),b[I]!="+"&&b[I]!="-"||(U+=k()),U+=M(),Y=!1),+U);return _&&Y&&(ee>Number.MAX_SAFE_INTEGER||ee<Number.MIN_SAFE_INTEGER)?BigInt(U):ee})():Q()}return B(H,"valueEnd"),f(),A&&I<b.length&&Q(),W}function f(){e:for(;I<b.length;){switch(b[I]){case" ":m++;break;case" ":m+=4;break;case"\r":m=0;break;case` 1417`:m=0,y++;break;default:break e}I++}}function w(){for(var H,A="";(H=k())!='"';)H=="\\"?(H=k())in a?A+=a[H]:H=="u"?A+=(()=>{for(var W=4,F=0;W--;){F<<=4;var U=k().toLowerCase();"a"<=U&&U<="f"?F+=U.charCodeAt()-c+10:"0"<=U&&U<="9"?F+=+U:D()}return String.fromCharCode(F)})():D():A+=H;return A}function E(H){for(var A=0;A<H.length;A++)k()!==H[A]&&D()}function k(){K();var H=b[I];return I++,m++,H}function L(){I--,m--}function M(){for(var H="";"0"<=b[I]&&b[I]<="9";)H+=k();if(H.length)return H;K(),Q()}function B(H,A){j(H,A,z())}function j(H,A,W){u[H]=u[H]||{},u[H][A]=W}function z(){return{line:y,column:m,pos:I}}function Q(){throw new SyntaxError("Unexpected token "+b[I]+" in JSON at position "+I)}function D(){L(),Q()}function K(){if(I>=b.length)throw new SyntaxError("Unexpected end of JSON input")}},o.stringify=function(b,p,g){if(d(b)){var u=0;switch(typeof(m=typeof g=="object"?g.space:g)){case"number":var y=10<m?10:m<0?0:Math.floor(m),m=y&&Q(y," "),I=y,_=y;break;case"string":m=m.slice(0,10);
1417for(var h=_=I=0;h<m.length;h++){switch(m[h]){case" ":_++;break;case" ":_+=4;break;case"\r":_=0;break;case` 1418`:_=0,u++;break;default:throw new Error("whitespace characters not allowed in JSON")}I++}break;default:m=void 0}var f="",w={},E=0,k=0,L=0,M=g&&g.es6&&typeof Map=="function";return(function D(K,H,A){switch(z(A,"value"),typeof K){case"number":case"bigint":case"boolean":B(""+K);break;case"string":B(C(K));break;case"object":K===null?B("null"):typeof K.toJSON=="function"?B(C(K.toJSON())):Array.isArray(K)?W():M?K.constructor.BYTES_PER_ELEMENT?W():K instanceof Map?U():K instanceof Set?U(!0):F():F()}z(A,"valueEnd");function W(){if(K.length){B("[");for(var Y=H+1,ee=0;ee<K.length;ee++){ee&&B(","),j(Y);var X=d(K[ee])?K[ee]:null,q=A+"/"+ee;D(X,Y,q)}j(H),B("]")}else B("[]")}function F(){var Y=Object.keys(K);if(Y.length){B("{");for(var ee=H+1,X=0;X<Y.length;X++){var q,ne=Y[X],se=K[ne];d(se)&&(X&&B(","),q=A+"/"+S(ne),j(ee),z(q,"key"),B(C(ne)),z(q,"keyEnd"),B(":"),m&&B(" "),D(se,ee,q))}j(H),B("}")}else B("{}")}function U(Y){if(K.size){B("{");for(var ee=H+1,X=!0,q=K.entries(),ne=q.next();!ne.done;){var se,ie=ne.value,he=ie[0],ie=!!Y||ie[1];d(ie)&&(X||B(","),X=!1,se=A+"/"+S(he),j(ee),z(se,"key"),B(C(he)),z(se,"keyEnd"),B(":"),m&&B(" "),D(ie,ee,se)),ne=q.next()}j(H),B("}")}else B("{}")}})(b,0,""),{json:f,pointers:w}}function B(D){k+=D.length,L+=D.length,f+=D}function j(D){if(m){for(f+=` 1419`+Q(D,m),E++,k=0;D--;)u?(E+=u,k=_):k+=_,L+=I;L+=1}}function z(D,K){w[D]=w[D]||{},w[D][K]={line:E,column:k,pos:L}}function Q(D,K){return Array(D+1).join(K)}},["number","bigint","boolean","string","object"]);function d(b){return 0<=l.indexOf(typeof b)}var v=/"|\\/g,R=/[\b]/g,O=/\f/g,$=/\n/g,P=/\r/g,T=/\t/g;function C(b){return'"'+(b=b.replace(v,"\\$&").replace(O,"\\f").replace(R,"\\b").replace($,"\\n").replace(P,"\\r").replace(T,"\\t"))+'"'}var N=/~/g,x=/\//g;function S(b){return b.replace(N,"~0").replace(x,"~1")}},8340:function(s,o){var a;(o=typeof(a=function(){function c(p){return typeof Node=="object"?p instanceof Node:p&&typeof p=="object"&&typeof p.nodeType=="number"}function l(p){return typeof p=="string"}function d(){var p=[];return{watch:p.push.bind(p),trigger:function(g,u){for(var y=!0,m={detail:u,preventDefault:function(){y=!1}},I=0;I<p.length;I++)p[I](g,m);return y}}}function v(p){return window.getComputedStyle(p).display==="none"}function R(p){this.elem=p}function O(p,g){return R.make(p("parent")).clazz("pico-overlay").clazz(p("overlayClass","")).stylize({display:"none",position:"fixed",top:"0px",left:"0px",height:"100%",width:"100%",zIndex:1e4}).stylize(p("overlayStyles",{opacity:.5,background:"#000"})).onClick(function(){p("overlayClose",!0)&&g()})}R.make=function(p,g){typeof p=="string"&&(p=document.querySelector(p));var u=document.createElement(g||"div");return(p||document.body).appendChild(u),new R(u)},R.prototype={child:function(p){return R.make(this.elem,p)},stylize:function(p){p=p||{},typeof p.opacity<"u"&&(p.filter="alpha(opacity="+p.opacity*100+")");for(var g in p)p.hasOwnProperty(g)&&(this.elem.style[g]=p[g]);return this},clazz:function(p){return this.elem.className+=" "+p,this},html:function(p){return c(p)?this.elem.appendChild(p):this.elem.innerHTML=p,this},onClick:function(p){return this.elem.addEventListener("click",p),this},destroy:function(){this.elem.parentNode.removeChild(this.elem)},hide:function(){this.elem.style.display="none"},show:function(){this.elem.style.display="block"},attr:function(p,g){return g!==void 0&&this.elem.setAttribute(p,g),this},anyAncestor:function(p){for(var g=this.elem;g;){if(p(new R(g)))return!0;g=g.parentNode}return!1},isVisible:function(){return!v(this.elem)}};var $=1;function P(p,g){var u=p("width","auto");typeof u=="number"&&(u=""+u+"px");var y=p("modalId","pico-"+$++),m=R.make(p("parent")).clazz("pico-content").clazz(p("modalClass","")).stylize({display:"none",position:"fixed",zIndex:10001,left:"50%",top:"38.1966%",maxHeight:"90%",boxSizing:"border-box",width:u,"-ms-transform":"translate(-50%,-38.1966%)","-moz-transform":"translate(-50%,-38.1966%)","-webkit-transform":"translate(-50%,-38.1966%)","-o-transform":"translate(-50%,-38.1966%)",transform:"translate(-50%,-38.1966%)"}).stylize(p("modalStyles",{overflow:"auto",backgroundColor:"white",padding:"20px",borderRadius:"5px"})).html(p("content")).attr("id",y).attr("role","dialog").attr("aria-labelledby",p("ariaLabelledBy")).attr("aria-describedby",p("ariaDescribedBy",y)).onClick(function(I){var _=new R(I.target).anyAncestor(function(h){return/\bpico-close\b/.test(h.elem.className)});_&&g()});return m}function T(p,g){if(g("closeButton",!0))return p.child("button").html(g("closeHtml","×")).clazz("pico-close").clazz(g("closeClass","")).stylize(g("closeStyles",{borderRadius:"2px",border:0,padding:0,cursor:"pointer",height:"15px",width:"15px",position:"absolute",top:"5px",right:"5
1419px",fontSize:"16px",textAlign:"center",lineHeight:"15px",background:"#CCC"})).attr("aria-label",g("close-label","Close"))}function C(p){return function(){return p().elem}}var N=d(),x=d();function S(p,g){function u(h,f){var w=h.msMatchesSelector||h.webkitMatchesSelector||h.matches;return w.call(h,f)}function y(h){return v(h)||u(h,":disabled")||h.hasAttribute("contenteditable")?!1:h.hasAttribute("tabindex")||u(h,"input,select,textarea,button,a[href],area[href],iframe")}function m(h){for(var f=h.getElementsByTagName("*"),w=0;w<f.length;w++)if(y(f[w]))return f[w]}function I(h){for(var f=h.getElementsByTagName("*"),w=f.length;w--;)if(y(f[w]))return f[w]}var _;p.beforeShow(function(){_=document.activeElement}),p.afterShow(function(){if(g()){var f=m(p.modalElem());f&&f.focus()}}),p.afterClose(function(){g()&&_&&_.focus(),_=null}),x.watch(function(f){if(g()&&p.isVisible()){var w=m(p.modalElem()),E=I(p.modalElem()),k=f.shiftKey?w:E;k===document.activeElement&&((f.shiftKey?E:w).focus(),f.preventDefault())}})}function b(p,g){var u,y=new R(document.body);p.beforeShow(function(){u=y.elem.style.overflow,g()&&y.stylize({overflow:"hidden"})}),p.afterClose(function(){y.stylize({overflow:u})})}return document.documentElement.addEventListener("keydown",function(g){var u=g.which||g.keyCode;u===27?N.trigger():u===9&&x.trigger(g)}),function(g){(l(g)||c(g))&&(g={content:g});var u=d(),y=d(),m=d(),I=d(),_=d();function h(Q,D){var K=g[Q];return typeof K=="function"&&(K=K(D)),K===void 0?D:K}var f=z.bind(window,"modal"),w=z.bind(window,"overlay"),E=z.bind(window,"close"),k;function L(Q){w().hide(),f().hide(),_.trigger(k,Q)}function M(Q){I.trigger(k,Q)&&L(Q)}function B(Q){return function(){return Q.apply(this,arguments),k}}var j;function z(Q,D){if(!j){var K=P(h,M);j={modal:K,overlay:O(h,M),close:T(K,h)},u.trigger(k,D)}return j[Q]}return k={modalElem:C(f),closeElem:C(E),overlayElem:C(w),buildDom:B(z.bind(null,null)),isVisible:function(){return!!(j&&f&&f().isVisible())},show:function(Q){return y.trigger(k,Q)&&(w().show(),E(),f().show(),m.trigger(k,Q)),this},close:B(M),forceClose:B(L),destroy:function(){f().destroy(),w().destroy(),w=f=E=void 0},options:function(Q){Object.keys(Q).map(function(D){g[D]=Q[D]})},afterCreate:B(u.watch),beforeShow:B(y.watch),afterShow:B(m.watch),beforeClose:B(I.watch),afterClose:B(_.watch)},S(k,h.bind(null,"focus",!0)),b(k,h.bind(null,"bodyOverflow",!0)),N.watch(function(){h("escCloses",!0)&&k.isVisible()&&k.close()}),k}})=="function"?a.apply(o,[]):a)!==void 0&&(s.exports=o)},6777:function(s,o){(a=>{function c(){for(var ce=arguments.length,ge=Array(ce),pe=0;pe<ce;pe++)ge[pe]=arguments[pe];if(1<ge.length){ge[0]=ge[0].slice(0,-1);for(var Ce=ge.length-1,ke=1;ke<Ce;++ke)ge[ke]=ge[ke].slice(1,-1);return ge[Ce]=ge[Ce].slice(1),ge.join("")}return ge[0]}function l(ce){return"(?:"+ce+")"}function d(ce){return ce===void 0?"undefined":ce===null?"null":Object.prototype.toString.call(ce).split(" ").pop().split("]").shift().toLowerCase()}function v(ce){return ce.toUpperCase()}function R(Ge){var ge="[A-Za-z]",pe="[0-9]",Ce=c(pe,"[A-Fa-f]"),ke=l(l("%[EFef]"+Ce+"%"+Ce+Ce+"%"+Ce+Ce)+"|"+l("%[89A-Fa-f]"+Ce+"%"+Ce+Ce)+"|"+l("%"+Ce+Ce)),Pe="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",De=c("[\\:\\/\\?\\#\\[\\]\\@]",Pe),Ve=Ge?"[\\uE000-\\uF8FF]":"[]",Ge=c(ge,pe,"[\\-\\.\\_\\~]",Ge?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]"),ue=(l(ge+c(ge,pe,"[\\+\\-\\.]")+"*"),l(l(ke+"|"+c(Ge,Pe,"[\\:]"))+"*"),"(?:(?:25[0-5])|(?:2[0-4][0-9])|(?:1[0-9][0-9])|(?:0?[1-9][0-9])|0?0?[0-9])"),ue=l(ue+"\\."+ue+"\\."+ue+"\\."+ue),Ne=l(Ce+"{1,4}"),Te=l(l(Ne+"\\:"+Ne)+"|"+ue),ze=l(l(Ne+"\\:")+"{6}"+Te),et=l("\\:\\:"+l(Ne+"\\:")+"{5}"+Te),ht=l(l(Ne)+"?\\:\\:"+l(Ne+"\\:")+"{4}"+Te),ye=l(l(l(Ne+"\\:")+"{0,1}"+Ne)+"?\\:\\:"+l(Ne+"\\:")+"{3}"+Te),ve=l(l(l(Ne+"\\:")+"{0,2}"+Ne)+"?\\:\\:"+l(Ne+"\\:")+"{2}"+Te),_e=l(l(l(Ne+"\\:")+"{0,3}"+Ne)+"?\\:\\:"+Ne+"\\:"+Te),Te=l(l(l(Ne+"\\:")+"{0,4}"+Ne)+"?\\:\\:"+Te),Le=l(l(l(Ne+"\\:")+"{0,5}"+Ne)+"?\\:\\:"+Ne),Ne=l(l(l(Ne+"\\:")+"{0,6}"+Ne)+"?\\:\\:"),ze=l([ze,et,ht,ye,ve,_e,Te,Le,Ne].join("|")),et=l(l(Ge+"|"+ke)+"+"),ht=(l("[vV]"+Ce+"+\\."+c(Ge,Pe,"[\\:]")+"+"),l(l(ke+"|"+c(Ge,Pe))+"*"),l(ke+"|"+c(Ge,Pe,"[\\:\\@]")));return l(l(ke+"|"+c(Ge,Pe,"[\\@]"))+"+"),l(l(ht+"|"+c("[\\/\\?]",Ve))+"*"),{NOT_SCHEME:new RegExp(c("[^]",ge,pe,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(c("[^\\%\\:]",Ge,Pe),"g"),NOT_HOST:new RegExp(c("[^\\%\\[\\]\\:]",Ge,Pe),"g"),NOT_PATH:new RegExp(c("[^\\%\\/\\:\\@]",Ge,Pe),"g"),NOT_PATH_NOSCHEME:new RegExp(c("[^\\%\\/\\@]",Ge,Pe),"g"),NOT_QUERY:new RegExp(c("[^\\%]",Ge,Pe,"[\\:\\@\\/\\?]",Ve),"g"),NOT_FRAGMENT:new RegExp(c("[^\\%]",Ge,Pe,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(c("[^]",Ge,Pe),"g"),UNRESERVED:new RegExp(Ge,"g"),OTHER_CHARS:new RegExp(c("[^\\%]",Ge,De),"g"),PCT_ENCODED:new RegExp(ke,"g"),IPV4ADDRESS:new RegExp("^("+ue+")$"),IPV6ADDRESS:new RegExp("^\\[?("+ze+")"+l(l("\\%25|\\%(?!"+Ce+"{2})")+"("+et+")")+"?\\]?$")}}var O=R(!1),$=R(!0),P=function(ce,ge){if(Array.isArray(ce))return ce;if(Symbol.iterator in Object(ce)){var pe=ge,Ce=[],ke=!0,ge=!1,Pe=void 0;try{for(var De,Ve=ce[Symbol.iterator]();!(ke=(De=Ve.next()).done)&&(Ce.push(De.value),!pe||Ce.length!==pe);ke=!0);}catch(ue){ge=!0,Pe=ue}finally{try{!ke&&Ve.return&&Ve.return()}finally{if(ge)throw Pe}}return Ce}
1419throw new TypeError("Invalid attempt to destructure non-iterable instance")},T=2147483647,C=36,N=26,x=38,S=700,b=/^xn--/,p=/[^\0-\x7E]/,g=/[\x2E\u3002\uFF0E\uFF61]/g,u={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},y=C-1,m=Math.floor,I=String.fromCharCode;function _(ce){throw new RangeError(u[ce])}function h(ce,ge){var Ce=ce.split("@"),pe="",Ce=(1<Ce.length&&(pe=Ce[0]+"@",ce=Ce[1]),(ce=ce.replace(g,".")).split("."));return pe+((ke,Pe)=>{for(var De=[],Ve=ke.length;Ve--;)De[Ve]=Pe(ke[Ve]);return De})(Ce,ge).join(".")}function f(ce){for(var ge=[],pe=0,Ce=ce.length;pe<Ce;){var ke,Pe=ce.charCodeAt(pe++);55296<=Pe&&Pe<=56319&&pe<Ce?(64512&(ke=ce.charCodeAt(pe++)))==56320?ge.push(((1023&Pe)<<10)+(1023&ke)+65536):(ge.push(Pe),pe--):ge.push(Pe)}return ge}function w(ce,ge){return ce+22+75*(ce<26)-((ge!=0)<<5)}function E(ce,ge,pe){var Ce=0;for(ce=pe?m(ce/S):ce>>1,ce+=m(ce/ge);y*N>>1<ce;Ce+=C)ce=m(ce/y);return m(Ce+(y+1)*ce/(ce+x))}function k(ce){var ge=[],pe=ce.length,Ce=0,ke=128,Pe=72,De=ce.lastIndexOf("-");De<0&&(De=0);for(var Ve=0;Ve<De;++Ve)128<=ce.charCodeAt(Ve)&&_("not-basic"),ge.push(ce.charCodeAt(Ve));for(var Ge=0<De?De+1:0;Ge<pe;){for(var ue=Ce,ye=1,ve=C;;ve+=C){pe<=Ge&&_("invalid-input");var _e=(_e=ce.charCodeAt(Ge++))-48<10?_e-22:_e-65<26?_e-65:_e-97<26?_e-97:C,Te=((C<=_e||_e>m((T-Ce)/ye))&&_("overflow"),Ce+=_e*ye,ve<=Pe?1:Pe+N<=ve?N:ve-Pe);if(_e<Te)break;_e=C-Te,ye>m(T/_e)&&_("overflow"),ye*=_e}var Le=ge.length+1,Pe=E(Ce-ue,Le,ue==0);m(Ce/Le)>T-ke&&_("overflow"),ke+=m(Ce/Le),Ce%=Le,ge.splice(Ce++,0,ke)}return String.fromCodePoint.apply(String,ge)}function L(ce){var ge=[],pe=(ce=f(ce)).length,Ce=128,ke=0,Pe=72,De=!0,Ve=!1,Ge=void 0;try{for(var ue,ye=ce[Symbol.iterator]();!(De=(ue=ye.next()).done);De=!0){var ve=ue.value;ve<128&&ge.push(I(ve))}}catch(xa){Ve=!0,Ge=xa}finally{try{!De&&ye.return&&ye.return()}finally{if(Ve)throw Ge}}var _e=ge.length,Te=_e;for(_e&&ge.push("-");Te<pe;){var Le=T,Ne=!0,en=!1,Yn=void 0;try{for(var ze,et=ce[Symbol.iterator]();!(Ne=(ze=et.next()).done);Ne=!0){var ht=ze.value;Ce<=ht&&ht<Le&&(Le=ht)}}catch(xa){en=!0,Yn=xa}finally{try{!Ne&&et.return&&et.return()}finally{if(en)throw Yn}}var Vt=Te+1,Pr=(Le-Ce>m((T-ke)/Vt)&&_("overflow"),ke+=(Le-Ce)*Vt,Ce=Le,!0),en=!1,Yn=void 0;try{for(var $r,ph=ce[Symbol.iterator]();!(Pr=($r=ph.next()).done);Pr=!0){var dy=$r.value;if(dy<Ce&&++ke>T&&_("overflow"),dy==Ce){for(var hc=ke,fc=C;;fc+=C){var pc=fc<=Pe?1:Pe+N<=fc?N:fc-Pe;if(hc<pc)break;var hy=hc-pc,fy=C-pc;ge.push(I(w(pc+hy%fy,0))),hc=m(hy/fy)}ge.push(I(w(hc,0))),Pe=E(ke,Vt,Te==_e),ke=0,++Te}}}catch(xa){en=!0,Yn=xa}finally{try{!Pr&&ph.return&&ph.return()}finally{if(en)throw Yn}}++ke,++Ce}return ge.join("")}var M=function(ce){return h(ce,function(ge){return p.test(ge)?"xn--"+L(ge):ge})},B=function(ce){return h(ce,function(ge){return b.test(ge)?k(ge.slice(4).toLowerCase()):ge})},j={};function z(ce){return ce=ce.charCodeAt(0),ce<16?"%0"+ce.toString(16).toUpperCase():ce<128?"%"+ce.toString(16).toUpperCase():ce<2048?"%"+(ce>>6|192).toString(16).toUpperCase()+"%"+(63&ce|128).toString(16).toUpperCase():"%"+(ce>>12|224).toString(16).toUpperCase()+"%"+(ce>>6&63|128).toString(16).toUpperCase()+"%"+(63&ce|128).toString(16).toUpperCase()}function Q(ce){for(var ge="",pe=0,Ce=ce.length;pe<Ce;){var ke,Pe,De=parseInt(ce.substr(pe+1,2),16);De<128?(ge+=String.fromCharCode(De),pe+=3):194<=De&&De<224?(6<=Ce-pe?(ke=parseInt(ce.substr(pe+4,2),16),ge+=String.fromCharCode((31&De)<<6|63&ke)):ge+=ce.substr(pe,6),pe+=6):224<=De?(9<=Ce-pe?(ke=parseInt(ce.substr(pe+4,2),16),Pe=parseInt(ce.substr(pe+7,2),16),ge+=String.fromCharCode((15&De)<<12|(63&ke)<<6|63&Pe)):ge+=ce.substr(pe,9),pe+=9):(ge+=ce.substr(pe,3),pe+=3)}return ge}function D(ce,ge){function pe(Ce){var ke=Q(Ce);return ke.match(ge.UNRESERVED)?ke:Ce}ce.scheme&&(ce.scheme=String(ce.scheme).replace(ge.PCT_ENCODED,pe).toLowerCase().replace(ge.NOT_SCHEME,"")),ce.userinfo!==void 0&&(ce.userinfo=String(ce.userinfo).replace(ge.PCT_ENCODED,pe).replace(ge.NOT_USERINFO,z).replace(ge.PCT_ENCODED,v)),ce.host!==void 0&&(ce.host=String(ce.host).replace(ge.PCT_ENCODED,pe).toLowerCase().replace(ge.NOT_HOST,z).replace(ge.PCT_ENCODED,v)),ce.path!==void 0&&(ce.path=String(ce.path).replace(ge.PCT_ENCODED,pe).replace(ce.scheme?ge.NOT_PATH:ge.NOT_PATH_NOSCHEME,z).replace(ge.PCT_ENCODED,v)),ce.query!==void 0&&(ce.query=String(ce.query).replace(ge.PCT_ENCODED,pe).replace(ge.NOT_QUERY,z).replace(ge.PCT_ENCODED,v)),ce.fragment!==void 0&&(ce.fragment=String(ce.fragment).replace(ge.PCT_ENCODED,pe).replace(ge.NOT_FRAGMENT,z).replace(ge.PCT_ENCODED,v))}function K(ce){return ce.replace(/^0*(.*)/,"$1")||"0"}function H(ce,ge){return ge=ce.match(ge.IPV4ADDRESS)||[],ge=P(ge,2)[1],ge?ge.split(".").map(K).join("."):ce}function A(ce,ge){var Ce=ce.match(ge.IPV6ADDRESS)||[],Ce=P(Ce,3),pe=Ce[1],Ce=Ce[2];if(pe){for(var pe=pe.toLowerCase().split("::").reverse(),pe=P(pe,2),ye=pe[0],pe=pe[1],
1419ke=pe?pe.split(":").map(K):[],Pe=ye.split(":").map(K),pe=ge.IPV4ADDRESS.test(Pe[Pe.length-1]),De=pe?7:8,Ve=Pe.length-De,Ge=Array(De),ue=0;ue<De;++ue)Ge[ue]=ke[ue]||Pe[Ve+ue]||"";pe&&(Ge[De-1]=H(Ge[De-1],ge));var ye=Ge.reduce(function(_e,Te,Le){return Te&&Te!=="0"||((Te=_e[_e.length-1])&&Te.index+Te.length===Le?Te.length++:_e.push({index:Le,length:1})),_e},[]).sort(function(_e,Te){return Te.length-_e.length})[0],pe=void 0;return pe=ye&&1<ye.length?(ge=Ge.slice(0,ye.index),ye=Ge.slice(ye.index+ye.length),ge.join(":")+"::"+ye.join(":")):Ge.join(":"),Ce&&(pe+="%"+Ce),pe}return ce}var W=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,F="".match(/(){0}/)[1]===void 0;function U(ce){var ge=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},pe={},Ce=ge.iri!==!1?$:O,ke=(ce=ge.reference==="suffix"?(ge.scheme?ge.scheme+":":"")+"//"+ce:ce).match(W);if(ke){if(F?(pe.scheme=ke[1],pe.userinfo=ke[3],pe.host=ke[4],pe.port=parseInt(ke[5],10),pe.path=ke[6]||"",pe.query=ke[7],pe.fragment=ke[8],isNaN(pe.port)&&(pe.port=ke[5])):(pe.scheme=ke[1]||void 0,pe.userinfo=ce.indexOf("@")!==-1?ke[3]:void 0,pe.host=ce.indexOf("//")!==-1?ke[4]:void 0,pe.port=parseInt(ke[5],10),pe.path=ke[6]||"",pe.query=ce.indexOf("?")!==-1?ke[7]:void 0,pe.fragment=ce.indexOf("#")!==-1?ke[8]:void 0,isNaN(pe.port)&&(pe.port=ce.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?ke[4]:void 0)),pe.host&&(pe.host=A(H(pe.host,Ce),Ce)),pe.reference=pe.scheme!==void 0||pe.userinfo!==void 0||pe.host!==void 0||pe.port!==void 0||pe.path||pe.query!==void 0?pe.scheme===void 0?"relative":pe.fragment===void 0?"absolute":"uri":"same-document",ge.reference&&ge.reference!=="suffix"&&ge.reference!==pe.reference&&(pe.error=pe.error||"URI is not a "+ge.reference+" reference."),ce=j[(ge.scheme||pe.scheme||"").toLowerCase()],ge.unicodeSupport||ce&&ce.unicodeSupport)D(pe,Ce);else{if(pe.host&&(ge.domainHost||ce&&ce.domainHost))try{pe.host=M(pe.host.replace(Ce.PCT_ENCODED,Q).toLowerCase())}catch(Pe){pe.error=pe.error||"Host's domain name can not be converted to ASCII via punycode: "+Pe}D(pe,O)}ce&&ce.parse&&ce.parse(pe,ge)}else pe.error=pe.error||"URI can not be parsed.";return pe}var Y=/^\.\.?\//,ee=/^\/\.(\/|$)/,X=/^\/\.\.(\/|$)/,q=/^\/?(?:.|\n)*?(?=\/|$)/;function ne(ce){for(var ge=[];ce.length;)if(ce.match(Y))ce=ce.replace(Y,"");else if(ce.match(ee))ce=ce.replace(ee,"/");else if(ce.match(X))ce=ce.replace(X,"/"),ge.pop();else if(ce==="."||ce==="..")ce="";else{var pe=ce.match(q);if(!pe)throw new Error("Unexpected dot segment condition");pe=pe[0],ce=ce.slice(pe.length),ge.push(pe)}return ge.join("")}function se(ce){var ge=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},pe=ge.iri?$:O,Ce=[],ke=j[(ge.scheme||ce.scheme||"").toLowerCase()];if(ke&&ke.serialize&&ke.serialize(ce,ge),ce.host&&!pe.IPV6ADDRESS.test(ce.host)&&(ge.domainHost||ke&&ke.domainHost))try{ce.host=ge.iri?B(ce.host):M(ce.host.replace(pe.PCT_ENCODED,Q).toLowerCase())}catch(Ve){ce.error=ce.error||"Host's domain name can not be converted to "+(ge.iri?"Unicode":"ASCII")+" via punycode: "+Ve}D(ce,pe),ge.reference!=="suffix"&&ce.scheme&&(Ce.push(ce.scheme),Ce.push(":")),pe=ce,De=(De=ge).iri!==!1?$:O,Pe=[],pe.userinfo!==void 0&&(Pe.push(pe.userinfo),Pe.push("@")),pe.host!==void 0&&Pe.push(A(H(String(pe.host),De),De).replace(De.IPV6ADDRESS,function(Ve,Ge,ue){return"["+Ge+(ue?"%25"+ue:"")+"]"})),typeof pe.port!="number"&&typeof pe.port!="string"||(Pe.push(":"),Pe.push(String(pe.port)));var Pe,De=Pe.length?Pe.join(""):void 0;return De!==void 0&&(ge.reference!=="suffix"&&Ce.push("//"),Ce.push(De),ce.path)&&ce.path.charAt(0)!=="/"&&Ce.push("/"),ce.path!==void 0&&(pe=ce.path,ge.absolutePath||ke&&ke.absolutePath||(pe=ne(pe)),De===void 0&&(pe=pe.replace(/^\/\//,"/%2F")),Ce.push(pe)),ce.query!==void 0&&(Ce.push("?"),Ce.push(ce.query)),ce.fragment!==void 0&&(Ce.push("#"),Ce.push(ce.fragment)),Ce.join("")}function he(ce,ge){var pe=2<arguments.length&&arguments[2]!==void 0?arguments[2]:{},Ce={};return arguments[3]||(ce=U(se(ce,pe),pe),ge=U(se(ge,pe),pe)),!(pe||{}).tolerant&&ge.scheme?(Ce.scheme=ge.scheme,Ce.userinfo=ge.userinfo,Ce.host=ge.host,Ce.port=ge.port,Ce.path=ne(ge.path||""),Ce.query=ge.query):(ge.userinfo!==void 0||ge.host!==void 0||ge.port!==void 0?(Ce.userinfo=ge.userinfo,Ce.host=ge.host,Ce.port=ge.port,Ce.path=ne(ge.path||""),Ce.query=ge.query):(ge.path?(ge.path.charAt(0)==="/"?Ce.path=ne(ge.path):(ce.userinfo===void 0&&ce.host===void 0&&ce.port===void 0||ce.path?ce.path?Ce.path=ce.path.slice(0,ce.path.lastIndexOf("/")+1)+ge.path:Ce.path=ge.path:Ce.path="/"+ge.path,Ce.path=ne(Ce.path)),Ce.query=ge.query):(Ce.path=ce.path,ge.query!==void 0?Ce.query=ge.query:Ce.query=ce.query),Ce.userinfo=ce.userinfo,Ce.host=ce.host,Ce.port=ce.port),Ce.scheme=ce.scheme),Ce.fragment=ge.fragment,Ce}function ie(ce,ge){return ce&&ce.toString().replace((ge&&ge.iri?$:O).PCT_ENCODED,Q)}var oe={scheme:"http",domainHost:!0,parse:function(ce,ge){return ce.host||(ce.error=ce.error||"HTTP URIs must have a host."),ce},serialize:function(ce,ge){var pe=String(ce.scheme).toLowerCase()==="https";return ce.port!==(pe?443:80)&&ce.port!==""||(ce.port=void 0),ce.path||(ce.path="/"),ce}},de={scheme:"https",domainHost:oe.domainHost,parse:oe.parse,serialize:oe.serialize};function me(ce){return typeof ce.secure=="boolean"?ce.secure:String(ce.scheme).toLowerCase()==="wss"}var be={scheme:"ws",domainHost:!0,parse:function(ce,ge){return ce.secure=me(ce),ce.resourceName=(ce.path||"/")+(ce.query?"?"+ce.query:""),ce.path=void 0,ce.query=void 0,ce},serialize:function(ce,ge){var pe,Ce;return ce.port!==(me(ce)?443:80)&&ce.port!==""||(ce.port=void 0),typeof ce.secure=="boolean"&&(ce.scheme=ce.secure?"wss":"ws",ce.secure=void 0),ce.resourceName&&(Ce=ce.resourceName.split("?"),pe=(Ce=P(Ce,2))[0],Ce=Ce[1],ce.path=pe&&pe!=="/"?pe:void 0,ce.query=Ce,ce.resourceName=void 0),ce.fragment=void 0,ce}},Se={scheme:"wss",domainHost:be.domainHost,parse:be.parse,serialize:be.serialize},V={},we="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ae=c("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>
1419A-Z\\x5E-\\x7E]",'[\\"\\\\]'),te=new RegExp(we,"g"),re=new RegExp("(?:(?:%[EFef][0-9A-Fa-f]%[0-9A-Fa-f][0-9A-Fa-f]%[0-9A-Fa-f][0-9A-Fa-f])|(?:%[89A-Fa-f][0-9A-Fa-f]%[0-9A-Fa-f][0-9A-Fa-f])|(?:%[0-9A-Fa-f][0-9A-Fa-f]))","g"),le=new RegExp(c("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',ae),"g"),G=new RegExp(c("[^]",we,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),Z=G;function J(ce){var ge=Q(ce);return ge.match(te)?ge:ce}var ae={scheme:"mailto",parse:function(ce,ge){var pe=ce,Ce=pe.to=pe.path?pe.path.split(","):[];if(pe.path=void 0,pe.query){for(var ke=!1,Pe={},De=pe.query.split("&"),Ve=0,Ge=De.length;Ve<Ge;++Ve){var ue=De[Ve].split("=");switch(ue[0]){case"to":for(var ye=ue[1].split(","),ve=0,_e=ye.length;ve<_e;++ve)Ce.push(ye[ve]);break;case"subject":pe.subject=ie(ue[1],ge);break;case"body":pe.body=ie(ue[1],ge);break;default:ke=!0,Pe[ie(ue[0],ge)]=ie(ue[1],ge)}}ke&&(pe.headers=Pe)}pe.query=void 0;for(var Te=0,Le=Ce.length;Te<Le;++Te){var Ne=Ce[Te].split("@");if(Ne[0]=ie(Ne[0]),ge.unicodeSupport)Ne[1]=ie(Ne[1],ge).toLowerCase();else try{Ne[1]=M(ie(Ne[1],ge).toLowerCase())}catch(ze){pe.error=pe.error||"Email address's domain name can not be converted to ASCII via punycode: "+ze}Ce[Te]=Ne.join("@")}return pe},serialize:function(ce,ge){var pe,Ce=ce,ke=(pe=ce.to)!=null?pe instanceof Array?pe:typeof pe.length!="number"||pe.split||pe.setInterval||pe.call?[pe]:Array.prototype.slice.call(pe):[];if(ke){for(var Pe=0,De=ke.length;Pe<De;++Pe){var ue=String(ke[Pe]),Ve=ue.lastIndexOf("@"),Ge=ue.slice(0,Ve).replace(re,J).replace(re,v).replace(le,z),ue=ue.slice(Ve+1);try{ue=ge.iri?B(ue):M(ie(ue,ge).toLowerCase())}catch(Te){Ce.error=Ce.error||"Email address's domain name can not be converted to "+(ge.iri?"Unicode":"ASCII")+" via punycode: "+Te}ke[Pe]=Ge+"@"+ue}Ce.path=ke.join(",")}var ye,ve=ce.headers=ce.headers||{},_e=(ce.subject&&(ve.subject=ce.subject),ce.body&&(ve.body=ce.body),[]);for(ye in ve)ve[ye]!==V[ye]&&_e.push(ye.replace(re,J).replace(re,v).replace(G,z)+"="+ve[ye].replace(re,J).replace(re,v).replace(Z,z));return _e.length&&(Ce.query=_e.join("&")),Ce}},fe=/^([^\:]+)\:(.*)/,we={scheme:"urn",parse:function(ce,ge){var pe,Ce,ke=ce.path&&ce.path.match(fe);return ke?(Ce=ge.scheme||ce.scheme||"urn",pe=ke[1].toLowerCase(),ke=ke[2],Ce=Ce+":"+(ge.nid||pe),Ce=j[Ce],ce.nid=pe,ce.nss=ke,ce.path=void 0,Ce&&(ce=Ce.parse(ce,ge))):ce.error=ce.error||"URN can not be parsed.",ce},serialize:function(ke,ge){var Ce=ge.scheme||ke.scheme||"urn",pe=ke.nid,Ce=j[Ce+":"+(ge.nid||pe)],Ce=ke=Ce?Ce.serialize(ke,ge):ke,ke=ke.nss;return Ce.path=(pe||ge.nid)+":"+ke,Ce}},Ee=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,$e={scheme:"urn:uuid",parse:function(ce,ge){return ce.uuid=ce.nss,ce.nss=void 0,ge.tolerant||ce.uuid&&ce.uuid.match(Ee)||(ce.error=ce.error||"UUID is not valid."),ce},serialize:function(ce,ge){var pe=ce;return pe.nss=(ce.uuid||"").toLowerCase(),pe}};j[oe.scheme]=oe,j[de.scheme]=de,j[be.scheme]=be,j[Se.scheme]=Se,j[ae.scheme]=ae,j[we.scheme]=we,j[$e.scheme]=$e,a.SCHEMES=j,a.pctEncChar=z,a.pctDecChars=Q,a.parse=U,a.removeDotSegments=ne,a.serialize=se,a.resolveComponents=he,a.resolve=function(ce,ge,pe){return pe=((Ce,ke)=>{var Pe=Ce;if(ke)for(var De in ke)Pe[De]=ke[De];return Pe})({scheme:"null"},pe),se(he(U(ce,pe),U(ge,pe),pe,!0),pe)},a.normalize=function(ce,ge){return typeof ce=="string"?ce=se(U(ce,ge),ge):d(ce)==="object"&&(ce=U(se(ce,ge),ge)),ce},a.equal=function(ce,ge,pe){return typeof ce=="string"?ce=se(U(ce,pe),pe):d(ce)==="object"&&(ce=se(ce,pe)),typeof ge=="string"?ge=se(U(ge,pe),pe):d(ge)==="object"&&(ge=se(ge,pe)),ce===ge},a.escapeComponent=function(ce,ge){return ce&&ce.toString().replace((ge&&ge.iri?$:O).ESCAPE,z)},a.unescapeComponent=ie,Object.defineProperty(a,"__esModule",{value:!0})})(o)},7598:function(s){s.exports=(()=>{function o(b,p){if(!(b instanceof p))throw new TypeError("Cannot call a class as a function")}var a=(()=>{function b(p,g){for(var u=0;u<g.length;u++){var y=g[u];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(p,y.key,y)}}return function(p,g,u){return g&&b(p.prototype,g),u&&b(p,u),p}})(),c=function(b,p){if(Array.isArray(b))return b;if(Symbol.iterator in Object(b)){var g=p,u=[],y=!0,p=!1,m=void 0;try{for(var I,_=b[Symbol.iterator]();
1419!(y=(I=_.next()).done)&&(u.push(I.value),!g||u.length!==g);y=!0);}catch(f){p=!0,m=f}finally{try{!y&&_.return&&_.return()}finally{if(p)throw m}}return u}throw new TypeError("Invalid attempt to destructure non-iterable instance")},l=(String.prototype.startsWith=String.prototype.startsWith||function(b){return this.indexOf(b)===0},String.prototype.padStart=String.prototype.padStart||function(b,p){for(var g=this;g.length<b;)g=p+g;return g},{cb:"0f8ff",tqw:"aebd7",q:"-ffff",qmrn:"7fffd4",zr:"0ffff",bg:"5f5dc",bsq:"e4c4",bck:"---",nch:"ebcd",b:"--ff",bvt:"8a2be2",brwn:"a52a2a",brw:"deb887",ctb:"5f9ea0",hrt:"7fff-",chcT:"d2691e",cr:"7f50",rnw:"6495ed",crns:"8dc",crms:"dc143c",cn:"-ffff",Db:"--8b",Dcn:"-8b8b",Dgnr:"b8860b",Dgr:"a9a9a9",Dgrn:"-64-",Dkhk:"bdb76b",Dmgn:"8b-8b",Dvgr:"556b2f",Drng:"8c-",Drch:"9932cc",Dr:"8b--",Dsmn:"e9967a",Dsgr:"8fbc8f",DsTb:"483d8b",DsTg:"2f4f4f",Dtrq:"-ced1",Dvt:"94-d3",ppnk:"1493",pskb:"-bfff",mgr:"696969",grb:"1e90ff",rbrc:"b22222",rwht:"af0",stg:"228b22",chs:"-ff",gnsb:"dcdcdc",st:"8f8ff",g:"d7-",gnr:"daa520",gr:"808080",grn:"-8-0",grnw:"adff2f",hnw:"0fff0",htpn:"69b4",nnr:"cd5c5c",ng:"4b-82",vr:"0",khk:"0e68c",vnr:"e6e6fa",nrb:"0f5",wngr:"7cfc-",mnch:"acd",Lb:"add8e6",Lcr:"08080",Lcn:"e0ffff",Lgnr:"afad2",Lgr:"d3d3d3",Lgrn:"90ee90",Lpnk:"b6c1",Lsmn:"a07a",Lsgr:"20b2aa",Lskb:"87cefa",LsTg:"778899",Lstb:"b0c4de",Lw:"e0",m:"-ff-",mgrn:"32cd32",nn:"af0e6",mgnt:"-ff",mrn:"8--0",mqm:"66cdaa",mmb:"--cd",mmrc:"ba55d3",mmpr:"9370db",msg:"3cb371",mmsT:"7b68ee","":"-fa9a",mtr:"48d1cc",mmvt:"c71585",mnLb:"191970",ntc:"5fffa",mstr:"e4e1",mccs:"e4b5",vjw:"dead",nv:"--80",c:"df5e6",v:"808-0",vrb:"6b8e23",rng:"a5-",rngr:"45-",rch:"da70d6",pgnr:"eee8aa",pgrn:"98fb98",ptrq:"afeeee",pvtr:"db7093",ppwh:"efd5",pchp:"dab9",pr:"cd853f",pnk:"c0cb",pm:"dda0dd",pwrb:"b0e0e6",prp:"8-080",cc:"663399",r:"--",sbr:"bc8f8f",rb:"4169e1",sbrw:"8b4513",smn:"a8072",nbr:"4a460",sgrn:"2e8b57",ssh:"5ee",snn:"a0522d",svr:"c0c0c0",skb:"87ceeb",sTb:"6a5acd",sTgr:"708090",snw:"afa",n:"-ff7f",stb:"4682b4",tn:"d2b48c",t:"-8080",thst:"d8bfd8",tmT:"6347",trqs:"40e0d0",vt:"ee82ee",whT:"5deb3",wht:"",hts:"5f5f5",w:"-",wgrn:"9acd32"});function d(b,p){return p=1<arguments.length&&p!==void 0?p:1,(0<p?b.toFixed(p).replace(/0+$/,"").replace(/\.$/,""):b.toString())||"0"}var v=(()=>{function b(p,g,u,y){o(this,b);var m,I,_,h,f,w=this;p!==void 0&&(Array.isArray(p)?this.rgba=p:u===void 0?(m=p&&""+p)&&((m=m.toLowerCase()).startsWith("hsl")?(h=m.match(/([\-\d\.e]+)/g).map(Number),f=(h=c(h,4))[0],I=h[1],_=h[2],w.hsla=[f/=360,I/=100,_/=100,f=(f=h[3])===void 0?1:f]):m.startsWith("rgb")?(I=m.match(/([\-\d\.e]+)/g).map(Number),h=(_=c(I,4))[0],w.rgba=[h,_[1],_[2],f=(f=_[3])===void 0?1:f]):m.startsWith("#")?w.rgba=b.hexToRgb(m):w.rgba=b.nameToRgb(m)||b.hexToRgb(m)):this.rgba=[p,g,u,y===void 0?1:y])}return a(b,[{key:"printRGB",value:function(p){var g=(p?this.rgba:this.rgba.slice(0,3)).map(function(u,y){return d(u,y===3?3:0)});return p?"rgba("+g+")":"rgb("+g+")"}},{key:"printHSL",value:function(p){var g=[360,100,100,1],u=["","%","%",""],y=(p?this.hsla:this.hsla.slice(0,3)).map(function(m,I){return d(m*g[I],I===3?3:1)+u[I]});return p?"hsla("+y+")":"hsl("+y+")"}},{key:"printHex",value:function(p){var g=this.hex;return p?g:g.substring(0,7)}},{key:"rgba",get:function(){if(this._rgba)return this._rgba;if(this._hsla)return this._rgba=b.hslToRgb(this._hsla);throw new Error("No color is set")},set:function(p){p.length===3&&(p[3]=1),this._rgba=p,this._hsla=null}},{key:"rgbString",get:function(){return this.printRGB()}},{key:"rgbaString",get:function(){return this.printRGB(!0)}},{key:"hsla",get:function(){if(this._hsla)return this._hsla;if(this._rgba)return this._hsla=b.rgbToHsl(this._rgba);throw new Error("No color is set")},set:function(p){p.length===3&&(p[3]=1),this._hsla=p,this._rgba=null}},{key:"hslString",get:function(){return this.printHSL()}},{key:"hslaString",get:function(){return this.printHSL(!0)}},{key:"hex",get:function(){return"#"+this.rgba.map(function(p,g){return(g<3?p:Math.round(255*p)).toString(16)}).map(function(p){return p.padStart(2,"0")}).join("")}
1419,set:function(p){this.rgba=b.hexToRgb(p)}}],[{key:"hexToRgb",value:function(p){var g=(p.startsWith("#")?p.slice(1):p).replace(/^(\w{3})$/,"$1F").replace(/^(\w)(\w)(\w)(\w)$/,"$1$1$2$2$3$3$4$4").replace(/^(\w{6})$/,"$1FF");if(g.match(/^([0-9a-fA-F]{8})$/))return(g=g.match(/^(\w\w)(\w\w)(\w\w)(\w\w)$/).slice(1).map(function(u){return parseInt(u,16)}))[3]=g[3]/255,g;throw new Error("Unknown hex color; "+p)}},{key:"nameToRgb",value:function(p){return p=p.toLowerCase().replace("at","T").replace(/[aeiouyldf]/g,"").replace("ght","L").replace("rk","D").slice(-5,4),p=l[p],p===void 0?p:b.hexToRgb(p.replace(/\-/g,"00").padStart(6,"f"))}},{key:"rgbToHsl",value:function(m){var m=c(m,4),g=m[0],u=m[1],y=m[2],m=m[3],I=(g/=255,u/=255,y/=255,Math.max(g,u,y)),_=Math.min(g,u,y),h=void 0,f=void 0,w=(I+_)/2;if(I===_)h=f=0;else{var E=I-_,f=.5<w?E/(2-I-_):E/(I+_);switch(I){case g:h=(u-y)/E+(u<y?6:0);break;case u:h=(y-g)/E+2;break;case y:h=(g-u)/E+4}h/=6}return[h,f,w,m]}},{key:"hslToRgb",value:function(m){var m=c(m,4),g=m[0],u=m[1],y=m[2],m=m[3],I=void 0,_=void 0,h=void 0,f=(u===0?I=_=h=y:(I=(f=function(w,E,k){return k<0&&(k+=1),1<k&&--k,k<1/6?w+6*(E-w)*k:k<.5?E:k<2/3?w+(E-w)*(2/3-k)*6:w})(u=2*y-(y=y<.5?y*(1+u):y+u-y*u),y,g+1/3),_=f(u,y,g),h=f(u,y,g-1/3)),[255*I,255*_,255*h].map(Math.round));return f[3]=m,f}}]),b})(),R=(()=>{function b(){o(this,b),this._events=[]}return a(b,[{key:"add",value:function(p,g,u){p.addEventListener(g,u,!1),this._events.push({target:p,type:g,handler:u})}},{key:"remove",value:function(p,g,u){this._events=this._events.filter(function(y){var m=!0;return p&&p!==y.target&&(m=!1),g&&g!==y.type&&(m=!1),(m=u&&u!==y.handler?!1:m)&&b._doRemove(y.target,y.type,y.handler),!m})}},{key:"destroy",value:function(){this._events.forEach(function(p){return b._doRemove(p.target,p.type,p.handler)}),this._events=[]}}],[{key:"_doRemove",value:function(p,g,u){p.removeEventListener(g,u,!1)}}]),b})();function O(b,p,g){var u=!1;function y(h,f,w){return Math.max(f,Math.min(h,w))}function m(h,f,w){var E,k;(u=w?!0:u)&&(h.preventDefault(),h=(w=p.getBoundingClientRect()).width,E=w.height,k=f.clientX,f=f.clientY,k=y(k-w.left,0,h),f=y(f-w.top,0,E),g(k/h,f/E))}function I(h,f){(h.buttons===void 0?h.which:h.buttons)===1?m(h,h,f):u=!1}function _(h,f){h.touches.length===1?m(h,h.touches[0],f):u=!1}b.add(p,"mousedown",function(h){I(h,!0)}),b.add(p,"touchstart",function(h){_(h,!0)}),b.add(window,"mousemove",I),b.add(p,"touchmove",_),b.add(window,"mouseup",function(h){u=!1}),b.add(p,"touchend",function(h){u=!1}),b.add(p,"touchcancel",function(h){u=!1})}var $="mousedown",P="focusin";function T(b,p){return(p||document).querySelector(b)}function C(b){b.preventDefault(),b.stopPropagation()}function N(b,p,g,u,y){b.add(p,"keydown",function(m){0<=g.indexOf(m.key)&&u(m)})}var x=(()=>{function b(p){o(this,b),this.settings={popup:"right",layout:"default",alpha:!0,editor:!0,editorFormat:"hex",cancelButton:!1,defaultColor:"#0cf"},this._events=new R,this.onChange=null,this.onDone=null,this.onOpen=null,this.onClose=null,this.setOptions(p)}return a(b,[{key:"setOptions",value:function(p){var g=this;if(p){var u=this.settings;if(p instanceof HTMLElement)u.parent=p;else{u.parent&&p.parent&&u.parent!==p.parent&&(this._events.remove(u.parent),this._popupInited=!1);var y,m=p,I=u,_=void 0;for(y in m)_&&0<=_.indexOf(y)||(I[y]=m[y]);p.onChange&&(this.onChange=p.onChange),p.onDone&&(this.onDone=p.onDone),p.onOpen&&(this.onOpen=p.onOpen),p.onClose&&(this.onClose=p.onClose);var f=p.color||p.colour;f&&this._setColor(f)}var h,f=u.parent;f&&u.popup&&!this._popupInited?(this._events.add(f,"click",h=function(w){return g.openHandler(w)}),N(this._events,f,[" ","Spacebar","Enter"],h),this._popupInited=!0):p.parent&&!u.popup&&this.show()}}},{key:"openHandler",value:function(p){var g;this.show()&&(p&&p.preventDefault(),this.settings.parent.style.pointerEvents="none",g=p&&p.type==="
1419keydown"?this._domEdit:this.domElement,setTimeout(function(){return g.focus()},100),this.onOpen)&&this.onOpen(this.colour)}},{key:"closeHandler",value:function(p){var g,u=p&&p.type,y=!1;p?u===$||u===P?(g=(this.__containedEvent||0)+100,p.timeStamp>g&&(y=!0)):(C(p),y=!0):y=!0,y&&this.hide()&&(this.settings.parent.style.pointerEvents="",u!==$&&this.settings.parent.focus(),this.onClose)&&this.onClose(this.colour)}},{key:"movePopup",value:function(p,g){this.closeHandler(),this.setOptions(p),g&&this.openHandler()}},{key:"setColor",value:function(p,g){this._setColor(p,{silent:g})}},{key:"_setColor",value:function(p,g){if(p=typeof p=="string"?p.trim():p){g=g||{};var u=void 0;try{u=new v(p)}catch(y){if(g.failSilently)return;throw y}this.settings.alpha||((p=u.hsla)[3]=1,u.hsla=p),this.colour=this.color=u,this._setHSLA(null,null,null,null,g)}}},{key:"setColour",value:function(p,g){this.setColor(p,g)}},{key:"show",value:function(){var p,g,u;return!!this.settings.parent&&(this.domElement?(g=this._toggleDOM(!0),this._setPosition(),g):(g=this.settings.template||'<div class="picker_wrapper" tabindex="-1"><div class="picker_arrow"></div><div class="picker_hue picker_slider"><div class="picker_selector"></div></div><div class="picker_sl"><div class="picker_selector"></div></div><div class="picker_alpha picker_slider"><div class="picker_selector"></div></div><div class="picker_editor"><input aria-label="Type a color name or hex value"/></div><div class="picker_sample"></div><div class="picker_done"><button>Ok</button></div><div class="picker_cancel"><button>Cancel</button></div></div>',g=g,(u=document.createElement("div")).innerHTML=g,p=u.firstElementChild,this.domElement=p,this._domH=T(".picker_hue",p),this._domSL=T(".picker_sl",p),this._domA=T(".picker_alpha",p),this._domEdit=T(".picker_editor input",p),this._domSample=T(".picker_sample",p),this._domOkay=T(".picker_done button",p),this._domCancel=T(".picker_cancel button",p),p.classList.add("layout_"+this.settings.layout),this.settings.alpha||p.classList.add("no_alpha"),this.settings.editor||p.classList.add("no_editor"),this.settings.cancelButton||p.classList.add("no_cancel"),this._ifPopup(function(){return p.classList.add("popup")}),this._setPosition(),this.colour?this._updateUI():this._setColor(this.settings.defaultColor),this._bindEvents(),!0))}},{key:"hide",value:function(){return this._toggleDOM(!1)}},{key:"destroy",value:function(){this._events.destroy(),this.domElement&&this.settings.parent.removeChild(this.domElement)}},{key:"_bindEvents",value:function(){var p=this,g=this,u=this.domElement,y=this._events;function m(h,f,w){y.add(h,f,w)}m(u,"click",function(h){return h.preventDefault()}),O(y,this._domH,function(h,f){g._setHSLA(h)}),O(y,this._domSL,function(h,f){g._setHSLA(null,h,1-f)}),this.settings.alpha&&O(y,this._domA,function(h,f){g._setHSLA(null,null,null,1-f)});function I(h){p._ifPopup(function(){return p.closeHandler(h)}),p.onDone&&p.onDone(p.colour)}var _=this._domEdit;m(_,"input",function(h){g._setColor(this.value,{fromEditor:!0,failSilently:!0})}),m(_,"focus",function(h){this.selectionStart===this.selectionEnd&&this.select()}),this._ifPopup(function(){function h(w){return p.closeHandler(w)}function f(w){p.__containedEvent=w.timeStamp}m(window,$,h),m(window,P,h),N(y,u,["Esc","Escape"],h),m(u,$,f),m(u,P,f),m(p._domCancel,"click",h)}),m(this._domOkay,"click",I),N(y,u,["Enter"],I)}},{key:"_setPosition",value:function(){var p=this.settings.parent,g=this.domElement;p!==g.parentNode&&p.appendChild(g),this._ifPopup(function(u){getComputedStyle(p).position==="static"&&(p.style.position="relative");var y=u===!0?"popup_right":"popup_"+u;["popup_top","popup_bottom","popup_left","popup_right"].forEach(function(m){m===y?g.classList.add(m):g.classList.remove(m)}),g.classList.add(y)})}},{key:"_setHSLA",value:function(p,g,u,y,m){m=m||{};var I=this.colour,_=I.hsla;[p,g,u,y].forEach(function(h,f){!h&&h!==0||(_[f]=h)}),I.hsla=_,this._updateUI(m),this.onChange&&!m.silent&&this.onChange(I)}},{key:"_updateUI",value:function(p){if(this.domElement){p=p||{};var g=this.colour,u=g.hsla,w="hsl("+360*u[0]+", 100%, 50%)",y=g.hslString,m=g.hslaString,f=this._domH,I=this._domSL,h=this._domA,f=T(".picker_selector",f),_=T(".picker_selector",I),h=T(".picker_selector",h),f=(L(0,f,u[0]),this._domSL.style.backgroundColor=this._domH.style.color=w,L(0,_,u[1]),M(0,_,1-u[2]),I.style.color=y,M(0,h,1-u[3]),y),w=f.replace("hsl","hsla").replace(")",", 0)");if(this._domA.style.background="linear-gradient("+[f,w]+`), linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0 / 2em 2em, 1420 linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em / 2em 2em`,!p.fromEditor){var _=this.settings.editorFormat,E=this.settings.alpha,k=void 0;switch(_){case"rgb":k=g.printRGB(E);break;case"hsl":k=g.printHSL(E);break;default:k=g.printHex(E)}this._domEdit.value=k}this._domSample.style.color=m}function L(B,j,z){j.style.left=100*z+"%"}function M(B,j,z){j.style.top=100*z+"%"}}},{key:"_ifPopup",value:function(p,g){this.settings.parent&&this.settings.popup?p&&p(this.settings.popup):g&&g()}},{key:"_toggleDOM",value:function(p){var g,u=this.domElement;return!!u&&((g=u.style.display!==(p=p?"":"none"))&&(u.style.display=p),g)}}]),b})(),S=document.createElement("style");return S.textContent='.picker_wrapper.no_alpha .picker_alpha{display:none}.picker_wrapper.no_editor .picker_editor{position:absolute;z-index:-1;opacity:0}
1420.picker_wrapper.no_cancel .picker_cancel{display:none}.layout_default.picker_wrapper{display:flex;flex-flow:row wrap;justify-content:space-between;align-items:stretch;font-size:10px;width:25em;padding:.5em}.layout_default.picker_wrapper input,.layout_default.picker_wrapper button{font-size:1rem}.layout_default.picker_wrapper>*{margin:.5em}.layout_default.picker_wrapper::before{content:"";display:block;width:100%;height:0;order:1}.layout_default .picker_slider,.layout_default .picker_selector{padding:1em}.layout_default .picker_hue{width:100%}.layout_default .picker_sl{flex:1 1 auto}.layout_default .picker_sl::before{content:"";display:block;padding-bottom:100%}.layout_default .picker_editor{order:1;width:6.5rem}.layout_default .picker_editor input{width:100%;height:100%}.layout_default .picker_sample{order:1;flex:1 1 auto}.layout_default .picker_done,.layout_default .picker_cancel{order:1}.picker_wrapper{box-sizing:border-box;background:#f2f2f2;box-shadow:0 0 0 1px silver;cursor:default;font-family:sans-serif;color:#444;pointer-events:auto}.picker_wrapper:focus{outline:none}.picker_wrapper button,.picker_wrapper input{box-sizing:border-box;border:none;box-shadow:0 0 0 1px silver;outline:none}.picker_wrapper button:focus,.picker_wrapper button:active,.picker_wrapper input:focus,.picker_wrapper input:active{box-shadow:0 0 2px 1px #1e90ff}.picker_wrapper button{padding:.4em .6em;cursor:pointer;background-color:#f5f5f5;background-image:linear-gradient(0deg, gainsboro, transparent)}.picker_wrapper button:active{background-image:linear-gradient(0deg, transparent, gainsboro)}.picker_wrapper button:hover{background-color:#fff}.picker_selector{position:absolute;z-index:1;display:block;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);border:2px solid #fff;border-radius:100%;box-shadow:0 0 3px 1px #67b9ff;background:currentColor;cursor:pointer}.picker_slider .picker_selector{border-radius:2px}.picker_hue{position:relative;background-image:linear-gradient(90deg, red, yellow, lime, cyan, blue, magenta, red);box-shadow:0 0 0 1px silver}.picker_sl{position:relative;box-shadow:0 0 0 1px silver;background-image:linear-gradient(180deg, white, rgba(255, 255, 255, 0) 50%),linear-gradient(0deg, black, rgba(0, 0, 0, 0) 50%),linear-gradient(90deg, #808080, rgba(128, 128, 128, 0))}.picker_alpha,.picker_sample{position:relative;background:linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0/2em 2em,linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em/2em 2em;box-shadow:0 0 0 1px silver}.picker_alpha .picker_selector,.picker_sample .picker_selector{background:none}.picker_editor input{font-family:monospace;padding:.2em .4em}.picker_sample::before{content:"";position:absolute;display:block;width:100%;height:100%;background:currentColor}.picker_arrow{position:absolute;z-index:-1}.picker_wrapper.popup{position:absolute;z-index:2;margin:1.5em}.picker_wrapper.popup,.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{background:#f2f2f2;box-shadow:0 0 10px 1px rgba(0,0,0,.4)}.picker_wrapper.popup .picker_arrow{width:3em;height:3em;margin:0}.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{content:"";display:block;position:absolute;top:0;left:0;z-index:-99}.picker_wrapper.popup .picker_arrow::before{width:100%;height:100%;-webkit-transform:skew(45deg);transform:skew(45deg);-webkit-transform-origin:0 100%;transform-origin:0 100%}.picker_wrapper.popup .picker_arrow::after{width:150%;height:150%;box-shadow:none}.popup.popup_top{bottom:100%;left:0}.popup.popup_top .picker_arrow{bottom:0;left:0;-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.popup.popup_bottom{top:100%;left:0}.popup.popup_bottom .picker_arrow{top:0;left:0;-webkit-transform:rotate(90deg) scale(1, -1);transform:rotate(90deg) scale(1, -1)}.popup.popup_left{top:0;right:100%}.popup.popup_left .picker_arrow{top:0;right:0;-webkit-transform:scale(-1, 1);transform:scale(-1, 1)}.popup.popup_right{top:0;left:100%}.popup.popup_right .picker_arrow{top:0;left:0}',document.documentElement.firstElementChild.appendChild(S),x.StyleElement=S,x})()},9857:function(s,o,a){a.d(o,{m:function(){return K}});
1420class c extends Error{constructor(A,W){super(A+" at position "+W),this.position=W}}let l=32,d=10,v=9,R=13,O=160,$=6158,P=8192,T=8203,C=8239,N=8287,x=12288,S=65279;function b(H){return"0"<=H&&H<="9"}function p(H){return`,:[]/{}() 1421+`.includes(H)}function g(H){return"a"<=H&&H<="z"||"A"<=H&&H<="Z"||H==="_"||H==="$"}function u(H){return"a"<=H&&H<="z"||"A"<=H&&H<="Z"||H==="_"||H==="$"||"0"<=H&&H<="9"}let y=/^(http|https|ftp|mailto|file|data|irc):\/\/$/,m=/^[A-Za-z0-9-._~:/?#@!$&'()*+;=]$/;function I(H){return`,[]/{} 1422+`.includes(H)}function _(H){return E(H)||h.test(H)}let h=/^[[{\w-]$/;function f(H,A){return H=H.charCodeAt(A),H===l||H===d||H===v||H===R}function w(H,A){return H=H.charCodeAt(A),H===l||H===v||H===R}function E(H){return k(H)||M(H)}function k(H){return H==='"'||H==="â"||H==="â"}function L(H){return H==='"'}function M(H){return H==="'"||H==="â"||H==="â"||H==="`"||H==="´"}function B(H){return H==="'"}function j(H,A,W){return W=2<arguments.length&&W!==void 0&&W,A=H.lastIndexOf(A),A!==-1?H.substring(0,A)+(W?"":H.substring(A+1)):H}function z(H,A){let W=H.length;if(!f(H,W-1))return H+A;for(;f(H,W-1);)W--;return H.substring(0,W)+A+H.substring(W)}let Q={"\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},D={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:` 1423`,r:"\r",t:" "};function K(H){let A=0,W="";if(X(["```","[```","{```"]),!U())throw new c("Unexpected end of json string",H.length);X(["```","```]","```}"]);var F=q(",");if(F&&Y(),_(H[A])&&/[,\n][ \t\r]*$/.test(W)){F||(W=z(W,","));{let te=!0,re=!0;for(;re;)te?te=!1:q(",")||(W=z(W,",")),re=U();W=`[ 1424${W=re?W:j(W,",")} 1425]`}}else F&&(W=j(W,","));for(;H[A]==="}"||H[A]==="]";)A++,Y();if(A>=H.length)return W;throw new c("Unexpected character "+JSON.stringify(H[A]),A);function U(){Y();var te=(()=>{if(H[A]!=="{")return!1;{W+="{",A++,Y(),ne(",")&&Y();let Z=!0;for(;A<H.length&&H[A]!=="}";){if(Z?Z=!1:(q(",")||(W=z(W,",")),Y()),se(),!(he()||de(!0))){H[A]==="}"||H[A]==="{"||H[A]==="]"||H[A]==="["||H[A]===void 0?W=j(W,","):(()=>{throw new c("Object key expected",A)})();break}Y();var re=q(":"),le=A>=H.length,G=(re||(_(H[A])||le?W=z(W,":"):V()),U());G||(re||le?W+="null":V())}return H[A]==="}"?(W+="}",A++):W=z(W,"}"),!0}})()||(()=>{if(H[A]!=="[")return!1;{W+="[",A++,Y(),ne(",")&&Y();let le=!0;for(;A<H.length&&H[A]!=="]";){le?le=!1:q(",")||(W=z(W,",")),se();var re=U();if(!re){W=j(W,",");break}}return H[A]==="]"?(W+="]",A++):W=z(W,"]"),!0}})()||he()||(()=>{var re,le,G=A;if(H[A]==="-"){if(A++,be())return Se(G),!0;if(!b(H[A]))return A=G,!1}for(;b(H[A]);)A++;if(H[A]==="."){if(A++,be())return Se(G),!0;if(!b(H[A]))return A=G,!1;for(;b(H[A]);)A++}if(H[A]==="e"||H[A]==="E"){if(A++,H[A]!=="-"&&H[A]!=="+"||A++,be())return Se(G),!0;if(!b(H[A]))return A=G,!1;for(;b(H[A]);)A++}if(be()){if(A>G)return re=H.slice(G,A),le=/^0\d/.test(re),W+=le?`"${re}"`:re,!0}else A=G;return!1})()||oe("true","true")||oe("false","false")||oe("null","null")||oe("True","true")||oe("False","false")||oe("None","null")||de(!1)||(()=>{if(H[A]==="/"){var re=A;for(A++;A<H.length&&(H[A]!=="/"||H[A-1]==="\\");)A++;return A++,W+=JSON.stringify(H.substring(re,A)),!0}})();return Y(),te}function Y(te){var re=!(0<arguments.length&&te!==void 0)||te;for(ee(re);(()=>{if(H[A]==="/"&&H[A+1]==="*"){for(;A<H.length&&!((le,G)=>le[G]==="*"&&le[G+1]==="/")(H,A);)A++;A+=2}else{if(H[A]!=="/"||H[A+1]!=="/")return!1;for(;A<H.length&&H[A]!==` 1426`;)A++}return!0})()&&ee(re););}function ee(te){var re,le,G=te?f:w;let Z="";for(;;){if(G(H,A))Z+=H[A];else{if(re=H,le=A,!((re=re.charCodeAt(le))===O||re===$||re>=P&&re<=T||re===C||re===N||re===x||re===S))break;Z+=" "}A++}return 0<Z.length&&(W+=Z,!0)}function X(te){if((re=>{ee(!0);for(var le of re){var G=A+le.length;if(H.slice(A,G)===le)return A=G,1}})(te)){if(g(H[A]))for(;A<H.length&&u(H[A]);)A++;Y()}}function q(te){return H[A]===te&&(W+=H[A],A++,!0)}function ne(te){return H[A]===te&&(A++,!0)}function se(){Y(),H[A]==="."&&H[A+1]==="."&&H[A+2]==="."&&(A+=3,Y(),ne(","))}function he(te,re){var le=0<arguments.length&&te!==void 0&&te,G=1<arguments.length&&re!==void 0?re:-1;let Z=H[A]==="\\";if(Z&&(A++,Z=!0),E(H[A])){var J=L(H[A])?L:B(H[A])?B:M(H[A])?M:k,ae=A,fe=W.length;let pe='"';for(A++;;){if(A>
1426=H.length)return we=me(A-1),!le&&p(H.charAt(we))?(A=ae,W=W.substring(0,fe),he(!0)):(pe=z(pe,'"'),W+=pe,!0);if(A===G)return pe=z(pe,'"'),W+=pe,!0;if(J(H[A])){var we=A,Ee=pe.length;if(pe+='"',A++,W+=pe,Y(!1),le||A>=H.length||p(H[A])||E(H[A])||b(H[A]))return ie(),!0;var $e=me(we-1),ce=H.charAt($e);if(ce===",")return A=ae,W=W.substring(0,fe),he(!1,$e);if(p(ce))return A=ae,W=W.substring(0,fe),he(!0);W=W.substring(0,fe),A=we+1,pe=pe.substring(0,Ee)+"\\"+pe.substring(Ee)}else{if(le&&I(H[A])){if(H[A-1]===":"&&y.test(H.substring(ae+1,A+2)))for(;A<H.length&&m.test(H[A]);)pe+=H[A],A++;return pe=z(pe,'"'),W+=pe,ie(),!0}if(H[A]==="\\")if($e=H.charAt(A+1),D[$e]!==void 0)pe+=H.slice(A,A+2),A+=2;else if($e==="u"){let Ce=2;for(;Ce<6&&/^[0-9A-Fa-f]$/.test(H[A+Ce]);)Ce++;if(Ce===6)pe+=H.slice(A,A+6),A+=6;else{if(!(A+Ce>=H.length))throw ce=void 0,ce=H.slice(A,A+6),new c(`Invalid unicode character "${ce}"`,A);A=H.length}}else pe+=$e,A+=2;else{var ge,Ee=H.charAt(A);if(Ee==='"'&&H[A-1]!=="\\")pe+="\\"+Ee;else if((ge=Ee)===` 1427`||ge==="\r"||ge===" "||ge==="\b"||ge==="\f")pe+=Q[Ee];else{if(!(" "<=Ee))throw ge=void 0,ge=Ee,new c("Invalid character "+JSON.stringify(ge),A);pe+=Ee}A++}}Z&&ne("\\")}}return!1}function ie(){for(Y();H[A]==="+";){A++,Y();var te=(W=j(W,'"',!0)).length,re=he();W=re?(re=W,te=te,le=1,re.substring(0,te)+re.substring(te+le)):z(W,'"')}var le}function oe(te,re){return H.slice(A,A+te.length)===te&&(W+=re,A+=te.length,!0)}function de(te){var re=A;if(g(H[A])){for(;A<H.length&&u(H[A]);)A++;let le=A;for(;f(H,le);)le++;if(H[le]==="(")return A=le+1,U(),H[A]===")"&&(A++,H[A]===";")&&A++,!0}for(;A<H.length&&!I(H[A])&&!E(H[A])&&(!te||H[A]!==":");)A++;if(H[A-1]===":"&&y.test(H.substring(re,A+2)))for(;A<H.length&&m.test(H[A]);)A++;if(A>re){for(;f(H,A-1)&&0<A;)A--;return re=H.slice(re,A),W+=re==="undefined"?"null":JSON.stringify(re),H[A]==='"'&&A++,!0}}function me(te){let re=te;for(;0<re&&f(H,re);)re--;return re}function be(){return A>=H.length||p(H[A])||f(H,A)}function Se(te){W+=H.slice(te,A)+"0"}function V(){throw new c("Colon expected",A)}}},3420:function(s){s.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON Schema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},5207:function(s){s.exports=JSON.parse('{"id":"http://json-schema.org/draft-04/schema#","$schema":"http://json-schema.org/draft-04/schema#","description":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"positiveInteger":{"type":"integer","minimum":0},"positiveIntegerDefault0":{"allOf":[{"$ref":"#/definitions/positiveInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"minItems":1,"uniqueItems":true}},"type":"object","properties":{"id":{"type":"string"},"$schema":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":{},"multipleOf":{"type":"number","minimum":0,"exclusiveMinimum":true},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"boolean","default":false},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"boolean","default":false},"maxLength":{"$ref":"#/definitions/positiveInteger"},"minLength":{"$ref":"#/definitions/positiveIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":{}},"maxItems":{"$ref":"#/definitions/positiveInteger"},"minItems":{"$ref":"#/definitions/positiveIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"maxProperties":{"$ref":"#/definitions/positiveInteger"},"minProperties":{"$ref":"#/definitions/positiveIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"enum":{"type":"array","minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"dependencies":{"exclusiveMaximum":["maximum"],"exclusiveMinimum":["minimum"]},"default":{}}')},6801:function(s){s.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-06/schema#","$id":"http://json-schema.org/draft-06/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"title":{"type":"string"},"description":{"type":"string"},"default":{},"examples":{"type":"array","items":{}},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":{}},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"}
1427,"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":{},"enum":{"type":"array","minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":{}}')},8198:function(s){s.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true}
vendor: 5,756 bytes, line 1427
1427,"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')}},i={},n.amdD=function(){throw new Error("define cannot be used indirect")},n.n=function(s){var o=s&&s.__esModule?function(){return s.default}:function(){return s};return n.d(o,{a:o}),o},n.d=function(s,o){for(var a in o)n.o(o,a)&&!n.o(s,a)&&Object.defineProperty(s,a,{enumerable:!0,get:o[a]})},n.o=function(s,o){return Object.prototype.hasOwnProperty.call(s,o)},n.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},n.nmd=function(s){return s.paths=[],s.children||(s.children=[]),s},n(1346);function n(s){var o=i[s];return o!==void 0||(o=i[s]={id:s,loaded:!1,exports:{}},r[s].call(o.exports,o,o.exports,n),o.loaded=!0),o.exports}var r,i})})(Zh)),Zh.exports}var E5=S5();const x5=Wd(E5),ec=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},T5={name:"Vue3Jsoneditor"},k5=Object.assign(T5,{props:{modelValue:Object,options:Object,currentMode:{type:String,default:"code"},modeList:{type:Array,default:()=>["tree","code","form","text","view"]},language:{type:String,default:"en"},height:{type:String},plus:{type:Boolean,default:!0}},emits:["update:modelValue","change","error","textSelectionChange","selectionChange","colorPicker","focus","blur"],setup(e,{expose:t,emit:n}){const r=["tree","view","form"],i=e,s=n,o=yt(null);let a=null,c=!1;const l=yt(!1),d=yt(!0),v=yt(!1),R=Xe(()=>i.height?{height:i.height}:{});function O(){r.includes(a?.getMode())&&a?.expandAll()}function $(N){a?.set(N)}function P(){l.value=!l.value,Wn(()=>{window.dispatchEvent(new Event("resize"))})}function T(N){s("update:modelValue",N),s("change",N),c=!0,Wn(()=>{c=!1})}function C(){a=new x5(o.value,{...i.options,indentation:2,language:i.language,mode:i.currentMode,modes:i.modeList,onChange(){if(!a.getText()){T({});return}try{T(a.get())}catch(x){s("error",x)}},onModeChange:()=>O(),onTextSelectionChange:(N,x,S)=>s("textSelectionChange",a,N,x,S),onSelectionChange:(N,x)=>s("selectionChange",a,N,x),onColorPicker:(N,x,S)=>s("colorPicker",a,N,x,S),onFocus:({target:N})=>s("focus",a,N),onBlur:({target:N})=>s("blur",a,N)},i.modelValue)}return xt(()=>i.modelValue,N=>{c||($(N),Wn(()=>O()))},{deep:!0}),tr(()=>{C();const N=document.querySelector(".jsoneditor-menu .jsoneditor-poweredBy");d.value=N&&window.getComputedStyle(N).display!=="none",v.value=!0}),Ii(()=>{a?.destroy(),a=null}),t({expandAll:O,setEditorContent:$,toggleFullScreen:P}),(N,x)=>(It(),on("div",{class:wr(["container",{"full-screen-container":l.value}]),style:Vo(R.value)},[Qt("div",{ref_key:"editorRef",ref:o,class:"json-editor-vue"},null,512),e.currentMode==="code"&&e.plus?(It(),on("div",{key:0,class:wr(["full-screen",{show:v.value,right:!d.value}]),onClick:P},null,2)):lr("",!0)],6))}}),R5=ec(k5,[["__scopeId","data-v-84426ea0"]]),L5=Je(e=>{e.vueApp.component("v-jsoneditor",R5)});var O5="store";function fa(e,t){Object.keys(e).forEach(function(n){return t(e[n],n)})}function fE(e){return e!==null&&typeof e=="object"}function N5(e){return e&&typeof e.then=="function"}function P5(e,t){return function(){return e(t)}}function pE(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var r=t.indexOf(e);r>-1&&t.splice(r,1)}}function gE(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;Vd(e,n,[],e._modules.root,!0),Tm(e,n,t)}function Tm(e,t,n){var r=e._state,i=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var s=e._wrappedGetters,o={},a={},c=Hl(!0);c.run(function(){fa(s,function(l,d){o[d]=P5(l,e),a[d]=Xe(function(){return o[d]()}),Object.defineProperty(e.getters,d,{get:function(){return a[d].value},enumerable:!0})})}),e._state=Pn({data:t}),e._scope=c,e.strict&&F5(e),r&&n&&e._withCommit(function(){r.data=null}),i&&i.stop()}function Vd(e,t,n,r,i){var s=!n.length,o=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[o],e._modulesNamespaceMap[o]=r),!s&&!i){var a=km(t,n.slice(0,-1)),c=n[n.length-1];e._withCommit(function(){a[c]=r.state})}var l=r.context=$5(e,o,n);r.forEachMutation(function(d,v){var R=o+v;M5(e,R,d,l)}),r.forEachAction(function(d,v){var R=d.root?v:o+v,O=d.handler||d;D5(e,R,O,l)}),r.forEachGetter(function(d,v){var R=o+v;B5(e,R,d,l)}),r.forEachChild(function(d,v){Vd(e,t,n.concat(v),d,i)})}
1427function $5(e,t,n){var r=t==="",i={dispatch:r?e.dispatch:function(s,o,a){var c=Vu(s,o,a),l=c.payload,d=c.options,v=c.type;return(!d||!d.root)&&(v=t+v),e.dispatch(v,l)},commit:r?e.commit:function(s,o,a){var c=Vu(s,o,a),l=c.payload,d=c.options,v=c.type;(!d||!d.root)&&(v=t+v),e.commit(v,l,d)}};return Object.defineProperties(i,{getters:{get:r?function(){return e.getters}:function(){return mE(e,t)}},state:{get:function(){return km(e.state,n)}}}),i}function mE(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach(function(i){if(i.slice(0,r)===t){var s=i.slice(r);Object.defineProperty(n,s,{get:function(){return e.getters[i]},enumerable:!0})}}),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function M5(e,t,n,r){var i=e._mutations[t]||(e._mutations[t]=[]);i.push(function(o){n.call(e,r.state,o)})}function D5(e,t,n,r){var i=e._actions[t]||(e._actions[t]=[]);i.push(function(o){var a=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},o);return N5(a)||(a=Promise.resolve(a)),e._devtoolHook?a.catch(function(c){throw e._devtoolHook.emit("vuex:error",c),c}):a})}function B5(e,t,n,r){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(s){return n(r.state,r.getters,s.state,s.getters)})}function F5(e){xt(function(){return e._state.data},function(){},{deep:!0,flush:"sync"})}function km(e,t){return t.reduce(function(n,r){return n[r]},e)}function Vu(e,t,n){return fE(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}var H5="vuex bindings",nC="vuex:mutations",Kh="vuex:actions",is="vuex",W5=0;function V5(e,t){Cj({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[H5]},function(n){n.addTimelineLayer({id:nC,label:"Vuex Mutations",color:rC}),n.addTimelineLayer({id:Kh,label:"Vuex Actions",color:rC}),n.addInspector({id:is,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree(function(r){if(r.app===e&&r.inspectorId===is)if(r.filter){var i=[];CE(i,t._modules.root,r.filter,""),r.rootNodes=i}else r.rootNodes=[vE(t._modules.root,"")]}),n.on.getInspectorState(function(r){if(r.app===e&&r.inspectorId===is){var i=r.nodeId;mE(t,i),r.state=j5(Z5(t._modules,i),i==="root"?t.getters:t._makeLocalGettersCache,i)}}),n.on.editInspectorState(function(r){if(r.app===e&&r.inspectorId===is){var i=r.nodeId,s=r.path;i!=="root"&&(s=i.split("/").filter(Boolean).concat(s)),t._withCommit(function(){r.set(t._state.data,s,r.state.value)})}}),t.subscribe(function(r,i){var s={};r.payload&&(s.payload=r.payload),s.state=i,n.notifyComponentUpdate(),n.sendInspectorTree(is),n.sendInspectorState(is),n.addTimelineEvent({layerId:nC,event:{time:Date.now(),title:r.type,data:s}})}),t.subscribeAction({before:function(r,i){var s={};r.payload&&(s.payload=r.payload),r._id=W5++,r._time=Date.now(),s.state=i,n.addTimelineEvent({layerId:Kh,event:{time:r._time,title:r.type,groupId:r._id,subtitle:"start",data:s}})},after:function(r,i){var s={},o=Date.now()-r._time;s.duration={_custom:{type:"duration",display:o+"ms",tooltip:"Action duration",value:o}},r.payload&&(s.payload=r.payload),s.state=i,n.addTimelineEvent({layerId:Kh,event:{time:Date.now(),title:r.type,groupId:r._id,subtitle:"end",data:s}})}})})}var rC=8702998,G5=6710886,U5=16777215,yE={label:"namespaced",textColor:U5,backgroundColor:G5};function bE(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function vE(e,t){return{id:t||"root",label:bE(t),tags:e.namespaced?[yE]:[],children:Object.keys(e._children).map(function(n){return vE(e._children[n],t+n+"/")})}}function CE(e,t,n,r){r.includes(n)&&e.push({id:r||"root",label:r.endsWith("/")?r.slice(0,r.length-1):r||"Root",tags:t.namespaced?[yE]:[]}),Object.keys(t._children).forEach(function(i){CE(e,t._children[i],n,r+i+"/")})}function j5(e,t,n){t=n==="root"?t:t[n];var r=Object.keys(t),i={state:Object.keys(e.state).map(function(o){return{key:o,editable:!0,value:e.state[o]}})};if(r.length){var s=z5(t);i.getters=Object.keys(s).map(function(o){return{key:o.endsWith("/")?bE(o):o,editable:!1,value:Vp(function(){return s[o]})}})}return i}function z5(e){var t={};return Object.keys(e).forEach(function(n){var r=n.split("/");if(r.length>1){var i=t,s=r.pop();
1427r.forEach(function(o){i[o]||(i[o]={_custom:{value:{},display:o,tooltip:"Module",abstract:!0}}),i=i[o]._custom.value}),i[s]=Vp(function(){return e[n]})}else t[n]=Vp(function(){return e[n]})}),t}function Z5(e,t){var n=t.split("/").filter(function(r){return r});return n.reduce(function(r,i,s){var o=r[i];if(!o)throw new Error('Missing module "'+i+'" for path "'+t+'".');return s===n.length-1?o:o._children},t==="root"?e:e.root._children)}function Vp(e){try{return e()}catch(t){return t}}var Or=function(t,n){this.runtime=n,this._children=Object.create(null),this._rawModule=t;var r=t.state;this.state=(typeof r=="function"?r():r)||{}},IE={namespaced:{configurable:!0}};IE.namespaced.get=function(){return!!this._rawModule.namespaced};Or.prototype.addChild=function(t,n){this._children[t]=n};Or.prototype.removeChild=function(t){delete this._children[t]};Or.prototype.getChild=function(t){return this._children[t]};Or.prototype.hasChild=function(t){return t in this._children};Or.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)};Or.prototype.forEachChild=function(t){fa(this._children,t)};Or.prototype.forEachGetter=function(t){this._rawModule.getters&&fa(this._rawModule.getters,t)};Or.prototype.forEachAction=function(t){this._rawModule.actions&&fa(this._rawModule.actions,t)};Or.prototype.forEachMutation=function(t){this._rawModule.mutations&&fa(this._rawModule.mutations,t)};Object.defineProperties(Or.prototype,IE);var Yo=function(t){this.register([],t,!1)};Yo.prototype.get=function(t){return t.reduce(function(n,r){return n.getChild(r)},this.root)};Yo.prototype.getNamespace=function(t){var n=this.root;return t.reduce(function(r,i){return n=n.getChild(i),r+(n.namespaced?i+"/":"")},"")};Yo.prototype.update=function(t){AE([],this.root,t)};Yo.prototype.register=function(t,n,r){var i=this;r===void 0&&(r=!0);var s=new Or(n,r);if(t.length===0)this.root=s;else{var o=this.get(t.slice(0,-1));o.addChild(t[t.length-1],s)}n.modules&&fa(n.modules,function(a,c){i.register(t.concat(c),a,r)})};Yo.prototype.unregister=function(t){var n=this.get(t.slice(0,-1)),r=t[t.length-1],i=n.getChild(r);i&&i.runtime&&n.removeChild(r)};Yo.prototype.isRegistered=function(t){var n=this.get(t.slice(0,-1)),r=t[t.length-1];return n?n.hasChild(r):!1};function AE(e,t,n){if(t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return;AE(e.concat(r),t.getChild(r),n.modules[r])}}function K5(e){return new Zn(e)}var Zn=function(t){var n=this;t===void 0&&(t={});var r=t.plugins;r===void 0&&(r=[]);var i=t.strict;i===void 0&&(i=!1);var s=t.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new Yo(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=s;var o=this,a=this,c=a.dispatch,l=a.commit;this.dispatch=function(R,O){return c.call(o,R,O)},this.commit=function(R,O,$){return l.call(o,R,O,$)},this.strict=i;var d=this._modules.root.state;Vd(this,d,[],this._modules.root),Tm(this,d),r.forEach(function(v){return v(n)})},Rm={state:{configurable:!0}};Zn.prototype.install=function(t,n){t.provide(n||O5,this),t.config.globalProperties.$store=this;var r=this._devtools!==void 0?this._devtools:!1;r&&V5(t,this)};Rm.state.get=function(){return this._state.data};Rm.state.set=function(e){};Zn.prototype.commit=function(t,n,r){var i=this,s=Vu(t,n,r),o=s.type,a=s.payload,c={type:o,payload:a},l=this._mutations[o];l&&(this._withCommit(function(){l.forEach(function(v){v(a)})}),this._subscribers.slice().forEach(function(d){return d(c,i.state)}))};Zn.prototype.dispatch=function(t,n){var r=this,i=Vu(t,n),s=i.type,o=i.payload,a={type:s,payload:o},c=this._actions[s];if(c){try{this._actionSubscribers.slice().filter(function(d){return d.before}).forEach(function(d){return d.before(a,r.state)})}catch{}var l=c.length>1?Promise.all(c.map(function(d){return d(o)})):c[0](o);return new Promise(function(d,v){l.then(function(R){try{r._actionSubscribers.filter(function(O){return O.after}
1427).forEach(function(O){return O.after(a,r.state)})}catch{}d(R)},function(R){try{r._actionSubscribers.filter(function(O){return O.error}).forEach(function(O){return O.error(a,r.state,R)})}catch{}v(R)})})}};Zn.prototype.subscribe=function(t,n){return pE(t,this._subscribers,n)};Zn.prototype.subscribeAction=function(t,n){var r=typeof t=="function"?{before:t}:t;return pE(r,this._actionSubscribers,n)};Zn.prototype.watch=function(t,n,r){var i=this;return xt(function(){return t(i.state,i.getters)},n,Object.assign({},r))};Zn.prototype.replaceState=function(t){var n=this;this._withCommit(function(){n._state.data=t})};Zn.prototype.registerModule=function(t,n,r){r===void 0&&(r={}),typeof t=="string"&&(t=[t]),this._modules.register(t,n),Vd(this,this.state,t,this._modules.get(t),r.preserveState),Tm(this,this.state)};Zn.prototype.unregisterModule=function(t){var n=this;typeof t=="string"&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var r=km(n.state,t.slice(0,-1));delete r[t[t.length-1]]}),gE(this)};Zn.prototype.hasModule=function(t){return typeof t=="string"&&(t=[t]),this._modules.isRegistered(t)};Zn.prototype.hotUpdate=function(t){this._modules.update(t),gE(this,!0)};Zn.prototype._withCommit=function(t){var n=this._committing;this._committing=!0,t(),this._committing=n};Object.defineProperties(Zn.prototype,Rm);var Vse=Ud(function(e,t){var n={};return Gd(t).forEach(function(r){var i=r.key,s=r.val;n[i]=function(){var a=this.$store.state,c=this.$store.getters;if(e){var l=jd(this.$store,"mapState",e);if(!l)return;a=l.context.state,c=l.context.getters}return typeof s=="function"?s.call(this,a,c):a[s]},n[i].vuex=!0}),n}),Gse=Ud(function(e,t){var n={};return Gd(t).forEach(function(r){var i=r.key,s=r.val;n[i]=function(){for(var a=[],c=arguments.length;c--;)a[c]=arguments[c];var l=this.$store.commit;if(e){var d=jd(this.$store,"mapMutations",e);if(!d)return;l=d.context.commit}return typeof s=="function"?s.apply(this,[l].concat(a)):l.apply(this.$store,[s].concat(a))}}),n}),Gu=Ud(function(e,t){var n={};return Gd(t).forEach(function(r){var i=r.key,s=r.val;s=e+s,n[i]=function(){if(!(e&&!jd(this.$store,"mapGetters",e)))return this.$store.getters[s]},n[i].vuex=!0}),n}),Use=Ud(function(e,t){var n={};return Gd(t).forEach(function(r){var i=r.key,s=r.val;n[i]=function(){for(var a=[],c=arguments.length;c--;)a[c]=arguments[c];var l=this.$store.dispatch;if(e){var d=jd(this.$store,"mapActions",e);if(!d)return;l=d.context.dispatch}return typeof s=="function"?s.apply(this,[l].concat(a)):l.apply(this.$store,[s].concat(a))}}),n});function Gd(e){return Y5(e)?Array.isArray(e)?e.map(function(t){return{key:t,val:t}}):Object.keys(e).map(function(t){return{key:t,val:e[t]}}):[]}function Y5(e){return Array.isArray(e)||fE(e)}function Ud(e){return function(t,n){return typeof t!="string"?(n=t,t=""):t.charAt(t.length-1)!=="/"&&(t+="/"),e(t,n)}}function jd(e,t,n){var r=e._modulesNamespaceMap[n];return r}var X5=function(e){return(function(t){return!!t&&typeof t=="object"})(e)&&!(function(t){var n=Object.prototype.toString.call(t);return n==="[object RegExp]"||n==="[object Date]"||(function(r){return r.$$typeof===J5})(t)})(e)},J5=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.element"):60103;function Ya(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Ks(Array.isArray(e)?[]:{},e,t):e}function q5(e,t,n){return e.concat(t).map(function(r){return Ya(r,n)})}function iC(e){return Object.keys(e).concat((function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(n){return t.propertyIsEnumerable(n)}):[]})(e))}function oC(e,t){try{return t in e}catch{return!1}}function Ks(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||q5,n.isMergeableObject=n.isMergeableObject||X5,n.cloneUnlessOtherwiseSpecified=Ya;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):(function(i,s,o){var a={};return o.isMergeableObject(i)&&iC(i).forEach(function(c){a[c]=Ya(i[c],o)}
1427),iC(s).forEach(function(c){(function(l,d){return oC(l,d)&&!(Object.hasOwnProperty.call(l,d)&&Object.propertyIsEnumerable.call(l,d))})(i,c)||(a[c]=oC(i,c)&&o.isMergeableObject(s[c])?(function(l,d){if(!d.customMerge)return Ks;var v=d.customMerge(l);return typeof v=="function"?v:Ks})(c,o)(i[c],s[c],o):Ya(s[c],o))}),a})(e,t,n):Ya(t,n)}Ks.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,r){return Ks(n,r,t)},{})};var Q5=Ks;function e9(e){var t=(e=e||{}).storage||window&&window.localStorage,n=e.key||"vuex";function r(d,v){var R=v.getItem(d);try{return typeof R=="string"?JSON.parse(R):typeof R=="object"?R:void 0}catch{}}function i(){return!0}function s(d,v,R){return R.setItem(d,JSON.stringify(v))}function o(d,v){return Array.isArray(v)?v.reduce(function(R,O){return(function(T,C,N,x){return!/^(__proto__|constructor|prototype)$/.test(C)&&((C=C.split?C.split("."):C.slice(0)).slice(0,-1).reduce(function(S,b){return S[b]=S[b]||{}},T)[C.pop()]=N),T})(R,O,($=d,($=((P=O).split?P.split("."):P).reduce(function(T,C){return T&&T[C]},$))===void 0?void 0:$));var $,P},{}):d}function a(d){return function(v){return d.subscribe(v)}}(e.assertStorage||function(){t.setItem("@@",1),t.removeItem("@@")})(t);var c,l=function(){return(e.getState||r)(n,t)};return e.fetchBeforeUse&&(c=l()),function(d){e.fetchBeforeUse||(c=l()),typeof c=="object"&&c!==null&&(d.replaceState(e.overwrite?c:Q5(d.state,c,{arrayMerge:e.arrayMerger||function(v,R){return R},clone:!1})),(e.rehydrated||function(){})(d)),(e.subscriber||a)(d)(function(v,R){(e.filter||i)(v)&&(e.setState||s)(n,(e.reducer||o)(R,e.paths),t)})}}function t9(e,t){return n=>{const r=K5(e);return n.vueApp.use(r),n.payload&&n.payload.vuex&&r.replaceState(n.payload.vuex),e9(t||{})(r),{provide:{store:r}}}}function n9(){return{user:{},claims:{},profile:{},doubleOptInStatus:!1,reloadPending:!1}}const r9={setProfile(e,t){e.profile=t||{}},setUser(e,t){e.user=t||{}},setClaims(e,t){e.claims=t||{}},setDoubleOptInStatus(e,t){e.doubleOptInStatus=!!t},setReloadPending(e,t){e.reloadPending=!!t}},i9={clearAllUserData(e){e.commit("setUser",null),e.commit("setClaims",null),e.commit("setProfile",null)},fetchAllUserData(e){return Promise.all([e.dispatch("getClaims"),e.dispatch("getProfile")])},login(e,t){return e.dispatch("errors/clearError","login",{root:!0}),e.dispatch("clearAllUserData"),e.rootState.applicationConfig.captchaPlatform==="arkose"&&(t.arkoseSession=t.recaptchaToken,delete t.recaptchaToken),Re.services.user.account.login(t).then(n=>e.commit("setUser",n)).then(()=>e.dispatch("fetchAllUserData")).catch(n=>{throw e.dispatch("getClaims"),e.commit("errors/setError",{error:n,type:"login"},{root:!0}),n})},loginWithToken(e,t){return e.dispatch("errors/clearError","login",{root:!0}),e.dispatch("clearAllUserData"),Re.http.setAuthorizationToken(t),e.commit("setUser",{sessionId:t}),e.dispatch("fetchAllUserData")},register(e,t){return e.dispatch("errors/clearError","register",{root:!0}),e.dispatch("clearAllUserData"),e.rootState.applicationConfig.captchaPlatform==="arkose"&&(t.arkoseSession=t.recaptchaToken,delete t.recaptchaToken),Re.services.user.account.register(t).then(n=>{if(t.requires_password_reset)return;if(t.login_on_success==="true")return e.dispatch("loginWithToken",n.sessionId);const r={},i={loginRecaptchaToken:e.rootState.applicationConfig.captchaPlatform==="arkose"?"arkoseSession":"recaptchaToken"};return["username","email","password","loginRecaptchaToken"].forEach(s=>{t[s]&&(r[i[s]?i[s]:s]=t[s])}),e.dispatch("login",r)}).catch(n=>{throw e.dispatch("getClaims"),e.commit("errors/setError",{error:n,type:"register"},{root:!0}),n})},logout(e){return e.dispatch("errors/clearError","logout",{root:!0}),Re.services.user.account.logout().then(()=>{e.dispatch("clearAllUserData")}).catch(t=>{throw e.dispatch("getClaims"),e.commit("errors/setError",{error:t,type:"logout"},{root:!0}),t})},getClaims(e){return e.dispatch("errors/clearError","claims",{root:!0}),e.commit("setClaims",null),Re.services.claims.get().then(t=>e.commit("setClaims",t)).catch(t=>{throw e.commit("errors/setError",{error:t,type:"claims"},{root:!0}),t})},getProfile(e){return e.dispatch("errors/clearError","profile",{root:!0}),Re.services.user.profile.get().then(t=>e.commit("setProfile",t)).catch(t=>{throw e.commit("errors/setError",{error:t,type:"profile"},{root:!0}),t})},setProfile(e,t){return e.dispatch("errors/clearError","profile",{root:!0}),Re.services.user.profile.update(t).then(n=>{e.commit("setProfile",null),e.commit("setProfile",n)}).catch(n=>{throw e.commit("errors/setError",{error:n,type:"profile"},{root:!0}),n})},requestPasswordToken(e,t){return e.dispatch("errors/clearError","requestPasswordToken",{root:!0}),Re.services.user.account.requestPasswordToken(t).then(()=>{}).catch(n=>{throw e.commit("errors/setError",{error:n,type:"requestPasswordToken"},{root:!0}),n})},resetPassword(e,{token:t,password:n,recaptchaToken:r}){e.dispatch("errors/clearError","resetPassword",{root:!0});let i;return e.rootState.applicationConfig.captchaPlatform==="arkose"&&(i=r),Re.services.user.account.resetPassword(t,n,i).then(()=>{}).catch(s=>{throw e.commit("errors/setError",{error:s,type:"resetPassword"},{root:!0}),s})},confirmDoubleOptIn(e,{guid:t,token:n}){return e.dispatch("errors/clearError","confirmDoubleOptIn",{root:!0}),Re.services.user.account.confirmDoubleOptIn({guid:t,token:n}).then(r=>{e.commit("setDoubleOptInStatus",r.doubleOptInStatus)}).catch(r=>{throw e.commit("errors/setError",{error:r,type:"confirmDoubleOptIn"},{root:!0}),r})},setReloadPending(e,t){e.commit("setReloadPending",t)}},o9={user:e=>e.user,isAnonymous:e=>!e.user.sessionId,isRegistered:e=>!!e.user.sessionId,isPremium(e){return!!(e.claims.premium&&e.claims.premium.userType==="premium")},userType(e,t){return t.isPremium?"Premium":t.isRegistered?"Registered":"Anonymous"},userGuid:e=>e.profile.guid||""},s9={state:n9,actions:i9,mutations:r9,getters:o9,namespaced:!0};function a9(){return{terms:null,privacy:null,termsFlavors:{}}
1427}const l9={setTerms(e,t){e.terms=t},setPrivacy(e,t){e.privacy=t},setTermsFlavor(e,{flavor:t,terms:n}){e.termsFlavors[t]=n}},c9={clearAgreements({commit:e}){e("setTerms",null),e("setPrivacy",null)},getAgreements({dispatch:e},t){return Promise.all([e("getTerms",t),e("getPrivacy",t)])},async getTerms({commit:e,dispatch:t},n={}){t("errors/clearError","getTerms",{root:!0}),e("setTerms",null);try{const r=await Re.services.agreements.getTerms(n);e("setTerms",r)}catch(r){e("errors/setError",{error:r,type:"getTerms"},{root:!0})}},async getPrivacy({commit:e,dispatch:t},n={}){t("errors/clearError","getPrivacy",{root:!0}),e("setPrivacy",null);try{const r=await Re.services.agreements.getPrivacy(n);e("setPrivacy",r)}catch(r){e("errors/setError",{error:r,type:"getPrivacy"},{root:!0})}},async getTermsFlavor({commit:e,dispatch:t},n="default"){t("errors/clearError","getTermsFlavor",{root:!0});try{const r=await Re.services.agreements.getTerms({flavor:n});e("setTermsFlavor",{flavor:n,terms:r})}catch(r){e("errors/setError",{error:r,type:"getTermsFlavor"},{root:!0})}},async acceptTerms({commit:e,dispatch:t},n={}){t("errors/clearError","acceptTerms",{root:!0});try{await Re.services.agreements.acceptTerms(n),t("getTerms",n)}catch(r){throw e("errors/setError",{error:r,type:"acceptTerms"},{root:!0}),r}},async acceptPrivacy({commit:e,dispatch:t},n={}){t("errors/clearError","acceptPrivacy",{root:!0});try{await Re.services.agreements.acceptPrivacy(n),t("getPrivacy",n)}catch(r){e("errors/setError",{error:r,type:"acceptPrivacy"},{root:!0})}},async acceptTermsFlavor({commit:e,dispatch:t},n={}){t("errors/clearError","acceptTermsFlavor",{root:!0});try{await Re.services.agreements.acceptTerms(n),t("getTermsFlavor",n.flavor)}catch(r){e("errors/setError",{error:r,type:"acceptTermsFlavor"},{root:!0})}},acceptUnaccepted({dispatch:e,state:t},n={}){const r=[];if(t.terms&&!t.terms.accepted){const i={revisionId:t.terms.revisionId,...n};r.push(e("acceptTerms",i))}if(t.privacy&&!t.privacy.accepted){const i={revisionId:t.privacy.revisionId,...n};r.push(e("acceptPrivacy",i))}return Promise.all(r)}},u9={hasBeenFetched(e){return!!(e.terms&&e.privacy)},allAccepted(e){return!(!e.terms||!e.terms.accepted||!e.privacy||!e.privacy.accepted)},byFlavor:e=>t=>e.termsFlavors[t]},d9={state:a9,actions:c9,mutations:l9,getters:u9,namespaced:!0};function h9(){return{config:{},platformInitialized:!1,persistentUserId:Mu(),browserId:Mu(),captchaPlatform:"google"}}const f9={buildId:e=>e.config.build?e.config.build.id:""},p9={set(e,t){e.config=t},setProperties(e,t){Object.keys(t).forEach(n=>{e.config[n]=t[n]})},setPlatformInitialized(e,t=!0){e.platformInitialized=t},setCaptchaPlatform(e,t){!t||!["google","arkose"].includes(t)?e.captchaPlatform="google":e.captchaPlatform=t}},g9={set({commit:e},t){e("set",t)},setProperties({commit:e},t){e("setProperties",t)},configurePlatform(e,t=null){M_({Platform3:Re,config:e.state.config,token:t}),e.commit("setPlatformInitialized")}},m9={state:h9,getters:f9,mutations:p9,actions:g9,namespaced:!0};function wE({filter:e}){return btoa(JSON.stringify({search:e.search}))}function y9({key:e,filterSections:t}){let n=null;return t.forEach(r=>{r.filters.forEach(i=>{wE({filter:i})===e&&(n=i,n.operator=r.operator)})}),n}function _E({sort:e}){return btoa(JSON.stringify({default:e.default,direction:e.direction,field:e.field}))}function b9({key:e,sorts:t}){let n=null;return t.forEach(r=>{r.supported.forEach(i=>{_E({sort:i})===e&&(n=i)})}),n}function SE({category:e}){return btoa(JSON.stringify(e.search))}function v9({key:e,categories:t}){let n=null;return t.forEach(r=>{SE({category:r})===e&&(n=r)}),n}const Di={getKeyFromFilter:wE,getFilterFromKey:y9,getKeyFromSort:_E,getSortFromKey:b9,getKeyFromCategory:SE,getCategoryFromKey:v9},jse=6048e5,zse=864e5,Zse=6e4,Kse=36e5,Yse=1e3,sC=Symbol.for("constructDateFrom");function Tl(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&sC in e?e[sC](t):e instanceof Date?new e.constructor(t):new Date(t)}function Lm(e,t){return Tl(t||e,e)}function C9(e,t,n){const r=Lm(e,n?.in);return isNaN(t)?Tl(n?.in||e,NaN):(t&&r.setDate(r.getDate()+t),r)}function I9(e,t,n){const r=Lm(e,n?.in);if(isNaN(t))return Tl(e,NaN);if(!t)return r;const i=r.getDate(),s=Tl(e,r.getTime());s.setMonth(r.getMonth()+t+1,0);const o=s.getDate();return i>=o?s:(r.setFullYear(s.getFullYear(),s.getMonth(),i),r)}function aC(e,t,n){const{years:r=0,months:i=0,weeks:s=0,days:o=0,hours:a=0,minutes:c=0,seconds:l=0}=t,d=Lm(e,n?.in),v=i||r?I9(d,i+r*12):d,R=o||s?C9(v,o+s*7):v,O=c+a*60,P=(l+O*60)*1e3;return Tl(e,+R+P)}function Gp({searchParams:e,documentType:t}){return t&&e.documentTypes.indexOf(t)===-1&&e.documentTypes.push(t),e}function Up({searchParams:e,documentType:t,operator:n,key:r,value:i,keyProperty:s,fieldType:o}){const a=_9({fieldType:o,keyProperty:s,value:i});return e.filters[t][r]?o==="range"?(e.filters[t][r][s]=a?aC(i,a):i,e.filters[t][r].type="range"):e.filters[t][r].values.push(i):o==="range"?e.filters[t][r]={type:"range",[s]:a?aC(i,a):i}
1427:e.filters[t][r]={type:n||"or",values:[i]},e}function A9({searchParams:e,filters:t,filterDocumentType:n,filterValues:r={}}){return Gp({searchParams:e,documentType:n}),t.forEach(i=>{const s=i.documentType||n;Gp({searchParams:e,documentType:s}),e.filters[s]||(e.filters[s]={}),Array.isArray(i.search)?i.search.forEach(o=>{Up({searchParams:e,documentType:s,key:o.key,value:r[i.key]||o.value,operator:i.operator,fieldType:o.fieldType,keyProperty:o.keyProperty})}):Up({searchParams:e,documentType:s,key:i.key,value:r[i.key]||i.value,operator:i.operator,fieldType:i.fieldType,keyProperty:i.keyProperty})}),e}function w9({searchParams:e,sort:t}){return e.documentTypes.forEach(n=>{e.sortOptions.push({documentType:n,field:t.field,direction:t.direction})}),e}function _9({fieldType:e,keyProperty:t,value:n}){if(e!=="range"||typeof t!="string"||!(n instanceof Date))return null;const r={days:0,minutes:-n.getTimezoneOffset()};return t.toLowerCase()==="to"&&(r.days=1),r}const Yh={addFilters:A9,addSort:w9,addDocumentType:Gp,addSearchField:Up};function S9(){return{config:{},filters:[],filterValues:{},sort:{},category:{},seriesUuid:null,activeSearchQueryKeys:[],page:0}}const E9={get(e,t=void 0,n={}){return Re.services.homepage.getBrowse(t,n).then(r=>{if(e.commit("updateConfig",r),!!e?.state?.config?.categories?.length)return e.dispatch("setCategory",e.state.config.categories[0])}).catch(r=>{throw e.commit("errors/setError",{error:r,type:"browseComicsHomepageGet"},{root:!0}),r})},clearFilters(e){e.commit("setFilters",[]),e.commit("clearFilterValues"),e.commit("resetActiveSearchQueryKeys")},addFilter(e,t){t&&(e.commit("addFilter",t),e.commit("resetActiveSearchQueryKeys"))},addFilterByKey(e,t){const n=e.getters.categoryFilterSet;e.dispatch("addFilter",Di.getFilterFromKey({key:t,filterSections:n}))},addFilterWithValueByKey(e,{filterKey:t,value:n}){e.dispatch("addFilterByKey",t),e.commit("setFilterValue",{filterKey:t,value:n})},removeFilter(e,t){t&&(e.commit("removeFilter",t),e.commit("resetActiveSearchQueryKeys"))},removeFilterByKey(e,t){const n=e.getters.categoryFilterSet;e.dispatch("removeFilter",Di.getFilterFromKey({key:t,filterSections:n}))},setSort(e,t){e.commit("setSort",t),e.commit("resetActiveSearchQueryKeys")}
1427,setSortByKey(e,t){e.dispatch("setSort",Di.getSortFromKey({key:t,sorts:e.state.config.sorts}))},setCategory(e,t){e.commit("setCategory",t),e.commit("setDefaultSortFromActiveCategory"),e.dispatch("clearFilters"),e.dispatch("setSeries",null),e.commit("resetActiveSearchQueryKeys")},setSeries(e,t){e.commit("setSeries",t),e.commit("resetActiveSearchQueryKeys")},setCategoryByKey(e,t){e.dispatch("setCategory",Di.getCategoryFromKey({key:t,categories:e.state.config.categories}))},nextPage(e){return e.commit("increasePage"),e.dispatch("searchWithFiltersAndSort")},fetchThroughPage(e,{page:t}){return new Promise((n,r)=>{const i=[],s=Number(t);if(!s||e.state.page>=s)return r();for(;e.state.page<s;)e.commit("increasePage"),i.push(e.dispatch("searchWithFiltersAndSort",{disableAddActiveSearchQueryKey:!0}));return Promise.all(i).then(o=>{o.forEach(a=>{a?.searchKey&&e.commit("addActiveSearchQueryKey",a.searchKey)}),n(o)}).catch(r)})},searchWithFiltersAndSort(e,t={}){if(!e.state.category)return;e.state.page===0&&e.commit("increasePage");const n={documentTypes:[],filters:{},sortOptions:[],page:e.state.page};return e.state.seriesUuid&&(n.filters[e.getters.activeDocumentType]={series_uuid:e.state.seriesUuid}),Yh.addFilters({searchParams:n,filterDocumentType:e.getters.activeDocumentType,filters:e.state.category.search,filterValues:e.getters.filterValues}),e.state.category.filtersEnabled&&Yh.addFilters({searchParams:n,filterDocumentType:e.getters.activeDocumentType,filters:e.state.filters,filterValues:e.getters.filterValues}),Yh.addSort({searchParams:n,sort:e.state.sort}),e.dispatch("search/search",n,{root:!0}).then(r=>(t.disableAddActiveSearchQueryKey||e.commit("addActiveSearchQueryKey",r.searchKey),r)).catch(r=>{throw e.commit("errors/setError",{error:r,type:"browseComicsSearch"},{root:!0}),r})}},x9={updateConfig(e,t){t.filterSections&&t.filterSections.forEach(n=>{n.filters.forEach(r=>{r.key=Di.getKeyFromFilter({filter:r})})}),t.filterSets&&Object.keys(t.filterSets).forEach(r=>{t.filterSets[r].filterSections.forEach(i=>{i.filters.forEach(s=>{s.key=Di.getKeyFromFilter({filter:s})})})}),t.sorts.forEach(n=>{n.supported.forEach(r=>{r.key=Di.getKeyFromSort({sort:r})})}),t.categories.forEach(n=>{n.key=Di.getKeyFromCategory({category:n})}),e.config=t},setFilters(e,t){if(!t){e.filters=[];return}e.filters=t},addFilter(e,t){e.filters.find(n=>n.key===t.key)||e.filters.push(t)},removeFilter(e,t){const n=e.filters.indexOf(t);n!==-1&&(e.filters.splice(n,1),delete e.filterValues[t.key])},setFilterValue(e,{filterKey:t,value:n}){e.filterValues[t]=n},clearFilterValues(e){e.filterValues={}},setSort(e,t){e.sort=t},setDefaultSortFromActiveCategory(e){if(!e.category)return;const t=e.category.documentType;e.config.sorts.forEach(n=>{if(n.documentType===t){const r=n.supported.find(i=>i.default);e.sort=r}})},setCategory(e,t){e.category=t},setSeries(e,t){e.seriesUuid=t},addActiveSearchQueryKey(e,t){e.activeSearchQueryKeys.push(t)},resetActiveSearchQueryKeys(e){e.activeSearchQueryKeys=[],e.page=0},increasePage(e){e.page++}},T9={activeQueries(e){return e.activeSearchQueryKeys},activePage(e){return e.page},activeFilters(e){return e.filters},activeSort(e){return e.sort},activeCategory(e){return e.category},activeSeriesUuid(e){return e.seriesUuid},activeDocumentType(e,t){if(t.activeSeriesUuid)return"book";if(t.activeCategory&&t.activeCategory.documentType)return t.activeCategory.documentType},categoryFilterSet(e,t){return t.activeCategory&&t.activeCategory.filterSet&&t.activeCategory.filtersEnabled?e.config.filterSets[t.activeCategory.filterSet].filterSections:e.config.filterSections},filterValues(e){return e.filterValues}},k9={state:S9,actions:E9,mutations:x9,getters:T9,namespaced:!0};function R9(){return{books:{}}}const L9={},O9={update(e,t){e.books[t.uuid]=t}},N9={byUUID:e=>t=>{const n=Object.entries(e.books).find(([r,i])=>t===i.uuid);return n&&n[1]||void 0}},P9={state:R9,actions:L9,mutations:O9,getters:N9,namespaced:!0};function $9(){return{catalogs:{default:{}}}}const M9={setCatalog(e,{catalog:t,identifier:n="default"}){n||(n="default"),e.catalogs[n]=t}},D9={async list({commit:e,dispatch:t},{params:n={},identifier:r}={}){t("errors/clearError","catalogList",{root:!0});let i;try{i=await Re.services.catalog.list(n)}catch(s){e("errors/setError",{error:s,type:"catalogList"},{root:!0});return}return e("setCatalog",{catalog:i,identifier:r}),i}},B9={byIdentifier(e){return t=>e.catalogs[t]},productById(e){return t=>{let n=null;
1427return Object.keys(e.catalogs).forEach(r=>{const i=e.catalogs[r];!i||!i.plans||!Array.isArray(i.plans)||i.plans.forEach(s=>{!s.products||!Array.isArray(s.products)||s.products.forEach(o=>{o.id===Number(t)&&(n=o)})})}),n}}},F9={namespaced:!0,state:$9,mutations:M9,actions:D9,getters:B9};function H9(){return{clickoutObjects:{}}}const W9={update(e,t){e.clickoutObjects[t.uuid]=t}},V9={byUUID:e=>t=>{const n=Object.entries(e.clickoutObjects).find(([r,i])=>t===i.uuid);return n&&n[1]||void 0},bySlug:e=>t=>{const n=Object.entries(e.clickoutObjects).find(([r,i])=>t===i.slug);return n&&n[1]||void 0}},G9={state:H9,mutations:W9,getters:V9,namespaced:!0};function U9(){return{clips:{},clipLists:{}}}const j9={byUUID:e=>t=>e.clips[t]||void 0,listByUUID:(e,t)=>({uuid:n,type:r})=>!e.clipLists[r]||!e.clipLists[r][n]?void 0:e.clipLists[r][n].map(s=>t.byUUID(s))},z9={update(e,t){e.clips[t.uuid]=t},updateList(e,{clipsArray:t,objectUuid:n,objectType:r}){e.clipLists[r]||(e.clipLists[r]={}),e.clipLists[r][n]=t}},Z9={get({commit:e},{uuid:t}){return Re.services.clip.get({uuid:t}).then(n=>{e("update",n)}).catch(n=>{throw e("errors/setError",{error:n,type:"clipGetErrors"},{root:!0}),n})},list({commit:e},{objectUuid:t,objectType:n,containerType:r=null,containerUuid:i=null,clipType:s=null}){return Re.services.clip.list({objectUuid:t,objectType:n,containerType:r,containerUuid:i,clipType:s}).then(o=>{const a=[];o.clips.forEach(c=>{e("update",{clip:c}),a.push(c.uuid)}),e("updateList",{clipsArray:a,objectUuid:t,objectType:n})}).catch(o=>{throw e("errors/setError",{error:o,type:"clipListErrors"},{root:!0}),o})}},K9={state:U9,actions:Z9,mutations:z9,getters:j9,namespaced:!0};function Y9(){return{collectionItems:{},collections:{},collectionsByUuid:{},collectionItemsByUuid:{}}}const X9={getCollectionByUuid(e,{uuid:t}){return Re.services.collections.getByUuid({uuid:t}).then(n=>(e.commit("updateCollectionByUuid",n),n))},getCollectionItemsByUuid(e,{uuid:t}){return Re.services.collections.getItemsByUuid({uuid:t}).then(n=>{const r=n.collectionItems.map(i=>{let s={...i};try{e.dispatch("normalizedProxy/update",{...s},{root:!0}),s._normalized={id:s.item.id,uuid:s.item.uuid,slug:s.item.slug,path:s.item.path,type:s.type},s.item={}}catch{}return s});return e.commit("updateCollectionItemsByUuid",{uuid:t,collectionItems:r}),n})},getCollection(e,{slug:t}){return Re.services.collections.get({slug:t}).then(n=>(e.commit("updateCollection",n),n))},mapNormalizedItems(e,t){return t.map(r=>{let i=r;try{e.dispatch("normalizedProxy/update",i,{root:!0}),i._normalized={id:i.item.id,uuid:i.item.uuid,slug:i.item.slug,path:i.item.path,type:i.type},(i.metadata||i.item?.metadata)&&(!i.metadata||!Object.keys(i.metadata).length)&&i.item.metadata&&Object.keys(i.item.metadata).length?(i._normalized.metadata=i.item.metadata,i.metadata=i.item.metadata):i._normalized.metadata=i.metadata||{},i.item={}}catch{return i}return{...i}})},async getCollectionItems(e,{slug:t,page:n=1,pageSize:r=20}){const i=await Re.services.collections.getItems({slug:t,page:n,pageSize:r}),s=await e.dispatch("mapNormalizedItems",i.collectionItems);return e.commit("updateCollectionItems",{slug:t,collectionItems:s,page:n}),i}},J9={updateCollectionByUuid(e,t){e.collectionsByUuid[t.uuid]=t},updateCollectionItemsByUuid(e,{uuid:t,collectionItems:n}){e.collectionItemsByUuid[t]=n},updateCollection(e,t){e.collections[t.slug]=t},updateCollectionItems(e,{collectionItems:t,slug:n,page:r}){e.collectionItems[n]||(e.collectionItems[n]=[]),e.collectionItems[n][r-1]=t},deleteCollectionByUuid(e,{uuid:t}){delete e.collectionsByUuid[t]},deleteCollectionItemsByUuid(e,{uuid:t}){delete e.collectionItemsByUuid[t]},deleteCollectionItems(e,{slug:t,page:n}){e.collectionItems[t]&&(n?e.collectionItems[t][n-1]=[]:e.collectionItems[t]=[])},deleteCollection(e,{slug:t}){delete e.collections[t]}},q9={collectionItemsByUuid:(e,t,n,r)=>i=>{if(e.collectionItemsByUuid[i])return t.getItems(e.collectionItemsByUuid[i],r)},collectionItemsByPage:(e,t,n,r)=>({slug:i,page:s=1})=>{if(e.collectionItems[i])return t.getItems(e.collectionItems[i][s-1],r)},collectionItems:(e,t,n,r)=>i=>{if(!e.collectionItems[i])return;const s=e.collectionItems[i].reduce((o,a)=>o.concat(a),[]);return t.getItems(s,r)},getItems:()=>(e,t)=>e.map(n=>{let r={...n};return r._normalized&&(r.item=t["normalizedProxy/get"](n._normalized)),r}),bySlug:e=>t=>{const n=Object.entries(e.collections).find(([r,i])=>t===i.slug);return n&&n[1]||void 0},byUuid:e=>t=>{const n=Object.entries(e.collectionsByUuid).find(([r,i])=>t==r);return n&&n[1]||void 0}},Q9={state:Y9,actions:X9,mutations:J9,getters:q9,namespaced:!0};function e4(){return{books:{},series:{}}}const t4={updateHistoryItem({commit:e,dispatch:t},{uuid:n,historyItem:r}){t("normalizedProxy/update",{item:r.book,type:"Book"},{root:!0}),delete r.book,e("setHistoryForBook",{uuid:n,historyItem:r})},getByBookUuid({commit:e,dispatch:t},{uuid:n}){return e("errors/setError",{error:null,type:"comicHistory"},{root:!0}),e("setHistoryForBook",{uuid:n}),Re.services.user.history.comic({contentUuid:n}).then(r=>{let i=null;
1427if(!r||!r.history||!r.history.length){e("setHistoryForBook",{uuid:n,historyItem:i});return}i=r.history[0],t("updateHistoryItem",{uuid:n,historyItem:i})}).catch(r=>{e("errors/setError",{error:r,type:"comicHistory"},{root:!0})})},getBySeriesUuid({commit:e,dispatch:t},{uuid:n}){return e("errors/setError",{error:null,type:"comicHistory"},{root:!0}),e("setHistoryForSeries",{uuid:n}),Re.services.user.history.comic({seriesUuid:n}).then(r=>{if(!r||!r.history||!r.history.length){e("setHistoryForSeries",{uuid:n,historyItems:null});return}r.history.forEach(s=>{t("updateHistoryItem",{uuid:s.bookUuid,historyItem:s})});const i=r.history.map(s=>s.bookUuid);e("setHistoryForSeries",{uuid:n,historyItems:i})}).catch(r=>{e("errors/setError",{error:r,type:"comicHistory"},{root:!0})})}},n4={setHistoryForBook(e,{uuid:t,historyItem:n}){e.books[t]=n},setHistoryForSeries(e,{uuid:t,historyItems:n}){e.series[t]=n}},r4={byBookUUID(e,t,n,r){return i=>{const s=e.books[i];return s?{...s,book:{...r["books/byUUID"](i)}}:null}},bySeriesUUID(e,t){return n=>{const r=e.series[n];return r?r.map(t.byBookUUID):null}}},i4={state:e4,actions:t4,mutations:n4,getters:r4,namespaced:!0};function o4(){return{comicSeries:{},seriesBooksByType:{}}}const s4={get({dispatch:e,commit:t},n){return e("errors/clearError","comic-series-get",{root:!0}),Re.services.comics.getSeries(n).then(r=>t("update",r)).catch(r=>t("errors/setError",{error:r,type:"comic-series-get"},{root:!0}))},getSeriesBooks({dispatch:e,commit:t},n){return e("errors/clearError","comic-series-get-books",{root:!0}),Re.services.comics.getSeriesBooks(n).then(r=>r).catch(r=>t("errors/setError",{error:r,type:"comic-series-get-books"},{root:!0}))},async getAllBooksAllTypes({state:e,dispatch:t,commit:n},{uuid:r,...i}){const s=Object.keys(e.comicSeries[r]?.numBooks||{}),o={},a={},c={},l={},d=[];s.forEach(R=>{l[R]=1;const O=t("getSeriesBooks",{...i,uuid:r,bookType:R});d.push(O)});let v;try{v=await Promise.all(d)}catch(R){R.forEach(O=>{if(O.code==="1715")throw O})}s.forEach((R,O)=>{const $=v[O];o[R]=$,a[R]=$.books?[...$.books]:[],c[R]=1}),n("setSeriesBooksByType",{uuid:r,byType:{seriesBooks:o,pages:a,pageIndex:c,nextPage:l}})},async loadMoreBooksofType({state:e,dispatch:t,commit:n},{uuid:r,type:i,...s}){const o=e.seriesBooksByType[r];if(o.nextPage[i]>=o.pageIndex[i]+1)return;o.nextPage[i]=o.pageIndex[i]+1;let a=await t("getSeriesBooks",{...s,uuid:r,bookType:i,page:o.nextPage[i]});if(!a)throw new Error("Not Found");o.pages[i]=o.pages[i].concat(a.books),o.pageIndex[i]=o.pageIndex[i]+1,n("setSeriesBooksByType",{uuid:r,byType:o})}},a4={update(e,t){e.comicSeries[t.uuid]=t},setSeriesBooksByType(e,{uuid:t,byType:n}){e.seriesBooksByType[t]=n}},l4={byUUID:e=>t=>{const n=Object.entries(e.comicSeries).find(([r,i])=>t===i.uuid);return n&&n[1]||void 0},seriesBooksByUuid(e){return t=>e.seriesBooksByType[t]}},c4={state:o4,actions:s4,mutations:a4,getters:l4,namespaced:!0};function u4(){return{errors:{}}}const d4={setError(e,{type:t,error:n}){delete e.errors[t],e.errors[t]=n}},h4={clearError(e,t){e.commit("setError",{error:null,type:t})},setError(e,{error:t,type:n}){e.commit("setError",{error:t,type:n})}},f4={},p4={state:u4,actions:h4,mutations:d4,getters:f4,namespaced:!0},g4=(e,t)=>e.filter((n,r,i)=>i.map(s=>s[t]).indexOf(n[t])===r),EE=e=>JSON.parse(JSON.stringify(e));function m4(){return{jsonbags:{}}}const y4={getJsonbagByUuid(e,{uuid:t}){return Re.services.jsonbag.getByUuid({uuid:t}).then(n=>{e.commit("update",n)})},getJsonbagBySlug(e,{slug:t}){return Re.services.jsonbag.get({slug:t}).then(n=>{e.commit("update",n)})}},b4={update(e,t){e.jsonbags[t.uuid]=t}},v4={bySlug:e=>t=>{const n=Object.entries(e.jsonbags).find(([,r])=>t==r.slug);return n&&n[1]||void 0},byUuid:e=>t=>e.jsonbags[t]},C4={state:m4,actions:y4,mutations:b4,getters:v4,namespaced:!0};function I4(){return{userLists:[],userListItems:[],publicLists:{},favoritesOfType:{},allItemsAllLists:[],userListsUrns:{},followingUuids:[],fetchingFollowingUuids:!1,following:{}}}const A4={publicUserListItems:e=>t=>e.publicLists[t]?{...e.publicLists[t].pages.find(n=>n.page===e.publicLists[t].maxPage).listData,items:e.publicLists[t].pages.flatMap(n=>n.listData.items)}:null,userLists:e=>e.userLists,followedLists:e=>e.following.lists??[],userList:e=>t=>e.userLists.find(n=>n.metadata.uuid===t),userListItems:e=>t=>e.userListItems.find(n=>n.uuid===t||t==="favorites"&&n.isFavorites||t==="follow-series"&&n.isPullList),favoritesOfType:e=>t=>!t||!e.favoritesOfType[t]?null:e.favoritesOfType[t].items,uuidInUserLists:e=>t=>e.allItemsAllLists.find(n=>n===t),urnInUserList:e=>(t,n)=>{if(!t||!n)return;const r=e.userListsUrns[t];if(r)return r.find(i=>i.uuid===n)}},w4={updateFavoritesOfType(e,{favorites:t,contentType:n}){if(t.meta.pageNumber===1)e.favoritesOfType[n]=t;else{let i=e.favoritesOfType[n];i.items=i.items.concat(t.items),e.favoritesOfType[n]=i}},updateAllItemsAllLists(e,t){const n=t.filter(r=>r);e.allItemsAllLists=n},deleteList(e,{uuid:t}){let n=e.userLists.filter(r=>r.metadata.uuid!==t);e.userLists=n},setUserLists(e,{lists:t}){const n=[];t.forEach(r=>{n.push({items:[],metadata:r})}),e.userLists=n},updateList(e,t){e.userLists=e.userLists.map(n=>(n.metadata.uuid===t.uuid&&(n.metadata=Object.assign(n.metadata,t)),n))},updatePublicListItems(e,{listData:t,page:n=1}){!e.publicLists[t.uuid]||n===1?e.publicLists[t.uuid]={maxPage:1,pages:[{page:n,listData:t}]}:(e.publicLists[t.uuid].pages.push({page:n,listData:t}),e.publicLists[t.uuid].pages.sort((r,i)=>r.page-i.page)),n>e.publicLists[t.uuid].maxPage&&(e.publicLists[t.uuid].maxPage=n)},updateListItems(e,{listData:t,page:n=1}){let r=e.userListItems;e.userListItems.find(i=>i.uuid===t.uuid)?r=e.userListItems.map(i=>(i.uuid===t.uuid&&(i.items.length&&n>1?i.items=i.items.concat(t.items):i=t),i)):r.push(t),e.userListItems=r},removeItemFromList(e,{listUuid:t,itemUuid:n}){const r=e.userListItems.map(i=>(i.uuid===t&&(i.items=i.items.filter(s=>s._rawProperties.content.uuid!==n)),i));e.userListItems=r},updateListItemOrder(e,{listUuid:t,itemUuid:n,sort:r}){const i=e.userListItems.map(s=>(s.uuid===t&&(s.items=s.items.map(o=>(o._rawProperties.content.uuid===n&&(o.order=r),o))),s));e.userListItems=i},listSetPrivacy(e,{uuid:t,isPublic:n}){e.userLists=e.userLists.map(r=>(r.metadata.uuid===t&&(r.metadata.isPublic=n),r))},updateUserListUrns(e,{uuid:t="favorites",urns:n}){let r={...e.userListsUrns};r[t]=n,e.userListsUrns=r},clearUserListUrns(e,t="favorites"){let n={...e.userListsUrns};delete n[t],e.userListsUrns=n},clearAllUserListsUrns(e){e.userListsUrns={}},setFollowingUuids(e,{uuids:t,append:n=!1}){n?e.followingUuids=[...e.followingUuids,...t]:e.followingUuids=t},setFetchingFollowingUuids(e,t){e.fetchingFollowingUuids=t},updateFollowing(e,t){if(t.meta.pageNumber===1)e.following=t;else{const r=e.following;r.lists=[...r.lists,...t.lists],e.following=r}},clearFollowing(e){e.following={}}},_4={async getUserLists({commit:e,dispatch:t},n){let r=!1,i,s;typeof n=="boolean"&&(r=n),typeof n=="object"&&(typeof n.fetchLists<"u"&&(r=n.fetchLists),typeof n.sort<"u"&&(i=n.sort),typeof n.order<"u"&&(s=n.order)),t("errors/clearError","getUserLists",{root:!0});let o,a={sort:i||"updated"};s&&(a.order=s);try{o=await Re.services.user.lists.list(a)}catch(c){e("errors/setError",{error:c,type:"getUserLists"},{root:!0});return}if(e("setUserLists",{lists:o.lists}),r){const c=[];
1427o.lists.forEach(l=>{c.push(t("getUserList",{listId:l.uuid}))}),Promise.all(c).then(()=>{})}else return;return o},async getUserList({commit:e,dispatch:t},{listId:n,page:r=1,pageSize:i,isPublic:s=!1}){t("errors/clearError","getUserList",{root:!0});let o;try{o=await Re.services.user.lists.get({uuid:n,page:r,sort:"sort",order:"DESC",pageSize:i})}catch(a){e("errors/setError",{error:a,type:"getUserList"},{root:!0});return}return s?e("updatePublicListItems",{listData:o,page:r}):e("updateListItems",{listData:o,page:r}),o},async updateUserList({commit:e,dispatch:t},n){t("errors/clearError","updateUserList",{root:!0});let r;try{r=await Re.services.user.lists.update(n)}catch(i){e("errors/setError",{error:i,type:"updateUserList"},{root:!0});return}return e("updateList",n),r},async setListPrivacy({commit:e,dispatch:t},{uuid:n,isPublic:r}){t("errors/clearError","setListPrivacy",{root:!0});let i;try{i=await Re.services.user.lists.update({uuid:n,isPublic:r})}catch(s){e("errors/setError",{error:s,type:"setListPrivacy"},{root:!0});return}return e("listSetPrivacy",{uuid:n,isPublic:r}),i},async deleteList({commit:e,dispatch:t},{uuid:n}){t("errors/clearError","deleteList",{root:!0});let r;try{r=await Re.services.user.lists.remove({uuid:n})}catch(i){e("errors/setError",{error:i,type:"deleteList"},{root:!0});return}return e("deleteList",{uuid:n}),t("clearUserListUrns",{uuid:n}),r},async updateListItemOrder({commit:e,dispatch:t},{listUuid:n,itemUuid:r,type:i,sort:s}){t("errors/clearError","updateListItemOrder",{root:!0});let o;try{o=await Re.services.user.lists.updateItem({listUuid:n,contentUuid:r,type:i,sort:s})}catch(a){e("errors/setError",{error:a,type:"updateListItemOrder"},{root:!0});return}return e("updateListItemOrder",{listUuid:n,itemUuid:r,sort:s}),o},async addItemToList({commit:e,dispatch:t},{listUuid:n,item:r}){t("errors/clearError","addItemToList",{root:!0});let i;try{i=await Re.services.user.lists.createItem({listUuid:n,contentUuid:r.uuid,type:r.type.toLowerCase()})}catch(s){e("errors/setError",{error:s,type:"addItemToList"},{root:!0});return}return t("getUserListUrns",{uuid:n}),i},async removeItemFromList({commit:e,dispatch:t},{listUuid:n,itemUuid:r,type:i}){t("errors/clearError","removeItemFromList",{root:!0});let s;try{s=await Re.services.user.lists.removeItem({listUuid:n,contentUuid:r,type:i})}catch(o){e("errors/setError",{error:o,type:"removeItemFromList"},{root:!0});return}return t("getUserListUrns",{uuid:n}),e("removeItemFromList",{listUuid:n,itemUuid:r}),s},async getContainingLists({commit:e,dispatch:t},{itemUuid:n}){t("errors/clearError","getContainingLists",{root:!0});let r;try{r=await Re.services.user.lists.list({uuid:n})}catch(i){e("errors/setError",{error:i,type:"getContainingLists"},{root:!0});return}return r.lists},async getFavoriteOfType({commit:e,dispatch:t},{page:n=1,contentType:r}){t("errors/clearError","getFavoriteOfType",{root:!0});let i;try{i=await Re.services.user.lists.get({type:r,order:"DESC",page:n})}catch(s){e("errors/setError",{error:s,type:"getFavoriteOfType"},{root:!0});return}return e("updateFavoritesOfType",{favorites:i,contentType:r}),i},async getAllItemsAllLists({commit:e,dispatch:t},n={}){t("errors/clearError","getAllItemsAllLists",{root:!0});let r;try{r=await Re.services.user.lists.listsItems(n)}catch(i){e("errors/setError",{error:i,type:"getAllItemsAllLists"},{root:!0});return}return e("updateAllItemsAllLists",r.items),r},async getUserListUrns({commit:e,dispatch:t},{guid:n="me",uuid:r="favorites"}){t("errors/clearError","getUserListUrns",{root:!0});let i;try{i=await Re.services.user.lists.urns({guid:n,uuid:r})}catch(s){e("errors/setError",{error:s,type:"getUserListUrns"},{root:!0});return}return n==="me"&&e("updateUserListUrns",{uuid:r,urns:i.urns}),i},clearUserListUrns({commit:e},{uuid:t}){e("clearUserListUrns",t)},clearAllUserListsUrns({commit:e}){e("clearAllUserListsUrns")},async getUserListFollowing({dispatch:e,commit:t,rootState:n},r){e("errors/clearError","getUserListFollowing",{root:!0});let i;try{i=await Re.services.user.lists.following(r),t("updateFollowing",i)}catch(s){t("errors/setError",{error:s,type:"getUserListFollowing"},{root:!0});return}},async followUserList({dispatch:e,commit:t,rootState:n},r){e("errors/clearError","followUserList",{root:!0});let i;try{return i=await Re.services.user.lists.follow(r),i}catch(s){t("errors/setError",{error:s,type:"followUserList"},{root:!0})}},async unfollowUserList({dispatch:e,commit:t,rootState:n},r){e("errors/clearError","unfollowUserList",{root:!0});let i;try{return i=await Re.services.user.lists.unfollow(r),i}catch(s){t("errors/setError",{error:s,type:"unfollowUserList"},{root:!0})}},async getFollowingUuids({dispatch:e,commit:t},{page:n=1,pageSize:r=50,append:i=!1}={}){e("errors/clearError","getFollowingUuids",{root:!0}),i||t("setFollowingUuids",{uuids:[],append:!1}),t("setFetchingFollowingUuids",!0);let s;try{s=await Re.services.user.lists.followingUuids({page:n,pageSize:r}),t("setFollowingUuids",{uuids:s.uuids,append:i}),s.links?.next&&await e("getFollowingUuids",{page:n+1,pageSize:r,append:!0})}catch(o){t("errors/setError",{error:o,type:"getFollowingUuids"},{root:!0})}finally{t("setFetchingFollowingUuids",!1)}}},S4={namespaced:!0,state:I4,getters:A4,mutations:w4,actions:_4},E4={get(e,t,n,r){return i=>{switch(i.type){case"Book":return r["books/byUUID"](i.uuid);case"ComicSeries":return r["comicSeries/byUUID"](i.uuid);case"Collection":return r["collections/bySlug"](i.slug);case"Clip":return r["clip/byUUID"](i.uuid);case"ShopItem":case"ShopifyProduct":return r["shopItem/byUUID"](i.uuid);case"Jsonbag":return r["jsonbag/byUuid"](i.uuid);case"ClickoutObject":return r["clickoutObjects/byUUID"](i.uuid);default:return{}}}}},x4={update(e,t){let n,r="commit";switch(t.type){case"Book":n="books/update";break;case"ComicSeries":n="comicSeries/update";break;case"Collection":n="collections/updateCollection";break;case"Clip":n="clip/update";break;case"ShopItem":case"ShopifyProduct":n="shopItem/update";break;case"Jsonbag":n="jsonbag/update";break;case"ClickoutObject":n="clickoutObjects/update";break;default:throw new Error("Item type is not supported")}e[r](n,{...t.item},{root:!0})}},T4={getters:E4,actions:x4,namespaced:!0};function k4(){return{config:null,paymentMethods:null}}const R4={activePaymentMethod(e,t,n,r){const i=r["subscriptions/currentSubscription"];return!i||!e.paymentMethods?null:e.paymentMethods.find(s=>s.guid===i.paymentmethodGuid)}},L4={setConfig(e,t){e.config=t},setPaymentMethods(e,t){e.paymentMethods=t}},O4={getConfig({dispatch:e,commit:t},n){return t("setConfig",null),e("errors/clearError","paymentMethodsGetConfig",{root:!0}),Re.services.paymentMethods.getConfig(n).then(r=>t("setConfig",r)).catch(r=>t("errors/setError",{error:r,type:"paymentMethodsGetConfig"},{root:!0}))},list({dispatch:e,commit:t}){return e("errors/clearError","paymentMethodsList",{root:!0}),Re.services.paymentMethods.list().then(n=>{t("setPaymentMethods",n.paymentMethods)}).catch(n=>t("errors/setError",{error:n,type:"paymentMethodsList"},{root:!0}))},create({dispatch:e,commit:t,rootState:n},r){return n.applicationConfig.captchaPlatform==="arkose"&&r.recaptchaToken&&(r.arkoseSession=r.recaptchaToken,delete r.recaptchaToken),e("errors/clearError","paymentMethodsCreate",{root:!0}),Re.services.paymentMethods.create(r).then(i=>(e("list"),i)).catch(i=>{throw t("errors/setError",{error:i,type:"paymentMethodsCreate"},{root:!0}),i})},disable({dispatch:e,commit:t},n){return e("errors/clearError","paymentMethodsDisable",{root:!0}),Re.services.paymentMethods.disable(n).then(r=>(e("list"),r)).catch(r=>{throw t("errors/setError",{error:r,type:"paymentMethodsDisable"},{root:!0}),r})},change({dispatch:e,commit:t},n){return e("errors/clearError","paymentMethodsChange",{root:!0}),Re.services.paymentMethods.change(n).then(r=>(e("list"),e("subscriptions/list",{},{root:!0}),r)).catch(r=>{throw t("errors/setError",{error:r,type:"paymentMethodsChange"},{root:!0}),r})}},N4={namespaced:!0,state:k4,getters:R4,mutations:L4,actions:O4};function P4(){return{externalPromos:{}}}const $4={setPromoForProperty(e,{externalProperty:t,value:n}){t&&(e.externalPromos[t]=n)}},M4={async getExternalPromo({dispatch:e,commit:t},n){e("errors/clearError","externalPromos",{root:!0}),t("setPromoForProperty",{externalProperty:n.externalProperty,value:null});let r;try{r=await Re.services.promocode.getExternalPromo(n)}catch(i){throw t("errors/setError",{error:i,type:"externalPromos"},{root:!0}),i}t("setPromoForProperty",{externalProperty:n.externalProperty,value:r})}},D4={},B4={state:P4,actions:M4,mutations:$4,getters:D4,namespaced:!0};
1427function F4(){return{purchasesByQuery:{}}}const H4={deletePurchasesByQuery(e,{queryHash:t}){e.purchasesByQuery[t]&&delete e.purchasesByQuery[t]},deletePurchasesByQueryPage(e,{queryHash:t,page:n}){e.purchasesByQuery[t]&&e.purchasesByQuery[t][n]&&delete e.purchasesByQuery[t][n]},updatePurchasesByQuery(e,{queryHash:t,purchaseItems:n,page:r}){e.purchasesByQuery[t]||(e.purchasesByQuery[t]={}),e.purchasesByQuery[t][r]=n},clearAllPurchases(e){e.purchasesByQuery={}}};function jp({size:e,order:t,inactive:n,model:r,source:i}){const s={size:e,order:t,inactive:n,model:r,source:i};return Object.keys(s).forEach(o=>{s[o]===void 0&&delete s[o]}),btoa(JSON.stringify(s))}function W4(e,t){let n=EE(t);return e("normalizedProxy/update",{...n},{root:!0}),n._normalized={id:n.item.id,uuid:n.item.uuid,slug:n.item.slug,path:n.item.path,type:n.type},n.item={},n}const V4={async getAll({dispatch:e,commit:t},{size:n,order:r,inactive:i,model:s,source:o}){e("errors/clearError","purchasesGetAll",{root:!0});let a=1,c={size:n,order:r,inactive:i,model:s,source:o};const l=jp(c);t("deletePurchasesByQuery",{queryHash:l});try{const v=(await e("get",{...c,page:a})).numPages;if(v===void 0)return;for(a++;a<=v;)e("get",{...c,page:a}),a++}catch(d){throw t("errors/setError",{error:d,type:"purchasesGetAll"},{root:!0}),d}},async get({dispatch:e,commit:t},n){e("errors/clearError","purchasesGet",{root:!0});const r=n.page||1,i=jp(n);let s;try{s=await Re.services.purchases.get(n)}catch(a){throw t("errors/setError",{error:a,type:"purchasesGet"},{root:!0}),a}const o=s.items.map(a=>W4(e,a));return s.items=o,t("deletePurchasesByQueryPage",{queryHash:i,page:r}),t("updatePurchasesByQuery",{queryHash:i,purchaseItems:s,page:r}),s}},G4={getBy:(e,t,n,r)=>i=>{const s=e.purchasesByQuery[jp(i)]||{};return Object.entries(s).sort((o,a)=>Number(o[0])-Number(a[0])).map(o=>o[1].items.map(a=>r["normalizedProxy/get"](a._normalized))).flat(2)}},U4={state:F4,actions:V4,mutations:H4,getters:G4,namespaced:!0};function xE(e,t){return function(){return e.apply(t,arguments)}}const{toString:j4}=Object.prototype,{getPrototypeOf:Ys}=Object,{iterator:tc,toStringTag:TE}=Symbol,Uu=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),kl=(e,t)=>{let n=e;const r=[];for(;n!=null&&n!==Object.prototype;){if(r.indexOf(n)!==-1)return!1;if(r.push(n),Uu(n,t))return!0;n=Ys(n)}return!1},z4=(e,t)=>e!=null&&kl(e,t)?e[t]:void 0,Om=(e=>t=>{const n=j4.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Nr=e=>(e=e.toLowerCase(),t=>Om(t)===e),zd=e=>t=>typeof t===e,{isArray:Bo}=Array,Xs=zd("undefined");function pa(e){return e!==null&&!Xs(e)&&e.constructor!==null&&!Xs(e.constructor)&&Gn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const kE=Nr("ArrayBuffer");function Z4(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&kE(e.buffer),t}const K4=zd("string"),Gn=zd("function"),RE=zd("number"),ga=e=>e!==null&&typeof e=="object",Y4=e=>e===!0||e===!1,nu=e=>{if(!ga(e))return!1;const t=Ys(e);return(t===null||t===Object.prototype||Ys(t)===null)&&!kl(e,TE)&&!kl(e,tc)},X4=e=>{if(!ga(e)||pa(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},J4=Nr("Date"),q4=Nr("File"),Q4=e=>!!(e&&typeof e.uri<"u"),ez=e=>e&&typeof e.getParts<"u",tz=Nr("Blob"),nz=Nr("FileList"),rz=e=>ga(e)&&Gn(e.pipe);function iz(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const lC=iz(),cC=typeof lC.FormData<"u"?lC.FormData:void 0,oz=e=>{if(!e)return!1;if(cC&&e instanceof cC)return!0;const t=Ys(e);if(!t||t===Object.prototype||!Gn(e.append))return!1;const n=Om(e);return n==="formdata"||n==="object"&&Gn(e.toString)&&e.toString()==="[object FormData]"},sz=Nr("URLSearchParams"),[az,lz,cz,uz]=["ReadableStream","Request","Response","Headers"].map(Nr),dz=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function nc(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Bo(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(pa(e))return;const s=n?Object.getOwnPropertyNames(e):Object.keys(e),o=s.length;let a;for(r=0;r<o;r++)a=s[r],t.call(null,e[a],a,e)}}function LE(e,t){if(pa(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Co=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,OE=e=>!Xs(e)&&e!==Co;function zp(...e){const{caseless:t,skipUndefined:n}=OE(this)&&this||{},r={},i=(s,o)=>
vendor: 41,700 bytes, lines 1427-1435
1427{if(o==="__proto__"||o==="constructor"||o==="prototype")return;const a=t&&typeof o=="string"&&LE(r,o)||o,c=Uu(r,a)?r[a]:void 0;nu(c)&&nu(s)?r[a]=zp(c,s):nu(s)?r[a]=zp({},s):Bo(s)?r[a]=s.slice():(!n||!Xs(s))&&(r[a]=s)};for(let s=0,o=e.length;s<o;s++){const a=e[s];if(!a||pa(a)||(nc(a,i),typeof a!="object"||Bo(a)))continue;const c=Object.getOwnPropertySymbols(a);for(let l=0;l<c.length;l++){const d=c[l];wz.call(a,d)&&i(a[d],d)}}return r}const hz=(e,t,n,{allOwnKeys:r}={})=>(nc(t,(i,s)=>{n&&Gn(i)?Object.defineProperty(e,s,{__proto__:null,value:xE(i,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,s,{__proto__:null,value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),fz=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),pz=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},gz=(e,t,n,r)=>{let i,s,o;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)o=i[s],(!r||r(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=n!==!1&&Ys(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},mz=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},yz=e=>{if(!e)return null;if(Bo(e))return e;let t=e.length;if(!RE(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},bz=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ys(Uint8Array)),vz=(e,t)=>{const r=(e&&e[tc]).call(e);let i;for(;(i=r.next())&&!i.done;){const s=i.value;t.call(e,s[0],s[1])}},Cz=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Iz=Nr("HTMLFormElement"),Az=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),{propertyIsEnumerable:wz}=Object.prototype,_z=Nr("RegExp"),NE=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};nc(n,(i,s)=>{let o;(o=t(i,s,e))!==!1&&(r[s]=o||i)}),Object.defineProperties(e,r)},Sz=e=>{NE(e,(t,n)=>{if(Gn(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(Gn(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Ez=(e,t)=>{const n={},r=i=>{i.forEach(s=>{n[s]=!0})};return Bo(e)?r(e):r(String(e).split(t)),n},xz=()=>{},Tz=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function kz(e){return!!(e&&Gn(e.append)&&e[TE]==="FormData"&&e[tc])}const Rz=e=>{const t=new WeakSet,n=r=>{if(ga(r)){if(t.has(r))return;if(pa(r))return r;if(!("toJSON"in r)){t.add(r);const i=Bo(r)?[]:{};return nc(r,(s,o)=>{const a=n(s);!Xs(a)&&(i[o]=a)}),t.delete(r),i}}return r};return n(e)},Lz=Nr("AsyncFunction"),Oz=e=>e&&(ga(e)||Gn(e))&&Gn(e.then)&&Gn(e.catch),PE=((e,t)=>e?setImmediate:t?((n,r)=>(Co.addEventListener("message",({source:i,data:s})=>{i===Co&&s===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Co.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Gn(Co.postMessage)),Nz=typeof queueMicrotask<"u"?queueMicrotask.bind(Co):typeof process<"u"&&process.nextTick||PE,$E=e=>e!=null&&Gn(e[tc]),Pz=e=>e!=null&&kl(e,tc)&&$E(e),Ae={isArray:Bo,isArrayBuffer:kE,isBuffer:pa,isFormData:oz,isArrayBufferView:Z4,isString:K4,isNumber:RE,isBoolean:Y4,isObject:ga,isPlainObject:nu,isEmptyObject:X4,isReadableStream:az,isRequest:lz,isResponse:cz,isHeaders:uz,isUndefined:Xs,isDate:J4,isFile:q4,isReactNativeBlob:Q4,isReactNative:ez,isBlob:tz,isRegExp:_z,isFunction:Gn,isStream:rz,isURLSearchParams:sz,isTypedArray:bz,isFileList:nz,forEach:nc,merge:zp,extend:hz,trim:dz,stripBOM:fz,inherits:pz,toFlatObject:gz,kindOf:Om,kindOfTest:Nr,endsWith:mz,toArray:yz,forEachEntry:vz,matchAll:Cz,isHTMLForm:Iz,hasOwnProperty:Uu,hasOwnProp:Uu,hasOwnInPrototypeChain:kl,getSafeProp:z4,reduceDescriptors:NE,freezeMethods:Sz,toObjectSet:Ez,toCamelCase:Az,noop:xz,toFiniteNumber:Tz,findKey:LE,global:Co,isContextDefined:OE,isSpecCompliantForm:kz,toJSONObject:Rz,isAsyncFn:Lz,isThenable:Oz,setImmediate:PE,asap:Nz,isIterable:$E,isSafeIterable:Pz},$z=Ae.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Mz=e=>{const t={};let n,r,i;return e&&e.split(` 1428`).forEach(function(o){i=o.indexOf(":"),n=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!n||t[n]&&$z[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};function Dz(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const Bz=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),Fz=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Nm(e,t){return Ae.isArray(e)?e.map(n=>Nm(n,t)):Dz(String(e).replace(t,""))}const Hz=e=>Nm(e,Bz),Wz=e=>Nm(e,Fz);function ME(e){const t=Object.create(null);return Ae.forEach(e.toJSON(),(n,r)=>{t[r]=Wz(n)}),t}const uC=Symbol("internals");function Fa(e){return e&&String(e).trim().toLowerCase()}function ru(e){return e===!1||e==null?e:Ae.isArray(e)?e.map(ru):Hz(String(e))}function Vz(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Gz=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Xh(e,t,n,r,i){if(Ae.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!Ae.isString(t)){if(Ae.isString(r))return t.indexOf(r)!==-1;if(Ae.isRegExp(r))return r.test(t)}}function Uz(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function jz(e,t){const n=Ae.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(i,s,o){return this[r].call(this,t,i,s,o)},configurable:!0})})}let Sn=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function s(a,c,l){const d=Fa(c);if(!d)return;const v=Ae.findKey(i,d);(!v||i[v]===void 0||l===!0||l===void 0&&i[v]!==!1)&&(i[v||c]=ru(a))}const o=(a,c)=>Ae.forEach(a,(l,d)=>s(l,d,c));if(Ae.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(Ae.isString(t)&&(t=t.trim())&&!Gz(t))o(Mz(t),n);else if(Ae.isObject(t)&&Ae.isSafeIterable(t)){let a=Object.create(null),c,l;for(const d of t){if(!Ae.isArray(d))throw new TypeError("Object iterator must return a key-value pair");l=d[0],Ae.hasOwnProp(a,l)?(c=a[l],a[l]=Ae.isArray(c)?[...c,d[1]]:[c,d[1]]):a[l]=d[1]}o(a,n)}else t!=null&&s(n,t,r);return this}get(t,n){if(t=Fa(t),t){const r=Ae.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return Vz(i);if(Ae.isFunction(n))return n.call(this,i,r);if(Ae.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Fa(t),t){const r=Ae.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Xh(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function s(o){if(o=Fa(o),o){const a=Ae.findKey(r,o);a&&(!n||Xh(r,r[a],a,n))&&(delete r[a],i=!0)}}return Ae.isArray(t)?t.forEach(s):s(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const s=n[r];(!t||Xh(this,this[s],s,t,!0))&&(delete this[s],i=!0)}return i}normalize(t){const n=this,r={};return Ae.forEach(this,(i,s)=>{const o=Ae.findKey(r,s);if(o){n[o]=ru(i),delete n[s];return}const a=t?Uz(s):String(s).trim();a!==s&&delete n[s],n[a]=ru(i),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Ae.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&Ae.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` 1429`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[uC]=this[uC]={accessors:{}}).accessors,i=this.prototype;function s(o){const a=Fa(o);r[a]||(jz(i,o),r[a]=!0)}return Ae.isArray(t)?t.forEach(s):s(t),this}};Sn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Ae.reduceDescriptors(Sn.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Ae.freezeMethods(Sn);const zz="[REDACTED ****]";function Zz(e){if(Ae.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(Ae.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function Kz(e,t){const n=new Set(t.map(s=>String(s).toLowerCase())),r=[],i=s=>{if(s===null||typeof s!="object"||Ae.isBuffer(s))return s;if(r.indexOf(s)!==-1)return;s instanceof Sn&&(s=s.toJSON()),r.push(s);let o;if(Ae.isArray(s))o=[],s.forEach((a,c)=>{const l=i(a);Ae.isUndefined(l)||(o[c]=l)});else{if(!Ae.isPlainObject(s)&&Zz(s))return r.pop(),s;o=Object.create(null);for(const[a,c]of Object.entries(s)){const l=n.has(a.toLowerCase())?zz:i(c);Ae.isUndefined(l)||(o[a]=l)}}return r.pop(),o};return i(e)}let Fe=class DE extends Error{static from(t,n,r,i,s,o){const a=new DE(t.message,n||t.code,r,i,s);return Object.defineProperty(a,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),a.name=t.name,t.status!=null&&a.status==null&&(a.status=t.status),o&&Object.assign(a,o),a}constructor(t,n,r,i,s){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),i&&(this.request=i),s&&(this.response=s,this.status=s.status)}toJSON(){const t=this.config,n=t&&Ae.hasOwnProp(t,"redact")?t.redact:void 0,r=Ae.isArray(n)&&n.length>0?Kz(t,n):Ae.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}};Fe.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";Fe.ERR_BAD_OPTION="ERR_BAD_OPTION";Fe.ECONNABORTED="ECONNABORTED";Fe.ETIMEDOUT="ETIMEDOUT";Fe.ECONNREFUSED="ECONNREFUSED";Fe.ERR_NETWORK="ERR_NETWORK";Fe.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";Fe.ERR_DEPRECATED="ERR_DEPRECATED";Fe.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";Fe.ERR_BAD_REQUEST="ERR_BAD_REQUEST";Fe.ERR_CANCELED="ERR_CANCELED";Fe.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";Fe.ERR_INVALID_URL="ERR_INVALID_URL";Fe.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const Yz=null,BE=100;function Zp(e){return Ae.isPlainObject(e)||Ae.isArray(e)}function FE(e){return Ae.endsWith(e,"[]")?e.slice(0,-2):e}function Jh(e,t,n){return e?e.concat(t).map(function(i,s){return i=FE(i),!n&&s?"["+i+"]":i}).join(n?".":""):t}function Xz(e){return Ae.isArray(e)&&!e.some(Zp)}const Jz=Ae.toFlatObject(Ae,{},null,function(t){return/^is[A-Z]/.test(t)});function Zd(e,t,n){if(!Ae.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Ae.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(N,x){return!Ae.isUndefined(x[N])});const r=n.metaTokens,i=n.visitor||$,s=n.dots,o=n.indexes,a=n.Blob||typeof Blob<"u"&&Blob,c=n.maxDepth===void 0?BE:n.maxDepth,l=a&&Ae.isSpecCompliantForm(t),d=[];if(!Ae.isFunction(i))throw new TypeError("visitor must be a function");function v(C){if(C===null)return"";if(Ae.isDate(C))return C.toISOString();if(Ae.isBoolean(C))return C.toString();if(!l&&Ae.isBlob(C))throw new Fe("Blob is not supported. Use a Buffer instead.");if(Ae.isArrayBuffer(C)||Ae.isTypedArray(C)){if(l&&typeof a=="function")return new a([C]);if(typeof Buffer<"u")return Buffer.from(C);throw new Fe("Blob is not supported. Use a Buffer instead.",Fe.ERR_NOT_SUPPORT)}return C}function R(C){if(C>c)throw new Fe("Object is too deeply nested ("+C+" levels). Max depth: "+c,Fe.ERR_FORM_DATA_DEPTH_EXCEEDED)}function O(C,N){if(c===1/0)return JSON.stringify(C);const x=[];return JSON.stringify(C,function(b,p){if(!Ae.isObject(p))return p;for(;x.length&&x[x.length-1]!==this;)x.pop();return x.push(p),R(N+x.length-1),p})}function $(C,N,x){let S=C;if(Ae.isReactNative(t)&&Ae.isReactNativeBlob(C))return t.append(Jh(x,N,s),v(C)),!1;if(C&&!x&&typeof C=="object"){if(Ae.endsWith(N,"{}"))N=r?N:N.slice(0,-2),C=O(C,1);else if(Ae.isArray(C)&&Xz(C)||(Ae.isFileList(C)||Ae.endsWith(N,"[]"))&&(S=Ae.toArray(C)))return N=FE(N),S.forEach(function(p,g){!(Ae.isUndefined(p)||p===null)&&t.append(o===!0?Jh([N],g,s):o===null?N:N+"[]",v(p))}),!1}return Zp(C)?!0:(t.append(Jh(x,N,s),v(C)),!1)}const P=Object.assign(Jz,{defaultVisitor:$,convertValue:v,isVisitable:Zp});function T(C,N,x=0){if(!Ae.isUndefined(C)){if(R(x),d.indexOf(C)!==-1)throw new Error("Circular reference detected in "+N.join("."));d.push(C),Ae.forEach(C,function(b,p){(!(Ae.isUndefined(b)||b===null)&&i.call(t,b,Ae.isString(p)?p.trim():p,N,P))===!0&&T(b,N?N.concat(p):[p],x+1)}),d.pop()}}if(!Ae.isObject(e))throw new TypeError("data must be an object");return T(e),t}function dC(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function Pm(e,t){this._pairs=[],e&&Zd(e,this,t)}const HE=Pm.prototype;HE.append=function(t,n){this._pairs.push([t,n])};HE.toString=function(t){const n=t?r=>t.call(this,r,dC):dC;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function qz(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function WE(e,t,n){if(!t)return e;e=e||"";const r=Ae.isFunction(n)?{serialize:n}:n,i=Ae.getSafeProp(r,"encode")||qz,s=Ae.getSafeProp(r,"serialize");let o;if(s?o=s(t,r):o=Ae.isURLSearchParams(t)?t.toString():new Pm(t,r).toString(i),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class hC{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Ae.forEach(this.handlers,function(r){r!==null&&t(r)})}}const $m={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},Qz=typeof URLSearchParams<"u"?URLSearchParams:Pm,eZ=typeof FormData<"u"?FormData:null,tZ=typeof Blob<"u"?Blob:null,nZ={isBrowser:!0,classes:{URLSearchParams:Qz,FormData:eZ,Blob:tZ},protocols:["http","https","file","blob","url","data"]},Mm=typeof window<"u"&&typeof document<"u",Kp=typeof navigator=="object"&&navigator||void 0,rZ=Mm&&(!Kp||["ReactNative","NativeScript","NS"].indexOf(Kp.product)<0),iZ=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",oZ=Mm&&window.location.href||"http://localhost",sZ=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Mm,hasStandardBrowserEnv:rZ,hasStandardBrowserWebWorkerEnv:iZ,navigator:Kp,origin:oZ},Symbol.toStringTag,{value:"Module"})),hn={...sZ,...nZ};function aZ(e,t){return Zd(e,new hn.classes.URLSearchParams,{visitor:function(n,r,i,s){return hn.isNode&&Ae.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}const fC=BE;function VE(e){if(e>fC)throw new Fe("FormData field is too deeply nested ("+e+" levels). Max depth: "+fC,Fe.ERR_FORM_DATA_DEPTH_EXCEEDED)}function lZ(e){const t=[],n=/\w+|\[(\w*)]/g;let r;for(;(r=n.exec(e))!==null;)VE(t.length),t.push(r[0]==="[]"?"":r[1]||r[0]);return t}function cZ(e){const t={},n=Object.keys(e);let r;const i=n.length;let s;for(r=0;r<i;r++)s=n[r],t[s]=e[s];return t}function GE(e){function t(n,r,i,s){VE(s);let o=n[s++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),c=s>=n.length;return o=!o&&Ae.isArray(i)?i.length:o,c?(Ae.hasOwnProp(i,o)?i[o]=Ae.isArray(i[o])?i[o].concat(r):[i[o],r]:i[o]=r,!a):((!Ae.hasOwnProp(i,o)||!Ae.isObject(i[o]))&&(i[o]=[]),t(n,r,i[o],s)&&Ae.isArray(i[o])&&(i[o]=cZ(i[o])),!a)}if(Ae.isFormData(e)&&Ae.isFunction(e.entries)){const n={};return Ae.forEachEntry(e,(r,i)=>{t(lZ(r),i,n,0)}),n}return null}const os=(e,t)=>e!=null&&Ae.hasOwnProp(e,t)?e[t]:void 0;function uZ(e,t,n){if(Ae.isString(e))try{return(t||JSON.parse)(e),Ae.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const rc={transitional:$m,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,s=Ae.isObject(t);if(s&&Ae.isHTMLForm(t)&&(t=new FormData(t)),Ae.isFormData(t))return i?JSON.stringify(GE(t)):t;if(Ae.isArrayBuffer(t)||Ae.isBuffer(t)||Ae.isStream(t)||Ae.isFile(t)||Ae.isBlob(t)||Ae.isReadableStream(t))return t;if(Ae.isArrayBufferView(t))return t.buffer;if(Ae.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(s){const c=os(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return aZ(t,c).toString();if((a=Ae.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=os(this,"env"),d=l&&l.FormData;return Zd(a?{"files[]":t}:t,d&&new d,c)}}return s||i?(n.setContentType("application/json",!1),uZ(t)):t}],transformResponse:[function(t){const n=os(this,"transitional")||rc.transitional,r=n&&n.forcedJSONParsing,i=os(this,"responseType"),s=i==="json";if(Ae.isResponse(t)||Ae.isReadableStream(t))return t;if(t&&Ae.isString(t)&&(r&&!i||s)){const a=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t,os(this,"parseReviver"))}catch(c){if(a)throw c.name==="SyntaxError"?Fe.from(c,Fe.ERR_BAD_RESPONSE,this,null,os(this,"response")):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:hn.classes.FormData,Blob:hn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ae.forEach(["delete","get","head","post","put","patch","query"],e=>{rc.headers[e]={}});function qh(e,t){const n=this||rc,r=t||n,i=Sn.from(r.headers);let s=r.data;return Ae.forEach(e,function(a){s=a.call(n,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function UE(e){return!!(e&&e.__CANCEL__)}let ic=class extends Fe{constructor(t,n,r){super(t??"canceled",Fe.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function jE(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Fe("Request failed with status code "+n.status,n.status>=400&&n.status<500?Fe.ERR_BAD_REQUEST:Fe.ERR_BAD_RESPONSE,n.config,n.request,n))}function dZ(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function hZ(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,s=0,o;return t=t!==void 0?t:1e3,function(c){const l=Date.now(),d=r[s];o||(o=l),n[i]=c,r[i]=l;let v=s,R=0;for(;v!==i;)R+=n[v++],v=v%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),l-o<t)return;const O=d&&l-d;return O?Math.round(R*1e3/O):void 0}}function fZ(e,t){let n=0,r=1e3/t,i,s;const o=(l,d=Date.now())=>{n=d,i=null,s&&(clearTimeout(s),s=null),e(...l)};return[(...l)=>{const d=Date.now(),v=d-n;v>=r?o(l,d):(i=l,s||(s=setTimeout(()=>{s=null,o(i)},r-v)))},()=>i&&o(i)]}const ju=(e,t,n=3)=>{let r=0;const i=hZ(50,250);return fZ(s=>{if(!s||typeof s.loaded!="number")return;const o=s.loaded,a=s.lengthComputable?s.total:void 0,c=a!=null?Math.min(o,a):o,l=Math.max(0,c-r),d=i(l);r=Math.max(r,c);const v={loaded:c,total:a,progress:a?c/a:void 0,bytes:l,rate:d||void 0,estimated:d&&a?(a-c)/d:void 0,event:s,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(v)},n)},pC=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},gC=e=>(...t)=>Ae.asap(()=>e(...t)),pZ=hn.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,hn.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(hn.origin),hn.navigator&&/(msie|trident)/i.test(hn.navigator.userAgent)):()=>!0,gZ=hn.hasStandardBrowserEnv?{write(e,t,n,r,i,s,o){if(typeof document>"u")return;const a=[`${e}=${encodeURIComponent(t)}`];Ae.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),Ae.isString(r)&&a.push(`path=${r}`),Ae.isString(i)&&a.push(`domain=${i}`),s===!0&&a.push("secure"),Ae.isString(o)&&a.push(`SameSite=${o}`),document.cookie=a.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),i=r.indexOf("=");if(i!==-1&&r.slice(0,i)===e)try{return decodeURIComponent(r.slice(i+1))}catch{return r.slice(i+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function mZ(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function yZ(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}const bZ=/^https?:(?!\/\/)/i,vZ=/[\t\n\r]/g;function CZ(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}function IZ(e){return CZ(e).replace(vZ,"")}function mC(e,t){if(typeof e=="string"&&bZ.test(IZ(e)))throw new Fe('Invalid URL: missing "//" after protocol',Fe.ERR_INVALID_URL,t)}function zE(e,t,n,r){mC(t,r);let i=!mZ(t);return e&&(i||n===!1)?(mC(e,r),yZ(e,t)):t}const yC=e=>e instanceof Sn?{...e}:e;function Fo(e,t){e=e||{},t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(d,v,R,O){return Ae.isPlainObject(d)&&Ae.isPlainObject(v)?Ae.merge.call({caseless:O},d,v):Ae.isPlainObject(v)?Ae.merge({},v):Ae.isArray(v)?v.slice():v}function i(d,v,R,O){if(Ae.isUndefined(v)){if(!Ae.isUndefined(d))return r(void 0,d,R,O)}else return r(d,v,R,O)}function s(d,v){if(!Ae.isUndefined(v))return r(void 0,v)}function o(d,v){if(Ae.isUndefined(v)){if(!Ae.isUndefined(d))return r(void 0,d)}else return r(void 0,v)}function a(d){const v=Ae.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!Ae.isUndefined(v))if(Ae.isPlainObject(v)){if(Ae.hasOwnProp(v,d))return v[d]}else return;const R=Ae.hasOwnProp(e,"transitional")?e.transitional:void 0;if(Ae.isPlainObject(R)&&Ae.hasOwnProp(R,d))return R[d]}function c(d,v,R){if(Ae.hasOwnProp(t,R))return r(d,v);if(Ae.hasOwnProp(e,R))return r(void 0,d)}const l={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,allowedSocketPaths:o,responseEncoding:o,validateStatus:c,headers:(d,v,R)=>i(yC(d),yC(v),R,!0)};return Ae.forEach(Object.keys({...e,...t}),function(v){if(v==="__proto__"||v==="constructor"||v==="prototype")return;const R=Ae.hasOwnProp(l,v)?l[v]:i,O=Ae.hasOwnProp(e,v)?e[v]:void 0,$=Ae.hasOwnProp(t,v)?t[v]:void 0,P=R(O,$,v);Ae.isUndefined(P)&&R!==c||(n[v]=P)}),Ae.hasOwnProp(t,"validateStatus")&&Ae.isUndefined(t.validateStatus)&&a("validateStatusUndefinedResolves")===!1&&(Ae.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}const AZ=["content-type","content-length"];function wZ(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t||{}).forEach(([r,i])=>{AZ.includes(r.toLowerCase())&&e.set(r,i)})}const _Z=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function ZE(e){const t=Fo({},e),n=R=>Ae.hasOwnProp(t,R)?t[R]:void 0,r=n("data");let i=n("withXSRFToken");const s=n("xsrfHeaderName"),o=n("xsrfCookieName");let a=n("headers");const c=n("auth"),l=n("baseURL"),d=n("allowAbsoluteUrls"),v=n("url");if(t.headers=a=Sn.from(a),t.url=WE(zE(l,v,d,t),n("params"),n("paramsSerializer")),c){const R=Ae.getSafeProp(c,"username")||"",O=Ae.getSafeProp(c,"password")||"";try{a.set("Authorization","Basic "+btoa(R+":"+(O?_Z(O):"")))}catch($){throw Fe.from($,Fe.ERR_BAD_OPTION_VALUE,e)}}if(Ae.isFormData(r)&&(hn.hasStandardBrowserEnv||hn.hasStandardBrowserWebWorkerEnv||Ae.isReactNative(r)?a.setContentType(void 0):Ae.isFunction(r.getHeaders)&&wZ(a,r.getHeaders(),n("formDataHeaderPolicy"))),hn.hasStandardBrowserEnv&&(Ae.isFunction(i)&&(i=i(t)),i===!0||i==null&&pZ(t.url))){const O=s&&o&&gZ.read(o);O&&a.set(s,O)}return t}const SZ=typeof XMLHttpRequest<"u",EZ=SZ&&function(e){return new Promise(function(n,r){const i=ZE(e);let s=i.data;const o=Sn.from(i.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:l}=i,d,v,R,O,$;function P(){O&&O(),$&&$(),i.cancelToken&&i.cancelToken.unsubscribe(d),i.signal&&i.signal.removeEventListener("abort",d)}let T=new XMLHttpRequest;T.open(i.method.toUpperCase(),i.url,!0),T.timeout=i.timeout;function C(){if(!T)return;const x=Sn.from("getAllResponseHeaders"in T&&T.getAllResponseHeaders()),b={data:!a||a==="text"||a==="json"?T.responseText:T.response,status:T.status,statusText:T.statusText,headers:x,config:e,request:T};jE(function(g){n(g),P()},function(g){r(g),P()},b),T=null}"onloadend"in T?T.onloadend=C:T.onreadystatechange=function(){!T||T.readyState!==4||T.status===0&&!(T.responseURL&&T.responseURL.startsWith("file:"))||setTimeout(C)},T.onabort=function(){T&&(r(new Fe("Request aborted",Fe.ECONNABORTED,e,T)),P(),T=null)},T.onerror=function(S){const b=S&&S.message?S.message:"Network Error",p=new Fe(b,Fe.ERR_NETWORK,e,T);p.event=S||null,r(p),P(),T=null},T.ontimeout=function(){let S=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const b=i.transitional||$m;i.timeoutErrorMessage&&(S=i.timeoutErrorMessage),r(new Fe(S,b.clarifyTimeoutError?Fe.ETIMEDOUT:Fe.ECONNABORTED,e,T)),P(),T=null},s===void 0&&o.setContentType(null),"setRequestHeader"in T&&Ae.forEach(ME(o),function(S,b){T.setRequestHeader(b,S)}),Ae.isUndefined(i.withCredentials)||(T.withCredentials=!!i.withCredentials),a&&a!=="json"&&(T.responseType=i.responseType),l&&([R,$]=ju(l,!0),T.addEventListener("progress",R)),c&&T.upload&&([v,O]=ju(c),T.upload.addEventListener("progress",v),T.upload.addEventListener("loadend",O)),(i.cancelToken||i.signal)&&(d=x=>{T&&(r(!x||x.type?new ic(null,e,T):x),T.abort(),P(),T=null)},i.cancelToken&&i.cancelToken.subscribe(d),i.signal&&(i.signal.aborted?d():i.signal.addEventListener("abort",d)));const N=dZ(i.url);if(N&&!hn.protocols.includes(N)){r(new Fe("Unsupported protocol "+N+":",Fe.ERR_BAD_REQUEST,e)),P();return}T.send(s||null)})},xZ=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const i=function(c){if(!r){r=!0,o();const l=c instanceof Error?c:this.reason;n.abort(l instanceof Fe?l:new ic(l instanceof Error?l.message:l))}};let s=t&&setTimeout(()=>{s=null,i(new Fe(`timeout of ${t}ms exceeded`,Fe.ETIMEDOUT))},t);const o=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i,{once:!0}));const{signal:a}=n;return a.unsubscribe=()=>Ae.asap(o),a},TZ=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},kZ=async function*(e,t){for await(const n of RZ(e))yield*TZ(n,t)},RZ=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},bC=(e,t,n,r)=>{const i=kZ(e,t);let s=0,o,a=c=>{o||(o=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:l,value:d}=await i.next();if(l){a(),c.close();return}let v=d.byteLength;if(n){let R=s+=v;n(R)}c.enqueue(new Uint8Array(d))}catch(l){throw a(l),l}},cancel(c){return a(c),i.return()}},{highWaterMark:2})},zu=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,LZ=(e,t,n)=>t+2<n&&zu(e.charCodeAt(t+1))&&zu(e.charCodeAt(t+2));function OZ(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let o=r.length;const a=r.length;for(let O=0;O<a;O++)if(r.charCodeAt(O)===37&&O+2<a){const $=r.charCodeAt(O+1),P=r.charCodeAt(O+2);zu($)&&zu(P)&&(o-=2,O+=2)}let c=0,l=a-1;const d=O=>O>=2&&r.charCodeAt(O-2)===37&&r.charCodeAt(O-1)===51&&(r.charCodeAt(O)===68||r.charCodeAt(O)===100);l>=0&&(r.charCodeAt(l)===61?(c++,l--):d(l)&&(c++,l-=3)),c===1&&l>=0&&(r.charCodeAt(l)===61||d(l))&&c++;const R=Math.floor(o/4)*3-(c||0);return R>0?R:0}let s=0;for(let o=0,a=r.length;o<a;o++){const c=r.charCodeAt(o);if(c===37&&LZ(r,o,a))s+=1,o+=2;else if(c<128)s+=1;else if(c<2048)s+=2;else if(c>=55296&&c<=56319&&o+1<a){const l=r.charCodeAt(o+1);l>=56320&&l<=57343?(s+=4,o++):s+=3}else s+=3}return s}const Dm="1.18.1",vC=64*1024,{isFunction:Bc}=Ae,NZ=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),CC=e=>{if(!Ae.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},IC=(e,...t)=>{try{return!!e(...t)}catch{return!1}},PZ=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},$Z=e=>{const t=Ae.global!==void 0&&Ae.global!==null?Ae.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=Ae.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:i,Request:s,Response:o}=e,a=i?Bc(i):typeof fetch=="function",c=Bc(s),l=Bc(o);if(!a)return!1;const d=a&&Bc(n),v=a&&(typeof r=="function"?(C=>N=>C.encode(N))(new r):async C=>new Uint8Array(await new s(C).arrayBuffer())),R=c&&d&&IC(()=>{let C=!1;const N=new s(hn.origin,{body:new n,method:"POST",get duplex(){return C=!0,"half"}}),x=N.headers.has("Content-Type");return N.body!=null&&N.body.cancel(),C&&!x}),O=l&&d&&IC(()=>Ae.isReadableStream(new o("").body)),$={stream:O&&(C=>C.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(C=>{!$[C]&&($[C]=(N,x)=>{let S=N&&N[C];if(S)return S.call(N);throw new Fe(`Response type '${C}' is not supported`,Fe.ERR_NOT_SUPPORT,x)})});const P=async C=>{if(C==null)return 0;if(Ae.isBlob(C))return C.size;if(Ae.isSpecCompliantForm(C))return(await new s(hn.origin,{method:"POST",body:C}).arrayBuffer()).byteLength;if(Ae.isArrayBufferView(C)||Ae.isArrayBuffer(C))return C.byteLength;if(Ae.isURLSearchParams(C)&&(C=C+""),Ae.isString(C))return(await v(C)).byteLength},T=async(C,N)=>{const x=Ae.toFiniteNumber(C.getContentLength());return x??P(N)};return async C=>{let{url:N,method:x,data:S,signal:b,cancelToken:p,timeout:g,onDownloadProgress:u,onUploadProgress:y,responseType:m,headers:I,withCredentials:_="same-origin",fetchOptions:h,maxContentLength:f,maxBodyLength:w}=ZE(C);const E=Ae.isNumber(f)&&f>-1,k=Ae.isNumber(w)&&w>-1,L=H=>Ae.hasOwnProp(C,H)?C[H]:void 0;let M=i||fetch;m=m?(m+"").toLowerCase():"text";let B=xZ([b,p&&p.toAbortSignal()],g),j=null;const z=B&&B.unsubscribe&&(()=>{B.unsubscribe()});let Q,D=null;const K=()=>new Fe("Request body larger than maxBodyLength limit",Fe.ERR_BAD_REQUEST,C,j);try{let H;const A=L("auth");if(A){const se=Ae.getSafeProp(A,"username")||"",he=Ae.getSafeProp(A,"password")||"";H={username:se,password:he}}if(PZ(N)){const se=new URL(N,hn.origin);if(!H&&(se.username||se.password)){const he=CC(se.username),ie=CC(se.password);H={username:he,password:ie}}(se.username||se.password)&&(se.username="",se.password="",N=se.href)}if(H&&(I.delete("authorization"),I.set("Authorization","Basic "+btoa(NZ((H.username||"")+":"+(H.password||""))))),E&&typeof N=="string"&&N.startsWith("data:")&&OZ(N)>f)throw new Fe("maxContentLength size of "+f+" exceeded",Fe.ERR_BAD_RESPONSE,C,j);if(k&&x!=="get"&&x!=="head"){const se=await P(S);if(typeof se=="number"&&isFinite(se)&&(Q=se,se>w))throw K()}const W=k&&(Ae.isReadableStream(S)||Ae.isStream(S)),F=(se,he,ie)=>bC(se,vC,oe=>{if(k&&oe>w)throw D=K();he&&he(oe)},ie);if(R&&x!=="get"&&x!=="head"&&(y||W)){if(Q=Q??await T(I,S),Q!==0||W){let se=new s(N,{method:"POST",body:S,duplex:"half"}),he;if(Ae.isFormData(S)&&(he=se.headers.get("content-type"))&&I.setContentType(he),se.body){const[ie,oe]=y&&pC(Q,ju(gC(y)))||[];S=F(se.body,ie,oe)}}}else if(W&&!c&&d&&x!=="get"&&x!=="head")S=F(S);else if(W&&c&&!R&&x!=="get"&&x!=="head")throw new Fe("Stream request bodies are not supported by the current fetch implementation",Fe.ERR_NOT_SUPPORT,C,j);Ae.isString(_)||(_=_?"include":"omit");const U=c&&"credentials"in s.prototype;if(Ae.isFormData(S)){const se=I.getContentType();se&&/^multipart\/form-data/i.test(se)&&!/boundary=/i.test(se)&&I.delete("content-type")}I.set("User-Agent","axios/"+Dm,!1);const Y={...h,signal:B,method:x.toUpperCase(),headers:ME(I.normalize()),body:S,duplex:"half",credentials:U?_:void 0};j=c&&new s(N,Y);let ee=await(c?M(j,h):M(N,Y));const X=Sn.from(ee.headers);if(E){const se=Ae.toFiniteNumber(X.getContentLength());if(se!=null&&se>f)throw new Fe("maxContentLength size of "+f+" exceeded",Fe.ERR_BAD_RESPONSE,C,j)}const q=O&&(m==="stream"||m==="response");if(O&&ee.body&&(u||E||q&&z)){const se={};["status","statusText","headers"].forEach(be=>{se[be]=ee[be]});const he=Ae.toFiniteNumber(X.getContentLength()),[ie,oe]=u&&pC(he,ju(gC(u),!0))||[];let de=0;const me=be=>{if(E&&(de=be,de>f))throw new Fe("maxContentLength size of "+f+" exceeded",Fe.ERR_BAD_RESPONSE,C,j);ie&&ie(be)};ee=new o(bC(ee.body,vC,me,()=>{oe&&oe(),z&&z()}),se)}m=m||"text";let ne=await $[Ae.findKey($,m)||"text"](ee,C);if(E&&!O&&!q){let se;if(ne!=null&&(typeof ne.byteLength=="number"?se=ne.byteLength:typeof ne.size=="number"?se=ne.size:typeof ne=="string"&&(se=typeof r=="function"?new r().encode(ne).byteLength:ne.length)),typeof se=="number"&&se>f)throw new Fe("maxContentLength size of "+f+" exceeded",Fe.ERR_BAD_RESPONSE,C,j)}return!q&&z&&z(),await new Promise((se,he)=>{jE(se,he,{data:ne,headers:Sn.from(ee.headers),status:ee.status,statusText:ee.statusText,config:C,request:j})})}catch(H){if(z&&z(),B&&B.aborted&&B.reason instanceof Fe){const A=B.reason;throw A.config=C,j&&(A.request=j),H!==A&&Object.defineProperty(A,"cause",{__proto__:null,value:H,writable:!0,enumerable:!1,configurable:!0}),A}if(D)throw j&&!D.request&&(D.request=j),D;if(H instanceof Fe)throw j&&!H.request&&(H.request=j),H;if(H&&H.name==="TypeError"&&/Load failed|fetch/i.test(H.message)){const A=new Fe("Network Error",Fe.ERR_NETWORK,C,j,H&&H.response);throw Object.defineProperty(A,"cause",{__proto__:null,value:H.cause||H,writable:!0,enumerable:!1,configurable:!0}),A}throw Fe.from(H,H&&H.code,C,j,H&&H.response)}}},MZ=new Map,KE=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:i}=t,s=[r,i,n];let o=s.length,a=o,c,l,d=MZ;for(;a--;)c=s[a],l=d.get(c),l===void 0&&d.set(c,l=a?new Map:$Z(t)),d=l;return l};KE();const Bm={http:Yz,xhr:EZ,fetch:{get:KE}};Ae.forEach(Bm,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const AC=e=>`- ${e}`,DZ=e=>Ae.isFunction(e)||e===null||e===!1;function BZ(e,t){e=Ae.isArray(e)?e:[e];const{length:n}=e;let r,i;const s={};for(let o=0;o<n;o++){r=e[o];let a;if(i=r,!DZ(r)&&(i=Bm[(a=String(r)).toLowerCase()],i===void 0))throw new Fe(`Unknown adapter '${a}'`);if(i&&(Ae.isFunction(i)||(i=i.get(t))))break;s[a||"#"+o]=i}if(!i){const o=Object.entries(s).map(([c,l])=>`adapter ${c} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=n?o.length>1?`since : 1430`+o.map(AC).join(` 1431`):" "+AC(o[0]):"as no adapter specified";throw new Fe("There is no suitable adapter to dispatch the request "+a,Fe.ERR_NOT_SUPPORT)}return i}const YE={getAdapter:BZ,adapters:Bm};function Qh(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ic(null,e)}function wC(e){return Qh(e),e.headers=Sn.from(e.headers),e.data=qh.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),YE.getAdapter(e.adapter||rc.adapter,e)(e).then(function(r){Qh(e),e.response=r;try{r.data=qh.call(e,e.transformResponse,r)}finally{delete e.response}return r.headers=Sn.from(r.headers),r},function(r){if(!UE(r)&&(Qh(e),r&&r.response)){e.response=r.response;try{r.response.data=qh.call(e,e.transformResponse,r.response)}finally{delete e.response}r.response.headers=Sn.from(r.response.headers)}return Promise.reject(r)})}const Kd={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Kd[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const _C={};Kd.transitional=function(t,n,r){function i(s,o){return"[Axios v"+Dm+"] Transitional option '"+s+"'"+o+(r?". "+r:"")}return(s,o,a)=>{if(t===!1)throw new Fe(i(o," has been removed"+(n?" in "+n:"")),Fe.ERR_DEPRECATED);return n&&!_C[o]&&(_C[o]=!0),t?t(s,o,a):!0}};Kd.spelling=function(t){return(n,r)=>!0};function FZ(e,t,n){if(typeof e!="object"||e===null)throw new Fe("options must be an object",Fe.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const s=r[i],o=Object.prototype.hasOwnProperty.call(t,s)?t[s]:void 0;if(o){const a=e[s],c=a===void 0||o(a,s,e);if(c!==!0)throw new Fe("option "+s+" must be "+c,Fe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Fe("Unknown option "+s,Fe.ERR_BAD_OPTION)}}const iu={assertOptions:FZ,validators:Kd},mn=iu.validators;let To=class{constructor(t){this.defaults=t||{},this.interceptors={request:new hC,response:new hC}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const s=(()=>{if(!i.stack)return"";const o=i.stack.indexOf(` 1432`);return o===-1?"":i.stack.slice(o+1)})();try{if(!r.stack)r.stack=s;else if(s){const o=s.indexOf(` 1433`),a=o===-1?-1:s.indexOf(` 1434`,o+1),c=a===-1?"":s.slice(a+1);String(r.stack).endsWith(c)||(r.stack+=` 1435`+s)}}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Fo(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:s}=n;r!==void 0&&iu.assertOptions(r,{silentJSONParsing:mn.transitional(mn.boolean),forcedJSONParsing:mn.transitional(mn.boolean),clarifyTimeoutError:mn.transitional(mn.boolean),legacyInterceptorReqResOrdering:mn.transitional(mn.boolean),advertiseZstdAcceptEncoding:mn.transitional(mn.boolean),validateStatusUndefinedResolves:mn.transitional(mn.boolean)},!1),i!=null&&(Ae.isFunction(i)?n.paramsSerializer={serialize:i}:iu.assertOptions(i,{encode:mn.function,serialize:mn.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),iu.assertOptions(n,{baseUrl:mn.spelling("baseURL"),withXsrfToken:mn.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=s&&Ae.merge(s.common,s[n.method]);s&&Ae.forEach(["delete","get","head","post","put","patch","query","common"],$=>{delete s[$]}),n.headers=Sn.concat(o,s);const a=[];let c=!0;this.interceptors.request.forEach(function(P){if(typeof P.runWhen=="function"&&P.runWhen(n)===!1)return;c=c&&P.synchronous;const T=n.transitional||$m;T&&T.legacyInterceptorReqResOrdering?a.unshift(P.fulfilled,P.rejected):a.push(P.fulfilled,P.rejected)});const l=[];this.interceptors.response.forEach(function(P){l.push(P.fulfilled,P.rejected)});let d,v=0,R;if(!c){const $=[wC.bind(this),void 0];for($.unshift(...a),$.push(...l),R=$.length,d=Promise.resolve(n);v<R;)d=d.then($[v++],$[v++]);return d}R=a.length;let O=n;for(;v<R;){const $=a[v++],P=a[v++];try{O=$(O)}catch(T){P.call(this,T);break}}try{d=wC.call(this,O)}catch($){return Promise.reject($)}for(v=0,R=l.length;v<R;)d=d.then(l[v++],l[v++]);return d}getUri(t){t=Fo(this.defaults,t);const n=zE(t.baseURL,t.url,t.allowAbsoluteUrls,t);return WE(n,t.params,t.paramsSerializer)}};Ae.forEach(["delete","get","head","options"],function(t){To.prototype[t]=function(n,r){return this.request(Fo(r||{},{method:t,url:n,data:r&&Ae.hasOwnProp(r,"data")?r.data:void 0}))}});Ae.forEach(["post","put","patch","query"],function(t){function n(r){return function(s,o,a){return this.request(Fo(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:o}))}}To.prototype[t]=n(),t!=="query"&&(To.prototype[t+"Form"]=n(!0))});let HZ=class XE{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(i=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](i);r._listeners=null}),this.promise.then=i=>{let s;const o=new Promise(a=>{r.subscribe(a),s=a}).then(i);return o.cancel=function(){r.unsubscribe(s)},o},t(function(s,o,a){r.reason||(r.reason=new ic(s,o,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new XE(function(i){t=i}),cancel:t}}};function WZ(e){return function(n){return e.apply(null,n)}}function VZ(e){return Ae.isObject(e)&&e.isAxiosError===!0}const Yp={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
1435alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Yp).forEach(([e,t])=>{Yp[t]=e});function JE(e){const t=new To(e),n=xE(To.prototype.request,t);return Ae.extend(n,To.prototype,t,{allOwnKeys:!0}),Ae.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return JE(Fo(e,i))},n}const Wt=JE(rc);Wt.Axios=To;Wt.CanceledError=ic;Wt.CancelToken=HZ;Wt.isCancel=UE;Wt.VERSION=Dm;Wt.toFormData=Zd;Wt.AxiosError=Fe;Wt.Cancel=Wt.CanceledError;Wt.all=function(t){return Promise.all(t)};Wt.spread=WZ;Wt.isAxiosError=VZ;Wt.mergeConfig=Fo;Wt.AxiosHeaders=Sn;Wt.formToJSON=e=>GE(Ae.isHTMLForm(e)?new FormData(e):e);Wt.getAdapter=YE.getAdapter;Wt.HttpStatusCode=Yp;Wt.default=Wt;const{Axios:Qse,AxiosError:eae,CanceledError:tae,isCancel:nae,CancelToken:rae,VERSION:iae,all:oae,Cancel:sae,isAxiosError:aae,spread:lae,toFormData:cae,AxiosHeaders:uae,HttpStatusCode:dae,formToJSON:hae,getAdapter:fae,mergeConfig:pae,create:gae}=Wt;class GZ{constructor(){this.searchEndpoint="/search",this.suggestEndpoint="/suggest",this.topQueriesEndpoint="/top_queries.json",this.options={page:1,per_page:20,fetch_fields:void 0,highlight_fields:void 0,search_fields:void 0,functional_boosts:void 0,document_types:void 0,filters:{},precise_expiration:void 0,sort_field:void 0,sort_direction:void 0,facets:void 0,spelling:void 0,q:void 0,apply_transform:!0}}configure({proxy:t,axiosConfig:n,consumerSecret:r,analyticsHost:i}){this.host=t,this.http=Wt.create({...n||{},baseURL:this.host});const s=this.http.defaults.headers;r?s["X-Consumer-Key"]=r:delete s["X-Consumer-Key"],i?this.analyticsHttp=Wt.create({...n||{},baseURL:i}):this.analyticsHttp=null}query({config:t,method:n="POST",url:r=this.searchEndpoint}){this.options.filters={};let i={...this.options,...t};return this.http({method:n,url:r,data:i,headers:{"Content-Type":"application/json;charset=UTF-8"},transformRequest:this._transformRequest}).then(this.processResults).catch(s=>s)}suggest(t){return this.query({config:t,url:this.suggestEndpoint})}topQueries(t){return this.analyticsQuery({params:t,url:this.topQueriesEndpoint})}analyticsQuery({params:t,method:n="GET",url:r=this.topQueriesEndpoint}){return this.analyticsHttp({method:n,url:r,params:t,headers:{"Content-Type":"application/json;charset=UTF-8"},transformRequest:this._transformRequest}).then(this.processResults).catch(i=>i)}search(t){return this.query({config:t})}processResults({data:t}){let n=t;return n.body&&(n=n.body),!n||!n.records||Object.keys(n.records).forEac
1435h(r=>{n.records[r]=n.records[r].map(i=>{i.swiftype_id=i.id,i.id=i.external_id;let s;switch(r){case"book":i.preview_images=i.preview_indexes,typeof i.program_schedule=="string"&&(i.program_schedule=JSON.parse(i.program_schedule)),s=new Re.models.comicBook(i),s.type="Book";break;case"comicseries":s=new Re.models.comicSeries(i),s.type="ComicSeries",s.numBooks={issue:i.issue_count};break;case"collection":i.id.charAt(0)!=="c"&&(i.id=`c${i.id}`),s=new Re.models.collection(i),s.type="Collection",s.metadata={...s.metadata,description:{long:i.description}};break;case"clip":s=new Re.models.clip(i),s.type="Clip";break;case"shopitem":s=new Re.models.shopifyProduct(i),s.type="ShopItem";break}return s})}),n}_transformRequest(t){return JSON.stringify(t)}}const Xp=new GZ;class UZ{constructor(){}generateSearchParams({query:t,page:n,documentTypes:r,filters:i,sortOptions:s,extraOptions:o}){let a={document_types:r,per_page:20,page:n,filters:i};return t&&(a.q=t),a.sort_field={},a.sort_direction={},r.forEach(c=>{s.length?s.forEach(l=>{c===l.documentType&&(a.sort_field[c]=l.field,a.sort_direction[c]=l.direction)}):(a.sort_field[c]="_score",a.sort_direction[c]="desc")}),a={...a,...o},a}removeDuplicateResults(t,n){let r;switch(t){case"comicseries":case"book":case"clip":case"shopitem":r="uuid";break;case"collection":r="slug"}return n=g4(n,r),n}normalizeRecords(t){return t.map(r=>{const i={};return i._normalized={id:r.id,uuid:r.uuid,path:r.path,type:r.type,slug:r.slug},i})}determineResultCounts(t){return t.info.comicseries&&(t.counts.comics.series=t.info.comicseries.total_result_count||0),t.info.book&&(t.counts.comics.book=t.info.book.total_result_count||0),t.counts.comics.total=t.counts.comics.series+t.counts.comics.book,t.info.collection&&(t.counts.collection.total=t.info.collection.total_result_count||0),t.info.clip&&(t.counts.clip.total=t.info.clip.total_result_count||0),t.info.shopitem&&(t.counts.shopitem.total=t.info.shopitem.total_result_count||0),t.counts.total=t.counts.comics.total+t.counts.collection.total+t.counts.clip.total+t.counts.shopitem.total,t}}const Fc=new UZ;function jZ(){return{searchResults:{},recentSearches:[],topQueries:[]}}const zZ={search(e,{query:t="",page:n=1,documentTypes:r=["comicseries","book","collection","clip","shopitem"],filters:i={},sortOptions:s=[],...o}={}){return new Promise(function(a,c){e.dispatch("errors/clearError","search",{root:!0});const l={query:t,page:n,documentTypes:r,filters:i,sortOptions:s,extraOptions:o},d=Fc.generateSearchParams(l),v=btoa(JSON.stringify(d));return e.state.searchResults[v]?a({searchKey:v}):Xp.search(d).then(R=>{R.record_count&&e.commit("updateRecentSearches",t);let O={records:{},info:{},record_count:0,counts:{comics:{series:0,book:0,total:0},collection:{total:0},clip:{total:0},shopitem:{total:0},total:0}};return O.info={...O.info,...R.info}
1435,R.records&&Object.keys(R.records).forEach($=>{O.records[$]=[],O.records[$]=[...R.records[$]],O.records[$]=Fc.removeDuplicateResults($,O.records[$]),O.records[$].forEach(T=>{e.dispatch("normalizedProxy/update",{item:{...T},type:T.type},{root:!0})}),O.records[$]=Fc.normalizeRecords(O.records[$])}),O=Fc.determineResultCounts(O),e.commit("setSearchResult",{searchKey:v,results:O}),a({searchKey:v})}).catch(R=>{e.commit("errors/setError",{error:R,type:"search"},{root:!0}),c(R)})})},topQueries(e,{limit:t,...n}={}){return Xp.topQueries(n).then(r=>{const i=(r||[]).map(([o])=>o),s=t?i.slice(0,t):i;return e.commit("setTopQueries",s),s})}},ZZ={setSearchResult(e,{searchKey:t,results:n}){e.searchResults[t]=n},setTopQueries(e,t){e.topQueries=t},updateRecentSearches(e,t){const n=e.recentSearches.indexOf(t);n>-1&&e.recentSearches.splice(n,1),e.recentSearches.unshift(t),e.recentSearches=e.recentSearches.slice(0,5)}},KZ={searchResult:(e,t,n,r)=>({searchKey:i})=>{if(!e.searchResults[i])return;const s=EE(e.searchResults[i]);return Object.keys(s.records).forEac
1435h(o=>{s.records[o]=t.getItems(s.records[o],r)}),s},getItems:()=>(e,t)=>{if(e)return e.map(n=>{let r={...n};return r._normalized&&(r.item=t["normalizedProxy/get"](n._normalized)),r})},recentSearches:e=>e.recentSearches,topQueries:e=>e.topQueries},YZ={state:jZ,actions:zZ,mutations:ZZ,getters:KZ,namespaced:!0};function XZ(){return{shopitems:{}}}const JZ={},qZ={update(e,t){e.shopitems[t.uuid]=t}},QZ={byUUID:e=>t=>{const n=Object.entries(e.shopitems).find(([r,i])=>t===i.uuid);return n&&n[1]||void 0}},eK={state:XZ,actions:JZ,mutations:qZ,getters:QZ,namespaced:!0};function tK(){return{subscriptions:null}}const nK={setSubscriptions(e,t){e.subscriptions=t}},rK={cancel(e,{subscriptionGuid:t}){return e.dispatch("errors/clearError","subscriptions-cancel",{root:!0}),Re.services.subscriptions.cancel({subscriptionGuid:t}).then(()=>e.dispatch("list")).catch(n=>{throw e.commit("errors/setError",{error:n,type:"subscriptions-cancel"},{root:!0}),n})},list(e){return e.dispatch("errors/clearError","subscriptions-list",{root:!0}),Re.services.subscriptions.list().then(t=>e.commit("setSubscriptions",t.subscriptions)).catch(t=>{throw e.commit("errors/setError",{error:t,type:"subscriptions-list"},{root:!0}),t})},async create({dispatch:e,commit:t,rootState:n},r){e("errors/clearError","subscriptions-create",{root:!0});let i;n.applicationConfig.captchaPlatform==="arkose"&&r.recaptchaToken&&(r.arkoseSession=r.recaptchaToken,delete r.recaptchaToken);try{i=await Re.services.subscriptions.create(r)}catch(s){throw t("errors/setError",{error:s,type:"subscriptions-create"},{root:!0}),s}return await e("list"),i},async changeProduct({dispatch:e,commit:t},n){e("errors/clearError","subscriptions-change-product",{root:!0});let r;try{r=await Re.services.subscriptions.changeProduct(n)}catch(i){throw t("errors/setError",{error:i,type:"subscriptions-change-product"},{root:!0}),i}return await e("list"),r},async resubscribe({dispatch:e,commit:t},n){e("errors/clearError","subscriptions-resubscribe",{root:!0});let r;try{r=await Re.services.subscriptions.resubscribe(n)}catch(i){throw t("errors/setError",{error:i,type:"subscriptions-resubscribe"},{root:!0}),i}return await e("list"),r},async applyPromo({dispatch:e,commit:t},n){e("errors/clearError","subscriptions-apply-promo",{root:!0});let r;try{r=await Re.services.subscriptions.applyPromo(n)}catch(i){throw t("errors/setError",{error:i,type:"subscriptions-apply-promo"},{root:!0}),i}return await e("list"),r}},iK={currentSubscription(e){if(!e.subscriptions||!e.subscriptions.length)return null;if(e.subscriptions.length===1)return e.subscriptions[0];const t=e.subscriptions.filter(n=>n.state.active);return t.length?t[0]:e.subscriptions[0]},isMonthlyUser(e,t){return!!(t.currentSubscription&&t.currentSubscription.product&&t.currentSubscription.product.spec&&t.currentSubscription.product.spec.billingPeriod==="P1M")},isAnnualUser(e,t){return!!(t.currentSubscription&&t.currentSubscription.product&&t.currentSubscription.product.spec&&t.currentSubscription.product.spec.billingPeriod==="P1Y")},isCompedUser(e,t){return!!(t.currentSubscription&&t.currentSubscription.state&&t.currentSubscription.state.state==="Comped"||t.currentSubscription&&t.currentSubscription.product&&t.currentSubscription.product.merchantproduct&&t.currentSubscription.product.merchantproduct.merchantType==="House")},isFreeTrialUser(e,t){return!t.currentSubscription||!t.currentSubscription.state||!t.currentSubscription.state.state?!1:t.currentSubscription.state.state.includes("Free Trial")},isCanceledUser(e,t){return!t.currentSubscription||!t.currentSubscription.state||!t.currentSubscription.state.state?!1:t.currentSubscription.state.state.includes("Canceled")}},oK={state:tK,actions:rK,mutations:nK,getters:iK,namespaced:!0};function sK(){return{history:{items:[],lastKey:""},browserId:"",persistentUserId:""}}const aK={clearHistory({commit:e}){e("setItems")},setBrowserId({commit:e},t){e("setBrowserId",t)},setPersistentUserId({commit:e},t){e("setPersistentUserId",t)},getItems({dispatch:e,commit:t},n){return e("clearHistory"),Re.services.user.history.comic(n).then(r=>t("setItems",{items:r.history,lastKey:r.lastKey})).catch(r=>{t("errors/setError",{error:r,type:"userComicHistory"},{root:!0})})},getMoreItems({state:e,commit:t}){const n=e.history.lastKey;if(n)return Re.services.user.history.comic({startFrom:n}).then(r=>{t("setItems",{items:[...e.history.items,...r.history],lastKey:r.lastKey})}).catch(r=>{t("errors/setError",{error:r,type:"userComicHistory"},{root:!0})})},markItemAs({dispatch:e,state:t,commit:n},r={}){e("errors/clearError","userComicHistory",{root:!0});const i=new Date().toISOString(),s=t.persistentUserId,o=t.browserId,a={event:r.command,timestamp:i,contentId:r.uuid,seriesId:r.seriesUuid,seriesUUID:r.seriesUuid,persistentUserId:s,browserId:o,sessionId:r.sessionId,containerType:"comicseries",containerUUID:r.seriesUuid};return Re.services.bookmarks.logComicEvent(a).then(()=>e("getItems")).catch(c=>{throw n("errors/setError",{error:c,type:"userComicHistory"},{root:!0}),c})}},lK={setItems(e,t){e.history=t},setBrowserId(e,t){e.browserId=t},setPersistentUserId(e,t){e.persistentUserId=t}},cK={history:e=>e.history},uK={state:sK,actions:aK,mutations:lK,getters:cK,namespaced:!0};function dK(){return{history:{items:{},lastKey:""}}}const hK={clearHistory({commit:e}){e("setItems")},getItems({dispatch:e,commit:t},n){return e("clearHistory"),Re.services.user.history.comicReduced(n).then(r=>t("setItems",{items:r.history,lastKey:r.lastKey})).catch(r=>{t("errors/setError",{error:r,type:"userComicHistoryReduced"},{root:!0})})},getMoreItems({state:e,commit:t},n){const r=e.history.lastKey||n.startFrom;if(r)return Re.services.user.history.comicReduced({startFrom:r,...n}).then(i=>{t("setItems",{items:{...e.history.items,...i.history},lastKey:i.lastKey})}).catch(i=>{t("errors/setError",{error:i,type:"userComicHistoryReduced"},{root:!0})})},fetchHistoryForBook({commit:e},{contentUuid:t}){if(t)return Re.services.user.history.comicReduced({contentUuid:t}).then(n=>{e("setBookHistory",{contentUuid:t,historyItem:n.history[t]})}).catch(n=>{e("errors/setError",{error:n,type:"userComicHistoryReduced"},{root:!0})})}},fK={setItems(e,t){e.history=t||{items:{},lastKey:""}},setBookHistory(e,{contentUuid:t,historyItem:n}){n?e.history.items[t]=n:delete e.history.items[t]}},pK={historyByUuid:e=>t=>e.history.items?.[t]},gK={state:dK,actions:hK,mutations:fK,getters:pK,namespaced:!0},lt={account:s9,agreements:d9,applicationConfig:m9,browseComics:k9,books:P9,catalog:F9,clickoutObjects:G9,clip:K9,collections:Q9,comicHistory:i4,comicSeries:c4,errors:p4,jsonbag:C4,lists:S4,normalizedProxy:T4,paymentMethods:N4,promocode:B4,purchases:U4,search:YZ,shopItem:eK,subscriptions:oK,userComicHistory:uK,userComicHistoryReduced:gK},mK=()=>({isAdult:!1,isAgeGateCompleted:!1}),yK={setAgeGateCompleted(e){e.isAgeGateCompleted=!0},setAdult(e,t){e.isAdult=t}},bK={recordAgeGateResult({dispatch:e,commit:t},n){t("setAgeGateCompleted"),t("setAdult",n.isAdult)}},vK={isAgeGateCompleted:e=>e.isAgeGateCompleted,isAdult:e=>e.isAdult},CK={namespaced:!0,state:mK,actions:bK,mutations:yK,getters:vK};function IK(){return{currentFlavor:null,homepage:null,cancelHomepageCall:null,homepages:{}}}const AK={},wK={setHomepage(e,{homepage:t,flavor:n,cancel:r,asActive:i=!0}){i&&(e.homepage=t,e.currentFlavor=n,e.cancelHomepageCall=r),n&&t&&(e.homepages[n]=t)}},_K={async getHomepage({commit:e,dispatch:t,state:n},{flavor:r,withitems:i,asActive:s=!0}){e("errors/setError",{error:null,type:"homepage"},{root:!0}),n.currentFlavor!==r&&e("setHomepage",{homepage:null,flavor:null,asActive:s});let o;try{o=await Re.services.homepage.get({flavor:r,withitems:i})}catch(d){e("errors/setError",{error:d,type:"homepage"},{root:!0});return}if(n.cancelHomepageCall&&s){e("setHomepage",{homepage:null,flavor:null,cancel:!1,asActive:s});return}e("setHomepage",{homepage:o,flavor:r,asActive:s});
1435async function a(d){if(d.type!=="Collection")return;const v=d.item,R=v.slug,O=v?.collectionItems?.collectionItems;if(!O)return;const $=await t("collections/mapNormalizedItems",O,{root:!0});e("collections/updateCollectionItems",{slug:R,collectionItems:$,page:1},{root:!0})}const c=o.collectionItems.collectionItems;let l=0;for(l;l<c.length;l++){const d=c[l];await a(d)}},cancelGetHomepage({commit:e}){e("setHomepage",{homepage:null,flavor:null,cancel:!0,asActive:!0})}},SK={state:IK,getters:AK,mutations:wK,actions:_K,namespaced:!0};lt.subscriptions.getters.changePlanTargets=function(e,t){if(!t.currentSubscription)return!1;const n=t.currentSubscription.product.id,r=t.currentSubscription.product.merchantPlanId,i=t.allProducts.filter(s=>s.id!==n&&s.merchantPlanId!==r);return i.length?i:!1};lt.subscriptions.getters.allProducts=function(e,t,n){return Object.keys(n.catalog.catalogs).map(r=>!n.catalog.catalogs[r]||!Array.isArray(n.catalog.catalogs[r].plans)?[]:n.catalog.catalogs[r].plans.map(i=>i.products)).flat(2)};const SC={ageGate:CK,homepage:SK};lt.books.actions.get=async function({commit:e},{uuid:t}){const n=await Re.services.comics.getBook({uuid:t});return e("update",n),n};const EK=lt.books;function xK(){return{unreadMessageCount:0}}const TK={setMessageCount(e,t){e.unreadMessageCount=t}},kK={setMessageCount({commit:e},t){e("setMessageCount",t)}},RK={namespaced:!0,state:xK,mutations:TK,actions:kK};lt.browseComics.mutations.setFilterExpanded=function(e,{filter:t,isExpanded:n}){(e.category&&e.category.filterSet&&e.category.filtersEnabled?e.config.filterSets[e.category.filterSet].filterSections:e.config.filterSections).forEach(i=>{i===t&&(i.isExpand=n)})};lt.browseComics.actions.getLatestVersion=function({dispatch:e}){return e("get","browsecomics_v3")};lt.browseComics.actions.setFilterExpanded=function({commit:e},t){e("setFilterExpanded",t)};const LK=lt.browseComics,OK=()=>({pendingRequests:[],currentPendingRequest:null,eventList:null,activeCheckin:null,activeEvent:null,activeEventItems:null,status:null,activeUserGuid:null,activeUser:null}),NK={addPendingRequest(e,t){e.pendingRequests.push(t)},setEventsList(e,t){t&&t.events&&t.events.length&&(e.eventList=t.events,e.activeEvent=t.events[0])},setActiveEvent(e,t){e.activeEvent=t},setActiveCheckin(e,t){e.activeCheckin=t},setActiveUserGuid(e,t){e.activeUserGuid=t},setStatus(e,t){e.status=t},setActiveUser(e,t){e.activeUser=t},setActiveEventItems(e,t){e.activeEventItems=t},getFirstPendingRequest(e){e.currentPendingRequest=e.pendingRequests.shift()},setCurrentPendingRequest(e,t){e.currentPendingRequest=t},updateLocalEventItem(e,{eventItemId:t,newEventItemStatus:n}){const r=e.activeCheckin.eventItems.find(i=>i.eventItem.id===t);r.status=n}},PK={getCheckinEventItemFromEventItemId(e){return t=>e.activeCheckin.eventItems.find(n=>n.eventItem.id===t)}},$K={fireNextPendingRequest({dispatch:e,commit:t,state:n}){t("getFirstPendingRequest");const r=n.currentPendingRequest;return e(r.type,r.args).then(()=>{e("clearCurrentPending")})},clearCurrentPending({commit:e}){e("setCurrentPendingRequest",null)},async listEvents({dispatch:e,commit:t,rootState:n,state:r}){return e("errors/clearError","eventlist",{root:!0}),t("setEventsList",null),e("network-state/transmitting","eventlist",{root:!0}),await Re.services.checkin.list().then(i=>{t("setEventsList",i),e("network-state/done","eventlist",{root:!0}),e("changeActiveEvent",r.activeEvent)}).catch(i=>{e("network-state/done","eventlist",{root:!0}),t("errors/setError",{error:i,type:"eventlist"},{root:!0})})},changeActiveEvent({commit:e,dispatch:t},n){return e("setActiveEvent",n),t("listEventItems",n)},async listEventItems({commit:e,dispatch:t},n){return t("errors/clearError","geteventitemslist",{root:!0}),t("network-state/transmitting","geteventitemslist",{root:!0}),e("setActiveEventItems",null),Re.services.checkin.listEventItems({eventUuid:n.id}).then(r=>{t("network-state/done","geteventitemslist",{root:!0}),e("setActiveEventItems",r.eventItems)}).catch(r=>{t("network-state/done","geteventitemslist",{root:!0}),e("errors/setError",{error:r,type:"geteventitemslist"},{root:!0})})},setActiveUserGuid({commit:e,rootState:t},n){return t["network-state"].onlineStatus||e("addPendingRequest",{type:"setActiveUserGuid",args:n}),e("setActiveUserGuid",n),Promise.resolve()},setActiveUser({commit:e},t){e("setActiveUser",t)},setActiveCheckin({commit:e},t){e("setActiveCheckin",t)},resetActive({dispatch:e}){e("setActiveUserGuid",null),e("setActiveUser",null),e("setActiveCheckin",null),e("setStatus",null)},checkin({dispatch:e,commit:t,rootState:n,state:r},{guid:i,eventUuid:s}){if(!n["network-state"].onlineStatus){t("addPendingRequest",{type:"checkin",args:{guid:i,eventUuid:s}}),r.activeCheckin||e("setActiveCheckin",{eventItems:[...JSON.parse(JSON.stringify(r.activeEventItems))]}),t("setStatus","offline-checked-in");return}return e("errors/clearError","checkin",{root:!0}),e("network-state/transmitting","checkin",{root:!0}),Re.services.checkin.getEventItems({guid:i,eventUuid:s}).then(o=>{t("setStatus","checked-in"),e("setActiveCheckin",o),e("network-state/done","checkin",{root:!0})}).catch(o=>{e("network-state/done","checkin",{root:!0}),t("setStatus","error"),t("errors/setError",{error:o,type:"checkin"},{root:!0})})},setStatus({commit:e},t){e("setStatus",t)},updateEventItem({dispatch:e,commit:t,rootState:n,getters:r,state:i},{eventItemId:s,newEventItemStatus:o,guid:a,eventUuid:c}){if(!n["network-state"].onlineStatus){t("addPendingRequest",{type:"updateEventItem",args:{eventItemId:s,newEventItemStatus:o,guid:a,eventUuid:c}}),t("updateLocalEventItem",{eventItemId:s,newEventItemStatus:o});return}return e("checkin",{guid:a,eventUuid:c}).then(()=>{const l=r.getCheckinEventItemFromEventItemId(s);return e("errors/clearError","updateeventitem",{root:!0}),e("network-state/transmitting","updateeventitem",{root:!0}),Re.services.checkin.updateItem({eventItemId:s,guid:a,eventUuid:c,id:l.id,status:o}).then(d=>{e("network-state/done","updateeventitem",{root:!0})}).catch(d=>{e("network-state/done","updateeventitem",{root:!0}),t("errors/setError",{error:d,type:"updateeventitem"},{root:!0})})})},getUser({dispatch:e,commit:t,rootState:n},r){if(e("setActiveUser",null),!n["network-state"].onlineStatus){t("addPendingRequest",{type:"getUser",args:r});return}return e("errors/clearError","getuser",{root:!0}),e("network-state/transmitting","getuser",{root:!0}),Re.services.checkin.getUserDetails(r).then(i=>{e("setActiveUser",i),e("network-state/done","getuser",{root:!0})}).catch(i=>{e("network-state/done","getuser",{root:!0}),t("setStatus","error"),t("errors/setError",{error:i,type:"getuser"},{root:!0})})}},MK={namespaced:!0,state:OK,mutations:NK,getters:PK,actions:$K};function DK(){return{consumeNext:{},diveBackIn:{items:[],hasMore:!1,requestId:Mu(),page:0}}}const BK={resetPaginationState({commit:e}){e("setDiveBackInItems",[]),e("setDiveBackInPagination",{hasMore:!1,requestId:Mu(),page:0})},async fetchDiveBackInItems({commit:e,dispatch:t,state:n},{includeBooks:r=!0,limit:i=25,includeCollections:s=!0}){t("errors/clearError","consumeNextFetchDiveBackInError",{root:!0});const o={includeBooks:r,includeCollections:s,limit:i};e("incrementPage"),o.requestId=n.diveBackIn.requestId,o.page=n.diveBackIn.page;let a;try{a=await Re.services.nextObjects.consumeNext(o)}catch(v){throw v?.[0]?.code==="1721"&&e("setDiveBackInPagination",{hasMore:!1}),e("errors/setError",{error:v,type:"consumeNextFetchDiveBackInError"},{root:!0}),v}const l=a.items.map(v=>{const R=v;return R.type="BookHistory",R.nextObject.type="BookHistory",R.book=v.nextObject.item,R});let d=a.hasMore;l.length<i&&(d=!1),e("appendDiveBackInItems",l),e("setDiveBackInPagination",{hasMore:d,requestId:a.requestId})},getBulk({commit:e,dispatch:t,state:n},{containers:r=[]}){return t("errors/clearError","consumeNextGetBulkError",{root:!0}),Re.services.nextObjects.getBulk({containers:r}).then(i=>
1435{i&&i.items&&i.items.forEach(s=>{const o={uuid:s.contentId.split(":")[1],nextObjectMissing:!1,nextObject:s,nextObjectHistory:{pageIndex:s.pageIndex,isComplete:s.status==="COMPLETE",isStarted:s.status!=="NOT_STARTED",pages:s.nextObject.item.pages,timestamp:s.timestamp}};t("update",o)}),r.forEach(s=>{if(!n.consumeNext[s.uuid]){const o={uuid:s.uuid,nextObjectMissing:!0,nextObject:null,nextObjectHistory:null};t("update",o)}})}).catch(i=>{throw e("errors/setError",{error:i,type:"consumeNextGetBulkError"},{root:!0}),i})},update(e,t){e.commit("update",t)},async ignore({commit:e,dispatch:t,state:n},{containerUuid:r=null,containerType:i=null}){t("errors/clearError","consumeNextIgnoreError",{root:!0});let s;try{s=await Re.services.nextObjects.ignore({containerUuid:r,containerType:i})}catch(o){throw e("errors/setError",{error:o,type:"consumeNextIgnoreError"},{root:!0}),o}return s}},FK={update(e,t){e.consumeNext[t.uuid]=t},setDiveBackInItems(e,t){e.diveBackIn.items=t},appendDiveBackInItems(e,t){e.diveBackIn.items=e.diveBackIn.items.concat(t)},setDiveBackInPagination(e,{hasMore:t,requestId:n,page:r}){e.diveBackIn.hasMore=t,n&&(e.diveBackIn.requestId=n),isNaN(r)||(e.diveBackIn.page=r)},incrementPage(e){e.diveBackIn.page=e.diveBackIn.page+1}},HK={byUUID:e=>t=>{const n=Object.entries(e.consumeNext).find(([r,i])=>t===i.uuid);return n&&n[1]||void 0}},WK={state:DK,actions:BK,mutations:FK,getters:HK,namespaced:!0},VK={link({dispatch:e,commit:t},n){return e("errors/clearError","link",{root:!0}),Re.services.device.link(n).then(r=>r).catch(r=>{throw t("errors/setError",{error:r,type:"link"},{root:!0}),r})}},GK={namespaced:!0,actions:VK},UK=()=>({emailStatus:null,emailVerify:null,emailResendVerification:null}),jK={setUserEmailStatus(e,t){e.emailStatus=t},setUserEmailVerify(e,t){e.emailVerify=t},setUserEmailResendVerification(e,t){e.emailResendVerification=t}},zK={async getUserEmailStatus({dispatch:e,commit:t,rootState:n}){t("setUserEmailStatus",null),t("errors/setError",{error:null,type:"email-status"},{root:!0});try{const r=await Re.services.user.email.status();t("setUserEmailStatus",r)}catch(r){t("errors/setError",{error:r,type:"email-status"},{root:!0})}},async verifyEmail({dispatch:e,commit:t,rootState:n},r){t("setUserEmailVerify",null),t("errors/setError",{error:null,type:"email-verify"},{root:!0});try{const i=await Re.services.user.email.verify(r);t("setUserEmailVerify",i),await e("getUserEmailStatus")}catch(i){t("errors/setError",{error:i,type:"email-verify"},{root:!0})}},async resendVerificationEmail({dispatch:e,commit:t,rootState:n}){t("setUserEmailResendVerification",null),t("errors/setError",{error:null,type:"email-resend-verification"},{root:!0});try{const r=await Re.services.user.email.resendVerification();t("setUserEmailResendVerification",r)}catch(r){r[0]?.raw?.secondsUntilRetry&&t("setUserEmailResendVerification",{secondsUntilRetry:r[0].raw.secondsUntilRetry}),t("errors/setError",{error:r,type:"email-resend-verification"},{root:!0})}}},ZK={namespaced:!0,state:UK,mutations:jK,actions:zK};lt.errors.mutations.setError=(e,{type:t,error:n})=>{let r=n;Array.isArray(r)&&(r=r.map(i=>({code:i?.code||null,message:i?.message||null,raw:{status:i?.raw?i?.raw?.status:null,statusText:i?.raw?i?.raw?.statusText:null}}))),delete e.errors[t],e.errors[t]=r};const KK=lt.errors,YK=()=>({multistateModals:{}}),XK={open(e,t){e[t]=!0},close(e,t){delete e[t]},setActiveMultistateModal(e,{key:t,modalName:n}){e.multistateModals[t]=n}},JK={setActiveMultistateModal({commit:e},t){e("setActiveMultistateModal",t)}},qK={namespaced:!0,state:YK,actions:JK,mutations:XK},QK=()=>({timeoutAllowance:2e3,initializing:!1,initialized:!1,activeTimeoutId:void 0,historyItemsToRefresh:[]}),eY={setTimeoutAllowance(e,{timeoutAllowance:t}){isNaN(t)?e.timeoutAllowance=2e3:e.timeoutAllowance=t},markInitialized(e){e.initialized=!0,e.initializing=!1},markInitializing(e){e.initializing=!0},setActiveTimeoutId(e,{timeoutId:t}){e.activeTimeoutId=t},addHistoryItemToRefresh(e,{uuid:t,callback:n}){const r=e.historyItemsToRefresh.find(i=>i.uuid===t);r?typeof n=="function"&&(r.callback=n):e.historyItemsToRefresh.push({uuid:t,callback:n})},filterOutHistoryItems(e,{uuids:t}){e.historyItemsToRefresh=e.historyItemsToRefresh.filter(n=>!t.includes(n.uuid))}},tY={getHistoryItemsToRefresh(e){return[...e.historyItemsToRefresh]}},nY={async setupHistorianLatencyHandling({commit:e,state:t},{timeoutAllowance:n,forceInitialization:r=!1}){!t.initializing&&(r||!t.initialized)&&(await e("markInitializing"),e("setTimeoutAllowance",{timeoutAllowance:parseInt(n)}),e("markInitialized"))},async fetchHistoryForItem({commit:e,dispatch:t,state:n},{uuid:r,callback:i}){if(!r)return;clearTimeout(n.activeTimeoutId),await e("addHistoryItemToRefresh",{uuid:r,callback:i});const s=setTimeout(async()=>{e("errors/setError",{error:null,type:"historian-latency-handling"},{root:!0});try{await t("fetchHistoryItemsInQueue")}catch(o){e("errors/setError",{error:o,type:"historian-latency-handling"},{root:!0})}},n.timeoutAllowance);
1435e("setActiveTimeoutId",{timeoutId:s})},async fetchHistoryItemsInQueue({getters:e,dispatch:t,commit:n}){const r=e.getHistoryItemsToRefresh,i=[],s=[];r.forEach(o=>{s.push(new Promise((a,c)=>{t("userComicHistoryReduced/fetchHistoryForBook",{contentUuid:o.uuid},{root:!0}).then(()=>{o.callback&&o.callback(),i.push(o.uuid),a()})}))}),await s,n("filterOutHistoryItems",{uuids:i})}},rY={namespaced:!0,state:QK,mutations:eY,getters:tY,actions:nY};function iY(){return{isFetching:!1,currentFlavor:null,homepage:null,cancelHomepageCall:null}}const oY={},sY={setIsFetching(e,t){e.isFetching=t},setHomepage(e,{homepage:t,flavor:n,cancel:r}){e.homepage=t,e.currentFlavor=n,e.cancelHomepageCall=r}},aY={getHomepage({commit:e,dispatch:t,state:n},{flavor:r,withitems:i,userPlan:s}){if(!n.isFetching)return e("setIsFetching",!0),e("errors/setError",{error:null,type:"homepage"},{root:!0}),n.currentFlavor!==r&&e("setHomepage",{homepage:null,flavor:null}),Re.services.homepage.get({flavor:r,withitems:i}).then(o=>{if(n.cancelHomepageCall){e("setHomepage",{homepage:null,flavor:null,cancel:!1});return}let a;const c=o.collectionItems.collectionItems.filter(d=>d.item.metadata?.layout==="hero");c.length===1?a=c[0]:(s&&(a=c.find(d=>(d.item.metadata.planType??"")===s)),a||(a=c[0]),o.collectionItems.collectionItems=o.collectionItems.collectionItems.filter(d=>d.item.metadata?.layout!=="hero"||d===a)),e("setHomepage",{homepage:o,flavor:r}),a?.item?.slug&&t("masthead/setCurrentMastheadCollection",{slug:a.item.slug},{root:!0}),o.collectionItems.collectionItems.forEach(async d=>{if(d.type!=="Collection")return;const v=d.item,R=v.slug,O=v.collectionItems.collectionItems,$=await t("collections/mapNormalizedItems",O,{root:!0});e("collections/updateCollectionItems",{slug:R,collectionItems:$,page:1},{root:!0})})}).catch(o=>{e("errors/setError",{error:o,type:"homepage"},{root:!0})}).finally(()=>{e("setIsFetching",!1)})},cancelGetHomepage({commit:e}){e("setHomepage",{homepage:null,flavor:null,cancel:!0})}},lY={state:iY,getters:oY,mutations:sY,actions:aY,namespaced:!0},cY=()=>({catalog:null,error:null}),uY={setCatalog(e,t){e.catalog=t},setError(e,t){e.error=t}},dY={get({commit:e}){return Re.services.catalog.list().then(t=>{e("setCatalog",t)}).catch(t=>{e("setError",t)})}},hY={state:cY,mutations:uY,actions:dY,namespaced:!0},fY=()=>({consumer:!1,error:null}),pY={setCountry(e,t){e.consumer.countryCode=t},setConsumer(e,t){e.consumer=t},setError(e,t){e.error=t}},gY=["GU","PR","US","UM","VI"],mY={isValidCountry(e){return e.consumer?!!(e.consumer&&gY.includes(e.consumer.countryCode)):!1},consumer(e){return e.consumer?e.consumer:!1}},yY={getConsumer({commit:e}){return Re.services.consumer.get({name:"www"}).then(t=>{e("setConsumer",t)}).catch(t=>{e("setError",t)})},async getConsumerForServerRender({commit:e,dispatch:t}){await t("getConsumer"),e("setCountry","US")}},bY={state:fY,getters:mY,mutations:pY,actions:yY,namespaced:!0};function EC({contentItem:e=null,contentType:t=null,contentIdentifier:n=null}){const r={images:null,title:null,colorBlock:null,description:null,itemCount:null,releaseDate:null,rating:null,pageCount:null,useLogo:!1,uuid:null,item:e,contentType:t,contentIdentifier:n};return e&&(t==="Jsonbag"&&(r.uuid=e.id,r.colorBlock=e.mastheadColor),e.title&&(r.title=e.title),e.metadata&&(e.metadata.masthead_color&&(r.colorBlock=e.metadata.masthead_color),e.metadata.masthead_description&&(r.description=e.metadata.masthead_description),e.metadata.masthead_title&&(r.title=e.metadata.masthead_title)),!r.description&&e.ctaDescription&&(r.description=e.ctaDescription),!r.description&&t==="Collection"&&e.metadata&&(r.description=e.metadata.description.long||e.metadata.description),e?._rawProperties?.books_count&&(r.itemCount=`${e._rawProperties.books_count} items`),e.ageRating&&(r.rating=e.ageRating),e.pages&&(r.pageCount=e.pages),e.printRelease&&(r.releaseDate=e.printRelease),e.metadata&&e.metadata.item_count&&(r.itemCount=`${e.metadata.item_count} items`),e.metadata&&e.metadata.images&&(r.images=e.metadata.images),e.images&&(r.images=e.images),r.colorBlock||(r.colorBlock="#000000"),e.metadata&&e.metadata.masthead_logo&&(r.useLogo=!0),(e.uuid||e._rawProperties&&e._rawProperties.uuid)&&(r.uuid=e.uuid||e._rawProperties.uuid)),r}function vY(){return{currentMastHeadCollectionSlug:null,currentMastheadItem:null}}const CY={setCurrentMastheadCollectionSlug(e,{slug:t}){e.currentMastHeadCollectionSlug=t},setCurrentMastheadItem(e,t){e.currentMastheadItem=t}},IY={setCurrentMastheadCollection({commit:e,dispatch:t},{slug:n}){e("setCurrentMastheadItem",null),e("setCurrentMastheadCollectionSlug",{slug:n})},setCurrentMastheadItem({commit:e},t){e("setCurrentMastheadItem",t),e("setCurrentMastheadCollectionSlug",{slug:null})}},AY={mastheadDataForCurrentCollection(e,t,n,r){if(!e.currentMastHeadCollectionSlug)return[];const i=r["collections/collectionItems"](e.currentMastHeadCollectionSlug);return i?i.filter(o=>o.type==="Jsonbag"&&(o.item.itemType&&o.item.itemType!=="clickout"||o.item.clickoutType&&o.item.clickoutType!=="masthead")?!1:o._normalized).map(o=>EC({contentItem:o.item,contentType:o.type,contentIdentifier:o._normalized})):[]},mastheadDataForContentItem(e,t,n,r){return({contentType:i,contentIdentifier:s})=>{let o=s;typeof s!="object"&&(o={id:s,uuid:s,slug:s,path:s,type:i});const a=r["normalizedProxy/get"](o);return EC({contentItem:a,contentType:i,contentIdentifier:o})}}},wY={state:vY,actions:IY,mutations:CY,getters:AY,namespaced:!0};function _Y(){return{menus:{}}}const SY={},EY={setMenu(e,{name:t,isOpen:n}){e.menus[t]=n}
1435,hideAllMenus(e){Object.keys(e.menus).forEach(t=>{e.menus[t]=!1})}},xY={setMenu({commit:e},t){e("setMenu",t)},hideAllMenus({commit:e}){e("hideAllMenus")},toggleMenu({commit:e,state:t},{name:n}){const r=!t.menus[n];e("hideAllMenus"),e("setMenu",{name:n,isOpen:r})}},TY={state:_Y,getters:SY,mutations:EY,actions:xY,namespaced:!0},kY=()=>({inFlight:[],status:null,onlineStatus:!0}),RY={addInFlight(e,t){e.inFlight.push(t)},removeInFlight(e,t){e.inFlight.splice(e.inFlight.indexOf(t),1)},setOnlineStatus(e,t){e.onlineStatus=t}},LY={status(e){return e.inFlight.length?"active":"idle"}},OY={transmitting({commit:e},t){e("addInFlight",t)},done({commit:e},t){e("removeInFlight",t)},onlineStatus({commit:e},t){e("setOnlineStatus",t)}},NY={namespaced:!0,state:kY,mutations:RY,getters:LY,actions:OY};function PY(){return{footerModifiedTxt:null}}const $Y={setFooterModifiedTxt({commit:e},t){e("setFooterModifiedTxt",t)}},MY={setFooterModifiedTxt(e,t){e.footerModifiedTxt=t}},DY={state:PY,mutations:MY,actions:$Y,namespaced:!0};function BY(){return{hasNotifiedUserAutomatically:!1}}const FY={setHasNotifiedUserAutomatically(e,t){e.hasNotifiedUserAutomatically=t}},HY={state:BY,mutations:FY,namespaced:!0},Jp="pending_payment_method_change_guid";function WY(){return{error:null,pendingPaymentMethod:null}}const VY={clearPendingState(e){e.pendingPaymentMethod=null,jn.remove(Jp)},setPendingState(e,t){e.pendingPaymentMethod=t,jn.set(Jp,t.guid)},setError(e,t){e.error=t}},GY={},UY={async change({commit:e,dispatch:t,rootGetters:n},{paymentMethod:r,kountSessionId:i}){e("clearPendingState");const s={paymentMethodGuid:r.guid,subscriptionGuid:n["subscriptions/currentSubscription"].guid};i&&(s.kountSessionId=i);try{await t("paymentMethods/change",s,{root:!0}),e("setPendingState",r),t("findPending")}catch{e("setError","Change Payment Method Failed. Please Try Again.")}},findPending({commit:e,rootState:t,rootGetters:n}){const r=jn.get(Jp),i=t?.paymentMethods?.paymentMethods?.find(o=>o.guid===r),s=n["subscriptions/currentSubscription"].paymentmethodGuid===r;if(r&&i&&!s){e("setPendingState",{guid:r});return}e("clearPendingState")}},jY={state:WY,mutations:VY,getters:GY,actions:UY,namespaced:!0};class zY extends Re.models.base{constructor(t){const n={result:[{_REMAP:"entitlements",entitlement_state:"entitlementState",is_active:"isActive",price:"price",uuid:"uuid",included_with_subscription:"includedWithSubscription",created:"created",expiration:"expiration",available_plans:"availablePlans",for_rent:"forRent",included_with_premium:"includedWithPremium",is_free:"isFree",rental_days:"rentalDays"}]};super(t,n)}}lt.purchases.actions.catalog=async function(e,t){const n=await Re.http.client.post("/api/premium/2/purchases/est/catalog",t);return new zY(n.data.data)};const ZY=lt.purchases;function KY(){return{recentSearches:[]}}const YY={recentSearches:e=>e.recentSearches},XY={updateRecentSearches({commit:e},t){t&&e("updateRecentSearches",t)}},JY={updateRecentSearches(e,t){const n=e.recentSearches.indexOf(t);n>-1&&e.recentSearches.splice(n,1),e.recentSearches.unshift(t),e.recentSearches=e.recentSearches.slice(0,5)}},qY={namespaced:!0,state:KY,getters:YY,actions:XY,mutations:JY};function QY(){return{name:""}}const eX={setName(e,t){e.name=t}},tX={setName({commit:e},t){e("setName",t)}},nX={state:QY,mutations:eX,actions:tX,namespaced:!0};lt.subscriptions.getters.changePlanTargets=function(e,t){if(!t.currentSubscription)return!1;const n=t.currentSubscription.product.id,r=t.currentSubscription.product.merchantPlanId,i=t.allProducts.filter(s=>s.id!==n&&s.merchantPlanId!==r);return i.length?i:!1};lt.subscriptions.getters.allProducts=function(e,t,n){return Object.keys(n.catalog.catalogs).map(r=>!n.catalog.catalogs[r]||!Array.isArray(n.catalog.catalogs[r].plans)?[]:n.catalog.catalogs[r].plans.map(i=>i.products)).flat(2)};const rX=lt.subscriptions,iX=()=>({notifications:[]}),oX={displayNotification(e,t){const n=[...e.notifications,{...t,id:Symbol()}];e.notifications=n},removeNotification(e){const t=[...e.notifications];t.shift(),e.notifications=t}},sX={displayNotification({dispatch:e,commit:t},n){t("displayNotification",n),n.persist||setTimeout(()=>e("removeNotification"),3e3)},removeNotification({commit:e}){e("removeNotification")}},aX={namespaced:!0,state:iX,actions:sX,mutations:oX};function lX(){return{viewerRatings:{age:null},viewerPin:{ageRating:null,country:null,pin:null}}}const cX={setAgeRatings(e,t){e.viewerRatings.age=t.ratings}
1435,setViewerAgeRating(e,t){e.viewerPin.ageRating=t},setViewerCountry(e,t){e.viewerPin.country=t},setViewerPin(e,t){e.viewerPin.pin=t}},uX={async getAgeRatings({commit:e}){return await Re.services.viewer.ratings.getComic().then(t=>e("setAgeRatings",t))},async getViewerPin({commit:e}){return await Re.services.viewer.pin.get().then(t=>{e("setViewerAgeRating",t.ageRating),e("setViewerCountry",t.country)})},async updateViewerPin({commit:e},t={}){return await Re.services.viewer.pin.update(t).then(n=>{e("setViewerAgeRating",n.ageRating),e("setViewerCountry",n.country)})}},dX={viewerRatings:e=>e.viewerRatings,viewerPin:e=>e.viewerPin},hX={namespaced:!0,state:lX,actions:uX,mutations:cX,getters:dX},fX={modules:{account:lt.account,ageGate:SC.ageGate,agreements:lt.agreements,applicationConfig:lt.applicationConfig,catalog:lt.catalog,clickoutObjects:lt.clickoutObjects,clip:lt.clip,comicSeries:lt.comicSeries,contentHomepage:SC.homepage,jsonbag:lt.jsonbag,lists:lt.lists,normalizedProxy:lt.normalizedProxy,paymentMethods:lt.paymentMethods,promocode:lt.promocode,search:lt.search,comicHistory:lt.comicHistory,shopItem:lt.shopItem,collections:lt.collections,userComicHistory:lt.userComicHistory,userComicHistoryReduced:lt.userComicHistoryReduced,books:EK,"braze-inbox":RK,browseComics:LK,checkin:MK,consumeNext:WK,"device-registration":GK,"email-status":ZK,errors:KK,globalModals:qK,historianLatencyHandling:rY,homepage:lY,joinCatalog:hY,joinConsumer:bY,masthead:wY,menus:TY,"network-state":NY,onetrust:DY,pausedSubNotification:HY,pendingPaymentMethods:jY,purchases:ZY,recentSearches:qY,segment:nX,subscriptions:rX,toasts:aX,viewer:hX}},pX=Je(t9(fX,{paths:["account","checkin","search.recentSearches"]}));function gX(e){e.$store.dispatch("account/setReloadPending",!1)}const mX=Je(gX);function yX(){const e=ln();return{provide:{debug:{get(){return e.public.ENABLE_CLIENT_DEBUG===!0}}}}}const bX=Je(yX);function vX(e){return{provide:{featureFlags:wt}}}const CX=Je(vX),oc={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},ri=console,bs={};
1435Object.keys(oc).forEach(e=>{bs[e]=ri[e]});const Ha="Datadog Browser SDK:",Ke={debug:bs.debug.bind(ri,Ha),log:bs.log.bind(ri,Ha),info:bs.info.bind(ri,Ha),warn:bs.warn.bind(ri,Ha),error:bs.error.bind(ri,Ha)},Yd="https://docs.datadoghq.com",IX=`${Yd}/real_user_monitoring/browser/troubleshooting`,Fm="More details:";function qE(e,t){return(...n)=>{try{return e(...n)}catch(r){Ke.error(t,r)}}}function Hc(e){return e!==0&&Math.random()*100<=e}function Ss(e,t){return+e.toFixed(t)}function AX(e){return sc(e)&&e>=0&&e<=100}function sc(e){return typeof e=="number"}function Xd(e){try{return JSON.parse(e)}catch{}}function Rl(e){return{...e}}function Zu(e,t){return Object.keys(e).some(n=>e[n]===t)}function wi(e){return Object.keys(e).length===0}function QE(e,t){const n={};for(const r of Object.keys(e))n[r]=t(e[r]);return n}function $n(){return globalThis}const pr=$n(),Xo="WorkerGlobalScope"in pr,En=1e3,Kn=60*En,Hm=60*Kn,wX=24*Hm,ex=365*wX;function ac(e){return{relative:e,timeStamp:_X(e)}}function tx(e){return{relative:rx(e),timeStamp:e}}function _X(e){const t=Tr()-performance.now();return t>ma()?Math.round(lc(t,e)):EX(e)}function SX(){return Math.round(Tr()-lc(ma(),performance.now()))}function Qe(e){return sc(e)?Ss(e*1e6,0):e}function Tr(){return new Date().getTime()}function jt(){return Tr()}function qn(){return performance.now()}function _t(){return{relative:qn(),timeStamp:jt()}}function nx(){return{relative:0,timeStamp:ma()}}function Pt(e,t){return t-e}function lc(e,t){return e+t}function rx(e){return e-ma()}function EX(e){return Math.round(lc(ma(),e))}function xX(e){return e<ex}let ef;function ma(){return ef===void 0&&(ef=performance.timing?.navigationStart??performance.timeOrigin),ef}const Jo=4*Hm,TX=15*Kn,kX=ex,Ar={COOKIE:"cookie",MEMORY:"memory",LOCAL_STORAGE:"local-storage"};function Xt(e){return e?(parseInt(e,10)^Math.random()*16>>parseInt(e,10)/4).toString(16):`10000000-1000-4000-8000-${1e11}`.replace(/[018]/g,Xt)}const Js=/(\S+?)\s*=\s*(.*?)(?:;|$)/g;function qp(e,t){for(Js.lastIndex=0;;){const n=Js.exec(e);if(n){if(n[1]===t)return n[2]}else break}}function RX(e){const t=new Map;for(Js.lastIndex=0;;){const n=Js.exec(e);if(n){const r=n[1],i=n[2];t.has(r)?t.get(r).push(i):t.set(r,[i])}else break}return t}function LX(e){const t=new Map;for(Js.lastIndex=0;;){const n=Js.exec(e);if(n)t.set(n[1],n[2]);else break}return t}function cc(e,t,n=""){const r=e.charCodeAt(t-1),s=r>=55296&&r<=56319?t+1:t;return e.length<=s?e:`${e.slice(0,s)}${n}`}function Wm(e){return ya(e,location.href).href}function OX(e){try{return!!ya(e)}catch{return!1}}function NX(e){const t=ya(e).pathname;return t[0]==="/"?t:`/${t}`}function ya(e,t){const{URL:n}=PX();try{return t!==void 0?new n(e,t):new n(e)}catch(r){throw new Error(`Failed to construct URL: ${String(r)}`)}}let tf;function PX(){if(!tf){let e,t;try{e=document.createElement("iframe"),e.style.display="none",document.body.appendChild(e),t=e.contentWindow??pr}catch{t=pr}tf={URL:t.URL},e?.remove()}return tf}function Jd(e,t,n=0,r){const i=new Date;i.setTime(i.getTime()+n);const s=`expires=${i.toUTCString()}`,o=r&&r.crossSite?"none":"strict",a=r&&r.domain?`;domain=${r.domain}`:"",c=r&&r.secure?";secure":"",l=r&&r.partitioned?";partitioned":"";document.cookie=`${e}=${t};${s};path=/;samesite=${o}${a}${c}${l}`}function Ll(e){const t=qp(document.cookie,e);if(t!=="")return t}function Bi(e){return RX(document.cookie).get(e)||[]}let nf;function rl(e){return nf||(nf=LX(document.cookie)),nf.get(e)}function ix(e,t){Jd(e,"",0,t)}function $X(e){if(document.cookie===void 0||document.cookie===null)return!1;try{const t=`dd_cookie_test_${Xt()}`,n="test";Jd(t,n,Kn,e);const r=Ll(t)===n;return ix(t,e),r}catch(t){return Ke.error(t),!1}}let rf;function MX(e=location.hostname,t=document.referrer){if(rf===void 0){const n=DX(e,t);if(n){const r=`dd_site_test_${Xt()}`,i="test",s=n.split(".");let o=s.pop();for(;s.length&&!Ll(r);)o=`${s.pop()}.${o}`,Jd(r,i,En,{domain:o});ix(r,{domain:o}),rf=o}}return rf}function DX(e,t){try{return e||ya(t).hostname}catch{}}function ox(e,t){for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(t(r,n,e))return r}}function sx(e){return Object.values(e)}function qd(e){return Object.entries(e)}const ax=/^([a-zA-Z]+)=([a-z0-9-]+)$/,Vm="&";function BX(e){return!!e&&(e.indexOf(Vm)!==-1||ax.test(e))}const FX="1";function lx(e){return e.created?Number(e.created):void 0}function cx(e){const t=e.expire&&Number(e.expire),n=lx(e);if(t&&n)return Math.min(t,n+Jo)}function il(e,t){const n={isExpired:FX};
1435return t.trackAnonymousUser&&e?.anonymousId&&(n.anonymousId=e?.anonymousId),n}function Qd(e){return wi(e)}function Gm(e){return e.isExpired!==void 0||!HX(e)}function HX(e){const t=cx(e);return t?Tr()<t:!1}function ux(e){e.expire=String(Tr()+TX)}function dx(e){return qd(e).map(([t,n])=>t==="anonymousId"?`aid=${n}`:`${t}=${n}`).join(Vm)}function ou(e){const t={};return BX(e)&&e.split(Vm).forEach(n=>{const r=ax.exec(n);if(r!==null){const[,i,s]=r;i==="aid"?t.anonymousId=s:t[i]=s}}),t}function xC(e,t){return Qd(e)?(t.trackAnonymousUser&&(e.anonymousId=Xt()),il(e,t)):e}function of(e,t){if(Qd(e))return e;let n=e;return Gm(e)&&(n=il(e,t)),n.id||(n.id=Xt(),n.created=String(Tr())),t.trackAnonymousUser&&!n.anonymousId&&(n.anonymousId=Xt()),delete n.isExpired,ux(n),n}function WX(e){return Gm(e)||Qd(e)||!e.id||ux(e),e}let Qp,hx=!1;function VX(e){Qp=e}function GX(e){hx=e}function nt(e){return function(...t){return ir(e,this,t)}}function ir(e,t,n){try{return e.apply(t,n)}catch(r){vn(r)}}function vn(e){if(eg(e),Qp)try{Qp(e)}catch(t){eg(t)}}function eg(...e){hx&&Ke.error("[MONITOR]",...e)}function TC(e){const t=pr.queueMicrotask;typeof t=="function"?t(nt(e)):Promise.resolve().then(nt(e))}class rt{constructor(t){this.onFirstSubscribe=t,this.observers=[]}subscribe(t){return this.addObserver(t),{unsubscribe:()=>this.removeObserver(t)}}notify(t){this.observers.forEach(n=>n(t))}addObserver(t){this.observers.push(t),this.observers.length===1&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0)}removeObserver(t){this.observers=this.observers.filter(n=>t!==n),!this.observers.length&&this.onLastUnsubscribe&&this.onLastUnsubscribe()}}function fx(...e){return new rt(t=>{const n=e.map(r=>r.subscribe(i=>t.notify(i)));return()=>n.forEach(r=>r.unsubscribe())})}class Um extends rt{constructor(t,n){super(),this.maxBufferSize=t,this.onDrop=n,this.buffer=[],this.droppedCount=0}notify(t){this.buffer.push(t),this.buffer.length>this.maxBufferSize&&(this.buffer.shift(),this.droppedCount++),super.notify(t)}subscribe(t){let n=!1;const r={unsubscribe:()=>{n=!0,this.removeObserver(t)}};return TC(()=>{for(const i of this.buffer){if(n)return;t(i)}n||this.addObserver(t)}),r}unbuffer(){TC(()=>{this.droppedCount>0&&this.onDrop&&this.onDrop(this.droppedCount),this.maxBufferSize=this.buffer.length=0})}}function mae(e){return e}function bi(e,t){const n=$n();let r;return n.Zone&&typeof n.Zone.__symbol__=="function"&&(r=e[n.Zone.__symbol__(t)]),r||(r=e[t]),r}function On(e,t){return bi($n(),"setTimeout")(nt(e),t)}function Jn(e){bi($n(),"clearTimeout")(e)}function ba(e,t){return bi($n(),"setInterval")(nt(e),t)}function eh(e){bi($n(),"clearInterval")(e)}const oo=1024,px=1024*oo,UX=/[^\u0000-\u007F]/;function gx(e){return UX.test(e)?new TextEncoder().encode(e).length:e.length}function mx(e){if(e.length===1)return e[0];const t=e.reduce((i,s)=>i+s.length,0),n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}function th(e,t,n){const r=n&&n.leading!==void 0?n.leading:!0,i=n&&n.trailing!==void 0?n.trailing:!0;let s=!1,o,a;return{throttled:(...c)=>{if(s){o=c;return}r?e(...c):o=c,s=!0,a=On(()=>{i&&o&&e(...o),s=!1,o=void 0},t)},cancel:()=>{Jn(a),s=!1,o=void 0}}}function Tt(){}function qs(e,t,n){if(typeof e!="object"||e===null)return JSON.stringify(e);const r=Es(Object.prototype),i=Es(Array.prototype),s=Es(Object.getPrototypeOf(e)),o=Es(e);try{return JSON.stringify(e,t,n)}catch{return"<error: unable to serialize object>"}finally{r(),i(),s(),o()}}function Es(e){const t=e,n=t.toJSON;return n?(delete t.toJSON,()=>{t.toJSON=n}):Tt}const jX=220*oo,zX="$",ZX=3;function tt(e,t=jX){const n=Es(Object.prototype),r=Es(Array.prototype),i=[],s=new WeakMap,o=sf(e,zX,void 0,i,s),a=JSON.stringify(o);let c=a?a.length:0;if(c>t){af(t,"discarded",e);return}for(;i.length>0&&c<t;){const l=i.shift();let d=0;if(Array.isArray(l.source))for(let v=0;v<l.source.length;v++){const R=sf(l.source[v],l.path,v,i,s);if(R!==void 0?c+=JSON.stringify(R).length:c+=4,c+=d,d=1,c>t){af(t,"truncated",e);break}l.target[v]=R}else for(const v in l.source)if(Object.prototype.hasOwnProperty.call(l.source,v)){const R=sf(l.source[v],l.path,v,i,s);if(R!==void 0&&(c+=JSON.stringify(R).length+d+v.length+ZX,d=1),c>t){af(t,"truncated",e);break}l.target[v]=R}}return n(),r(),o}function sf(e,t,n,r,i){const s=XX(e);if(!s||typeof s!="object")return KX(s);const o=tg(s);if(o!=="[Object]"&&o!=="[Array]"&&o!=="[Error]")return o;const a=e;if(i.has(a))return`[Reference seen at ${i.get(a)}]`;const c=n!==void 0?`${t}.${n}`:t,l=Array.isArray(s)?[]:{};return i.set(a,c),r.push({source:s,target:l,path:c}),l}function KX(e){return typeof e=="bigint"?`[BigInt] ${e.toString()}`:typeof e=="function"?`[Function] ${e.name||"unknown"}`:typeof e=="symbol"?`[Symbol] ${e.description||e.toString()}`:e}function tg(e){try{if(e instanceof Event)return YX(e);if(e instanceof RegExp)return`[RegExp] ${e.toString()}`;const n=Object.prototype.toString.call(e).match(/\[object (.*)\]/);if(n&&n[1])return`[${n[1]}]`}catch{}return"[Unserializable]"}function YX(e){return{type:e.type,isTrusted:e.isTrusted,currentTarget:e.currentTarget?tg(e.currentTarget):null,target:e.target?tg(e.target):null}}function XX(e){const t=e;if(t&&typeof t.toJSON=="function")try{return t.toJSON()}catch{}return e}function af(e,t,n){Ke.warn(`The data provided has been ${t} as it is over the limit of ${e} characters:`,n)}function va(e){return e===null?"null":Array.isArray(e)?"array":typeof e}function so(e){return va(e)==="object"}const Qs="?";function Ca(e){const t=[];let n=lf(e,"stack");const r=String(e);if(n&&n.startsWith(r)&&(n=n.slice(r.length)),n&&n.split(` 1436`).forEach(i=>
1436{const s=QX(i)||nJ(i)||iJ(i)||aJ(i);s&&(!s.func&&s.line&&(s.func=Qs),t.push(s))}),t.length>0&&dJ()&&e instanceof Error){const i=[];let s=e;for(;(s=Object.getPrototypeOf(s))&&bx(s);){const o=s.constructor?.name||Qs;i.push(o)}for(let o=i.length-1;o>=0&&t[0]?.func===i[o];o--)t.shift()}return{message:lf(e,"message"),name:lf(e,"name"),stack:t}}const yx="((?:file|https?|blob|chrome-extension|electron|native|eval|webpack|snippet|<anonymous>|\\w+\\.|\\/).*?)",ea="(?::(\\d+))",JX=new RegExp(`^\\s*at (.*?) ?\\(${yx}${ea}?${ea}?\\)?\\s*$`,"i"),qX=new RegExp(`\\((\\S*)${ea}${ea}\\)`);function QX(e){const t=JX.exec(e);if(!t)return;const n=t[2]&&t[2].indexOf("native")===0,r=t[2]&&t[2].indexOf("eval")===0,i=qX.exec(t[2]);return r&&i&&(t[2]=i[1],t[3]=i[2],t[4]=i[3]),{args:n?[t[2]]:[],column:t[4]?+t[4]:void 0,func:t[1]||Qs,line:t[3]?+t[3]:void 0,url:n?void 0:t[2]}}const eJ="(?:(.*)?(?: @))",tJ=new RegExp(`^\\s*at\\s*${eJ}?\\s*${yx}${ea}?${ea}??\\s*$`,"i");function nJ(e){const t=tJ.exec(e);if(t)return{args:[],column:t[4]?+t[4]:void 0,func:t[1]||Qs,line:t[3]?+t[3]:void 0,url:t[2]}}const rJ=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;function iJ(e){const t=rJ.exec(e);if(t)return{args:[],column:t[4]?+t[4]:void 0,func:t[1]||Qs,line:+t[3],url:t[2]}}const oJ=/^\s*(.*?)(?:\((.*?)\))?(?:(?:(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle|\[wasm code\])(?::(\d+))?(?::(\d+))?)|@)\s*$/i,sJ=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function aJ(e){const t=oJ.exec(e);if(!t)return;const n=t[3]&&t[3].indexOf(" > eval")>-1,r=sJ.exec(t[3]);return n&&r&&(t[3]=r[1],t[4]=r[2],t[5]=void 0),{args:t[2]?t[2].split(","):[],column:t[5]?+t[5]:void 0,func:t[1]||Qs,line:t[4]?+t[4]:void 0,url:t[3]}}function lf(e,t){return so(e)&&typeof e[t]=="string"?e[t]:void 0}function lJ(e,t,n,r){if(t===void 0)return;const{name:i,message:s}=uJ(e);return{name:i,message:s,stack:[{url:t,column:r,line:n}]}}const cJ=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function uJ(e){let t,n;return{}.toString.call(e)==="[object String]"&&([,t,n]=cJ.exec(e)),{name:t,message:n}}function bx(e){return String(e.constructor).startsWith("class ")}let Wc;function dJ(){if(Wc!==void 0)return Wc;class e extends Error{constructor(){super(),this.name="Error"}}const[t,n]=[e,Error].map(r=>new r);return Wc=bx(Object.getPrototypeOf(t))&&n.stack!==t.stack,Wc}function Ni(e){const n=new Error(e);n.name="HandlingStack";let r;return ir(()=>{const i=Ca(n);i.stack=i.stack.slice(2),r=nh(i)}),r}function nh(e){let t=vx(e);return e.stack.forEach(n=>{const r=n.func==="?"?"<anonymous>":n.func,i=n.args&&n.args.length>0?`(${n.args.join(", ")})`:"",s=n.line?`:${n.line}`:"",o=n.line&&n.column?`:${n.column}`:"";t+=` 1437 at ${r}${i} @ ${n.url}${s}${o}`}),t}function vx(e){return`${e.name||"Error"}: ${e.message}`}const Cx="No stack, consider using an instance of Error";function Ix({originalError:e,stackTrace:t,source:n,useFallbackStack:r=!0,nonErrorPrefix:i}){const s=ao(e);return!t&&s&&(t=Ca(e)),{source:n,type:t?t.name:void 0,message:hJ(t,s,i,e),stack:t?nh(t):r?Cx:void 0}}function jm({stackTrace:e,originalError:t,handlingStack:n,componentStack:r,startClocks:i,nonErrorPrefix:s,useFallbackStack:o=!0,source:a,handling:c}){const l=Ix({originalError:t,stackTrace:e,source:a,useFallbackStack:o,nonErrorPrefix:s});return{startClocks:i,handling:c,handlingStack:n,componentStack:r,originalError:t,...l,causes:ao(t)?gJ(t,a):void 0,fingerprint:fJ(t),context:pJ(t)}}function hJ(e,t,n,r){return e?.message&&e?.name?e.message:t?"Empty message":n?`${n} ${qs(tt(r))}`:qs(tt(r))}function fJ(e){return ao(e)&&"dd_fingerprint"in e?String(e.dd_fingerprint):void 0}function pJ(e){if(so(e))return e.dd_context}function ao(e){return e instanceof Error||Object.prototype.toString.call(e)==="[object Error]"}function gJ(e,t){const n=[];let r=e.cause;for(;r!=null&&n.length<10;){const i=Ix({originalError:r,source:t,useFallbackStack:!1});n.push(i),r=ao(r)?r.cause:void 0}return n.length?n:void 0}var ur;(function(e){e.TRACK_INTAKE_REQUESTS="track_intake_requests",e.FEATURE_OPERATION_VITAL="feature_operation_vital",e.START_STOP_ACTION="start_stop_action",e.START_STOP_RESOURCE="start_stop_resource",e.TOO_MANY_REQUESTS_INVESTIGATION="too_many_requests_investigation",e.SESSION_RENEWAL_DEBUG_CONTEXT="session_renewal_debug_context"})(ur||(ur={}));const zm=new Set;function mJ(e){Array.isArray(e)&&yJ(e.filter(t=>Zu(ur,t)))}function yJ(e){e.forEach(t=>{zm.add(t)})}function ai(e){return zm.has(e)}function bJ(){return zm}const vJ=200;function Ax(e){const{env:t,service:n,version:r,datacenter:i,sdkVersion:s,variant:o}=e,a=[ss("sdk_version",s??"7.1.0")];return t&&a.push(ss("env",t)),n&&a.push(ss("service",n)),r&&a.push(ss("version",r)),i&&a.push(ss("datacenter",i)),o&&a.push(ss("variant",o)),a}function ss(e,t){const n=t?`${e}:${t}`:e;return(n.length>vJ||IJ(n))&&Ke.warn(`Tag ${n} doesn't meet tag requirements and will be sanitized. ${Fm} ${Yd}
1437/getting_started/tagging/#defining-tags`),CJ(n)}function CJ(e){return e.replace(/,/g,"_")}function IJ(e){return new RegExp("[^\\p{Ll}\\p{Lo}0-9_:./-]","u").test(e)}const wx="datad0g.com",rh="datadoghq.com",AJ="datadoghq.eu",wJ="ddog-gov.com",_J="us2.ddog-gov.com",SJ=["ddsource","dd-api-key","dd-request-id"];function _x(e,t){const n=pr.__ddBrowserSdkExtensionCallback;n&&n({type:e,payload:t})}function Ku(e,t,n=EJ()){if(t===void 0)return e;if(typeof t!="object"||t===null)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return new RegExp(t.source,t.flags);if(n.hasAlreadyBeenSeen(t))return;if(Array.isArray(t)){const i=Array.isArray(e)?e:[];for(let s=0;s<t.length;++s)i[s]=Ku(i[s],t[s],n);return i}const r=va(e)==="object"?e:{};for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=Ku(r[i],t[i],n));return r}function Zm(e){return Ku(void 0,e)}function ji(...e){let t;for(const n of e)n!=null&&(t=Ku(t,n));return t}function EJ(){if(typeof WeakSet<"u"){const t=new WeakSet;return{hasAlreadyBeenSeen(n){const r=t.has(n);return r||t.add(n),r}}}const e=[];return{hasAlreadyBeenSeen(t){const n=e.indexOf(t)>=0;return n||e.push(t),n}}}function Sx(){const e=pr.navigator;return{status:e.onLine?"connected":"not_connected",interfaces:e.connection&&e.connection.type?[e.connection.type]:void 0,effective_type:e.connection?.effectiveType}}function Ex(e,t){return bi($n(),"fetch")(e,t)}function xJ(e){return e>=500}function TJ(e){try{return e.clone()}catch{return}}const Ia={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",LOGGER:"logger",NETWORK:"network",SOURCE:"source",REPORT:"report"},kJ=80*oo,RJ=32,xx=20*px,LJ=Kn,Tx=En;function kx(e,t,n,r,i,s){t.transportStatus===0&&t.queuedPayloads.size()===0&&t.bandwidthMonitor.canHandle(e)?Lx(e,t,n,s,{onSuccess:()=>Ox(0,t,n,r,i,s),onFailure:()=>{t.queuedPayloads.enqueue(e)||s.notify({type:"queue-full",bandwidth:t.bandwidthMonitor.stats(),payload:e}),Rx(t,n,r,i,s)}}):t.queuedPayloads.enqueue(e)||s.notify({type:"queue-full",bandwidth:t.bandwidthMonitor.stats(),payload:e})}function Rx(e,t,n,r,i){e.transportStatus===2&&On(()=>{const s=e.queuedPayloads.first();Lx(s,e,t,i,{onSuccess:()=>{e.queuedPayloads.dequeue(),e.currentBackoffTime=Tx,Ox(1,e,t,n,r,i)},onFailure:()=>{e.currentBackoffTime=Math.min(LJ,e.currentBackoffTime*2),Rx(e,t,n,r,i)}})},e.currentBackoffTime)}function Lx(e,t,n,r,{onSuccess:i,onFailure:s}){t.bandwidthMonitor.add(e),n(e,o=>{t.bandwidthMonitor.remove(e),OJ(o)?(t.transportStatus=t.bandwidthMonitor.ongoingRequestCount>0?1:2,e.retry={count:e.retry?e.retry.count+1:1,lastFailureStatus:o.status},r.notify({type:"failure",bandwidth:t.bandwidthMonitor.stats(),payload:e}),s()):(t.transportStatus=0,r.notify({type:"success",bandwidth:t.bandwidthMonitor.stats(),payload:e}),i())})}function Ox(e,t,n,r,i,s){e===0&&t.queuedPayloads.isFull()&&!t.queueFullReported&&(i({message:`Reached max ${r} events size queued for upload: ${xx/px}MiB`,source:Ia.AGENT,startClocks:_t()}),t.queueFullReported=!0);const o=t.queuedPayloads;for(t.queuedPayloads=Nx();o.size()>0;)kx(o.dequeue(),t,n,r,i,s)}function OJ(e){return e.type!=="opaque"&&(e.status===0&&!navigator.onLine||e.status===408||e.status===429||xJ(e.status))}function NJ(){return{transportStatus:0,currentBackoffTime:Tx,bandwidthMonitor:PJ(),queuedPayloads:Nx(),queueFullReported:!1}}function Nx(){const e=[];return{bytesCount:0,enqueue(t){return this.isFull()?!1:(e.push(t),this.bytesCount+=t.bytesCount,!0)},first(){return e[0]},dequeue(){const t=e.shift();return t&&(this.bytesCount-=t.bytesCount),t},size(){return e.length},isFull(){return this.bytesCount>=xx}}}function PJ(){return{ongoingRequestCount:0,ongoingByteCount:0,canHandle(e){return this.ongoingRequestCount===0||this.ongoingByteCount+e.bytesCount<=kJ&&this.ongoingRequestCount<RJ},add(e){this.ongoingRequestCount+=1,this.ongoingByteCount+=e.bytesCount},remove(e){this.ongoingRequestCount-=1,this.ongoingByteCount-=e.bytesCount},stats(){return{ongoingByteCount:this.ongoingByteCount,ongoingRequestCount:this.ongoingRequestCount}}}}const ng=16*oo;function Px(e,t,n=ng){const r=new rt,i=NJ();return{observable:r,send:s=>{for(const o of e)kx(s,i,(a,c)=>{$x(o,a,c)},o.trackType,t,r)},sendOnExit:s=>{for(const o of e)$J(o,n,s)}}}function $J(e,t,n){if(n.bytesCount<t)try{const i=e.build("beacon",n);if(navigator.sendBeacon(i,n.data))return}catch(i){MJ(i)}$x(e,n)}let kC=!1;function MJ(e){kC||(kC=!0,vn(e))}function $x(e,t,n){const r=e.build("fetch",t);Ex(r,{method:"POST",body:t.data,mode:"cors"}).then(nt(i=>n?.({status:i.status,type:i.type}))).catch(nt(()=>n?.({status:0})))}function Aa(){const e=DJ();if(e)return{getCapabilities(){return JSON.parse(e.getCapabilities?.()||"[]")},getPrivacyLevel(){return e.getPrivacyLevel?.()},getIsTraceSampled(){return JSON.parse(e.getIsTraceSampled?.()||"null")},getAllowedWebViewHosts(){return JSON.parse(e.getAllowedWebViewHosts())},send(t,n,r){const i=r?{id:r}:void 0;e.send(JSON.stringify({eventType:t,event:n,view:i}))}}}function Mx(e){const t=Aa();return!!t&&t.getCapabilities().includes(e)}function zi(e=$n().location?.hostname){const t=Aa();return!!t&&t.getAllowedWebViewHosts().some(n=>e===n||e.endsWith(`.${n}`))}function DJ(){return $n().DatadogEventBridge}function Ot(e,t,n,r,i){return wa(e,t,[n],r,i)}function wa(e,t,n,r,{once:i,capture:s,passive:o}={}){const a=nt(R=>{!R.isTrusted&&!R.__ddIsTrusted&&!e.allowUntrustedEvents||(i&&v(
1437),r(R))}),c=o?{capture:s,passive:o}:s,l=window.EventTarget&&t instanceof EventTarget?window.EventTarget.prototype:t,d=bi(l,"addEventListener");n.forEach(R=>d.call(t,R,a,c));function v(){const R=bi(l,"removeEventListener");n.forEach(O=>R.call(t,O,a,c))}return{stop:v}}const ol={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function Dx(e){return new rt(t=>{if(Xo)return;const{stop:n}=wa(e,window,["visibilitychange","freeze"],i=>{i.type==="visibilitychange"&&document.visibilityState==="hidden"?t.notify({reason:ol.HIDDEN}):i.type==="freeze"&&t.notify({reason:ol.FROZEN})},{capture:!0}),r=Ot(e,window,"beforeunload",()=>{t.notify({reason:ol.UNLOADING})}).stop;return()=>{n(),r()}})}function BJ(e){return sx(ol).includes(e)}const RC=256*oo;function Bx({encoder:e,request:t,flushController:n}){let r={};const i=n.flushObservable.subscribe(c=>a(c));function s(c,l,d){if(d!==void 0){let v;r[d]!==void 0?v=l-e.estimateEncodedBytesCount(r[d]):(n.notifyBeforeAddMessage(l),v=0),r[d]=c,n.notifyAfterAddMessage(v)}else n.notifyBeforeAddMessage(l),e.write(e.isEmpty?c:` 1438${c}`,v=>{n.notifyAfterAddMessage(v-l)})}function o(c,l){const d=qs(c),v=e.estimateEncodedBytesCount(d);if(v>=RC){Ke.warn(`Discarded a message whose size was bigger than the maximum allowed size ${RC/oo}KiB. ${Fm} ${IX}/#technical-limitations`);return}s(d,v,l)}function a(c){const l=sx(r).join(` 1439`);r={};const d=BJ(c.reason),v=d?t.sendOnExit:t.send;if(d&&e.isAsync){const R=e.finishSync();R.outputBytesCount&&v(LC(R));const O=[R.pendingData,l].filter(Boolean).join(` 1440`);O&&v({data:O,bytesCount:gx(O)})}else l&&e.write(e.isEmpty?l:` 1441${l}`),e.finish(R=>{v(LC(R))})}return{flushController:n,add:o,upsert:o,stop:i.unsubscribe}}function LC(e){let t;return typeof e.output=="string"?t=e.output:t=new Blob([e.output],{type:"text/plain"}),{data:t,bytesCount:e.outputBytesCount,encoding:e.encoding}}const FJ=30*En,HJ=Xo?1:50;function Fx({pageMayExitObservable:e,sessionExpireObservable:t}){let n;const r=new rt,i=e.subscribe(O=>{n=O.reason;try{r.notify(O.reason)}finally{n=void 0}l(O.reason)}),s=t.subscribe(()=>l("session_expire")),o=new rt(()=>()=>{i.unsubscribe(),s.unsubscribe()});let a=0,c=0;function l(O){if(c===0)return;const $=c,P=a;c=0,a=0,R(),o.notify({reason:O,messagesCount:$,bytesCount:P})}let d;function v(){d===void 0&&(d=On(()=>{l("duration_limit")},FJ))}function R(){Jn(d),d=void 0}return{flushObservable:o,preparePageExitFlushObservable:r,get messagesCount(){return c},notifyBeforeAddMessage(O){a+O>=ng&&l(n??"bytes_limit"),c+=1,a+=O,v()},notifyAfterAddMessage(O=0){a+=O,c>=HJ?l(n??"messages_limit"):a>=ng&&l(n??"bytes_limit")}}}function Hx(){let e="",t=0;return{isAsync:!1,get isEmpty(){return!e},write(n,r){const i=gx(n);t+=i,e+=n,r&&r(i)},finish(n){n(this.finishSync())},finishSync(){const n={output:e,outputBytesCount:t,rawBytesCount:t,pendingData:""};return e="",t=0,n},estimateEncodedBytesCount(n){return n.length}}}const Zi="DISCARDED",Nn="SKIPPED";function WJ(){const e={};return{register(t,n){return e[t]||(e[t]=[]),e[t].push(n),{unregister:()=>{e[t]=e[t].filter(r=>r!==n)}}},triggerHook(t,n){const r=e[t]||[],i=[];for(const s of r){const o=s(n);if(o===Zi)return Zi;o!==Nn&&i.push(o)}return ji(...i)}}}const Gi={LOG:"log",CONFIGURATION:"configuration",USAGE:"usage"},VJ=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost","<anonymous>"],GJ=1,UJ=[wJ,_J],jJ=15;let cf;function _a(){return cf||(cf=new Um(100)),cf}function zJ(e,t,n){const r=new rt,{enabled:i,metricsEnabled:s}=ZJ(e,t,n,r),{stop:o}=KJ(t,r);return{stop:o,enabled:i,metricsEnabled:s}}function ZJ(e,t,n,r,i=GJ,s=jJ){const o={},a=!UJ.includes(t.site)&&Hc(t.telemetrySampleRate),c={[Gi.LOG]:a,[Gi.CONFIGURATION]:a&&Hc(t.telemetryConfigurationSampleRate),[Gi.USAGE]:a&&Hc(t.telemetryUsageSampleRate),metric:a&&Hc(i)},l=YJ(),d=_a();return d.subscribe(({rawEvent:R,metricName:O})=>{if(O&&!c.metric||!c[R.type])return;const $=O||R.status||R.type;let P=o[$];if(P||(P=o[$]=new Set),P.size>=s)return;const T=qs(R);if(P.has(T))return;const C=n.triggerHook(1,{startTime:_t().relative});if(C===Zi)return;const N=v(C,e,R,l);r.notify(N),_x("telemetry",N),P.add(T)}),d.unbuffer(),VX(ih),{enabled:a,metricsEnabled:c.metric};function v(R,O,$,P){const C={type:"telemetry",date:_t().timeStamp,service:O,version:"7.1.0",source:"browser",_dd:{format_version:2},telemetry:ji($,{runtime_env:P,connectivity:Sx(),sdk_setup:"npm"}),ddtags:Ax(t).join(","),experimental_features:Array.from(bJ())};return ji(C,R)}}function KJ(e,t){const n=[];if(zi()){const r=Aa(),i=t.subscribe(s=>r.send("internal_telemetry",s));n.push(i.unsubscribe)}else{const r=[e.rumEndpointBuilder];e.replica&&XJ(e)&&r.push(e.replica.rumEndpointBuilder);const i=Bx({encoder:Hx(),request:Px(r,Tt),flushController:Fx({pageMayExitObservable:Dx(e),sessionExpireOb
1441servable:new rt})});n.push(i.stop);const s=t.subscribe(i.add);n.push(s.unsubscribe)}return{stop:()=>n.forEach(r=>r())}}function YJ(){return{is_local_file:pr.location?.protocol==="file:",is_worker:Xo}}function XJ(e){return e.site===wx}function Ho(e,t){eg(oc.debug,e,t),_a().notify({rawEvent:{type:Gi.LOG,message:e,status:"debug",...t}})}function ih(e,t){_a().notify({rawEvent:{type:Gi.LOG,status:"error",...qJ(e),...t}})}function JJ(e){_a().notify({rawEvent:{type:Gi.CONFIGURATION,configuration:e}})}function uc(e,t){_a().notify({rawEvent:{type:Gi.LOG,message:e,status:"debug",...t},metricName:e})}function Jt(e){_a().notify({rawEvent:{type:Gi.USAGE,usage:e}})}function qJ(e){if(ao(e)){const t=Ca(e);return{error:{kind:t.name,stack:nh(QJ(t))},message:t.message}}return{error:{stack:Cx},message:`Uncaught ${qs(e)}`}}function QJ(e){return e.stack=e.stack.filter(t=>!t.url||VJ.some(n=>t.url.startsWith(n))),e}function e7(e,t,n){const r=window.cookieStore;return r?t7(e,t,n,r):r7(e,n)}function t7(e,t,n,r){const i=new rt(()=>Ot(t,r,"change",o=>{(o.changed.some(c=>c.name===e)||o.deleted.some(c=>c.name===e))&&i.notify()}).stop);return{async getAll(){return(await r.getAll(e)).map(o=>o.value)},async getAllAndSet(s){const o=await r.getAll(e),a=o.map(d=>d.value),{value:c,expireDelay:l}=s(a);try{await r.set({name:e,value:c,expires:Tr()+l,path:"/",sameSite:n.crossSite?"none":"strict",domain:n.domain,secure:n.secure,partitioned:n.partitioned})}catch(d){const v=Bi(e);Ho("Failed to set cookie using Cookie Store API",{"error.message":d.message,newValue:c,cookieOptions:{...n},cookies:o.map(R=>({...R})),cookieCount:o.length,documentCookies:v})}},observable:i}}const n7=En;function r7(e,t){let n=Bi(e);const r=new rt(()=>{const s=ba(()=>{const o=Bi(e);i(o)},n7);return()=>{eh(s)}});function i(s){String(s)!==String(n)&&(n=s,r.notify())}return{getAll(){return Promise.resolve(Bi(e))},async getAllAndSet(s){const o=Bi(e),{value:a,expireDelay:c}=s(o);Jd(e,a,c,t),await Promise.resolve(),i([a])},observable:r}}const ko="_dd_s_v2",Wx="_dd_s",i7=0;function o7(e){const t=l7(e);return t&&$X(t)?{type:Ar.COOKIE,cookieOptions:t}:void 0}let uf;function s7(e,t){const n=new rt,r=!!t.trackAnonymousUser,i=Vx(e),s=e7(ko,t,e);let o=!0;s.observable.subscribe(()=>{s.getAll().then(c=>{n.notify({cookieValues:c,sessionState:df(c,i)})}).catch(vn)});function a(c){return s.getAllAndSet(l=>{let d=df(l,i);o&&wi(d)&&(d=df(Bi(Wx),i)),o=!1;const v=c(d);return{value:a7(v,e),expireDelay:r?kX:Jo}})}return{async setSessionState(c){typeof navigator<"u"&&navigator.locks?await navigator.locks.request(ko,()=>a(c)):(uf=(uf??Promise.resolve()).then(()=>a(c)),await uf)},sessionObservable:n}}function df(e,t){let n;for(const r of e.slice().reverse())if(n=ou(r),n.c===t)break;return delete n?.c,n??{}}function a7(e,t){return dx(wi(e)?e:{...e,c:Vx(t)})}function l7(e){const t={};if(t.secure=!!e.useSecureSessionCookie||!!e.usePartitionedCrossSiteSessionCookie,t.crossSite=!!e.usePartitionedCrossSiteSessionCookie,t.partitioned=!!e.usePartitionedCrossSiteSessionCookie,e.trackSessionAcrossSubdomains){const n=MX();if(!n)return;t.domain=n}return t}function Vx(e){const t=e.domain?e.domain.split(".").length-1:0;let n=0;return n|=i7<<5,n|=t<<1,n|=e.crossSite?1:0,n.toString(16)}const c7="_dd_test_";function u7(){try{const e=Xt(),t=`${c7}${e}`;localStorage.setItem(t,e);const n=localStorage.getItem(t);return localStorage.removeItem(t),e===n?{type:Ar.LOCAL_STORAGE}:void 0}catch{return}}function d7(e){const t=new rt(r=>Ot(e,window,"storage",i=>{i.key===ko&&i.storageArea===localStorage&&r.notify({sessionState:ou(i.newValue)})}).stop);let n=!0;return{async setSessionState(r){let i=ou(localStorage.getItem(ko));n&&Qd(i)&&(i=ou(localStorage.getItem(Wx))),n=!1;const s=r(i);localStorage.setItem(ko,dx(s)),await Promise.resolve(),t.notify({sessionState:s})},sessionObservable:t}}const hf="_DD_SESSION";function h7(){return{type:Ar.MEMORY}}function f7(){const e=$n();e[hf]||(e[hf]={});const t=e[hf],n=new rt,r=t.onChange;return t.onChange=i=>{r?.(i),n.notify({sessionState:i})},{async setSessionState(i){const s=t.state??{},o=Rl(i(s));
1441t.state=o,await Promise.resolve(),t.onChange?.(o)},sessionObservable:n}}function p7(e){const{sessionPersistence:t}=e,n=g7(t);for(const r of n){const i=m7(r,e);if(i!==void 0)return i}}function g7(e){return Array.isArray(e)?e:e!==void 0?[e]:Xo?[Ar.MEMORY]:[Ar.COOKIE]}function m7(e,t){switch(e){case Ar.COOKIE:return o7(t);case Ar.LOCAL_STORAGE:return u7();case Ar.MEMORY:return h7();default:Ke.error(`Invalid session persistence '${String(e)}'`);return}}function y7(e,t){switch(e.type){case Ar.COOKIE:return s7(e.cookieOptions,t);case Ar.LOCAL_STORAGE:return d7(t);case Ar.MEMORY:return f7()}}const rg={GRANTED:"granted",NOT_GRANTED:"not-granted"};function b7(e){const t=new rt;function n(){return e===rg.GRANTED}return{tryToInit(r){e||(e=r)},onGrantedOnce(r){if(n())r();else{const i=t.subscribe(()=>{n()&&(r(),i.unsubscribe())})}},update(r){e=r,t.notify()},isGranted:n,observable:t}}function ta(e){const t=va(e);return t==="string"||t==="function"||e instanceof RegExp}function Sa(e,t,n=!1){return e.some(r=>{try{if(typeof r=="function")return r(t);if(r instanceof RegExp)return r.lastIndex=0,r.test(t);if(typeof r=="string")return n?t.startsWith(r):r===t}catch(i){Ke.error(i)}return!1})}const v7=["chrome-extension://","moz-extension://"];function OC(e){return v7.some(t=>e.includes(t))}function C7(e,t=""){if(OC(e))return!1;const r=t.split(` 1442`).filter(i=>{const s=i.trim();return s.length&&/^at\s+|@/.test(s)})[1]||"";return OC(r)}const I7="Running the Browser SDK in a Web extension content script is forbidden unless the `allowedTrackingOrigins` option is provided.",A7="SDK initialized on a non-allowed domain.";function w7(e,t){const n=$n().location,r=n?n.origin:"",i=e.allowedTrackingOrigins;if(!i)return C7(r,t)?(Ke.error(I7),!1):!0;const s=Sa(i,r);return s||Ke.error(A7),s}function Pi(e,t,n){const r=_7(e,t);return{build(i,s){const o=S7(e,t,i,s,n);return r(o)},trackType:t}}function _7(e,t){const n=`/api/v2/${t}`,r=e.proxy;if(typeof r=="string"){const s=Wm(r);return o=>`${s}?ddforward=${encodeURIComponent(`${n}?${o}`)}`}if(typeof r=="function")return s=>r({path:n,parameters:s});const i=Gx(e);return s=>`https://${i}${n}?${s}`}function Gx(e){const{site:t=rh}=e,n=t.split("."),r=n.pop();return`browser-intake-${n.join("-")}.${r}`}function S7({clientToken:e,source:t="browser"},n,r,{retry:i,encoding:s},o=[]){const a=[`ddsource=${t}`,`dd-api-key=${e}`,`dd-evp-origin-version=${encodeURIComponent("7.1.0")}`,"dd-evp-origin=browser",`dd-request-id=${Xt()}`].concat(o);return s&&a.push(`dd-evp-encoding=${s}`),n==="rum"&&(a.push(`batch_time=${jt()}`,`_dd.api=${r}`),i&&a.push(`_dd.retry_count=${i.count}`,`_dd.retry_after=${i.lastFailureStatus}`)),a.join("&")}function E7(e){const t=e.site||rh,n=x7(e.source),r=T7({...e,site:t,source:n});return{replica:k7({...e,site:t,source:n}),site:t,source:n,...r}}function x7(e){return e==="flutter"||e==="unity"?e:"browser"}function T7(e){return{logsEndpointBuilder:Pi(e,"logs"),rumEndpointBuilder:Pi(e,"rum"),profilingEndpointBuilder:Pi(e,"profile"),sessionReplayEndpointBuilder:Pi(e,"replay"),exposuresEndpointBuilder:Pi(e,"exposures"),flagEvaluationEndpointBuilder:Pi(e,"flagevaluation")}}function k7(e){if(!e.replica)return;const t={...e,site:rh,clientToken:e.replica.clientToken};return{logsEndpointBuilder:Pi(t,"logs"),rumEndpointBuilder:Pi(t,"rum",[`application.id=${e.replica.applicationId}`])}}function R7(e){return SJ.every(t=>e.includes(t))}const xs={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input",MASK_UNLESS_ALLOWLISTED:"mask-unless-allowlisted"},ig={ALL:"all",SAMPLED:"sampled"};function ff(e,t){return e!=null&&typeof e!="string"?(Ke.error(`${t} must be defined as a string`),!1):!0}function L7(e){return e&&typeof e=="string"&&!/(datadog|ddog|datad0g|dd0g)/.test(e)?(Ke.error(`Site should be a valid Datadog site. ${Fm} ${Yd}/getting_started/site/.`),!1):!0}function Ts(e,t){return e!==void 0&&!AX(e)?(Ke.error(`${t} Sample Rate should be a number between 0 and 100`),!1):!0}function O7(e,t){if(!e||!e.clientToken){Ke.error("Client Token is not configured, we will not send any data.");return}if(e.allowedTrackingOrigins!==void 0&&!Array.isArray(e.allowedTrackingOrigins)){Ke.error("Allowed Tracking Origins must be an array");return}if(!(!L7(e.site)||!Ts(e.sessionSampleRate,"Session")||!Ts(e.telemetrySampleRate,"Telemetry")||!Ts(e.telemetryConfigurationSampleRate,"Telemetry Configuration")||!Ts(e.telemetryUsageSampleRate,"Telemetry Usage")||!ff(e.version,"Version")||!ff(e.env,"Env")||!ff(e.service,"Service")||!w7(e,t??""))){if(e.trackingConsent!==void 0&&!Zu(rg,e.trackingConsent)){Ke.error('Tracking Consent should be either "granted" or "not-granted"');return}return{beforeSend:e.beforeSend&&qE(e.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:p7(e),sessionSampleRate:e.sessionSampleRate??100,telemetrySampleRate:e.telemetrySampleRate??20,telemetryConfigurationSampleRate:e.telemetryConfigurationSampleRate??5,telemetryUsageSampleRate:e.telemetryUsageSampleRate??5,service:e.service??void 0,env:e.env??void 0,version:e.version??void 0,datacenter:e.datacenter??void 0,silentMultipleInit:!!e.silentMultipleInit,allowUntrustedEvents:!!e.allowUntrustedEvents,trackingConsent:e.trackingConsent??rg.GRANTED,trackAnonymousUser:e.trackA
1442nonymousUser??!0,storeContextsAcrossPages:!!e.storeContextsAcrossPages,variant:e.variant,sdkVersion:e.sdkVersion,...E7(e)}}}function N7(e){return{session_sample_rate:e.sessionSampleRate,telemetry_sample_rate:e.telemetrySampleRate,telemetry_configuration_sample_rate:e.telemetryConfigurationSampleRate,telemetry_usage_sample_rate:e.telemetryUsageSampleRate,use_before_send:!!e.beforeSend,use_partitioned_cross_site_session_cookie:e.usePartitionedCrossSiteSessionCookie,use_secure_session_cookie:e.useSecureSessionCookie,use_proxy:!!e.proxy,silent_multiple_init:e.silentMultipleInit,track_session_across_subdomains:e.trackSessionAcrossSubdomains,track_anonymous_user:e.trackAnonymousUser,session_persistence:Array.isArray(e.sessionPersistence)?e.sessionPersistence[0]:e.sessionPersistence,store_contexts_across_pages:!!e.storeContextsAcrossPages,allow_untrusted_events:!!e.allowUntrustedEvents,tracking_consent:e.trackingConsent,use_allowed_tracking_origins:Array.isArray(e.allowedTrackingOrigins),source:e.source,sdk_version:e.sdkVersion,variant:e.variant}}function jr(e,t,n,{computeHandlingStack:r}={}){let i=e[t];if(typeof i!="function")if(t in e&&typeof t=="string"&&t.startsWith("on"))i=Tt;else return{stop:Tt};let s=!1;const o=function(){if(s)return i.apply(this,arguments);const a=Array.from(arguments);let c;ir(n,null,[{target:this,parameters:a,onPostCall:d=>{c=d},handlingStack:r?Ni("instrumented method"):void 0}]);const l=i.apply(this,a);return c&&ir(c,null,[l]),l};return e[t]=o,{stop:()=>{s=!0,e[t]===o&&(e[t]=i)}}}function yae(e,t,n){const r=Object.getOwnPropertyDescriptor(e,t);if(!r||!r.set||!r.configurable)return{stop:Tt};const i=Tt;let s=(a,c)=>{On(()=>{s!==i&&n(a,c)},0)};const o=function(a){r.set.call(this,a),s(this,a)};return Object.defineProperty(e,t,{set:o}),{stop:()=>{Object.getOwnPropertyDescriptor(e,t)?.set===o&&Object.defineProperty(e,t,r),s=i}}}function P7(){return new rt(e=>{const t=(i,s)=>{const o=jm({stackTrace:s,originalError:i,startClocks:_t(),nonErrorPrefix:"Uncaught",source:Ia.SOURCE,handling:"unhandled"});e.notify(o)},{stop:n}=$7(t),{stop:r}=M7(t);return()=>{n(),r()}})}function $7(e){return jr($n(),"onerror",({parameters:[t,n,r,i,s]})=>{let o;ao(s)||(o=lJ(t,n,r,i)),e(s??t,o)})}function M7(e){return jr($n(),"onunhandledrejection",({parameters:[t]})=>{e(t.reason||"Empty reason")})}function D7(e){const t={version:"7.1.0",onReady(n){n()},...e};return Object.defineProperty(t,"_setDebug",{get(){return GX},enumerable:!1}),t}function B7(e,t,n){const r=e[t];r&&!r.q&&r.version&&Ke.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),e[t]=n,r&&r.q&&r.q.forEach(i=>qE(i,"onReady callback threw an error:")())}function Ux(e,t){t.silentMultipleInit||Ke.error(`${e} is already initialized.`)}const Ol={intervention:"intervention",cspViolation:"csp_violation"};function F7(e,t){const n=[];t.includes(Ol.cspViolation)&&n.push(W7(e));const r=t.filter(i=>i!==Ol.cspViolation);return r.length&&n.push(H7(r)),fx(...n)}function H7(e){return new rt(t=>{if(!window.ReportingObserver)return;const n=nt((i,s)=>i.forEach(o=>t.notify(V7(o)))),r=new window.ReportingObserver(n,{types:e,buffered:!0});return r.observe(),()=>{r.disconnect()}})}function W7(e){return new rt(t=>{const{stop:n}=Ot(e,document,"securitypolicyviolation",r=>{t.notify(G7(r))});return n})}function V7(e){const{type:t,body:n}=e;return jx({type:n.id,message:`${t}: ${n.message}`,originalError:e,stack:zx(n.id,n.message,n.sourceFile,n.lineNumber,n.columnNumber)})}function G7(e){const t=`'${e.blockedURI}' blocked by '${e.effectiveDirective}' directive`;return jx({type:e.effectiveDirective,message:`${Ol.cspViolation}: ${t}`,originalError:e,csp:{disposition:e.disposition},stack:zx(e.effectiveDirective,e.originalPolicy?`${t} of the policy "${cc(e.originalPolicy,100,"...")}"`:"no policy",e.sourceFile,e.lineNumber,e.columnNumber)})}function jx(e){return{startClocks:_t(),source:Ia.REPORT,handling:"unhandled",...e}}function zx(e,t,n,r,i){return n?nh({name:e,message:t,stack:[{func:"?",url:n,line:r??void 0,column:i??void 0}]}):void 0}function U7(e,t){const n=e.indexOf(t);n>=0&&e.splice(n,1)}function Ro(e){return Array.isArray(e)&&e.length>0}const Vc=1/0,j7=Kn;let Wa;const su=new Set;
1442function z7(){su.forEach(e=>e())}function Ea({expireDelay:e,maxEntries:t}){let n=[];Wa||(Wa=ba(()=>z7(),j7));const r=()=>{const v=qn()-e;for(;n.length>0&&n[n.length-1].endTime<v;)n.pop()};su.add(r);function i(v,R){const O={value:v,startTime:R,endTime:Vc,remove:()=>{U7(n,O)},close:$=>{O.endTime=$}};return t&&n.length>=t&&n.pop(),n.unshift(O),O}function s(v=Vc,R={returnInactive:!1}){for(const O of n)if(O.startTime<=v){if(R.returnInactive||v<=O.endTime)return O.value;break}}function o(v){const R=n[0];R&&R.endTime===Vc&&R.close(v)}function a(v=Vc,R=0){const O=lc(v,R);return n.filter($=>$.startTime<=O&&v<=$.endTime).map($=>$.value)}function c(v){return n.filter(R=>R.startTime===v)}function l(){n=[]}function d(){su.delete(r),su.size===0&&Wa&&(eh(Wa),Wa=void 0)}return{add:i,find:s,closeActive:o,findAll:a,getEntries:c,reset:l,stop:d}}function Km(e,t){return e*t/100}const NC=new Map;function oh(e,t){if(t===100)return!0;if(t===0)return!1;const n=NC.get(t);if(n&&e===n.sessionId)return n.decision;const r=Z7(BigInt(`0x${e.split("-")[4]}`),t);return NC.set(t,{sessionId:e,decision:r}),r}function Z7(e,t){const n=1111111111111111111n,r=2n**64n,i=e*n%r;return Number(i)<=t/100*Number(r)}const K7=Kn,Y7=Jo,X7=Hm*12;async function J7(e,t){const n=qn(),r=new rt,i=new rt;let s;if(!e.sessionStoreStrategyType){Ke.warn("No storage available for session. We will not send any data.");return}const o=y7(e.sessionStoreStrategyType,e),a=Ea({expireDelay:Y7});let c=!1;const{throttled:l,cancel:d}=th(()=>{c=!1,o.setSessionState(p=>of(p,e)).catch(vn)},En);let v,R=!1;const O=await $().catch(vn);if(!O||R)return;if(!t.isGranted()){S();return}return a.add(b(O),nx().relative),T(O),P(),C(),uc("Session manager init metrics",{metrics:{duration:Pt(n,qn())}}),N();async function $(){let p={};return await o.setSessionState(g=>{const u=xC(g,e);return p=of(u,e),p}),p}function P(){o.sessionObservable.subscribe(({cookieValues:p,sessionState:g})=>{T(g),x(g,{from:"sessionObservable",cookieValues:p})})}function T(p){Jn(v);const g=cx(p);if(g){const u=g-Tr();v=On(()=>{o.setSessionState(y=>Gm(y)?(t.isGranted()||delete y.anonymousId,il(y,e)):y).catch(vn)},u)}}function C(){t.observable.subscribe(()=>{t.isGranted()?(c=!1,o.setSessionState(p=>of(p,e)).catch(vn)):S()}),Xo||(Q7(e,()=>{t.isGranted()&&l()}),e6(e,()=>{c||o.setSessionState(p=>WX(p)).catch(vn)}),t6(e,()=>{o.setSessionState(p=>xC(p,e)).catch(vn)}))}function N(){return{findSession:(p,g)=>a.find(p,g),findTrackedSession:(p,g)=>{const u=a.find(p,g);if(!(!u||u.id==="invalid"||!oh(u.id,e.sessionSampleRate))&&!(Tr()-u.createdAt>X7))return u},renewObservable:r,expireObservable:i,expire:S,updateSessionState:p=>{o.setSessionState(g=>({...g,...p})).catch(vn)}}}function x(p,{from:g,cookieValues:u}){const y=a.find(),m=y?.id!==void 0,I=p.id!==void 0,_=m&&I&&y.id!==p.id;if(m&&(!I||_)&&(ai(ur.SESSION_RENEWAL_DEBUG_CONTEXT)&&(s={previousSession:y&&{...y},newState:{...p},from:g,cookieValues:u,cookies:Bi(ko),locksAvailable:!!globalThis.navigator?.locks,cookieStoreAvailable:!!globalThis.cookieStore}),c=!0,i.notify(),a.closeActive(qn())),I&&(!m||_)){if(c)return;a.add(b(p),qn()),r.notify(ai(ur.SESSION_RENEWAL_DEBUG_CONTEXT)?{expire:s,renew:{previousSession:y&&{...y},newState:{...p},from:g,cookieValues:u,cookies:Bi(ko),locksAvailable:!!globalThis.navigator?.locks,cookieStoreAvailable:!!globalThis.cookieStore}}:void 0)}else m&&I&&!_&&(y.isReplayForced=!!p.forcedReplay)}function S(){d();const p=il(a.find(),e);t.isGranted()||delete p.anonymousId,x(p,{from:"expire"}),o.setSessionState(g=>(t.isGranted()||delete g.anonymousId,il(g,e))).catch(vn)}function b(p){const g=lx(p)??jt();return p.id?{id:p.id,isReplayForced:!!p.forcedReplay,anonymousId:p.anonymousId,createdAt:g}:{id:"invalid",isReplayForced:!1,anonymousId:void 0,createdAt:g}}}function q7(){let t={id:Xt(),isReplayForced:!1,anonymousId:void 0,createdAt:jt()};return Promise.resolve({findSession:()=>t,findTrackedSession:()=>t,renewObservable:new rt,expireObservable:new rt,expire:Tt,updateSessionState:n=>{t={...t,...n}}})}function Q7(e,t){const{stop:n}=wa(e,window,["click","touchstart","keydown","scroll"],t,{capture:!0,passive:!0})}function e6(e,t){const n=()=>{document.visibilityState==="visible"&&t()},{stop:r}=Ot(e,document,"visibilitychange",n);ba(n,K7)}function t6(e,t){const{stop:n}=Ot(e,window,"resume",t,{capture:!0})}class n6{constructor(){this.callbacks={}}notify(t,n){const r=this.callbacks[t];r&&r.forEach(i=>
1442i(n))}subscribe(t,n){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(n),{unsubscribe:()=>{this.callbacks[t]=this.callbacks[t].filter(r=>n!==r)}}}}const r6=3e3;function pf(e,t,n=r6){let r=0,i=!1;return{isLimitReached(){if(r===0&&On(()=>{r=0},Kn),r+=1,r<=n||i)return i=!1,!1;if(r===n+1){i=!0;try{t({message:`Reached max number of ${e}s by minute: ${n}`,source:Ia.AGENT,startClocks:_t()})}finally{i=!1}}return!0}}}function Ym(e,t,n){return document.readyState===t||document.readyState==="complete"?(n(),{stop:Tt}):Ot(e,window,t==="complete"?"load":"DOMContentLoaded",n,{once:!0})}function i6(e,t){return new Promise(n=>{Ym(e,t,n)})}let gf;const Xm=new WeakMap;function Zx(e){return gf||(gf=o6(e)),gf}function o6(e){return"XMLHttpRequest"in pr?new rt(t=>{const{stop:n}=jr(XMLHttpRequest.prototype,"open",s6),{stop:r}=jr(XMLHttpRequest.prototype,"send",s=>{a6(s,e,t)},{computeHandlingStack:!0}),{stop:i}=jr(XMLHttpRequest.prototype,"abort",l6);return()=>{n(),r(),i()}}):new rt}function s6({target:e,parameters:[t,n]}){Xm.set(e,{state:"open",method:String(t).toUpperCase(),url:Wm(String(n))})}function a6({target:e,parameters:[t],handlingStack:n},r,i){const s=Xm.get(e);if(!s)return;const o=s;o.state="start",o.startClocks=_t(),o.isAborted=!1,o.xhr=e,o.handlingStack=n,o.requestBody=t;let a=!1;const{stop:c}=jr(e,"onreadystatechange",()=>{e.readyState===XMLHttpRequest.DONE&&l()}),l=()=>{if(d(),c(),a)return;a=!0;const v=s;v.duration=Pt(o.startClocks.timeStamp,jt()),v.status=e.status,typeof e.response=="string"&&(v.responseBody=e.response),i.notify({...v,state:"complete"})},{stop:d}=Ot(r,e,"loadend",l);i.notify(o)}function l6({target:e}){const t=Xm.get(e);t&&(t.isAborted=!0)}async function c6(e){const t=e.getReader(),n=[];for(;;){const r=await t.read();if(r.done)break;n.push(r.value)}return t.cancel().catch(Tt),mx(n)}let mf;const Kx=[];function Yx({responseBodyAction:e}={}){return e&&Kx.push(e),mf||(mf=u6()),mf}function u6(){return new rt(e=>{if(!pr.fetch)return;const{stop:t}=jr(pr,"fetch",n=>d6(n,e),{computeHandlingStack:!0});return t})}function d6({parameters:e,onPostCall:t,handlingStack:n},r){const[i,s]=e;let o=s&&s.method;o===void 0&&i instanceof Request&&(o=i.method);const a=o!==void 0?String(o).toUpperCase():"GET",c=i instanceof Request?i.url:Wm(String(i)),l=_t(),d={state:"start",init:s,input:i,method:a,startClocks:l,url:c,handlingStack:n,isAbortedOnStart:i instanceof Request&&i.signal?.aborted||s?.signal?.aborted||!1};r.notify(d),e[0]=d.input,e[1]=d.init,t(v=>{h6(r,v,d).catch(vn)})}async function h6(e,t,n){const r=n;let i;try{i=await t}catch(o){e.notify({...r,state:"resolve",status:0,isAborted:r.init?.signal?.aborted||o instanceof DOMException&&o.code===DOMException.ABORT_ERR,error:o});return}if(r.response=i,r.status=i.status,r.responseType=i.type,r.isAborted=!1,Kx.reduce((o,a)=>Math.max(o,a(r)),0)===1){const o=TJ(i);if(o&&o.body)try{const a=await c6(o.body);r.responseBody=new TextDecoder().decode(a)}catch{}}e.notify({...r,state:"resolve"})}function f6(e,t){if(window.requestIdleCallback&&window.cancelIdleCallback){const n=window.requestIdleCallback(nt(e),t);return()=>window.cancelIdleCallback(n)}return g6(e)}const p6=50;function g6(e){const t=Tr(),n=On(()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,p6-(Tr()-t))})}
1442,0);return()=>Jn(n)}const m6=En,y6=30;function b6(){const e=[];function t(r){let i;if(!r||r.didTimeout){const s=performance.now();i=()=>y6-(performance.now()-s)}else i=r.timeRemaining.bind(r);for(;i()>0&&e.length;)e.shift()();e.length&&n()}function n(){f6(t,{timeout:m6})}return{push(r){e.push(r)===1&&n()},stop(){e.length=0}}}let yf={};function v6(e){const t=e.map(n=>(yf[n]||(yf[n]=C6(n)),yf[n]));return fx(...t)}function C6(e){return new rt(t=>{const n=ri[e];return ri[e]=(...r)=>{n.apply(console,r);const i=Ni("console error");ir(()=>{t.notify(I6(r,e,i))})},()=>{ri[e]=n}})}function I6(e,t,n){const r=e.map(i=>A6(i)).join(" ");if(t===oc.error){const i=e.find(ao),s=jm({originalError:i,handlingStack:n,startClocks:_t(),source:Ia.CONSOLE,handling:"handled",nonErrorPrefix:"Provided",useFallbackStack:!1});return s.message=r,{api:t,message:r,handlingStack:n,error:s}}return{api:t,message:r,error:void 0,handlingStack:n}}function A6(e){return typeof e=="string"?tt(e):ao(e)?vx(Ca(e)):qs(tt(e),void 0,2)}function w6(e){const t=va(e)==="object";return t||Ke.error("Unsupported context:",e),t}function bf(e,t,n){const r={...e};for(const[i,{required:s,type:o}]of Object.entries(t))o==="string"&&!PC(r[i])&&(r[i]=String(r[i])),s&&PC(r[i])&&Ke.warn(`The property ${i} of ${n} is required; context will not be sent to the intake.`);return r}function PC(e){return e==null||e===""}function sh(e="",{propertiesConfig:t={}}={}){let n={};const r=new rt,i={getContext:()=>Zm(n),setContext:s=>{w6(s)?n=tt(bf(s,t,e)):i.clearContext(),r.notify()},setContextProperty:(s,o)=>{n=tt(bf({...n,[s]:o},t,e)),r.notify()},removeContextProperty:s=>{delete n[s],bf(n,t,e),r.notify()},clearContext:()=>{n={},r.notify()},changeObservable:r};return i}function xn(e,t,n,r){return nt((...i)=>(r&&Jt({feature:r}),e()[t][n](...i)))}function vf(e,t,n){e.changeObservable.subscribe(()=>{const r=e.getContext();n.notify(i=>i[t].setContext(r))})}const _6="_dd_c",S6=[];function Jm(e,t,n,r){const i=E6(n,r);S6.push(Ot(e,window,"storage",({key:l})=>{i===l&&o()})),t.changeObservable.subscribe(a);const s=ji(c(),t.getContext());wi(s)||t.setContext(s);function o(){t.setContext(c())}function a(){localStorage.setItem(i,JSON.stringify(t.getContext()))}function c(){const l=localStorage.getItem(i);return l?JSON.parse(l):{}}}function E6(e,t){return`${_6}_${e}_${t}`}function x6(e,t,n){const r=Xx();return t.storeContextsAcrossPages&&Jm(t,r,n,4),e.register(0,()=>{const i=r.getContext();return wi(i)||!i.id?Nn:{account:i}}),r}function Xx(){return sh("account",{propertiesConfig:{id:{type:"string",required:!0},name:{type:"string"}}})}const $C="_dd_tab_id";let Cf;function T6(e){const t=k6();e.register(0,()=>({tab:{id:t}}))}function k6(){return Cf||(Cf=R6()??Xt()),Cf}function R6(){try{const e=sessionStorage.getItem($C);if(e)return e;const t=Xt();return sessionStorage.setItem($C,t),t}catch{return}}function L6(e,t,n,r){const i=Jx();return t.storeContextsAcrossPages&&Jm(t,i,n,2),e.register(0,()=>({context:i.getContext()})),i}function Jx(){return sh("global context")}function O6(e,t,n,r){const i=qx();return t.storeContextsAcrossPages&&Jm(t,i,r,1),e.register(0,({eventType:s,startTime:o})=>{const a=i.getContext(),c=n.findTrackedSession(o);return c&&c.anonymousId&&!a.anonymous_id&&t.trackAnonymousUser&&(a.anonymous_id=c.anonymousId),wi(a)?Nn:{type:s,usr:a}}),i}function qx(){return sh("user",{propertiesConfig:{id:{type:"string"},name:{type:"string"},email:{type:"string"}}})}const nn={userContext:"userContext",globalContext:"globalContext",accountContext:"accountContext"},Tn={getContext:"getContext",setContext:"setContext",setContextProperty:"setContextProperty",removeContextProperty:"removeContextProperty",clearContext:"clearContext"},ah="datadog-synthetics-",N6=`${ah}public-id`,P6=`${ah}result-id`,$6=`${ah}injects-rum`,M6=`${ah}rum-context`;function Qx(){return Xo?!1:!!(pr._DATADOG_SYNTHETICS_INJECTS_RUM||rl($6))}function e1(){const e=B6();return F6(e)?e:void 0}function D6(){return!!e1()}function B6(){const e=pr._DATADOG_SYNTHETICS_RUM_CONTEXT;if(e)return e;const t=rl(M6);return t?Xd(decodeURIComponent(t)):{test_id:window._DATADOG_SYNTHETICS_PUBLIC_ID||rl(N6),result_id:window._DATADOG_SYNTHETICS_RESULT_ID||rl(P6)}}function F6(e){return typeof e=="object"&&e!==null&&typeof e.test_id=="string"&&typeof e.result_id=="string"}const Dn={DOCUMENT:"document",XHR:"xhr",BEACON:"beacon",FETCH:"fetch",CSS:"css",JS:"js",IMAGE:"image",FONT:"font",MEDIA:"media",OTHER:"other"},na={FETCH:Dn.FETCH,XHR:Dn.XHR},H6=500;function W6(){const e=new Um(H6,r=>{Ho("Early data collection dropped data on unbuffer",{count:r})}),t=[];function n(r,i){t.push(i.subscribe(s=>{e.notify({type:r,data:s})}))}return n(0,P7()),n(1,Yx()),n(2,Zx({allowUntrustedEvents:!0})),n(3,v6(Object.values(oc))),{observable:e,stop:()=>t.forEach(r=>r.unsubscribe())}}function V6(){try{return new Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}
1442function G6(e,t,n){e.register(1,({startTime:r})=>{const i=t.findTrackedSession(r);return i?{session:{id:i.id},anonymous_id:i.anonymousId,...n}:Nn})}const qe={ACTION:"action",ERROR:"error",LONG_TASK:"long_task",VIEW:"view",RESOURCE:"resource",VITAL:"vital"},MC={LONG_TASK:"long-task",LONG_ANIMATION_FRAME:"long-animation-frame"},ii={INITIAL_LOAD:"initial_load",ROUTE_CHANGE:"route_change",SESSION_RENEWAL:"session_renewal",BF_CACHE:"bf_cache"},qm={CLICK:"click",CUSTOM:"custom"},vs={RAGE_CLICK:"rage_click",ERROR_CLICK:"error_click",DEAD_CLICK:"dead_click"},Ms={DURATION:"duration",OPERATION_STEP:"operation_step"},DC=["tracecontext","datadog"],t1=["cache-control","etag","age","expires","content-type","content-encoding","vary","content-length","server-timing","x-cache"];function U6(e,t){if(e.trackFeatureFlagsForEvents!==void 0&&!Array.isArray(e.trackFeatureFlagsForEvents)&&Ke.warn("trackFeatureFlagsForEvents should be an array"),!e.applicationId){Ke.error("Application ID is not configured, no RUM data will be collected.");return}if(!Ts(e.sessionReplaySampleRate,"Session Replay")||!Ts(e.traceSampleRate,"Trace"))return;if(e.excludedActivityUrls!==void 0&&!Array.isArray(e.excludedActivityUrls)){Ke.error("Excluded Activity Urls should be an array");return}const n=j6(e);if(!n)return;const r=O7(e,t),i=Z6(e);if(!r)return;const s=e.sessionReplaySampleRate??0;return{applicationId:e.applicationId,actionNameAttribute:e.actionNameAttribute,sessionReplaySampleRate:s,startSessionReplayRecordingManually:e.startSessionReplayRecordingManually!==void 0?!!e.startSessionReplayRecordingManually:s===0,traceSampleRate:e.traceSampleRate??100,rulePsr:sc(e.traceSampleRate)?e.traceSampleRate/100:void 0,allowedTracingUrls:n,excludedActivityUrls:e.excludedActivityUrls??[],workerUrl:e.workerUrl,compressIntakeRequests:!!e.compressIntakeRequests,trackUserInteractions:!!(e.trackUserInteractions??!0),trackViewsManually:!!e.trackViewsManually,trackResources:!!(e.trackResources??!0),trackResourceHeaders:Y6(e),trackLongTasks:!!(e.trackLongTasks??!0),subdomain:e.subdomain,defaultPrivacyLevel:Zu(xs,e.defaultPrivacyLevel)?e.defaultPrivacyLevel:xs.MASK_USER_INPUT,enablePrivacyForActionName:e.enablePrivacyForActionName!==!1,traceContextInjection:Zu(ig,e.traceContextInjection)?e.traceContextInjection:ig.SAMPLED,plugins:e.plugins||[],trackFeatureFlagsForEvents:e.trackFeatureFlagsForEvents||[],profilingSampleRate:e.profilingSampleRate??0,propagateTraceBaggage:e.propagateTraceBaggage!==!1,allowedGraphQlUrls:i,...r}}function j6(e){if(e.allowedTracingUrls===void 0)return[];if(!Array.isArray(e.allowedTracingUrls)){Ke.error("Allowed Tracing URLs should be an array");return}if(e.allowedTracingUrls.length!==0&&e.service===void 0){Ke.error("Service needs to be configured when tracing is enabled");return}const t=[];return e.allowedTracingUrls.forEach(n=>{const r=n1(n);r?t.push(r):Ke.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",n)}),t}function z6(e){const t=new Set;return Ro(e.allowedTracingUrls)&&e.allowedTracingUrls.forEach(n=>{n1(n)?.propagatorTypes.forEach(r=>t.add(r))}),Array.from(t)}function n1(e){if(ta(e))return{match:e,propagatorTypes:DC};if(so(e)&&ta(e.match)&&(e.propagatorTypes===null||e.propagatorTypes===void 0||Array.isArray(e.propagatorTypes)))return{match:e.match,propagatorTypes:e.propagatorTypes||DC}}function Z6(e){if(!e.allowedGraphQlUrls)return[];if(!Array.isArray(e.allowedGraphQlUrls))return Ke.warn("allowedGraphQlUrls should be an array"),[];const t=[];
1442return e.allowedGraphQlUrls.forEach(n=>{ta(n)?t.push({match:n,trackPayload:!1,trackResponseErrors:!1}):so(n)&&ta(n.match)&&t.push({match:n.match,trackPayload:!!n.trackPayload,trackResponseErrors:!!n.trackResponseErrors})}),t}const K6=["request","response","any"];function Y6(e){const t=e.trackResourceHeaders;if(t===void 0||t===!1)return[];if(t===!0)return t1.map(r=>({name:r}));if(!Array.isArray(t))return Ke.warn("trackResourceHeaders should be true or an array of MatchHeader"),[];if(t.length===0)return Ke.warn("trackResourceHeaders is an empty array, no headers will be captured"),[];const n=[];return t.forEach((r,i)=>{if(!so(r)||!ta(r.name)){Ke.warn(`trackResourceHeaders[${i}] should be a MatchHeader object with a 'name' property`);return}if(r.url!==void 0&&!ta(r.url)){Ke.warn(`trackResourceHeaders[${i}].url should be a MatchOption`);return}if(r.extractor!==void 0&&!(r.extractor instanceof RegExp)){Ke.warn(`trackResourceHeaders[${i}].extractor should be a RegExp`);return}if(r.location!==void 0&&!K6.includes(r.location)){Ke.warn(`trackResourceHeaders[${i}].location should be 'request', 'response', or 'any'`);return}n.push({...r,name:typeof r.name=="string"?r.name.toLowerCase():r.name})}),n}function X6(e){return Ro(e)&&e.some(t=>so(t)&&t.trackPayload)}function J6(e){return Ro(e)&&e.some(t=>so(t)&&t.trackResponseErrors)}function q6(e){if(e===!0)return"default_headers";if(Array.isArray(e))return"custom"}function Q6(e){const t=N7(e);return{session_replay_sample_rate:e.sessionReplaySampleRate,start_session_replay_recording_manually:e.startSessionReplayRecordingManually,trace_sample_rate:e.traceSampleRate,trace_context_injection:e.traceContextInjection,propagate_trace_baggage:e.propagateTraceBaggage,action_name_attribute:e.actionNameAttribute,use_allowed_tracing_urls:Ro(e.allowedTracingUrls),use_allowed_graph_ql_urls:Ro(e.allowedGraphQlUrls),use_track_graph_ql_payload:X6(e.allowedGraphQlUrls),use_track_graph_ql_response_errors:J6(e.allowedGraphQlUrls),selected_tracing_propagators:z6(e),default_privacy_level:e.defaultPrivacyLevel,enable_privacy_for_action_name:e.enablePrivacyForActionName,use_excluded_activity_urls:Ro(e.excludedActivityUrls),use_worker_url:!!e.workerUrl,compress_intake_requests:e.compressIntakeRequests,track_views_manually:e.trackViewsManually,track_user_interactions:e.trackUserInteractions,track_resources:e.trackResources,track_long_task:e.trackLongTasks,plugins:e.plugins?.map(n=>({name:n.name,...n.getConfigurationTelemetry?.()})),track_feature_flags_for_events:e.trackFeatureFlagsForEvents,remote_configuration_id:e.remoteConfigurationId,profiling_sample_rate:e.profilingSampleRate,use_remote_configuration_proxy:!!e.remoteConfigurationProxy,track_resource_headers:q6(e.trackResourceHeaders),...t}}function r1(e,t){t.lastIndex=0;const n=t.exec(e);if(!n)return;const[r,i]=n;return i||r}function e8(e){const t=[];let n=0,r;const i={quote:void 0,escapeSequence:void 0};let s="";for(const o of e){if(r=BC[n].find(a=>s8[a](o,i)),!r)return[];if(i.escapeSequence!==void 0&&r!==12){if(!c8(i.escapeSequence))return[];s+=d8(i.escapeSequence),i.escapeSequence=void 0}a8.includes(r)?s+=o:l8.includes(r)&&s!==""?(t.push(s),s=""):r===12?i.escapeSequence=i.escapeSequence?`${i.escapeSequence}${o}`:o:r===8?i.quote=o:r===9&&(i.quote=void 0),n=r}return BC[n].includes(1)?(s!==""&&t.push(s),t):[]}const t8=/[a-zA-Z_$]/,n8=/[a-zA-Z0-9_$]/,r8=/[0-9]/,i8=/[a-fA-F0-9]/,o8=`'"`,s8={0:()=>!1,1:()=>!1,2:e=>t8.test(e),3:e=>n8.test(e),4:e=>e===".",5:e=>e==="[",6:e=>e==="]",7:e=>r8.test(e),8:e=>o8.includes(e),9:(e,t)=>e===t.quote,10:()=>!0,11:e=>e==="\\",12:(e,t)=>t.escapeSequence===void 0?`${t.quote}/\\bfnrtu`.includes(e):t.escapeSequence.startsWith("u")&&t.escapeSequence.length<5?i8.test(e):!1},BC={0:[2,5],1:[],2:[3,4,5,1],3:[3,4,5,1],4:[2],5:[8,7],6:[4,5,1],7:[7,6],8:[11,9,10],9:[6],10:[11,9,10],11:[12],12:[12,11,9,10]},a8=[2,3,7,10],l8=[4,5,6];function c8(e){return`"'/\\bfnrt`.includes(e)||e.startsWith("u")&&e.length===5}const u8={'"':'"',"'":"'","/":"/","\\":"\\",b:"\b",f:"\f",n:` 1443`,r:"\r",t:" "};function d8(e){return e.startsWith("u")?String.fromCharCode(parseInt(e.slice(1),16)):u8[e]}const h8="v1",f8=["applicationId","service","env","version","sessionSampleRate","sessionReplaySampleRate","defaultPrivacyLevel","enablePrivacyF
1443orActionName","traceSampleRate","trackSessionAcrossSubdomains","allowedTracingUrls","allowedTrackingOrigins"];async function p8(e,t){let n;const r=m8(),i=await v8(e);return i.ok?(r.increment("fetch","success"),n=g8(e,i.value,t,r)):(r.increment("fetch","failure"),Ke.error(i.error)),uc("remote configuration metrics",{metrics:r.get()}),n}function g8(e,t,n,r){const i={...e};return f8.forEach(O=>{O in t&&(i[O]=s(t[O]))}),Object.keys(n).forEach(O=>{t[O]!==void 0&&o(n[O],t[O])}),i;function s(O){if(Array.isArray(O))return O.map(s);if(so(O)){if(y8(O)){const $=O.rcSerializedType;switch($){case"string":return O.value;case"regex":return i1(O.value);case"dynamic":return a(O);default:Ke.error(`Unsupported remote configuration: "rcSerializedType": "${$}"`);return}}return QE(O,s)}return O}function o(O,$){$.forEach(({key:P,value:T})=>{O.setContextProperty(P,s(T))})}function a(O){const $=O.strategy;let P;switch($){case"cookie":P=c(O);break;case"dom":P=d(O);break;case"js":P=R(O);break;case"localStorage":P=l(O);break;default:Ke.error(`Unsupported remote configuration: "strategy": "${$}"`);return}const T=O.extractor;return T!==void 0&&typeof P=="string"?b8(T,P):P}function c({name:O}){const $=Ll(O);return r.increment("cookie",$!==void 0?"success":"missing"),$}function l({key:O}){let $;try{$=localStorage.getItem(O)}catch{r.increment("localStorage","failure");return}return r.increment("localStorage",$!==null?"success":"missing"),$??void 0}function d({selector:O,attribute:$}){let P;try{P=document.querySelector(O)}catch{Ke.error(`Invalid selector in the remote configuration: '${O}'`),r.increment("dom","failure");return}if(!P){r.increment("dom","missing");return}if(v(P,$)){Ke.error(`Forbidden element selected by the remote configuration: '${O}'`),r.increment("dom","failure");return}const T=$!==void 0?P.getAttribute($):P.textContent;if(T===null){r.increment("dom","missing");return}return r.increment("dom","success"),T}function v(O,$){return O.getAttribute("type")==="password"&&$==="value"}function R({path:O}){let $=window;const P=e8(O);if(P.length===0){Ke.error(`Invalid JSON path in the remote configuration: '${O}'`),r.increment("js","failure");return}for(const T of P){if(!(T in $)){r.increment("js","missing");return}try{$=$[T]}catch(C){Ke.error(`Error accessing: '${O}'`,C),r.increment("js","failure");return}}return r.increment("js","success"),$}}function m8(){const e={fetch:{}};return{get:()=>e,increment:(t,n)=>{e[t]||(e[t]={}),e[t][n]||(e[t][n]=0),e[t][n]=e[t][n]+1}}}function y8(e){return"rcSerializedType"in e}function i1(e){try{return new RegExp(e)}catch{Ke.error(`Invalid regex in the remote configuration: '${e}'`)}}function b8(e,t){const n=i1(e.value);if(n!==void 0)return r1(t,n)}async function v8(e){let t;try{t=await Ex(C8(e))}catch{t=void 0}if(!t||!t.ok)return{ok:!1,error:new Error("Error fetching the remote configuration.")};const n=await t.json();return n.rum?{ok:!0,value:n.rum}:{ok:!1,error:new Error("No remote configuration for RUM.")}}function C8(e){return e.remoteConfigurationProxy?e.remoteConfigurationProxy:`https://sdk-configuration.${Gx(e)}/${h8}/${encodeURIComponent(e.remoteConfigurationId)}.json`}function o1(e,t,n){if(e)for(const r of e){const i=r[t];i&&i(n)}}const I8=WJ;function A8(e,t){e.register(1,()=>t.isGranted()?Nn:Zi)}function w8({ignoreInitIfSyntheticsWillInjectRum:e=!0,startDeflateWorker:t},n,r){const s=new Um(500,g=>{Ho("preStartRum buffer data lost",{count:g})}),o=Jx();vf(o,nn.globalContext,s);const a=qx();vf(a,nn.userContext,s);const c=Xx();vf(c,nn.accountContext,s);let l,d,v,R,O,$;const P=I8(),T=n.observable.subscribe(x),C={};let N=!1;function x(){if(N||!v||!R||!O||!$)return;T.unsubscribe();let g;if(R.trackViewsManually){if(!l)return;g=l.options}const u=R.trackViewsManually?l?.callback:void 0,y=r(R,O,d,g,$,P);N=!0,s.subscribe(m=>{m!==u&&m(y)}),s.unbuffer()}function S(g,u){const y=zi();if(y&&(g=_8(g)),v=g,R){Ux("DD_RUM",g);return}const m=U6(g,u);m&&(m.compressIntakeRequests&&!y&&t&&(d=t(m,"Datadog RUM",Tt),!d)||(R=m,n.tryToInit(m.trackingConsent),n.onGrantedOnce(()=>{if(A8(P,n),$=zJ("browser-rum-sdk",m,P),Xo){Ke.warn("The RUM SDK is not supported in a web or service worker environment.");return}(zi()?q7():J7(m,n)).then(_=>{_&&(O=_,G6(P,O,{application:{id:m.applicationId}}),JJ(Q6(g)),x())}).catch(vn)})))}return{init(g,u,y){if(!g){Ke.error("Missing configuration");return}mJ(g.enableExperimentalFeatures),v=g,!(e&&Qx())&&(o1(g.plugins,"onInit",{initConfiguration:g,publicApi:u}),g.remoteConfigurationId?p8(g,{user:a,context:o}).then(m=>{m&&S(m,y)}).catch(vn):S(g,y))},get initConfiguration(){return v},getInternalContext:Tt,stopSession:Tt,addTiming(g,u=jt()){s.notify(y=>y.addTiming(g,u))}
1443,setLoadingTime:(g=>{s.notify(u=>u.setLoadingTime(g))}),startView(g,u=_t()){const y=m=>{m.startView(g,u)};s.notify(y),l||(l={options:g,callback:y},x())},setViewName(g){s.notify(u=>u.setViewName(g))},setViewContext(g){s.notify(u=>u.setViewContext(g))},setViewContextProperty(g,u){s.notify(y=>y.setViewContextProperty(g,u))},getViewContext:()=>C,globalContext:o,userContext:a,accountContext:c,addAction(g){s.notify(u=>u.addAction(g))},startAction(g,u){const y=_t();s.notify(m=>m.startAction(g,u,y))},stopAction(g,u){const y=_t();s.notify(m=>m.stopAction(g,u,y))},startResource(g,u){const y=_t();s.notify(m=>m.startResource(g,u,y))},stopResource(g,u){const y=_t();s.notify(m=>m.stopResource(g,u,y))},addError(g){s.notify(u=>u.addError(g))},addFeatureFlagEvaluation(g,u){s.notify(y=>y.addFeatureFlagEvaluation(g,u))},startDurationVital(g,u){const y=_t();s.notify(m=>m.startDurationVital(g,u,y))},stopDurationVital(g,u){const y=_t();s.notify(m=>m.stopDurationVital(g,u,y))},addDurationVital(g){s.notify(u=>u.addDurationVital(g))},addOperationStepVital:(g,u,y,m)=>{s.notify(I=>I.addOperationStepVital(tt(g),u,tt(y),tt(m)))}}}function _8(e){return{...e,applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100,defaultPrivacyLevel:e.defaultPrivacyLevel??Aa()?.getPrivacyLevel()}}function S8(){const e=E8();return new rt(t=>{const n=new e(nt(r=>t.notify(r)));return n.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),()=>n.disconnect()})}function E8(){let e;const t=window;if(t.Zone&&(e=bi(t,"MutationObserver"),t.MutationObserver&&e===t.MutationObserver)){const n=new t.MutationObserver(Tt),r=bi(n,"originalInstance");e=r&&r.constructor}return e||(e=t.MutationObserver),e}function x8(){const e=new rt,{stop:t}=jr(window,"open",()=>e.notify());return{observable:e,stop:t}}function T8(e,t,n,r,i){return{get:s=>{const o=n.findView(s),a=i.findUrl(s),c=t.findTrackedSession(s);if(c&&o&&a){const l=r.findActionId(s);return{application_id:e,session_id:c.id,user_action:l?{id:l}:void 0,view:{id:o.id,name:o.name,referrer:a.referrer,url:a.url}}}}}}const k8=n6,R8=Jo;function L8(e){const t=Ea({expireDelay:R8});e.subscribe(1,r=>{t.add(n(r),r.startClocks.relative)}),e.subscribe(6,({endClocks:r})=>{t.closeActive(r.relative)}),e.subscribe(3,r=>{const i=t.find(r.startClocks.relative);i&&(r.name&&(i.name=r.name),r.context&&(i.context=r.context),i.sessionIsActive=r.sessionIsActive)}),e.subscribe(10,()=>{t.reset()});function n(r){return{service:r.service,version:r.version,context:r.context,id:r.id,name:r.name,startClocks:r.startClocks}}return{findView:r=>t.find(r),stop:()=>{t.stop()}}}const O8=[[Dn.DOCUMENT,e=>e==="navigation"],[Dn.XHR,e=>e==="xmlhttprequest"],[Dn.FETCH,e=>e==="fetch"],[Dn.BEACON,e=>e==="beacon"],[Dn.CSS,(e,t)=>/\.css$/i.test(t)],[Dn.JS,(e,t)=>/\.js$/i.test(t)],[Dn.IMAGE,(e,t)=>["image","img","icon"].includes(e)||/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i.exec(t)!==null],[Dn.FONT,(e,t)=>/\.(woff|eot|woff2|ttf)$/i.exec(t)!==null],[Dn.MEDIA,(e,t)=>["audio","video"].includes(e)||/\.(mp3|mp4)$/i.exec(t)!==null]];function N8(e){const t=e.name;if(!OX(t))return Dn.OTHER;const n=NX(t);for(const[r,i]of O8)if(i(e.initiatorType,n))return r;return Dn.OTHER}function FC(...e){for(let t=1;t<e.length;t+=1)if(e[t-1]>e[t])return!1;return!0}function P8(e){return e.initiatorType==="xmlhttprequest"||e.initiatorType==="fetch"}function $8(e){const{duration:t,startTime:n,responseEnd:r}=e;return e.initiatorType==="navigation"||t===0&&n<r?Pt(n,r):t}function M8(e){if(!B8(e))return;const{startTime:t,fetchStart:n,workerStart:r,redirectStart:i,redirectEnd:s,domainLookupStart:o,domainLookupEnd:a,connectStart:c,secureConnectionStart:l,connectEnd:d,requestStart:v,responseStart:R,responseEnd:O}=e,$={download:po(t,R,O),first_byte:po(t,v,R)};return 0<r&&r<n&&($.worker=po(t,r,n)),n<d&&($.connect=po(t,c,d),c<=l&&l<=d&&($.ssl=po(t,l,d))),n<a&&($.dns=po(t,o,a)),t<s&&($.redirect=po(t,i,s)),$}function D8(e){return e.duration>=0}function B8(e){const t=FC(e.startTime,e.fetchStart,e.domainLookupStart,e.domainLookupEnd,e.connectStart,e.connectEnd,e.requestStart,e.responseStart,e.responseEnd),n=F8(e)?FC(e.startTime,e.redirectStart,e.redirectEnd,e.fetchStart):!0;return t&&n}function F8(e){return e.redirectEnd>e.startTime}
1443function po(e,t,n){if(e<=t&&t<=n)return{duration:Qe(Pt(t,n)),start:Qe(Pt(e,t))}}function H8(e){return e.nextHopProtocol===""?void 0:e.nextHopProtocol}function W8(e){return e.deliveryType===""?"other":e.deliveryType}function V8(e){if(e.startTime<e.responseStart){const{encodedBodySize:t,decodedBodySize:n,transferSize:r}=e;return{size:n,encoded_body_size:t,decoded_body_size:n,transfer_size:r}}return{size:void 0,encoded_body_size:void 0,decoded_body_size:void 0,transfer_size:void 0}}function Nl(e){return e&&(!R7(e)||ai(ur.TRACK_INTAKE_REQUESTS))}const G8=/data:(.+)?(;base64)?,/g,U8=24e3;function s1(e,t=U8){if(e.length<=t||!e.startsWith("data:"))return e;const n=e.substring(0,100).match(G8);return n?`${n[0]}[...]`:e}function j8(){return l1(64)}function a1(){return l1(63)}function l1(e){const t=crypto.getRandomValues(new Uint32Array(2));let n=BigInt(t[0])+(BigInt(t[1])<<32n);return e===63&&(n&=0x7fffffffffffffffn),n}function as(e){return e.toString(16).padStart(16,"0")}function z8(e){e.status===0&&!e.isAborted&&(e.traceId=void 0,e.spanId=void 0,e.traceSampled=void 0)}function Z8(e,t,n,r){return{clearTracingIfNeeded:z8,traceFetch:i=>HC(e,i,t,n,r,s=>{if(i.input instanceof Request&&!i.init?.headers)i.input=new Request(i.input),Object.keys(s).forEach(o=>{i.input.headers.append(o,s[o])});else{i.init=Rl(i.init);const o=[];i.init.headers instanceof Headers?i.init.headers.forEach((a,c)=>{o.push([c,a])}):Array.isArray(i.init.headers)?i.init.headers.forEach(a=>{o.push(a)}):i.init.headers&&Object.keys(i.init.headers).forEach(a=>{o.push([a,i.init.headers[a]])}),i.init.headers=o.concat(qd(s))}}),traceXhr:(i,s)=>HC(e,i,t,n,r,o=>{try{Object.keys(o).forEach(a=>{s.setRequestHeader(a,o[a])})}catch{}})}}function HC(e,t,n,r,i,s){const o=n.findTrackedSession();if(!o)return;const a=e.allowedTracingUrls.find(v=>Sa([v.match],t.url,!0));if(!a)return;const c=oh(o.id,Km(e.sessionSampleRate,e.traceSampleRate)),l=zi()?Aa()?.getIsTraceSampled()??c:c;(l||e.traceContextInjection===ig.ALL)&&(t.traceSampled=l,t.traceId=j8(),t.spanId=a1(),s(K8(t.traceId,t.spanId,t.traceSampled,o.id,a.propagatorTypes,r,i,e)))}function K8(e,t,n,r,i,s,o,a){const c={};if(i.forEach(l=>{switch(l){case"datadog":{Object.assign(c,{"x-datadog-origin":"rum","x-datadog-parent-id":t.toString(),"x-datadog-sampling-priority":n?"1":"0","x-datadog-trace-id":e.toString()});break}case"tracecontext":{Object.assign(c,{traceparent:`00-0000000000000000${as(e)}-${as(t)}-0${n?"1":"0"}`,tracestate:`dd=s:${n?"1":"0"};o:rum`});break}case"b3":{Object.assign(c,{b3:`${as(e)}-${as(t)}-${n?"1":"0"}`});break}case"b3multi":{Object.assign(c,{"X-B3-TraceId":as(e),"X-B3-SpanId":as(t),"X-B3-Sampled":n?"1":"0"});break}}}),a.propagateTraceBaggage){const l={"session.id":r},d=s.getContext().id;typeof d=="string"&&(l["user.id"]=d);const v=o.getContext().id;typeof v=="string"&&(l["account.id"]=v);const R=Object.entries(l).map(([O,$])=>`${O}=${encodeURIComponent($)}`).join(",");R&&(c.baggage=R)}return c}const Y8=32*oo;function X8(e,t){const n=q8(e,t.trackPayload);if(n){if(t.trackResponseErrors&&e.responseBody){const r=J8(e.responseBody);r&&(n.error_count=r.length,n.errors=r)}return n}}function J8(e){const t=Xd(e);if(!t||typeof t!="object")return;const n=t;return Ro(n.errors)?n.errors.map(i=>({message:i.message,path:i.path,locations:i.locations,code:i.extensions?.code})):void 0}function c1(e,t){return t.allowedGraphQlUrls.find(n=>Sa([n.match],e))}function q8(e,t=!1){let n;if(e.method==="POST"?n=Q8(e.requestBody):e.method==="GET"&&(n=eq(e.url)),!!n)return tq(n,t)}function Q8(e){if(!e||typeof e!="string")return;const t=Xd(e);if(t)return{query:t.query,operationName:t.operationName,variables:t.variables?JSON.stringify(t.variables):void 0}}function eq(e){const t=ya(e).searchParams,n=t.get("variables"),r=n&&Xd(n)!==void 0?n:void 0;return{query:t.get("query")||void 0,operationName:t.get("operationName")||void 0,variables:r}}function tq(e,t){let n,r,i;if(e.query){const s=e.query.trim();n=nq(s),t&&(r=cc(s,Y8,"..."))}return e.variables&&(i=e.variables),{operationType:n,operationName:e.operationName,variables:i,payload:r}}function nq(e){return e.match(/^\s*(query|mutation|subscription)\b/i)?.[1]}let rq=1;function iq(e,t,n,r,i,s){const o=Z8(t,n,r,i);oq(e,t,o,s),sq(e,t,o,s)}function oq(e,t,n,r){const i=[];return i.push(Zx(t).subscribe(s=>{s.state==="start"&&Nl(s.url)&&(n.traceXhr(s,s.xhr),Yu(s))})),i.push(r.subscribe(({data:s,type:o})=>{if(o!==2)return;const a=s;if(Nl(a.url))switch(a.state){case"start":Yu(a),e.notify(7,{requestIndex:a.requestIndex,url:a.url});break;case"complete":n.clearTracingIfNeeded(a),e.notify(8,{...a,type:na.XHR,isAbortedOnStart:!1});break}}
1443)),{stop:()=>i.forEach(s=>s.unsubscribe())}}function sq(e,t,n,r){const i=[];return i.push(Yx({responseBodyAction:s=>c1(s.url,t)?.trackResponseErrors?1:0}).subscribe(s=>{s.state==="start"&&Nl(s.url)&&(n.traceFetch(s),Yu(s))})),i.push(r.subscribe(({data:s,type:o})=>{if(o!==1)return;const a=s;if(Nl(a.url))switch(a.state){case"start":Yu(a),e.notify(7,{requestIndex:a.requestIndex,url:a.url});break;case"resolve":n.clearTracingIfNeeded(a),e.notify(8,{...a,duration:Pt(a.startClocks.timeStamp,jt()),type:na.FETCH,requestBody:a.init?.body});break}})),{stop:()=>i.forEach(s=>s.unsubscribe())}}function Yu(e){e.requestIndex||(e.requestIndex=rq++)}function u1(e){return sc(e)&&e<0?void 0:e}function og(e){return e.nodeType===Node.TEXT_NODE}function aq(e){return e.nodeType===Node.COMMENT_NODE}function Ki(e){return e.nodeType===Node.ELEMENT_NODE}function d1(e){return Ki(e)&&!!e.shadowRoot}function Qm(e){const t=e;return!!t.host&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&Ki(t.host)}function bae(e,t){let n=e.firstChild;for(;n;)t(n),n=n.nextSibling;d1(e)&&t(e.shadowRoot)}function lq(e){return Qm(e)?e.host:e.parentNode}function h1(e){if(e.parentElement)return e.parentElement;const t=e.parentNode;return t&&Qm(t)?t.host:null}var kt;(function(e){e.EVENT="event",e.FIRST_INPUT="first-input",e.LARGEST_CONTENTFUL_PAINT="largest-contentful-paint",e.LAYOUT_SHIFT="layout-shift",e.LONG_TASK="longtask",e.LONG_ANIMATION_FRAME="long-animation-frame",e.NAVIGATION="navigation",e.PAINT="paint",e.RESOURCE="resource",e.VISIBILITY_STATE="visibility-state"})(kt||(kt={}));function Yi(e,t){return new rt(n=>{const r=a=>{const c=dq(a);c.length>0&&n.notify(c)};let i,s=!0;const o=new PerformanceObserver(nt(a=>{s?i=On(()=>r(a.getEntries())):r(a.getEntries())}));return o.observe(t),s=!1,cq(e),()=>{o.disconnect(),Jn(i)}})}let WC;function cq(e){!WC&&uq()&&"addEventListener"in performance&&(WC=Ot(e,performance,"resourcetimingbufferfull",()=>{performance.clearResourceTimings()}))}function uq(){return window.performance!==void 0&&"getEntries"in performance}function qo(e){return PerformanceObserver.supportedEntryTypes.includes(e)}function dq(e){return e.filter(t=>!hq(t))}function hq(e){return e.entryType===kt.RESOURCE&&(!Nl(e.name)||!D8(e))}const f1=100,fq=100,VC="data-dd-excluded-activity-mutations";function ey(e,t,n,r,i,s){const o=pq(e,t,n,r);let a,c=!1;const l=On(nt(()=>O({hadActivity:!1})),f1),d=s!==void 0?On(nt(()=>O({hadActivity:!0,end:jt()})),s):void 0,v=o.subscribe(({isBusy:$})=>{Jn(l),Jn(a);const P=jt();$||(a=On(nt(()=>O({hadActivity:!0,end:P})),fq))}),R=()=>{c=!0,Jn(l),Jn(a),Jn(d),v.unsubscribe()};function O($){c||(R(),i($))}return{stop:R}}function pq(e,t,n,r){return new rt(i=>{const s=[];let o,a=0;return s.push(t.subscribe(l=>{l.every(gq)||c()}),n.subscribe(c),Yi(r,{type:kt.RESOURCE}).subscribe(l=>{l.some(d=>!If(r,d.name))&&c()}),e.subscribe(7,l=>{If(r,l.url)||(o===void 0&&(o=l.requestIndex),a+=1,c())}),e.subscribe(8,l=>{If(r,l.url)||o===void 0||l.requestIndex<o||(a-=1,c())})),()=>{s.forEach(l=>l.unsubscribe())};function c(){i.notify({isBusy:a>0})}})}function If(e,t){return Sa(e.excludedActivityUrls,t)}function gq(e){const t=e.type==="characterData"?e.target.parentElement:e.target;return!!(t&&Ki(t)&&t.matches(`[${VC}], [${VC}] *`))}const ty="data-dd-action-name",p1="Masked Element",mq="::shadow ",ny=[ty,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],yq=[y1,g1],bq=[y1,Iq,m1];function lh(e,t){if(!e.isConnected)return;const n=vq(e),r=[];for(const{rootNode:i,target:s}of n){const o=Cq(s,i,t);if(!o)return;r.push(o)}return r.join(mq)}function vq(e){const t=[];let n=e;for(;n;){const r=n.getRootNode();if(t.push({rootNode:r,target:n}),Qm(r))n=r.host;else break}return t.reverse()}function Cq(e,t,n){let r,i=e;for(;i&&i.nodeName!=="HTML";){const s=GC(i,t,yq,wq,n,r);if(s)return Xu(s,r);const a=GC(i,t,bq,_q,n,r)||Aq(i);r=Xu(a,r),i=i.parentElement}return r}function ry(e){return/[0-9]/.test(e)}function g1(e){if(e.id&&!ry(e.id))return`#${CSS.escape(e.id)}`}function Iq(e){if(e.tagName==="BODY")return;const t=e.classList;for(let n=0;n<t.length;n+=1){const r=t[n];if(!ry(r))return`${CSS.escape(e.tagName)}.${CSS.escape(r)}`}}function m1(e){return CSS.escape(e.tagName)}function y1(e,t){if(t){const r=n(t);if(r)return r}for(const r of ny){const i=n(r);if(i)return i}function n(r){if(e.hasAttribute(r))return`${CSS.escape(e.tagName)}${b1(r,e.getAttribute(r))}`}}function b1(e,t){return`[${e}="${CSS.escape(t)}"]`}function Aq(e){const t=v1(e);return`${CSS.escape(e.tagName)}:nth-of-type(${t})`}function v1(e){let n=e.parentNode.firstElementChild,r=1;for(;n&&n!==e;)n.tagName===e.tagName&&(r+=1),n=n.nextElementSibling;return r}function GC(e,t,n,r,i,s){for(const o of n){const a=o(e,i);if(a&&r(e,t,a,s))return a}}function wq(e,t,n,r){return t.querySelectorAll(Xu(n,r)).length===1}function _q(e,t,n,r){let i;if(r===void 0)i=o=>o.matches(n);else{const o=Xu(`${n}:scope`,r);i=a=>a.querySelector(o)!==null}let s=e.previousElementSibling;for(;s;){if(i(s))return!1;s=s.previousElementSibling}for(s=e.nextElementSibling;s;){if(i(s))return!1;s=s.nextElementSibling}return!0}function Xu(e,t){return t?`${e}>${t}`:e}const ot={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:xs.ALLOW,MASK:xs.MASK,MASK_USER_INPUT:xs.MASK_USER_INPUT,MASK_UNLESS_ALLOWLISTED:xs.MASK_UNLESS_ALLOWLISTED},C1="data-dd-privacy",vae="hidden",Sq="dd-privacy-",Af="***",Cae="data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",Eq={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0},xq="x";function Va(e){return`[${C1}="${e}"], .${Sq}${e}`}
1443function ch(e,t,n){if(n&&n.has(e))return n.get(e);const r=lq(e),i=r?ch(r,t,n):t,s=kq(e),o=Tq(s,i);return n&&n.set(e,o),o}function Tq(e,t){switch(t){case ot.HIDDEN:case ot.IGNORE:return t}switch(e){case ot.ALLOW:case ot.MASK:case ot.MASK_USER_INPUT:case ot.MASK_UNLESS_ALLOWLISTED:case ot.HIDDEN:case ot.IGNORE:return e;default:return t}}function kq(e){if(Ki(e)){if(e.tagName==="BASE")return ot.ALLOW;if(e.tagName==="INPUT"){const t=e;if(t.type==="password"||t.type==="email"||t.type==="tel"||t.type==="hidden")return ot.MASK;const n=t.getAttribute("autocomplete");if(n&&(n.startsWith("cc-")||n.endsWith("-password")))return ot.MASK}if(e.matches(Va(ot.HIDDEN)))return ot.HIDDEN;if(e.matches(Va(ot.MASK)))return ot.MASK;if(e.matches(Va(ot.MASK_UNLESS_ALLOWLISTED)))return ot.MASK_UNLESS_ALLOWLISTED;if(e.matches(Va(ot.MASK_USER_INPUT)))return ot.MASK_USER_INPUT;if(e.matches(Va(ot.ALLOW)))return ot.ALLOW;if(Lq(e))return ot.IGNORE}}function I1(e,t){switch(t){case ot.MASK:case ot.HIDDEN:case ot.IGNORE:return!0;case ot.MASK_UNLESS_ALLOWLISTED:return og(e)?Gc(e.parentNode)?!0:!w1(e.textContent||""):Gc(e);case ot.MASK_USER_INPUT:return og(e)?Gc(e.parentNode):Gc(e);default:return!1}}function Rq(e,t,n,r,i){if(r!==ot.MASK&&r!==ot.MASK_UNLESS_ALLOWLISTED||t===C1||ny.includes(t)||t===i.actionNameAttribute)return!1;switch(t){case"title":case"alt":case"placeholder":case"aria-label":case"name":return!0}return!!(e==="A"&&t==="href"||e==="IFRAME"&&t==="srcdoc"||n&&t.startsWith("data-")||(e==="IMG"||e==="SOURCE")&&(t==="src"||t==="srcset"))}function Gc(e){if(!e||e.nodeType!==e.ELEMENT_NODE)return!1;const t=e;if(t.tagName==="INPUT")switch(t.type){case"button":case"color":case"reset":case"submit":return!1}return!!Eq[t.tagName]}function A1(e){return e.replace(/\S/g,xq)}function Iae(e,t){const n=e.parentElement?.tagName;let r=e.textContent||"";if(n==="HEAD"&&!r.trim())return;const s=t;if(n==="SCRIPT")r=Af;else if(s===ot.HIDDEN)r=Af;else if(I1(e,s))if(n==="DATALIST"||n==="SELECT"||n==="OPTGROUP"){if(!r.trim())return}else n==="OPTION"?r=Af:r=A1(r);return r}function Lq(e){if(e.nodeName==="SCRIPT")return!0;if(e.nodeName==="LINK"){const n=t("rel");return/preload|prefetch/i.test(n)&&t("as")==="script"||n==="shortcut icon"||n==="icon"}if(e.nodeName==="META"){const n=t("name"),r=t("rel"),i=t("property");return/^msapplication-tile(image|color)$/.test(n)||n==="application-name"||r==="icon"||r==="apple-touch-icon"||r==="shortcut icon"||n==="keywords"||n==="description"||/^(og|twitter|fb):/.test(i)||/^(og|twitter):/.test(n)||n==="pinterest"||n==="robots"||n==="googlebot"||n==="bingbot"||e.hasAttribute("http-equiv")||n==="author"||n==="generator"||n==="framework"||n==="publisher"||n==="progid"||/^article:/.test(i)||/^product:/.test(i)||n==="google-site-verification"||n==="yandex-verification"||n==="csrf-token"||n==="p:domain_verify"||n==="verify-v1"||n==="verification"||n==="shopify-checkout-api-token"}function t(n){return(e.getAttribute(n)||"").toLowerCase()}return!1}function w1(e){return!e||!e.trim()?!0:window.$DD_ALLOW?.has(e.toLocaleLowerCase())||!1}function Oq(e,t){return w1(e)?e:t||A1(e)}function _1({lifeCycle:e,isChildEvent:t,onChange:n=Tt}){const r={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},i=e.subscribe(13,s=>{if(!(s.type==="view"||s.type==="vital"||!t(s)))switch(s.type){case qe.ERROR:r.errorCount+=1,n();break;case qe.ACTION:r.actionCount+=1,s.action.frustration&&(r.frustrationCount+=s.action.frustration.type.length),n();break;case qe.LONG_TASK:r.longTaskCount+=1,n();break;case qe.RESOURCE:s._dd?.discarded||(r.resourceCount+=1,n());break}});return{stop:()=>{i.unsubscribe()},eventCounts:r}}const Nq=5*Kn;function uh(e){const t=Ea({expireDelay:Nq}),n=new Map;function r(R){n.delete(R.key),R.eventCounts?.stop()}function i(){n.forEach(R=>{r(R)}),t.reset()}const s=e.subscribe(10,i);function o(R,O,$,P){const T=Xt(),C=t.add(T,O.relative),N=n.get(R);N&&r(N);
1443const x=P?.isChildEvent?_1({lifeCycle:e,isChildEvent:P.isChildEvent(T)}):void 0,S={id:T,key:R,startClocks:O,data:$,historyEntry:C,eventCounts:x};return n.set(R,S),S}function a(R,O,$){const P=n.get(R);if(!P)return;const T=$?ji(P.data,$):P.data;P.historyEntry.close(O.relative);const C=Pt(P.startClocks.timeStamp,O.timeStamp),N=P.eventCounts?.eventCounts;return r(P),{...T,id:P.id,startClocks:P.startClocks,duration:C,counts:N}}function c(R){const O=n.get(R);if(!O)return;const $=O.eventCounts?.eventCounts;return r(O),O.historyEntry.remove(),{...O.data,id:O.id,startClocks:O.startClocks,counts:$}}function l(R){return t.findAll(R)}function d(R){return n.get(R)?.eventCounts?.eventCounts}function v(){s.unsubscribe(),i(),t.stop()}return{start:o,stop:a,discard:c,getCounts:d,findId:l,stopAll:v}}const Pq=["HTML","BODY"],UC=2*oo,jC=ny.concat(["role","type","disabled","readonly","tabindex","draggable","target","rel","download","method","action","enctype","autocomplete"]);function $q(e,t){const n=e.filter(s=>s instanceof Element&&!Pq.includes(s.tagName));if(n.length===0)return"";const r=t?[t].concat(jC):jC;let i="";for(const s of n){const o=Mq(s,r);if(i+=o,i.length>=UC)return cc(i,UC)}return i}function Mq(e,t){const n=m1(e),r=g1(e),i=Dq(e),s=Fq(e,t),o=Bq(e);return`${n}${r||""}${s}${i}${o};`}function Dq(e){return Array.from(e.classList).filter(t=>!ry(t)).sort().map(t=>`.${CSS.escape(t)}`).join("")}function Bq(e){const t=Array.from(e.parentNode.children);if(t.length<=1)return"";const n=t.filter(s=>s.tagName===e.tagName),r=t.indexOf(e),i=v1(e);return`:nth-child(${r+1})${n.length>1?`:nth-of-type(${i})`:""}`}function Fq(e,t){const n=[],r=Array.from(e.attributes);for(const i of r)t.includes(i.name)&&n.push(b1(i.name,i.value));return n.sort().join("")}const S1=En,Hq=100;function Wq(e,t){const n=[];let r=0,i;s(e);function s(c){c.stopObservable.subscribe(o),n.push(c),Jn(i),i=On(a,S1)}function o(){r===1&&n.every(c=>c.isStopped())&&(r=2,t(n))}function a(){Jn(i),r===0&&(r=1,o())}return{tryAppend:c=>r!==0?!1:n.length>0&&!Vq(n[n.length-1].event,c.event)?(a(),!1):(s(c),!0),stop:()=>{a()}}}function Vq(e,t){return e.target===t.target&&Gq(e,t)<=Hq&&e.timeStamp-t.timeStamp<=S1}function Gq(e,t){return Math.sqrt(Math.pow(e.clientX-t.clientX,2)+Math.pow(e.clientY-t.clientY,2))}function Uq(e,t,n=ot.ALLOW){const r=new Map,{actionNameAttribute:i}=t,s=zC(e,ty)||i&&zC(e,i);return s?{name:s,nameSource:"custom_attribute"}:n===ot.MASK?{name:p1,nameSource:"mask_placeholder"}:ZC(e,zq,t,r)||ZC(e,Zq,t,r)||{name:"",nameSource:"blank"}}function zC(e,t){const n=jq(e,`[${t}]`);if(!n)return;const r=n.getAttribute(t);return x1(E1(r.trim()))}function jq(e,t){let n=e;for(;n;){if(n.matches(t))return n;n=h1(n)}return null}const zq=[(e,t,n)=>{if("labels"in e&&e.labels&&e.labels.length>0)return au(e.labels[0],t,n)},e=>{if(e.nodeName==="INPUT"){const t=e,n=t.getAttribute("type");if(n==="button"||n==="submit"||n==="reset")return{name:t.value,nameSource:"text_content"}}},(e,t,n)=>{if(e.nodeName==="BUTTON"||e.nodeName==="LABEL"||e.getAttribute("role")==="button")return au(e,t,n)},(e,t,n)=>Ga(e,"aria-label",t,n),(e,t,n)=>{const r=e.getAttribute("aria-labelledby");if(r)return{name:r.split(/\s+/).map(i=>Yq(e,i)).filter(i=>!!i).map(i=>T1(i,t,n)).join(" "),nameSource:"text_content"}},(e,t,n)=>Ga(e,"alt",t,n),(e,t,n)=>Ga(e,"name",t,n),(e,t,n)=>Ga(e,"title",t,n),(e,t,n)=>Ga(e,"placeholder",t,n),(e,t,n)=>{if("options"in e&&e.options.length>0)return au(e.options[0],t,n)}],Zq=[(e,t,n)=>au(e,t,n)],Kq=10;function ZC(e,t,n,r){let i=e,s=0;for(;s<=Kq&&i&&i.nodeName!=="BODY"&&i.nodeName!=="HTML"&&i.nodeName!=="HEAD";){for(const o of t){const a=o(i,n,r);if(a){const{name:c,nameSource:l}=a,d=c&&c.trim();if(d)return{name:x1(E1(d)),nameSource:l}}}if(i.nodeName==="FORM")break;i=h1(i),s+=1}}function E1(e){return e.replace(/\s+/g," ")}function x1(e){return e.length>100?`${cc(e,100)} [...]`:e}function Yq(e,t){const n=e.getRootNode();if(n instanceof ShadowRoot){const r=n.getElementById(t);if(r)return r}return e.ownerDocument?e.ownerDocument.getElementById(t):null}function Ga(e,t,n,r){const{enablePrivacyForActionName:i,defaultPrivacyLevel:s}=n;let o=e.getAttribute(t);if(o&&i){const a=ch(e,s,r);Rq(e.tagName,t,o,a,n)&&(o=Oq(o,p1))}else o||(o="");return{name:o,nameSource:"standard_attribute"}}
1443function au(e,t,n){return{name:T1(e,t,n)||"",nameSource:"text_content"}}function T1(e,t,n){if(e.isContentEditable)return;const{enablePrivacyForActionName:r,actionNameAttribute:i,defaultPrivacyLevel:s}=t,o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,c);let a="";for(;o.nextNode();){const l=o.currentNode;if(Ki(l)){(l.nodeName==="BR"||l.nodeName==="P"||["block","flex","grid","list-item","table","table-caption"].includes(getComputedStyle(l).display))&&(a+=" ");continue}a+=l.textContent||""}return a.replace(/\s+/g," ").trim();function c(l){const d=ch(l,s,n);if(r&&d&&I1(l,d))return NodeFilter.FILTER_REJECT;if(Ki(l)){if(l.hasAttribute(ty)||i&&l.hasAttribute(i))return NodeFilter.FILTER_REJECT;const v=getComputedStyle(l);if(v.visibility!=="visible"||v.display==="none"||v.contentVisibility&&v.contentVisibility!=="visible")return NodeFilter.FILTER_REJECT}return NodeFilter.FILTER_ACCEPT}}function Xq(e,{onPointerDown:t,onPointerUp:n}){let r,i={selection:!1,input:!1,scroll:!1},s;const o=[Ot(e,window,"pointerdown",a=>{YC(a)&&(r=KC(),i={selection:!1,input:!1,scroll:!1},s=t(a))},{capture:!0}),Ot(e,window,"selectionchange",()=>{(!r||!KC())&&(i.selection=!0)},{capture:!0}),Ot(e,window,"scroll",()=>{i.scroll=!0},{capture:!0,passive:!0}),Ot(e,window,"pointerup",a=>{if(YC(a)&&s){const c=i;n(s,a,()=>c),s=void 0}},{capture:!0}),Ot(e,window,"input",()=>{i.input=!0},{capture:!0})];return{stop:()=>{o.forEach(a=>a.stop())}}}function KC(){const e=window.getSelection();return!e||e.isCollapsed}function YC(e){return e.target instanceof Element&&e.isPrimary!==!1}const XC=3;function Jq(e,t){if(qq(e))return t.addFrustration(vs.RAGE_CLICK),e.some(JC)&&t.addFrustration(vs.DEAD_CLICK),t.hasError&&t.addFrustration(vs.ERROR_CLICK),{isRage:!0};const n=e.some(r=>r.getUserActivity().selection);return e.forEach(r=>{r.hasError&&r.addFrustration(vs.ERROR_CLICK),JC(r)&&!n&&r.addFrustration(vs.DEAD_CLICK)}),{isRage:!1}}function qq(e){if(e.some(t=>t.getUserActivity().selection||t.getUserActivity().scroll))return!1;for(let t=0;t<e.length-(XC-1);t+=1)if(e[t+XC-1].event.timeStamp-e[t].event.timeStamp<=En)return!0;return!1}const Qq='input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="range"]),textarea,select,[contenteditable],[contenteditable] *,canvas,a[href],a[href] *';function JC(e){if(e.hasPageActivity||e.getUserActivity().input||e.getUserActivity().scroll)return!1;let t=e.event.target;return t.tagName==="LABEL"&&t.hasAttribute("for")&&(t=document.getElementById(t.getAttribute("for"))),!t||!t.matches(Qq)}const k1=10*En,sl=new Map;function eQ(e){const t=sl.get(e);return sl.delete(e),t}function R1(e,t){sl.set(e,t),sl.forEach((n,r)=>{Pt(r,qn())>k1&&sl.delete(r)})}function L1(e){return t=>t.action!==void 0&&t.action.id!==void 0&&t.action.id.includes(e)}function tQ(e,t,n,r){const i=uh(e),s=new rt;let o;e.subscribe(5,l),e.subscribe(11,l);const{stop:a}=Xq(r,{onPointerDown:d=>nQ(r,e,t,d,n),onPointerUp:({clickActionBase:d,hadActivityOnPointerDown:v},R,O)=>{rQ(r,e,t,n,i,s,c,d,R,O,v)}});return{stop:()=>{l(),s.notify(),a(),i.stopAll()},findActionId:i.findId};function c(d){if(!o||!o.tryAppend(d)){const v=d.clone();o=Wq(d,R=>{oQ(R,v),o=void 0})}}function l(){o&&o.stop()}}function nQ(e,t,n,r,i){let s;if(e.enablePrivacyForActionName?s=ch(O1(r),e.defaultPrivacyLevel):s=ot.ALLOW,s===ot.HIDDEN)return;const o=iQ(r,s,e);let a=!1;return ey(t,n,i,e,c=>{a=c.hadActivity},f1),{clickActionBase:o,hadActivityOnPointerDown:()=>a}}function rQ(e,t,n,r,i,s,o,a,c,l,d){const v=N1(t,i,l,a,c);o(v);const R=a?.target?.selector;R&&R1(c.timeStamp,R);const{stop:O}=ey(t,n,r,e,C=>{C.hadActivity&&C.end<v.startClocks.timeStamp?v.discard():C.hadActivity?v.stop(C.end):d()?v.stop(v.startClocks.timeStamp):v.stop()},k1),$=t.subscribe(5,({endClocks:C})=>{v.stop(C.timeStamp)}),P=t.subscribe(11,()=>{v.stop(jt())}),T=s.subscribe(()=>{v.stop()});v.stopObservable.subscribe(()=>{P.unsubscribe(),$.unsubscribe(),O(),T.unsubscribe()})}function iQ(e,t,n){const r=O1(e),i=r.getBoundingClientRect(),s=lh(r,n.actionNameAttribute),o=$q(e.composedPath(),n.actionNameAttribute);s&&R1(e.timeStamp,s);const{name:a,nameSource:c}=Uq(r,n,t);return{type:qm.CLICK,target:{width:Math.round(i.width),height:Math.round(i.height),selector:s,composedPathSelector:o||void 0},position:{x:Math.round(e.clientX-i.left),y:Math.round(e.clientY-i.top)},name:a,nameSource:c}}function O1(e){if(e.composed&&d1(e.target)&&typeof e.composedPath=="function"){const t=e.composedPath();if(t.length>0&&t[0]instanceof Element)return t[0]}return e.target}function N1(e,t,n,r,i){const s=Xt(),o=ac(i.timeStamp),a=t.start(s,o,r,{isChildEvent:L1});e.notify(15,a);let c=0,l;const d=[],v=new rt;function R(O){c===0&&(c=1,l=O?t.stop(s,tx(O)):t.discard(s),v.notify())}return{event:i,stop:R,stopObservable:v,get hasError(){const O=l?.counts??t.getCounts(s);return O?O.errorCount>0:!1},get hasPageActivity(){return l&&"duration"in l},getUserActivity:n,addFrustration:O=>{d.push(O)},get startClocks(){return o},isStopped:()=>c===1||c===2,clone:()=>
1443N1(e,t,n,r,i),validate:O=>{if(R(),c!==1||!l)return;const $={frustrationTypes:d,events:O??[i],event:i,...l,counts:l.counts};e.notify(0,$),c=2},discard:()=>{R(),c=2}}}function oQ(e,t){const{isRage:n}=Jq(e,t);n?(e.forEach(r=>r.discard()),t.stop(jt()),t.validate(e.map(r=>r.event))):(t.discard(),e.forEach(r=>r.validate()))}function sQ(e,t){const n=uh(e);function r(o,a={},c=_t()){const l=a.actionKey??o,d=n.start(l,c,{name:o,...a},{isChildEvent:L1});e.notify(15,d)}function i(o,a={},c=_t()){const l=a.actionKey??o,d=n.stop(l,c,a);if(!d)return;const v=[];d.counts&&d.counts.errorCount>0&&v.push(vs.ERROR_CLICK);const R={...d,type:d.type||qm.CUSTOM,frustrationTypes:v};t(R)}function s(o){t({id:Xt(),frustrationTypes:[],...o})}return{addAction:s,startAction:r,stopAction:i,findActionId:n.findId,stop:n.stopAll}}const aQ=1;function lQ(e,t,n,r,i){const{unsubscribe:s}=e.subscribe(0,l=>{e.notify(12,qC(l))});let o;i.trackUserInteractions&&(o=tQ(e,n,r,i));const a=sQ(e,l=>{e.notify(12,qC(l))}),c={findActionId:l=>{const d=a.findActionId(l),v=o?.findActionId(l)??[];return d.concat(v)}};return t.register(0,({startTime:l,eventType:d})=>{if(d!==qe.ERROR&&d!==qe.RESOURCE&&d!==qe.LONG_TASK)return Nn;const v=d===qe.LONG_TASK?lc(l,aQ):l,R=c.findActionId(v);return R.length?{type:d,action:{id:R}}:Nn}),t.register(1,({startTime:l})=>({action:{id:c.findActionId(l)}})),{addAction:a.addAction,startAction:a.startAction,stopAction:a.stopAction,actionContexts:c,stop:()=>{s(),a.stop(),o?.stop()}}}function qC(e){const t=cQ(e),n=u1(Qe(e.duration));return{rawRumEvent:{type:qe.ACTION,date:e.startClocks.timeStamp,action:{id:e.id,target:{name:e.name},type:e.type,...n!==void 0&&{loading_time:n},...e.counts&&{error:{count:e.counts.errorCount},long_task:{count:e.counts.longTaskCount},resource:{count:e.counts.resourceCount}},frustration:{type:e.frustrationTypes}},...t?{_dd:{action:{target:{selector:e.target?.selector||void 0,width:e.target?.width||void 0,height:e.target?.height||void 0,composed_path_selector:e.target?.composedPathSelector},position:e.position,name_source:e.nameSource}}}:{context:e.context}},duration:e.duration,startClocks:e.startClocks,domainContext:t?{events:e.events}:{handlingStack:e.handlingStack}}}function cQ(e){return"events"in e}function uQ(e,t){const n=F7(e,[Ol.cspViolation,Ol.intervention]).subscribe(r=>t.notify(r));return{stop:()=>{n.unsubscribe()}}}function dQ(e,t,n){const r=new rt;return n.subscribe(({data:i,type:s})=>{s===0?r.notify(i):s===3&&i.api===oc.error&&r.notify(i.error)}),uQ(t,r),r.subscribe(i=>e.notify(14,{error:i})),hQ(e)}function hQ(e){return e.subscribe(14,({error:t})=>{e.notify(12,fQ(t))}),{addError:({error:t,handlingStack:n,componentStack:r,startClocks:i,context:s})=>{const o=jm({originalError:t,handlingStack:n,componentStack:r,startClocks:i,nonErrorPrefix:"Provided",source:Ia.CUSTOM,handling:"handled"});o.context=ji(o.context,s),e.notify(14,{error:o})}}}function fQ(e){const t={date:e.startClocks.timeStamp,error:{id:Xt(),message:e.message,source:e.source,stack:e.stack,handling_stack:e.handlingStack,component_stack:e.componentStack,type:e.type,handling:e.handling,causes:e.causes,source_type:"browser",fingerprint:e.fingerprint,csp:e.csp},type:qe.ERROR,context:e.context},n={error:e.originalError,handlingStack:e.handlingStack};return{rawRumEvent:t,startClocks:e.startClocks,domainContext:n}}const pQ=2*Kn;function gQ(e){const t=mQ(e)||yQ(e);if(!(!t||t.traceTime<=ma()-pQ))return t.traceId}function mQ(e){const t=e.querySelector("meta[name=dd-trace-id]"),n=e.querySelector("meta[name=dd-trace-time]");return P1(t&&t.content,n&&n.content)}function yQ(e){const t=bQ(e);if(t)return P1(qp(t,"trace-id"),qp(t,"trace-time"))}function P1(e,t){const n=t&&Number(t);if(!(!e||!n))return{traceId:e,traceTime:n}}function bQ(e){for(let t=0;t<e.childNodes.length;t+=1){const n=QC(e.childNodes[t]);if(n)return n}if(e.body)for(let t=e.body.childNodes.length-1;t>=0;t-=1){const n=e.body.childNodes[t],r=QC(n);if(r)return r;if(!og(n))break}}function QC(e){if(e&&aq(e)){const t=/^\s*DATADOG;(.*?)\s*$/.exec(e.data);if(t)return t[1]}}function iy(){if(qo(kt.NAVIGATION)){const n=performance.getEntriesByType(kt.NAVIGATION)[0];if(n)return n}const e=vQ(),t={entryType:kt.NAVIGATION,initiatorType:"navigation",name:window.location.href,startTime:0,duration:e.loadEventEnd,decodedBodySize:0,encodedBodySize:0,transferSize:0,workerStart:0,toJSON:()=>({...t,toJSON:void 0}),...e};return t}function vQ(){const e={},t=performance.timing;for(const n in t)if(sc(t[n])){const r=n,i=t[r];e[r]=i===0?0:rx(i)}return e}function $1(e){return e.responseStart>=0&&e.responseStart<=qn()?e.responseStart:void 0}function CQ(){if(qo(kt.RESOURCE))return performance.getEntriesByType(kt.RESOURCE)}function IQ(e,t){const n=CQ();if(n)return ox(n,r=>r.name===e&&r.startTime<=t)}const AQ=1e3;function wQ(e){const t=new Set;let n=!1;const r=e.subscribe(8,i=>{if(t.add(i),t.size>AQ){const s=t.values().next().value;if(!n){n=!0;let o;if(ai(ur.TOO_MANY_REQUESTS_INVESTIGATION)){let a=0,c=0,l=0,d=0;for(const R of t)R.isAborted&&a++,R.isAbortedOnStart&&c++,R.type===na.XHR&&l++,performance.getEntriesByName(R.url,"resource").some(P=>P.startTime>=R.startClocks.relative)||d++;const v=jt()-s.startClocks.timeStamp;o={abortedCount:a,abortedOnStartCount:c,xhrCount:l,fetchCount:t.size-l,oldestRequestAge:v,oldestRequestEndAge:v-s.duration,withoutMatchingEntryCount:d}}Ho("Too many requests",o)}t.delete(s)}});return{getMatchingRequest(i){let s=1/0,o;for(const a of t){const c=i.startTime-a.startClocks.relative;0<=c&&c<s&&a.url===i.name&&(s=Math.abs(c),o=a)}return o&&t.delete(o),o},stop(){r.unsubscribe()}}}function _Q(e,t){function n(i,s={},o=_t()){const a=s.resourceKey??i;t.start(a,o,{url:i,...s})}function r(i,s={},o=_t()){const a=s.resourceKey??i,c=t.stop(a,o,{context:s.context,type:s.type});if(!c)return;const l=Pt(c.startClocks.relative,o.relative),d={date:c.startClocks.timeStamp,type:qe.RESOURCE,resource:{id:c.id,type:c.type||Dn.OTHER,url:s1(c.url),duration:Qe(l),method:c.method,status_code:s.statusCode,size:s.size},_dd:{},context:c.context};e.notify(12,{rawRumEvent:d,startClocks:c.startClocks,duration:l,domainContext:{isManual:!0}})}return{startResource:n,stopResource:r}}function SQ(e,t){const n=b6(),r=wQ(e),i=Yi(t,{type:kt.RESOURCE,buffered:!0}).subscribe(l=>{for(const d of l)o(()=>eI(d,r,t))}),{stop:s}=Ym(t,"interactive",()=>{o(()=>eI(iy(),r,t))});function o(l){n.push(()=>{const d=l();d&&e.notify(12,d)})}const a=uh(e),c=_Q(e,a);return{startResource:c.startResource,stopResource:c.stopResource,stop:()=>{s(),n.stop(),i.unsubscribe(),a.stopAll()}}}function eI(e,t,n){const r=P8(e)?t.getMatchingRequest(e):void 0,i=r?kQ(r,n):RQ(e,n);if(!n.trackResources&&!i)return;const s=ac(e.startTime),o=$8(e),a=OQ(r,n),c=ji({date:s.timeStamp,resource:{id:Xt(),duration:Qe(o),type:N8(e),method:r?.method,status_code:r?r.status:LQ(e.responseStatus),url:r?s1(r.url):e.name,protocol:H8(e),delivery_type:W8(e),graphql:r&&EQ(r,n),render_blocking_status:e.renderBlockingStatus,...V8(e),...M8(e)},type:qe.RESOURCE,_dd:{discarded:!n.trackResources}},i,xQ(e),a);return{startClocks:s,duration:o,rawRumEvent:c,domainContext:TQ(e,r)}}function EQ(e,t){const n=c1(e.url,t);if(n)return X8(e,n)}function xQ(e){const t=e.contentType;if(t)return{resource:{response:{headers:{"content-type":t}}}}}function TQ(e,t){return{performanceEntry:e,isManual:!1,isAborted:t?t.isAborted:!1,handlingStack:t?.handlingStack,requestInit:t?.init,requestInput:t?.input,response:t?.response,error:t?.error,xhr:t?.xhr}}function kQ(e,t){if(e.traceSampled&&e.traceId&&e.spanId)return{_dd:{span_id:e.spanId.toString(),trace_id:e.traceId.toString(),rule_psr:t.rulePsr}}}function RQ(e,t){if(e.initiatorType!=="navigation")return;const n=gQ(document);if(n)return{_dd:{trace_id:n,span_id:a1().toString(),rule_psr:t.rulePsr}}}function LQ(e){return e===0?void 0:e}function OQ(e,t){const n=t.trackResourceHeaders;if(n.length===0||!e)return;const r=n.filter(c=>c.url!==void 0?Sa([c.url],e.url,!0):!0);if(r.length===0)return;const i=r.filter(c=>c.location===void 0||c.location==="any"||c.location==="response"),s=r.filter(c=>c.location===void 0||c.location==="any"||c.location==="request"),o=i.length>0?NQ(e,i):void 0,a=s.length>0?PQ(e,s):void 0;if(!(!o&&!a))return{resource:{request:a?{headers:a}:void 0,response:o?{headers:o}:void 0}}}function NQ(e,t){if(e.type===na.FETCH&&e.response)return sg(e.response.headers,t);if(e.type===na.XHR&&e.xhr){const n=e.xhr.getAllResponseHeaders();if(n)try{return sg(new Headers(MQ(n)),t)}catch{}}}function PQ(e,t){if(e.type!==na.FETCH)return;let n;return e.init?.headers?n=new Headers(e.init.headers):e.input instanceof Request&&(n=e.input.headers),n?sg(n,t):void 0}const $Q=/(token|cookie|secret|authorization|(api|secret|access|app).?key|(client|connecting|real).?ip|forwarded)/,tI=100,Uc=128;function sg(e,t){const n={};let r=0,i=0,s=!1;return e.forEach((o,a)=>
1443{if(i++,r>=tI){s||(Ke.warn(`Maximum number of headers (${tI}) has been reached. Further headers are dropped.`),s=!0);return}const c=a.toLowerCase();if($Q.test(c))return;const l=t.find(R=>Sa([R.name],c));if(!l)return;const{extractor:d}=l,v=d?r1(o,d):o;v!==void 0&&(v.length>Uc&&(Ke.warn(`Header "${c}" value was truncated from ${v.length} to ${Uc} characters.`),Ho("Resource header value was truncated",{header_name:c,original_length:v.length,limit:Uc})),n[c]=cc(v,Uc),r++)}),s&&Ho("Maximum number of resource headers reached",{collectedHeaderCount:r,totalHeaderCount:i}),r>0?n:void 0}function MQ(e){const t=[],n=e.trim().split(/\r\n/);for(const r of n){const i=r.indexOf(":");i>0&&t.push([r.substring(0,i).trim(),r.substring(i+1).trim()])}return t}function DQ(e,t,n){const{stop:r,eventCounts:i}=_1({lifeCycle:e,isChildEvent:s=>s.view.id===t,onChange:n});return{stop:r,eventCounts:i}}const BQ=10*Kn;function FQ(e,t,n){return{stop:Yi(e,{type:kt.PAINT,buffered:!0}).subscribe(i=>{const s=i.find(o=>o.name==="first-contentful-paint"&&o.startTime<t.timeStamp&&o.startTime<BQ);s&&n(s.startTime)}).unsubscribe}}function HQ(e,t){requestAnimationFrame(()=>{requestAnimationFrame(()=>{t(Pt(e,qn()))})})}function WQ(e,t){return UQ(e,()=>{const n=iy();GQ(n)||t(VQ(n))})}function VQ(e){return{domComplete:e.domComplete,domContentLoaded:e.domContentLoadedEventEnd,domInteractive:e.domInteractive,loadEvent:e.loadEventEnd,firstByte:$1(e)}}function GQ(e){return e.loadEventEnd<=0}function UQ(e,t){let n;const{stop:r}=Ym(e,"complete",()=>{n=On(()=>t())});return{stop:()=>{r(),Jn(n)}}}const jQ=10*Kn;function zQ(e,t,n,r){let i=1/0;const{stop:s}=wa(e,n,["pointerdown","keydown"],c=>{i=c.timeStamp},{capture:!0,once:!0});let o=0;const a=Yi(e,{type:kt.LARGEST_CONTENTFUL_PAINT,buffered:!0}).subscribe(c=>{const l=ox(c,d=>d.entryType===kt.LARGEST_CONTENTFUL_PAINT&&d.startTime<i&&d.startTime<t.timeStamp&&d.startTime<jQ&&d.size>o);if(l){let d;l.element&&(d=lh(l.element,e.actionNameAttribute));const v=ZQ(l),R=l.startTime,O=KQ(v,R);r({value:R,targetSelector:d,resourceUrl:v,subParts:O}),o=l.size}});return{stop:()=>{s(),a.unsubscribe()}}}function ZQ(e){return e.url===""?void 0:e.url}function KQ(e,t){const n=$1(iy());if(n===void 0)return;const r=e?IQ(e,t):void 0,i=r?Math.max(n,r.requestStart||r.startTime):n,s=Math.min(t,Math.max(i,r?.responseEnd||0));return{loadDelay:i-n,loadTime:s-i,renderDelay:t-s}}function M1(e,t,n=window){if(document.visibilityState==="hidden")return{timeStamp:0,stop:Tt};if(qo(kt.VISIBILITY_STATE)){const s=performance.getEntriesByType(kt.VISIBILITY_STATE).filter(o=>o.name==="hidden").find(o=>o.startTime>=t.relative);if(s)return{timeStamp:s.startTime,stop:Tt}}let r=1/0;const{stop:i}=wa(e,n,["pagehide","visibilitychange"],s=>{(s.type==="pagehide"||document.visibilityState==="hidden")&&(r=s.timeStamp,i())},{capture:!0});return{get timeStamp(){return r},stop:i}}function YQ(e,t,n,r){const i={},{stop:s}=WQ(e,d=>{n(d.loadEvent),i.navigationTimings=d,r()}),o=M1(e,t),{stop:a}=FQ(e,o,d=>{i.firstContentfulPaint=d,r()}),{stop:c}=zQ(e,o,window,d=>{i.largestContentfulPaint=d,r()});function l(){s(),a(),c(),o.stop()}return{stop:l,initialViewMetrics:i}}const ag=(e,t)=>e*t,XQ=(e,t)=>{const n=Math.max(e.left,t.left),r=Math.max(e.top,t.top),i=Math.min(e.right,t.right),s=Math.min(e.bottom,t.bottom);return n>=i||r>=s?0:ag(i-n,s-r)},nI=e=>{const t=ag(e.previousRect.width,e.previousRect.height),n=ag(e.currentRect.width,e.currentRect.height),r=XQ(e.previousRect,e.currentRect);return t+n-r};function JQ(e,t,n){if(!nee())return{stop:Tt};let r=0,i;n({value:0});const s=tee(),o=Yi(e,{type:kt.LAYOUT_SHIFT,buffered:!0}).subscribe(a=>{for(const c of a){if(c.hadRecentInput||c.startTime<t)continue;const{cumulatedValue:l,isMaxValue:d}=s.update(c);if(d){const v=qQ(c.sources);i={target:v?.node?new WeakRef(v.node):void 0,time:Pt(t,c.startTime),previousRect:v?.previousRect,currentRect:v?.currentRect,devicePixelRatio:window.devicePixelRatio}}if(l>r){r=l;const v=i?.target?.deref();n({value:Ss(r,4),targetSelector:v&&lh(v,e.actionNameAttribute),time:i?.time,previousRect:i?.previousRect?rI(i.previousRect):void 0,currentRect:i?.currentRect?rI(i.currentRect):void 0,devicePixelRatio:i?.devicePixelRatio})}}});return{stop:()=>{o.unsubscribe()}}}function qQ(e){let t;for(const n of e)if(n.node&&Ki(n.node)){const r=nI(n);(!t||nI(t)<r)&&(t=n)}return t}function rI({x:e,y:t,width:n,height:r}){return{x:e,y:t,width:n,height:r}}const QQ=5*En,eee=En;
1443function tee(){let e=0,t,n,r=0;return{update:i=>{const s=t===void 0||i.startTime-n>=eee||i.startTime-t>=QQ;let o;return s?(t=n=i.startTime,r=e=i.value,o=!0):(e+=i.value,n=i.startTime,o=i.value>r,o&&(r=i.value)),{cumulatedValue:e,isMaxValue:o}}}}function nee(){return qo(kt.LAYOUT_SHIFT)&&"WeakRef"in window}let lu,D1=0,wf=1/0,_f=0;function ree(){"interactionCount"in performance||lu||(lu=new window.PerformanceObserver(nt(e=>{e.getEntries().forEach(t=>{const n=t;n.interactionId&&(wf=Math.min(wf,n.interactionId),_f=Math.max(_f,n.interactionId),D1=(_f-wf)/7+1)})})),lu.observe({type:"event",buffered:!0,durationThreshold:0}))}const iI=()=>lu?D1:window.performance.interactionCount||0,oI=10,iee=1*Kn,oee=8;function see(e,t,n){if(!uee())return{getInteractionToNextPaint:()=>{},setViewEnd:Tt,stop:Tt};let r=1/0,i;const{getViewInteractionCount:s,stopViewInteractionCount:o}=lee(n),a=aee(s),c=cee(a),l=Yi(e,{type:kt.FIRST_INPUT,buffered:!0}).subscribe(v),d=Yi(e,{type:kt.EVENT,durationThreshold:40,buffered:!0}).subscribe(v);function v(O){for(const P of O)P.interactionId&&P.startTime>=t&&P.startTime<=r&&(a.process(P),c.process(P));c.pruneUntracked();const $=a.estimateP98Interaction();$&&R($)}function R(O){const $=Pt(t,O.startTime);if(!i||O.duration!==i.duration||$!==i.startTime){let P=eQ(O.startTime);!P&&O.target&&Ki(O.target)&&(P=lh(O.target,e.actionNameAttribute)),i={duration:O.duration,startTime:$,targetSelector:P}}i.subParts=c.computeSubParts(O,sI(i.duration))}return{getInteractionToNextPaint:()=>{if(i)return{value:sI(i.duration),targetSelector:i.targetSelector,time:i.startTime,subParts:i.subParts};if(s())return{value:0}}
1443,setViewEnd:O=>{r=O,o()},stop:()=>{d.unsubscribe(),l.unsubscribe(),c.stop()}}}function aee(e){const t=[];function n(){t.sort((r,i)=>i.duration-r.duration).splice(oI)}return{process(r){const i=t.findIndex(o=>r.interactionId===o.interactionId),s=t[t.length-1];i!==-1?r.duration>t[i].duration&&(t[i]=r,n()):(t.length<oI||r.duration>s.duration)&&(t.push(r),n())},estimateP98Interaction(){const r=Math.min(t.length-1,Math.floor(e()/50));return t[r]},isTracked(r){return t.some(i=>i.interactionId===r)}}}function lee(e){ree();const t=e===ii.INITIAL_LOAD?0:iI();let n={stopped:!1};function r(){return iI()-t}return{getViewInteractionCount:()=>n.stopped?n.interactionCount:r(),stopViewInteractionCount:()=>{n={stopped:!0,interactionCount:r()}}}}function cee(e){const t=new Map;function n(r,i){r.startTime=Math.min(i.startTime,r.startTime),r.processingStart=Math.min(i.processingStart,r.processingStart),r.processingEnd=Math.max(i.processingEnd,r.processingEnd)}return{process(r){if(r.interactionId===void 0||!r.processingStart||!r.processingEnd)return;const i=r.startTime+r.duration,s=t.get(r.interactionId);if(s){n(s,r);return}for(const[,o]of t.entries())if(Math.abs(i-o.referenceRenderTime)<=oee){n(o,r),t.set(r.interactionId,o);return}t.set(r.interactionId,{startTime:r.startTime,processingStart:r.processingStart,processingEnd:r.processingEnd,referenceRenderTime:i})},pruneUntracked(){for(const[r]of t)e.isTracked(r)||t.delete(r)},computeSubParts(r,i){if(!r.processingStart||!r.processingEnd||r.interactionId===void 0)return;const s=t.get(r.interactionId);if(!s)return;const o=Math.max(s.startTime+i,s.processingStart),a=Math.min(s.processingEnd,o);return{inputDelay:Pt(s.startTime,s.processingStart),processingDuration:Pt(s.processingStart,a),presentationDelay:Pt(a,o)}},stop(){t.clear()}}}function uee(){return qo(kt.EVENT)&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype}function sI(e){return Math.min(e,iee)}function dee(e,t,n,r,i,s,o){let a=i===ii.INITIAL_LOAD,c=!0;const l=[],d=M1(r,s);function v(){if(!c&&!a&&l.length>0){const O=Math.max(...l);O<d.timeStamp-s.relative&&o(O)}}const{stop:R}=ey(e,t,n,r,O=>{c&&(c=!1,O.hadActivity&&l.push(Pt(s.timeStamp,O.end)),v())});return{stop:()=>{R(),d.stop()},setLoadEvent:O=>{a&&(a=!1,l.push(O),v())}}}function Aae(){let e;const t=window.visualViewport;return t?e=t.pageLeft-t.offsetLeft:window.scrollX!==void 0?e=window.scrollX:e=window.pageXOffset||0,Math.round(e)}function hee(){let e;const t=window.visualViewport;return t?e=t.pageTop-t.offsetTop:window.scrollY!==void 0?e=window.scrollY:e=window.pageYOffset||0,Math.round(e)}let Sf;function fee(e){return Sf||(Sf=pee(e)),Sf}function pee(e){return new rt(t=>{const{throttled:n}=th(()=>{t.notify(oy())},200);return Ot(e,window,"resize",n,{capture:!0,passive:!0}).stop})}function oy(){const e=window.visualViewport;return e?{width:Number(e.width*e.scale),height:Number(e.height*e.scale)}:{width:Number(window.innerWidth||0),height:Number(window.innerHeight||0)}}const gee=En;function mee(e,t,n,r=bee(e)){let i=0,s=0,o=0;const a=r.subscribe(({scrollDepth:c,scrollTop:l,scrollHeight:d})=>{let v=!1;if(c>i&&(i=c,v=!0),d>s){s=d;const R=qn();o=Pt(t.relative,R),v=!0}v&&n({maxDepth:Math.min(i,s),maxDepthScrollTop:l,maxScrollHeight:s,maxScrollHeightTime:o})});return{stop:()=>a.unsubscribe()}}function yee(){const e=hee(),{height:t}=oy(),n=Math.round((document.scrollingElement||document.documentElement).scrollHeight),r=Math.round(t+e);return{scrollHeight:n,scrollDepth:r,scrollTop:e}}function bee(e,t=gee){return new rt(n=>{function r(){n.notify(yee())}const i=th(r,t,{leading:!1,trailing:!0}),s=document.scrollingElement||document.documentElement,o=new ResizeObserver(nt(i.throttled));s&&o.observe(s);const a=Ot(e,window,"scroll",i.throttled,{passive:!0});return()=>{i.cancel(),o.disconnect(),a.stop()}})}function vee(e,t,n,r,i,s,o){const a={};let c=!1,l=!1;const{stop:d,setLoadEvent:v}=dee(e,t,n,r,s,o,C=>{c||(a.loadingTime=C,i())}),{stop:R}=mee(r,o,C=>{a.scroll=C}),{stop:O}=JQ(r,o.relative,C=>{a.cumulativeLayoutShift=C,i()}),{stop:$,getInteractionToNextPaint:P,setViewEnd:T}=see(r,o.relative,s);return{stop:()=>{d(),O(),R()},stopINPTracking:$,setLoadEvent:v,setViewEnd:C=>{l=!0,T(C)},getCommonViewMetrics:()=>
1443(a.interactionToNextPaint=P(),a),setLoadingTime:C=>{if(l)return;const N=Pt(o.timeStamp,C??jt());c||d(),c=!0,a.loadingTime=N,i()}}}function Cee(e,t){const{stop:n}=Ot(e,window,"pageshow",r=>{r.persisted&&t(r)},{capture:!0});return n}function Iee(e,t,n){HQ(e.relative,r=>{t.firstContentfulPaint=r,t.largestContentfulPaint={value:r},n()})}const Aee=3e3,wee=5*Kn,_ee=5*Kn;function See(e,t,n,r,i,s,o){const a=new Set;let c=v(ii.INITIAL_LOAD,nx(),o),l;R();let d;s&&(d=O(i),l=Cee(r,$=>{c.end();const P=ac($.timeStamp);c=v(ii.BF_CACHE,P,void 0)}));function v($,P,T){const C=Eee(e,t,n,r,$,P,T);return a.add(C),C.stopObservable.subscribe(()=>{a.delete(C)}),C}function R(){e.subscribe(10,$=>{const P=c.contextManager.getContext();$&&(P.is_session_renewal=!0,P.renew_event=$),c=v(ii.SESSION_RENEWAL,void 0,{name:c.name,service:c.service,version:c.version,context:P})}),e.subscribe(9,()=>{c.end({sessionIsActive:!1})})}function O($){return $.subscribe(({oldLocation:P,newLocation:T})=>{Tee(P,T)&&(c.end(),c=v(ii.ROUTE_CHANGE))})}return{addTiming:($,P=jt())=>{c.addTiming($,P)},setLoadingTime:$=>c.setLoadingTime($),startView:($,P)=>{c.end({endClocks:P}),c=v(ii.ROUTE_CHANGE,P,$)},setViewContext:$=>{c.contextManager.setContext($)},setViewContextProperty:($,P)=>{c.contextManager.setContextProperty($,P)},setViewName:$=>{c.setViewName($)},getViewContext:()=>c.contextManager.getContext(),stop:()=>{d&&d.unsubscribe(),l&&l(),c.end(),a.forEach($=>$.stop())}}}function Eee(e,t,n,r,i,s=_t(),o){const a=Xt(),c=new rt,l={};let d=0,v;const R=Rl(window.location),O=sh();let $=!0,P=o?.name;const T=o?.service||r.service,C=o?.version||r.version,N=o?.context,x=o?.handlingStack;N&&O.setContext(N);const S={id:a,name:P,startClocks:s,service:T,version:C,context:N,url:o?.url};e.notify(1,S),e.notify(2,S);const{throttled:b,cancel:p}=th(j,Aee,{leading:!1}),{setLoadEvent:g,setViewEnd:u,stop:y,stopINPTracking:m,getCommonViewMetrics:I,setLoadingTime:_}=vee(e,t,n,r,B,i,s),{stop:h,initialViewMetrics:f}=i===ii.INITIAL_LOAD?YQ(r,s,g,B):{stop:Tt,initialViewMetrics:{}};i===ii.BF_CACHE&&Iee(s,f,B);const{stop:w,eventCounts:E}=DQ(e,a,B),k=ba(j,wee),L=e.subscribe(11,z=>{z.reason===ol.UNLOADING&&j()});j(),O.changeObservable.subscribe(B);function M(){e.notify(3,{id:a,name:P,context:O.getContext(),startClocks:s,sessionIsActive:$})}function B(){M(),b()}function j(){p(),M(),d+=1;const z=v===void 0?jt():v.timeStamp;e.notify(4,{customTimings:l,documentVersion:d,id:a,name:P,service:T,version:C,context:O.getContext(),loadingType:i,location:R,handlingStack:x,startClocks:s,commonViewMetrics:I(),initialViewMetrics:f,duration:Pt(s.timeStamp,z),isActive:v===void 0,sessionIsActive:$,eventCounts:E})}return{get name(){return P},service:T,version:C,contextManager:O,stopObservable:c,end(z={}){v||(v=z.endClocks??_t(),$=z.sessionIsActive??!0,e.notify(5,{endClocks:v}),e.notify(6,{endClocks:v}),eh(k),u(v.relative),y(),L.unsubscribe(),j(),On(()=>{this.stop()},_ee))},stop(){h(),w(),m(),c.notify()},addTiming(z,Q){if(v)return;const D=xX(Q)?Q:Pt(s.timeStamp,Q);l[xee(z)]=D,B()},setLoadingTime:_,setViewName(z){P=z,j()}}}function xee(e){const t=e.replace(/[^a-zA-Z0-9-_.@$]/g,"_");return t!==e&&Ke.warn(`Invalid timing name: ${e}, sanitized to: ${t}`),t}function Tee(e,t){return e.pathname!==t.pathname||!kee(t.hash)&&aI(t.hash)!==aI(e.hash)}function kee(e){const t=e.substring(1);return t!==""&&!!document.getElementById(t)}function aI(e){const t=e.indexOf("?");return t<0?e:e.slice(0,t)}function Ree(e,t,n,r,i,s,o,a,c){return e.subscribe(4,l=>e.notify(12,Lee(l,n,o))),t.register(0,({startTime:l,eventType:d})=>{const v=a.findView(l);return v?{type:d,service:v.service,version:v.version,context:v.context,view:{id:v.id,name:v.name}}:Zi}),t.register(1,({startTime:l})=>({view:{id:a.findView(l)?.id}})),See(e,r,i,n,s,!n.trackViewsManually,c)}function Lee(e,t,n){const r=n.getReplayStats(e.id),i=e.commonViewMetrics?.cumulativeLayoutShift?.devicePixelRatio,s={_dd:{document_version:e.documentVersion,replay_stats:r,cls:i?{device_pixel_ratio:i}:void 0,configuration:{start_session_replay_recording_manually:t.startSessionReplayRecordingManually}},date:e.startClocks.timeStamp,type:qe.VIEW,view:{action:{count:e.eventCounts.actionCount},frustration:{count:e.eventCounts.frustrationCount},cumulative_layout_shift:e.commonViewMetrics.cumulativeLayoutShift?.value,cumulative_layout_shift_time:Qe(e.commonViewMetrics.cumulativeLayoutShift?.time),cumulative_layout_shift_target_selector:e.commonViewMetrics.cumulativeLayoutShift?.targetSelector,first_byte:Qe(e.initialViewMetrics.navigationTimings?.firstByte),dom_complete:Qe(e.initialViewMetrics.navigationTimings?.domComplete),dom_content_loaded:Qe(e.initialViewMetrics.navigationTimings?.domContentLoaded),dom_interactive:Qe(e.initialViewMetrics.navigationTimings?.domInteractive),error:{count:e.eventCounts.errorCount},first_contentful_paint:Qe(e.initialViewMetrics.firstContentfulPaint),interaction_to_next_paint:Qe(e.commonViewMetrics.interactionToNextPaint?.value),interaction_to_next_paint_time:Qe(e.commonViewMetrics.interactionToNextPaint?.time),interaction_to_next_paint_target_selector:e.commonViewMetrics.interactionToNextPaint?.targetSelector,is_active:e.isActive,name:e.name,largest_contentful_paint:Qe(e.initialViewMetrics.largestContentfulPaint?.value),largest_contentful_paint_target_selector:e.initialViewMetrics.largestContentfulPaint?.targetSelector,load_event:Qe(e.initialViewMetrics.navigationTimings?.loadEvent),loading_time:u1(Qe(e.commonViewMetrics.loadingTime)),loading_type:e.loadingType,long_task:{count:e.eventCounts.longTaskCount},performance:Oee(e.commonViewMetrics,e.initialViewMetrics),resource:{count:e.eventCounts.resourceCount},time_spent:Qe(e.duration)},display:e.commonViewMetrics.scroll?{scroll:{max_depth:e.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:e.commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:e.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:Qe(e.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,privacy:{replay_level:t.defaultPrivacyLevel},device:{locale:navigator.language,locales:navigator.languages,time_zone:V6()}};return wi(e.customTimings)||(s.view.custom_timings=QE(e.customTimings,Qe)),{rawRumEvent:s,startClocks:e.startClocks,duration:e.duration,domainContext:{location:e.location,handlingStack:e.handlingStack}}}function Oee({cumulativeLayoutShift:e,interactionToNextPaint:t},{firstContentfulPaint:n,largestContentfulPaint:r}){return{cls:e&&{score:e.value,timestamp:Qe(e.time),target_selector:e.targetSelector,previous_rect:e.previousRect,current_rect:e.currentRect},fcp:n&&{timestamp:Qe(n)},inp:t&&{duration:Qe(t.value),timestamp:Qe(t.time),target_selector:t.targetSelector,sub_parts:t.subParts?{input_delay:Qe(t.subParts.inputDelay),processing_duration:Qe(t.subParts.processingDuration),presentation_delay:Qe(t.subParts.presentationDelay)}:void 0},lcp:r&&{timestamp:Qe(r.value),target_selector:r.targetSelector,resource_url:r.resourceUrl,sub_parts:r.subParts?{load_delay:Qe(r.subParts.loadDelay),load_time:Qe(r.subParts.loadTime),render_delay:Qe(r.subParts.renderDelay)}:void 0}}}function Nee(e,t,n,r,i,s){const o=[e.rumEndpointBuilder];e.replica&&o.push(e.replica.rumEndpointBuilder);const a=Bx({encoder:s(2),request:Px(o,n),flushController:Fx({pageMayExitObservable:r,sessionExpireOb
1443servable:i})});return t.subscribe(13,c=>{c.type===qe.VIEW?a.upsert(c,c.view.id):a.add(c)}),a}function Pee(e){const t=Aa();e.subscribe(13,n=>{t.send("rum",n)})}const $ee=Jo;function Mee(e,t,n){const r=Ea({expireDelay:$ee});let i;e.subscribe(1,({startClocks:a,url:c})=>{const l=location.href,d=c!==void 0?ya(c,l).href:l;r.add(o({url:d,referrer:i||document.referrer}),a.relative),i=d}),e.subscribe(6,({endClocks:a})=>{r.closeActive(a.relative)});const s=n.subscribe(({newLocation:a})=>{const c=r.find();if(c){const l=qn();r.closeActive(l),r.add(o({url:a.href,referrer:c.referrer}),l)}});function o({url:a,referrer:c}){return{url:a,referrer:c}}return t.register(0,({startTime:a,eventType:c})=>{const l=r.find(a);return l?{type:c,view:{url:l.url,referrer:l.referrer}}:Zi}),{findUrl:a=>r.find(a),stop:()=>{s.unsubscribe(),r.stop()}}}function Dee(e){let t=Rl(location);return new rt(n=>{const{stop:r}=Bee(e,s),{stop:i}=Fee(e,s);function s(){if(t.href===location.href)return;const o=Rl(location);n.notify({newLocation:o,oldLocation:t}),t=o}return()=>{r(),i()}})}function Bee(e,t){const{stop:n}=jr(lI("pushState"),"pushState",({onPostCall:s})=>{s(t)}),{stop:r}=jr(lI("replaceState"),"replaceState",({onPostCall:s})=>{s(t)}),{stop:i}=Ot(e,window,"popstate",t);return{stop:()=>{n(),r(),i()}}}function Fee(e,t){return Ot(e,window,"hashchange",t)}function lI(e){return Object.prototype.hasOwnProperty.call(history,e)?history:History.prototype}const Hee=Jo;function Wee(e,t,n){const r=Ea({expireDelay:Hee});return e.subscribe(1,({startClocks:i})=>{r.add({},i.relative)}),e.subscribe(6,({endClocks:i})=>{r.closeActive(i.relative)}),t.register(0,({startTime:i,eventType:s})=>{if(!n.trackFeatureFlagsForEvents.concat([qe.VIEW,qe.ERROR]).includes(s))return Nn;const a=r.find(i);return!a||wi(a)?Nn:{type:s,feature_flags:a}}),{addFeatureFlagEvaluation:(i,s)=>{const o=r.find();o&&(o[i]=s)}}}const Vee=10*En;let Ds,jc;function Gee(e,t,n){e.metricsEnabled&&(B1(),jc=!1,t.subscribe(13,()=>{jc=!0}),n.subscribe(({bytesCount:r,messagesCount:i})=>{jc&&(jc=!1,Ds.batchCount+=1,uI(Ds.batchBytesCount,r),uI(Ds.batchMessagesCount,i))}),ba(Uee,Vee))}function Uee(){Ds.batchCount!==0&&(uc("Customer data measures",Ds),B1())}function cI(){return{min:1/0,max:0,sum:0}}function uI(e,t){e.sum+=t,e.min=Math.min(e.min,t),e.max=Math.max(e.max,t)}function B1(){Ds={batchCount:0,batchBytesCount:cI(),batchMessagesCount:cI()}}const jee=4e3,zee=500,Zee=Jo;function Kee(e,t,n=zee){const r=Ea({expireDelay:Zee,maxEntries:jee});let i;qo(kt.VISIBILITY_STATE)&&performance.getEntriesByType(kt.VISIBILITY_STATE).forEach(l=>{const d=l.name==="hidden"?"hidden":"active";o(d,l.startTime)}),o(F1(),qn());const{stop:s}=wa(t,window,["pageshow","focus","blur","visibilitychange","resume","freeze","pagehide"],c=>{o(Xee(c),c.timeStamp)},{capture:!0});function o(c,l=qn()){c!==i&&(i=c,r.closeActive(l),r.add({state:i,startTime:l},l))}function a(c,l,d){return r.findAll(l,d).some(v=>v.state===c)}return e.register(0,({startTime:c,duration:l=0,eventType:d})=>{if(d===qe.VIEW){const v=r.findAll(c,l);return{type:d,_dd:{page_states:Yee(v,c,n)}}}return d===qe.ACTION||d===qe.ERROR?{type:d,view:{in_foreground:a("active",c,0)}}:Nn}),{wasInPageStateDuringPeriod:a,addPageState:o,stop:()=>{s(),r.stop()}}}function Yee(e,t,n){if(e.length!==0)return e.slice(-n).reverse().map(({state:r,startTime:i})=>({state:r,start:Qe(Pt(t,i))}))}function Xee(e){return e.type==="freeze"?"frozen":e.type==="pagehide"?e.persisted?"frozen":"terminated":F1()}function F1(){return document.visibilityState==="hidden"?"hidden":document.hasFocus()?"active":"passive"}function Jee(e,t){let n;const r=requestAnimationFrame(nt(()=>{n=oy()})),i=fee(t).subscribe(s=>{n=s}).unsubscribe;return e.register(0,({eventType:s})=>({type:s,display:n?{viewport:n}:void 0})),{stop:()=>{i(),r&&cancelAnimationFrame(r)}}}function qee(e,t){const n=uh(e);function r(c){return!t.wasInPageStateDuringPeriod("frozen",c.startClocks.relative,c.duration)}function i(c){r(c)&&e.notify(12,dI(c))}function s(c,l,d,v){if(!ai(ur.FEATURE_OPERATION_VITAL))return;const{operationKey:R,context:O,description:$,handlingStack:P}=d||{}
1443,T={name:c,type:Ms.OPERATION_STEP,operationKey:R,failureReason:v,stepType:l,startClocks:_t(),context:tt(O),description:$,handlingStack:P};e.notify(12,dI(T))}function o(c,l={},d=_t()){const{id:v}=n.start(l.vitalKey??c,d,{name:c,...l});e.notify(16,{id:v,name:c,startClocks:d,...l})}function a(c,l={},d=_t()){const v=n.stop(l.vitalKey??c,d,l);v&&i({type:Ms.DURATION,...v})}return{addOperationStepVital:s,addDurationVital:i,startDurationVital:o,stopDurationVital:a}}function dI(e){const{startClocks:t,type:n,name:r,description:i,context:s,handlingStack:o}=e,c={id:(e.type===Ms.DURATION?e.id:void 0)??Xt(),type:n,name:r,description:i,...n===Ms.DURATION?{duration:Qe(e.duration)}:{step_type:e.stepType,operation_key:e.operationKey,failure_reason:e.failureReason}};return{rawRumEvent:{date:t.timeStamp,vital:c,type:qe.VITAL,context:s},startClocks:t,duration:n===Ms.DURATION?e.duration:void 0,domainContext:o?{handlingStack:o}:{}}}function Qee(e,t){const n=window.cookieStore?ete(e):nte;return new rt(r=>n(t,i=>r.notify(i)))}function ete(e){return(t,n)=>Ot(e,window.cookieStore,"change",i=>{const s=i.changed.find(o=>o.name===t)||i.deleted.find(o=>o.name===t);s&&n(s.value)}).stop}const tte=En;function nte(e,t){let n=Ll(e);const r=ba(()=>{const i=Ll(e);i!==n&&(n=i,t(i))},tte);return()=>{eh(r)}}const hI="datadog-ci-visibility-test-execution-id";function rte(e,t,n=Qee(e,hI)){let r=rl(hI)||ite();const i=n.subscribe(s=>{r=s});return t.register(0,({eventType:s})=>typeof r!="string"?Nn:{type:s,session:{type:"ci_test"},ci_test:{test_execution_id:r}}),{stop:()=>{i.unsubscribe()}}}function ite(){const e=window.Cypress;if(e)try{return e.env("traceId")}catch{Ke.warn("Failed to read Cypress test execution id via Cypress.env(). Upgrade dd-trace-js to >= 5.88.0 to keep RUM â test correlation working.");return}}function ote(e,t){const n=qo(kt.LONG_ANIMATION_FRAME)?kt.LONG_ANIMATION_FRAME:kt.LONG_TASK,r=Yi(t,{type:n,buffered:!0}).subscribe(i=>{for(const s of i){if(!t.trackLongTasks)break;const o=ac(s.startTime),a=ste(s,o);e.notify(12,{rawRumEvent:a,startClocks:o,duration:s.duration,domainContext:{performanceEntry:s}})}});return{stop:()=>r.unsubscribe()}}function ste(e,t){const n=Xt(),r=Qe(e.duration),i={date:t.timeStamp,type:qe.LONG_TASK,_dd:{discarded:!1}};return e.entryType===kt.LONG_TASK?{...i,long_task:{id:n,entry_type:MC.LONG_TASK,duration:r}}:{...i,long_task:{id:n,entry_type:MC.LONG_ANIMATION_FRAME,duration:r,blocking_duration:Qe(e.blockingDuration),first_ui_event_timestamp:Qe(e.firstUIEventTimestamp),render_start:Qe(e.renderStart),style_and_layout_start:Qe(e.styleAndLayoutStart),start_time:Qe(e.startTime),scripts:e.scripts.map(s=>({duration:Qe(s.duration),pause_duration:Qe(s.pauseDuration),forced_style_and_layout_duration:Qe(s.forcedStyleAndLayoutDuration),start_time:Qe(s.startTime),execution_start:Qe(s.executionStart),source_url:s.sourceURL,source_function_name:s.sourceFunctionName,source_char_position:s.sourceCharPosition,invoker:s.invoker,invoker_type:s.invokerType,window_attribution:s.windowAttribution}))}}}function ate(e){e.register(0,({eventType:t})=>D6()?{type:t,session:{type:"synthetics"},synthetics:{...e1(),injected:Qx()}}:Nn)}function lte(e,t,n){const r=Zm(e),i=n(r);return qd(t).forEach(([s,o])=>lg(e,r,s.split(/\.|(?=\[\])/),o)),i}function lg(e,t,n,r){const[i,...s]=n;if(i==="[]"){Array.isArray(e)&&Array.isArray(t)&&e.forEach((o,a)=>lg(o,t[a],s,r));return}if(!(!fI(e)||!fI(t))){if(s.length>0)return lg(e[i],t[i],s,r);cte(e,i,t[i],r)}}function cte(e,t,n,r){if(e[t]===n)return;const i=va(n);i===r?e[t]=tt(n):r==="object"&&(i==="undefined"||i==="null")&&(e[t]={})}function fI(e){return va(e)==="object"}const ls={"view.name":"string","view.url":"string","view.referrer":"string"},cs={context:"object"},us={service:"string",version:"string"};let H1;function ute(e,t,n,r,i){H1={[qe.VIEW]:{"view.performance.lcp.resource_url":"string",...cs,...ls,...us},[qe.ERROR]:{"error.message":"string","error.stack":"string","error.handling_stack":"string","error.resource.url":"string","error.fingerprint":"string",...cs,...ls,...us},[qe.RESOURCE]:{"resource.url":"string","resource.graphql.variables":"string","resource.request.headers":"object","resource.response.headers":"object",...cs,...ls,...us},[qe.ACTION]:{"action.target.name":"string",...cs,...ls,...us},[qe.LONG_TASK]:{"long_task.scripts[].source_url":"string","long_task.scripts[].invoker":"string",...cs,...ls,...us},[qe.VITAL]:{...cs,...ls,...us}};const s={[qe.ERROR]:pf(qe.ERROR,r,i),[qe.ACTION]:pf(qe.ACTION,r,i),[qe.VITAL]:pf(qe.VITAL,r,i)};t.subscribe(12,({startClocks:o,duration:a,rawRumEvent:c,domainContext:l})=>{const d=n.triggerHook(0,{eventType:c.type,rawRumEvent:c,domainContext:l,startTime:o.relative,duration:a});if(d===Zi)return;const v=ji(d,c,{ddtags:Ax(e).join(",")});dte(v,e.beforeSend,l,s)&&(wi(v.context)&&delete v.context,t.notify(13,v))})}function dte(e,t,n,r){if(t){const s=lte(e,H1[e.type],o=>t(o,n));if(s===!1&&e.type!==qe.VIEW)return!1;s===!1&&Ke.warn("Can't dismiss view events using beforeSend!")}return!r[e.type]?.isLimitReached()}function sy(e,t){return zi()?Mx("records")?1:0:oh(e.id,Km(t.sessionSampleRate,t.sessionReplaySampleRate))?1:e.isReplayForced?2:0}function hte(e,t,n,r,i){e.register(0,({eventType:s,startTime:o})=>{const a=n.findTrackedSession(o),c=i.findView(o);if(!a||!c)return Zi;let l,d,v;return s===qe.VIEW?(l=r.getReplayStats(c.id)?!0:void 0,d=sy(a,t)===1,v=c.sessionIsActive?void 0:!1):l=r.isRecording()?!0:void 0,{type:s,session:{id:a.id,type:"user",has_replay:l,sampled_for_replay:d,is_active:v}}})}function fte(e){e.register(0,({eventType:t})=>({type:t,connectivity:Sx()}))}function pte(e,t,n){e.register(0,({eventType:r})=>{const i=t.source;return{type:r,_dd:{format_version:2,drift:SX(),configuration:{session_sample_rate:Ss(t.sessionSampleRate,3),session_replay_sample_rate:Ss(t.sessionReplaySampleRate,3),profiling_sample_rate:Ss(t.profilingSampleRate,3),trace_sample_rate:Ss(t.traceSampleRate,3)},browser_sdk_version:zi()?"7.1.0":void 0,sdk_name:n},application:{id:t.applicationId},date:jt(),source:i}})}
1443const gte=[qe.ACTION,qe.ERROR,qe.LONG_TASK,qe.RESOURCE,qe.VITAL];function mte(e){return{addEvent:(t,n,r,i)=>{gte.includes(n.type)&&e.notify(12,{startClocks:ac(t),rawRumEvent:n,domainContext:r,duration:i})}}}function yte(e,t){if(!t.metricsEnabled)return{stop:Tt};const{unsubscribe:n}=e.subscribe(4,({initialViewMetrics:r})=>{!r.largestContentfulPaint||!r.navigationTimings||(uc("Initial view metrics",{metrics:bte(r.largestContentfulPaint,r.navigationTimings)}),n())});return{stop:n}}function bte(e,t){return{lcp:{value:e.value},navigation:{domComplete:t.domComplete,domContentLoaded:t.domContentLoaded,domInteractive:t.domInteractive,firstByte:t.firstByte,loadEvent:t.loadEvent}}}function vte(e){const t=window,n=new Map;function r(){t.DD_SOURCE_CODE_CONTEXT&&(qd(t.DD_SOURCE_CODE_CONTEXT).forEach(([i,s])=>{const a=Ca({stack:i}).stack[0];if(!a.url){ih("Source code context: missing frame url",{stack:i});return}n.has(a.url)||n.set(a.url,s)}),t.DD_SOURCE_CODE_CONTEXT={})}r(),e.register(0,({domainContext:i,rawRumEvent:s})=>{if(r(),n.size===0)return Nn;const o=Cte(i,s),a=o&&n.get(o);return a?{type:s.type,service:a.service,version:a.version}:Nn})}function Cte(e,t){if(t.type==="long_task"&&t.long_task.entry_type==="long-animation-frame")return t.long_task.scripts[0]?.source_url;let n;return"handlingStack"in e&&(n=e.handlingStack),t.type==="error"&&t.error.stack&&(n=t.error.stack),Ca({stack:n}).stack[0]?.url}function Ite(e,t,n,r,i,s,o,a,c,l){const d=[],v=new k8;v.subscribe(13,C=>_x("rum",C)),t.expireObservable.subscribe(()=>v.notify(9)),t.renewObservable.subscribe(C=>v.notify(10,C));const R=C=>{v.notify(14,{error:C}),Ho("Error reported to customer",{"error.message":C.message})},O=Dx(e);if(zi()){Pee(v);const C=O.subscribe(N=>{v.notify(11,N)});d.push(()=>C.unsubscribe())}else{const C=Nee(e,v,R,O,t.expireObservable,s),N=C.flushController.preparePageExitFlushObservable.subscribe(x=>{v.notify(11,{reason:x})});d.push(()=>N.unsubscribe()),d.push(()=>C.stop()),Gee(a,v,C.flushController.flushObservable)}const{stop:$}=yte(v,a);d.push($);const{stop:P,...T}=Ate(v,c,e,t,n,i,o,l,R);return d.push(P),o.unbuffer(),d.push(()=>r.stop()),{...T,lifeCycle:v,sessionManager:t,stopSession:()=>t.expire(),telemetry:a,stop:()=>{d.forEach(C=>C())},hooks:c}}function Ate(e,t,n,r,i,s,o,a,c){const l=[],d=S8(),v=Dee(n),{observable:R,stop:O}=x8();l.push(O),pte(t,n,a);const $=Kee(t,n);l.push(()=>$.stop());const P=L8(e);l.push(()=>P.stop());const T=Mee(e,t,v);l.push(()=>T.stop());const C=Wee(e,t,n);hte(t,n,r,i,P),fte(t),T6(t);const N=L6(t,n,"rum"),x=O6(t,n,r,"rum"),S=x6(t,n,"rum"),b=lQ(e,t,d,R,n);l.push(b.stop);const p=mte(e),g=Jee(t,n);l.push(g.stop);const u=rte(n,t);l.push(u.stop),ate(t),ute(n,e,t,c);const{addTiming:y,setLoadingTime:m,startView:I,setViewName:_,setViewContext:h,setViewContextProperty:f,getViewContext:w,stop:E}=Ree(e,t,n,d,R,v,i,P,s);vte(t),l.push(E);const k=SQ(e,n);l.push(k.stop);const{stop:L}=ote(e,n);l.push(L);const{addError:M}=dQ(e,n,o);iq(e,n,r,x,S,o);const B=qee(e,$),j=T8(n.applicationId,r,P,b.actionContexts,T);return{addAction:b.addAction,startAction:b.startAction,stopAction:b.stopAction,startResource:k.startResource,stopResource:k.stopResource,addEvent:p.addEvent,addError:M,addTiming:y,setLoadingTime:m,addFeatureFlagEvaluation:C.addFeatureFlagEvaluation,startView:I,setViewContext:h,setViewContextProperty:f,getViewContext:w,setViewName:_,viewHistory:P,sessionManager:r,stopSession:()=>r.expire(),getInternalContext:j.get,startDurationVital:B.startDurationVital,stopDurationVital:B.stopDurationVital,addDurationVital:B.addDurationVital,addOperationStepVital:B.addOperationStepVital,globalContext:N,userContext:x,accountContext:S,stop:()=>l.forEach(z=>z())}}function wte(e,t,n={}){const r=b7(),i=W6();let s=w8(n,r,(l,d,v,R,O,$)=>{const P=v&&n.createDeflateEncoder?C=>n.createDeflateEncoder(l,v,C):Hx,T=Ite(l,d,e,t,R,P,i.observable,O,$,n.sdkName);return e.onRumStart(T.lifeCycle,l,d,T.viewHistory,v,T.telemetry),t.onRumStart(T.lifeCycle,T.hooks,l,d,T.viewHistory,P),s=_te(s,T),o1(l.plugins,"onRumStart",{addEvent:T.addEvent,addError:T.addError}),T});const o=()=>s,a=l=>{const d=Ni("view");ir(()=>{const v=typeof l=="object"?l:{name:l};s.startView({...v,handlingStack:d}),Jt({feature:"start-view"})})},c=D7({init:l=>{const d=new Error().stack;ir(()=>s.init(l,c,d))},setTrackingConsent:nt(l=>{r.update(l),Jt({feature:"set-tracking-consent",tracking_consent:l})}
1443),setViewName:nt(l=>{s.setViewName(l),Jt({feature:"set-view-name"})}),setViewContext:nt(l=>{s.setViewContext(l),Jt({feature:"set-view-context"})}),setViewContextProperty:nt((l,d)=>{s.setViewContextProperty(l,d),Jt({feature:"set-view-context-property"})}),getViewContext:nt(()=>(Jt({feature:"set-view-context-property"}),s.getViewContext())),getInternalContext:nt(l=>s.getInternalContext(l)),getInitConfiguration:nt(()=>Zm(s.initConfiguration)),addAction:(l,d)=>{const v=Ni("action");ir(()=>{s.addAction({name:tt(l),context:tt(d),startClocks:_t(),type:qm.CUSTOM,handlingStack:v}),Jt({feature:"add-action"})})},startAction:nt((l,d)=>{s.initConfiguration&&!ai(ur.START_STOP_ACTION)||s.startAction(tt(l),{type:tt(d&&d.type),context:tt(d&&d.context),actionKey:d&&d.actionKey})}),stopAction:nt((l,d)=>{s.initConfiguration&&!ai(ur.START_STOP_ACTION)||s.stopAction(tt(l),{type:tt(d&&d.type),context:tt(d&&d.context),actionKey:d&&d.actionKey})}),startResource:nt((l,d)=>{s.initConfiguration&&!ai(ur.START_STOP_RESOURCE)||s.startResource(tt(l),{type:tt(d&&d.type),method:tt(d&&d.method),context:tt(d&&d.context),resourceKey:d&&d.resourceKey})}),stopResource:nt((l,d)=>{s.initConfiguration&&!ai(ur.START_STOP_RESOURCE)||s.stopResource(tt(l),{type:tt(d&&d.type),statusCode:d&&d.statusCode,size:d&&d.size,context:tt(d&&d.context),resourceKey:d&&d.resourceKey})}),addError:(l,d)=>{const v=Ni("error");ir(()=>{s.addError({error:l,handlingStack:v,context:tt(d),startClocks:_t()}),Jt({feature:"add-error"})})},addTiming:nt((l,d)=>{s.addTiming(tt(l),d)}),setViewLoadingTime:nt(()=>{const l=jt();s.setLoadingTime(l),Jt({feature:"addViewLoadingTime"})}),setGlobalContext:xn(o,nn.globalContext,Tn.setContext,"set-global-context"),getGlobalContext:xn(o,nn.globalContext,Tn.getContext,"get-global-context"),setGlobalContextProperty:xn(o,nn.globalContext,Tn.setContextProperty,"set-global-context-property"),removeGlobalContextProperty:xn(o,nn.globalContext,Tn.removeContextProperty,"remove-global-context-property"),clearGlobalContext:xn(o,nn.globalContext,Tn.clearContext,"clear-global-context"),setUser:xn(o,nn.userContext,Tn.setContext,"set-user"),getUser:xn(o,nn.userContext,Tn.getContext,"get-user"),setUserProperty:xn(o,nn.userContext,Tn.setContextProperty,"set-user-property"),removeUserProperty:xn(o,nn.userContext,Tn.removeContextProperty,"remove-user-property"),clearUser:xn(o,nn.userContext,Tn.clearContext,"clear-user"),setAccount:xn(o,nn.accountContext,Tn.setContext,"set-account"),getAccount:xn(o,nn.accountContext,Tn.getContext,"get-account"),setAccountProperty:xn(o,nn.accountContext,Tn.setContextProperty,"set-account-property"),removeAccountProperty:xn(o,nn.accountContext,Tn.removeContextProperty,"remove-account-property"),clearAccount:xn(o,nn.accountContext,Tn.clearContext,"clear-account"),startView:a,stopSession:nt(()=>{s.stopSession(),Jt({feature:"stop-session"})}),addFeatureFlagEvaluation:nt((l,d)=>{s.addFeatureFlagEvaluation(tt(l),tt(d)),Jt({feature:"add-feature-flag-evaluation"})}),getSessionReplayLink:nt(()=>e.getSessionReplayLink()),startSessionReplayRecording:nt(l=>{e.start(l),Jt({feature:"start-session-replay-recording",force:l&&l.force})}),stopSessionReplayRecording:nt(()=>e.stop()),addDurationVital:(l,d)=>{const v=Ni("vital");ir(()=>{Jt({feature:"add-duration-vital"}),s.addDurationVital({id:Xt(),name:tt(l),type:Ms.DURATION,startClocks:tx(d.startTime),duration:d.duration,context:tt(d&&d.context),description:tt(d&&d.description),handlingStack:v})})},startDurationVital:(l,d)=>{const v=Ni("vital");ir(()=>{Jt({feature:"start-duration-vital"}),s.startDurationVital(tt(l),{vitalKey:d&&d.vitalKey,context:tt(d&&d.context),description:tt(d&&d.description),handlingStack:v})})},stopDurationVital:nt((l,d)=>{Jt({feature:"stop-duration-vital"}),s.stopDurationVital(tt(l),{vitalKey:d&&d.vitalKey,context:tt(d&&d.context),description:tt(d&&d.description)})}),startFeatureOperation:(l,d)=>{const v=Ni("vital");ir(()=>{Jt({feature:"add-operation-step-vital",action_type:"start"}),s.addOperationStepVital(l,"start",{...d,handlingStack:v})})},succeedFeatureOperation:nt((l,d)=>{Jt({feature:"add-operation-step-vital",action_type:"succeed"}),s.addOperationStepVital(l,"end",d)}),failFeatureOperation:nt((l,d,v)=>{Jt({feature:"add-operation-step-vital",action_type:"fail"}),s.addOperationStepVital(l,"end",v,d)}),DEFAULT_TRACKED_RESOURCE_HEADERS:t1});return c}function _te(e,t){return{...e,init:n=>{Ux("DD_RUM",n)},getInternalContext:t.getInternalContext,stopSession:t.stopSession,getViewContext:t.getViewContext,globalContext:t.globalContext,userContext:t.userContext,accountContext:t.accountContext}}function Ste(e,{session:t,viewContext:n,errorType:r}){const i=t?t.id:"no-session-id",s=[];r!==void 0&&s.push(`error-type=${r}`),n&&(s.push(`seed=${n.id}`),s.push(`from=${n.startClocks.timeStamp}`));const o=Ete(e),a=`/rum/replay/sessions/${i}`;return`${o}${a}?${s.join("&")}`}function Ete(e){const t=e.site,n=e.subdomain||xte(e);return`https://${n?`${n}.`:""}${t}`}function xte(e){switch(e.site){case rh:case AJ:return"app";case wx:return"dd";default:return}}const Tte=1e3;let Gr;function wae(e){return dh(e).segments_count}function _ae(e){dh(e).segments_count+=1}function Sae(e){dh(e).records_count+=1}function Eae(e,t){dh(e).segments_total_raw_size+=t}function kte(e){return Gr?.get(e)}function dh(e){Gr||(Gr=new Map);let t;return Gr.has(e)?t=Gr.get(e):(t={records_count:0,segments_count:0,segments_total_raw_size:0},Gr.set(e,t),Gr.size>Tte&&Rte()),t}function Rte(){if(!Gr)return;const e=Gr.keys().next().value;e&&Gr.delete(e)}
1443function W1(e,t,n){let r=0,i=[],s,o=!0,a=0;const c=[],l=n,{stop:d}=Ot(e,t,"message",({data:O})=>{if(O.type!=="wrote"||O.streamId!==l)return;const $=c[0];$&&($.id===O.id?(c.shift(),r+=O.additionalBytesCount,i.push(O.result),s=O.trailer,$.writeCallback?$.writeCallback(O.result.byteLength):$.finishCallback&&$.finishCallback()):$.id<O.id&&d())});function v(){const O=i.length===0?new Uint8Array(0):mx(i.concat(s)),$={rawBytesCount:r,output:O,outputBytesCount:O.byteLength,encoding:"deflate"};return r=0,i=[],$}function R(){o||(t.postMessage({action:"reset",streamId:n}),o=!0)}return{isAsync:!0,get isEmpty(){return o},write(O,$){t.postMessage({action:"write",id:a,data:O,streamId:n}),c.push({id:a,writeCallback:$,data:O}),o=!1,a+=1},finish(O){R(),c.length?(c.forEach($=>{delete $.writeCallback}),c[c.length-1].finishCallback=()=>O(v())):O(v())},finishSync(){R();const O=c.map($=>$.data).join("");return c.length=0,{...v(),pendingData:O}},estimateEncodedBytesCount(O){return O.length/8},stop(){d()}}}function ay({configuredUrl:e,error:t,source:n,scriptType:r}){if(Ke.error(`${n} failed to start: an error occurred while initializing the ${r}:`,t),t instanceof Event||t instanceof Error&&Lte(t.message)){let i;e?i=`Please make sure the ${r} URL ${e} is correct and CSP is correctly configured.`:i="Please make sure CSP is correctly configured.",Ke.error(`${i} See documentation at ${Yd}/integrations/content_security_policy_logs/#use-csp-with-real-user-monitoring-and-session-replay`)}else r==="worker"&&ih(t)}function Lte(e){return e.includes("Content Security Policy")||e.includes("requires 'TrustedScriptURL'")}const Ote=30*En;function Nte(e){return new Worker(e.workerUrl||URL.createObjectURL(new Blob(['(()=>{function t(t){if(1===t.length)return t[0];const e=t.reduce((t,e)=>t+e.length,0),a=new Uint8Array(e);let n=0;for(const e of t)a.set(e,n),n+=e.length;return a}function e(t){for(var e=t.length;--e>=0;)t[e]=0}var a=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),n=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),r=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),i=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=Array(576);e(s);var h=Array(60);e(h);var l=Array(512);e(l);var _=Array(256);e(_);var o=Array(29);e(o);var d,u,f,c=Array(30);function g(t,e,a,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=r,this.has_stree=t&&t.length}function p(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}e(c);var v=function(t){return t<256?l[t]:l[256+(t>>>7)]},w=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},m=function(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,w(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},b=function(t,e,a){m(t,a[2*e],a[2*e+1])},y=function(t,e){var a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},z=function(t,e,a){var n,r,i=Array(16),s=0;for(n=1;n<=15;n++)i[n]=s=s+a[n-1]<<1;for(r=0;r<=e;r++){var h=t[2*r+1];0!==h&&(t[2*r]=y(i[h]++,h))}},k=function(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0},x=function(t){t.bi_valid>8?w(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},A=function(t,e,a,n){var r=2*e,i=2*a;return t[r]<t[i]||t[r]===t[i]&&n[e]<=n[a]},U=function(t,e,a){for(var n=t.heap[a],r=a<<1;r<=t.heap_len&&(r<t.heap_len&&A(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!A(e,n,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=n},B=function(t,e,r){var i,s,h,l,d=0;if(0!==t.last_lit)do{i=t.pending_buf[t.d_buf+2*d]<<8|t.pending_buf[t.d_buf+2*d+1],s=t.pending_buf[t.l_buf+d],d++,0===i?b(t,s,e):(h=_[s],b(t,h+256+1,e),0!==(l=a[h])&&(s-=o[h],m(t,s,l)),i--,h=v(i),b(t,h,r),0!==(l=n[h])&&(i-=c[h],m(t,i,l)))}while(d<t.last_lit);b(t,256,e)},I=function(t,e){var a,n,r,i=e.dyn_tree,s=e.stat_desc.static_tree,h=e.stat_desc.has_stree,l=e.stat_desc.elems,_=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<l;
vendor: 4,235 bytes, line 1443
1443a++)0!==i[2*a]?(t.heap[++t.heap_len]=_=a,t.depth[a]=0):i[2*a+1]=0;for(;t.heap_len<2;)i[2*(r=t.heap[++t.heap_len]=_<2?++_:0)]=1,t.depth[r]=0,t.opt_len--,h&&(t.static_len-=s[2*r+1]);for(e.max_code=_,a=t.heap_len>>1;a>=1;a--)U(t,i,a);r=l;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],U(t,i,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,i[2*r]=i[2*a]+i[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,i[2*a+1]=i[2*n+1]=r,t.heap[1]=r++,U(t,i,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,r,i,s,h,l=e.dyn_tree,_=e.max_code,o=e.stat_desc.static_tree,d=e.stat_desc.has_stree,u=e.stat_desc.extra_bits,f=e.stat_desc.extra_base,c=e.stat_desc.max_length,g=0;for(i=0;i<=15;i++)t.bl_count[i]=0;for(l[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(i=l[2*l[2*(n=t.heap[a])+1]+1]+1)>c&&(i=c,g++),l[2*n+1]=i,n>_||(t.bl_count[i]++,s=0,n>=f&&(s=u[n-f]),h=l[2*n],t.opt_len+=h*(i+s),d&&(t.static_len+=h*(o[2*n+1]+s)));if(0!==g){do{for(i=c-1;0===t.bl_count[i];)i--;t.bl_count[i]--,t.bl_count[i+1]+=2,t.bl_count[c]--,g-=2}while(g>0);for(i=c;0!==i;i--)for(n=t.bl_count[i];0!==n;)(r=t.heap[--a])>_||(l[2*r+1]!==i&&(t.opt_len+=(i-l[2*r+1])*l[2*r],l[2*r+1]=i),n--)}}(t,e),z(i,_,t.bl_count)},E=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,_=4;for(0===s&&(l=138,_=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)r=s,s=e[2*(n+1)+1],++h<l&&r===s||(h<_?t.bl_tree[2*r]+=h:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[32]++):h<=10?t.bl_tree[34]++:t.bl_tree[36]++,h=0,i=r,0===s?(l=138,_=3):r===s?(l=6,_=3):(l=7,_=4))},D=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,_=4;for(0===s&&(l=138,_=3),n=0;n<=a;n++)if(r=s,s=e[2*(n+1)+1],!(++h<l&&r===s)){if(h<_)do{b(t,r,t.bl_tree)}while(0!==--h);else 0!==r?(r!==i&&(b(t,r,t.bl_tree),h--),b(t,16,t.bl_tree),m(t,h-3,2)):h<=10?(b(t,17,t.bl_tree),m(t,h-3,3)):(b(t,18,t.bl_tree),m(t,h-11,7));h=0,i=r,0===s?(l=138,_=3):r===s?(l=6,_=3):(l=7,_=4)}},M=!1,j=function(t,e,a,n){m(t,0+(n?1:0),3),function(t,e,a){x(t),w(t,a),w(t,~a),t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a}(t,e,a)},C=j,L=function(t,e,a,n){for(var r=65535&t,i=t>>>16&65535,s=0;0!==a;){a-=s=a>2e3?2e3:a;do{i=i+(r=r+e[n++]|0)|0}while(--s);r%=65521,i%=65521}return r|i<<16},S=new Uint32Array(function(){for(var t,e=[],a=0;a<256;a++){t=a;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}()),O=function(t,e,a,n){var r=S,i=n+a;t^=-1;for(var s=n;s<i;s++)t=t>>>8^r[255&(t^e[s])];return-1^t},T={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},q=C,F=function(t,e,a){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&a,t.last_lit++,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(_[a]+256+1)]++,t.dyn_dtree[2*v(e)]++),t.last_lit===t.lit_bufsize-1},G=-2,H=258,J=262,K=103,N=113,P=666,Q=function(t,e){return t.msg=T[e],e},R=function(t){return(t<<1)-(t>4?9:0)},V=function(t){for(var e=t.length;--e>=0;)t[e]=0},W=function(t,e,a){return(e<<t.hash_shift^a)&t.hash_mask},X=function(t){var e=t.state,a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},Y=function(t,e){(function(t,e,a,n){var r,l,_=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),I(t,t.l_desc),I(t,t.d_desc),_=function(t){var e;for(E(t,t.dyn_ltree,t.l_desc.max_code),E(t,t.dyn_dtree,t.d_desc.max_code),I(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*i[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),r=t.opt_len+3+7>>>3,(l=t.static_len+3+7>>>3)<=r&&(r=l)):r=l=a+5,a+4<=r&&-1!==e?j(t,e,a,n):4===t.strategy||l===r?(m(t,2+(n?1:0),3),B(t,s,h)):(m(t,4+(n?1:0),3),function(t,e,a,n){var r;for(m(t,e-257,5),m(t,a-1,5),m(t,n-4,4),r=0;r<n;r++)m(t,t.bl_tree[2*i[r]+1],3);D(t,t.dyn_ltree,e-1),D(t,t.dyn_dtree,a-1)}
1443(t,t.l_desc.max_code+1,t.d_desc.max_code+1,_+1),B(t,t.dyn_ltree,t.dyn_dtree)),k(t),n&&x(t)})(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,X(t.strm)},Z=function(t,e){t.pending_buf[t.pending++]=e},$=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},tt=function(t,e,a,n){var r=t.avail_in;return r>n&&(r=n),0===r?0:(t.avail_in-=r,e.set(t.input.subarray(t.next_in,t.next_in+r),a),1===t.state.wrap?t.adler=L(t.adler,e,r,a):2===t.state.wrap&&(t.adler=O(t.adler,e,r,a)),t.next_in+=r,t.total_in+=r,r)},et=function(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,h=t.nice_match,l=t.strstart>t.w_size-J?t.strstart-(t.w_size-J):0,_=t.window,o=t.w_mask,d=t.prev,u=t.strstart+H,f=_[i+s-1],c=_[i+s];t.prev_length>=t.good_match&&(r>>=2),h>t.lookahead&&(h=t.lookahead);do{if(_[(a=e)+s]===c&&_[a+s-1]===f&&_[a]===_[i]&&_[++a]===_[i+1]){i+=2,a++;do{}while(_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&i<u);if(n=H-(u-i),i=u-H,n>s){if(t.match_start=e,s=n,n>=h)break;f=_[i+s-1],c=_[i+s]}}}while((e=d[e&o])>l&&0!==--r);return s<=t.lookahead?s:t.lookahead},at=function(t){var e,a,n,r,i,s=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=s+(s-J)){t.window.set(t.window.subarray(s,s+s),0),t.match_start-=s,t.strstart-=s,t.block_start-=s,e=a=t.hash_size;do{n=t.head[--e],t.head[e]=n>=s?n-s:0}while(--a);e=a=s;do{n=t.prev[--e],t.prev[e]=n>=s?n-s:0}while(--a);r+=s}if(0===t.strm.avail_in)break;if(a=tt(t.strm,t.window,t.strstart+t.lookahead,r),t.lookahead+=a,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=W(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=W(t,t.ins_h,t.window[i+3-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<J&&0!==t.strm.avail_in)},nt=function(t,e){for(var a,n;;){if(t.lookahead<J){if(at(t),t.lookahead<J&&0===e)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=W(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-J&&(t.match_length=et(t,a)),t.match_length>=3)if(n=F(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=W(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!==--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=W(t,t.ins_h,t.window[t.strstart+1]);else n=F(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2},rt=function(t,e){for(var a,n,r;;){if(t.lookahead<J){if(at(t),t.lookahead<J&&0===e)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=W(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-J&&(t.match_length=et(t,a),t.match_length<=5&&(1===t.strategy||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-3,n=F(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=W(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!==--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(Y(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=F(t,0,t.window[t.strstart-1]))&&Y(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=F(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2};function it(t,e,a,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=n,this.func=r}var st=[new it(0,0,0,0,function(t,e){var a=65535;for(a>t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(at(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+a;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,Y(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-J&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(Y(t,!1),t.strm.avail_out),1)}),new it(4,4,8,4,nt),new it(4,5,16,8,nt),new it(4,6,32,32,nt),new it(4,4,16,16,rt),new it(8,16,32,32,rt),new it(8,16,128,128,rt),new it(8,32,128,256,rt),new it(32,128,258,1024,rt),new it(32,258,258,4096,rt)];function ht(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),V(this.dyn_ltree),V(this.dyn_dtree),V(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),V(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),V(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}for(var lt=function(t){var e,i=function(t){if(!t||!t.state)return Q(t,G);t.total_in=t.total_out=0,t.data_type=2;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:N,t.adler=2===e.wrap?0:1,e.last_flush=0,function(t){M||(function(){var t,e,i,p,v,w=Array(16);for(i=0,p=0;p<28;
vendor: 5,140 bytes, line 1443
1443p++)for(o[p]=i,t=0;t<1<<a[p];t++)_[i++]=p;for(_[i-1]=p,v=0,p=0;p<16;p++)for(c[p]=v,t=0;t<1<<n[p];t++)l[v++]=p;for(v>>=7;p<30;p++)for(c[p]=v<<7,t=0;t<1<<n[p]-7;t++)l[256+v++]=p;for(e=0;e<=15;e++)w[e]=0;for(t=0;t<=143;)s[2*t+1]=8,t++,w[8]++;for(;t<=255;)s[2*t+1]=9,t++,w[9]++;for(;t<=279;)s[2*t+1]=7,t++,w[7]++;for(;t<=287;)s[2*t+1]=8,t++,w[8]++;for(z(s,287,w),t=0;t<30;t++)h[2*t+1]=5,h[2*t]=y(t,5);d=new g(s,a,257,286,15),u=new g(h,n,0,30,15),f=new g([],r,0,19,7)}(),M=!0),t.l_desc=new p(t.dyn_ltree,d),t.d_desc=new p(t.dyn_dtree,u),t.bl_desc=new p(t.bl_tree,f),t.bi_buf=0,t.bi_valid=0,k(t)}(e),0}(t);return 0===i&&((e=t.state).window_size=2*e.w_size,V(e.head),e.max_lazy_match=st[e.level].max_lazy,e.good_match=st[e.level].good_length,e.nice_match=st[e.level].nice_length,e.max_chain_length=st[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),i},_t=function(t,e){var a,n;if(!t||!t.state||e>5||e<0)return t?Q(t,G):G;var r=t.state;if(!t.output||!t.input&&0!==t.avail_in||r.status===P&&4!==e)return Q(t,0===t.avail_out?-5:G);r.strm=t;var i=r.last_flush;if(r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,Z(r,31),Z(r,139),Z(r,8),r.gzhead?(Z(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),Z(r,255&r.gzhead.time),Z(r,r.gzhead.time>>8&255),Z(r,r.gzhead.time>>16&255),Z(r,r.gzhead.time>>24&255),Z(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),Z(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(Z(r,255&r.gzhead.extra.length),Z(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=O(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(Z(r,0),Z(r,0),Z(r,0),Z(r,0),Z(r,0),Z(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),Z(r,3),r.status=N);else{var h=8+(r.w_bits-8<<4)<<8;h|=(r.strategy>=2||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(h|=32),h+=31-h%31,r.status=N,$(r,h),0!==r.strstart&&($(r,t.adler>>>16),$(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),X(t),a=r.pending,r.pending!==r.pending_buf_size));)Z(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),X(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,Z(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),X(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,Z(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.status=K)}else r.status=K;if(r.status===K&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&X(t),r.pending+2<=r.pending_buf_size&&(Z(r,255&t.adler),Z(r,t.adler>>8&255),t.adler=0,r.status=N)):r.status=N),0!==r.pending){if(X(t),0===t.avail_out)return r.last_flush=-1,0}else if(0===t.avail_in&&R(e)<=R(i)&&4!==e)return Q(t,-5);if(r.status===P&&0!==t.avail_in)return Q(t,-5);if(0!==t.avail_in||0!==r.lookahead||0!==e&&r.status!==P){var l=2===r.strategy?function(t,e){for(var a;;){if(0===t.lookahead&&(at(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,a=F(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2}(r,e):3===r.strategy?function(t,e){for(var a,n,r,i,s=t.window;;){if(t.lookahead<=H){if(at(t),t.lookahead<=H&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=s[r=t.strstart-1])===s[++r]&&n===s[++r]&&n===s[++r]){i=t.strstart+H;do{}while(n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&r<i);t.match_length=H-(i-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=F(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=F(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2}(r,e):st[r.level].func(r,e);if(3!==l&&4!==l||(r.status=P),1===l||3===l)return 0===t.avail_out&&(r.last_flush=-1),0;if(2===l&&(1===e?function(t){m(t,2,3),b(t,256,s),function(t){16===t.bi_valid?(w(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>
1443=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}(r):5!==e&&(q(r,0,0,!1),3===e&&(V(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),X(t),0===t.avail_out))return r.last_flush=-1,0}return 4!==e?0:r.wrap<=0?1:(2===r.wrap?(Z(r,255&t.adler),Z(r,t.adler>>8&255),Z(r,t.adler>>16&255),Z(r,t.adler>>24&255),Z(r,255&t.total_in),Z(r,t.total_in>>8&255),Z(r,t.total_in>>16&255),Z(r,t.total_in>>24&255)):($(r,t.adler>>>16),$(r,65535&t.adler)),X(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?0:1)},ot=function(t){if(!t||!t.state)return G;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==K&&e!==N&&e!==P?Q(t,G):(t.state=null,e===N?Q(t,-3):0)},dt=new Uint8Array(256),ut=0;ut<256;ut++)dt[ut]=ut>=252?6:ut>=248?5:ut>=240?4:ut>=224?3:ut>=192?2:1;dt[254]=dt[254]=1;var ft=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},ct=Object.prototype.toString;function gt(){this.options={level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0};var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ft,this.strm.avail_out=0;var e,a,n=function(t,e,a,n,r,i){if(!t)return G;var s=1;if(-1===e&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>9||8!==a||n<8||n>15||e<0||e>9||i<0||i>4)return Q(t,G);8===n&&(n=9);var h=new ht;return t.state=h,h.strm=t,h.wrap=s,h.gzhead=null,h.w_bits=n,h.w_size=1<<h.w_bits,h.w_mask=h.w_size-1,h.hash_bits=r+7,h.hash_size=1<<h.hash_bits,h.hash_mask=h.hash_size-1,h.hash_shift=~~((h.hash_bits+3-1)/3),h.window=new Uint8Array(2*h.w_size),h.head=new Uint16Array(h.hash_size),h.prev=new Uint16Array(h.w_size),h.lit_bufsize=1<<r+6,h.pending_buf_size=4*h.lit_bufsize,h.pending_buf=new Uint8Array(h.pending_buf_size),h.d_buf=1*h.lit_bufsize,h.l_buf=3*h.lit_bufsize,h.level=e,h.strategy=i,h.method=a,lt(t)}(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==n)throw Error(T[n]);if(t.header&&(e=this.strm,a=t.header,e&&e.state&&(2!==e.state.wrap||(e.state.gzhead=a))),t.dictionary){var r;if(r="[object ArrayBuffer]"===ct.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(n=function(t,e){var a=e.length;if(!t||!t.state)return G;var n=t.state,r=n.wrap;if(2===r||1===r&&42!==n.status||n.lookahead)return G;if(1===r&&(t.adler=L(t.adler,e,a,0)),n.wrap=0,a>=n.w_size){0===r&&(V(n.head),n.strstart=0,n.block_start=0,n.insert=0);var i=new Uint8Array(n.w_size);i.set(e.subarray(a-n.w_size,a),0),e=i,a=n.w_size}var s=t.avail_in,h=t.next_in,l=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,at(n);n.lookahead>=3;){var _=n.strstart,o=n.lookahead-2;do{n.ins_h=W(n,n.ins_h,n.window[_+3-1]),n.prev[_&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=_,_++}while(--o);n.strstart=_,n.lookahead=2,at(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=h,t.input=l,t.avail_in=s,n.wrap=r,0}(this.strm,r)))throw Error(T[n]);this._dict_set=!0}}function pt(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch{t.postMessage({type:"errored",error:e+"",streamId:a})}}function vt(t){const e=t.strm.adler;return new Uint8Array([3,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])}gt.prototype.push=function(t,e){var a,n,r=this.strm,i=this.options.chunkSize;if(this.ended)return!1;for(n=e===~~e?e:!0===e?4:0,"[object ArrayBuffer]"===ct.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(i),r.next_out=0,r.avail_out=i),(2===n||3===n)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if(1===(a=_t(r,n)))return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=ot(this.strm),this.onEnd(a),this.ended=!0,0===a;if(0!==r.avail_out){if(n>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},gt.prototype.onData=function(t){this.chunks.push(t)},gt.prototype.onEnd=function(t){0===t&&(this.result=function(t){for(var e=0,a=0,n=t.length;a<n;a++)e+=t[a].length;
1443for(var r=new Uint8Array(e),i=0,s=0,h=t.length;i<h;i++){var l=t[i];r.set(l,s),s+=l.length}return r}(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},function(e=self){try{const a=new Map;e.addEventListener("message",n=>{try{const r=function(e,a){switch(a.action){case"init":return{type:"initialized",version:"7.1.0"};case"write":{let n=e.get(a.streamId);n||(n=new gt,e.set(a.streamId,n));const r=n.chunks.length,i=(new TextEncoder).encode(a.data);return n.push(i,2),{type:"wrote",id:a.id,streamId:a.streamId,result:t(n.chunks.slice(r)),trailer:vt(n),additionalBytesCount:i.length}}case"reset":e.delete(a.streamId)}}(a,n.data);r&&e.postMessage(r)}catch(t){pt(e,t,n.data&&"streamId"in n.data?n.data.streamId:void 0)}})}catch(t){pt(e,t)}}()})();'])))}let Gt={status:0};function V1(e,t,n){switch(Gt.status===0&&Pte(e,t),Gt.status){case 1:return Gt.initializationFailureCallbacks.push(n),Gt.worker;case 3:return Gt.worker}}function pI(){return Gt.status}function Pte(e,t){try{const n=Nte(e),{stop:r}=Ot(e,n,"error",o=>{Ef(e,t,o)}),{stop:i}=Ot(e,n,"message",({data:o})=>{o.type==="errored"?Ef(e,t,o.error,o.streamId):o.type==="initialized"&&Mte(o.version)});n.postMessage({action:"init"}),On(()=>$te(t),Ote),Gt={status:1,worker:n,stop:()=>{r(),i()},initializationFailureCallbacks:[]}}catch(n){Ef(e,t,n)}}function $te(e){Gt.status===1&&(Ke.error(`${e} failed to start: a timeout occurred while initializing the Worker`),Gt.initializationFailureCallbacks.forEach(t=>t()),Gt={status:2})}function Mte(e){Gt.status===1&&(Gt={status:3,worker:Gt.worker,stop:Gt.stop,version:e})}function Ef(e,t,n,r){Gt.status===1||Gt.status===0?(ay({configuredUrl:e.workerUrl,error:n,source:t,scriptType:"worker"}),Gt.status===1&&Gt.initializationFailureCallbacks.forEach(i=>i()),Gt={status:2}):ih(n,{worker_version:Gt.status===3&&Gt.version,stream_id:r})}function Dte(e,t,n,r){const i=t.findTrackedSession(),s=Bte(e,i,r),o=n.findView();return Ste(e,{viewContext:o,errorType:s,session:i})}function Bte(e,t,n){if(!t)return"rum-not-tracked";if(sy(t,e)===0)return"incorrect-session-plan";if(!n)return"replay-not-started"}function Fte(e,t){if(!e.metricsEnabled)return{stop:Tt};let n,r,i;const{unsubscribe:s}=t.subscribe(o=>{switch(o.type){case"start":n={forced:o.forced,timestamp:jt()},r=void 0,i=void 0;break;case"document-ready":n&&(r=Pt(n.timestamp,jt()));break;case"recorder-settled":n&&(i=Pt(n.timestamp,jt()));break;case"aborted":case"deflate-encoder-load-failed":case"recorder-load-failed":case"succeeded":s(),n&&uc("Recorder init metrics",{metrics:Hte(n.forced,i,Pt(n.timestamp,jt()),o.type,r)});break}});return{stop:s}}function Hte(e,t,n,r,i){return{forced:e,loadRecorderModuleDuration:t,recorderInitDuration:n,result:r,waitForDocReadyDuration:i}}async function Wte(){try{return await Vte()}catch(e){ay({error:e,source:"Recorder",scriptType:"module"})}}async function Vte(){return(await Me(()=>import("./nGXlt584.js"),[],import.meta.url)).startRecording}function Gte(e,t,n,r,i,s){let o=0,a;t.subscribe(9,()=>{(o===2||o===3)&&(v(),o=1)}),t.subscribe(10,()=>{o===1&&d()});const c=new rt;Fte(s,c);const l=async R=>{c.notify({type:"start",forced:R});const[O]=await Promise.all([gI(c,{type:"recorder-settled"},Wte()),gI(c,{type:"document-ready"},i6(e,"interactive"))]);if(o!==2){c.notify({type:"aborted"});return}if(!O){o=0,c.notify({type:"recorder-load-failed"});return}const $=i();if(!$){o=0,c.notify({type:"deflate-encoder-load-failed"});return}({stop:a}=O(t,e,n,r,$,s)),o=3,c.notify({type:"succeeded"})};function d(R){const O=n.findTrackedSession(),$=O?sy(O,e):void 0;if(!Ute($,R)){o=1;return}if(jte(o))return;o=2;const P=zte($,R)||!1;l(P).catch(vn),P&&n.updateSessionState({forcedReplay:"1"})}function v(){o===3&&a?.(),o=0}return{start:d,stop:v,getSessionReplayLink(){return Dte(e,n,r,o!==0)},isRecording:()=>o===3}}function Ute(e,t){return e!==void 0&&(e!==0||t?.force)}function jte(e){return e===2||e===3}function zte(e,t){return t&&t.force&&e===0}async function gI(e,t,n){try{return await n}finally{e.notify(t)}}function Zte(){let e=0;return{strategy:{start(){e=1},stop(){e=2},isRecording:()=>!1,getSessionReplayLink:Tt},shouldStartImmediately(t){return e===1||e===0&&!t.startSessionReplayRecordingManually}}}function Kte(){if(zi()&&!Mx("records"))return{start:Tt,stop:Tt,getReplayStats:()=>{},onRumStart:Tt,isRecording:()=>!1,getSessionReplayLink:()=>{}};let{strategy:e,shouldStartImmediately:t}=Zte();return{start:r=>e.start(r),stop:()=>e.stop(),getSessionReplayLink:()=>e.getSessionReplayLink(),onRumStart:n,isRecording:()=>pI()===3&&e.isRecording(),getReplayStats:r=>pI()===3?kte(r):void 0};function n(r,i,s,o,a,c){let l;function d(){return l||(a??(a=V1(i,"Datadog Session Replay",()=>e.stop())),a&&(l=W1(i,a,1))),l}e=Gte(i,r,s,o,d,c),t(i)&&e.start()}}function Yte(){return $n().Profiler!==void 0}function Xte(e){let t={status:"starting"};return e.register(0,({eventType:n})=>n!==qe.VIEW&&n!==qe.LONG_TASK&&n!==qe.ACTION&&n!==qe.VITAL?Nn:{type:n,_dd:{profiling:t}}),{get:()=>t,set:n=>{t=n}}}async function Jte(){try{return await qte()}catch(e){ay({error:e,source:"Profiler",scriptType:"module"})}}async function qte(){return(await Me(()=>import("./OXyI4tRU.js"),[],import.meta.url)).createRumProfiler}function Qte(){let e;function t(n,r,i,s,o,a){const c=s.findTrackedSession();if(!c||!oh(c.id,Km(i.sessionSampleRate,i.profilingSampleRate)))return;const l=Xte(r);if(!Yte()){l.set({status:"error",error_reason:"not-supported-by-browser"});return}Jte().then(d=>{if(!d){l.set({status:"error",error_reason:"failed-to-lazy-load"});return}e=d(i,n,s,l,a,o,void 0),e.start()}).catch(vn)}return{onRumStart:t,stop:()=>{e?.stop()}}}const ene=Kte(),tne=Qte(),G1=wte(ene,tne,{startDeflateWorker:V1,createDeflateEncoder:W1,sdkName:"rum"});
1443B7($n(),"DD_RUM",G1);let mI,yI;const nne=[],rne=[];function ine(e={}){return{name:"vue",onInit({publicApi:t,initConfiguration:n}){mI=t,yI=e;for(const r of nne)r(yI,mI);e.router&&(n.trackViewsManually=!0)},onRumStart({addError:t}){if(t)for(const n of rne)n(t)},getConfigurationTelemetry(){return{router:!!e.router}}}}function bI(e,t){t.public.DATADOG_RUM.ENABLED&&G1.init({applicationId:t.public.DATADOG_RUM.APPLICATION_ID,clientToken:t.public.DATADOG_RUM.CLIENT_TOKEN,site:t.public.DATADOG_RUM.DATADOG_SITE,service:t.public.DATADOG_RUM.SERVICE_NAME,env:t.public.DATADOG_RUM.ENV,version:t.public.DATADOG_RUM.VERSION,sessionSampleRate:t.public.DATADOG_RUM.SESSION_SAMPLE_RATE,sessionReplaySampleRate:t.public.DATADOG_RUM.SESSION_REPLAY_SAMPLE_RATE,trackResources:!0,trackLongTasks:!0,trackUserInteractions:t.public.DATADOG_RUM.TRACK_USER_INTERACTIONS,useSecureSessionCookie:!0,plugins:[ine()]})}class one{constructor(){this.deferredScripts=[],this.requiresFullPageReload=!1}add(t){typeof t=="function"&&this.deferredScripts.push(t)}hasDeferredScripts(){return this.deferredScripts.length>0}forceReloadOnConsent(t){typeof t?.reload=="function"&&!this.locationInstance&&(this.locationInstance=t,this.requiresFullPageReload=!0)}async executeAll(){const t=this.deferredScripts;this.deferredScripts=[];for(const n of t)try{await n()}catch{continue}}async consent(){if(this.requiresFullPageReload&&this.locationInstance)this.locationInstance.reload();else try{await this.executeAll()}catch{}}}const Xi=new one,sne=Je(e=>{const t=ln();ha()?Xi.add(()=>{bI(e,t)}):bI(e,t)}),zc="c";class ane{constructor(){this.baseUrl=""}configure({baseUrl:t}){this.baseUrl=t}getUrl(t,n={actionsDisabled:!1,collectionContext:!1,parent:!1,mydcListUrl:!1}){if(!t)return!1;switch(fW(t)){case"Collection":return`/collections/${t.slug}`;case"ComicSeries":return`/comics/series/${t.slug||ho(t.title)}/${t.uuid}`;case"Book":return n.parent?`/comics/series/${t.slug||ho(t.seriesTitle)}/${t.seriesUuid}`:`/comics/book/${t.slug||ho(t.title)}/${t.uuid}/${n.collectionContext||zc}`;case"BookHistory":return n.actionsDisabled?`/comics/book/${t.book.slug||ho(t.book.title)}/${t.book.uuid}/${n.collectionContext||zc}`:`/comics/book/${t.book.slug||ho(t.book.title)}/${t.book.uuid}/${n.collectionContext||zc}/reader`;case"BookRead":return`/comics/book/${t.slug||ho(t.title)}/${t.uuid}/${n.collectionContext||zc}/reader`;case"List":case"UserList":return n.mydcListUrl?`/mydc/lists/${t.uuid}`:`/lists/${t.uuid}`;default:return""}}getCanonicalUrl(t,n){if(!t)return!1;let r;return n==="Book"?r=`/comics/book/${t.slug||ho(t.title)}/${t.uuid}`:r="",this.buildUrl(r)}generateCanonicalUrl({route:t}){const n=t.path;let r=n;return n.endsWith("/")&&(r=n.substr(0,n.length-1)),n.includes("/reader")&&(r=n.replace(/\/reader/,"")),this.buildUrl(r)}buildUrl(t){return`${this.baseUrl}${t}`}}const lne=new ane;function cne(e){const t=ln();lne.configure({baseUrl:t.public.CLIENT_BASE_URL})}const une=Je(cne);function dne(e){e.$store.dispatch("applicationConfig/setProperties",HB()),B_(null)}const hne=Je(dne);function fne(e){e.$store.dispatch("applicationConfig/setProperties",Re.config)}const pne=Je(fne);var Zc={exports:{}},vI;function gne(){if(vI)return Zc.exports;vI=1;function e(){}return e.prototype={on:function(t,n,r){var i=this.e||(this.e={});return(i[t]||(i[t]=[])).push({fn:n,ctx:r}),this},once:function(t,n,r){var i=this;function s(){i.off(t,s),n.apply(r,arguments)}return s._=n,this.on(t,s,r)},emit:function(t){var n=[].slice.call(arguments,1),r=((this.e||(this.e={}))[t]||[]).slice(),i=0,s=r.length;for(i;i<s;i++)r[i].fn.apply(r[i].ctx,n);return this},off:function(t,n){var r=this.e||(this.e={}),i=r[t],s=[];if(i&&n)for(var o=0,a=i.length;o<a;o++)i[o].fn!==n&&i[o].fn._!==n&&s.push(i[o]);return s.length?r[t]=s:delete r[t],this}},Zc.exports=e,Zc.exports.TinyEmitter=e,Zc.exports}var xf,CI;function mne(){if(CI)return xf;CI=1;var e=gne();return xf=new e,xf}var yne=mne();const Kc=Wd(yne),cg={$on:(...e)=>Kc.on(...e),$once:(...e)=>Kc.once(...e),$off:(...e)=>Kc.off(...e),$emit:(...e)=>Kc.emit(...e)};function bne(){return(Ue().$store.state.lists.userListsUrns["follow-series"]??[]).map(n=>n.uuid)}function ly(){if(dS())return!1;const t=Ue().$store.state.account.profile,n=!!t.optIn;return!!t.guid&&!n}
1443function vne(){if(!ly())return;const e=j1(),t=Number(bne().length);e<t&&U1(t)}function U1(e=0){const t=z1();jn.set(t,e,{secure:!0,sameSite:"Lax",expires:365})}function j1(){const e=z1();return Number(jn.get(e))||0}function z1(){if(!ly())throw new Error("User is not eligible for follow series cookie");return`followSeriesCounter_${Ue().$store.state.account.profile.guid}`}function xae(e="this series"){if(!ly())return;const t=j1()+1,n=[1,10,50].includes(t);U1(t),n&&cg.$emit("showFollowSeriesReminderModal",{seriesTitle:e})}async function Cne(e){const t=e.$store.getters["account/user"].sessionId;if(t)try{await e.$store.dispatch("account/loginWithToken",t),await e.$store.dispatch("lists/getUserListUrns",{uuid:"favorites"}),await e.$store.dispatch("lists/getUserListUrns",{uuid:"follow-series"}),vne()}catch{await e.$store.dispatch("account/logout")}}const Ine=Je(Cne);async function Ane(e){try{await e.$store.dispatch("account/getClaims")}catch{}}const wne=Je(Ane);function _ne(){const t=Ue().$store?.state?.account?.claims?.premium?._rawProperties?.terms_of_use_updated==="100";wt.createFlag({name:"show_tos_updated",persist:!1,rollDice:!1,enabled:t})}function Sne(){const t=Ue().$store?.state?.account?.claims?.premium?._rawProperties?.privacy_policy_updated==="100";wt.createFlag({name:"show_pp_updated",persist:!1,rollDice:!1,enabled:t})}function Ene(){const t=Ue().$store?.state?.account?.claims?.premium?._rawProperties?.disable_change_email==="100";wt.createFlag({name:"disable_change_email",persist:!1,rollDice:!1,enabled:t})}function xne(){const t=Ue().$store.state?.account?.claims?.premium?._rawProperties?.recaptcha_enabled_dcui==="100";return wt.createFlag({name:"recaptcha_enabled_dcui",persist:!1,rollDice:!1,enabled:t})}function Tne(){const t=Ue().$store.state?.account?.claims?.premium?._rawProperties?.coming_soon_apps_enabled==="100";return wt.createFlag({name:"coming_soon_apps_enabled",persist:!1,rollDice:!1,enabled:t})}function kne(){const t=Ue().$store.state?.account?.claims?.premium?._rawProperties?.marketing_locale_enabled_dcui==="100";return wt.createFlag({name:"marketing_locale_enabled_dcui",persist:!1,rollDice:!1,enabled:t})}function Rne(){const t=Ue().$store.state?.account?.claims?.premium?._rawProperties?.braze_inbox_cards==="100";return wt.createFlag({name:"braze_inbox_cards",persist:!1,rollDice:!1,enabled:t})}function Lne(){const e=Ue(),t=e.$store.state?.account?.claims?.premium?._rawProperties?.use_arkose_dcui==="100";wt.createFlag({name:"use_arkose_dcui",persist:!1,rollDice:!1,enabled:t});const n=e.$store.state?.account?.claims?.premium?._rawProperties?.use_arkose_dcui_iframe==="100";wt.createFlag({name:"use_arkose_dcui_iframe",persist:!1,rollDice:!1,enabled:n});const r=e.$store.state?.account?.claims?.premium?._rawProperties?.use_arkose_datablob_dcui==="100";wt.createFlag({name:"use_arkose_datablob_dcui",persist:!1,rollDice:!1,enabled:r})}function One(){const t=Ue().$store.state?.account?.claims?.premium?._rawProperties?.pull_list_enabled_dcui==="100";return wt.createFlag({name:"pull_list_enabled_dcui",persist:!1,rollDice:!1,enabled:t})}function Nne(){const t=Ue().$store?.state?.account?.claims?.premium?._rawProperties?.dcui_details_sort_filters==="100";return wt.createFlag({name:"dcui_details_sort_filters",persist:!1,rollDice:!1,enabled:t})}function Pne(){const t=Ue().$store.state?.account?.claims?.premium?._rawProperties?.offset_cache_header_dcui==="100";return wt.createFlag({name:"offset_cache_header_dcui",persist:!1,rollDice:!1,enabled:t})}function $ne(){const t=Ue().$store.state?.account?.claims?.premium?._rawProperties?.search_landing_enabled_dcui==="100";return wt.createFlag({name:"search_landing_enabled_dcui",persist:!1,rollDice:!1,enabled:t})}const Ju="app_banner_enabled_dcui",ug="app_banner_ios_custom_dcui",dg="app_banner_android_custom_dcui";function Tf(e,t){return e.$store.state?.account?.claims?.premium?._rawProperties?.[t]==="100"}function Mne(){const e=Ue();wt.createFlag({name:Ju,persist:!1,rollDice:!1,enabled:Tf(e,Ju)}),wt.createFlag({name:ug,persist:!1,rollDice:!1,enabled:Tf(e,ug)}),wt.createFlag({name:dg,persist:!1,rollDice:!1,enabled:Tf(e,dg)})}function Dne(e){_ne(),Sne(),Ene(),xne(),Tne(),kne(),Rne(),Lne(),One(),Nne(),Pne(),$ne(),Mne(),e.hook("app:rendered",()=>{wt.clearAll()})}const Bne=Je(Dne);function Fne(e){return new Promise((t,n)=>{const r=e.$store.state.applicationConfig.config.countryCode;As.updateAllowlistCountriesClaim(e.$store.state.account?.claims?.premium?._rawProperties?.allowlist_countries_dcui),As.parseComingSoonFromClaim(e.$store.state.account?.claims?.premium?._rawProperties?.coming_soon_countries_dcui);const i=gr();if(!As.checkAccess(r,i.name)||!e.$store.state.applicationConfig.config.countrySupported)return wt.isEnabled("coming_soon_apps_enabled")&&As.shouldUseAlternateComingSoon(r)?Kr("/coming-soon-apps/",{external:!0}):Kr("/coming-soon/",{external:!0});t()})}const Hne=Je(Fne),kf={missingAppConfigs({jsonbags:e=[],slugs:t=[]}){return t.map(r=>e.find(i=>i.slug===r)?!0:r).filter(r=>r!==!0)},async populateCachedJsonbags(e){let t=null;try{t=await Me(()=>import("./DJYGATBs.js"),[],import.meta.url)}catch{}t?.collectionItems?.forEach(n=>{e.$store.getters["jsonbag/bySlug"](n.item.slug)||e.$store.commit("jsonbag/update",n.item)})},async getConfigJsonbags(e,t){try{await e.$store.dispatch("collections/getCollectionItems",{slug:t,pageSize:50})}catch{}let n=[];const r=e.$store.state.collections.collectionItems[t];return r&&r.length&&(n=r[0].map(s=>s._normalized)),n}};async function Wne(e){const t=e.$config,n=t.public.CONFIG_JSONBAG_COLLECTION_SLUG,r=Object.values(t.public.CONFIG_JSONBAG_SLUGS),i=await kf.getConfigJsonbags(e,n
1443);kf.missingAppConfigs({jsonbags:i,slugs:r}).length&&await kf.populateCachedJsonbags(e)}const Vne=Je(Wne);async function Gne(e){const t=e.$config;if(t.public&&t.public.SWIFTYPE){const n=await Re.services.consumer.get({name:"www"}),r={proxy:t.public.SWIFTYPE.HOST,consumerSecret:n.consumerSecret,analyticsHost:t.public.SWIFTYPE.ANALYTICS_HOST};Xp.configure(r)}}const Une=Je(Gne);function Z1(){const e=["dc.com","dcfandome.com","dcuniverse.com","dcuniverseinfinite.com","shop.dccomics.com","dccomics.com","drama9.com","wbdnmv.net"];window.ga?(window.ga("require","linker"),window.ga("linker:autoLink",e)):setTimeout(Z1,500)}async function II(e){const t=await sn(),n=await GB();t.segmentInitializer.fireWhenReady(()=>{Z1()});try{await t.init(e)}catch{}n.identify(),t.alias(t.crossDataID)}async function jne(e){gr().name!=="login-iframe-v2"&&(ha()?Xi.add(()=>II(e)):await II(e))}const zne=Je(jne);async function Zne(e){if(!e.$store.getters["account/isAnonymous"]&&!jn.get("session"))try{await Re.services.user.account.setCookie()}catch{}}const Kne=Je(Zne);async function Yne(e){e.$store.getters["account/isAnonymous"]||await t(),e.$store.watch(n=>n?.account?.user?.sessionId,async(n,r)=>{(!n||n!==r)&&e.$store.dispatch("userComicHistoryReduced/clearHistory"),n&&n!==r&&await t()});async function t(){const r=parseInt(e.$store.state.account?.claims?.premium?._rawProperties?.comic_history_limit_per_call),i=isNaN(r)?150:r;if(i===0)return;await e.$store.dispatch("userComicHistoryReduced/getItems",{limit:i});let s;for(;s=e.$store.state.userComicHistoryReduced.history.lastKey;)await e.$store.dispatch("userComicHistoryReduced/getMoreItems",{limit:i,startFrom:s})}}const Xne=Je(Yne),Jne=()=>Ue().$device;function qne(){return!Jne().isCrawler}function Qne(e){const t=e.$store.state.applicationConfig.config.countryCode;return!t||hm(t)}function ere(e){const{$store:t}=e;return t.getters["account/isAnonymous"]?!!jn.get("hasAcceptedLTP"):!!t.state.agreements.terms?.accepted}function tre(e){qne()&&e.hook("app:mounted",async()=>{if(!Qne(e)){await Xi.consent();return}if(!e.$store.state.agreements.terms){const t=e.$store.getters["account/isAnonymous"];await e.$store.dispatch("agreements/getTerms",{anon:t})}ere(e)&&(jn.set("hasAcceptedLTP",!0),await Xi.consent())})}const nre=Je(tre),AI="wbdl_nosell_fired";async function rre(e){if(gr().name==="login-iframe-v2"||!localStorage||localStorage.getItem(AI)||!e.$store?.state?.account?.claims?.premium)return;e.$store.state.account.claims.premium.userRequestDoNotSell&&((await sn()).track("Do Not Sell Toggled",{do_not_sell:!0}),localStorage.setItem(AI,!0))}const ire=Je(rre);class ore{constructor({eventKeys:t,defaultKey:n,fetchDatablob:r=!1}){this.fetchDatablob=r,this.eventKeyMapping=t,this.defaultKey=n,this.elementSelector="",this.language="en-us",this.dxDatablob=null,this.arkoseEventHandlers=[],this.ArkoseInstances={},this.actionPromises={},this.activeAction=null,this.initialize()}initialize(){let t=[this.defaultKey];this.eventKeyMapping&&Object.keys(this.eventKeyMapping).forEach(n=>t.push(this.eventKeyMapping[n])),t=[...new Set(t)],t.forEach(n=>this.createScript(n))}setElementSelector(t){this.elementSelector=t}setLanguage(t){this.language=t}getActiveInstance(){return this.ArkoseInstances[this.getKeyForAction(this.activeAction)]}getKeyForAction(t){return this.eventKeyMapping[t]||this.defaultKey}getActivePromises(){return this.actionPromises[this.activeAction]}onArkoseEvent(t){return this.arkoseEventHandlers.push(t),!0}offArkoseEvent(t){const n=this.arkoseEventHandlers.indexOf(t);return n!==-1?(this.arkoseEventHandlers.splice(n,1),!0):!1}_fireArkoseEventHandlers(t){this.arkoseEventHandlers.forEach(n=>n(t))}createScript(t){if(!t)return;const n=`ARKOSE_CALLBACK_${t.replace(/-/g,"")}`;window[n]=i=>{this.ArkoseInstances[t]=i};const r=document.createElement("script");r.type="text/javascript",r.src="https://client-api.arkoselabs.com/v2/"+t+"/api.js",r.setAttribute("data-callback",n),r.async=!0,r.defer=!0,r.id=`arkose-script-${t}`,document.head.append(r)}_generateArkoseEventHandler(t,n){return r=>{this._fireArkoseEventHandlers({action:t,eventName:n,response:r})}}configure(){const t=this.getActiveInstance(),n=this.activeAction,r={selector:this.elementSelector,mode:"inline",onCompleted:i=>{this._generateArkoseEventHandler(n,"onCompleted")(i),this.actionPromises[n].resolve(i.token)},onReady:this._generateArkoseEventHandler(n,"onReady"),onSuppress:this._generateArkoseEventHandler(n,"onSuppress"),onShown:this._generateArkoseEventHandler(n,"onShown"),onShow:this._generateArkoseEventHandler(n,"onShow"),onResize:this._generateArkoseEventHandler(n,"onResize"),onReset:this._generateArkoseEventHandler(n,"onReset"),onHide:this._generateArkoseEventHandler(n,"onHide"),onError:this._generateArkoseEventHandler(n,"onError"),onFailed:this._generateArkoseEventHandler(n,"onFailed"),language:this.language};this.dxDatablob&&this.dxDatablob.encodedData&&(r.data={blob:this.dxDatablob.encodedData}),t.setConfig(r)}async fetchAdx(t){const n={login:"LOGIN",register:"REGISTER",reset_password:"RESET_PASSWORD",paymentmethod_create:"PM_CREATE",subscribe:"SUBSCRIBE"};if(this.fetchDatablob&&n[t])try{this.dxDatablob=await Re.services.user.adx.get({useCase:n[t]})}catch{}}async getToken(t){return this._fireArkoseEventHandlers({action:t,eventName:"dcui-modal-forceclose"}),await this.fetchAdx(t),new Promise((n,r)=>{this.activeAction=t,this.actionPromises[t]={resolve:n,reject:r},this._fireArkoseEventHandlers({action:t,eventName:"dcui-modal-launch"}),setTimeout(()=>{this.configure()})})}}class sre{constructor(){this.RecaptchaInstance=null}initialize(t){this.RecaptchaInstance=new ore(t)}getToken(t){return this.RecaptchaInstance.getToken(t)}}
1443const wI=new sre;function are(e){if(!wt.isEnabled("recaptcha_enabled_dcui"))return;let t="use_arkose_dcui";gr().name==="login-iframe-v2"&&(t="use_arkose_dcui_iframe");const r=e.$config;if(wt.isEnabled(t)){e.$store.commit("applicationConfig/setCaptchaPlatform","arkose");let i=r.public.ARKOSE_CONFIG;wt.isEnabled("use_arkose_datablob_dcui")||(i={...i,fetchDatablob:!1}),ha()?Xi.add(()=>{wI.initialize(i)}):wI.initialize(i)}}const lre=Je(are),ds={async load(){if(this.client)return;const e=await Me(()=>import("./BMQEZWuL.js"),[],import.meta.url);this.client=e}};async function _I(e,t,n){await ds.load(),ds.client.initialize(e,{baseUrl:t}),!n.$store.getters["account/isAnonymous"]&&n.$store.getters["account/userGuid"]&&ds.client.changeUser(n.$store.getters["account/userGuid"]);let r=!1;ds.client.subscribeToContentCardsUpdates(i=>{if(n.$store.getters["account/isAnonymous"])return;const s=i.cards.filter(o=>!o.viewed);n.$store.dispatch("braze-inbox/setMessageCount",s.length),s.length&&!r&&(n.$store.dispatch("toasts/displayNotification",{text:"You have a new message! ",linkText:"Check your inbox",async linkAction(){n.$store.dispatch("toasts/removeNotification"),await Kr("/mydc/inbox")},persist:!0}),r=!0)}),n.$store.watch(i=>i?.account?.user?.sessionId,()=>{r=!1,n.$store.dispatch("toasts/removeNotification")}),ds.client.openSession(),ds.client.requestContentCardsRefresh()}async function cre(e){if(!wt.isEnabled("braze_inbox_cards"))return;const t=e.$config,n=t.public.BRAZE?.API_KEY,r=t.public.BRAZE?.BASE_URL;!n||!r||(ha()?Xi.add(()=>_I(n,r,e)):await _I(n,r,e))}const ure=Je(cre);function dre(e,t){Dt().afterEach((r,i)=>{let s,o;r.meta?.segmentName&&(s=r.meta.segmentName),Array.isArray(r.meta?.queriesToIncludeInSegmentName)&&(o=r.meta.queriesToIncludeInSegmentName),e.$store.dispatch("segment/setName",s);let a=document.referrer;i.matched.length&&i.path&&(a=new URL(i.path,document.baseURI).href);const c={name:s,referrer:a,params:r.params,store:e.$store,query:r.query,queriesToInclude:o};t.checkState(c)})}async function hre({name:e,referrer:t,slug:n}){const r=await sn();let i;try{i=await Re.services.collections.get({slug:n})}catch{return}const s={referrer:t,collection_name:i.title,collection_id:i.id,collection_type:"Standard"};i.metadata&&(i.metadata.layout==="collections"||i.metadata.layout==="comic_editorial"||i.metadata.layout==="comic_editorial_with_details")&&(s.collection_type="Editorial");let o;if(s.collection_type==="Standard"){try{o=await Re.services.collections.getItems({slug:n})}catch{return}s.collection_item_type=o.collectionItems[0].type}else s.collection_item_count=i.metadata.item_count,s.collection_item_type="All";Nd(s),r.page(e,s)}async function fre({name:e,referrer:t,uuid:n}){const r=await sn();let i;try{i=await Re.services.comics.getBook({uuid:n})}catch{return}const s={referrer:t,dcu_asset_id:i.uuid,dcu_asset_name:i.title,dcu_asset_type:"Comics Book"};Nd(s),r.page(e,s)}async function pre({name:e,referrer:t,uuid:n,store:r}){const i=await sn();let s;try{s=await Re.services.comics.getSeries({uuid:n})}catch{return}i.bluekaiCall({WBSiteSec:"ComicSeriesDetail",WBCmcTitle:s.title,WBMemberStatus:r.getters["account/userType"]});const o=Object.keys(s.numBooks),a={referrer:t,dcu_asset_id:s.uuid,dcu_asset_name:s.title,dcu_asset_type:"Comics Series",tab_name:o[0],tab_index:0};Nd(a),i.page(e,a)}async function gre({name:e,referrer:t,uuid:n,store:r}){let i;try{i=await Re.services.comics.getBook({uuid:n})}catch{return}const s=await sn();s.bluekaiCall({WBSiteSec:"ComicIssueDetail",WBCmcTitle:i.title,WBCelebrity:[...i.authors.map(a=>a.name),...i.pencillers.map(a=>a.name),...i.inkers.map(a=>a.name),...i.coverArtists.map(a=>a.name),...i.colorists.map(a=>a.name)].join(","),WBMemberStatus:r.getters["account/userType"]});const o={referrer:t,dcu_asset_id:i.uuid,dcu_asset_name:i.title,dcu_asset_type:"Comics Book",tab_name:"Details",tab_index:0};Nd(o),s.page(e,o)}async function mre({name:e,referrer:t,store:n}){const r=await sn();r.bluekaiCall({WBSiteSec:"Confirmation",WBMemberStatus:n.getters["account/userType"]});const i={referrer:t};r.page(e,i)}async function yre({name:e,referrer:t}){const n=await sn(),r={referrer:t};n.page(e,r)}async function bre({name:e,referrer:t}){const n=await sn(),r={referrer:t};n.page(`${e} - Comic History`,r)}async function vre({name:e,referrer:t,store:n}){const r=await sn();r.bluekaiCall({WBSiteSec:"HomeHub",WBMemberStatus:n.getters["account/userType"]});const i={referrer:t};r.page(e,i)}async function Cre({name:e,referrer:t,userGuid:n,store:r}){const i=await sn(),s={referrer:t,is_own_list:String(!!(n&&n===r.getters["account/userGuid"])||t.includes("mydc"))};i.page(e,s)}const Ire=(e,t)=>
1443{if(!t||!Object.keys(e).filter(r=>t.includes(r)).length)return"";const n=[];return t.forEach(r=>{e[r]&&n.push(e[r])}),` - ${n.join(" ")}`};async function Are({name:e,referrer:t,store:n,query:r,queriesToInclude:i}){const s=await sn();s.bluekaiCall({WBSiteSec:"Premium",WBMemberStatus:n.getters["account/userType"]});const o={referrer:t},a=e+Ire(r,i);s.page(a,o)}const SI={comics:"Comics",comicseries:"Comic Series",book:"Comic Books"};async function wre({name:e,referrer:t,store:n,filter:r,group:i,query:s}){const o=s?e:"Search Landing Page";n.dispatch("segment/setName",o);const a=await sn(),c={referrer:t,dcu_asset_type:"All"};s&&(c.search_query=s),r?c.dcu_asset_type=SI[r]:i&&(c.dcu_asset_type=SI[i]),a.page(o,c)}async function _re({name:e,referrer:t,store:n}){const r=await sn();r.bluekaiCall({WBSiteSec:"Register",WBMemberStatus:n.getters["account/userType"]});const i={referrer:t};r.page(e,i)}async function Sre({name:e,referrer:t,store:n}){const r=await sn();r.bluekaiCall({WBSiteSec:"Subscribe",WBMemberStatus:n.getters["account/userType"]});const i={referrer:t};r.page(e,i)}const Xn={collection:hre,comicRead:fre,comicSeries:pre,comic:gre,confirmation:mre,defaultPage:yre,historyDetail:bre,home:vre,listDetail:Cre,premium:Are,search:wre,signup:_re,subscribe:Sre};class Ere{checkState({referrer:t,name:n,params:r,store:i,query:s,queriesToInclude:o}){let a=n;n==="Comic Book Detail"&&r.readerActive==="reader"&&(a="comic-read");const c={referrer:t,name:a,store:i,query:s,queriesToInclude:o};switch(a){case"Comic Series Detail":Xn.comicSeries({...c,uuid:r.uuid});break;case"Sign Up For Your Universe":Xn.signup({...c});break;case"premium":Xn.premium({...c});break;case"subscribe":Xn.subscribe({...c});break;case"confirmation":Xn.confirmation({...c});break;case"Homepage":Xn.home({...c});break;case"Comic Book Detail":Xn.comic({...c,uuid:r.uuid});break;case"comic-read":Xn.comicRead({...c,uuid:r.uuid});break;case"Search Results":Xn.search({...c,filter:r.filter,group:r.group,query:s?.q});break;case"Collection Details":Xn.collection({...c,slug:r.slug});break;case"History Detail":Xn.historyDetail({...c});break;case"List Detail":Xn.listDetail({...c});break;default:Xn.defaultPage({referrer:t,name:a||window.location.pathname})}}}const xre=new Ere,Tre=Je(e=>dre(e,xre));function kre(e){Dt().afterEach(n=>{const r=n.query;Object.keys(r).forEach(i=>{i.startsWith("utm_")&&jn.set(i,r[i])})})}const Rre=Je(kre),Lre=Je(Rre);async function Ore(){let e;return e=await Me(()=>import("./DhvBVpzo.js"),[],import.meta.url),e.default}async function Nre(e){const t=await Ore();t.onPageLoad(),Dt().afterEach(()=>t.onRouteChange())}const Pre=Je(Nre),$re=Je(Pre),Mre=async function(){const e=Dre();if(e)try{await Re.services.claims.updatePremiumClaim({name:"optanonconsent",value:e})}catch{}},Dre=function(){const e=decodeURIComponent(jn.get("OptanonConsent")||"")?.split("&").find(t=>{const[n]=t.split("=");return n==="groups"});return e?e.split("=")[1]:""},Tae=()=>"xxxxxxxxxxxxxxxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)}),kae=/^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%^&*])(?=.{8,})/;function Rae(){const e=document.getElementsByTagName("link");for(let t=0,n;n=e[t];t++)if(n.getAttribute("rel")==="canonical")return n.getAttribute("href")}function Bre(e,t=100){let n;return(...r)=>{clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}}function Fre(e){const t=ln();if(t?.public?.ONETRUST?.URL&&t?.public?.ONETRUST?.DATA_DOMAIN){const n=t.public.ONETRUST.URL,r=t.public.ONETRUST.DATA_DOMAIN,i=document.createElement("script");i.src=`${n}`,i.setAttribute("data-domain-script",`${r}`),document.head.appendChild(i);const s=document.createElement("script");s.type="text/javascript",s.innerHTML='function OptanonWrapper() { window.dataLayer.push({"event":"GroupsUpdated"}); document.dispatchEvent(new Event("onetrustInteraction")); }',document.head.appendChild(s);const o=Bre(async()=>{e.$store.getters["account/isAnonymous"]||await Mre()},1e3);document.addEventListener("onetrustInteraction",o)}}const Hre=Je(Fre);function Wre(e){const t=r=>{const i=e.$store.getters["account/isAnonymous"],s=jn.get("session");
1443if(i&&s)return e.$store.dispatch("account/loginWithToken",s).catch(()=>{Re.http.setAuthorizationToken(null),jn.remove("session"),e.$store.dispatch("account/clearAllUserData")}).finally(r);r()};Dt().beforeEach((r,i,s)=>t(s))}const Vre=Je(Wre);function Gre(e){Dt().afterEach(n=>{const r=n.query;r.promo&&r.promo.length<=16&&jn.set("dcui_auto_apply_promo",r.promo)})}const Ure=Je(Gre),K1=Symbol("wormhole");function Y1(){const e=Nt(K1);if(!e)throw new Error(` 1444 [portal-vue]: Necessary Injection not found. Make sur you installed the plugin properly.`);return e}const X1=typeof window<"u";function jre(e,t){return e.map((n,r)=>[r,n]).sort(function(n,r){return t(n[1],r[1])||n[0]-r[0]}).map(n=>n[1])}function zre(e,t){const n=Y1();function r(){if(!X1)return;const{to:s,name:o,order:a}=e;t.default?n.open({to:s,from:o,order:a,content:t.default}):i()}function i(s){n.close({to:s??e.to,from:e.name})}tr(()=>{e.disabled||r()}),Ul(()=>{e.disabled?i():r()}),Ci(()=>{i()}),xt(()=>e.to,(s,o)=>{e.disabled||(o&&o!==s&&i(o),r())})}const Zre=an({compatConfig:{MODE:3},name:"portal",props:{disabled:{type:Boolean},name:{type:[String,Symbol],default:()=>Symbol()},order:{type:Number},slotProps:{type:Object,default:()=>({})},to:{type:String,default:()=>String(Math.round(Math.random()*1e7))}},setup(e,{slots:t}){return zre(e,t),()=>e.disabled&&t.default?t.default(e.slotProps):null}}),Kre=(e,{slots:t})=>{var n;return(n=t.default)==null?void 0:n.call(t)},Yre=an({compatConfig:{MODE:3},name:"portalTarget",props:{multiple:{type:Boolean,default:!1},name:{type:String,required:!0},slotProps:{type:Object,default:()=>({})}},emits:["change"],setup(e,{emit:t,slots:n}){const r=Y1(),i=Xe(()=>{const s=r.getContentForTarget(e.name,e.multiple),o=n.wrapper,a=s.map(l=>l.content(e.slotProps)),c=o?a.flatMap(l=>l.length?o(l):[]):a.flat(1);return{vnodes:c,vnodesFn:()=>c}});return xt(i,({vnodes:s})=>{const o=s.length>0,a=r.transports.get(e.name),c=a?[...a.keys()]:[];t("change",{hasContent:o,sources:c})},{flush:"post"}),()=>{var s;return i.value.vnodes.length?[At("div",{style:"display: none",key:"__portal-vue-hacky-scoped-slot-repair__"}),At(Kre,i.value.vnodesFn)]:(s=n.default)==null?void 0:s.call(n)}}});function Xre(e=!0){const t=Pn(new Map);function n(o){if(!X1)return;const{to:a,from:c,content:l,order:d=1/0}=o;if(!a||!c||!l)return;t.has(a)||t.set(a,new Map);const v=t.get(a),R={to:a,from:c,content:l,order:d};v.set(c,R)}function r(o){const{to:a,from:c}=o;if(!a||!c)return;const l=t.get(a);!l||(l.delete(c),l.size||t.delete(a))}function i(o,a){const c=t.get(o);if(!c)return[];const l=Array.from(c?.values()||[]);return a?jre(l,(d,v)=>d.order-v.order):[l.pop()]}const s={open:n,close:r,transports:t,getContentForTarget:i};return e?hl(s):s}const Jre=Xre();function qre(e,t={}){t.portalName!==!1&&e.component(t.portalName||"Portal",Zre),t.portalTargetName!==!1&&e.component(t.portalTargetName||"PortalTarget",Yre);const n=t.wormhole??Jre;e.provide(K1,n)}const Qre=Je(e=>{e.vueApp.use(qre)});function eie(){const e=Dt(),t=yt(e.currentRoute.value);return e.afterEach((n,r)=>{t.value=r}),{provide:{lastRoute:t}}}const tie=Je(eie),nie=Je({name:"i18n:plugin:ssg-detect",dependsOn:["i18n:plugin","i18n:plugin:route-locale-detect"],enforce:"post",setup(e){}}),rie=[QB,zF,KF,QF,tG,rG,iG,oG,aG,uG,hG,Kj,Yj,Xj,e5,g5,_5,L5,pX,mX,bX,CX,sne,une,hne,pne,Ine,wne,Bne,Hne,Vne,Une,zne,Kne,Xne,nre,ire,lre,ure,Tre,Lre,$re,Hre,Vre,Ure,Qre,tie,nie];function iie(e,t){const n=t/e*100;return 2/Math.PI*100*Math.atan(n/50)}function oie(e={}){const{duration:t=2e3,throttle:n=200,hideDelay:r=500,resetDelay:i=400}=e,s=e.estimatedProgress||iie,o=Ue(),a=wn(0),c=wn(!1),l=wn(!1);let d=!1,v,R,O,$;const P=(g={})=>{x(),l.value=!1,T(0,g)};function T(g=0,u={}){if(o.isHydrating)return;if(g>=100)return N({force:u.force});S(),a.value=g<0?0:g;const y=u.force?0:n;y?R=setTimeout(()=>{c.value=!0,b()},y):(c.value=!0,b())}function C(){O=setTimeout(()=>{c.value=!1,$=setTimeout(()=>{a.value=0},i)},r)}function N(g={}){a.value=100,d=!0,S(),x(),g.error&&(l.value=!0),g.force?(a.value=0,c.value=!1):C()}function x(){clearTimeout(O),clearTimeout($)}function S(){clearTimeout(R),cancelAnimationFrame(v)}function b(){d=!1;let g;function u(y){if(d)return;g??=y;const m=y-g;a.value=Math.max(0,Math.min(100,s(t,m))),v=requestAnimationFrame(u)}v=requestAnimationFrame(u)}let p=()=>{};{const g=o.hook("page:loading:start",()=>{P()}),u=o.hook("page:loading:end",()=>{N()}),y=o.hook("vue:error",()=>N({error:!0}));p=()=>{y(),g(),u(),S(),x()}}return{_cleanup:p,progress:Xe(()=>a.value),isLoading:Xe(()=>c.value),error:Xe(()=>l.value),start:P,set:T,finish:N,clear:S}}function sie(e={}){const t=Ue(),n=t._loadingIndicator||=oie(e);return qi()&&(t._loadingIndicatorDeps||=0,t._loadingIndicatorDeps++,Zr(()=>{t._loadingIndicatorDeps--,t._loadingIndicatorDeps===0&&(n._cleanup(),delete t._loadingIndicator)})),n}
1444const aie=an({name:"NuxtLoadingIndicator",props:{throttle:{type:Number,default:200},duration:{type:Number,default:2e3},hideDelay:{type:Number,default:500},resetDelay:{type:Number,default:400},height:{type:Number,default:3},color:{type:[String,Boolean],default:"repeating-linear-gradient(to right,#00dc82 0%,#34cdfe 50%,#0047e1 100%)"},errorColor:{type:String,default:"repeating-linear-gradient(to right,#f87171 0%,#ef4444 100%)"},estimatedProgress:{type:Function,required:!1}},setup(e,{slots:t,expose:n}){const{progress:r,isLoading:i,error:s,start:o,finish:a,clear:c}=sie({duration:e.duration,throttle:e.throttle,hideDelay:e.hideDelay,resetDelay:e.resetDelay,estimatedProgress:e.estimatedProgress});return n({progress:r,isLoading:i,error:s,start:o,finish:a,clear:c}),()=>At("div",{class:"nuxt-loading-indicator",style:{position:"fixed",top:0,right:0,left:0,pointerEvents:"none",width:"auto",height:`${e.height}px`,opacity:i.value?1:0,background:s.value?e.errorColor:e.color||void 0,backgroundSize:`${r.value>0?100/r.value*100:0}% auto`,transform:`scaleX(${r.value}%)`,transformOrigin:"left",transition:"transform 0.1s, height 0.4s, opacity 0.4s",zIndex:999999}},t)}}),J1=(e="RouteProvider")=>an({name:e,props:{route:{type:Object,required:!0},vnode:Object,vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(t){const n=t.renderKey,r=t.route,i={};for(const s in t.route)Object.defineProperty(i,s,{get:()=>n===t.renderKey?t.route[s]:r[s],enumerable:!0});return Ir(Po,or(i)),()=>t.vnode?At(t.vnode,{ref:t.vnodeRef}):t.vnode}}),lie=J1(),EI=new WeakMap,cie=an({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t,slots:n,expose:r}){const i=Ue(),s=yt(),o=Nt(Po,null);let a;r({pageRef:s});const c=Nt(iw,null);let l;const d=i.deferHydration();let v=!1,R=!1,O=0;if(i.isHydrating){const P=i.hooks.hookOnce("app:error",d),T=Dt().beforeEach(()=>{P(),T()})}e.pageKey&&xt(()=>e.pageKey,(P,T)=>{P!==T&&i.callHook("page:loading:start")});let $=!1;{const P=Dt().beforeResolve(()=>{$=!1});Ci(()=>{P(),d()})}return()=>At(aS,{name:e.name,route:e.route,...t},{default:P=>{const T=uie(o,P.route,P.Component),C=o&&o.matched.length===P.route.matched.length;if(!P.Component){if(l&&!C&&!Rf(l))return l;d();return}if(l&&c&&!Rf(l)&&!c.isCurrent(P.route))return l;if(T&&o&&(!c||c?.isCurrent(o)))return(C||l)&&!Rf(l)?l:null;const N=_p(P,e.pageKey),x=die(o,P.route,P.Component);!i.isHydrating&&a===N&&!x&&Wn(()=>{$||($=!0,i.callHook("page:loading:end"))}),v&&a!==N&&R&&O++,a=N;const S=!!(e.transition??P.route.meta.pageTransition??sb),b=S&&fS([e.transition,P.route.meta.pageTransition,sb,{onAfterLeave(){i["~transitionFinish"]?.(),delete i["~transitionFinish"],delete i["~transitionPromise"],i.callHook("page:transition:finish",P.Component)}}]),p=e.keepalive??P.route.meta.keepalive??lN;return l=hS(S&&b,hW(p,At(pd,{key:O,suspensible:!0,onPending:()=>{v=!0,S&&!i["~transitionPromise"]&&(i["~transitionPromise"]=new Promise(g=>{i["~transitionFinish"]=g})),i.callHook("page:start",P.Component)}
1444,onResolve:async()=>{v=!1,R=!0;try{await Wn(),i._route.sync?.(),await i.callHook("page:finish",P.Component),!$&&!x&&($=!0,await i.callHook("page:loading:end"))}finally{d()}}},{default:()=>{const g={key:N||void 0,vnode:n.default?hie(n.default,P):P.Component,route:P.route,renderKey:N||void 0,trackRootNodes:S,vnodeRef:s};if(!p)return At(lie,g);const u=P.Component.type,y=u;let m=EI.get(y);return m||(m=J1(u.name||u.__name),EI.set(y,m)),At(m,g)}}))).default(),l}})}});function uie(e,t,n){if(!e)return!1;const r=t.matched.findIndex(i=>i.components?.default===n?.type);return!r||r===-1?!1:t.matched.slice(0,r).some((i,s)=>i.components?.default!==e.matched[s]?.components?.default)||n&&_p({route:t,Component:n})!==_p({route:e,Component:n})}function die(e,t,n){return e?t.matched.findIndex(i=>i.components?.default===n?.type)<t.matched.length-1:!1}function hie(e,t){const n=e(t);return n.length===1?At(n[0]):At(Lt,void 0,n)}function Rf(e){return!!e&&(!!e.suspense?.isUnmounted||!!e.component?.isUnmounted)}const q1=U_,fie=an({name:"LayoutLoader",inheritAttrs:!1,props:{name:String,layoutProps:Object},setup(e,t){return()=>At(Mi[e.name],e.layoutProps,t.slots)}}),pie={name:{type:[String,Boolean,Object],default:null},fallback:{type:[String,Object],default:null}},Q1=an({name:"NuxtLayout",inheritAttrs:!1,props:pie,setup(e,t){const n=Ue(),r=Nt(Po),s=!r||r===gr()?X_():r,o=Xe(()=>{let d=Ze(e.name)??s?.meta.layout??q1(s?.path).appLayout??"default";return d&&!(d in Mi)&&e.fallback&&(d=Ze(e.fallback)),d}),a=wn();t.expose({layoutRef:a});const c=n.deferHydration();if(n.isHydrating){const d=n.hooks.hookOnce("app:error",c),v=Dt().beforeEach(()=>{d(),v()})}let l;return()=>{const v=!!o.value&&o.value in Mi&&!!(s?.meta.layoutTransition??ab),R=v&&fS([s?.meta.layoutTransition,ab,{onBeforeLeave(){n["~transitionPromise"]=new Promise($=>{n["~transitionFinish"]=$})},onAfterLeave(){n["~transitionFinish"]?.(),delete n["~transitionFinish"],delete n["~transitionPromise"]}}]),O=l;return l=o.value,hS(R,{default:()=>At(pd,{suspensible:!0,onResolve:async()=>{await Wn(c)}},{default:()=>At(gie,{layoutProps:Gg(t.attrs,s.meta.layoutProps??{},{ref:a}),key:o.value||void 0,name:o.value,shouldProvide:!e.name,isRenderingNewLayout:$=>$!==O&&$===o.value,hasTransition:v},t.slots)})}).default()}}}),gie=an({name:"NuxtLayoutProvider",inheritAttrs:!1,props:{name:{type:[String,Boolean]},layoutProps:{type:Object},hasTransition:{type:Boolean},shouldProvide:{type:Boolean},isRenderingNewLayout:{type:Function,required:!0}},setup(e,t){const n=e.name;e.shouldProvide&&Ir(iw,{isCurrent:s=>n===!1||n===(s.meta.layout??q1(s.path).appLayout??"default")});const r=Nt(Po);if(r&&r===gr()){const s=X_(),o={};for(const a in s){const c=a;Object.defineProperty(o,c,{enumerable:!0,get:()=>e.isRenderingNewLayout(e.name)?s[c]:r[c]})}Ir(Po,or(o))}return()=>!n||typeof n=="string"&&!(n in Mi)?t.slots.default?.():At(fie,{key:n,layoutProps:e.layoutProps,name:n},t.slots)}});var cu={exports:{}};var mie=cu.exports,xI;function yie(){return xI||(xI=1,(function(e){(function(t){var n={};n.VERSION="1.6.1";var r,i={},s=function(d,v){return function(){return v.apply(d,arguments)}},o=function(){var d=arguments,v=d[0],R,O;for(O=1;O<d.length;O++)for(R in d[O])!(R in v)&&d[O].hasOwnProperty(R)&&(v[R]=d[O][R]);return v},a=function(d,v){return{value:d,name:v}};n.TRACE=a(1,"TRACE"),n.DEBUG=a(2,"DEBUG"),n.INFO=a(3,"INFO"),n.TIME=a(4,"TIME"),n.WARN=a(5,"WARN"),n.ERROR=a(8,"ERROR"),n.OFF=a(99,"OFF");var c=function(d){this.context=d,this.setLevel(d.filterLevel),this.log=this.info};c.prototype={setLevel:function(d){d&&"value"in d&&(this.context.filterLevel=d)},getLevel:function(){return this.context.filterLevel},enabledFor:function(d){var v=this.context.filterLevel;return d.value>=v.value},trace:function(){this.invoke(n.TRACE,arguments)},debug:function(){this.invoke(n.DEBUG,arguments)},info:function(){this.invoke(n.INFO,arguments)},warn:function(){this.invoke(n.WARN,arguments)},error:function(){this.invoke(n.ERROR,arguments)},time:function(d){typeof d=="string"&&d.length>0&&this.invoke(n.TIME,[d,"start"])},timeEnd:function(d){typeof d=="string"&&d.length>0&&this.invoke(n.TIME,[d,"end"])},invoke:function(d,v){r&&this.enabledFor(d)&&r(v,o({level:d},this.context))}};var l=new c({filterLevel:n.OFF});(function(){var d=n;d.enabledFor=s(l,l.enabledFor),d.trace=s(l,l.trace),d.debug=s(l,l.debug),d.time=s(l,l.time),d.timeEnd=s(l,l.timeEnd),d.info=s(l,l.info),d.warn=s(l,l.warn),d.error=s(l,l.error),d.log=d.info})(),n.setHandler=function(d){r=d},n.setLevel=function(d){l.setLevel(d);for(var v in i)i.hasOwnProperty(v)&&i[v].setLevel(d)},n.getLevel=function(){return l.getLevel()},n.get=function(d){return i[d]||(i[d]=new c(o({name:d},l.context)))},n.createDefaultHandler=function(d){d=d||{},d.formatter=d.formatter||function($,P){P.name&&$.unshift("["+P.name+"]")};var v={},R=function(O,$){Function.prototype.apply.call(O,console,$)};return typeof console>"u"?function(){}:function(O,$){O=Array.prototype.slice.call(O);var P=console.log,T;$.level===n.TIME?(T=($.name?"["+$.name+"] ":"")+O[0],O[1]==="start"?console.time||(v[T]=new Date().getTime()):console.timeEnd||R(P,[T+": "+(new Date().getTime()-v[T])+"ms"])):($.level===n.WARN&&console.warn?P=console.warn:$.level===n.ERROR&&console.error?P=console.error:$.level===n.INFO&&console.info?P=console.info:$.level===n.DEBUG&&console.debug?P=console.debug:$.level===n.TRACE&&console.trace&&(P=console.trace),d.formatter(O,$),R(P,O))}},n.useDefaults=function(d){n.setLevel(d&&d.defaultLevel||n.DEBUG),n.setHandler(n.createDefaultHandler(d))},n.setDefaults=n.useDefaults,e.exports?e.exports=n:(n._prevLogger=t.Logger,n.noConflict=function(){return t.Logger=n._prevLogger,n},t.Logger=n)})(mie)}
1444)(cu)),cu.exports}var bie=yie();const bn=Wd(bie);class vie extends Event{static type;target;constructor(t,n=!1){super(t,{cancelable:n})}}class Cie extends EventTarget{dispatchEvent(t){return super.dispatchEvent(t)}addEventListener(t,n,r){super.addEventListener(t,n,r)}removeEventListener(t,n,r){super.removeEventListener(t,n,r)}}class hh extends vie{}class cy extends hh{static type="ready";constructor(){super(cy.type)}}class uy extends hh{static type="destroyed";constructor(){super(uy.type)}}class dc extends hh{static type="clicked-call-to-action";constructor(){super(dc.type,!0)}}class al extends hh{static type="toggled-visibility";constructor(){super(al.type)}}String.prototype.isFalsishOrEmpty=function(){return!this.trim()};const{captureStackTrace:Iie}=Error;class yr extends Error{constructor(t,n){super(n&&n instanceof Error?`${t}: ${n.message}`:t),this.name="SmartAppBanner",Iie?.(this,yr)}}const Aie=()=>({});function wie(e,t=Aie()){const n=function(r){const i={...e,...r};Object.keys(i).forEach(o=>{o in t||bn.warn(`Unknown option ${o}`)});const s={};return Object.keys(t).forEach(o=>{s[o]=t[o](i[o],{rawOptions:i,defaultValue:e[o]})}),s};return n.defaults=e,n.parsers=t,n}const _ie={icon:null,platforms:["android","ios"],price:null,buttonLabel:"View",verbose:!1,dismissPath:"/",dismissExpiry:null,transitionTimeout:300,googlePlayStoreUrl:null,androidButtonLabel:null,androidIcon:null,androidPrice:null,appStoreUrl:null,appleButtonLabel:null,appleIcon:null,applePrice:null},Sie={title:e=>{if(e.isFalsishOrEmpty())throw new yr("No title has been configured.");return e},author:e=>{if(e.isFalsishOrEmpty())throw new yr("No author has been configured.");return e},icon:e=>e?.isFalsishOrEmpty()?null:e,platforms:(e,{defaultValue:t})=>!e||e.length===0?t:e,price:e=>e?.isFalsishOrEmpty()?null:e,buttonLabel:(e,{defaultValue:t})=>e?.isFalsishOrEmpty()?t:e,verbose:(e,{defaultValue:t})=>e?(bn.debug("verbose logging enabled"),e):t,dismissPath:(e,{defaultValue:t})=>e?.isFalsishOrEmpty()?t:e,dismissExpiry:e=>e??null,transitionTimeout:(e,{defaultValue:t})=>e??t,googlePlayStoreUrl:(e,{rawOptions:t})=>{if(!t.platforms?.includes("android"))return null;const n=`The Android platform was enabled but no valid Google Play Store URL has been configured. Provided URL was "${e}"`;if(e?.isFalsishOrEmpty())throw new yr(n);try{return new URL(e)}catch{throw new yr(n)}},androidButtonLabel:(e,{rawOptions:t})=>t.platforms?.includes("android")?e??null:null,androidIcon:(e,{rawOptions:t})=>{if(!t.platforms?.includes("android"))return null;if(t.platforms?.includes("android")&&t.icon?.isFalsishOrEmpty()&&e?.isFalsishOrEmpty())throw new yr("The Android platform was enabled but there is no icon defined at all");return e??null},androidPrice:(e,{defaultValue:t,rawOptions:n})=>n.platforms?.includes("android")?e==null||e.isFalsishOrEmpty()?t:e:null,appStoreUrl:(e,{rawOptions:t})=>{if(!t.platforms?.includes("ios"))return null;const n=`The iOS platform was enabled but no valid Apple App Store URL has been configured. Provided URL was "${e}"`;if(e?.isFalsishOrEmpty())throw new yr(n);try{return new URL(e)}catch{throw new yr(n)}},appleButtonLabel:(e,{rawOptions:t})=>t.platforms?.includes("ios")?e??null:null,appleIcon:(e,{rawOptions:t})=>{if(!t.platforms?.includes("ios"))return null;if(t.platforms?.includes("ios")&&t.icon?.isFalsishOrEmpty()&&e?.isFalsishOrEmpty())throw new yr("The iOS platform was enabled but there is no icon defined at all");return e??null},applePrice:(e,{defaultValue:t,rawOptions:n})=>n.platforms?.includes("ios")?e==null||e.isFalsishOrEmpty()?t:e:null},Eie=wie(_ie,Sie);function qu(e){let t;bn.debug("Current user agent: ",e);const n=window.navigator.maxTouchPoints>2;if(!(/X11|Windows|Macintosh/i.test(e)&&!n))return/android|windows phone/i.test(e)&&(t="android"),/(?:iPhone|iPad|iPod)(?!.*(criOS|fxiOS|opiOS|chrome|android))/i.test(e)?t="safari":(/(?:iPhone|iPad|iPod)/i.test(e)||n&&/Macintosh/i.test(e))&&(t="ios"),!t&&bn.debug("The current platform is not supported"),bn.debug("Resolved current platform as:",t),t}function Lf(){const e="smart-app-banner-dismissed";function t(r){const i={};return document.cookie.split(";").forEach(s=>{const[o,a]=s.split("=");i[o.trim()]=a??""}),i[r]}function n(r,i,s){let o=`${e}=${r?1:0}; path=${i?.isFalsishOrEmpty()?"/":i}`;s&&(o+=`; expires=${s.toUTCString()}`),document.cookie=o}return{isDismissed:()=>t(e)==="1",dismiss:(r,i)=>n(!0,r,i),show:r=>n(!1,r)}}let xie=class extends Cie{options;platform;bannerId="smart-app-banner";__bannerElement=null;constructor(t){super(),this.options=Eie(t),this.options.verbose&&(bn.setLevel(bn.DEBUG),window.getCurrentPlatform=void 0,window.getCurrentPlatform=qu),this.platform=qu(window.navigator.userAgent),bn.info("successfully initialised")}mount(){!this.platform||this.platform==="safari"||Lf().isDismissed()||(bn.time("mounting banner"),this.__bannerElement=document.createElement("div"),this.__bannerElement.innerHTML=this.html,this.__bannerElement.id=this.bannerId,this.__bannerElement.dataset.state="entering",document.body.prepend(this.__bannerElement),this.onClickClose
1444=this.onClickClose.bind(this),this.onClickCallToAction=this.onClickCallToAction.bind(this),this.queryBanner(".smartappbanner__close")?.addEventListener("click",this.onClickClose,!1),requestAnimationFrame(()=>{this.__bannerElement&&(this.__bannerElement.dataset.state="visible")}),bn.debug("mounted banner"),bn.timeEnd("mounting banner"),this.dispatchEvent(new cy))}destroy(){!this.__bannerElement||!this.platform||this.platform==="safari"||(this.removeEventListeners(),this.__bannerElement.remove(),this.__bannerElement=null,bn.debug("destroyed banner"),this.options.verbose&&(window.getCurrentPlatform=void 0),this.dispatchEvent(new uy))}get isMounted(){return this.__bannerElement!==null}hide(){!this.__bannerElement||!this.platform||this.platform==="safari"||(bn.debug("hiding banner"),this._transitionHide(()=>this.dispatchEvent(new al)))}dismiss(){Lf().dismiss(this.options.dismissPath,this.options.dismissExpiry??void 0),this._transitionHide(()=>this.dispatchEvent(new al))}show(){const t=Lf();bn.debug("re-showing banner"),t.show(this.options.dismissPath),this.destroy(),this.mount(),this.dispatchEvent(new al)}_transitionHide(t){if(!this.__bannerElement){this.destroy(),t?.();return}const n=this.__bannerElement;n.dataset.state="hiding";const r=()=>{this.__bannerElement&&(this.__bannerElement.dataset.state="hidden"),this.destroy(),t?.()},i=setTimeout(r,this.options.transitionTimeout);n.addEventListener("transitionend",()=>{clearTimeout(i),r()},{once:!0})}onClickClose(t){t.preventDefault(),this.dismiss()}onClickCallToAction(t){const n=new dc;this.dispatchEvent(n),n.defaultPrevented&&t.preventDefault()}removeEventListeners(){this.queryBanner(".smartappbanner__close")?.removeEventListener("click",this.onClickClose,!1)}getCtaMountElement(){return this.queryBanner(".smartappbanner__cta")}queryBanner(t){const n=this.__bannerElement?.querySelector(t);return n instanceof HTMLElement?n:null}get title(){if(this.platform!=="safari")return this.options.title}get author(){if(this.platform!=="safari")return this.options.author}get price(){if(this.platform!=="safari")return this.platform==="android"&&this.options.androidPrice?this.options.androidPrice:this.platform==="ios"&&this.options.applePrice?this.options.applePrice:this.options.price??""}get icon(){if(this.platform!=="safari")return this.platform==="android"&&this.options.androidIcon?this.options.androidIcon:this.platform==="ios"&&this.options.appleIcon?this.options.appleIcon:this.options.icon??""}get buttonUrl(){if(this.platform!=="safari"){if(this.platform==="android"&&this.options.googlePlayStoreUrl)return this.options.googlePlayStoreUrl;if(this.platform==="ios"&&this.options.appStoreUrl)return this.options.appStoreUrl}}get buttonLabel(){if(this.platform!=="safari")return this.platform==="android"&&this.options.androidButtonLabel?this.options.androidButtonLabel:this.platform==="ios"&&this.options.appleButtonLabel?this.options.appleButtonLabel:this.options.buttonLabel}get html(){if(this.platform==="safari")throw new yr(`Attempted to render banner. However, the current platform is Safari. This should instead be handled via their recommended meta tag. 1445See: https://developer.apple.com/documentation/webkit/promoting-apps-with-smart-app-banners`);const t=this.price?`<div class="smartappbanner__description__price">${this.price}</div>`:"";return` 1446<div class="smartappbanner"> 1447 <div class="smartappbanner__close"> 1448 <a href="#" rel="nofollow"></a> 1449 </div> 1450 <div 1451 class="smartappbanner__app-icon" 1452 style="background-image: url(${this.icon})" 1453 ></div> 1454 <div class="smartappbanner__description"> 1455 <div class="smartappbanner__description__title">${this.title}</div> 1456 <div class="smartappbanner__description__author">${this.author}</div> 1457 ${t} 1458 </div> 1459 <div class="smartappbanner__cta"></div> 1460</div> 1461`}};const Tie="Get",kie="Open";async function Rie(e){const t=e||Tie,n=navigator.getInstalledRelatedApps;if(typeof n!="function")return t;try{if((await n.call(navigator))?.length>0)return kie}catch{}return t}function Lie(e){return/android/i.test(e)&&/chrome/i.test(e)&&!/edg|opr|brave|samsungbrowser|firefox|fxios|crios/i.test(e)}const Oie=500,Nie="dcu://";let Ua=null;function TI(e,t=Nie){const n=e.startsWith("/")?e.slice(1):e;return n?`${t}${n}`:t}function kI(e,t){Ua?.(),Ua=null,window.location.href=e;let n=!1;function r(){n||(n=!0,document.removeEventListener("visibilitychange",s),clearTimeout(i),Ua===r&&(Ua=null))}const i=setTimeout(()=>{r(),document.visibilityState==="visible"&&(window.location.href=t)},Oie);function s(){document.visibilityState==="hidden"&&r()}Ua=r,document.addEventListener("visibilitychange",s)}function Pie(e){const{banner:t,appStoreUrl:n,googlePlayStoreUrl:r,appUriScheme:i="dcu://",openButtonLabel:s="Open"}=e,o=window.navigator.userAgent,a=Lie(o);let c=null;return a&&window.addEventListener("beforeinstallprompt",l=>{c=l}),t.addEventListener(dc.type,l=>{const d=t.buttonLabel,v=t.buttonUrl instanceof URL?t.buttonUrl.href:String(t.buttonUrl||"");if(a){d===s&&(l.preventDefault(),kI(TI(window.location.pathname,i),r||n||v));return}l.preventDefault();const R=t.platform==="android"?r||n||v:n||r||v;kI(TI(window.location.pathname,i),R)}),{getDeferredInstallPrompt:()=>c}}bn.useDefaults({defaultLevel:bn.WARN,formatter:function(e,t){e.unshift("[Smart Ap
1461p Banner]")}});const eT={__name:"SmartAppBanner",props:{options:{type:Object,required:!0},visible:{type:Boolean,required:!0}},emits:["ready"],setup(e,{emit:t}){const n=e,r=t,i=new xie(n.options),s=P0(),o=Mt();function a(){return{label:i.buttonLabel??"",url:String(i.buttonUrl??"#"),onClick:$=>i.onClickCallToAction($)}}function c($){return At("a",{class:"smartappbanner__view",href:$.url,target:"_blank",rel:"noopener","aria-label":$.label,onClick:$.onClick},$.label)}function l(){if(!i.isMounted||!o)return;const $=i.getCtaMountElement();if(!$)return;const P=a(),T=s.cta?.(P)??c(P),C=Array.isArray(T)?T:[T],N=At(Lt,null,C);N.appContext=o.appContext,_u(N,$)}function d(){const $=i.getCtaMountElement();$&&_u(null,$)}function v(){l()}function R(){d()}function O($){if(!$){i.isMounted&&i.hide();return}i.isMounted||i.mount()}return xt(()=>n.visible,$=>O($)),tr(()=>{r("ready",i),i.addEventListener("ready",v),i.addEventListener("destroyed",R),O(n.visible)}),Ii(()=>{i.removeEventListener("ready",v),i.removeEventListener("destroyed",R),d(),i.destroy()}),($,P)=>null}},$ie=Object.freeze(Object.defineProperty({__proto__:null,default:eT},Symbol.toStringTag,{value:"Module"})),Mie=["icon","googlePlayStoreUrl","appStoreUrl","buttonLabel","androidButtonLabel","appleButtonLabel","androidPrice","applePrice"];let Yc=0;function tT(e){return!e||typeof e!="object"?null:e.metadata&&typeof e.metadata=="object"?e.metadata:e}function Die(e,t){const n=tT(e);if(!n||!n.title||!n.author||!n.appStoreUrl&&!n.googlePlayStoreUrl)return null;const r={title:n.title,author:n.author,verbose:!1};for(const s of Mie)n[s]&&(r[s]=n[s]);!r.icon&&t&&(r.icon=t);const i=Number(n.dismissExpiryDays);return Number.isFinite(i)&&i>0&&(r.dismissExpiry=new Date(Date.now()+i*24*60*60*1e3)),r}function Bie({isFlagEnabled:e,masterFlag:t,iosFlag:n,androidFlag:r,countryCode:i}){if(!e(t)||!jB(i))return!1;const s=qu(window.navigator.userAgent);return!s||s==="safari"?!1:s==="ios"?e(n):s==="android"?e(r):!1}function Fie({isFlagEnabled:e,masterFlag:t,iosFlag:n,androidFlag:r,jsonbagSlug:i,iconFallback:s="",isRouteVisible:o,analyticsContentName:a="App Download Banner"}){const c=Ue(),l=gr(),d=yt(!ha()),v=yt(null);let R=!1;d.value||Xi.add(()=>{d.value=!0}),tr(()=>{Yc+=1,Yc>1}),Ii(()=>{Yc=Math.max(0,Yc-1)});const O=Xe(()=>Bie({isFlagEnabled:e,masterFlag:t,iosFlag:n,androidFlag:r,countryCode:c.$store.state?.applicationConfig?.config?.countryCode})),$=Xe(()=>{const N=c.$store.getters["jsonbag/bySlug"](i);return Die(N,s)});xt([O,$,d],async()=>{if(!d.value||!O.value||!$.value){v.value=null;return}const N=qu(window.navigator.userAgent),x={...$.value};(N==="ios"||N==="android")&&(x.platforms=[N]),N==="android"&&(x.androidButtonLabel=await Rie(x.androidButtonLabel)),v.value=x},{immediate:!0});const P=Xe(()=>d.value&&O.value&&v.value!=null),T=Xe(()=>P.value&&o(l));async function C(N){if(R||!v.value)return;R=!0,Pie({banner:N,appStoreUrl:v.value.appStoreUrl,googlePlayStoreUrl:v.value.googlePlayStoreUrl});const x=await sn();N.addEventListener(dc.type,()=>{x.trackCTA({cta_text:N.buttonLabel,location:window.location.pathname,content_name:a})})}return{enabled:P,visible:T,options:v,setupBanner:C}}function Hie(e,t={}){if(!e)return!1;const{exact:n=[],prefixes:r=[]}=t;return n.includes(e)?!0:r.some(i=>e.startsWith(i))}const Wie={exact:["activate","coming-soon","confirmation","forgot-password","join-path","login-iframe-v2","login-path","premium","register-path","subscribe","terms","verify-email"],prefixes:["settings"]},Vie={route:"comics-book-slug-uuid-collectionSlug-readerActive",activeParam:"readerActive"};function nT(e){const t=typeof e.name=="string"?e.name:void 0;if(Hie(t,Wie))return!1;const{route:n,activeParam:r="readerActive"}=Vie;return!(t===n&&e.params?.[r])}const Gie="/dcui-logo-stacked.png",Uie="App Download Banner";function jie(){const t=ln().public.CONFIG_JSONBAG_SLUGS.SMART_APP_BANNER;return Fie({isFlagEnabled:n=>wt.isEnabled(n),masterFlag:Ju,iosFlag:ug,androidFlag:dg,jsonbagSlug:t,iconFallback:Gie,analyticsContentName:Uie,isRouteVisible:nT})}const zie=["href","aria-label","onClick"],Zie={__name:"dcui-smart-app-banner",setup(e){const{enabled:t,visible:n,options:r,setupBanner:i}=jie();return(s,o)=>Ze(t)&&Ze(r)?(It(),sr(Ze(eT),{key:0,options:Ze(r),visible:Ze(n),onReady:Ze(i)},{cta:Bn(({label:a,url:c,onClick:l})=>[Qt("a",{class:"dcc-button dcc-button--blue",href:c,target:"_blank",rel:"noopener","aria-label":a,onClick:l},ar(a),9,zie)]),_:1},8,["options","visible","onReady"])):lr("",!0)}},Kie="/manifest.webmanifest",Yie=/\/id(\d+)/;function Xie(e){const t=tT(e)||{};
1461return{appleAppId:Yie.exec(t.appStoreUrl||"")?.[1],googlePlayStoreUrl:t.googlePlayStoreUrl}}function Jie({isFlagEnabled:e,masterFlag:t,jsonbagSlug:n,isRouteVisible:r}){const i=Ue(),s=gr(),o=e(t);return Xe(()=>{if(!o)return{meta:[],link:[]};const{appleAppId:a,googlePlayStoreUrl:c}=Xie(i.$store.getters["jsonbag/bySlug"](n));return{meta:a&&r(s)?[{name:"apple-itunes-app",content:`app-id=${a}`}]:[],link:c?[{rel:"manifest",href:Kie}]:[]}})}function qie(){return Jie({isFlagEnabled:t=>wt.isEnabled(t),masterFlag:Ju,jsonbagSlug:ln().public.CONFIG_JSONBAG_SLUGS.SMART_APP_BANNER,isRouteVisible:nT})}function Qie(e){const t=yt(!1),n=tw(),r=new Promise(i=>{xt(t,(s,o)=>{if(s&&!o){const a=n?.runWithContext||(c=>c());if(e?.postConsentTrigger instanceof Promise){e.postConsentTrigger.then(()=>a(i));return}a(i)}},{immediate:!0})});return r.accept=()=>{t.value=!0},r.revoke=()=>{t.value=!1},r.consented=t,r}function eoe(e,t,n){if(e.hooks?._hooks?.[t]?.length)return e.hooks?.callHook(t,n)}function toe(e={}){const t=[];let n=-1;const r=(i=!1)=>({get(s,o,a){if(!i){const c=Reflect.get(s,o,a);if(typeof c<"u")return c;n++,t[n]=[]}return t[n].push({type:"get",key:o}),new Proxy(()=>{},r(!0))},apply(s,o,a){t[n].push({type:"apply",key:"",args:a})}});return{proxy:new Proxy(e||{},r()),stack:t}}function noe(e){const t={get(n,r,i){const s=Reflect.get(n,r,i);return typeof s=="object"?new Proxy(s,t):s},apply(n,r,i){Reflect.apply(n,r,i)}};return new Proxy(e,t)}function roe(e,t){t.forEach(n=>{let r=e,i=e;n.forEach(({type:s,key:o,args:a})=>{s==="get"?(i=r,r=r[o]):s==="apply"&&(r=r.call(i,...a))})})}function ioe(e,t,n){const r=typeof t=="string"?{src:t}:t,i=n||{},s=r.key||r.src||(typeof r.innerHTML=="string"?r.innerHTML:""),o=e._scripts||(e._scripts=Object.create(null)),a=Object.hasOwn(o,s)?o[s]:void 0;if(a)return a.setupTriggerHandler(i.trigger),a;i.beforeInit?.();const c=[],l=N=>{T.status=N,c.push({type:N,timestamp:Date.now()}),eoe(e,"script:updated",C)},d=typeof r.onload=="function"?r.onload.bind(i.eventContext):null;r.onload=N=>{l("loaded"),d?.(N)};const v=typeof r.onerror=="function"?r.onerror.bind(i.eventContext):null;r.onerror=N=>{l("error"),v?.(N)};const R={loaded:[],error:[]},O=new Set,$=(N,x,S)=>{if(e.ssr)return;let b;if(S?.key){if(b=`${N}:${S.key}`,O.has(b))return;O.add(b)}return R[N]?(R[N].push(x),()=>{const p=R[N]?.indexOf(x)??-1;p!==-1&&R[N]?.splice(p,1),b&&O.delete(b)}):(N==="loaded"&&T.status==="loaded"?x(T.instance):N==="error"&&T.status==="error"&&x(),()=>{b&&O.delete(b)})},P=new Promise(N=>{if(e.ssr)return;const x=b=>queueMicrotask(()=>N(b)),S=e.hooks?.hook("script:updated",({script:b})=>{const p=b.status;if(b.id===s&&(p==="loaded"||p==="error"||p==="removed")){if(p==="loaded")if(typeof i.use=="function"){const g=i.use();g&&x(g)}else x({});else N(!1);S?.()}})}),T={_loadPromise:P,_events:c,_warmupStrategy:void 0,instance:!e.ssr&&i?.use?.()||null,proxy:null,id:s,src:r.src,input:r,status:"awaitingLoad",remove(){const N=!!T.entry;return T._triggerAbortControllers?.forEach(x=>x.abort()),T._triggerAbortControllers?.clear(),T._triggerPromises=[],T._warmupEl?.dispose(),T._warmupEl=void 0,T.entry&&(T.entry.dispose(),T.entry=void 0),o[s]===T&&delete o[s],T.status!=="removed"&&l("removed"),N},warmup(N){const{src:x}=r,S=!x.startsWith("/")||x.startsWith("//"),b=N==="preconnect"||N==="dns-prefetch";let p=x;if(!N||b&&!S)return;if(b){const u=new URL(x);p=`${u.protocol}//${u.host}`}const g={href:p,rel:N,crossorigin:typeof r.crossorigin<"u"?r.crossorigin:S?"anonymous":void 0,referrerpolicy:typeof r.referrerpolicy<"u"?r.referrerpolicy:S?"no-referrer":void 0,fetchpriority:typeof r.fetchpriority<"u"?r.fetchpriority:"low",integrity:r.integrity,as:N==="preload"?"script":void 0};return T._warmupEl=e.push({link:[g]},{head:e,tagPriority:"high"}),T._warmupEl},load(N){if(T._triggerAbortControllers?.forEach(x=>x.abort()),T._triggerAbortControllers?.clear(),T._triggerPromises=[],!T.entry){l("loading");const x={defer:!0,fetchpriority:"low"};r.src&&(r.src.startsWith("http")||r.src.startsWith("//"))&&(x.crossorigin="anonymous",x.referrerpolicy="no-referrer"),T.entry=e.push({script:[{...x,...r}]},i)}return N&&$("loaded",N),P},onLoaded(N,x){return $("loaded",N,x)},onError(N,x){return $("error",N,x)},setupTriggerHandler(N){if(T.status==="awaitingLoad")if((typeof N>"u"||N==="client")&&!e.ssr||N==="server")T.load();else if(N instanceof Promise){if(e.ssr)return;const x=new AbortController;T._triggerAbortControllers=T._triggerAbortControllers||new Set,T._triggerAbortControllers.add(x);const S=new Promise(p=>{x.signal.addEventListener("abort",()=>{T._triggerAbortControllers?.delete(x),p()})});T._triggerAbortController=x,T._triggerPromises=T._triggerPromises||[];const b=Promise.race([N.then(p=>typeof p>"u"||p?T.load:void 0),S]).catch(p=>{}).then(p=>{p?.()}).finally(()=>{T._triggerAbortControllers?.delete(x);const p=T._triggerPromises?.indexOf(b)??-1;p!==-1&&T._triggerPromises?.splice(p,1)});T._triggerPromises.push(b)}else typeof N=="function"&&N(T.load)},_cbs:R};P.then(N=>{N!==!1?(T.instance=N,R.loaded?.forEach(x=>x(N)),R.loaded=null):(T.status==="error"&&R.error?.forEach(x=>x()),R.loaded=null,R.error=null)});const C={script:T};if(T.setupTriggerHandler(i.trigger),i.use){const{proxy:N,stack:x}=toe(e.ssr?{}:i.use()||{});T.proxy=N,T.onLoaded(S=>{roe(S,x),T.proxy=noe(S)})}return!i.warmupStrategy&&(typeof i.trigger>"u"||i.trigger==="client")&&(i.warmupStrategy="preload"),i.warmupStrategy&&(T._warmupStrategy=i.warmupStrategy,T.warmup(i.warmupStrategy)),o[s]=T,T}const ooe="usehead";function soe(){if(sa()){const e=Nt(ooe);
1461if(e)return e}throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.")}function aoe(e,t){if(!t)return;const n=o=>a=>{const c=o(a)??(()=>{});return Zr(c),c},r=e.onLoaded,i=e.onError;e.onLoaded=n(r),e.onError=n(i);const s=e._triggerAbortController;Zr(()=>{s?.abort()})}function RI(e,t){const n=typeof e=="string"?{src:e}:e,r=t||{},i=r?.head||soe();r.head=i;const s=Mt();if(r.eventContext=s,s&&typeof r.trigger>"u")r.trigger=tr;else if(Et(r.trigger)||typeof r.trigger=="function"&&r.trigger.length===0){const a=r.trigger;let c;r.trigger=new Promise(l=>{c=xt(a,d=>{d&&l(!0)},{immediate:!0}),Zr(()=>l(!1),!0)}).then(l=>(c?.(),l))}i._scriptStatusWatcher=i._scriptStatusWatcher||i.hooks.hook("script:updated",({script:a})=>{a._statusRef&&(a._statusRef.value=a.status)});const o=ioe(i,n,r);return o._statusRef=o._statusRef||yt(o.status),aoe(o,s),new Proxy(o,{get(a,c,l){return Reflect.get(a,c==="status"?"_statusRef":c,l)}})}function loe(e){return null}function LI(e){e.$scripts||(e.$scripts={})}function coe(){return ln().public["nuxt-scripts"]}function uoe(e){return e.key||e.src||(typeof e.innerHTML=="string"?e.innerHTML:"")}function doe(e,t){if(e=typeof e=="string"?{src:e}:e,t=Xg(t,coe()?.defaultScriptOptions),t.partytown){const c=e.src;if(!c)throw new Error("useScript with partytown requires a src");_l({script:[{src:c,type:"text/partytown"}]});const l=Ue();LI(l);const v={id:c,status:yt("loaded"),load:()=>Promise.resolve({}),remove:()=>!1,entry:void 0};return l.$scripts[c]=v,v}t.trigger&&typeof t.trigger=="object"&&!("then"in t.trigger)&&loe(t.trigger);const n=Ue(),r=String(uoe(e));if(t.head=t.head||G_(),!t.head)throw new Error("useScript() has been called without Nuxt context.");LI(n),n.$scripts?.[r];const i=t._validate?.();(t.trigger==="onNuxtReady"||t.trigger==="client")&&(t.warmupStrategy||(t.warmupStrategy="preload"),t.trigger==="onNuxtReady"&&(t.trigger=ql));const s=RI(e,t),o=s.remove;s.remove=()=>(n.$scripts[r]=void 0,o());const a=s.load;return s.load=async()=>i?Promise.reject(i):a(),s.reload=async()=>{s.remove();const c=typeof e=="string"?{src:e,key:`${r}-${Date.now()}`}:{...e,key:`${r}-${Date.now()}`},l=RI(c,{...t,trigger:"client"});return Object.assign(s,{status:l.status,entry:l.entry}),l.load()},n.$scripts[r]=s,Ag(s),s.toJSON=()=>({id:s.id,status:s.status.value}),s}const hoe={class:"app-wrapper"},foe="repeating-linear-gradient(to right, #34cdfe 0%, #0074e8 50%, #34cdfe 100%)",poe={__name:"app",setup(e){const t=ln();_l(qie()),_l({titleTemplate:"%s",meta:[{hid:"og:image",name:"og:image",property:"og:image",content:`${t.public.CLIENT_BASE_URL}/dc-share.jpg`},{hid:"twitter:image:src",name:"twitter:image",content:`${t.public.CLIENT_BASE_URL}/dc-share.jpg`}]});const n=Qie();return doe({defer:!0,src:t.public.OPTIMIZELY_SNIPPET},{trigger:n}),ha()?Xi.add(()=>{n.accept()}):n.accept(),(r,i)=>{const s=aie,o=kS,a=cie,c=Q1;return It(),on("div",hoe,[st(o,null,{default:Bn(()=>[st(s,{color:foe}),st(Zie)]),_:1}),st(c,null,{default:Bn(()=>[st(a)]),_:1})])}}};var Of,OI;function goe(){if(OI)return Of;OI=1;var e=function(N){return t(N)&&!n(N)};function t(C){return!!C&&typeof C=="object"}function n(C){var N=Object.prototype.toString.call(C);return N==="[object RegExp]"||N==="[object Date]"||s(C)}
1461var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103;function s(C){return C.$$typeof===i}function o(C){return Array.isArray(C)?[]:{}}function a(C,N){return N.clone!==!1&&N.isMergeableObject(C)?P(o(C),C,N):C}function c(C,N,x){return C.concat(N).map(function(S){return a(S,x)})}function l(C,N){if(!N.customMerge)return P;var x=N.customMerge(C);return typeof x=="function"?x:P}function d(C){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(C).filter(function(N){return Object.propertyIsEnumerable.call(C,N)}):[]}function v(C){return Object.keys(C).concat(d(C))}function R(C,N){try{return N in C}catch{return!1}}function O(C,N){return R(C,N)&&!(Object.hasOwnProperty.call(C,N)&&Object.propertyIsEnumerable.call(C,N))}function $(C,N,x){var S={};return x.isMergeableObject(C)&&v(C).forEach(function(b){S[b]=a(C[b],x)}),v(N).forEach(function(b){O(C,b)||(R(C,b)&&x.isMergeableObject(N[b])?S[b]=l(b,x)(C[b],N[b],x):S[b]=a(N[b],x))}),S}function P(C,N,x){x=x||{},x.arrayMerge=x.arrayMerge||c,x.isMergeableObject=x.isMergeableObject||e,x.cloneUnlessOtherwiseSpecified=a;var S=Array.isArray(N),b=Array.isArray(C),p=S===b;return p?S?x.arrayMerge(C,N,x):$(C,N,x):a(N,x)}P.all=function(N,x){if(!Array.isArray(N))throw new Error("first argument should be an array");return N.reduce(function(S,b){return P(S,b,x)},{})};var T=P;return Of=T,Of}var moe=goe();const yoe=Wd(moe),boe={props:{type:{default:"",type:String}},computed:{errors(){return this.$store.state.errors.errors[this.type]}}},voe={key:0},Coe={class:"error-list__inner"},Ioe={class:"error-list__code"},Aoe=["innerHTML"];function woe(e,t,n,r,i,s){return s.errors?(It(),on("div",voe,[Mg(e.$slots,"default",{errors:s.errors},()=>[Qt("div",{class:wr(["error-list",{["error-list--"+n.type]:!0}])},[Qt("ul",Coe,[(It(!0),on(Lt,null,$g(s.errors,(o,a)=>(It(),on("li",{key:a,class:wr(["error-list__item",{["error-list__item--"+o.code]:!0}])},[Qt("span",Ioe,ar(o.code),1),Qt("span",{class:"error-list__message",innerHTML:o.message},null,8,Aoe)],2))),128))])],2)],!0)])):lr("",!0)}const _oe=ec(boe,[["render",woe],["__scopeId","data-v-a34d097f"]]),Soe={props:{errorMessage:{type:String,default:""},errorLevel:{type:[String,Number],default:""}},data(){return{defaultErrorLevel:1,supportedErrorLevels:[1]}},computed:{sanitizedErrorLevel(){const e=parseInt(this.errorLevel);return this.supportedErrorLevels.includes(e)?e:this.defaultErrorLevel}}};function Eoe(e,t,n,r,i,s){return n.errorMessage?(It(),on("div",{key:0,class:wr(["error-message",`level${s.sanitizedErrorLevel}`]),role:"alert"},[Qt("div",null,ar(n.errorMessage),1)],2)):lr("",!0)}const xoe=ec(Soe,[["render",Eoe],["__scopeId","data-v-c12d5da5"]]);function rT({jsonbagSlugConfigKey:e,flavor:t}){return t?`${ln().public.CONFIG_JSONBAG_SLUGS[e]}-${t}`:null}function Toe({jsonbagSlugConfigKey:e,flavor:t}){const n=Ue(),i=ln().public.CONFIG_JSONBAG_SLUGS[e],s=rT({jsonbagSlugConfigKey:e,flavor:t}),o=n?.$store?.getters?.["jsonbag/bySlug"]?.(i)||{},a=n?.$store?.getters?.["jsonbag/bySlug"]?.(s)||{};return{defaultSlug:i,flavorSlug:s,defaultTranslations:o,flavorTranslations:a}}function koe({defaultTranslations:e,flavorTranslations:t}){const{mergeLocaleMessage:n}=Ko({useScope:"local"}),r=[];r.push(e?._rawProperties?.metadata||{}),t&&r.push(t?._rawProperties?.metadata||{}),r.forEach(i=>
1461{Object.keys(i).forEach(s=>{typeof i[s]=="object"&&i[s]!==null&&n(s,i[s])})})}function fh({jsonbagSlugConfigKey:e}){return{computed:{[`flavorSlug-${e}`](){return rT({flavor:this.flavor,jsonbagSlugConfigKey:e})},...Gu("jsonbag",["bySlug"])},async created(){this[`applyTranslationsFromJsonbag-${e}`]()},mounted(){cg.$on("component-translations-updated",this[`applyTranslationsFromJsonbag-${e}`])},beforeUnmount(){cg.$off("component-translations-updated",this[`applyTranslationsFromJsonbag-${e}`])},methods:{[`applyTranslationsFromJsonbag-${e}`](){const{defaultTranslations:t,flavorTranslations:n}=Toe({flavor:this.flavor,jsonbagSlugConfigKey:e});koe({defaultTranslations:t,flavorTranslations:n})}}}}const Roe={Book:"Comic Book",BookHistory:"Comic Book","Comic Series":"Comic Series",ComicSeries:"Comic Series","Comic Issue":"Comic Issue",List:"List",Collection:"Collection",ShopifyProduct:"Shop"};function Loe(e){return Roe[e]||e}const hg=Symbol("analytics-context");function Oae(e){const t=Nt(hg,null),n={};for(const r in e)e[r]!=null&&(n[r]=e[r]);Ir(hg,{...t,...n})}const iT={inject:{analyticsContext:{from:hg,default:null}},methods:{withAnalyticsContext(e={}){return{...this.analyticsContext,...e}},async trackCtaClick(e){(await sn()).trackCTA(this.withAnalyticsContext(e))},async track(e,t){return(await sn()).track(e,this.withAnalyticsContext(t))},getAnalyticsContentType(e){return Loe(e)}}},Ooe={name:"LegalLinksMixin",mixins:[fh({jsonbagSlugConfigKey:"PRIVACY_POLICY_LINKS"})]},Noe={mixins:[iT,fh({jsonbagSlugConfigKey:"REGFLOW_CONFIG"}),Ooe],setup(){const{t:e,tm:t}=Ko({useScope:"local"});return{t:e,tm:t}},computed:{...Gu("jsonbag",["bySlug"]),pageName(){const e=gr();return la().value?"error":e.name.replace("-path","")},disableTermsLinkList(){const t=this.bySlug(this.$config.public.CONFIG_JSONBAG_SLUGS.REGFLOW_CONFIG)?.en?.["page-names-disable-terms-link"];return t||[]},disablePrivacyLinkList(){const t=this.bySlug(this.$config.public.CONFIG_JSONBAG_SLUGS.REGFLOW_CONFIG)?.en?.["page-names-disable-privacy-link"];return t||[]},disableLegalLinks(){return this.disableTermsLinkList.includes(this.pageName)&&this.disablePrivacyLinkList.includes(this.pageName)}}},Poe={class:"regflow-page"},$oe={class:"regflow-page__column regflow-page__column--center"},Moe={class:"dcc-regflow"},Doe={class:"dcc-regflow__wrapper"},Boe={key:0,class:"dcc-regflow__legal"},Foe=["href","aria-label"],Hoe=["href","aria-label"];function Woe(e,t,n,r,i,s){return It(),on("section",Poe,[Qt("div",$oe,[Qt("div",Moe,[Qt("div",Doe,[Mg(e.$slots,"default"),s.disableLegalLinks?lr("",!0):(It(),on("div",Boe,[s.disableTermsLinkList.includes(s.pageName)?lr("",!0):(It(),on("a",{key:0,href:r.t("legal-links.terms.url"),"aria-label":r.t("legal-links.terms.name"),onClick:t[0]||(t[0]=o=>e.trackCtaClick({cta_text:r.t("legal-links.terms.name")}))},ar(r.t("legal-links.terms.name")),9,Foe)),!s.disableTermsLinkList.includes(s.pageName)&&!s.disablePrivacyLinkList.includes(s.pageName)?(It(),on(Lt,{key:1},[$i("Â Â |Â Â ")],64)):lr("",!0),s.disablePrivacyLinkList.includes(s.pageName)?lr("",!0):(It(),on("a",{key:2,href:r.t("legal-links.privacy-policy.url"),"aria-label":r.t("legal-links.privacy-policy.name"),onClick:t[1]||(t[1]=o=>e.trackCtaClick({cta_text:r.t("legal-links.privacy-policy.name")}))},ar(r.t("legal-links.privacy-policy.name")),9,Hoe))]))])])])])}const Voe=ec(Noe,[["render",Woe]]);function Goe(e){return JSON.parse(JSON.stringify(e))}const NI={description:[{hid:"description",name:"description"},{hid:"og:description",name:"og:description",property:"og:description"},{hid:"twitter:description",name:"twitter:description"}],title:[{hid:"twitter:title",name:"twitter:title"},{hid:"og:title",name:"og:title",property:"og:title"}],keywords:[{hid:"keywords",name:"keywords"}],author:[{hid:"author",name:"author"}],image:[{hid:"og:image",name:"og:image",property:"og:image"},{hid:"twitter:image:src",name:"twitter:image"}]};function PI({type:e,content:t}){if(!e||!NI[e])return[];const n=Goe(NI[e]);return n.forEach(r=>{r.content=t}),n}const Uoe={mixins:[iT,fh({jsonbagSlugConfigKey:"REGFLOW_CONFIG"})],components:{ErrorList:_oe,ErrorNote:xoe,RegflowWrapper:Voe},computed:{...Gu("jsonbag",["bySlug"]),...Gu("account",["isAnonymous"]),pageName(){const e=gr();return la()?.value?"error":e.name.replace("-path","")},regflowConfig(){let e=this.bySlug(this.$config.public.CONFIG_JSONBAG_SLUGS.REGFLOW_CONFIG);return this.flavor&&(e=yoe(e,this.bySlug(`${this.$config.public.CONFIG_JSONBAG_SLUGS.REGFLOW_CONFIG}-${this.flavor}`))),e||{}},head(){const{te:e,tm:t}=Ko({useScope:"local"}),n=e(`meta.${this.pageName}.title`)?t(`meta.${this.pageName}.title`):this.$config.public.fallbackMeta.title,r=e(`meta.${this.pageName}.description`)?t(`meta.${this.pageName}.description`):null,i=n?PI({type:"title",content:n}):[],s=n?PI({type:"description",content:r}):[];return{title:n,meta:[...i,...s]}}},created(){_l(this.head)}};function $I(e){const t=e;t.__i18n=t.__i18n||[],t.__i18n.push({locale:"",resource:{en:{title:{t:0,b:{t:2,i:[{t:3,v:"Oo
1461ps! "},{t:4,k:"type"},{t:3,v:" not found"}]}},subtitle:{t:0,b:{t:2,i:[{t:3,v:"This "},{t:4,k:"type"},{t:3,v:" does not seem to exist. Either:"}]}},list:{badlink:{t:0,b:{t:2,i:[{t:3}],s:"You have a bad link"}},removed:{t:0,b:{t:2,i:[{t:3,v:"Someone used the Speed Force to go back in time and remove this "},{t:4,k:"type"}]}},gone:{t:0,b:{t:2,i:[{t:3,v:"This "},{t:4,k:"type"},{t:3,v:" was banished to the Phantom Zone"}]}}}}}})}const joe={key:0,class:"container debug"},zoe=["innerHTML"],Zoe={class:"dcc-regflow__list"},Koe={class:"dcc-regflow__button-group"},oT=Object.assign({name:"ErrorPage",mixins:[Uoe,fh({jsonbagSlugConfigKey:"REGFLOW_TRANSLATIONS_PERKS"})]},{__name:"error",props:{error:{type:Object,default(){return{}}}},setup(e){const{t}=Ko({useScope:"local"}),n=e,r=ln(),i=Xe(()=>{const a={type:o.value};return[t("list.badlink",a),t("list.removed",a),t("list.gone",a)]}),s=Xe(()=>n.error.data==="public-list"),o=Xe(()=>s.value?"list":"page");return(a,c)=>{const l=gl("i18n-t"),d=vU,v=kS,R=gl("regflow-wrapper"),O=Q1;return It(),sr(O,{name:"regflow-fullpage"},{default:Bn(()=>[Ze(r)?.public?.ENABLE_CLIENT_DEBUG&&n.error?(It(),on("div",joe,[c[2]||(c[2]=Qt("strong",null,"ERROR",-1)),Qt("pre",null,ar(JSON.stringify(n.error,2," ")),1),c[3]||(c[3]=Qt("strong",null,"STACK",-1)),Qt("div",{innerHTML:n.error.stack},null,8,zoe)])):lr("",!0),st(R,null,{default:Bn(()=>[st(l,{keypath:"title",tag:"h1",class:"dcc-regflow__title"},{type:Bn(()=>[$i(ar(Ze(o)),1)]),_:1}),st(l,{keypath:"subtitle",tag:"div",class:"dcc-regflow__subtitle"},{type:Bn(()=>[$i(ar(Ze(o)),1)]),_:1}),Qt("ul",Zoe,[(It(!0),on(Lt,null,$g(Ze(i),($,P)=>(It(),on("li",{key:`list-${P}`},ar($),1))),128))]),st(v,null,{default:Bn(()=>[Qt("div",Koe,[!a.isAnonymous&&Ze(s)?(It(),sr(d,{key:0,to:"/mydc/lists/",class:"dcc-button dcc-button--black-outline dcc-button--fullwidth",onClickCapture:c[0]||(c[0]=$=>a.trackCtaClick({cta_text:"Go to your lists",location:"Error Page"}))},{default:Bn(()=>[...c[4]||(c[4]=[$i(" Go to your lists ",-1)])]),_:1})):lr("",!0),st(d,{to:"/",class:"dcc-button dcc-button--blue dcc-button--fullwidth",onClickCapture:c[1]||(c[1]=$=>a.trackCtaClick({cta_text:"Take me home",location:"Error Page"}))},{default:Bn(()=>[...c[5]||(c[5]=[$i(" Take me home ",-1)])]),_:1})])]),_:1})]),_:1})]),_:1})}}});typeof $I=="function"&&$I(oT);const Yoe=ec(oT,[["__scopeId","data-v-c4bd3564"]]),Xoe={key:0},MI={__name:"nuxt-root",setup(e){const t=()=>null,n=Ue(),r=n.deferHydration();if(n.isHydrating){const d=n.hooks.hookOnce("app:error",r),v=Dt().beforeEach(()=>{d(),v()})}const i=!1;Ir(Po,gr()),n.hooks.callHookWith(d=>d.map(v=>v()),"vue:setup",[]);const s=la(),o=!1,a=/bot\b|chrome-lighthouse|facebookexternalhit|google\b/i;function c(d,v,R){const O=n.vueApp.config.errorHandler;if(O&&!O.__nuxt_default)try{O(d,v,R)}catch{}}Og((d,v,R)=>{if(n.hooks.callHook("vue:error",d,v,R)?.catch(O=>{}),a.test(navigator.userAgent))return n.hooks.callHook("app:error",d),!1;if(lw(d)&&(d.fatal||d.unhandled))return n.runWithContext(()=>go(d)),c(d,v,R),!1});const l=!1;return(d,v)=>(It(),sr(pd,{onResolve:Ze(r)},{default:Bn(()=>[Ze(o)?(It(),on("div",Xoe)):Ze(s)?(It(),sr(Ze(Yoe),{key:1,error:Ze(s)},null,8,["error"])):Ze(l)?(It(),sr(Ze(t),{key:2,context:Ze(l)},null,8,["context"])):Ze(i)?(It(),sr(N0(Ze(i)),{key:3})):(It(),sr(Ze(poe),{key:4}))]),_:1},8,["onResolve"]))}};let DI;{let e;DI=async function(){if(e)return e;const n=!!(window.__NUXT__?.serverRendered??document.getElementById("__NUXT_DATA__")?.dataset.ssr==="true"),r=n?zg(MI):Su(MI),i=gN({vueApp:r});async function s(o){await i.callHook("app:error",o),i.payload.error||=Wi(o)}s.__nuxt_default=!0,r.config.errorHandler=s,i.hook("app:suspense:resolve",()=>{r.config.errorHandler===s&&(r.config.errorHandler=void 0)}),!n&&lb.id&&i.hook("app:suspense:resolve",()=>{document.getElementById(lb.id)?.remove()});try{await bN(i,rie)}catch(o){s(o)}try{await i.hooks.callHook("app:created",r),await i.hooks.callHook("app:beforeMount",r),r.mount(hN),await i.hooks.callHook("app:mounted",r),await Wn()}catch(o){s(o)}return r},e=DI().catch(t=>{throw t})}export{Ze as $,iT as A,AA as B,jn as C,tO as D,wu as E,Lt as F,_se as G,Wt as H,Vse as I,rO as J,wse as K,Vo as
1461L,vU as M,Nd as N,ho as O,Po as P,_l as Q,lne as R,Tse as S,PI as T,gr as U,Ue as V,qG as W,Wi as X,xse as Y,_R as Z,ec as _,Qt as a,wt as a$,cie as a0,Xe as a1,ln as a2,tr as a3,Kr as a4,Et as a5,yt as a6,Lm as a7,Tl as a8,I9 as a9,Nt as aA,N0 as aB,At as aC,Lg as aD,aC as aE,hl as aF,_oe as aG,Sse as aH,Uoe as aI,Zo as aJ,OA as aK,wI as aL,kse as aM,fW as aN,Bse as aO,WW as aP,$se as aQ,eL as aR,Ase as aS,Ore as aT,ds as aU,Mre as aV,vne as aW,Dt as aX,Nse as aY,As as aZ,Mse as a_,jse as aa,Kse as ab,Zse as ac,Yse as ad,C9 as ae,cg as af,Di as ag,xt as ah,br as ai,wn as aj,Pn as ak,qi as al,Zr as am,pk as an,an as ao,P0 as ap,Zk as aq,WI as ar,sA as as,IR as at,Ir as au,Wn as av,Ii as aw,bA as ax,Uk as ay,sd as az,wr as b,DS as b$,Ci as b0,Toe as b1,koe as b2,Mt as b3,OR as b4,Ug as b5,AR as b6,bne as b7,RA as b8,Eg as b9,dt as bA,ks as bB,je as bC,ra as bD,Fi as bE,OT as bF,kT as bG,RT as bH,LT as bI,HI as bJ,zn as bK,CT as bL,Wse as bM,qoe as bN,Joe as bO,Wd as bP,Xp as bQ,Dse as bR,Ooe as bS,Ose as bT,doe as bU,ha as bV,Xi as bW,Hse as bX,jg as bY,cS as bZ,jB as b_,ud as ba,cd as bb,Me as bc,xae as bd,Bre as be,Rse as bf,Ese as bg,Gse as bh,Oae as bi,zse as bj,GB as bk,hm as bl,kae as bm,Rg as bn,li as bo,_r as bp,xoe as bq,Qn as br,vt as bs,pt as bt,fg as bu,Un as bv,aT as bw,ia as bx,zt as by,it as bz,on as c,E8 as c$,Lse as c0,Pse as c1,dS as c2,Qoe as c3,ese as c4,Jne as c5,sG as c6,yoe as c7,la as c8,Roe as c9,ya as cA,jt as cB,ot as cC,Rq as cD,Cae as cE,s1 as cF,kq as cG,bae as cH,Ki as cI,C1 as cJ,vae as cK,Iae as cL,Qm as cM,Aae as cN,hee as cO,Tq as cP,lq as cQ,ch as cR,d1 as cS,oy as cT,th as cU,wa as cV,fee as cW,Tt as cX,jr as cY,yae as cZ,f6 as c_,Rae as ca,Tae as cb,Loe as cc,Px as cd,qs as ce,qd as cf,Ho as cg,Ax as ch,SX as ci,Ea as cj,kt as ck,MC as cl,lc as cm,Jo as cn,mae as co,Ot as cp,Ke as cq,On as cr,_t as cs,$n as ct,Jn as cu,Pt as cv,nx as cw,vn as cx,I1 as cy,Af as cz,st as d,nt as d0,_x as d1,Sae as d2,wae as d3,_ae as d4,Eae as d5,BJ as d6,En as d7,uc as d8,Aa as d9,zi as da,$i as e,lr as f,sr as g,kS as h,Re as i,Gu as j,Ko as k,fh as l,Use as m,zc as n,It as o,uR as p,$g as q,gl as r,Mg as s,ar as t,EL as u,Mu as v,Bn as w,Gg as x,sn as y,Bk as z};
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.