@session-services/web-elements 0.1.21 → 0.1.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/session-services-ticketing.cjs.entry.js +104 -76
- package/dist/collection/components/session-services-ticketing/session-services-ticketing.css +136 -68
- package/dist/collection/components/session-services-ticketing/session-services-ticketing.js +46 -23
- package/dist/collection/components/session-services-ticketing/session-services-ticketing.logic.js +33 -26
- package/dist/collection/components/session-services-ticketing/session-services-ticketing.logic.test.js +106 -14
- package/dist/collection/components/session-services-ticketing/session-services-ticketing.test.js +46 -2
- package/dist/components/session-services-ticketing.js +104 -76
- package/dist/esm/session-services-ticketing.entry.js +104 -76
- package/dist/session-services-elements/p-ddf8ca4b.entry.js +1 -0
- package/dist/session-services-elements/session-services-elements.esm.js +1 -1
- package/dist/types/components/session-services-ticketing/session-services-ticketing.d.ts +1 -0
- package/dist/types/components/session-services-ticketing/session-services-ticketing.logic.d.ts +4 -1
- package/package.json +4 -4
- package/dist/session-services-elements/p-b8703bf3.entry.js +0 -1
|
@@ -14,9 +14,9 @@ function n(e){return e[0]??{}}function r(e){return Array.isArray(e)?e:e==null?[]
|
|
|
14
14
|
`),e.retry!==void 0&&(_$1(e.retry),t+=`retry: ${e.retry}
|
|
15
15
|
`),e.id!==void 0&&(Me$1(e.id),t+=`id: ${e.id}
|
|
16
16
|
`),t+=Fe$1(e.data),t+=`
|
|
17
|
-
`,t}const Re$1=Symbol(`ORPC_EVENT_SOURCE_META`);function ze$1(e,t){if(t.id===void 0&&t.retry===void 0&&!t.comments?.length)return e;if(t.id!==void 0&&Me$1(t.id),t.retry!==void 0&&_$1(t.retry),t.comments!==void 0)for(let e of t.comments)Pe$1(e);return new Proxy(e,{get(e,n,r){return n===Re$1?t:Reflect.get(e,n,r)}})}function Be$1(e){return ce$1(e)?Reflect.get(e,Re$1):void 0}function Ve$1(e){return `inline; filename="${e.replace(/"/g,`\\"`)}"; filename*=utf-8''${encodeURIComponent(e).replace(/['()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`).replace(/%(7C|60|5E)/g,(e,t)=>String.fromCharCode(Number.parseInt(t,16)))}`}function He$1(e){let t=e.match(/filename\*=(UTF-8'')?([^;]*)/i);if(t&&typeof t[2]==`string`)return he$1(t[2]);let n=e.match(/filename="((?:\\"|[^"])*)"/i);if(n&&typeof n[1]==`string`)return n[1].replace(/\\"/g,`"`)}function Ue$1(e,t){let n={...e};for(let e in t)Array.isArray(t[e])?n[e]=[...r(n[e]),...t[e]]:t[e]!==void 0&&(Array.isArray(n[e])?n[e]=[...n[e],t[e]]:n[e]===void 0?n[e]=t[e]:n[e]=[n[e],t[e]]);return n}function We$1(e,t){let n=async e=>{let n=await t.error(e);if(n!==e){let t=Be$1(e);t&&ce$1(n)&&(n=ze$1(n,t));}return n};return new ne$1(async()=>{let{done:r,value:i}=await(async()=>{try{return await e.next()}catch(e){throw await n(e)}})(),a=await t.value(i,r);if(a!==i){let e=Be$1(i);e&&ce$1(a)&&(a=ze$1(a,e));}return {done:r,value:a}},async()=>{try{await e.return?.();}catch(e){throw await n(e)}})}function Ke$1(e){return {...e,context:e.context??{}}}function qe$1(e,t={}){let n=t.path??[];return fe$1(new Proxy(async(...[t,r={}])=>await e.call(n,t,Ke$1(r)),{get(r,i){return typeof i==`string`?qe$1(e,{path:[...n,i]}):Reflect.get(r,i)}}))}function Ye$1(e,t={}){let n=(e?.pipeThrough(new TextDecoderStream).pipeThrough(new je$1))?.getReader(),r,i=false;return new ne$1(async()=>{r??=l$1(`consume_event_iterator_stream`);try{for(;;){if(n===void 0)return {done:true,value:void 0};let{done:e,value:t}=await p$1(r,()=>n.read());if(e){if(i)throw new a$1(`Stream was cancelled`);return {done:true,value:void 0}}switch(t.event){case `message`:{let e=ie$1(t.data);return ce$1(e)&&(e=ze$1(e,t)),r?.addEvent(`message`),{done:false,value:e}}case `error`:{let e=new Oe$1({data:ie$1(t.data)});throw e=ze$1(e,t),r?.addEvent(`error`),e}case `done`:{let e=ie$1(t.data);return ce$1(e)&&(e=ze$1(e,t)),r?.addEvent(`done`),{done:true,value:e}}default:r?.addEvent(`maybe_keepalive`);}}}catch(e){throw e instanceof Oe$1||u$1(r,e,t),e}},async e=>{try{e!==`next`&&(i=true,r?.addEvent(`cancelled`)),await p$1(r,()=>n?.cancel());}catch(e){throw u$1(r,e,t),e}finally{r?.end();}})}function Xe$1(e,t={}){let n=t.eventIteratorKeepAliveEnabled??true,r=t.eventIteratorKeepAliveInterval??5e3,i=t.eventIteratorKeepAliveComment??``,a=t.eventIteratorInitialCommentEnabled??true,o=t.eventIteratorInitialComment??``,s=false,c,d;return new ReadableStream({start(e){d=l$1(`stream_event_iterator`),a&&e.enqueue(Le$1({comments:[o]}));},async pull(t){try{n&&(c=setInterval(()=>{t.enqueue(Le$1({comments:[i]})),d?.addEvent(`keepalive`);},r));let a=await p$1(d,()=>e.next());if(clearInterval(c),s)return;let o=Be$1(a.value);if(!a.done||a.value!==void 0||o!==void 0){let e=a.done?`done`:`message`;t.enqueue(Le$1({...o,event:e,data:ae$1(a.value)})),d?.addEvent(e);}a.done&&(t.close(),d?.end());}catch(e){if(clearInterval(c),s)return;e instanceof Oe$1?(t.enqueue(Le$1({...Be$1(e),event:`error`,data:ae$1(e.data)})),d?.addEvent(`error`),t.close()):(u$1(d,e),t.error(e)),d?.end();}},async cancel(){try{s=true,clearInterval(c),d?.addEvent(`cancelled`),await p$1(d,()=>e.return?.());}catch(e){throw u$1(d,e),e}finally{d?.end();}}}).pipeThrough(new TextEncoderStream)}function Ze$1(e,t={}){return f$1({name:`parse_standard_body`,signal:t.signal},async()=>{let n=e.headers.get(`content-disposition`);if(typeof n==`string`){let t=He$1(n)??`blob`,r=await e.blob();return new File([r],t,{type:r.type})}let r=e.headers.get(`content-type`);if(!r||r.startsWith(`application/json`))return ie$1(await e.text());if(r.startsWith(`multipart/form-data`))return await e.formData();if(r.startsWith(`application/x-www-form-urlencoded`)){let t=await e.text();return new URLSearchParams(t)}if(r.startsWith(`text/event-stream`))return Ye$1(e.body,t);if(r.startsWith(`text/plain`))return await e.text();let i=await e.blob();return new File([i],`blob`,{type:i.type})})}function Qe$1(e,t,n={}){let r=t.get(`content-disposition`);if(t.delete(`content-type`),t.delete(`content-disposition`),e!==void 0)return e instanceof Blob?(t.set(`content-type`,e.type),t.set(`content-length`,e.size.toString()),t.set(`content-disposition`,r??Ve$1(e instanceof File?e.name:`blob`)),e):e instanceof FormData||e instanceof URLSearchParams?e:m$1(e)?(t.set(`content-type`,`text/event-stream`),Xe$1(e,n)):(t.set(`content-type`,`application/json`),ae$1(e))}function $e$1(e,t={}){return e.forEach((e,n)=>{Array.isArray(t[n])?t[n].push(e):t[n]===void 0?t[n]=e:t[n]=[t[n],e];}),t}function et$1(e,t=new Headers){for(let[n,r]of Object.entries(e))if(Array.isArray(r))for(let e of r)t.append(n,e);else r!==void 0&&t.append(n,r);return t}function tt$1(e,t={}){let n=et$1(e.headers),r=Qe$1(e.body,n,t);return new Request(e.url,{signal:e.signal,method:e.method,headers:n,body:r})}function nt$1(e,t={}){return {body:o$1(()=>Ze$1(e,t)),status:e.status,get headers(){let t=$e$1(e.headers);return Object.defineProperty(this,`headers`,{value:t,writable:true}),t},set headers(e){Object.defineProperty(this,`headers`,{value:e,writable:true});}}}var rt$1=class rt{plugins;constructor(e=[]){this.plugins=[...e].sort((e,t)=>(e.order??0)-(t.order??0));}init(e){for(let t of this.plugins)t.init?.(e);}},it$1=class it{constructor(e,t,n={}){this.codec=e,this.sender=t,new rt$1(n.plugins).init(n),this.interceptors=r(n.interceptors),this.clientInterceptors=r(n.clientInterceptors);}interceptors;clientInterceptors;call(e,t,n){return f$1({name:`${i}.${e.join(`/`)}`,signal:n.signal},r=>(r?.setAttribute(`rpc.system`,i),r?.setAttribute(`rpc.method`,e.join(`.`)),m$1(t)&&(t=h$1({name:`consume_event_iterator_input`,signal:n.signal},t)),re$1(this.interceptors,{...n,path:e,input:t},async({path:e,input:t,...n})=>{let i=c$1(),a,o=i?.trace.getActiveSpan()??r;o&&i&&(a=i?.trace.setSpan(i.context.active(),o));let s=await f$1({name:`encode_request`,context:a},()=>this.codec.encode(e,t,n)),l=await re$1(this.clientInterceptors,{...n,input:t,path:e,request:s},({input:e,path:t,request:n,...r})=>f$1({name:`send_request`,signal:r.signal,context:a},()=>this.sender.call(n,r,t,e))),u=await f$1({name:`decode_response`,context:a},()=>this.codec.decode(l,n,e,t));return m$1(u)?h$1({name:`consume_event_iterator_output`,signal:n.signal},u):u})))}};function at$1(e){return `/${e.map(encodeURIComponent).join(`/`)}`}function ot(e){return typeof e.forEach==`function`?$e$1(e):e}function st(e){return Object.entries(ge$1).find(([,t])=>t.status===e)?.[0]??`MALFORMED_ORPC_ERROR_RESPONSE`}function ct(e,t){return {...e,...t}}var lt=class{"~orpc";constructor(e){if(e.route?.successStatus&&we$1(e.route.successStatus))throw Error(`[ContractProcedure] Invalid successStatus.`);if(Object.values(e.errorMap).some(e=>e&&e.status&&!we$1(e.status)))throw Error(`[ContractProcedure] Invalid error status code.`);this[`~orpc`]=e;}};function ut(e){return e instanceof lt?true:(typeof e==`object`||typeof e==`function`)&&e!==null&&`~orpc`in e&&typeof e[`~orpc`]==`object`&&e[`~orpc`]!==null&&`errorMap`in e[`~orpc`]&&`route`in e[`~orpc`]&&`meta`in e[`~orpc`]}function dt(e,t){return {...e,...t}}function ft(e,t){return {...e,...t}}function pt(e,t){return e.path?{...e,path:`${t}${e.path}`}:e}function mt(e,t){return {...e,tags:[...t,...e.tags??[]]}}function ht(e,t){return e?`${e}${t}`:t}function gt(e,t){return e?[...e,...t]:t}function _t(e,t){let n=e;return t.prefix&&(n=pt(n,t.prefix)),t.tags?.length&&(n=mt(n,t.tags)),n}function vt(e,t){if(ut(e))return new lt({...e[`~orpc`],errorMap:ct(t.errorMap,e[`~orpc`].errorMap),route:_t(e[`~orpc`].route,t)});let n={};for(let r in e)n[r]=vt(e[r],t);return n}const v$1=new class e extends lt{constructor(e){super(e),this[`~orpc`].prefix=e.prefix,this[`~orpc`].tags=e.tags;}$meta(t){return new e({...this[`~orpc`],meta:t})}$route(t){return new e({...this[`~orpc`],route:t})}$input(t){return new e({...this[`~orpc`],inputSchema:t})}errors(t){return new e({...this[`~orpc`],errorMap:ct(this[`~orpc`].errorMap,t)})}meta(t){return new e({...this[`~orpc`],meta:dt(this[`~orpc`].meta,t)})}route(t){return new e({...this[`~orpc`],route:ft(this[`~orpc`].route,t)})}input(t){return new e({...this[`~orpc`],inputSchema:t})}output(t){return new e({...this[`~orpc`],outputSchema:t})}prefix(t){return new e({...this[`~orpc`],prefix:ht(this[`~orpc`].prefix,t)})}tag(...t){return new e({...this[`~orpc`],tags:gt(this[`~orpc`].tags,t)})}router(e){return vt(e,this[`~orpc`])}}({errorMap:{},route:{},meta:{}}),yt={defaultMethod:`POST`,defaultSuccessStatus:200,defaultSuccessDescription:`OK`,defaultInputStructure:`compact`,defaultOutputStructure:`compact`};function bt(e,t){return t===void 0?yt[e]:t}const St=Symbol.for(`constructDateFrom`);function Ct(e,t){return typeof e==`function`?e(t):e&&typeof e==`object`&&St in e?e[St](t):e instanceof Date?new e.constructor(t):new Date(t)}function wt(e,t){return Ct(e,e)}function y$1(e,t,n){let r=wt(e);return isNaN(t)?Ct(e,NaN):(t&&r.setDate(r.getDate()+t),r)}const Tt={},Et={};function Dt(e,t){try{let n=(Tt[e]||=new Intl.DateTimeFormat(`en-US`,{timeZone:e,timeZoneName:`longOffset`}).format)(t).split(`GMT`)[1];return n in Et?Et[n]:kt(n,n.split(`:`))}catch{if(e in Et)return Et[e];let t=e?.match(Ot);return t?kt(e,t.slice(1)):NaN}}const Ot=/([+-]\d\d):?(\d\d)?/;function kt(e,t){let n=+(t[0]||0),r=+(t[1]||0),i=(t[2]||0)/60;return Et[e]=n*60+r>0?n*60+r+i:n*60-r-i}var At=class e extends Date{constructor(...e){super(),e.length>1&&typeof e[e.length-1]==`string`&&(this.timeZone=e.pop()),this.internal=new Date,isNaN(Dt(this.timeZone,this))?this.setTime(NaN):e.length?typeof e[0]==`number`&&(e.length===1||e.length===2&&typeof e[1]!=`number`)?this.setTime(e[0]):typeof e[0]==`string`?this.setTime(+new Date(e[0])):e[0]instanceof Date?this.setTime(+e[0]):(this.setTime(+new Date(...e)),Pt(this),Mt(this)):this.setTime(Date.now());}static tz(t,...n){return n.length?new e(...n,t):new e(Date.now(),t)}withTimeZone(t){return new e(+this,t)}getTimezoneOffset(){let e=-Dt(this.timeZone,this);return e>0?Math.floor(e):Math.ceil(e)}setTime(e){return Date.prototype.setTime.apply(this,arguments),Mt(this),+this}[Symbol.for(`constructDateFrom`)](t){return new e(+new Date(t),this.timeZone)}};const jt=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!jt.test(e))return;let t=e.replace(jt,`$1UTC`);At.prototype[t]&&(e.startsWith(`get`)?At.prototype[e]=function(){return this.internal[t]()}:(At.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),Nt(this),+this},At.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),Mt(this),+this}));});function Mt(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-Dt(e.timeZone,e)*60));}function Nt(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),Pt(e);}function Pt(e){let t=Dt(e.timeZone,e),n=t>0?Math.floor(t):Math.ceil(t),r=new Date(+e);r.setUTCHours(r.getUTCHours()-1);let i=-new Date(+e).getTimezoneOffset(),a=i- -new Date(+r).getTimezoneOffset(),o=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();a&&o&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+a);let s=i-n;s&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+s);let c=new Date(+e);c.setUTCSeconds(0);let l=i>0?c.getSeconds():(c.getSeconds()-60)%60,u=Math.round(-(Dt(e.timeZone,e)*60))%60;(u||l)&&(e.internal.setUTCSeconds(e.internal.getUTCSeconds()+u),Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+u+l));let d=Dt(e.timeZone,e),f=d>0?Math.floor(d):Math.ceil(d),p=-new Date(+e).getTimezoneOffset()-f,m=f!==n,ee=p-s;if(m&&ee){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+ee);let t=Dt(e.timeZone,e),n=f-(t>0?Math.floor(t):Math.ceil(t));n&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+n),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+n));}}function b$1(e){return (typeof e==`string`?new Date(e):e).toISOString().replace(/\.\d{3}Z$/,``)}let x$1;((function(e){e.signature=`a1B2c3D4e5F6g7H8`;let t=e.Tenant={id:`tnt_01jqpj2t2kfvmstt6f6tzkbaf2`,oldId:`none`,name:`Session Services`,slug:`session-services`,email:`hello@session.services`,adminTeamId:`tem_01jqpjksnsen9vprw95et60t3m`,defaultCurrency:`AUD`,smsSenderId:`SESSIONS`,baseUrl:{dev:`http://localhost:3000`,production:`https://app.session.services`},logo:{icon:{src:`https://assets.session.services/icon-bg.png`,width:29,height:29},email:{src:`https://assets.session.services/icon-bg.png`,width:165,height:76},website:{src:`https://assets.session.services/icon-bg.png`,width:165,height:76},qr:{src:`https://assets.session.services/tenants/session-services/qr.svg`}},favicon:`https://assets.session.services/tenants/session-services/favicon.svg`};e.Region={country:{id:`rgn_01jqpj2t2kfvmstt6f6tzkbaf2`,name:`Australia`,slug:`australia`,kind:`COUNTRY`,order:1},state:{id:`rgn_01jqpj2t2kfvmstt6f6tzkbaf3`,name:`New South Wales`,slug:`nsw`,kind:`STATE`,parentId:`rgn_01jqpj2t2kfvmstt6f6tzkbaf2`,order:2},city:{id:`rgn_01jqpj2t2kfvmstt6f6tzkbaf4`,name:`Sydney`,slug:`sydney`,kind:`CITY`,parentId:`rgn_01jqpj2t2kfvmstt6f6tzkbaf3`,latitude:-33.8688,longitude:151.2093,radius:25,order:3}};let n=e.User={id:`usr_01jps5cgsd4tzjghtnt45qnhn0`,email:`test@session.services`,firstName:`Jay`,lastName:`McMullen`,imageUrl:void 0,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),tenantId:t.id,deleted:false};e.EmailVerification={id:`emlvrf_01jps5cgsd4tzjghtnt45qnhn0`,userId:`usr_01jps5cgsd4tzjghtnt45qnhn0`,tenantId:t.id,email:`test@session.services`,code:`123456`,expiresAt:new Date(Date.now()+1800*1e3).toISOString(),createdAt:new Date().toISOString()},e.PasswordReset={id:`pwrst_01jps5cgsd4tzjghtnt45qnhn0`,token:`c76e3a5d7105345b58e383e6d90fe7728b75f938b727f0b9ecc5b977e8c3b5d0`,userId:`usr_01jps5cgsd4tzjghtnt45qnhn0`,tenantId:t.id,email:`test@session.services`,code:`123456`,expiresAt:new Date(Date.now()+900*1e3).toISOString(),emailVerified:false,twoFactorVerified:false,createdAt:new Date().toISOString()};let r=e.Team={id:`tem_01jqpjksnsen9vprw95et60t2m`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Session Services`,slug:`session-services`,description:`This is only a test...`,type:`PROMOTER`,approval:`APPROVED`,tenantId:`tnt_01jqpj2t2kfvmstt6f6tzkbaf2`,deleted:false},i=e.Promoter={id:`pmt_01jqpjksnsen9vprw95et60t2m`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),teamId:r.id,name:`Session Services`,slug:`session-services`,description:`This is only a test...`,payoutFrequency:`AFTER_EVENT`,image:{src:`https://assets.session.services/icon-bg.png`,alt:`Session Services Logo`,width:800,height:800},approval:`APPROVED`,geohash:`r3gx1`,location:{id:`loc_01jqpjksnsen9vprw95et60t4m`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Sydney`,address:`Sydney NSW 2000, Australia`,city:`Sydney`,state:`New South Wales`,postcode:`2000`,country:`Australia`,latitude:-33.8944593,longitude:151.2252255,timeZone:`Australia/Sydney`},tracking:{fbId:`485739562847563`,gtmId:`GTM-K8WPM5N`,tikTokId:`BQCKPH3RC77U8GPMLJ5G`},tenantId:`tnt_01jqpj2t2kfvmstt6f6tzkbaf2`,deleted:false};e.Venue={id:`ven_01jqpjksnsen9vprw95et60t2m`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),teamId:r.id,locationId:`loc_01jqpjksnsen9vprw95et60t3m`,approval:`APPROVED`,name:`Sydney Opera House`,slug:`sydney-opera-house`,description:`Iconic performing arts venue in Sydney, Australia`,type:`THEATER`,logo:{src:`https://assets.session.services/venues/sydney-opera-house.png`,alt:`Sydney Opera House`,width:800,height:800},images:[{src:`https://assets.session.services/venues/sydney-opera-house-1.jpg`,alt:`Sydney Opera House exterior`,width:1920,height:1080}],contact:{email:`info@sydneyoperahouse.com`,phone:`+61 2 9250 7111`,website:`https://www.sydneyoperahouse.com`,instagram:`https://instagram.com/sydneyoperahouse`,facebook:`https://facebook.com/sydneyoperahouse`,twitter:`https://twitter.com/sydneyoperahouse`},location:{id:`loc_01jqpjksnsen9vprw95et60t3m`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Sydney Opera House`,address:`Bennelong Point, Sydney NSW 2000`,city:`Sydney`,state:`New South Wales`,postcode:`2000`,country:`Australia`,latitude:-33.8567844,longitude:151.2152967,timeZone:`Australia/Sydney`,image:{src:`https://assets.session.services/locations/sydney-opera-house.jpg`,alt:`Sydney Opera House`,width:1200,height:800}},geohash:`r3gx2f9`,capacity:5738,tenantId:t.id,deleted:false};let a=e.PromoterMember={id:`mbr_01jps5cgsec5ge0b1bxa6gzkkk`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),teamId:r.id,userId:n.id,user:{id:n.id,email:n.email,firstName:n.firstName,lastName:n.lastName,imageUrl:n.imageUrl},permissions:[`*`],isOwner:true,tenantId:t.id};e.TeamMember={id:`mbr_01jqpjksnsen9vprw95et60t2m`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),teamId:r.id,userId:n.id,user:{id:n.id,email:n.email,firstName:n.firstName,lastName:n.lastName,imageUrl:n.imageUrl},permissions:[`*`],isOwner:true,tenantId:t.id},e.TeamInvite={id:`inv_01jqpjksnsen9vprw95et60t4m`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),expiresAt:Math.floor(y$1(new Date,7).getTime()/1e3),teamId:r.id,token:`a76e3c5d7109345b58e383e6d90f7728b75f9a38b727f0b9edd5b977e8c3b5d0`,email:`team-invite@session.services`,invitedBy:n.id,permissions:[`event.write`,`order.write`],tenantId:t.id},e.CurrentSession={user:n,initials:`JM`,isTenantAdmin:true,promoters:[{...i,member:a}]},e.Session={id:`sess_01jps5cgsd4tzjghtnt45qnhn0`,userId:n.id,tenantId:t.id,expiresAt:y$1(new Date,30).toISOString(),twoFactorVerified:false,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()},e.BackupCode={id:`bkc_01jps5cgsd4tzjghtnt45qnhn0`,userId:n.id,tenantId:t.id,code:`ABC123DEF456`,used:false,createdAt:new Date().toISOString()},e.UserSession={id:`uss_01jps5cgsd4tzjghtnt45qnhn0`,userId:n.id,tenantId:t.id,ipAddress:`192.168.1.100`,userAgent:`Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36`,location:`Sydney, Australia`,isCurrent:true,expiresAt:y$1(new Date,30).toISOString(),createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()},e.PasskeyCredential={id:`pkc_01jps5cgsd4tzjghtnt45qnhn0`,userId:n.id,tenantId:t.id,name:`iPhone Touch ID`,credentialId:`cred_01jps5cgsd4tzjghtnt45qnhn0`,credentialPublicKey:`pQECAyYgASFYIM...`,credentialBackupEligible:true,credentialBackupState:false,credentialDeviceType:`singleDevice`,counter:1,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()},e.SecurityKeyCredential={id:`skc_01jps5cgsd4tzjghtnt45qnhn0`,userId:n.id,tenantId:t.id,name:`YubiKey 5 NFC`,credentialId:`cred_01jps5cgsd4tzjghtnt45qnhn0`,credentialPublicKey:`pQECAyYgASFYIM...`,credentialBackupEligible:false,credentialBackupState:false,credentialDeviceType:`crossPlatform`,counter:5,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()},e.TOTPCredential={id:`tpc_01jps5cgsd4tzjghtnt45qnhn0`,userId:n.id,tenantId:t.id,secret:`JBSWY3DPEHPK3PXP`,verified:true,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()};let o=e.Location={id:`loc_01hk153x00eh99pagyydz03sbz`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),googlePlaceId:`ChIJ6zWCPUyxEmsRmc6BPrNaP4s`,name:`Watson's EQ`,address:`The, Entertainment Quarter, 1 Bent St, Moore Park NSW 2021, Australia`,city:`Moore Park`,state:`New South Wales`,postcode:`2021`,country:`Australia`,latitude:-33.8944593,longitude:151.2252255,timeZone:`Australia/Sydney`,types:[`establishment`,`point_of_interest`,`restaurant`,`bar`],image:{src:`https://assets.session.services/locations/watsons-eq.jpg`,alt:`Watson's EQ`,width:1200,height:800}};e.CarouselLocation={id:`loc_01hk153x00efq9ygdkc9eb3rjt`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),googlePlaceId:`ChIJc8-zlGSvEmsR0rbZWpCP6z0`,name:`Carousel Bar & Ballroom`,address:`169 Oxford St, Darlinghurst NSW 2010, Australia`,city:`Darlinghurst`,state:`New South Wales`,postcode:`2010`,country:`Australia`,latitude:-33.8803603,longitude:151.2161228,timeZone:`Australia/Sydney`,types:[`establishment`,`night_club`,`point_of_interest`],image:{src:`https://assets.session.services/locations/loc_01hk153x00efq9ygdkc9eb3rjt.jpg`,alt:`Carousel Bar & Ballroom`,width:1200,height:800}};let s=e.Event={id:`evt_01jps5cgsenjrazw6wswmyspa3`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Test Event`,slug:`test-event`,description:`This is only a test...`,approval:`APPROVED`,status:`UPCOMING`,visibility:`PUBLIC`,currency:`AUD`,entryStartsAt:b$1(y$1(new Date,1)),entryEndsAt:b$1(y$1(new Date,2)),publishAt:b$1(new Date),images:{mobile:{src:`https://assets.session.services/event-mobile.jpg`,alt:`Mobile Event Image`,width:1080,height:1350},desktop:{src:`https://assets.session.services/event-desktop.jpg`,alt:`Desktop Event Image`,width:1920,height:1080}},geohash:`r3gx1`,location:o,teamId:r.id,promoterId:i.id,tenantId:t.id,deleted:false},c=e.Section={id:`sct_01jps5cgse0g3qj16kpq8t221r`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),teamId:r.id,promoterId:i.id,eventId:s.id,eventSlug:s.slug,name:`General Admission`,capacity:1e3,limit:-1,available:700,sold:200,reserved:100,order:0,location:o,passcode:void 0,tenantId:t.id,deleted:false,orderPadded:`0000000000`},l=e.Admission={id:`adm_01jps5cgsee0xvapbk92e8eb4g`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),sectionId:c.id,teamId:r.id,promoterId:i.id,eventId:s.id,eventSlug:s.slug,name:`Final Release`,subtitle:`Entry before 10pm`,description:`Early bird pricing with priority entry. Must present valid ID at gate.`,capacity:1e5,limit:-1,available:7e4,sold:2e4,reserved:1e4,order:0,entryStartsAt:b$1(y$1(new Date,1)),entryEndsAt:b$1(y$1(new Date,2)),saleStartsAt:b$1(new Date),saleEndsAt:b$1(y$1(new Date,2)),saleEndsBehavior:`SALE_ENDED`,price:{base:1e3,booking:200,currency:`AUD`},visibility:`ALWAYS`,passcode:void 0,tenantId:t.id,deleted:false,orderPadded:`0000000000`};e.DetailedEvent={...s,admissions:[l],sections:[c]};let u=e.Beneficiary={id:`ben_01jps5cgse5n6mg1ymkew9tsfh`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`My Bank Account`,currency:`AUD`,gatewayId:`7489cb17-24c5-4acf-a0cf-d93ed38081fe`,gateway:`AIRWALLEX`,teamId:r.id,teamIds:[r.id],venueIds:[],tenantId:t.id};e.AirwallexBeneficiary={transfer_methods:[`LOCAL`],beneficiary:{additional_info:{personal_email:`test@session.services`},address:{city:`Sydney`,country_code:`AU`,postcode:`2000`,state:`AU-NSW`,street_address:`123 George Street`},bank_details:{account_currency:`AUD`,account_name:`John Doe`,account_number:`999994`,account_routing_type1:`bsb`,account_routing_value1:`062004`,bank_country_code:`AU`,local_clearing_system:`BANK_TRANSFER`},entity_type:`PERSONAL`,company_name:`Doe Enterprises Pty Ltd`,first_name:`John`,last_name:`Doe`}};let d=e.Coupon={id:`cpn_01jps5cgsfzs1ksqaet5hba8ac`,couponId:`cpn_01jps5cgsfzs1ksqaet5hba8ac`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Half Price`,active:true,kind:`PERCENT`,filter:`TEAM`,currency:`AUD`,discount:50,uses:0,limit:-1,saleStartsAt:`2025-02-10T03:00:00`,saleEndsAt:void 0,deletedAt:void 0,teamId:r.id,tenantId:t.id,deleted:false},f=e.CouponCode={id:`cod_01jps5cgsfzftw7hxcvr2wftk2`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),active:true,name:`TEST50`,uses:0,tenantId:t.id,couponId:d.id,teamId:r.id,deleted:false},p=e.AmountCoupon={id:`cpn_01jps5cgsfndn8jcsfvh72x811`,couponId:`cpn_01jps5cgsfndn8jcsfvh72x811`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Half Price`,active:true,kind:`PERCENT`,filter:`EVENTS`,currency:`AUD`,eventIds:[s.id],discount:50,uses:0,limit:-1,saleStartsAt:`2025-02-10T03:00:00`,saleEndsAt:void 0,deletedAt:void 0,teamId:r.id,tenantId:t.id};e.AmountCouponCode={id:`cod_01jps5cgsfq06xvvhg0hn2rdzd`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),active:true,name:`TEST5DOLLAR`,uses:0,tenantId:t.id,couponId:p.id,teamId:r.id};let m=e.Customer={id:`cus_01jps5cgsf4pn2a32eamppnap1`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),firstName:`Test`,lastName:`User`,email:`test@session.services`,phone:`+61411111111`,tenantId:t.id},ee=e.PayoutTransfer={id:`xfr_01jq8s6c38f97w9yfrfcdhf47v`,createdAt:new Date().toISOString(),kind:`TICKETS`,amount:1e3,currency:`AUD`,fee:0,feeCurrency:`AUD`,reference:`XYZ`,gateway:`AIRWALLEX`,gatewayId:`fe33fb0f-d9d8-47cd-8eef-6a19bd6223eb`,beneficiary:u.name,beneficiaryId:u.id},te=e.PayoutDeduction={id:`pad_01jq90naksfzf8gt2xnn71h21h`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),amount:100,currency:`AUD`,description:`Minimum bar spend not met`,reference:`XYZ`,gateway:`AIRWALLEX`,gatewayId:`1221bbbc-cc97-4119-a597-69019e9d8a93`,beneficiary:u.name,beneficiaryId:u.id},ne=e.Payout={id:`pyt_01jps5cgsfv2wre6hd0rc4w4t8`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),paidAt:new Date().toISOString(),status:`PAID`,method:`AIRWALLEX`,structure:`DEFAULT`,approval:`PENDING`,frequency:`AFTER_EVENT`,transfers:[ee],deductions:[te],event:{id:s.id,name:s.name,slug:s.slug,location:s.location.name},price:{net:1e3,total:1e3,gross:1e3,base:1e3,booking:0,refunded:0,discount:0,gateway:0,dispute:0,shipping:0,sms:0,deductions:0,currency:`AUD`},eventId:s.id,teamId:r.id,promoterId:i.id,promoterSlug:i.slug,tenantId:t.id},h=e.OrderItem={id:`itm_01jps5cgsfwyxj0516571eaf17`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),orderId:`ord_01jps5cgsfgve5b5g2666kyryh`,kind:`ADMISSION`,quantity:2,admissionId:l.id,sectionId:c.id,price:{net:l.price.base+l.price.booking,total:l.price.base+l.price.booking,gross:l.price.base+l.price.booking,base:l.price.base,booking:l.price.booking,refunded:0,discount:0,currency:l.price.currency}};e.OrderFee={id:`fee_01jps5cgsgamykd6kh2t738qkh`,createdAt:new Date().toISOString(),reason:`Gateway Fee`,amount:-30,currency:`AUD`,requestId:`att_sgpdz4v2ph1axmdmdx8_m8w6qv`};let re=e.OrderOffer={kind:`SMS_DELIVERY`,label:`SMS ticket delivery`,price:{amount:200,currency:`AUD`}},ie=e.Order={id:`ord_01jps5cgsfgve5b5g2666kyryh`,token:`c76e3a5d7105345b58e383e6d90fe7728b75f938b727f0b9ecc5b977e8c3b5d0`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),reservedAt:new Date().toISOString(),status:`PENDING`,price:{net:500,total:1400,gross:2200,base:1e3,booking:400,discount:-1e3,refunded:-700,gateway:0,dispute:0,shipping:0,sms:200,currency:`AUD`},code:{id:f.id,name:f.name},event:{id:s.id,name:s.name,slug:s.slug},fees:[],items:[h],customer:x$1.Customer,customerId:x$1.Customer.id,teamId:x$1.Team.id,promoterId:x$1.Promoter.id,promoterSlug:x$1.Promoter.slug,eventId:x$1.Event.id,eventSlug:x$1.Event.slug,payment:{method:`AIRWALLEX`,source:`CARD`},payoutIds:[ne.id],refunds:[],offers:[re],tenantId:x$1.Tenant.id,checkoutUrl:`${t.baseUrl.dev}/checkout/ord_01jps5cgsfgve5b5g2666kyryh`,signature:`Q2hXbG9uZ1NpZzE2`},ae=e.TicketScan={id:`scn_01jq4rjmtzyzgtsavn9f34mxan`,scannedAt:new Date().toISOString(),scannedBy:{id:n.id,firstName:n.firstName,lastName:n.lastName,email:n.email},scannedById:n.id,deviceId:`dev_01jq4rjvrgar43zwvyakbje22m`,kind:`CHECK_IN`};e.OrderRefund={id:`rfd_01jps5cgsfgve5b5g2666kyryh`,idempotencyKey:`refund_12345_customer_request`,status:`SUCCEEDED`,processedAt:new Date().toISOString(),amount:1200,shippingRefunded:0,reason:`CUSTOMER_REQUEST`,note:`Customer requested refund due to schedule conflict`,ticketsCancelled:true,ticketsCancelledCount:2,gateway:`STRIPE`,gatewayRefundId:`re_1234567890abcdef`,initiatedBy:`USER`,userId:n.id,createdAt:new Date().toISOString()},e.OrderRefundItem={orderItemId:h.id,quantity:2,amount:1200,ticketIds:[`tkt_01jps5cgsg0s32w2pr73vbccde`]},e.Notification={id:`ntf_01jps5cgsfgve5b5g2666kyryh`,aggregateType:`ORDER`,aggregateId:ie.id,eventId:s.id,kind:`ORDER_CONFIRMATION`,channel:`EMAIL`,status:`DELIVERED`,providerMessageId:`msg_abc123def456`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),sentAt:new Date().toISOString(),deliveredAt:new Date().toISOString(),failedAt:new Date().toISOString(),failureCode:`BOUNCE`,failureReason:`Mailbox unavailable`,tenantId:t.id},e.Timeline={id:`tln_01jps5cgsfgve5b5g2666kyryh`},e.SmsOrder={id:`ord_01k74g0tbwfvnb7b0e2esms001`},e.Ticket={id:`tkt_01jps5cgsg0s32w2pr73vbccde`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),status:`REDEEMED`,scans:[ae],token:`7b81e13025f78f9935d5933eec3ab25e3c2bb811c99f2470182dd6ba4394ff82`,attendee:{email:m.email,firstName:m.firstName,lastName:m.lastName},event:{id:s.id,name:s.name,slug:s.slug,location:s.location,entryStartsAt:s.entryStartsAt,entryEndsAt:s.entryEndsAt,images:s.images},admission:{id:l.id,name:l.name,price:l.price,entryStartsAt:l.entryStartsAt,entryEndsAt:l.entryEndsAt},eventId:s.id,admissionId:l.id,customerId:m.id,orderId:ie.id,orderItemId:h.id,teamId:r.id,promoterId:i.id,promoterSlug:i.slug,tenantId:t.id};}))(x$1||={});function S$1(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,`_zod`,{value:{def:r,constr:o,traits:new Set},enumerable:false}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;e<a.length;e++){let t=a[e];t in n||(n[t]=i[t].bind(n));}}let i=n?.Parent??Object;class a extends i{}Object.defineProperty(a,`name`,{value:e});function o(e){var t;let i=n?.Parent?new a:this;r(i,e),(t=i._zod).deferred??(t.deferred=[]);for(let e of i._zod.deferred)e();return i}return Object.defineProperty(o,`init`,{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>n?.Parent&&t instanceof n.Parent?true:t?._zod?.traits?.has(e)}),Object.defineProperty(o,`name`,{value:e}),o}var Ft=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);}},It=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`;}};const Lt={};function Rt(e){return Lt}function zt(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function Bt(e,t){return typeof t==`bigint`?t.toString():t}function Vt(e){return {get value(){{let t=e();return Object.defineProperty(this,`value`,{value:t}),t}}}}function Ht(e){return e==null}function Ut(e){let t=e.startsWith(`^`)?1:0,n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function Wt(e,t){let n=(e.toString().split(`.`)[1]||``).length,r=t.toString(),i=(r.split(`.`)[1]||``).length;if(i===0&&/\d?e-\d?/.test(r)){let e=r.match(/\d?e-(\d?)/);e?.[1]&&(i=Number.parseInt(e[1]));}let a=n>i?n:i;return Number.parseInt(e.toFixed(a).replace(`.`,``))%Number.parseInt(t.toFixed(a).replace(`.`,``))/10**a}const Gt=Symbol(`evaluating`);function C$1(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==Gt)return r===void 0&&(r=Gt,r=n()),r},set(n){Object.defineProperty(e,t,{value:n});},configurable:true});}function Kt(e,t,n){Object.defineProperty(e,t,{value:n,writable:true,enumerable:true,configurable:true});}function qt(...e){let t={};for(let n of e){let e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e);}return Object.defineProperties({},t)}function Jt(e){return JSON.stringify(e)}function Yt(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}const Xt=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function Zt(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}const Qt=Vt(()=>{if(typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return false;try{return Function(``),true}catch{return false}});function $t(e){if(Zt(e)===false)return false;let t=e.constructor;if(t===void 0||typeof t!=`function`)return true;let n=t.prototype;return !(Zt(n)===false||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===false)}function en(e){return $t(e)?{...e}:Array.isArray(e)?[...e]:e}const tn=new Set([`string`,`number`,`symbol`]);function nn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function rn(e,t,n){let r=new e._zod.constr(t??e._zod.def);return (!t||n?.parent)&&(r._zod.parent=e),r}function w$1(e){let t=e;if(!t)return {};if(typeof t==`string`)return {error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message;}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function an(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}const on={safeint:[-9007199254740991,2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function sn(e,t){let n=e._zod.def;return rn(e,qt(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r]);}return Kt(this,`shape`,e),e},checks:[]}))}function cn(e,t){let n=e._zod.def;return rn(e,qt(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e];}return Kt(this,`shape`,r),r},checks:[]}))}function ln(e,t){if(!$t(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0)throw Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");return rn(e,qt(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return Kt(this,`shape`,n),n},checks:[]}))}function un(e,t){if(!$t(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return rn(e,{...e._zod.def,get shape(){let n={...e._zod.def.shape,...t};return Kt(this,`shape`,n),n},checks:e._zod.def.checks})}function dn(e,t){return rn(e,qt(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return Kt(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:[]}))}function fn(e,t,n){return rn(t,qt(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t]);}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return Kt(this,`shape`,i),i},checks:[]}))}function pn(e,t,n){return rn(t,qt(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}));}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return Kt(this,`shape`,i),i},checks:[]}))}function mn(e,t=0){if(e.aborted===true)return true;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==true)return true;return false}function hn(e,t){return t.map(t=>{var n;return (n=t).path??(n.path=[]),t.path.unshift(e),t})}function gn(e){return typeof e==`string`?e:e?.message}function _n(e,t,n){let r={...e,path:e.path??[]};return e.message||(r.message=gn(e.inst?._zod.def?.error?.(e))??gn(t?.error?.(e))??gn(n.customError?.(e))??gn(n.localeError?.(e))??`Invalid input`),delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function vn(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function yn(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}const bn=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,`_zod`,{value:e._zod,enumerable:false}),Object.defineProperty(e,`issues`,{value:t,enumerable:false}),e.message=JSON.stringify(t,Bt,2),Object.defineProperty(e,`toString`,{value:()=>e.message,enumerable:false});},xn=S$1(`$ZodError`,bn),Sn=S$1(`$ZodError`,bn,{Parent:Error});function Cn(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return {formErrors:r,fieldErrors:n}}function wn(e,t=e=>e.message){let n={_errors:[]},r=e=>{for(let i of e.issues)if(i.code===`invalid_union`&&i.errors.length)i.errors.map(e=>r({issues:e}));else if(i.code===`invalid_key`)r({issues:i.issues});else if(i.code===`invalid_element`)r({issues:i.issues});else if(i.path.length===0)n._errors.push(t(i));else {let e=n,r=0;for(;r<i.path.length;){let n=i.path[r];r===i.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++;}}};return r(e),n}const Tn=e=>(t,n,r,i)=>{let a=r?Object.assign(r,{async:false}):{async:false},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new Ft;if(o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>_n(e,a,Rt())));throw Xt(t,i?.callee),t}return o.value},En=e=>async(t,n,r,i)=>{let a=r?Object.assign(r,{async:true}):{async:true},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>_n(e,a,Rt())));throw Xt(t,i?.callee),t}return o.value},Dn=e=>(t,n,r)=>{let i=r?{...r,async:false}:{async:false},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new Ft;return a.issues.length?{success:false,error:new(e??xn)(a.issues.map(e=>_n(e,i,Rt())))}:{success:true,data:a.value}},On=Dn(Sn),kn=e=>async(t,n,r)=>{let i=r?Object.assign(r,{async:true}):{async:true},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:false,error:new e(a.issues.map(e=>_n(e,i,Rt())))}:{success:true,data:a.value}},An=kn(Sn),jn=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return Tn(e)(t,n,i)},Mn=e=>(t,n,r)=>Tn(e)(t,n,r),Nn=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return En(e)(t,n,i)},Pn=e=>async(t,n,r)=>En(e)(t,n,r),Fn=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return Dn(e)(t,n,i)},In=e=>(t,n,r)=>Dn(e)(t,n,r),Ln=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return kn(e)(t,n,i)},Rn=e=>async(t,n,r)=>kn(e)(t,n,r),zn=/^[cC][^\s-]{8,}$/,Bn=/^[0-9a-z]+$/,Vn=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Hn=/^[0-9a-vA-V]{20}$/,Un=/^[A-Za-z0-9]{27}$/,Wn=/^[a-zA-Z0-9_-]{21}$/,Gn=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Kn=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,qn=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Jn=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;function Yn(){return RegExp(`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,`u`)}const Xn=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Zn=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Qn=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,$n=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,er=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,tr=/^[A-Za-z0-9_-]*$/,nr=/^\+(?:[0-9]){6,14}[0-9]$/,rr=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`,ir=RegExp(`^${rr}$`);function ar(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function or(e){return RegExp(`^${ar(e)}$`)}function sr(e){let t=ar({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${rr}T(?:${r})$`)}const cr=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},lr=/^-?\d+$/,ur=/^-?\d+(?:\.\d+)?/,dr=/^(?:true|false)$/i,fr=/^null$/i,pr=/^[^A-Z]*$/,mr=/^[^a-z]*$/,T$1=S$1(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[]);}),hr={number:`number`,bigint:`bigint`,object:`date`},gr=S$1(`$ZodCheckLessThan`,(e,t)=>{T$1.init(e,t);let n=hr[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value<r&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value);}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:`too_big`,maximum:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort});};}),_r=S$1(`$ZodCheckGreaterThan`,(e,t)=>{T$1.init(e,t);let n=hr[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value);}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort});};}),vr=S$1(`$ZodCheckMultipleOf`,(e,t)=>{T$1.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value);}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):Wt(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort});};}),yr=S$1(`$ZodCheckNumberFormat`,(e,t)=>{T$1.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=on[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=lr);}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:false,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-9007199254740991,note:`Integers must be within the safe integer range.`,inst:e,origin:r,continue:!t.abort});return}}s<i&&o.issues.push({origin:`number`,input:s,code:`too_small`,minimum:i,inclusive:true,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inst:e});};}),br=S$1(`$ZodCheckMaxLength`,(e,t)=>{var n;T$1.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return !Ht(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum);}),e._zod.check=n=>{let r=n.value;if(r.length<=t.maximum)return;let i=vn(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:true,input:r,inst:e,continue:!t.abort});};}),xr=S$1(`$ZodCheckMinLength`,(e,t)=>{var n;T$1.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return !Ht(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum);}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=vn(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:true,input:r,inst:e,continue:!t.abort});};}),Sr=S$1(`$ZodCheckLengthEquals`,(e,t)=>{var n;T$1.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return !Ht(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length;}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=vn(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:true,exact:true,input:n.value,inst:e,continue:!t.abort});};}),Cr=S$1(`$ZodCheckStringFormat`,(e,t)=>{var n,r;T$1.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern));}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort});}):(r=e._zod).check??(r.check=()=>{});}),wr=S$1(`$ZodCheckRegex`,(e,t)=>{Cr.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort});};}),Tr=S$1(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=pr,Cr.init(e,t);}),Er=S$1(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=mr,Cr.init(e,t);}),Dr=S$1(`$ZodCheckIncludes`,(e,t)=>{T$1.init(e,t);let n=nn(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r);}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort});};}),Or=S$1(`$ZodCheckStartsWith`,(e,t)=>{T$1.init(e,t);let n=RegExp(`^${nn(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n);}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort});};}),kr=S$1(`$ZodCheckEndsWith`,(e,t)=>{T$1.init(e,t);let n=RegExp(`.*${nn(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n);}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort});};}),Ar=S$1(`$ZodCheckOverwrite`,(e,t)=>{T$1.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value);};});var jr=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e);}indented(e){this.indent+=1,e(this),--this.indent;}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(`
|
|
17
|
+
`,t}const Re$1=Symbol(`ORPC_EVENT_SOURCE_META`);function ze$1(e,t){if(t.id===void 0&&t.retry===void 0&&!t.comments?.length)return e;if(t.id!==void 0&&Me$1(t.id),t.retry!==void 0&&_$1(t.retry),t.comments!==void 0)for(let e of t.comments)Pe$1(e);return new Proxy(e,{get(e,n,r){return n===Re$1?t:Reflect.get(e,n,r)}})}function Be$1(e){return ce$1(e)?Reflect.get(e,Re$1):void 0}function Ve$1(e){return `inline; filename="${e.replace(/"/g,`\\"`)}"; filename*=utf-8''${encodeURIComponent(e).replace(/['()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`).replace(/%(7C|60|5E)/g,(e,t)=>String.fromCharCode(Number.parseInt(t,16)))}`}function He$1(e){let t=e.match(/filename\*=(UTF-8'')?([^;]*)/i);if(t&&typeof t[2]==`string`)return he$1(t[2]);let n=e.match(/filename="((?:\\"|[^"])*)"/i);if(n&&typeof n[1]==`string`)return n[1].replace(/\\"/g,`"`)}function Ue$1(e,t){let n={...e};for(let e in t)Array.isArray(t[e])?n[e]=[...r(n[e]),...t[e]]:t[e]!==void 0&&(Array.isArray(n[e])?n[e]=[...n[e],t[e]]:n[e]===void 0?n[e]=t[e]:n[e]=[n[e],t[e]]);return n}function We$1(e,t){let n=async e=>{let n=await t.error(e);if(n!==e){let t=Be$1(e);t&&ce$1(n)&&(n=ze$1(n,t));}return n};return new ne$1(async()=>{let{done:r,value:i}=await(async()=>{try{return await e.next()}catch(e){throw await n(e)}})(),a=await t.value(i,r);if(a!==i){let e=Be$1(i);e&&ce$1(a)&&(a=ze$1(a,e));}return {done:r,value:a}},async()=>{try{await e.return?.();}catch(e){throw await n(e)}})}function Ke$1(e){return {...e,context:e.context??{}}}function qe$1(e,t={}){let n=t.path??[];return fe$1(new Proxy(async(...[t,r={}])=>await e.call(n,t,Ke$1(r)),{get(r,i){return typeof i==`string`?qe$1(e,{path:[...n,i]}):Reflect.get(r,i)}}))}function Ye$1(e,t={}){let n=(e?.pipeThrough(new TextDecoderStream).pipeThrough(new je$1))?.getReader(),r,i=false;return new ne$1(async()=>{r??=l$1(`consume_event_iterator_stream`);try{for(;;){if(n===void 0)return {done:true,value:void 0};let{done:e,value:t}=await p$1(r,()=>n.read());if(e){if(i)throw new a$1(`Stream was cancelled`);return {done:true,value:void 0}}switch(t.event){case `message`:{let e=ie$1(t.data);return ce$1(e)&&(e=ze$1(e,t)),r?.addEvent(`message`),{done:false,value:e}}case `error`:{let e=new Oe$1({data:ie$1(t.data)});throw e=ze$1(e,t),r?.addEvent(`error`),e}case `done`:{let e=ie$1(t.data);return ce$1(e)&&(e=ze$1(e,t)),r?.addEvent(`done`),{done:true,value:e}}default:r?.addEvent(`maybe_keepalive`);}}}catch(e){throw e instanceof Oe$1||u$1(r,e,t),e}},async e=>{try{e!==`next`&&(i=true,r?.addEvent(`cancelled`)),await p$1(r,()=>n?.cancel());}catch(e){throw u$1(r,e,t),e}finally{r?.end();}})}function Xe$1(e,t={}){let n=t.eventIteratorKeepAliveEnabled??true,r=t.eventIteratorKeepAliveInterval??5e3,i=t.eventIteratorKeepAliveComment??``,a=t.eventIteratorInitialCommentEnabled??true,o=t.eventIteratorInitialComment??``,s=false,c,d;return new ReadableStream({start(e){d=l$1(`stream_event_iterator`),a&&e.enqueue(Le$1({comments:[o]}));},async pull(t){try{n&&(c=setInterval(()=>{t.enqueue(Le$1({comments:[i]})),d?.addEvent(`keepalive`);},r));let a=await p$1(d,()=>e.next());if(clearInterval(c),s)return;let o=Be$1(a.value);if(!a.done||a.value!==void 0||o!==void 0){let e=a.done?`done`:`message`;t.enqueue(Le$1({...o,event:e,data:ae$1(a.value)})),d?.addEvent(e);}a.done&&(t.close(),d?.end());}catch(e){if(clearInterval(c),s)return;e instanceof Oe$1?(t.enqueue(Le$1({...Be$1(e),event:`error`,data:ae$1(e.data)})),d?.addEvent(`error`),t.close()):(u$1(d,e),t.error(e)),d?.end();}},async cancel(){try{s=true,clearInterval(c),d?.addEvent(`cancelled`),await p$1(d,()=>e.return?.());}catch(e){throw u$1(d,e),e}finally{d?.end();}}}).pipeThrough(new TextEncoderStream)}function Ze$1(e,t={}){return f$1({name:`parse_standard_body`,signal:t.signal},async()=>{let n=e.headers.get(`content-disposition`);if(typeof n==`string`){let t=He$1(n)??`blob`,r=await e.blob();return new File([r],t,{type:r.type})}let r=e.headers.get(`content-type`);if(!r||r.startsWith(`application/json`))return ie$1(await e.text());if(r.startsWith(`multipart/form-data`))return await e.formData();if(r.startsWith(`application/x-www-form-urlencoded`)){let t=await e.text();return new URLSearchParams(t)}if(r.startsWith(`text/event-stream`))return Ye$1(e.body,t);if(r.startsWith(`text/plain`))return await e.text();let i=await e.blob();return new File([i],`blob`,{type:i.type})})}function Qe$1(e,t,n={}){let r=t.get(`content-disposition`);if(t.delete(`content-type`),t.delete(`content-disposition`),e!==void 0)return e instanceof Blob?(t.set(`content-type`,e.type),t.set(`content-length`,e.size.toString()),t.set(`content-disposition`,r??Ve$1(e instanceof File?e.name:`blob`)),e):e instanceof FormData||e instanceof URLSearchParams?e:m$1(e)?(t.set(`content-type`,`text/event-stream`),Xe$1(e,n)):(t.set(`content-type`,`application/json`),ae$1(e))}function $e$1(e,t={}){return e.forEach((e,n)=>{Array.isArray(t[n])?t[n].push(e):t[n]===void 0?t[n]=e:t[n]=[t[n],e];}),t}function et$1(e,t=new Headers){for(let[n,r]of Object.entries(e))if(Array.isArray(r))for(let e of r)t.append(n,e);else r!==void 0&&t.append(n,r);return t}function tt$1(e,t={}){let n=et$1(e.headers),r=Qe$1(e.body,n,t);return new Request(e.url,{signal:e.signal,method:e.method,headers:n,body:r})}function nt$1(e,t={}){return {body:o$1(()=>Ze$1(e,t)),status:e.status,get headers(){let t=$e$1(e.headers);return Object.defineProperty(this,`headers`,{value:t,writable:true}),t},set headers(e){Object.defineProperty(this,`headers`,{value:e,writable:true});}}}var rt$1=class rt{plugins;constructor(e=[]){this.plugins=[...e].sort((e,t)=>(e.order??0)-(t.order??0));}init(e){for(let t of this.plugins)t.init?.(e);}},it$1=class it{constructor(e,t,n={}){this.codec=e,this.sender=t,new rt$1(n.plugins).init(n),this.interceptors=r(n.interceptors),this.clientInterceptors=r(n.clientInterceptors);}interceptors;clientInterceptors;call(e,t,n){return f$1({name:`${i}.${e.join(`/`)}`,signal:n.signal},r=>(r?.setAttribute(`rpc.system`,i),r?.setAttribute(`rpc.method`,e.join(`.`)),m$1(t)&&(t=h$1({name:`consume_event_iterator_input`,signal:n.signal},t)),re$1(this.interceptors,{...n,path:e,input:t},async({path:e,input:t,...n})=>{let i=c$1(),a,o=i?.trace.getActiveSpan()??r;o&&i&&(a=i?.trace.setSpan(i.context.active(),o));let s=await f$1({name:`encode_request`,context:a},()=>this.codec.encode(e,t,n)),l=await re$1(this.clientInterceptors,{...n,input:t,path:e,request:s},({input:e,path:t,request:n,...r})=>f$1({name:`send_request`,signal:r.signal,context:a},()=>this.sender.call(n,r,t,e))),u=await f$1({name:`decode_response`,context:a},()=>this.codec.decode(l,n,e,t));return m$1(u)?h$1({name:`consume_event_iterator_output`,signal:n.signal},u):u})))}};function at$1(e){return `/${e.map(encodeURIComponent).join(`/`)}`}function ot(e){return typeof e.forEach==`function`?$e$1(e):e}function st(e){return Object.entries(ge$1).find(([,t])=>t.status===e)?.[0]??`MALFORMED_ORPC_ERROR_RESPONSE`}function ct(e,t){return {...e,...t}}var lt=class{"~orpc";constructor(e){if(e.route?.successStatus&&we$1(e.route.successStatus))throw Error(`[ContractProcedure] Invalid successStatus.`);if(Object.values(e.errorMap).some(e=>e&&e.status&&!we$1(e.status)))throw Error(`[ContractProcedure] Invalid error status code.`);this[`~orpc`]=e;}};function ut(e){return e instanceof lt?true:(typeof e==`object`||typeof e==`function`)&&e!==null&&`~orpc`in e&&typeof e[`~orpc`]==`object`&&e[`~orpc`]!==null&&`errorMap`in e[`~orpc`]&&`route`in e[`~orpc`]&&`meta`in e[`~orpc`]}function dt(e,t){return {...e,...t}}function ft(e,t){return {...e,...t}}function pt(e,t){return e.path?{...e,path:`${t}${e.path}`}:e}function mt(e,t){return {...e,tags:[...t,...e.tags??[]]}}function ht(e,t){return e?`${e}${t}`:t}function gt(e,t){return e?[...e,...t]:t}function _t(e,t){let n=e;return t.prefix&&(n=pt(n,t.prefix)),t.tags?.length&&(n=mt(n,t.tags)),n}function vt(e,t){if(ut(e))return new lt({...e[`~orpc`],errorMap:ct(t.errorMap,e[`~orpc`].errorMap),route:_t(e[`~orpc`].route,t)});let n={};for(let r in e)n[r]=vt(e[r],t);return n}const v$1=new class e extends lt{constructor(e){super(e),this[`~orpc`].prefix=e.prefix,this[`~orpc`].tags=e.tags;}$meta(t){return new e({...this[`~orpc`],meta:t})}$route(t){return new e({...this[`~orpc`],route:t})}$input(t){return new e({...this[`~orpc`],inputSchema:t})}errors(t){return new e({...this[`~orpc`],errorMap:ct(this[`~orpc`].errorMap,t)})}meta(t){return new e({...this[`~orpc`],meta:dt(this[`~orpc`].meta,t)})}route(t){return new e({...this[`~orpc`],route:ft(this[`~orpc`].route,t)})}input(t){return new e({...this[`~orpc`],inputSchema:t})}output(t){return new e({...this[`~orpc`],outputSchema:t})}prefix(t){return new e({...this[`~orpc`],prefix:ht(this[`~orpc`].prefix,t)})}tag(...t){return new e({...this[`~orpc`],tags:gt(this[`~orpc`].tags,t)})}router(e){return vt(e,this[`~orpc`])}}({errorMap:{},route:{},meta:{}}),yt={defaultMethod:`POST`,defaultSuccessStatus:200,defaultSuccessDescription:`OK`,defaultInputStructure:`compact`,defaultOutputStructure:`compact`};function bt(e,t){return t===void 0?yt[e]:t}const St=Symbol.for(`constructDateFrom`);function Ct(e,t){return typeof e==`function`?e(t):e&&typeof e==`object`&&St in e?e[St](t):e instanceof Date?new e.constructor(t):new Date(t)}function wt(e,t){return Ct(e,e)}function Tt(e,t,n){let r=wt(e);return isNaN(t)?Ct(e,NaN):(t&&r.setDate(r.getDate()+t),r)}const Et={},Dt={};function Ot(e,t){try{let n=(Et[e]||=new Intl.DateTimeFormat(`en-US`,{timeZone:e,timeZoneName:`longOffset`}).format)(t).split(`GMT`)[1];return n in Dt?Dt[n]:At(n,n.split(`:`))}catch{if(e in Dt)return Dt[e];let t=e?.match(kt);return t?At(e,t.slice(1)):NaN}}const kt=/([+-]\d\d):?(\d\d)?/;function At(e,t){let n=+(t[0]||0),r=+(t[1]||0),i=(t[2]||0)/60;return Dt[e]=n*60+r>0?n*60+r+i:n*60-r-i}var jt=class e extends Date{constructor(...e){super(),e.length>1&&typeof e[e.length-1]==`string`&&(this.timeZone=e.pop()),this.internal=new Date,isNaN(Ot(this.timeZone,this))?this.setTime(NaN):e.length?typeof e[0]==`number`&&(e.length===1||e.length===2&&typeof e[1]!=`number`)?this.setTime(e[0]):typeof e[0]==`string`?this.setTime(+new Date(e[0])):e[0]instanceof Date?this.setTime(+e[0]):(this.setTime(+new Date(...e)),Ft(this),Nt(this)):this.setTime(Date.now());}static tz(t,...n){return n.length?new e(...n,t):new e(Date.now(),t)}withTimeZone(t){return new e(+this,t)}getTimezoneOffset(){let e=-Ot(this.timeZone,this);return e>0?Math.floor(e):Math.ceil(e)}setTime(e){return Date.prototype.setTime.apply(this,arguments),Nt(this),+this}[Symbol.for(`constructDateFrom`)](t){return new e(+new Date(t),this.timeZone)}};const Mt=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!Mt.test(e))return;let t=e.replace(Mt,`$1UTC`);jt.prototype[t]&&(e.startsWith(`get`)?jt.prototype[e]=function(){return this.internal[t]()}:(jt.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),Pt(this),+this},jt.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),Nt(this),+this}));});function Nt(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-Ot(e.timeZone,e)*60));}function Pt(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),Ft(e);}function Ft(e){let t=Ot(e.timeZone,e),n=t>0?Math.floor(t):Math.ceil(t),r=new Date(+e);r.setUTCHours(r.getUTCHours()-1);let i=-new Date(+e).getTimezoneOffset(),a=i- -new Date(+r).getTimezoneOffset(),o=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();a&&o&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+a);let s=i-n;s&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+s);let c=new Date(+e);c.setUTCSeconds(0);let l=i>0?c.getSeconds():(c.getSeconds()-60)%60,u=Math.round(-(Ot(e.timeZone,e)*60))%60;(u||l)&&(e.internal.setUTCSeconds(e.internal.getUTCSeconds()+u),Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+u+l));let d=Ot(e.timeZone,e),f=d>0?Math.floor(d):Math.ceil(d),p=-new Date(+e).getTimezoneOffset()-f,m=f!==n,ee=p-s;if(m&&ee){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+ee);let t=Ot(e.timeZone,e),n=f-(t>0?Math.floor(t):Math.ceil(t));n&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+n),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+n));}}function y$1(e){return (typeof e==`string`?new Date(e):e).toISOString().replace(/\.\d{3}Z$/,``)}let b$1;((function(e){e.signature=`a1B2c3D4e5F6g7H8`;let t=e.Tenant={id:`tnt_01jqpj2t2kfvmstt6f6tzkbaf2`,oldId:`none`,name:`Session Services`,slug:`session-services`,email:`hello@session.services`,adminTeamId:`tem_01jqpjksnsen9vprw95et60t3m`,defaultCurrency:`AUD`,smsSenderId:`SESSIONS`,baseUrl:{dev:`http://localhost:3000`,production:`https://app.session.services`},logo:{icon:{src:`https://assets.session.services/icon-bg.png`,width:29,height:29},email:{src:`https://assets.session.services/icon-bg.png`,width:165,height:76},website:{src:`https://assets.session.services/icon-bg.png`,width:165,height:76},qr:{src:`https://assets.session.services/tenants/session-services/qr.svg`}},favicon:`https://assets.session.services/tenants/session-services/favicon.svg`};e.Region={country:{id:`rgn_01jqpj2t2kfvmstt6f6tzkbaf2`,name:`Australia`,slug:`australia`,kind:`COUNTRY`,order:1},state:{id:`rgn_01jqpj2t2kfvmstt6f6tzkbaf3`,name:`New South Wales`,slug:`nsw`,kind:`STATE`,parentId:`rgn_01jqpj2t2kfvmstt6f6tzkbaf2`,order:2},city:{id:`rgn_01jqpj2t2kfvmstt6f6tzkbaf4`,name:`Sydney`,slug:`sydney`,kind:`CITY`,parentId:`rgn_01jqpj2t2kfvmstt6f6tzkbaf3`,latitude:-33.8688,longitude:151.2093,radius:25,order:3}};let n=e.User={id:`usr_01jps5cgsd4tzjghtnt45qnhn0`,email:`test@session.services`,firstName:`Jay`,lastName:`McMullen`,imageUrl:void 0,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),tenantId:t.id,deleted:false};e.EmailVerification={id:`emlvrf_01jps5cgsd4tzjghtnt45qnhn0`,userId:`usr_01jps5cgsd4tzjghtnt45qnhn0`,tenantId:t.id,email:`test@session.services`,code:`123456`,expiresAt:new Date(Date.now()+1800*1e3).toISOString(),createdAt:new Date().toISOString()},e.PasswordReset={id:`pwrst_01jps5cgsd4tzjghtnt45qnhn0`,token:`c76e3a5d7105345b58e383e6d90fe7728b75f938b727f0b9ecc5b977e8c3b5d0`,userId:`usr_01jps5cgsd4tzjghtnt45qnhn0`,tenantId:t.id,email:`test@session.services`,code:`123456`,expiresAt:new Date(Date.now()+900*1e3).toISOString(),emailVerified:false,twoFactorVerified:false,createdAt:new Date().toISOString()};let r=e.Team={id:`tem_01jqpjksnsen9vprw95et60t2m`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Session Services`,slug:`session-services`,description:`This is only a test...`,type:`PROMOTER`,approval:`APPROVED`,tenantId:`tnt_01jqpj2t2kfvmstt6f6tzkbaf2`,deleted:false},i=e.Promoter={id:`pmt_01jqpjksnsen9vprw95et60t2m`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),teamId:r.id,name:`Session Services`,slug:`session-services`,description:`This is only a test...`,payoutFrequency:`AFTER_EVENT`,image:{src:`https://assets.session.services/icon-bg.png`,alt:`Session Services Logo`,width:800,height:800},approval:`APPROVED`,geohash:`r3gx1`,location:{id:`loc_01jqpjksnsen9vprw95et60t4m`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Sydney`,address:`Sydney NSW 2000, Australia`,city:`Sydney`,state:`New South Wales`,postcode:`2000`,country:`Australia`,latitude:-33.8944593,longitude:151.2252255,timeZone:`Australia/Sydney`},tracking:{fbId:`485739562847563`,gtmId:`GTM-K8WPM5N`,tikTokId:`BQCKPH3RC77U8GPMLJ5G`},tenantId:`tnt_01jqpj2t2kfvmstt6f6tzkbaf2`,deleted:false};e.Venue={id:`ven_01jqpjksnsen9vprw95et60t2m`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),teamId:r.id,locationId:`loc_01jqpjksnsen9vprw95et60t3m`,approval:`APPROVED`,name:`Sydney Opera House`,slug:`sydney-opera-house`,description:`Iconic performing arts venue in Sydney, Australia`,type:`THEATER`,logo:{src:`https://assets.session.services/venues/sydney-opera-house.png`,alt:`Sydney Opera House`,width:800,height:800},images:[{src:`https://assets.session.services/venues/sydney-opera-house-1.jpg`,alt:`Sydney Opera House exterior`,width:1920,height:1080}],contact:{email:`info@sydneyoperahouse.com`,phone:`+61 2 9250 7111`,website:`https://www.sydneyoperahouse.com`,instagram:`https://instagram.com/sydneyoperahouse`,facebook:`https://facebook.com/sydneyoperahouse`,twitter:`https://twitter.com/sydneyoperahouse`},location:{id:`loc_01jqpjksnsen9vprw95et60t3m`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Sydney Opera House`,address:`Bennelong Point, Sydney NSW 2000`,city:`Sydney`,state:`New South Wales`,postcode:`2000`,country:`Australia`,latitude:-33.8567844,longitude:151.2152967,timeZone:`Australia/Sydney`,image:{src:`https://assets.session.services/locations/sydney-opera-house.jpg`,alt:`Sydney Opera House`,width:1200,height:800}},geohash:`r3gx2f9`,capacity:5738,tenantId:t.id,deleted:false};let a=e.PromoterMember={id:`mbr_01jps5cgsec5ge0b1bxa6gzkkk`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),teamId:r.id,userId:n.id,user:{id:n.id,email:n.email,firstName:n.firstName,lastName:n.lastName,imageUrl:n.imageUrl},permissions:[`*`],isOwner:true,tenantId:t.id};e.TeamMember={id:`mbr_01jqpjksnsen9vprw95et60t2m`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),teamId:r.id,userId:n.id,user:{id:n.id,email:n.email,firstName:n.firstName,lastName:n.lastName,imageUrl:n.imageUrl},permissions:[`*`],isOwner:true,tenantId:t.id},e.TeamInvite={id:`inv_01jqpjksnsen9vprw95et60t4m`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),expiresAt:Math.floor(Tt(new Date,7).getTime()/1e3),teamId:r.id,token:`a76e3c5d7109345b58e383e6d90f7728b75f9a38b727f0b9edd5b977e8c3b5d0`,email:`team-invite@session.services`,invitedBy:n.id,permissions:[`event.write`,`order.write`],tenantId:t.id},e.CurrentSession={user:n,initials:`JM`,isTenantAdmin:true,promoters:[{...i,member:a}]},e.Session={id:`sess_01jps5cgsd4tzjghtnt45qnhn0`,userId:n.id,tenantId:t.id,expiresAt:Tt(new Date,30).toISOString(),twoFactorVerified:false,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()},e.BackupCode={id:`bkc_01jps5cgsd4tzjghtnt45qnhn0`,userId:n.id,tenantId:t.id,code:`ABC123DEF456`,used:false,createdAt:new Date().toISOString()},e.UserSession={id:`uss_01jps5cgsd4tzjghtnt45qnhn0`,userId:n.id,tenantId:t.id,ipAddress:`192.168.1.100`,userAgent:`Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36`,location:`Sydney, Australia`,isCurrent:true,expiresAt:Tt(new Date,30).toISOString(),createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()},e.PasskeyCredential={id:`pkc_01jps5cgsd4tzjghtnt45qnhn0`,userId:n.id,tenantId:t.id,name:`iPhone Touch ID`,credentialId:`cred_01jps5cgsd4tzjghtnt45qnhn0`,credentialPublicKey:`pQECAyYgASFYIM...`,credentialBackupEligible:true,credentialBackupState:false,credentialDeviceType:`singleDevice`,counter:1,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()},e.SecurityKeyCredential={id:`skc_01jps5cgsd4tzjghtnt45qnhn0`,userId:n.id,tenantId:t.id,name:`YubiKey 5 NFC`,credentialId:`cred_01jps5cgsd4tzjghtnt45qnhn0`,credentialPublicKey:`pQECAyYgASFYIM...`,credentialBackupEligible:false,credentialBackupState:false,credentialDeviceType:`crossPlatform`,counter:5,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()},e.TOTPCredential={id:`tpc_01jps5cgsd4tzjghtnt45qnhn0`,userId:n.id,tenantId:t.id,secret:`JBSWY3DPEHPK3PXP`,verified:true,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()};let o=e.Location={id:`loc_01hk153x00eh99pagyydz03sbz`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),googlePlaceId:`ChIJ6zWCPUyxEmsRmc6BPrNaP4s`,name:`Watson's EQ`,address:`The, Entertainment Quarter, 1 Bent St, Moore Park NSW 2021, Australia`,city:`Moore Park`,state:`New South Wales`,postcode:`2021`,country:`Australia`,latitude:-33.8944593,longitude:151.2252255,timeZone:`Australia/Sydney`,types:[`establishment`,`point_of_interest`,`restaurant`,`bar`],image:{src:`https://assets.session.services/locations/watsons-eq.jpg`,alt:`Watson's EQ`,width:1200,height:800}};e.CarouselLocation={id:`loc_01hk153x00efq9ygdkc9eb3rjt`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),googlePlaceId:`ChIJc8-zlGSvEmsR0rbZWpCP6z0`,name:`Carousel Bar & Ballroom`,address:`169 Oxford St, Darlinghurst NSW 2010, Australia`,city:`Darlinghurst`,state:`New South Wales`,postcode:`2010`,country:`Australia`,latitude:-33.8803603,longitude:151.2161228,timeZone:`Australia/Sydney`,types:[`establishment`,`night_club`,`point_of_interest`],image:{src:`https://assets.session.services/locations/loc_01hk153x00efq9ygdkc9eb3rjt.jpg`,alt:`Carousel Bar & Ballroom`,width:1200,height:800}};let s=e.Event={id:`evt_01jps5cgsenjrazw6wswmyspa3`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Test Event`,slug:`test-event`,description:`This is only a test...`,approval:`APPROVED`,status:`UPCOMING`,visibility:`PUBLIC`,currency:`AUD`,entryStartsAt:y$1(Tt(new Date,1)),entryEndsAt:y$1(Tt(new Date,2)),publishAt:y$1(new Date),images:{mobile:{src:`https://assets.session.services/event-mobile.jpg`,alt:`Mobile Event Image`,width:1080,height:1350},desktop:{src:`https://assets.session.services/event-desktop.jpg`,alt:`Desktop Event Image`,width:1920,height:1080}},geohash:`r3gx1`,location:o,teamId:r.id,promoterId:i.id,tenantId:t.id,deleted:false},c=e.Section={id:`sct_01jps5cgse0g3qj16kpq8t221r`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),teamId:r.id,promoterId:i.id,eventId:s.id,eventSlug:s.slug,name:`General Admission`,capacity:1e3,limit:-1,available:700,sold:200,reserved:100,order:0,location:o,passcode:void 0,tenantId:t.id,deleted:false,orderPadded:`0000000000`},l=e.Admission={id:`adm_01jps5cgsee0xvapbk92e8eb4g`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),sectionId:c.id,teamId:r.id,promoterId:i.id,eventId:s.id,eventSlug:s.slug,name:`Final Release`,subtitle:`Entry before 10pm`,description:`Early bird pricing with priority entry. Must present valid ID at gate.`,capacity:1e5,limit:-1,available:7e4,sold:2e4,reserved:1e4,order:0,entryStartsAt:y$1(Tt(new Date,1)),entryEndsAt:y$1(Tt(new Date,2)),saleStartsAt:y$1(new Date),saleEndsAt:y$1(Tt(new Date,2)),saleEndsBehavior:`SALE_ENDED`,price:{base:1e3,booking:200,currency:`AUD`},visibility:`ALWAYS`,passcode:void 0,tenantId:t.id,deleted:false,orderPadded:`0000000000`};e.DetailedEvent={...s,admissions:[l],sections:[c]};let u=e.Beneficiary={id:`ben_01jps5cgse5n6mg1ymkew9tsfh`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`My Bank Account`,currency:`AUD`,gatewayId:`7489cb17-24c5-4acf-a0cf-d93ed38081fe`,gateway:`AIRWALLEX`,teamId:r.id,teamIds:[r.id],venueIds:[],tenantId:t.id};e.AirwallexBeneficiary={transfer_methods:[`LOCAL`],beneficiary:{additional_info:{personal_email:`test@session.services`},address:{city:`Sydney`,country_code:`AU`,postcode:`2000`,state:`AU-NSW`,street_address:`123 George Street`},bank_details:{account_currency:`AUD`,account_name:`John Doe`,account_number:`999994`,account_routing_type1:`bsb`,account_routing_value1:`062004`,bank_country_code:`AU`,local_clearing_system:`BANK_TRANSFER`},entity_type:`PERSONAL`,company_name:`Doe Enterprises Pty Ltd`,first_name:`John`,last_name:`Doe`}};let d=e.Coupon={id:`cpn_01jps5cgsfzs1ksqaet5hba8ac`,couponId:`cpn_01jps5cgsfzs1ksqaet5hba8ac`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Half Price`,active:true,kind:`PERCENT`,filter:`TEAM`,currency:`AUD`,discount:50,uses:0,limit:-1,saleStartsAt:`2025-02-10T03:00:00`,saleEndsAt:void 0,deletedAt:void 0,teamId:r.id,tenantId:t.id,deleted:false},f=e.CouponCode={id:`cod_01jps5cgsfzftw7hxcvr2wftk2`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),active:true,name:`TEST50`,uses:0,tenantId:t.id,couponId:d.id,teamId:r.id,deleted:false},p=e.AmountCoupon={id:`cpn_01jps5cgsfndn8jcsfvh72x811`,couponId:`cpn_01jps5cgsfndn8jcsfvh72x811`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Half Price`,active:true,kind:`PERCENT`,filter:`EVENTS`,currency:`AUD`,eventIds:[s.id],discount:50,uses:0,limit:-1,saleStartsAt:`2025-02-10T03:00:00`,saleEndsAt:void 0,deletedAt:void 0,teamId:r.id,tenantId:t.id};e.AmountCouponCode={id:`cod_01jps5cgsfq06xvvhg0hn2rdzd`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),active:true,name:`TEST5DOLLAR`,uses:0,tenantId:t.id,couponId:p.id,teamId:r.id};let m=e.Customer={id:`cus_01jps5cgsf4pn2a32eamppnap1`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),firstName:`Test`,lastName:`User`,email:`test@session.services`,phone:`+61411111111`,tenantId:t.id},ee=e.PayoutTransfer={id:`xfr_01jq8s6c38f97w9yfrfcdhf47v`,createdAt:new Date().toISOString(),kind:`TICKETS`,amount:1e3,currency:`AUD`,fee:0,feeCurrency:`AUD`,reference:`XYZ`,gateway:`AIRWALLEX`,gatewayId:`fe33fb0f-d9d8-47cd-8eef-6a19bd6223eb`,beneficiary:u.name,beneficiaryId:u.id},te=e.PayoutDeduction={id:`pad_01jq90naksfzf8gt2xnn71h21h`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),amount:100,currency:`AUD`,description:`Minimum bar spend not met`,reference:`XYZ`,gateway:`AIRWALLEX`,gatewayId:`1221bbbc-cc97-4119-a597-69019e9d8a93`,beneficiary:u.name,beneficiaryId:u.id},ne=e.Payout={id:`pyt_01jps5cgsfv2wre6hd0rc4w4t8`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),paidAt:new Date().toISOString(),status:`PAID`,method:`AIRWALLEX`,structure:`DEFAULT`,approval:`PENDING`,frequency:`AFTER_EVENT`,transfers:[ee],deductions:[te],event:{id:s.id,name:s.name,slug:s.slug,location:s.location.name},price:{net:1e3,total:1e3,gross:1e3,base:1e3,booking:0,refunded:0,discount:0,gateway:0,dispute:0,shipping:0,sms:0,deductions:0,currency:`AUD`},eventId:s.id,teamId:r.id,promoterId:i.id,promoterSlug:i.slug,tenantId:t.id},h=e.OrderItem={id:`itm_01jps5cgsfwyxj0516571eaf17`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),orderId:`ord_01jps5cgsfgve5b5g2666kyryh`,kind:`ADMISSION`,quantity:2,admissionId:l.id,sectionId:c.id,price:{net:l.price.base+l.price.booking,total:l.price.base+l.price.booking,gross:l.price.base+l.price.booking,base:l.price.base,booking:l.price.booking,refunded:0,discount:0,currency:l.price.currency}};e.OrderFee={id:`fee_01jps5cgsgamykd6kh2t738qkh`,createdAt:new Date().toISOString(),reason:`Gateway Fee`,amount:-30,currency:`AUD`,requestId:`att_sgpdz4v2ph1axmdmdx8_m8w6qv`};let re=e.OrderOffer={kind:`SMS_DELIVERY`,label:`SMS ticket delivery`,price:{amount:200,currency:`AUD`}},ie=e.Order={id:`ord_01jps5cgsfgve5b5g2666kyryh`,token:`c76e3a5d7105345b58e383e6d90fe7728b75f938b727f0b9ecc5b977e8c3b5d0`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),reservedAt:new Date().toISOString(),status:`PENDING`,price:{net:500,total:1400,gross:2200,base:1e3,booking:400,discount:-1e3,refunded:-700,gateway:0,dispute:0,shipping:0,sms:200,currency:`AUD`},code:{id:f.id,name:f.name},event:{id:s.id,name:s.name,slug:s.slug},fees:[],items:[h],customer:b$1.Customer,customerId:b$1.Customer.id,teamId:b$1.Team.id,promoterId:b$1.Promoter.id,promoterSlug:b$1.Promoter.slug,eventId:b$1.Event.id,eventSlug:b$1.Event.slug,payment:{method:`AIRWALLEX`,source:`CARD`},payoutIds:[ne.id],refunds:[],offers:[re],tenantId:b$1.Tenant.id,checkoutUrl:`${t.baseUrl.dev}/checkout/ord_01jps5cgsfgve5b5g2666kyryh`,signature:`Q2hXbG9uZ1NpZzE2`},ae=e.TicketScan={id:`scn_01jq4rjmtzyzgtsavn9f34mxan`,scannedAt:new Date().toISOString(),scannedBy:{id:n.id,firstName:n.firstName,lastName:n.lastName,email:n.email},scannedById:n.id,deviceId:`dev_01jq4rjvrgar43zwvyakbje22m`,kind:`CHECK_IN`};e.OrderRefund={id:`rfd_01jps5cgsfgve5b5g2666kyryh`,idempotencyKey:`refund_12345_customer_request`,status:`SUCCEEDED`,processedAt:new Date().toISOString(),amount:1200,shippingRefunded:0,reason:`CUSTOMER_REQUEST`,note:`Customer requested refund due to schedule conflict`,ticketsCancelled:true,ticketsCancelledCount:2,gateway:`STRIPE`,gatewayRefundId:`re_1234567890abcdef`,initiatedBy:`USER`,userId:n.id,createdAt:new Date().toISOString()},e.OrderRefundItem={orderItemId:h.id,quantity:2,amount:1200,ticketIds:[`tkt_01jps5cgsg0s32w2pr73vbccde`]},e.Notification={id:`ntf_01jps5cgsfgve5b5g2666kyryh`,aggregateType:`ORDER`,aggregateId:ie.id,eventId:s.id,kind:`ORDER_CONFIRMATION`,channel:`EMAIL`,status:`DELIVERED`,providerMessageId:`msg_abc123def456`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),sentAt:new Date().toISOString(),deliveredAt:new Date().toISOString(),failedAt:new Date().toISOString(),failureCode:`BOUNCE`,failureReason:`Mailbox unavailable`,tenantId:t.id},e.Timeline={id:`tln_01jps5cgsfgve5b5g2666kyryh`},e.SmsOrder={id:`ord_01k74g0tbwfvnb7b0e2esms001`},e.Ticket={id:`tkt_01jps5cgsg0s32w2pr73vbccde`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),status:`REDEEMED`,scans:[ae],token:`7b81e13025f78f9935d5933eec3ab25e3c2bb811c99f2470182dd6ba4394ff82`,attendee:{email:m.email,firstName:m.firstName,lastName:m.lastName},event:{id:s.id,name:s.name,slug:s.slug,location:s.location,entryStartsAt:s.entryStartsAt,entryEndsAt:s.entryEndsAt,images:s.images},admission:{id:l.id,name:l.name,price:l.price,entryStartsAt:l.entryStartsAt,entryEndsAt:l.entryEndsAt},eventId:s.id,admissionId:l.id,customerId:m.id,orderId:ie.id,orderItemId:h.id,teamId:r.id,promoterId:i.id,promoterSlug:i.slug,tenantId:t.id};}))(b$1||={});function x$1(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,`_zod`,{value:{def:r,constr:o,traits:new Set},enumerable:false}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;e<a.length;e++){let t=a[e];t in n||(n[t]=i[t].bind(n));}}let i=n?.Parent??Object;class a extends i{}Object.defineProperty(a,`name`,{value:e});function o(e){var t;let i=n?.Parent?new a:this;r(i,e),(t=i._zod).deferred??(t.deferred=[]);for(let e of i._zod.deferred)e();return i}return Object.defineProperty(o,`init`,{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>n?.Parent&&t instanceof n.Parent?true:t?._zod?.traits?.has(e)}),Object.defineProperty(o,`name`,{value:e}),o}var It=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);}},Lt=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`;}};const Rt={};function zt(e){return Rt}function Bt(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function Vt(e,t){return typeof t==`bigint`?t.toString():t}function Ht(e){return {get value(){{let t=e();return Object.defineProperty(this,`value`,{value:t}),t}}}}function Ut(e){return e==null}function Wt(e){let t=e.startsWith(`^`)?1:0,n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function Gt(e,t){let n=(e.toString().split(`.`)[1]||``).length,r=t.toString(),i=(r.split(`.`)[1]||``).length;if(i===0&&/\d?e-\d?/.test(r)){let e=r.match(/\d?e-(\d?)/);e?.[1]&&(i=Number.parseInt(e[1]));}let a=n>i?n:i;return Number.parseInt(e.toFixed(a).replace(`.`,``))%Number.parseInt(t.toFixed(a).replace(`.`,``))/10**a}const Kt=Symbol(`evaluating`);function S$1(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==Kt)return r===void 0&&(r=Kt,r=n()),r},set(n){Object.defineProperty(e,t,{value:n});},configurable:true});}function qt(e,t,n){Object.defineProperty(e,t,{value:n,writable:true,enumerable:true,configurable:true});}function Jt(...e){let t={};for(let n of e){let e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e);}return Object.defineProperties({},t)}function Yt(e){return JSON.stringify(e)}function Xt(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}const Zt=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function Qt(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}const $t=Ht(()=>{if(typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return false;try{return Function(``),true}catch{return false}});function en(e){if(Qt(e)===false)return false;let t=e.constructor;if(t===void 0||typeof t!=`function`)return true;let n=t.prototype;return !(Qt(n)===false||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===false)}function tn(e){return en(e)?{...e}:Array.isArray(e)?[...e]:e}const nn=new Set([`string`,`number`,`symbol`]);function rn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function an(e,t,n){let r=new e._zod.constr(t??e._zod.def);return (!t||n?.parent)&&(r._zod.parent=e),r}function C$1(e){let t=e;if(!t)return {};if(typeof t==`string`)return {error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message;}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function on(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}const sn={safeint:[-9007199254740991,2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function cn(e,t){let n=e._zod.def;return an(e,Jt(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r]);}return qt(this,`shape`,e),e},checks:[]}))}function ln(e,t){let n=e._zod.def;return an(e,Jt(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e];}return qt(this,`shape`,r),r},checks:[]}))}function un(e,t){if(!en(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0)throw Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");return an(e,Jt(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return qt(this,`shape`,n),n},checks:[]}))}function dn(e,t){if(!en(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return an(e,{...e._zod.def,get shape(){let n={...e._zod.def.shape,...t};return qt(this,`shape`,n),n},checks:e._zod.def.checks})}function fn(e,t){return an(e,Jt(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return qt(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:[]}))}function pn(e,t,n){return an(t,Jt(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t]);}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return qt(this,`shape`,i),i},checks:[]}))}function mn(e,t,n){return an(t,Jt(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}));}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return qt(this,`shape`,i),i},checks:[]}))}function hn(e,t=0){if(e.aborted===true)return true;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==true)return true;return false}function gn(e,t){return t.map(t=>{var n;return (n=t).path??(n.path=[]),t.path.unshift(e),t})}function _n(e){return typeof e==`string`?e:e?.message}function vn(e,t,n){let r={...e,path:e.path??[]};return e.message||(r.message=_n(e.inst?._zod.def?.error?.(e))??_n(t?.error?.(e))??_n(n.customError?.(e))??_n(n.localeError?.(e))??`Invalid input`),delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function yn(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function bn(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}const xn=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,`_zod`,{value:e._zod,enumerable:false}),Object.defineProperty(e,`issues`,{value:t,enumerable:false}),e.message=JSON.stringify(t,Vt,2),Object.defineProperty(e,`toString`,{value:()=>e.message,enumerable:false});},Sn=x$1(`$ZodError`,xn),Cn=x$1(`$ZodError`,xn,{Parent:Error});function wn(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return {formErrors:r,fieldErrors:n}}function Tn(e,t=e=>e.message){let n={_errors:[]},r=e=>{for(let i of e.issues)if(i.code===`invalid_union`&&i.errors.length)i.errors.map(e=>r({issues:e}));else if(i.code===`invalid_key`)r({issues:i.issues});else if(i.code===`invalid_element`)r({issues:i.issues});else if(i.path.length===0)n._errors.push(t(i));else {let e=n,r=0;for(;r<i.path.length;){let n=i.path[r];r===i.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++;}}};return r(e),n}const En=e=>(t,n,r,i)=>{let a=r?Object.assign(r,{async:false}):{async:false},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new It;if(o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>vn(e,a,zt())));throw Zt(t,i?.callee),t}return o.value},Dn=e=>async(t,n,r,i)=>{let a=r?Object.assign(r,{async:true}):{async:true},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>vn(e,a,zt())));throw Zt(t,i?.callee),t}return o.value},On=e=>(t,n,r)=>{let i=r?{...r,async:false}:{async:false},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new It;return a.issues.length?{success:false,error:new(e??Sn)(a.issues.map(e=>vn(e,i,zt())))}:{success:true,data:a.value}},kn=On(Cn),An=e=>async(t,n,r)=>{let i=r?Object.assign(r,{async:true}):{async:true},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:false,error:new e(a.issues.map(e=>vn(e,i,zt())))}:{success:true,data:a.value}},jn=An(Cn),Mn=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return En(e)(t,n,i)},Nn=e=>(t,n,r)=>En(e)(t,n,r),Pn=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return Dn(e)(t,n,i)},Fn=e=>async(t,n,r)=>Dn(e)(t,n,r),In=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return On(e)(t,n,i)},Ln=e=>(t,n,r)=>On(e)(t,n,r),Rn=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return An(e)(t,n,i)},zn=e=>async(t,n,r)=>An(e)(t,n,r),Bn=/^[cC][^\s-]{8,}$/,Vn=/^[0-9a-z]+$/,Hn=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Un=/^[0-9a-vA-V]{20}$/,Wn=/^[A-Za-z0-9]{27}$/,Gn=/^[a-zA-Z0-9_-]{21}$/,Kn=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,qn=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Jn=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Yn=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;function Xn(){return RegExp(`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,`u`)}const Zn=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Qn=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,$n=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,er=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,tr=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,nr=/^[A-Za-z0-9_-]*$/,rr=/^\+(?:[0-9]){6,14}[0-9]$/,ir=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`,ar=RegExp(`^${ir}$`);function or(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function sr(e){return RegExp(`^${or(e)}$`)}function cr(e){let t=or({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${ir}T(?:${r})$`)}const lr=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},ur=/^-?\d+$/,dr=/^-?\d+(?:\.\d+)?/,fr=/^(?:true|false)$/i,pr=/^null$/i,mr=/^[^A-Z]*$/,hr=/^[^a-z]*$/,w$1=x$1(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[]);}),gr={number:`number`,bigint:`bigint`,object:`date`},_r=x$1(`$ZodCheckLessThan`,(e,t)=>{w$1.init(e,t);let n=gr[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value<r&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value);}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:`too_big`,maximum:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort});};}),vr=x$1(`$ZodCheckGreaterThan`,(e,t)=>{w$1.init(e,t);let n=gr[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value);}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort});};}),yr=x$1(`$ZodCheckMultipleOf`,(e,t)=>{w$1.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value);}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):Gt(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort});};}),br=x$1(`$ZodCheckNumberFormat`,(e,t)=>{w$1.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=sn[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=ur);}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:false,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-9007199254740991,note:`Integers must be within the safe integer range.`,inst:e,origin:r,continue:!t.abort});return}}s<i&&o.issues.push({origin:`number`,input:s,code:`too_small`,minimum:i,inclusive:true,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inst:e});};}),xr=x$1(`$ZodCheckMaxLength`,(e,t)=>{var n;w$1.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return !Ut(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum);}),e._zod.check=n=>{let r=n.value;if(r.length<=t.maximum)return;let i=yn(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:true,input:r,inst:e,continue:!t.abort});};}),Sr=x$1(`$ZodCheckMinLength`,(e,t)=>{var n;w$1.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return !Ut(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum);}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=yn(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:true,input:r,inst:e,continue:!t.abort});};}),Cr=x$1(`$ZodCheckLengthEquals`,(e,t)=>{var n;w$1.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return !Ut(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length;}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=yn(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:true,exact:true,input:n.value,inst:e,continue:!t.abort});};}),wr=x$1(`$ZodCheckStringFormat`,(e,t)=>{var n,r;w$1.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern));}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort});}):(r=e._zod).check??(r.check=()=>{});}),Tr=x$1(`$ZodCheckRegex`,(e,t)=>{wr.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort});};}),Er=x$1(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=mr,wr.init(e,t);}),Dr=x$1(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=hr,wr.init(e,t);}),Or=x$1(`$ZodCheckIncludes`,(e,t)=>{w$1.init(e,t);let n=rn(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r);}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort});};}),kr=x$1(`$ZodCheckStartsWith`,(e,t)=>{w$1.init(e,t);let n=RegExp(`^${rn(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n);}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort});};}),Ar=x$1(`$ZodCheckEndsWith`,(e,t)=>{w$1.init(e,t);let n=RegExp(`.*${rn(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n);}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort});};}),jr=x$1(`$ZodCheckOverwrite`,(e,t)=>{w$1.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value);};});var Mr=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e);}indented(e){this.indent+=1,e(this),--this.indent;}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(`
|
|
18
18
|
`).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e);}compile(){let e=Function,t=this?.args,n=[...(this?.content??[``]).map(e=>` ${e}`)];return new e(...t,n.join(`
|
|
19
|
-
`))}};const
|
|
19
|
+
`))}};const Nr={major:4,minor:1,patch:13},T$1=x$1(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Nr;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse;});else {let t=(e,t,n)=>{let r=hn(e),i;for(let a of t){if(a._zod.def.when){if(!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===false)throw new It;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=hn(e,t));});else {if(e.issues.length===t)continue;r||=hn(e,t);}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(hn(n))return n.aborted=true,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===false)throw new It;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:true});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===false)throw new It;return o.then(e=>t(e,r,a))}return t(o,r,a)};}e[`~standard`]={validate:t=>{try{let n=kn(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return jn(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1};}),Pr=x$1(`$ZodString`,(e,t)=>{T$1.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??lr(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value);}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n};}),E$1=x$1(`$ZodStringFormat`,(e,t)=>{wr.init(e,t),Pr.init(e,t);}),Fr=x$1(`$ZodGUID`,(e,t)=>{t.pattern??=qn,E$1.init(e,t);}),Ir=x$1(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=Jn(e);}else t.pattern??=Jn();E$1.init(e,t);}),Lr=x$1(`$ZodEmail`,(e,t)=>{t.pattern??=Yn,E$1.init(e,t);}),Rr=x$1(`$ZodURL`,(e,t)=>{E$1.init(e,t),e._zod.check=n=>{try{let r=n.value.trim(),i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort});}};}),zr=x$1(`$ZodEmoji`,(e,t)=>{t.pattern??=Xn(),E$1.init(e,t);}),Br=x$1(`$ZodNanoID`,(e,t)=>{t.pattern??=Gn,E$1.init(e,t);}),Vr=x$1(`$ZodCUID`,(e,t)=>{t.pattern??=Bn,E$1.init(e,t);}),Hr=x$1(`$ZodCUID2`,(e,t)=>{t.pattern??=Vn,E$1.init(e,t);}),Ur=x$1(`$ZodULID`,(e,t)=>{t.pattern??=Hn,E$1.init(e,t);}),Wr=x$1(`$ZodXID`,(e,t)=>{t.pattern??=Un,E$1.init(e,t);}),Gr=x$1(`$ZodKSUID`,(e,t)=>{t.pattern??=Wn,E$1.init(e,t);}),Kr=x$1(`$ZodISODateTime`,(e,t)=>{t.pattern??=cr(t),E$1.init(e,t);}),qr=x$1(`$ZodISODate`,(e,t)=>{t.pattern??=ar,E$1.init(e,t);}),Jr=x$1(`$ZodISOTime`,(e,t)=>{t.pattern??=sr(t),E$1.init(e,t);}),Yr=x$1(`$ZodISODuration`,(e,t)=>{t.pattern??=Kn,E$1.init(e,t);}),Xr=x$1(`$ZodIPv4`,(e,t)=>{t.pattern??=Zn,E$1.init(e,t),e._zod.bag.format=`ipv4`;}),Zr=x$1(`$ZodIPv6`,(e,t)=>{t.pattern??=Qn,E$1.init(e,t),e._zod.bag.format=`ipv6`,e._zod.check=n=>{try{new URL(`http://[${n.value}]`);}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort});}};}),Qr=x$1(`$ZodCIDRv4`,(e,t)=>{t.pattern??=$n,E$1.init(e,t);}),$r=x$1(`$ZodCIDRv6`,(e,t)=>{t.pattern??=er,E$1.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`);}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort});}};});function ei(e){if(e===``)return true;if(e.length%4!=0)return false;try{return atob(e),true}catch{return false}}const ti=x$1(`$ZodBase64`,(e,t)=>{t.pattern??=tr,E$1.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{ei(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort});};});function ni(e){if(!nr.test(e))return false;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return ei(t.padEnd(Math.ceil(t.length/4)*4,`=`))}const ri=x$1(`$ZodBase64URL`,(e,t)=>{t.pattern??=nr,E$1.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{ni(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort});};}),ii=x$1(`$ZodE164`,(e,t)=>{t.pattern??=rr,E$1.init(e,t);});function ai(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return false;let[r]=n;if(!r)return false;let i=JSON.parse(atob(r));return !(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return false}}const oi=x$1(`$ZodJWT`,(e,t)=>{E$1.init(e,t),e._zod.check=n=>{ai(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort});};}),si=x$1(`$ZodNumber`,(e,t)=>{T$1.init(e,t),e._zod.pattern=e._zod.bag.pattern??dr,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value);}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:`Infinity`:void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n};}),ci=x$1(`$ZodNumberFormat`,(e,t)=>{br.init(e,t),si.init(e,t);}),li=x$1(`$ZodBoolean`,(e,t)=>{T$1.init(e,t),e._zod.pattern=fr,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value;}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n};}),ui=x$1(`$ZodNull`,(e,t)=>{T$1.init(e,t),e._zod.pattern=pr,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{let r=t.value;return r===null||t.issues.push({expected:`null`,code:`invalid_type`,input:r,inst:e}),t};}),di=x$1(`$ZodAny`,(e,t)=>{T$1.init(e,t),e._zod.parse=e=>e;}),fi=x$1(`$ZodUnknown`,(e,t)=>{T$1.init(e,t),e._zod.parse=e=>e;}),pi=x$1(`$ZodNever`,(e,t)=>{T$1.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t);}),mi=x$1(`$ZodVoid`,(e,t)=>{T$1.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`void`,code:`invalid_type`,input:r,inst:e}),t};}),hi=x$1(`$ZodDate`,(e,t)=>{T$1.init(e,t),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=new Date(n.value);}catch{}let i=n.value,a=i instanceof Date;return a&&!Number.isNaN(i.getTime())||n.issues.push({expected:`date`,code:`invalid_type`,input:i,...a?{received:`Invalid Date`}:{},inst:e}),n};});function gi(e,t,n){e.issues.length&&t.issues.push(...gn(n,e.issues)),t.value[n]=e.value;}const _i=x$1(`$ZodArray`,(e,t)=>{T$1.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;e<i.length;e++){let o=i[e],s=t.element._zod.run({value:o,issues:[]},r);s instanceof Promise?a.push(s.then(t=>gi(t,n,e))):gi(s,n,e);}return a.length?Promise.all(a).then(()=>n):n};});function vi(e,t,n,r){e.issues.length&&t.issues.push(...gn(n,e.issues)),e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value;}function yi(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=on(e.shape);return {...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function bi(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type;for(let i in t){if(s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>vi(e,n,i,t))):vi(a,n,i,t);}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}const xi=x$1(`$ZodObject`,(e,t)=>{if(T$1.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,`shape`,{get:()=>{let n={...e};return Object.defineProperty(t,`shape`,{value:n}),n}});}let n=Ht(()=>yi(t));S$1(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e);}}return n});let r=Qt,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e]._zod.run({value:s[e],issues:[]},o);n instanceof Promise?c.push(n.then(n=>vi(n,t,e,s))):vi(n,t,e,s);}return i?bi(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t};}),Si=x$1(`$ZodObjectJIT`,(e,t)=>{xi.init(e,t);let n=e._zod.parse,r=Ht(()=>yi(t)),i=e=>{let t=new Mr([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=Yt(e);return `shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let e of n.keys){let n=a[e],r=Yt(e);t.write(`const ${n} = ${i(e)};`),t.write(`
|
|
20
20
|
if (${n}.issues.length) {
|
|
21
21
|
payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
|
|
22
22
|
...iss,
|
|
@@ -33,22 +33,22 @@ function n(e){return e[0]??{}}function r(e){return Array.isArray(e)?e:e==null?[]
|
|
|
33
33
|
newResult[${r}] = ${n}.value;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
`);}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return (t,n)=>s(e,t,n)},a,o=Zt,s=!Lt.jitless,c=s&&Qt.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===false&&f.jitless!==true?(a||=i(t.shape),d=a(d,f),l?yi([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)};});function Si(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!mn(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>_n(e,r,Rt())))}),t)}const Ci=S$1(`$ZodUnion`,(e,t)=>{E$1.init(e,t),C$1(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),C$1(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),C$1(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),C$1(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>Ut(e.source)).join(`|`)})$`)}});let n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(i,a)=>{if(n)return r(i,a);let o=false,s=[];for(let e of t.options){let t=e._zod.run({value:i.value,issues:[]},a);if(t instanceof Promise)s.push(t),o=true;else {if(t.issues.length===0)return t;s.push(t);}}return o?Promise.all(s).then(t=>Si(t,i,e,a)):Si(s,i,e,a)};}),wi=S$1(`$ZodDiscriminatedUnion`,(e,t)=>{Ci.init(e,t);let n=e._zod.parse;C$1(e._zod,`propValues`,()=>{let e={};for(let n of t.options){let r=n._zod.propValues;if(!r||Object.keys(r).length===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let[t,n]of Object.entries(r)){e[t]||(e[t]=new Set);for(let r of n)e[t].add(r);}}return e});let r=Vt(()=>{let e=t.options,n=new Map;for(let r of e){let e=r._zod.propValues?.[t.discriminator];if(!e||e.size===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let t of e){if(n.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);n.set(t,r);}}return n});e._zod.parse=(i,a)=>{let o=i.value;if(!Zt(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=r.value.get(o?.[t.discriminator]);return s?s._zod.run(i,a):t.unionFallback?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,input:o,path:[t.discriminator],inst:e}),i)};}),Ti=S$1(`$ZodIntersection`,(e,t)=>{E$1.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>Di(e,t,n)):Di(e,i,a)};});function Ei(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return {valid:true,data:e};if($t(e)&&$t(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=Ei(e[n],t[n]);if(!r.valid)return {valid:false,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data;}return {valid:true,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return {valid:false,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=Ei(i,a);if(!o.valid)return {valid:false,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data);}return {valid:true,data:n}}return {valid:false,mergeErrorPath:[]}}function Di(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),mn(e))return e;let r=Ei(t.value,n.value);if(!r.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return e.value=r.data,e}const Oi=S$1(`$ZodRecord`,(e,t)=>{E$1.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!$t(i))return n.issues.push({expected:`record`,code:`invalid_type`,input:i,inst:e}),n;let a=[],o=t.keyType._zod.values;if(o){n.value={};let s=new Set;for(let e of o)if(typeof e==`string`||typeof e==`number`||typeof e==`symbol`){s.add(typeof e==`number`?e.toString():e);let o=t.valueType._zod.run({value:i[e],issues:[]},r);o instanceof Promise?a.push(o.then(t=>{t.issues.length&&n.issues.push(...hn(e,t.issues)),n.value[e]=t.value;})):(o.issues.length&&n.issues.push(...hn(e,o.issues)),n.value[e]=o.value);}let c;for(let e in i)s.has(e)||(c??=[],c.push(e));c&&c.length>0&&n.issues.push({code:`unrecognized_keys`,input:i,inst:e,keys:c});}else {n.value={};for(let o of Reflect.ownKeys(i)){if(o===`__proto__`)continue;let s=t.keyType._zod.run({value:o,issues:[]},r);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(s.issues.length){n.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>_n(e,r,Rt())),input:o,path:[o],inst:e}),n.value[s.value]=s.value;continue}let c=t.valueType._zod.run({value:i[o],issues:[]},r);c instanceof Promise?a.push(c.then(e=>{e.issues.length&&n.issues.push(...hn(o,e.issues)),n.value[s.value]=e.value;})):(c.issues.length&&n.issues.push(...hn(o,c.issues)),n.value[s.value]=c.value);}}return a.length?Promise.all(a).then(()=>n):n};}),ki=S$1(`$ZodEnum`,(e,t)=>{E$1.init(e,t);let n=zt(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>tn.has(typeof e)).map(e=>typeof e==`string`?nn(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t};}),Ai=S$1(`$ZodLiteral`,(e,t)=>{if(E$1.init(e,t),t.values.length===0)throw Error(`Cannot create literal schema with no valid values`);let n=new Set(t.values);e._zod.values=n,e._zod.pattern=RegExp(`^(${t.values.map(e=>typeof e==`string`?nn(e):e?nn(e.toString()):String(e)).join(`|`)})$`),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r};}),ji=S$1(`$ZodTransform`,(e,t)=>{E$1.init(e,t),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new It(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return (i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n));if(i instanceof Promise)throw new Ft;return n.value=i,n};});function Mi(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const Ni=S$1(`$ZodOptional`,(e,t)=>{E$1.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,C$1(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),C$1(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${Ut(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>Mi(t,e.value)):Mi(r,e.value)}return e.value===void 0?e:t.innerType._zod.run(e,n)};}),Pi=S$1(`$ZodNullable`,(e,t)=>{E$1.init(e,t),C$1(e._zod,`optin`,()=>t.innerType._zod.optin),C$1(e._zod,`optout`,()=>t.innerType._zod.optout),C$1(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${Ut(e.source)}|null)$`):void 0}),C$1(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n);}),Fi=S$1(`$ZodDefault`,(e,t)=>{E$1.init(e,t),e._zod.optin=`optional`,C$1(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>Ii(e,t)):Ii(r,t)};});function Ii(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const Li=S$1(`$ZodPrefault`,(e,t)=>{E$1.init(e,t),e._zod.optin=`optional`,C$1(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n));}),Ri=S$1(`$ZodNonOptional`,(e,t)=>{E$1.init(e,t),C$1(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>zi(t,e)):zi(i,e)};});function zi(e,t){return !e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}const Bi=S$1(`$ZodCatch`,(e,t)=>{E$1.init(e,t),C$1(e._zod,`optin`,()=>t.innerType._zod.optin),C$1(e._zod,`optout`,()=>t.innerType._zod.optout),C$1(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>_n(e,n,Rt()))},input:e.value}),e.issues=[]),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>_n(e,n,Rt()))},input:e.value}),e.issues=[]),e)};}),Vi=S$1(`$ZodPipe`,(e,t)=>{E$1.init(e,t),C$1(e._zod,`values`,()=>t.in._zod.values),C$1(e._zod,`optin`,()=>t.in._zod.optin),C$1(e._zod,`optout`,()=>t.out._zod.optout),C$1(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>Hi(e,t.in,n)):Hi(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>Hi(e,t.out,n)):Hi(r,t.out,n)};});function Hi(e,t,n){return e.issues.length?(e.aborted=true,e):t._zod.run({value:e.value,issues:e.issues},n)}const Ui=S$1(`$ZodReadonly`,(e,t)=>{E$1.init(e,t),C$1(e._zod,`propValues`,()=>t.innerType._zod.propValues),C$1(e._zod,`values`,()=>t.innerType._zod.values),C$1(e._zod,`optin`,()=>t.innerType?._zod?.optin),C$1(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(Wi):Wi(r)};});function Wi(e){return e.value=Object.freeze(e.value),e}const Gi=S$1(`$ZodLazy`,(e,t)=>{E$1.init(e,t),C$1(e._zod,`innerType`,()=>t.getter()),C$1(e._zod,`pattern`,()=>e._zod.innerType?._zod?.pattern),C$1(e._zod,`propValues`,()=>e._zod.innerType?._zod?.propValues),C$1(e._zod,`optin`,()=>e._zod.innerType?._zod?.optin??void 0),C$1(e._zod,`optout`,()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n);}),Ki=S$1(`$ZodCustom`,(e,t)=>{T$1.init(e,t),E$1.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>qi(t,n,r,e));qi(i,n,r,e);};});function qi(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(yn(e));}}var Ji,Yi=class{constructor(){this._map=new WeakMap,this._idmap=new Map;}add(e,...t){let n=t[0];if(this._map.set(e,n),n&&typeof n==`object`&&`id`in n){if(this._idmap.has(n.id))throw Error(`ID ${n.id} already exists in the registry`);this._idmap.set(n.id,e);}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function Xi(){return new Yi}(Ji=globalThis).__zod_globalRegistry??(Ji.__zod_globalRegistry=Xi());const Zi=globalThis.__zod_globalRegistry;function Qi(e,t){return new e({type:`string`,...w$1(t)})}function $i(e,t){return new e({type:`string`,coerce:true,...w$1(t)})}function ea(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:false,...w$1(t)})}function ta(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:false,...w$1(t)})}function na(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:false,...w$1(t)})}function ra(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:false,version:`v4`,...w$1(t)})}function ia(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:false,version:`v6`,...w$1(t)})}function aa(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:false,version:`v7`,...w$1(t)})}function oa(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:false,...w$1(t)})}function sa(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:false,...w$1(t)})}function ca(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:false,...w$1(t)})}function la(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:false,...w$1(t)})}function ua(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:false,...w$1(t)})}function da(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:false,...w$1(t)})}function fa(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:false,...w$1(t)})}function pa(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:false,...w$1(t)})}function ma(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:false,...w$1(t)})}function ha(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:false,...w$1(t)})}function ga(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:false,...w$1(t)})}function _a(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:false,...w$1(t)})}function va(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:false,...w$1(t)})}function ya(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:false,...w$1(t)})}function ba(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:false,...w$1(t)})}function xa(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:false,...w$1(t)})}function Sa(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:false,local:false,precision:null,...w$1(t)})}function Ca(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...w$1(t)})}function wa(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...w$1(t)})}function Ta(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...w$1(t)})}function Ea(e,t){return new e({type:`number`,checks:[],...w$1(t)})}function Da(e,t){return new e({type:`number`,coerce:true,checks:[],...w$1(t)})}function Oa(e,t){return new e({type:`number`,check:`number_format`,abort:false,format:`safeint`,...w$1(t)})}function ka(e,t){return new e({type:`boolean`,...w$1(t)})}function Aa(e,t){return new e({type:`boolean`,coerce:true,...w$1(t)})}function ja(e,t){return new e({type:`null`,...w$1(t)})}function Ma(e){return new e({type:`any`})}function Na(e){return new e({type:`unknown`})}function Pa(e,t){return new e({type:`never`,...w$1(t)})}function Fa(e,t){return new e({type:`void`,...w$1(t)})}function Ia(e,t){return new e({type:`date`,...w$1(t)})}function La(e,t){return new gr({check:`less_than`,...w$1(t),value:e,inclusive:false})}function Ra(e,t){return new gr({check:`less_than`,...w$1(t),value:e,inclusive:true})}function za(e,t){return new _r({check:`greater_than`,...w$1(t),value:e,inclusive:false})}function Ba(e,t){return new _r({check:`greater_than`,...w$1(t),value:e,inclusive:true})}function Va(e,t){return new vr({check:`multiple_of`,...w$1(t),value:e})}function Ha(e,t){return new br({check:`max_length`,...w$1(t),maximum:e})}function Ua(e,t){return new xr({check:`min_length`,...w$1(t),minimum:e})}function Wa(e,t){return new Sr({check:`length_equals`,...w$1(t),length:e})}function Ga(e,t){return new wr({check:`string_format`,format:`regex`,...w$1(t),pattern:e})}function Ka(e){return new Tr({check:`string_format`,format:`lowercase`,...w$1(e)})}function qa(e){return new Er({check:`string_format`,format:`uppercase`,...w$1(e)})}function Ja(e,t){return new Dr({check:`string_format`,format:`includes`,...w$1(t),includes:e})}function Ya(e,t){return new Or({check:`string_format`,format:`starts_with`,...w$1(t),prefix:e})}function Xa(e,t){return new kr({check:`string_format`,format:`ends_with`,...w$1(t),suffix:e})}function Za(e){return new Ar({check:`overwrite`,tx:e})}function Qa(e){return Za(t=>t.normalize(e))}function $a(){return Za(e=>e.trim())}function eo(){return Za(e=>e.toLowerCase())}function to(){return Za(e=>e.toUpperCase())}function no(){return Za(e=>Yt(e))}function ro(e,t,n){return new e({type:`array`,element:t,...w$1(n)})}function io(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...w$1(n)})}function ao(e){let t=oo(n=>(n.addIssue=e=>{if(typeof e==`string`)n.issues.push(yn(e,n.value,t._zod.def));else {let r=e;r.fatal&&(r.continue=false),r.code??=`custom`,r.input??=n.value,r.inst??=t,r.continue??=!t._zod.def.abort,n.issues.push(yn(r));}},e(n.value,n)));return t}function oo(e,t){let n=new T$1({check:`custom`,...w$1(t)});return n._zod.check=e,n}const so=S$1(`ZodISODateTime`,(e,t)=>{Gr.init(e,t),j$1.init(e,t);});function O$1(e){return Sa(so,e)}const co=S$1(`ZodISODate`,(e,t)=>{Kr.init(e,t),j$1.init(e,t);});function lo(e){return Ca(co,e)}const uo=S$1(`ZodISOTime`,(e,t)=>{qr.init(e,t),j$1.init(e,t);});function fo(e){return wa(uo,e)}const po=S$1(`ZodISODuration`,(e,t)=>{Jr.init(e,t),j$1.init(e,t);});function mo(e){return Ta(po,e)}const ho=(e,t)=>{xn.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>wn(e,t)},flatten:{value:t=>Cn(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,Bt,2);}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,Bt,2);}},isEmpty:{get(){return e.issues.length===0}}});};S$1(`ZodError`,ho);const go=S$1(`ZodError`,ho,{Parent:Error}),_o=Tn(go),vo=En(go),yo=Dn(go),bo=kn(go),xo=jn(go),So=Mn(go),Co=Nn(go),wo=Pn(go),To=Fn(go),Eo=In(go),Do=Ln(go),Oo=Rn(go),k$1=S$1(`ZodType`,(e,t)=>(E$1.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,`_def`,{value:t}),e.check=(...n)=>e.clone(qt(t,{checks:[...t.checks??[],...n.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]})),e.clone=(t,n)=>rn(e,t,n),e.brand=()=>e,e.register=((t,n)=>(t.add(e,n),e)),e.parse=(t,n)=>_o(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>yo(e,t,n),e.parseAsync=async(t,n)=>vo(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>bo(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>xo(e,t,n),e.decode=(t,n)=>So(e,t,n),e.encodeAsync=async(t,n)=>Co(e,t,n),e.decodeAsync=async(t,n)=>wo(e,t,n),e.safeEncode=(t,n)=>To(e,t,n),e.safeDecode=(t,n)=>Eo(e,t,n),e.safeEncodeAsync=async(t,n)=>Do(e,t,n),e.safeDecodeAsync=async(t,n)=>Oo(e,t,n),e.refine=(t,n)=>e.check(qs(t,n)),e.superRefine=t=>e.check(Js(t)),e.overwrite=t=>e.check(Za(t)),e.optional=()=>ks(e),e.nullable=()=>js(e),e.nullish=()=>ks(js(e)),e.nonoptional=t=>Ls(e,t),e.array=()=>F$1(e),e.or=t=>gs([e,t]),e.and=t=>bs(e,t),e.transform=t=>Vs(e,Ds(t)),e.default=t=>Ns(e,t),e.prefault=t=>Fs(e,t),e.catch=t=>zs(e,t),e.pipe=t=>Vs(e,t),e.readonly=()=>Us(e),e.describe=t=>{let n=e.clone();return Zi.add(n,{description:t}),n},Object.defineProperty(e,`description`,{get(){return Zi.get(e)?.description},configurable:true}),e.meta=(...t)=>{if(t.length===0)return Zi.get(e);let n=e.clone();return Zi.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),ko=S$1(`_ZodString`,(e,t)=>{Nr.init(e,t),k$1.init(e,t);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...t)=>e.check(Ga(...t)),e.includes=(...t)=>e.check(Ja(...t)),e.startsWith=(...t)=>e.check(Ya(...t)),e.endsWith=(...t)=>e.check(Xa(...t)),e.min=(...t)=>e.check(Ua(...t)),e.max=(...t)=>e.check(Ha(...t)),e.length=(...t)=>e.check(Wa(...t)),e.nonempty=(...t)=>e.check(Ua(1,...t)),e.lowercase=t=>e.check(Ka(t)),e.uppercase=t=>e.check(qa(t)),e.trim=()=>e.check($a()),e.normalize=(...t)=>e.check(Qa(...t)),e.toLowerCase=()=>e.check(eo()),e.toUpperCase=()=>e.check(to()),e.slugify=()=>e.check(no());}),Ao=S$1(`ZodString`,(e,t)=>{Nr.init(e,t),ko.init(e,t),e.email=t=>e.check(ea(jo,t)),e.url=t=>e.check(oa(Fo,t)),e.jwt=t=>e.check(xa(Zo,t)),e.emoji=t=>e.check(sa(Lo,t)),e.guid=t=>e.check(ta(No,t)),e.uuid=t=>e.check(na(Po,t)),e.uuidv4=t=>e.check(ra(Po,t)),e.uuidv6=t=>e.check(ia(Po,t)),e.uuidv7=t=>e.check(aa(Po,t)),e.nanoid=t=>e.check(ca(Ro,t)),e.guid=t=>e.check(ta(No,t)),e.cuid=t=>e.check(la(zo,t)),e.cuid2=t=>e.check(ua(Bo,t)),e.ulid=t=>e.check(da(Vo,t)),e.base64=t=>e.check(va(Jo,t)),e.base64url=t=>e.check(ya(Yo,t)),e.xid=t=>e.check(fa(Ho,t)),e.ksuid=t=>e.check(pa(Uo,t)),e.ipv4=t=>e.check(ma(Wo,t)),e.ipv6=t=>e.check(ha(Go,t)),e.cidrv4=t=>e.check(ga(Ko,t)),e.cidrv6=t=>e.check(_a(qo,t)),e.e164=t=>e.check(ba(Xo,t)),e.datetime=t=>e.check(O$1(t)),e.date=t=>e.check(lo(t)),e.time=t=>e.check(fo(t)),e.duration=t=>e.check(mo(t));});function A$1(e){return Qi(Ao,e)}const j$1=S$1(`ZodStringFormat`,(e,t)=>{D$1.init(e,t),ko.init(e,t);}),jo=S$1(`ZodEmail`,(e,t)=>{Ir.init(e,t),j$1.init(e,t);});function Mo(e){return ea(jo,e)}const No=S$1(`ZodGUID`,(e,t)=>{Pr.init(e,t),j$1.init(e,t);}),Po=S$1(`ZodUUID`,(e,t)=>{Fr.init(e,t),j$1.init(e,t);}),Fo=S$1(`ZodURL`,(e,t)=>{Lr.init(e,t),j$1.init(e,t);});function Io(e){return oa(Fo,e)}const Lo=S$1(`ZodEmoji`,(e,t)=>{Rr.init(e,t),j$1.init(e,t);}),Ro=S$1(`ZodNanoID`,(e,t)=>{zr.init(e,t),j$1.init(e,t);}),zo=S$1(`ZodCUID`,(e,t)=>{Br.init(e,t),j$1.init(e,t);}),Bo=S$1(`ZodCUID2`,(e,t)=>{Vr.init(e,t),j$1.init(e,t);}),Vo=S$1(`ZodULID`,(e,t)=>{Hr.init(e,t),j$1.init(e,t);}),Ho=S$1(`ZodXID`,(e,t)=>{Ur.init(e,t),j$1.init(e,t);}),Uo=S$1(`ZodKSUID`,(e,t)=>{Wr.init(e,t),j$1.init(e,t);}),Wo=S$1(`ZodIPv4`,(e,t)=>{Yr.init(e,t),j$1.init(e,t);}),Go=S$1(`ZodIPv6`,(e,t)=>{Xr.init(e,t),j$1.init(e,t);}),Ko=S$1(`ZodCIDRv4`,(e,t)=>{Zr.init(e,t),j$1.init(e,t);}),qo=S$1(`ZodCIDRv6`,(e,t)=>{Qr.init(e,t),j$1.init(e,t);}),Jo=S$1(`ZodBase64`,(e,t)=>{ei.init(e,t),j$1.init(e,t);}),Yo=S$1(`ZodBase64URL`,(e,t)=>{ni.init(e,t),j$1.init(e,t);}),Xo=S$1(`ZodE164`,(e,t)=>{ri.init(e,t),j$1.init(e,t);}),Zo=S$1(`ZodJWT`,(e,t)=>{ai.init(e,t),j$1.init(e,t);}),Qo=S$1(`ZodNumber`,(e,t)=>{oi.init(e,t),k$1.init(e,t),e.gt=(t,n)=>e.check(za(t,n)),e.gte=(t,n)=>e.check(Ba(t,n)),e.min=(t,n)=>e.check(Ba(t,n)),e.lt=(t,n)=>e.check(La(t,n)),e.lte=(t,n)=>e.check(Ra(t,n)),e.max=(t,n)=>e.check(Ra(t,n)),e.int=t=>e.check(N$1(t)),e.safe=t=>e.check(N$1(t)),e.positive=t=>e.check(za(0,t)),e.nonnegative=t=>e.check(Ba(0,t)),e.negative=t=>e.check(La(0,t)),e.nonpositive=t=>e.check(Ra(0,t)),e.multipleOf=(t,n)=>e.check(Va(t,n)),e.step=(t,n)=>e.check(Va(t,n)),e.finite=()=>e;let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=true,e.format=n.format??null;});function M$1(e){return Ea(Qo,e)}const $o=S$1(`ZodNumberFormat`,(e,t)=>{si.init(e,t),Qo.init(e,t);});function N$1(e){return Oa($o,e)}const es=S$1(`ZodBoolean`,(e,t)=>{ci.init(e,t),k$1.init(e,t);});function P$1(e){return ka(es,e)}const ts=S$1(`ZodNull`,(e,t)=>{li.init(e,t),k$1.init(e,t);});function ns(e){return ja(ts,e)}const rs=S$1(`ZodAny`,(e,t)=>{ui.init(e,t),k$1.init(e,t);});function is(){return Ma(rs)}const as=S$1(`ZodUnknown`,(e,t)=>{di.init(e,t),k$1.init(e,t);});function os(){return Na(as)}const ss=S$1(`ZodNever`,(e,t)=>{fi.init(e,t),k$1.init(e,t);});function cs(e){return Pa(ss,e)}const ls=S$1(`ZodVoid`,(e,t)=>{pi.init(e,t),k$1.init(e,t);});function us(e){return Fa(ls,e)}const ds=S$1(`ZodDate`,(e,t)=>{mi.init(e,t),k$1.init(e,t),e.min=(t,n)=>e.check(Ba(t,n)),e.max=(t,n)=>e.check(Ra(t,n));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null;});function fs(e){return Ia(ds,e)}const ps=S$1(`ZodArray`,(e,t)=>{gi.init(e,t),k$1.init(e,t),e.element=t.element,e.min=(t,n)=>e.check(Ua(t,n)),e.nonempty=t=>e.check(Ua(1,t)),e.max=(t,n)=>e.check(Ha(t,n)),e.length=(t,n)=>e.check(Wa(t,n)),e.unwrap=()=>e.element;});function F$1(e,t){return ro(ps,e,t)}const ms=S$1(`ZodObject`,(e,t)=>{xi.init(e,t),k$1.init(e,t),C$1(e,`shape`,()=>t.shape),e.keyof=()=>L$1(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:os()}),e.loose=()=>e.clone({...e._zod.def,catchall:os()}),e.strict=()=>e.clone({...e._zod.def,catchall:cs()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>ln(e,t),e.safeExtend=t=>un(e,t),e.merge=t=>dn(e,t),e.pick=t=>sn(e,t),e.omit=t=>cn(e,t),e.partial=(...t)=>fn(Os,e,t[0]),e.required=(...t)=>pn(Is,e,t[0]);});function I$1(e,t){return new ms({type:`object`,shape:e??{},...w$1(t)})}const hs=S$1(`ZodUnion`,(e,t)=>{Ci.init(e,t),k$1.init(e,t),e.options=t.options;});function gs(e,t){return new hs({type:`union`,options:e,...w$1(t)})}const _s=S$1(`ZodDiscriminatedUnion`,(e,t)=>{hs.init(e,t),wi.init(e,t);});function vs(e,t,n){return new _s({type:`union`,options:t,discriminator:e,...w$1(n)})}const ys=S$1(`ZodIntersection`,(e,t)=>{Ti.init(e,t),k$1.init(e,t);});function bs(e,t){return new ys({type:`intersection`,left:e,right:t})}const xs=S$1(`ZodRecord`,(e,t)=>{Oi.init(e,t),k$1.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType;});function Ss(e,t,n){return new xs({type:`record`,keyType:e,valueType:t,...w$1(n)})}const Cs=S$1(`ZodEnum`,(e,t)=>{ki.init(e,t),k$1.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new Cs({...t,checks:[],...w$1(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new Cs({...t,checks:[],...w$1(r),entries:i})};});function L$1(e,t){return new Cs({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...w$1(t)})}const ws=S$1(`ZodLiteral`,(e,t)=>{Ai.init(e,t),k$1.init(e,t),e.values=new Set(t.values),Object.defineProperty(e,`value`,{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}});});function Ts(e,t){return new ws({type:`literal`,values:Array.isArray(e)?e:[e],...w$1(t)})}const Es=S$1(`ZodTransform`,(e,t)=>{ji.init(e,t),k$1.init(e,t),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new It(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(yn(r,n.value,t));else {let t=r;t.fatal&&(t.continue=false),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(yn(t));}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)};});function Ds(e){return new Es({type:`transform`,transform:e})}const Os=S$1(`ZodOptional`,(e,t)=>{Ni.init(e,t),k$1.init(e,t),e.unwrap=()=>e._zod.def.innerType;});function ks(e){return new Os({type:`optional`,innerType:e})}const As=S$1(`ZodNullable`,(e,t)=>{Pi.init(e,t),k$1.init(e,t),e.unwrap=()=>e._zod.def.innerType;});function js(e){return new As({type:`nullable`,innerType:e})}const Ms=S$1(`ZodDefault`,(e,t)=>{Fi.init(e,t),k$1.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap;});function Ns(e,t){return new Ms({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():en(t)}})}const Ps=S$1(`ZodPrefault`,(e,t)=>{Li.init(e,t),k$1.init(e,t),e.unwrap=()=>e._zod.def.innerType;});function Fs(e,t){return new Ps({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():en(t)}})}const Is=S$1(`ZodNonOptional`,(e,t)=>{Ri.init(e,t),k$1.init(e,t),e.unwrap=()=>e._zod.def.innerType;});function Ls(e,t){return new Is({type:`nonoptional`,innerType:e,...w$1(t)})}const Rs=S$1(`ZodCatch`,(e,t)=>{Bi.init(e,t),k$1.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap;});function zs(e,t){return new Rs({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}const Bs=S$1(`ZodPipe`,(e,t)=>{Vi.init(e,t),k$1.init(e,t),e.in=t.in,e.out=t.out;});function Vs(e,t){return new Bs({type:`pipe`,in:e,out:t})}const Hs=S$1(`ZodReadonly`,(e,t)=>{Ui.init(e,t),k$1.init(e,t),e.unwrap=()=>e._zod.def.innerType;});function Us(e){return new Hs({type:`readonly`,innerType:e})}const Ws=S$1(`ZodLazy`,(e,t)=>{Gi.init(e,t),k$1.init(e,t),e.unwrap=()=>e._zod.def.getter();});function Gs(e){return new Ws({type:`lazy`,getter:e})}const Ks=S$1(`ZodCustom`,(e,t)=>{Ki.init(e,t),k$1.init(e,t);});function qs(e,t={}){return io(Ks,e,t)}function Js(e){return ao(e)}function Ys(e,t){return Vs(Ds(e),t)}function Xs(e){return $i(Ao,e)}function R$1(e){return Da(Qo,e)}function Zs(e){return Aa(es,e)}const Qs=L$1([`PENDING`,`APPROVED`,`REJECTED`]).meta({description:`Approval status. PENDING: awaiting review, APPROVED: approved for operation, REJECTED: rejected and cannot operate`}),ec=`AED.ALL.AMD.ANG.AOA.ARS.AUD.AWG.AZN.BAM.BBD.BDT.BGN.BHD.BIF.BMD.BND.BOB.BRL.BSD.BTN.BWP.BZD.CAD.CHF.CLP.CNY.COP.CRC.CVE.CZK.DJF.DKK.DOP.DZD.EGP.ERN.ETB.EUR.FJD.FKP.GBP.GEL.GHS.GIP.GMD.GNF.GTQ.GYD.HKD.HNL.HUF.IDR.ILS.INR.ISK.JMD.JOD.JPY.KES.KGS.KHR.KMF.KRW.KWD.KYD.KZT.LAK.LBP.LKR.LRD.LSL.LYD.MAD.MDL.MGA.MKD.MNT.MOP.MUR.MVR.MWK.MXN.MYR.NAD.NGN.NIO.NOK.NPR.NZD.OMR.PAB.PEN.PGK.PHP.PKR.PLN.PYG.QAR.RON.RSD.RWF.SAR.SBD.SCR.SEK.SGD.SHP.SLE.SRD.SVC.SZL.THB.TJS.TMT.TND.TOP.TRY.TTD.TWD.TZS.UAH.UGX.USD.UYU.UZS.VND.VUV.WST.XAF.XCD.XOF.XPF.ZAR.ZMW.ZWL`.split(`.`),z$1=L$1(ec).meta({examples:[`AUD`],description:`Three-letter ISO 4217 currency code for transactions and payouts`}),tc=L$1([{category:`Day Party`,group:`Event Type`,priority:`core`,notes:`Daytime or afternoon-focused event, often starting before evening and ending earlier than club nights; common signals include "day party", "day sesh", "Sunday session", "afternoon", "sunset", "courtyard", "rooftop", "poolside" or "open air".`},{category:`Festival`,group:`Event Type`,priority:`core`,notes:`Large-scale event with multiple artists, stages, areas, brands or sessions; may run all day, across multiple days, or as a major ticketed programme; match terms like "festival", "lineup", "multi-stage", "weekender", "one-day festival" or "camping".`},{category:`Afterparty`,group:`Event Type`,priority:`high`,notes:`Post-main-event continuation, usually late-night or early-morning, often tied to a festival, concert, gig, show, launch or headline act; match "official afterparty", "after party", "kick-ons", "continue the night" or "late-night session".`},{category:`Boat Party`,group:`Event Type`,priority:`high`,notes:`Event held on a boat, yacht, harbour cruise or floating venue; strong signals include "boat party", "cruise", "harbour", "on the water", "boarding time", "sailing", "wharf", "dock" or "yacht".`},{category:`Pool Party`,group:`Event Type`,priority:`high`,notes:`Party centred around a pool, resort, hotel or swim-friendly venue; usually daytime or summer-focused; match "pool party", "poolside", "swimwear", "cabana", "resort", "hotel pool", "daybed" or "summer session".`},{category:`Live Performance`,group:`Event Type`,priority:`high`,notes:`Event includes live acts, bands, vocalists, instrumentalists or live electronic performance rather than only DJ sets; match "live", "live set", "performing live", "band", "vocalist", "singer", "instrumental", "live show" or "concert".`},{category:`Warehouse`,group:`Venue Type`,priority:`core`,notes:`Industrial, raw or repurposed warehouse-style venue; often underground, large-room, concrete, late-night or rave-oriented; match "warehouse", "industrial space", "secret warehouse", "inner west warehouse", "factory", "converted space" or "underground location".`},{category:`Open Air`,group:`Venue Type`,priority:`core`,notes:`Outdoor event in an uncovered or partly outdoor setting; match "open air", "outdoor", "under the sky", "courtyard", "garden", "terrace", "park", "field", "amphitheatre" or "sunset session".`},{category:`Rooftop`,group:`Venue Type`,priority:`high`,notes:`Event held on a rooftop, terrace or elevated city-view venue; often summer, sunset, cocktail or skyline-focused; match "rooftop", "terrace", "skyline", "city views", "above the city", "sunset rooftop" or "open-air rooftop".`},{category:`Beach Party`,group:`Venue Type`,priority:`high`,notes:`Coastal, beachfront or seaside event; may be on the sand, near the beach, at a beach club or coastal venue; match "beach party", "beachfront", "seaside", "coastal", "on the sand", "ocean views" or "beach club".`},{category:`Secret Location`,group:`Venue Type`,priority:`high`,notes:`Venue is hidden, TBA, revealed later or sent only to ticket holders; common in underground, warehouse and rave events; match "secret location", "TBA", "location revealed", "address released", "SMS location" or "ticket holders only".`},{category:`DIY`,group:`Venue Type`,priority:`medium`,notes:`Independent, self-organised or non-traditional event, often in unconventional spaces, bush settings or community-run venues; match "DIY", "bush doof", "renegade", "self-organised", "community-run", "off-grid" or "independent party".`},{category:`Basement`,group:`Venue Type`,priority:`medium`,notes:`Small, low-ceiling, underground or downstairs venue; usually intimate, dark, club-focused or late-night; match "basement", "cellar", "downstairs", "underground room", "low ceiling" or "intimate club room".`},{category:`Free Entry`,group:`Entry`,priority:`core`,notes:`No ticket or cover charge required to attend; match "free entry", "free event", "no cover", "free before", "RSVP free", "complimentary entry" or "walk-ins welcome". Do not confuse with free RSVP if paid entry may still apply.`},{category:`Donation`,group:`Entry`,priority:`medium`,notes:`Entry is by donation, pay-what-you-can or voluntary contribution rather than a fixed ticket price; match "donation", "pay what you want", "PWYW", "suggested donation", "gold coin" or "contribute at the door".`},{category:`Vinyl Only`,group:`Music`,priority:`high`,notes:`DJs perform using vinyl records only, usually signalling collector, selector, audiophile or purist culture; match "vinyl only", "all vinyl", "records only", "turntables", "wax", "crate diggers" or "strictly vinyl".`},{category:`Silent Disco`,group:`Music`,priority:`medium`,notes:`Attendees listen through wireless headphones rather than a traditional speaker system; often multiple channels or DJs; match "silent disco", "headphone party", "wireless headphones", "choose your channel" or "multi-channel headphones".`},{category:`Underground`,group:`Vibe`,priority:`high`,notes:`Non-mainstream, independent or subcultural event with raw, niche, alternative or anti-commercial positioning; match "underground", "leftfield", "subculture", "no frills", "raw", "for the heads", "heads only" or "off the beaten path".`},{category:`Intimate`,group:`Vibe`,priority:`high`,notes:`Small-capacity, close-quarters or personal event; often limited tickets, small room, listening bar or community feel; match "intimate", "limited capacity", "small room", "close and personal", "cosy", "private" or "exclusive".`},{category:`Queer Friendly`,group:`Vibe`,priority:`high`,notes:`Event explicitly welcomes, centres or is safe for LGBTQI+ communities; match "queer", "LGBTQI+", "LGBTQIA+", "gay", "trans inclusive", "rainbow community", "queer-friendly" or "queer party". Use when identity/community focus is explicit.`},{category:`FLINTA`,group:`Vibe`,priority:`high`,notes:`Event explicitly centres or welcomes women, lesbians, intersex, non-binary, trans and agender people; match "FLINTA", "FLINTA*", "women and gender diverse", "trans and non-binary", "femme-led" or "gender-diverse community".`},{category:`Safe Space`,group:`Vibe`,priority:`high`,notes:`Event emphasises inclusion, consent, harm minimisation, anti-harassment or community safety policies; match "safe space", "safer space", "consent policy", "zero tolerance", "harm reduction", "inclusive space" or "respectful dancefloor".`},{category:`No Photos`,group:`Vibe`,priority:`medium`,notes:`Event discourages or bans photography/video to protect privacy, immersion or dancefloor culture; match "no photos", "no filming", "no cameras", "phone stickers", "camera policy", "be present" or "respect the dancefloor".`},{category:`Rave`,group:`Vibe`,priority:`high`,notes:`High-energy dance event rooted in rave culture; often late-night, warehouse, underground, fast, heavy or euphoric; match "rave", "all-night", "warehouse rave", "doof", "hard dance", "strobe", "lasers" or "rave culture".`},{category:`BYO`,group:`Amenities`,priority:`core`,notes:`Attendees can or must bring their own alcohol, drinks or supplies; match "BYO", "bring your own", "bring drinks", "no bar", "esky", "cooler", "bottle shop run" or "self-catered drinks".`},{category:`Cash Only`,group:`Amenities`,priority:`medium`,notes:`Venue, bar, door or stall accepts cash but not card payments; match "cash only", "bring cash", "no EFTPOS", "no card", "cash at the door" or "ATM nearby".`},{category:`Card Only`,group:`Amenities`,priority:`medium`,notes:`Venue, bar, door or stall is cashless and accepts card or digital payments only; match "card only", "cashless", "no cash", "tap only", "EFTPOS only" or "card payments only".`},{category:`Food Available`,group:`Amenities`,priority:`medium`,notes:`Food is available at or near the event through vendors, kitchen, food trucks or venue menu; match "food available", "food trucks", "kitchen open", "snacks", "menu", "vendors", "street food" or "dinner available".`},{category:`Dress Code`,group:`Other`,priority:`high`,notes:`Event requires, encourages or enforces specific clothing, theme, footwear or presentation; match "dress code", "strict dress code", "theme", "costume", "black tie", "no thongs", "collared shirts", "dress to impress" or "entry may be refused".`}].map(e=>e.category)),nc=F$1(tc).max(10).optional().meta({description:`Event characteristics like vibe, venue type, and amenities (up to 10 categories)`,examples:[[`Day Party`,`Open Air`,`Free Entry`]]}),rc=L$1([{genre:`House`,category:`House`,priority:`core`,notes:`Broad 4/4 dance music rooted in Chicago house; warm grooves, steady kicks, club-focused; use when event says house music generally without a clear subgenre.`},{genre:`Deep House`,category:`House`,priority:`core`,notes:`Smooth, warm, soulful or jazzy house; deeper basslines, softer drums, slower club tempo; often described as intimate, sophisticated, sunset, lounge or underground.`},{genre:`Tech House`,category:`House`,priority:`core`,notes:`Groovy house with techno-influenced drums, rolling basslines, minimal vocals and big club energy; common in Ibiza, festivals, commercial underground and peak-time club events.`},{genre:`Progressive House`,category:`House`,priority:`core`,notes:`Melodic house with long builds, emotional breakdowns and gradual progression; often associated with mainstage, euphoric, cinematic or journey-style sets.`},{genre:`Minimal House`,category:`House`,priority:`core`,notes:`Stripped-back, repetitive house with sparse percussion, subtle grooves and restrained arrangements; common in European club, afterhours and vinyl-focused events.`},{genre:`Romanian Minimal`,category:`House`,priority:`core`,notes:`Hypnotic, micro-detailed minimal house/techno linked to Romania; long-form grooves, subtle swing, deep rolling bass, afterhours, vinyl, underground and "ro-minimal" wording.`},{genre:`Afro House`,category:`House`,priority:`core`,notes:`House music with African percussion, polyrhythms, chants, soulful vocals and warm melodic grooves; often spiritual, organic, sunset, beach club or global house oriented.`},{genre:`Afro Tech`,category:`House`,priority:`core`,notes:`Darker, tougher and more electronic Afro House; heavier drums, driving bass, tribal percussion and peak-time club energy; sits between Afro House and melodic techno.`},{genre:`Acid House`,category:`House`,priority:`high`,notes:`House built around squelchy Roland TB-303 acid basslines; raw, psychedelic, ravey or retro Chicago/UK warehouse references.`},{genre:`Funky House`,category:`House`,priority:`high`,notes:`Upbeat, feel-good house with funk, disco samples, bass guitar grooves, bright hooks and party-friendly energy; often vocal, summery or nostalgic.`},{genre:`Jackin House`,category:`House`,priority:`high`,notes:`Bouncy Chicago-style house with shuffled drums, chunky grooves, cut-up samples and playful energy; often raw, funky, loop-based and dancefloor-driven.`},{genre:`Soulful House`,category:`House`,priority:`medium`,notes:`Vocal-led house with gospel, soul and R&B influence; rich chords, emotional vocals, uplifting messages and warm classic house feel.`},{genre:`Melodic House`,category:`House`,priority:`high`,notes:`Modern melodic, emotional house with polished production, arpeggios, atmospheric pads and deep/progressive feel; often Anjunadeep, sunset, rooftop or organic club energy.`},{genre:`Latin House`,category:`House`,priority:`medium`,notes:`House with Latin percussion, Spanish or Portuguese vocals, salsa, samba, reggaeton or Afro-Latin rhythmic influence; upbeat, percussive and dancefloor-friendly.`},{genre:`Techno`,category:`Techno`,priority:`core`,notes:`Broad 4/4 electronic club music rooted in Detroit and Berlin; repetitive, mechanical, driving, hypnotic or warehouse-focused; use when techno is named without a clearer subtype.`},{genre:`Melodic Techno`,category:`Techno`,priority:`core`,notes:`Emotional, cinematic techno with big synth melodies, arpeggios, dark builds and dramatic drops; often Afterlife, Tale Of Us, lasers, visuals or large-room events.`},{genre:`Hard Techno`,category:`Techno`,priority:`core`,notes:`Fast, aggressive techno with pounding kicks, distorted drums, high energy and rave/warehouse intensity; often 145+ BPM and associated with modern hard rave trends.`},{genre:`Industrial Techno`,category:`Techno`,priority:`high`,notes:`Dark, harsh techno with distorted kicks, metallic percussion, noise textures and warehouse or dystopian aesthetics; more abrasive than standard techno.`},{genre:`Minimal Techno`,category:`Techno`,priority:`high`,notes:`Stripped-back techno built from repetition, subtle changes, sparse drums and hypnotic grooves; less melodic and more mechanical than minimal house.`},{genre:`Detroit Techno`,category:`Techno`,priority:`medium`,notes:`Techno rooted in Detroit's futuristic, soulful and machine-funk sound; classic, purist, historical or old-school techno references.`},{genre:`Dub Techno`,category:`Techno`,priority:`medium`,notes:`Deep techno with dub chords, echo, reverb, spacious atmospheres and slow hypnotic movement; often smoky, deep, aquatic or meditative.`},{genre:`Acid Techno`,category:`Techno`,priority:`medium`,notes:`Techno driven by squelchy 303 acid lines, looping percussion and rave energy; harder and more driving than acid house.`},{genre:`Hypnotic Techno`,category:`Techno`,priority:`medium`,notes:`Repetitive, deep, rolling techno designed for trance-like immersion; subtle loops, long blends, minimal melody and underground warehouse feel.`},{genre:`Drum & Bass`,category:`Bass`,priority:`core`,notes:`Fast breakbeat music around 160-180 BPM with heavy basslines and chopped drums; use for D&B, drum and bass, rollers, jump-up or bass-heavy rave events.`},{genre:`Jungle`,category:`Bass`,priority:`core`,notes:`Breakbeat-heavy precursor to D&B with chopped amen breaks, reggae/dub samples, ragga vocals and 90s UK rave energy.`},{genre:`Dubstep`,category:`Bass`,priority:`core`,notes:`Bass-heavy UK-origin genre around 140 BPM; half-time drums, sub-bass, wobble bass, dark atmospheres or aggressive drops.`},{genre:`Bass House`,category:`Bass`,priority:`core`,notes:`House-tempo club music with heavy bass drops, punchy drums and EDM/festival energy; blends house groove with dubstep or bass music sound design.`},{genre:`Breakbeat`,category:`Bass`,priority:`core`,notes:`Electronic music built on syncopated broken drum patterns instead of straight 4/4; often rave, electro, UK club, breaks or old-school references.`},{genre:`UK Garage`,category:`Bass`,priority:`core`,notes:`Skippy UK club music with swung 2-step rhythms, chopped vocals, sub-bass and soulful/R&B influence; often "UKG", "garage", "2-step" or "speed garage".`},{genre:`Bassline`,category:`Bass`,priority:`high`,notes:`UK 4x4 garage-derived bass music with warping basslines, fast club energy and playful vocal chops; often northern UK or speed garage adjacent.`},{genre:`Grime`,category:`Bass`,priority:`high`,notes:`UK rap and electronic bass hybrid around 140 BPM; MC-led, sparse beats, aggressive flows, eski sounds and London street culture references.`},{genre:`Liquid DnB`,category:`Bass`,priority:`medium`,notes:`Melodic, smooth and soulful drum & bass; rolling breaks, warm bass, vocals, pads and emotional or uplifting atmosphere.`},{genre:`Neurofunk`,category:`Bass`,priority:`medium`,notes:`Technical, dark and aggressive drum & bass with complex bass sound design, precise drums and futuristic, intense energy.`},{genre:`Footwork`,category:`Bass`,priority:`medium`,notes:`Fast Chicago club style around 160 BPM with syncopated kicks, chopped vocal samples and jittery rhythms; related to juke and dance battles.`},{genre:`Jersey Club`,category:`Bass`,priority:`medium`,notes:`Fast, bouncy US club music with chopped samples, triplet kick patterns and call-and-response energy; often party, dance challenge or club edit focused.`},{genre:`Trance`,category:`Trance`,priority:`core`,notes:`Euphoric electronic dance music with emotional melodies, long builds, breakdowns and big climaxes; often 90s, festival, uplifting or hands-in-the-air language.`},{genre:`Psytrance`,category:`Trance`,priority:`core`,notes:`Fast psychedelic trance with rolling basslines, hypnotic repetition, alien/psychedelic sound design and outdoor festival or doof culture references.`},{genre:`Progressive Trance`,category:`Trance`,priority:`high`,notes:`Smoother, slower trance with gradual melodic builds, deep atmospheres and less explosive drops than uplifting trance; often journey-based and emotional.`},{genre:`Disco`,category:`Disco`,priority:`core`,notes:`Classic dance music with live-sounding drums, strings, funk bass, soul vocals and 70s/80s references; use for retro disco, disco party or classic dance events.`},{genre:`Nu Disco`,category:`Disco`,priority:`core`,notes:`Modern electronic disco with polished production, house tempo, funk basslines, synths and retro dancefloor feel; often contemporary disco edits or poolside energy.`},{genre:`Italo Disco`,category:`Disco`,priority:`medium`,notes:`European 80s disco style with synth bass, drum machines, dramatic vocals and retro-futurist melodies; often Italian, cult, synth-heavy or nostalgic.`},{genre:`Funk`,category:`Disco`,priority:`high`,notes:`Groove-based music with syncopated bass, live drums, brass, guitars and rhythmic vocals; often party, rare groove, soul-funk or dancefloor classics.`},{genre:`Soul`,category:`Disco`,priority:`medium`,notes:`Vocal-focused music rooted in R&B, gospel and Motown traditions; emotional vocals, warm instrumentation and classic groove; may overlap with disco and house roots.`},{genre:`Balearic`,category:`Disco`,priority:`medium`,notes:`Eclectic Ibiza-influenced sound blending downtempo, disco, house, pop, world and chillout; sunset, beach, terrace, poolside or open-air language.`},{genre:`Hardcore`,category:`Hard Dance`,priority:`high`,notes:`Very fast, intense rave music with distorted kicks, aggressive synths and high BPM; use when event says hardcore, ravecore or extreme hard dance.`},{genre:`Hardstyle`,category:`Hard Dance`,priority:`high`,notes:`Dutch-origin hard dance with distorted reverse-bass kicks, euphoric melodies, screeches and festival anthems; usually around 150 BPM.`},{genre:`Gabber`,category:`Hard Dance`,priority:`low`,notes:`Extreme Dutch hardcore style with very fast BPM, distorted kicks, raw rave energy and Rotterdam/hakken culture references.`},{genre:`Happy Hardcore`,category:`Hard Dance`,priority:`low`,notes:`Fast, euphoric hardcore with bright melodies, pitched-up vocals, piano riffs and 90s UK rave nostalgia; playful rather than dark.`},{genre:`Amapiano`,category:`Global`,priority:`core`,notes:`South African club music with log drums, shakers, jazzy chords, smooth vocals and laid-back but danceable grooves; often piano-led and percussive.`},{genre:`Gqom`,category:`Global`,priority:`high`,notes:`Dark, minimal South African club sound from Durban; heavy broken rhythms, raw percussion, sparse vocals and intense hypnotic energy.`},{genre:`Afrobeats`,category:`Global`,priority:`core`,notes:`West African pop and club sound, especially Nigerian/Ghanaian; melodic vocals, dancehall/highlife/hip-hop influence, warm rhythms and mainstream crossover.`},{genre:`Kuduro`,category:`Global`,priority:`medium`,notes:`Angolan and Portuguese club music with fast, hard percussion, energetic chants and raw dancefloor intensity; often Afro-Portuguese or Lisbon club references.`},{genre:`Singeli`,category:`Global`,priority:`low`,notes:`Extremely fast Tanzanian electronic dance music, often 180-220+ BPM; frantic rhythms, rapid vocals and high-energy East African street sound.`},{genre:`Baile Funk`,category:`Global`,priority:`high`,notes:`Brazilian funk carioca with heavy drums, MC vocals, Portuguese lyrics and raw party energy; often Rio, favela, proibidao or funk mandelao references.`},{genre:`Reggaeton`,category:`Global`,priority:`high`,notes:`Latin urban dance music with dembow rhythm, Spanish vocals, pop/hip-hop influence and mainstream club appeal; often perreo or Latin party events.`},{genre:`Dancehall`,category:`Global`,priority:`high`,notes:`Jamaican club music with riddims, patois vocals, reggae influence and sound system culture; can be party, bashment, Caribbean or crossover pop.`},{genre:`Dembow`,category:`Global`,priority:`medium`,notes:`Dominican-origin club style built on repetitive dembow rhythm, Spanish MC vocals and raw Latin street-party energy; more minimal and percussive than reggaeton.`},{genre:`Ambient`,category:`Downtempo`,priority:`high`,notes:`Atmospheric, beatless or low-rhythm electronic music focused on texture, mood and space; suited to listening rooms, chill rooms, sound baths or pre/post-event settings.`},{genre:`Downtempo`,category:`Downtempo`,priority:`high`,notes:`Slower electronic music with relaxed beats, warm textures and lounge/chillout feel; use for chill, sunset, listening, cafe, pre-party or afterhours decompression events.`},{genre:`Electronica`,category:`Downtempo`,priority:`high`,notes:`Broad non-club-focused electronic music; experimental, melodic, listening-oriented or pop-adjacent; use when event says electronic but not clearly house/techno/bass.`},{genre:`Trip Hop`,category:`Downtempo`,priority:`low`,notes:`Moody 90s Bristol sound blending hip-hop beats, dub, soul, jazz and atmospheric vocals; dark, smoky, cinematic or Massive Attack/Portishead references.`},{genre:`Lo-Fi`,category:`Downtempo`,priority:`medium`,notes:`Relaxed, hazy, imperfect-sounding beats with soft drums, samples, jazz chords and study/chill aesthetics; often lo-fi hip-hop or bedroom production references.`},{genre:`Electro`,category:`Electronic`,priority:`core`,notes:`Syncopated electronic music with 808 drums, robotic funk, vocoders, breakbeats and Detroit/80s futurism; distinct from electro-house.`},{genre:`Synth Pop`,category:`Electronic`,priority:`medium`,notes:`Pop-oriented electronic music with catchy vocals, 80s synths, drum machines and new wave influence; often retro, nostalgic or indie-pop crossover.`},{genre:`Industrial`,category:`Electronic`,priority:`medium`,notes:`Dark electronic or rock-influenced music with harsh textures, machine rhythms, noise and dystopian aesthetics; may overlap with EBM and industrial techno.`},{genre:`EBM`,category:`Electronic`,priority:`low`,notes:`Electronic Body Music: hard, repetitive industrial dance with shouted vocals, rigid basslines and militaristic rhythms; 80s/Belgian/German club references.`},{genre:`Indie Dance`,category:`Electronic`,priority:`high`,notes:`Danceable blend of indie rock, disco, synth pop and electronic production; often band/DJ crossover, nu-disco-adjacent, stylish or alternative club sound.`},{genre:`Experimental`,category:`Electronic`,priority:`medium`,notes:`Unconventional electronic music that avoids standard genre structures; abstract, avant-garde, noise, leftfield, art-focused or boundary-pushing events.`},{genre:`Hip-Hop`,category:`Non-Electronic`,priority:`high`,notes:`Rap-led music with beats, MCs, sampling, trap, boom bap or old-school references; use for hip-hop parties, rap nights or DJ sets centred on rap.`},{genre:`R&B`,category:`Non-Electronic`,priority:`high`,notes:`Smooth vocal-led music with soul, hip-hop and pop influence; 90s/2000s R&B, slow jams, contemporary R&B or club crossover events.`},{genre:`Jazz`,category:`Non-Electronic`,priority:`medium`,notes:`Improvised or live instrumental music with swing, bebop, fusion, soul-jazz or jazz club references; often live band or listening-focused.`},{genre:`Pop`,category:`Non-Electronic`,priority:`medium`,notes:`Mainstream, chart-focused music with recognisable hits, singalong vocals and broad commercial appeal; use for general pop parties or top-40 events.`},{genre:`Rock`,category:`Non-Electronic`,priority:`low`,notes:`Guitar-driven band music; indie rock, classic rock, punk, alternative or live venue references; usually non-electronic unless explicitly DJ edits.`},{genre:`Reggae`,category:`Non-Electronic`,priority:`medium`,notes:`Jamaican-origin music with offbeat guitar rhythms, dub influence, roots vocals and sound system culture; includes roots, dub and reggae parties.`},{genre:`Live`,category:`Non-Electronic`,priority:`medium`,notes:`Event is centred on live performance rather than DJ genre; bands, singers, instrumentalists or live electronic acts; use only when performance format is the key signal.`}].map(e=>e.genre)),ic=F$1(rc).min(1).max(5).meta({description:`Music genres for the event (1-5 genres)`,examples:[[`Tech House`,`Melodic Techno`]]});F$1(rc).max(5).optional().meta({description:`Music genres for the event (up to 5 genres)`,examples:[[`Tech House`,`Melodic Techno`]]});function B$1(e,t){return A$1().regex(RegExp(`^${e}_[0-9a-z]{26}$`),`Must be a valid ${t} ID`).describe(`Unique ${t} identifier`)}const oc=B$1(`tem`,`team`),V$1=B$1(`evt`,`event`),sc=B$1(`ven`,`venue`),cc=B$1(`loc`,`location`),lc=B$1(`usr`,`user`),uc=B$1(`ord`,`order`),dc=B$1(`tkt`,`ticket`),fc=B$1(`pmt`,`promoter`);B$1(`cpn`,`coupon`);B$1(`cod`,`coupon code`);const hc=B$1(`cus`,`customer`),gc=B$1(`adm`,`admission`),_c=B$1(`sct`,`section`);B$1(`ben`,`beneficiary`);const yc=B$1(`pyt`,`payout`),bc=B$1(`mbr`,`team member`),xc=B$1(`inv`,`team invite`),Sc=B$1(`ecl`,`event collaborator`),Cc=B$1(`psc`,`permission scope`),wc=B$1(`prl`,`permission role`),Tc=B$1(`ntf`,`notification`),H$2=I$1({src:Io().meta({examples:[`https://assets.session.services/my-image.jpg`]}),alt:A$1().meta({examples:[`My Image`]}),width:M$1().meta({examples:[1080]}),height:M$1().meta({examples:[1080]})}),Ec=`Limit cannot be 0. Use -1 for unlimited or a positive number for a specific limit`;function Dc(){return M$1().min(-1)}function Oc(){return M$1().min(-1).refine(e=>e!==0,{message:Ec})}const kc=gs([A$1(),M$1(),P$1(),ns()]),Ac=Gs(()=>gs([kc,F$1(Ac),Ss(A$1(),Ac)])),jc=Ss(A$1().min(1).max(40).meta({description:`Metadata key. Must be 1-40 characters`}),A$1().max(500).meta({description:`Metadata value. Must not exceed 500 characters`})).refine(e=>Object.keys(e).length<=50,{message:`Metadata cannot exceed 50 keys`}).optional().meta({description:`Flexible key-value metadata storage for custom configuration. Similar to Stripe's metadata API. Maximum 50 keys, key names up to 40 characters, values up to 500 characters.`}),U$2=A$1().regex(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}$/,`Must be a naive datetime without timezone (YYYY-MM-DDTHH:mm:ss)`).meta({description:`Wall clock time without timezone (displays same everywhere)`,examples:[`2025-03-15T19:30:00`]});function Mc(e){return R$1().int().min(1).max(100).prefault(20).meta({examples:[20],description:`Maximum number of ${e} to return per request (1-100, default: 20)`})}const Nc=A$1().meta({description:`Opaque cursor for pagination. Use the cursor from the previous response to continue fetching results.`}),Pc=`[a-z][a-z0-9-]*`,Fc=`(?:${Pc})(?:\\.${Pc})*`,Ic=RegExp(`^-?(?:\\*|${Fc}(?:\\.\\*|\\.bypass|\\.[a-z]{3}_[0-9a-z]{26})?)$`),Lc=/^[a-z]{3}_[0-9a-z]{26}$/,Rc=[`tem`,`pmt`,`ven`,`evt`,`ord`,`tkt`,`cpn`],zc=`tenant.masquerade,team.read,team.write,team.member.read,team.member.write,team.invite.read,team.invite.write,team.gateway.read,team.gateway.connect,team.gateway.write,team.performance.read,cms.read,cms.write,role.read,role.write,event.read,event.write,event.performance.read,promoter.read,promoter.write,promoter.performance.read,venue.read,venue.write,order.read,order.write,ticket.read,ticket.write,ticket.scan,coupon.read,coupon.write,beneficiary.read,beneficiary.write,payout.read,payout.write,*`.split(`,`),Bc=[`tenant`,`team`,`team.member`,`team.invite`,`team.gateway`,`team.performance`,`cms`,`role`,`event`,`event.performance`,`promoter`,`promoter.performance`,`venue`,`order`,`ticket`,`coupon`,`beneficiary`,`payout`],Vc=new Set(zc),Hc=new Set(Bc),Uc={"tenant.masquerade":[],"team.read":[`tem`],"team.write":[`tem`],"team.member.read":[`tem`],"team.member.write":[`tem`],"team.invite.read":[`tem`],"team.invite.write":[`tem`],"team.gateway.read":[`tem`,`pmt`],"team.gateway.connect":[`tem`],"team.gateway.write":[`tem`,`pmt`],"team.performance.read":[`tem`,`pmt`,`evt`],"cms.read":[],"cms.write":[],"role.read":[`tem`],"role.write":[`tem`],"event.read":[`tem`,`pmt`,`ven`,`evt`],"event.write":[`tem`,`pmt`,`ven`,`evt`],"event.performance.read":[`tem`,`pmt`,`ven`,`evt`],"promoter.read":[`tem`,`pmt`,`evt`],"promoter.write":[`tem`,`pmt`,`evt`],"promoter.performance.read":[`tem`,`pmt`,`evt`],"venue.read":[`tem`,`ven`,`evt`],"venue.write":[`tem`,`ven`,`evt`],"order.read":[`tem`,`pmt`,`ven`,`evt`,`ord`],"order.write":[`tem`,`pmt`,`ven`,`evt`,`ord`],"ticket.read":[`tem`,`pmt`,`ven`,`evt`,`ord`,`tkt`],"ticket.write":[`tem`,`pmt`,`ven`,`evt`,`ord`,`tkt`],"ticket.scan":[`tem`,`pmt`,`ven`,`evt`,`ord`,`tkt`],"coupon.read":[`tem`,`pmt`,`evt`,`cpn`],"coupon.write":[`tem`,`pmt`,`evt`,`cpn`],"beneficiary.read":[`tem`,`pmt`],"beneficiary.write":[`tem`,`pmt`],"payout.read":[`tem`,`pmt`],"payout.write":[`tem`,`pmt`],"*":[]};function Wc(e){let[t]=e.split(`_`);return t?Rc.includes(t):false}function Gc$1(e){let[t]=e.split(`_`);return !t||!Wc(e)?null:t}function Kc$1(e){return Lc.test(e)&&Wc(e)}function qc$1(e,t){let n=Gc$1(t);return n?(Uc[e]??[]).includes(n):false}function Jc$1(e,t){return !Vc.has(e)||!Kc$1(t)?false:qc$1(e,t)}function Yc$1(e){return e.startsWith(`-`)?e.slice(1):e}function Xc$1(e){return Vc.has(e)}function Zc$1(e){return e.endsWith(`.bypass`)?Vc.has(e.slice(0,-7)):false}function Qc$1(e){let t=e.match(/^((?:[a-z][a-z0-9-]*)(?:\.[a-z][a-z0-9-]*)*)\.([a-z]{3}_[0-9a-z]{26})$/);return t?$c(t):null}function $c(e){let t=e[1],n=e[2];return !t||!n?null:{base:t,resourceId:n}}function el(e){let t=Qc$1(e);return t?Jc$1(t.base,t.resourceId):false}function tl(e){if(!e.endsWith(`.*`))return false;let t=e.slice(0,-2);return Hc.has(t)||Vc.has(t)}const nl=[Xc$1,Zc$1,el,tl];function rl$1(e){let t=Yc$1(e);return nl.some(e=>e(t))}const il=A$1().regex(Ic,`Invalid permission node. Use lowercase dot notation with optional wildcard, resource target, bypass target, and deny prefix.`).refine(rl$1,{message:`Unsupported permission node. Only nodes from the canonical permission catalog are allowed.`}).meta({description:`Permission node in minecraft-style format. Supports exact, scoped wildcard, resource target, bypass target, and deny prefix.`,examples:[`team.read`,`team.member.write`,`ticket.scan`,`ticket.scan.*`,`ticket.scan.evt_01h8c3jm9zs2v6h2k9p9r8f5a1`,`team.gateway.connect.bypass`,`team.*`,`*`,`-team.gateway.write`,`-ticket.scan.evt_01h8c3jm9zs2v6h2k9p9r8f5a1`]}),al=F$1(il).meta({description:`Array of permission nodes. Supports wildcard and negation. Empty arrays are allowed.`,examples:[[],[`team.read`,`team.member.write`],[`event.read`,`event.write`],[`*`],[`-team.gateway.write`]]}),ol=al.min(1).meta({description:`Non-empty array of permission nodes. Supports wildcard and negation.`,examples:[[`team.read`,`team.member.write`],[`event.read`,`event.write`],[`*`],[`-team.gateway.write`]]});const wl=A$1().length(16).meta({examples:[x$1.signature],description:`HMAC signature for secure access (16 characters, base64url encoded)`}),Tl=L$1([`SALE_ENDED`,`SOLD_OUT`,`DOOR`]);function Dl(e){return I$1({base:N$1().min(0).meta({examples:[x$1.Admission.price.base],description:`Base cost of a ticket for this admission type before fees, in cents`}),booking:N$1().min(0).meta({examples:[x$1.Admission.price.booking],description:e.booking}),currency:z$1.meta({examples:[x$1.Admission.price.currency],description:e.currency})}).meta({examples:[x$1.Admission.price],description:e.price})}const W$2=I$1({id:gc.readonly().meta({description:`A unique identifier for this admission`,examples:[x$1.Admission.id]}),name:A$1().meta({description:`The display name of the admission type shown to customers`,examples:[x$1.Admission.name]}),subtitle:A$1().max(100).optional().meta({description:`Short supporting text shown below the admission name`,examples:[x$1.Admission.subtitle]}),description:A$1().max(500).optional().meta({description:`Detailed information shown when customers expand 'More info'`,examples:[x$1.Admission.description]}),capacity:Dc().prefault(-1).meta({examples:[x$1.Admission.capacity],description:`Maximum number of tickets that can be sold for this admission type. A value of -1 indicates unlimited`}),limit:Oc().prefault(-1).meta({examples:[x$1.Admission.limit??-1],description:`Maximum number of tickets of this admission type that can be purchased in a single order. A value of -1 indicates unlimited`}),available:M$1().min(-1).readonly().meta({examples:[x$1.Admission.available],description:`Current number of tickets available for purchase, calculated as capacity minus sold minus reserved. A value of -1 indicates unlimited`}),sold:M$1().min(0).readonly().meta({examples:[x$1.Admission.sold],description:`Total number of tickets of this admission type that have been purchased`}),reserved:M$1().min(0).readonly().meta({examples:[x$1.Admission.reserved],description:`Number of tickets held for customers during checkout and not available to others`}),order:M$1().min(0).meta({examples:[x$1.Admission.order],description:`Determines the position in which this admission type appears when listed. Lower values appear first`}),createdAt:O$1().readonly().meta({examples:[x$1.Admission.createdAt],description:`Timestamp in ISO 8601 format when this admission type was created`}),updatedAt:O$1().readonly().meta({examples:[x$1.Admission.updatedAt],description:`Timestamp in ISO 8601 format when this admission type was last updated`}),entryStartsAt:U$2.meta({examples:[x$1.Admission.entryStartsAt],description:`Wall clock time from which tickets of this type are valid for entry (no timezone)`}),entryEndsAt:U$2.meta({examples:[x$1.Admission.entryEndsAt],description:`Wall clock time until which tickets of this type are valid for entry (no timezone)`}),saleStartsAt:U$2.meta({examples:[x$1.Admission.saleStartsAt],description:`Wall clock time when ticket sales for this admission type begin (no timezone)`}),saleEndsAt:U$2.meta({examples:[x$1.Admission.saleEndsAt],description:`Wall clock time when ticket sales for this admission type end (no timezone)`}),saleEndsBehavior:Tl.default(`SALE_ENDED`).meta({examples:[x$1.Admission.saleEndsBehavior],description:`Label to display for this admission after ticket sales have ended`}),price:Dl({booking:`Additional booking fee applied to the ticket price, in cents`,currency:`Three-letter ISO 4217 currency code for the ticket price`,price:`Pricing details for this admission type, including base cost and fees in cents, and currency`}),visibility:L$1([`ALWAYS`,`STACKED`,`HIDDEN`]).prefault(`ALWAYS`).meta({examples:[`ALWAYS`],description:`Controls how this admission type is displayed: 'ALWAYS' shows it at all times, 'STACKED' reveals it when higher-priority tiers sell out, 'HIDDEN' requires a passcode to view`}),passcode:A$1().optional().meta({examples:[`VIPACCESS`],description:`Code required to reveal this admission type when visibility is 'HIDDEN'. Case-insensitive comparison`}),sectionId:_c.nullable().optional().meta({examples:[x$1.Admission.sectionId],description:`Identifier of the section this admission type belongs to, if any`}),teamId:oc.meta({description:`Team that owns this admission. Denormalized for efficient queries.`}),promoterId:fc.meta({examples:[x$1.Admission.promoterId],description:`Identifier of the promoter responsible for this admission type`}),eventId:V$1.meta({examples:[x$1.Admission.eventId],description:`Identifier of the event to which this admission type is linked`}),eventSlug:A$1().meta({examples:[x$1.Admission.eventSlug],description:`URL-friendly slug for the event associated with this admission type`})}).meta({description:`Admission represents a specific type or category of ticket available for an event`,examples:[x$1.Admission]}),Ol=W$2.omit({id:true,createdAt:true,updatedAt:true,available:true,sold:true,reserved:true}).meta({description:`Schema for creating a new admission type for an event`}),kl=W$2.pick({id:true}).extend({eventId:W$2.shape.eventId.meta({examples:[x$1.Admission.eventId],description:`Identifier of the event to which this admission type belongs`})}).meta({description:`Schema for deleting an admission type from an event. This performs a soft delete by setting the deletedAt timestamp`}),Al=W$2.pick({id:true}).extend({eventId:V$1.meta({examples:[x$1.Admission.eventId],description:`Identifier of the event to which this admission type belongs`})}).meta({description:`Schema for retrieving a specific admission type`}),jl=I$1({eventId:A$1().meta({examples:[x$1.Admission.eventId],description:`Identifier of the event to list admission types for`}),sectionId:A$1().optional().meta({examples:[x$1.Admission.sectionId],description:`Filter admission types by section identifier. If provided, only admissions for this section are returned`}),query:A$1().optional().meta({examples:[`Early Bird`],description:`Optional search query to filter admissions by name. When provided, search-backed pagination is used.`}),limit:Mc(`admission types`).optional(),cursor:A$1().optional().meta({examples:[`eyJpZCI6ImFkbV8wMWpwczVjZ3NlZTB4dmFwYms5MmU4ZWI0ZyJ9`],description:`Pagination cursor for retrieving the next set of results. Obtained from previous response`})}).meta({description:`Schema for listing admission types with pagination and filtering options`});function G$2(e,t){let n={[t]:F$1(e).meta({description:`Array of ${t} for the current result set`})},r=A$1().nullish().meta({examples:[`eyJ2ZXJzaW9uIjoxLCJpbnRlbnQiOnsic291cmNlIjoiZGVtbyJ9LCJwb3MiOnsicHJpbWFyeUtleSI6InBybV8wMXM4NTNqIn19`],description:`Cursor for navigating backward in the result set. Omitted when there are no prior results.`}),i=A$1().nullish().meta({examples:[`eyJ2ZXJzaW9uIjoxLCJpbnRlbnQiOnsic291cmNlIjoiZGVtbyJ9LCJwb3MiOnsicHJpbWFyeUtleSI6InBybV8wMXM4NTNkIn19`],description:`Cursor for navigating forward in the result set. Omitted when there are no subsequent results.`});return I$1({...n,before:r,after:i,limit:R$1().min(1).meta({examples:[20],description:`Maximum number of items to return in each result set`})})}const Ml=G$2(W$2,`admissions`),Nl=W$2.pick({eventId:true}).extend({message:A$1().meta({examples:[`7.5% of the ticket price or $2 AUD, whichever is higher`],description:`Detailed explanation of the booking fee calculation applied to this admission type`}),price:Dl({booking:`Calculated booking fee applied to the ticket price, in cents`,currency:`Three-letter ISO 4217 currency code for the quoted price`,price:`Pricing quote for this admission type, showing base cost and calculated booking fee in cents`})}).meta({description:`Response schema for admission pricing quotes, including booking fee calculations and explanatory messages`}),Pl=W$2.pick({eventId:true}).extend({base:N$1().min(0).meta({examples:[x$1.Admission.price.base],description:`Base cost of a ticket for this admission type before fees, in cents`}),currency:z$1.meta({examples:[x$1.Admission.price.currency],description:`Three-letter ISO 4217 currency code for the ticket price`})}).meta({description:`Request schema for generating a pricing quote for an admission type, including booking fee calculations`}),Fl=I$1({quote:Nl}),Il=I$1({admission:W$2}),Ll=I$1({id:W$2.shape.id,eventId:W$2.shape.eventId,name:W$2.shape.name.optional(),subtitle:W$2.shape.subtitle,description:W$2.shape.description,capacity:Dc().optional(),limit:Oc().optional(),order:W$2.shape.order.optional(),entryStartsAt:W$2.shape.entryStartsAt.optional(),entryEndsAt:W$2.shape.entryEndsAt.optional(),saleStartsAt:W$2.shape.saleStartsAt.optional(),saleEndsAt:W$2.shape.saleEndsAt.optional(),saleEndsBehavior:Tl.optional(),price:W$2.shape.price.optional(),visibility:L$1([`ALWAYS`,`STACKED`,`HIDDEN`]).optional(),passcode:A$1().optional(),sectionId:_c.nullable().optional().meta({description:`Section ID. Pass null to unassign from section; omit to leave unchanged.`})}).meta({description:`Schema for updating an existing admission type.`}),Rl=I$1({eventId:V$1.optional().meta({description:`Event ID for rate limiting and change detection. If provided, suggestions are limited to once per day per event and only if the description changed significantly.`,examples:[x$1.Event.id]}),description:A$1().min(100).max(1e4).meta({description:`Event description to analyze for genre and category suggestions. Minimum 100 characters required for meaningful AI analysis.`,examples:[`Join us for an all-night warehouse party featuring the best in tech house and melodic techno. BYO drinks, intimate vibes, and a killer sound system.`]}),eventName:A$1().optional().meta({description:`Optional event name for additional context`,examples:[`Warehouse Sessions Vol. 5`]}),imageUrl:Io().optional().meta({description:`Optional event artwork URL for visual analysis (multimodal)`,examples:[`https://assets.session.services/events/poster.jpg`]})}).meta({description:`Input for AI-powered event tag suggestions`}),zl=I$1({genres:F$1(rc).max(5).meta({description:`Suggested music genres based on event description and artwork`,examples:[[`Tech House`,`Melodic Techno`]]}),categories:F$1(tc).max(10).meta({description:`Suggested event categories based on description and artwork`,examples:[[`Warehouse`,`Underground`,`BYO`]]}),confidence:M$1().min(0).max(1).meta({description:`AI confidence score for the suggestions (0-1)`,examples:[.85]}),startDate:A$1().optional().meta({description:`Event start date/time. Either ISO 8601 format (if specific date found) or natural language hint for relative dates (e.g., 'next Saturday 9pm').`,examples:[`2025-02-15T21:00:00`,`next Saturday 9pm`]}),endDate:A$1().optional().meta({description:`Event end date/time. Either ISO 8601 format (if specific date found) or natural language hint.`,examples:[`2025-02-16T04:00:00`,`6am Sunday`]}),venueName:A$1().optional().meta({description:`Venue or location name extracted from the description or artwork. Used to search for and prefill the event location.`,examples:[`Warehouse 21`,`The Metro Theatre`]}),ticketUrl:Io().optional().meta({description:`External ticket purchase URL if found in the description. Only extracted if different from the host platform.`,examples:[`https://www.eventbrite.com/e/warehouse-sessions-tickets-123`]})}).meta({description:`AI-generated genre and category suggestions for an event`});I$1({estimatedInputTokens:M$1().int().meta({description:`Estimated input tokens for the request`,examples:[500]}),estimatedOutputTokens:M$1().int().meta({description:`Estimated output tokens for the response`,examples:[100]}),estimatedCostUsd:M$1().meta({description:`Estimated cost in USD`,examples:[.002]}),includesImage:P$1().meta({description:`Whether the estimate includes image analysis`,examples:[true]})}).meta({description:`Cost estimate for an AI tag suggestion request`});var Bl=/^(?:[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 Vl(e){return typeof e==`string`&&Bl.test(e)}for(var Hl=Vl,K$2=[],Ul=0;Ul<256;++Ul)K$2.push((Ul+256).toString(16).slice(1));function Wl(e,t=0){return (K$2[e[t+0]]+K$2[e[t+1]]+K$2[e[t+2]]+K$2[e[t+3]]+`-`+K$2[e[t+4]]+K$2[e[t+5]]+`-`+K$2[e[t+6]]+K$2[e[t+7]]+`-`+K$2[e[t+8]]+K$2[e[t+9]]+`-`+K$2[e[t+10]]+K$2[e[t+11]]+K$2[e[t+12]]+K$2[e[t+13]]+K$2[e[t+14]]+K$2[e[t+15]]).toLowerCase()}function Gl(e,t=0){var n=Wl(e,t);if(!Hl(n))throw TypeError(`Stringified UUID is invalid`);return n}var Kl=Gl,ql,Jl=new Uint8Array(16);function Yl(){if(!ql&&(ql=typeof crypto<`u`&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ql))throw Error(`crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported`);return ql(Jl)}var Xl=null,Zl=null,Ql=0;function $l(e,t,n){e||={};var r=t&&n||0,i=t||new Uint8Array(16),a=e.random||(e.rng||Yl)(),o=e.msecs===void 0?Date.now():e.msecs,s=e.seq===void 0?null:e.seq,c=Zl,l=Xl;return o>Ql&&e.msecs===void 0&&(Ql=o,s!==null&&(c=null,l=null)),s!==null&&(s>2147483647&&(s=2147483647),c=s>>>19&4095,l=s&524287),(c===null||l===null)&&(c=a[6]&127,c=c<<8|a[7],l=a[8]&63,l=l<<8|a[9],l=l<<5|a[10]>>>3),o+1e4>Ql&&s===null?++l>524287&&(l=0,++c>4095&&(c=0,Ql++)):Ql=o,Zl=c,Xl=l,i[r++]=Ql/1099511627776&255,i[r++]=Ql/4294967296&255,i[r++]=Ql/16777216&255,i[r++]=Ql/65536&255,i[r++]=Ql/256&255,i[r++]=Ql&255,i[r++]=c>>>4&15|112,i[r++]=c&255,i[r++]=l>>>13&63|128,i[r++]=l>>>5&255,i[r++]=l<<3&255|a[10]&7,i[r++]=a[11],i[r++]=a[12],i[r++]=a[13],i[r++]=a[14],i[r++]=a[15],t||Wl(i)}var eu=$l;function tu(e){let t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=t&255,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=t&255,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=t&255,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=t&255,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=t&255,n}var q$1=`0123456789abcdefghjkmnpqrstvwxyz`,J$1=new Uint8Array([255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,10,11,12,13,14,15,16,17,255,18,19,255,20,21,255,22,23,24,25,26,255,27,28,29,30,31,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255]);function nu(e){let t=Array(26).fill(``);if(e.length!==16)throw Error(`Invalid length. Expected 16 bytes, got ${e.length}. Input: ${e}`);return t[0]=q$1[(e[0]&224)>>5],t[1]=q$1[e[0]&31],t[2]=q$1[(e[1]&248)>>3],t[3]=q$1[(e[1]&7)<<2|(e[2]&192)>>6],t[4]=q$1[(e[2]&62)>>1],t[5]=q$1[(e[2]&1)<<4|(e[3]&240)>>4],t[6]=q$1[(e[3]&15)<<1|(e[4]&128)>>7],t[7]=q$1[(e[4]&124)>>2],t[8]=q$1[(e[4]&3)<<3|(e[5]&224)>>5],t[9]=q$1[e[5]&31],t[10]=q$1[(e[6]&248)>>3],t[11]=q$1[(e[6]&7)<<2|(e[7]&192)>>6],t[12]=q$1[(e[7]&62)>>1],t[13]=q$1[(e[7]&1)<<4|(e[8]&240)>>4],t[14]=q$1[(e[8]&15)<<1|(e[9]&128)>>7],t[15]=q$1[(e[9]&124)>>2],t[16]=q$1[(e[9]&3)<<3|(e[10]&224)>>5],t[17]=q$1[e[10]&31],t[18]=q$1[(e[11]&248)>>3],t[19]=q$1[(e[11]&7)<<2|(e[12]&192)>>6],t[20]=q$1[(e[12]&62)>>1],t[21]=q$1[(e[12]&1)<<4|(e[13]&240)>>4],t[22]=q$1[(e[13]&15)<<1|(e[14]&128)>>7],t[23]=q$1[(e[14]&124)>>2],t[24]=q$1[(e[14]&3)<<3|(e[15]&224)>>5],t[25]=q$1[e[15]&31],t.join(``)}function ru(e){if(e.length!==26)throw Error(`Invalid length. Expected 26 bytes, got ${e.length}. Input: ${e}`);let t=new TextEncoder().encode(e);if(J$1[t[0]]===255||J$1[t[1]]===255||J$1[t[2]]===255||J$1[t[3]]===255||J$1[t[4]]===255||J$1[t[5]]===255||J$1[t[6]]===255||J$1[t[7]]===255||J$1[t[8]]===255||J$1[t[9]]===255||J$1[t[10]]===255||J$1[t[11]]===255||J$1[t[12]]===255||J$1[t[13]]===255||J$1[t[14]]===255||J$1[t[15]]===255||J$1[t[16]]===255||J$1[t[17]]===255||J$1[t[18]]===255||J$1[t[19]]===255||J$1[t[20]]===255||J$1[t[21]]===255||J$1[t[22]]===255||J$1[t[23]]===255||J$1[t[24]]===255||J$1[t[25]]===255)throw Error(`Invalid base32 character`);let n=new Uint8Array(16);return n[0]=J$1[t[0]]<<5|J$1[t[1]],n[1]=J$1[t[2]]<<3|J$1[t[3]]>>2,n[2]=(J$1[t[3]]&3)<<6|J$1[t[4]]<<1|J$1[t[5]]>>4,n[3]=(J$1[t[5]]&15)<<4|J$1[t[6]]>>1,n[4]=(J$1[t[6]]&1)<<7|J$1[t[7]]<<2|J$1[t[8]]>>3,n[5]=(J$1[t[8]]&7)<<5|J$1[t[9]],n[6]=J$1[t[10]]<<3|J$1[t[11]]>>2,n[7]=(J$1[t[11]]&3)<<6|J$1[t[12]]<<1|J$1[t[13]]>>4,n[8]=(J$1[t[13]]&15)<<4|J$1[t[14]]>>1,n[9]=(J$1[t[14]]&1)<<7|J$1[t[15]]<<2|J$1[t[16]]>>3,n[10]=(J$1[t[16]]&7)<<5|J$1[t[17]],n[11]=J$1[t[18]]<<3|J$1[t[19]]>>2,n[12]=(J$1[t[19]]&3)<<6|J$1[t[20]]<<1|J$1[t[21]]>>4,n[13]=(J$1[t[21]]&15)<<4|J$1[t[22]]>>1,n[14]=(J$1[t[22]]&1)<<7|J$1[t[23]]<<2|J$1[t[24]]>>3,n[15]=(J$1[t[24]]&7)<<5|J$1[t[25]],n}function iu(e){if(e.length>63)return false;let t,n,r;for(n=0,r=e.length;n<r;n+=1){t=e.charCodeAt(n);let i=t>96&&t<123,a=t===95;if((n===0||n===r-1)&&!i||!(i||a))return false}return true}var au=class extends Error{constructor(e){super(`Invalid prefix "${e}". Must be at most 63 ASCII letters [a-z_]`),this.name=`InvalidPrefixError`;}},ou=class extends Error{constructor(e,t){super(`Invalid TypeId. Prefix mismatch. Expected ${e}, got ${t}`),this.name=`PrefixMismatchError`;}},su=class extends Error{constructor(e){super(`Invalid TypeId. Prefix cannot be empty when there's a separator: ${e}`),this.name=`EmptyPrefixError`;}},cu=class extends Error{constructor(e){super(`Invalid length. Suffix should have 26 characters, got ${e}`),this.name=`InvalidSuffixLengthError`;}},lu=class extends Error{constructor(e){super(`Invalid suffix. First character "${e}" must be in the range [0-7]`),this.name=`InvalidSuffixCharacterError`;}},uu=class extends Error{constructor(e,t){super(`Cannot convert TypeID of type ${e} to type ${t}`),this.name=`TypeIDConversionError`;}};function du(e=``,t=``){if(!iu(e))throw new au(e);let n;if(t)n=t;else {let e=new Uint8Array(16);eu(void 0,e),n=nu(e);}if(n.length!==26)throw new cu(n.length);if(n[0]>`7`)throw new lu(n[0]);return ru(n),e===``?n:`${e}_${n}`}function fu(e,t){let n,r,i=e.lastIndexOf(`_`);if(i===-1)n=``,r=e;else if(n=e.substring(0,i),r=e.substring(i+1),!n)throw new su(e);if(!r)throw new cu(0);if(t&&n!==t)throw new ou(t,n);return du(n,r)}function pu(e){let t=e.lastIndexOf(`_`);return t===-1?``:e.substring(0,t)}function mu(e){let t=e.lastIndexOf(`_`);return t===-1?e:e.substring(t+1)}var hu=class{constructor(e,t=``){this.prefix=e,this.suffix=t;let n=du(e,t);this.prefix=pu(n),this.suffix=mu(n);}getType(){return this.prefix}getSuffix(){return this.suffix}asType(e){let t=this;if(t.prefix!==e)throw new uu(t.prefix,e);return t}toUUIDBytes(){return ru(this.suffix)}toUUID(){return Kl(this.toUUIDBytes())}toString(){return this.prefix===``?this.suffix:`${this.prefix}_${this.suffix}`}static fromString(e,t){let n=fu(e,t);return new hu(pu(n),mu(n))}static fromUUIDBytes(e,t){return new hu(e,nu(t))}static fromUUID(e,t){return new hu(e,nu(tu(t)))}};function gu(e=``,t=``){return new hu(e,t)}const _u={admission:`adm`,anonymous:`anon`,beneficiary:`ben`,coupon:`cpn`,couponCode:`cod`,customer:`cus`,event:`evt`,eventCollaborator:`ecl`,eventCollaboratorInvite:`evi`,membership:`mem`,order:`ord`,orderItem:`itm`,orderFee:`fee`,permissionScope:`psc`,permissionRole:`prl`,permissionSnapshot:`pss`,payout:`pyt`,payoutDeduction:`pad`,payoutTransfer:`xfr`,promoter:`pmt`,refund:`rfd`,section:`sct`,scan:`scn`,team:`tem`,teamMember:`mbr`,teamInvite:`inv`,teamGateway:`tgw`,tenant:`tnt`,ticket:`tkt`,user:`usr`,venue:`ven`,location:`loc`,request:`req`,walletDevice:`wdv`,schedule:`sch`,session:`ssn`,trackingEvent:`tev`,trackingStats:`sta`,hllShard:`shr`,timeline:`tln`,notification:`ntf`};function vu(e){return gu(_u[e])}const yu=`ses_sid`,bu=`ses_aid`;function xu(){return vu(`session`).toString()}function Su(){return vu(`anonymous`).toString()}function Cu(e){let t=e.getCookie(yu);if(t)return t;let n=xu();return e.setCookie(yu,n),n}function wu(e){let t=e.getItem(bu);if(t)return t;let n=Su();return e.setItem(bu,n),n}function Tu(e){let t=xu(),n=Su();return e.setCookie(yu,t),e.setItem(bu,n),{sessionId:t,anonymousId:n}}const Du=lo().describe(`Date (YYYY-MM-DD)`),Ou=I$1({startDate:Du.describe(`Start date (YYYY-MM-DD)`),endDate:Du.describe(`End date (YYYY-MM-DD)`)}),ku=I$1({startDate:Du.optional().describe(`Start date (YYYY-MM-DD)`),endDate:Du.optional().describe(`End date (YYYY-MM-DD)`)}).refine(e=>!e.startDate&&!e.endDate||!!(e.startDate&&e.endDate),{message:`Both startDate and endDate must be provided together, or omit both for all-time data`});function Y$1(e){return I$1(e).extend(Ou.shape)}function Au(e){return bs(I$1(e),ku)}const X$1=I$1({value:M$1().describe(`Current period value`),previous:M$1().describe(`Comparison period value`),change:M$1().describe(`Percentage change from previous period`),changeType:L$1([`increase`,`decrease`,`unchanged`]).describe(`Direction of change`)}),ju=I$1({eventId:A$1().describe(`Event identifier`),eventName:A$1().describe(`Event name`),ticketCount:M$1().describe(`Number of tickets sold`),sharePercent:M$1().describe(`Percentage of total tickets`)}),Mu=I$1({start:A$1().describe(`Period start date`),end:A$1().describe(`Period end date`)}),Nu=I$1({start:A$1().describe(`Comparison period start date`),end:A$1().describe(`Comparison period end date`)}),Pu=L$1([`HOUR`,`DAY`,`WEEK`,`MONTH`]),Fu=I$1({date:A$1().describe(`Date (YYYY-MM-DD)`),revenue:M$1().describe(`Revenue in cents`),tickets:M$1().describe(`Tickets sold`)}),Iu=Fu.extend({orders:M$1().describe(`Orders placed`)}),Lu=I$1({revenue:M$1().describe(`Total revenue for period in cents`),tickets:M$1().describe(`Total tickets for period`)}),Ru=Lu.extend({orders:M$1().describe(`Total orders for period`)}),zu=I$1({revenue:X$1.describe(`Total revenue in cents`),ticketsSold:X$1.describe(`Number of tickets sold`),averageOrderValue:X$1.describe(`Average order value in cents`),conversionRate:X$1.describe(`Overall conversion rate (%)`),activeEvents:X$1.describe(`Number of active events in period`),uniqueCustomers:X$1.describe(`Unique customers (estimated)`),orderCount:X$1.describe(`Number of orders placed`),pageViews:X$1.describe(`Total page views from tracking`)}),Bu=I$1({events:F$1(ju),totalTickets:M$1().describe(`Total tickets across all events`)});function Vu(e,t){return Y$1({...Gu(e,t),currency:A$1().optional().describe(`Currency code for revenue metrics`)})}function Hu(e){return I$1({meta:I$1({...e,currency:A$1().describe(`Primary currency code`),currencies:F$1(A$1()).describe(`All currencies with transactions`),dateRange:Mu,comparisonRange:Nu}),metrics:zu})}function Uu(e,t){return Y$1({...Gu(e,t),granularity:Pu.optional().default(`DAY`).describe(`Time granularity`),currency:A$1().optional().describe(`Currency filter`)})}function Wu(e,t){return Y$1({...Gu(e,t),limit:M$1().optional().default(5).describe(`Maximum number of events to return`)})}function Gu(e,t){return {[e]:A$1().describe(t)}}const Ku=Au({eventId:A$1().describe(`Event identifier`)}).meta({description:`Event performance summary request`}),qu=I$1({meta:I$1({eventId:A$1().describe(`Event identifier`),eventName:A$1().describe(`Event name`),currency:A$1().describe(`Currency code (e.g., USD, EUR)`),dateRange:Mu.optional().describe(`Present only when startDate/endDate are provided`),comparisonRange:Nu.optional().describe(`Present only when startDate/endDate are provided`)}),metrics:I$1({revenue:X$1.describe(`Total revenue in cents`),ticketsSold:X$1.describe(`Number of tickets sold`),orderCount:X$1.describe(`Number of orders placed`),averageOrderValue:X$1.describe(`Average order value in cents`),conversionRate:X$1.describe(`Conversion rate as percentage`),pageViews:X$1.describe(`Total page/product views`),uniqueVisitors:X$1.describe(`Unique visitors (estimated)`),checkoutStarted:X$1.describe(`Number of checkout started events (external link clicks for external events)`)})}),Ju=Y$1({eventId:A$1().describe(`Event identifier`),granularity:Pu.optional().default(`DAY`).describe(`Time granularity for aggregation`),breakdown:L$1([`TOTAL`]).optional().default(`TOTAL`).describe(`Breakdown type (always TOTAL for performance)`),includeBreakdowns:P$1().optional().default(true).describe(`Whether to include admission and section breakdowns in each time bucket`)}),Yu=I$1({meta:I$1({eventId:A$1(),eventName:A$1().describe(`Event name`),currency:A$1().describe(`Currency code`),dateRange:Mu,granularity:Pu}),series:F$1(I$1({date:A$1().describe(`Date or timestamp`),tickets:M$1().describe(`Tickets sold in period`),revenue:M$1().describe(`Revenue in period (cents)`),admissions:F$1(I$1({id:A$1(),name:A$1(),quantity:M$1()})),sections:F$1(I$1({id:A$1(),name:A$1(),quantity:M$1()}))}))}),Xu=Y$1({eventId:A$1().describe(`Event identifier`)}),Zu=I$1({meta:I$1({eventId:A$1(),eventName:A$1().describe(`Event name`),currency:A$1().describe(`Currency code`),dateRange:Mu}),totals:I$1({entered:M$1().describe(`Total entered funnel (product viewed)`),completed:M$1().describe(`Total completed (orders)`),overallConversionRate:M$1().describe(`Overall conversion rate (%)`),totalDropped:M$1().describe(`Total dropped off`)}),stages:F$1(I$1({id:A$1().describe(`Funnel stage identifier`),name:A$1().describe(`Human-readable stage name`),count:M$1().describe(`Number of events at this stage`),conversionRate:M$1().describe(`Conversion rate from first stage (%)`),dropoffRate:M$1().describe(`Dropoff rate from previous stage (%)`)}))});I$1({meta:I$1({eventId:A$1(),dimension:A$1().describe(`Dimension type`),dateRange:Mu,limit:M$1().optional()}),data:F$1(I$1({name:A$1().describe(`Dimension value (e.g., campaign name)`),views:M$1().describe(`Page/product views`),conversions:M$1().describe(`Completed orders`),revenue:M$1().describe(`Total revenue in cents`),conversionRate:M$1().describe(`Conversion rate (%)`),share:M$1().describe(`Percentage share of total`).optional()})),totals:I$1({views:M$1(),conversions:M$1(),revenue:M$1()}).optional()});const $u=L$1([`HOUR`,`DAY`,`WEEK`,`MONTH`]),ed=I$1({eventId:A$1().describe(`Event identifier`),eventName:A$1().describe(`Event name`),currency:A$1().describe(`Currency code (e.g., USD, EUR)`),dateRange:Mu}),td=ed.extend({limit:M$1().describe(`Maximum number of results returned`)});Y$1({eventId:A$1(),granularity:$u.optional()});I$1({granularity:$u,data:F$1(I$1({date:A$1(),revenue:M$1(),ticketsSold:M$1()}))});const id=Y$1({eventId:A$1(),limit:M$1().min(1).max(100).optional().default(10)}),ad=I$1({meta:td,totals:I$1({uses:M$1().describe(`Total coupon uses across all coupons`),revenue:M$1().describe(`Total revenue from coupon-discounted orders (cents)`)}),coupons:F$1(I$1({id:A$1().describe(`Coupon code identifier`),code:A$1().describe(`Coupon code`),uses:M$1().describe(`Number of times this coupon was used`),revenue:M$1().describe(`Revenue from this coupon (cents)`),discount:A$1().describe(`Discount amount or percentage`),share:M$1().describe(`Share of total coupon uses (%)`)})).describe(`Coupons sorted by uses descending`)}),od=Y$1({eventId:A$1(),limit:M$1().min(1).max(100).optional().default(10)}),sd=I$1({data:F$1(I$1({campaign:A$1(),views:M$1(),conversions:M$1(),conversionRate:M$1(),sharePercent:M$1()})),totalConversions:M$1()}),cd=Y$1({eventId:A$1(),limit:M$1().min(1).max(100).optional().default(10)}),ld=I$1({meta:td,totals:I$1({views:M$1().describe(`Total views across all mediums`),conversions:M$1().describe(`Total conversions across all mediums`)}),mediums:F$1(I$1({id:A$1().describe(`Medium identifier (e.g., 'social', 'email')`),name:A$1().describe(`Medium name`),views:M$1().describe(`Views from this medium`),conversions:M$1().describe(`Conversions from this medium`),conversionRate:M$1().describe(`Conversion rate (%)`),share:M$1().describe(`Share of total conversions (%)`)})).describe(`Mediums sorted by conversions descending`)}),ud=Y$1({eventId:A$1()}),dd=I$1({meta:ed,totals:I$1({revenue:M$1().describe(`Total revenue across all devices (cents)`),orders:M$1().describe(`Total orders across all devices`)}),devices:F$1(I$1({id:L$1([`MOBILE`,`DESKTOP`,`TABLET`]).describe(`Device type`),name:A$1().describe(`Human-readable device name`),revenue:M$1().describe(`Revenue from this device (cents)`),orders:M$1().describe(`Orders from this device`),conversionRate:M$1().describe(`Conversion rate (%)`),share:M$1().describe(`Share of total revenue (%)`)})).describe(`Devices sorted by revenue descending`)}),fd=Y$1({eventId:A$1(),limit:M$1().min(1).max(100).optional().default(10)}),pd=I$1({meta:td,totals:I$1({tickets:M$1().describe(`Total tickets across all locations`),revenue:M$1().describe(`Total revenue across all locations (cents)`)}),locations:F$1(I$1({id:A$1().describe(`Location/region code (e.g., 'US-CA', 'GB')`),name:A$1().describe(`Human-readable location name`),views:M$1().describe(`Page views from this location`),tickets:M$1().describe(`Tickets from this location`),revenue:M$1().describe(`Revenue from this location (cents)`),share:M$1().describe(`Share of total views (%)`)})).describe(`Locations sorted by views descending`)}),md=Y$1({eventId:A$1(),limit:M$1().min(1).max(100).optional().default(10)}),hd=I$1({meta:td,totals:I$1({sessions:M$1().describe(`Total sessions across all sources`),conversions:M$1().describe(`Total conversions across all sources`),revenue:M$1().describe(`Total revenue across all sources (cents)`)}),sources:F$1(I$1({id:A$1().describe(`Traffic source identifier`),name:A$1().describe(`Traffic source name`),referrer:A$1().describe(`Referrer URL or domain`),sessions:M$1().describe(`Sessions from this source`),conversions:M$1().describe(`Conversions from this source`),conversionRate:M$1().describe(`Conversion rate (%)`),revenue:M$1().describe(`Revenue from this source (cents)`),share:M$1().describe(`Share of total conversions (%)`)})).describe(`Traffic sources sorted by conversions descending`)}),gd=I$1({eventId:A$1(),includeAdmission:P$1().optional().default(true),includeSection:P$1().optional().default(true),granularity:L$1([`HOUR`,`MINUTE`]).optional()}),_d=I$1({totalTickets:M$1(),checkedIn:M$1(),notCheckedIn:M$1(),checkinRate:M$1()}),vd=_d.extend({admissionId:A$1(),admissionName:A$1()}),yd=_d.extend({sectionId:A$1(),sectionName:A$1()}),bd=gs([_d.extend({byAdmission:F$1(vd),bySection:F$1(yd)}),I$1({granularity:L$1([`HOUR`,`MINUTE`]),totalTickets:M$1(),data:F$1(I$1({timestamp:A$1(),checkedIn:M$1(),rate:M$1(),checkinsThisPeriod:M$1()})),byAdmission:F$1(I$1({admissionId:A$1(),admissionName:A$1(),data:F$1(I$1({timestamp:A$1(),checkedIn:M$1(),rate:M$1()}))})).optional(),bySection:F$1(I$1({sectionId:A$1(),sectionName:A$1(),data:F$1(I$1({timestamp:A$1(),checkedIn:M$1(),rate:M$1()}))})).optional()})]),xd=Vu(`promoterId`,`Promoter identifier`),Sd=Hu({promoterId:A$1().describe(`Promoter identifier`),promoterName:A$1().describe(`Promoter name`),teamId:A$1().describe(`Team identifier`),teamName:A$1().describe(`Team name`)}),Cd=Uu(`promoterId`,`Promoter identifier`),wd=I$1({meta:I$1({promoterId:A$1(),dateRange:Mu,granularity:Pu}),currencies:F$1(I$1({currency:A$1().describe(`Currency code (e.g., USD, EUR)`),series:F$1(Fu),totals:Lu})).describe(`Time-series data grouped by currency`)}),Td=Wu(`promoterId`,`Promoter identifier`),Ed=Bu,Dd=Vu(`teamId`,`Team identifier`),Od=Hu({teamId:A$1().describe(`Team identifier`),teamName:A$1().describe(`Team name`)}),kd=Uu(`teamId`,`Team identifier`),Ad=I$1({meta:I$1({teamId:A$1(),dateRange:Mu,granularity:Pu}),currencies:F$1(I$1({currency:A$1().describe(`Currency code (e.g., USD, EUR)`),series:F$1(Iu),totals:Ru})).describe(`Time-series data grouped by currency`)});Y$1({teamId:A$1().describe(`Team identifier`),limit:M$1().optional().default(10).describe(`Number of events to return`),sortBy:L$1([`revenue`,`tickets`,`conversion`]).optional().default(`revenue`).describe(`Sort metric`)});I$1({meta:I$1({teamId:A$1(),dateRange:I$1({start:A$1(),end:A$1()}),limit:M$1(),sortBy:A$1()}),data:F$1(I$1({eventId:A$1().describe(`Event identifier`),eventName:A$1().describe(`Event name`),eventDate:A$1().describe(`Event date`).optional(),status:A$1().describe(`Event status`),revenue:M$1().describe(`Total revenue in cents`),tickets:M$1().describe(`Tickets sold`),views:M$1().describe(`Page views`),conversionRate:M$1().describe(`Conversion rate (%)`),contribution:M$1().describe(`% of promoter's total revenue`)})),totals:I$1({events:M$1().describe(`Total events in period`),revenue:M$1().describe(`Combined revenue`),tickets:M$1().describe(`Combined tickets`)})});const Nd=Wu(`teamId`,`Team identifier`),Pd=Bu,Fd=Y$1({teamId:A$1().describe(`Team identifier`)}),Id=I$1({stages:F$1(I$1({stageId:A$1().describe(`Funnel stage identifier`),stageLabel:A$1().describe(`Human-readable stage name`),count:M$1().describe(`Number of events at this stage`),conversionRate:M$1().describe(`Conversion rate from first stage (%)`),dropoffPercent:M$1().describe(`Dropoff rate from previous stage (%)`)}))}),Ld=Y$1({teamId:A$1().describe(`Team identifier`),groupBy:L$1([`HOUR`,`DAY_OF_WEEK`,`DAY`,`WEEK`,`MONTH`]).optional().default(`HOUR`).describe(`Time breakdown for aggregation`),timeZone:A$1().optional().default(`UTC`).describe(`IANA timezone for hour/day aggregation (e.g., 'America/New_York')`)}),Rd=I$1({groupBy:L$1([`HOUR`,`DAY_OF_WEEK`,`DAY`,`WEEK`,`MONTH`]).describe(`The grouping used for aggregation`),buckets:F$1(I$1({key:gs([M$1(),A$1()]).describe(`Bucket key (hour 0-23, day 0-6, or date string)`),label:A$1().describe(`Human-readable label`),orderCount:M$1().describe(`Number of orders`),sharePercent:M$1().describe(`Percentage of total orders`)})),totalOrders:M$1().describe(`Total orders across all buckets`)}),zd=Y$1({teamId:A$1().describe(`Team identifier`),limit:M$1().optional().default(10).describe(`Maximum number of admissions to return`)}),Bd=I$1({admissions:F$1(I$1({admissionId:A$1().describe(`Admission identifier`),admissionName:A$1().describe(`Admission name`),ticketCount:M$1().describe(`Number of tickets sold`),sharePercent:M$1().describe(`Percentage of total tickets`)})),totalTickets:M$1().describe(`Total tickets across all admissions`)}),Vd=Y$1({teamId:A$1().describe(`Team identifier`),type:L$1([`campaign`,`medium`,`source`]).describe(`Dimension type to analyze`),limit:M$1().optional().default(20).describe(`Maximum number of results to return`)}),Hd=I$1({dimensionType:L$1([`campaign`,`medium`,`source`]).describe(`The dimension type analyzed`),data:F$1(I$1({dimensionValue:A$1().describe(`The dimension value (e.g., campaign name)`),dimensionLabel:A$1().describe(`Human-readable label`),views:M$1().describe(`Total page views`),conversions:M$1().describe(`Total conversions (orders)`),conversionRate:M$1().describe(`Conversion rate (%)`),sharePercent:M$1().describe(`Share of total conversions (%)`)})),totalConversions:M$1().describe(`Total conversions across all dimensions`)}),Ud=Y$1({teamId:A$1().describe(`Team identifier`),granularity:L$1([`DAY`,`WEEK`,`MONTH`]).optional().default(`DAY`).describe(`Time granularity for aggregation`)}),Wd=I$1({granularity:L$1([`DAY`,`WEEK`,`MONTH`]).describe(`The granularity used`),series:F$1(I$1({date:A$1().describe(`Date key (YYYY-MM-DD, YYYY-Www, or YYYY-MM)`),label:A$1().describe(`Human-readable label`),productViewed:M$1().describe(`Page views`),productAdded:M$1().describe(`Add to cart events`),checkoutStarted:M$1().describe(`Checkout started events`),orderCompleted:M$1().describe(`Completed orders`)})),totals:I$1({productViewed:M$1().describe(`Total page views`),productAdded:M$1().describe(`Total add to cart`),checkoutStarted:M$1().describe(`Total checkouts started`),orderCompleted:M$1().describe(`Total orders completed`),uniqueVisitors:M$1().describe(`Unique visitors (estimated via HyperLogLog, ~0.8% error)`)})}),Gd=L$1(`Page Viewed.Screen Viewed.Products Searched.Product List Viewed.Product List Filtered.Promotion Viewed.Promotion Clicked.Product Clicked.Product Viewed.Product Added.Product Removed.Cart Viewed.Checkout Started.Checkout Step Viewed.Checkout Step Completed.Payment Info Entered.Order Completed.Order Updated.Order Refunded.Order Cancelled.Coupon Entered.Coupon Applied.Coupon Denied.Coupon Removed.Product Added to Wishlist.Product Removed from Wishlist.Wishlist Product Added to Cart.Product Shared.Cart Shared.Product Reviewed`.split(`.`)),Kd=Gd.enum,qd=I$1({product_id:A$1().optional().describe(`admission_id in ticketing context`),sku:A$1().optional().describe(`admission_id or admission_name`),category:A$1().optional().describe(`event_name or "Admission"`),name:A$1().optional().describe(`admission_name`),brand:A$1().optional().describe(`promoter_name`),variant:A$1().optional().describe(`section_name`),price:M$1().optional().describe(`admission price (base + booking fee)`),quantity:M$1().optional().describe(`number of tickets`),coupon:A$1().optional().describe(`coupon code applied`),position:M$1().optional().describe(`position in list`),url:A$1().optional().describe(`URL to event/admission page`),image_url:A$1().optional().describe(`event image`),admission_id:A$1().optional().describe(`Explicit admission ID`),section_id:A$1().optional().describe(`Section ID if applicable`),event_id:A$1().optional().describe(`Event ID for this admission`),promoter_id:A$1().optional().describe(`Promoter ID`),price_base:M$1().nullish().describe(`Base price before fees`),price_booking_fee:M$1().nullish().describe(`Booking fee`),capacity:M$1().optional().describe(`Total capacity for this admission`),available:M$1().optional().describe(`Remaining tickets available`),sold:M$1().optional().describe(`Tickets already sold`)}),Jd=I$1({type:A$1(),value:A$1()}),Yd=I$1({type:A$1(),value:A$1()}),Xd=I$1({query:gs([A$1(),Ss(A$1(),os())]).optional(),list_id:A$1().optional(),category:A$1().optional(),filters:F$1(Jd).optional(),sorts:F$1(Yd).optional(),promotion_id:A$1().optional(),creative:A$1().optional(),name:A$1().optional(),position:gs([A$1(),M$1()]).optional(),product_id:A$1().optional(),sku:A$1().optional(),brand:A$1().optional(),variant:A$1().optional(),price:M$1().optional(),quantity:M$1().optional(),coupon:A$1().optional(),currency:A$1().optional(),value:M$1().optional(),url:A$1().optional(),image_url:A$1().optional(),cart_id:A$1().optional(),checkout_id:A$1().optional(),step:M$1().optional(),shipping_method:A$1().optional(),payment_method:A$1().optional(),order_id:A$1().optional(),affiliation:A$1().optional(),subtotal:M$1().optional(),total:M$1().optional(),revenue:M$1().optional(),shipping:M$1().optional(),tax:M$1().optional(),discount:M$1().optional(),coupon_id:A$1().optional(),coupon_name:A$1().optional(),reason:A$1().optional(),wishlist_id:A$1().optional(),wishlist_name:A$1().optional(),share_via:A$1().optional(),share_message:A$1().optional(),recipient:A$1().optional(),review_id:A$1().optional(),review_body:A$1().optional(),rating:A$1().optional(),products:F$1(qd).optional(),event_id:A$1().optional().describe(`ID of the ticketed event (evt_xxx)`),event_name:A$1().optional().describe(`Name of the ticketed event`),event_slug:A$1().optional().describe(`URL slug of event`),event_starts_at:U$2.optional().describe(`When the event starts (naive datetime, no timezone)`),event_ends_at:U$2.optional().describe(`When the event ends (naive datetime, no timezone)`),event_status:L$1([`UPCOMING`,`LIVE`,`ENDED`,`CANCELLED`]).optional(),event_visibility:L$1([`PUBLIC`,`PRIVATE`]).optional(),event_location:A$1().optional().describe(`Venue name`),event_city:A$1().optional().describe(`Venue city`),event_country:A$1().optional().describe(`Venue country`),promoter_id:A$1().optional().describe(`ID of the promoter (pmt_xxx)`),promoter_name:A$1().optional().describe(`Name of the promoter`),promoter_slug:A$1().optional().describe(`URL slug of promoter`),admission_id:A$1().optional().describe(`ID of admission type (adm_xxx)`),admission_name:A$1().optional().describe(`Name of admission (e.g., "General Admission")`),admission_capacity:M$1().optional().describe(`Total capacity for this admission`),admission_available:M$1().optional().describe(`Tickets still available`),admission_sold:M$1().optional().describe(`Tickets already sold`),section_id:A$1().optional().describe(`ID of section (sct_xxx)`),section_name:A$1().optional().describe(`Name of section (e.g., "VIP", "General")`),section_capacity:M$1().optional().describe(`Total capacity for this section`),section_available:M$1().optional().describe(`Spots still available in section`),ticket_id:A$1().optional().describe(`Individual ticket ID (tkt_xxx)`),ticket_status:L$1([`VALID`,`REDEEMED`,`CANCELLED`]).optional(),tickets_quantity:M$1().optional().describe(`Number of tickets in transaction`),customer_id:A$1().optional().describe(`Customer ID (cus_xxx)`),customer_email:A$1().optional().describe(`Customer email`),customer_first_name:A$1().optional(),customer_last_name:A$1().optional(),price_base:M$1().nullish().describe(`Base price before fees`),price_booking_fee:M$1().nullish().describe(`Booking fee amount`),price_discount_amount:M$1().nullish().describe(`Discount amount applied`),sale_starts_at:U$2.optional().describe(`When tickets go on sale (naive datetime, no timezone)`),sale_ends_at:U$2.optional().describe(`When ticket sales end (naive datetime, no timezone)`),entry_starts_at:U$2.optional().describe(`When entry to event begins (naive datetime, no timezone)`),entry_ends_at:U$2.optional().describe(`When entry to event ends (naive datetime, no timezone)`),funnel_step:A$1().optional().describe(`Current funnel step (e.g., "browse", "cart", "checkout")`),time_to_purchase:M$1().optional().describe(`Seconds from first view to purchase`),session_duration:M$1().optional().describe(`Total session duration in seconds`),referrer_type:L$1([`DIRECT`,`SOCIAL`,`EMAIL`,`SEARCH`,`REFERRAL`,`AD`]).optional(),campaign_id:A$1().optional().describe(`Marketing campaign ID`),affiliate_id:A$1().optional().describe(`Affiliate partner ID`),promo_code_used:A$1().optional().describe(`Promotional code applied`),platform:L$1([`WEB`,`MOBILE_WEB`,`IOS`,`ANDROID`]).optional(),app_version:A$1().optional(),device_type:L$1([`MOBILE`,`TABLET`,`DESKTOP`]).optional()}),Zd=I$1({session_id:A$1(),user_id:A$1().optional(),anonymous_id:A$1().optional(),utm_source:A$1().optional(),utm_medium:A$1().optional(),utm_campaign:A$1().optional(),utm_term:A$1().optional(),utm_content:A$1().optional(),page:I$1({url:A$1(),path:A$1(),title:A$1()}),referrer:A$1().optional(),user_agent:A$1().optional(),ip:A$1().optional(),geo:I$1({country:A$1().optional().describe(`Country code (e.g., "AU")`),countryName:A$1().optional().describe(`Country name (e.g., "Australia")`),region:A$1().optional().describe(`State/province code`),regionName:A$1().optional().describe(`State/province name (e.g., "New South Wales")`),city:A$1().optional().describe(`City name`),latitude:A$1().optional().describe(`Latitude`),longitude:A$1().optional().describe(`Longitude`)}).optional(),fbc:A$1().optional().describe(`Facebook click ID`),fbp:A$1().optional().describe(`Facebook browser ID`),ttclid:A$1().optional().describe(`TikTok click ID`)}),Qd=I$1({id:A$1(),eventId:A$1().min(1).describe(`Event being tracked (evt_123)`),teamId:A$1().min(1).describe(`Team ID (team_123)`),promoterId:A$1().min(1).describe(`Promoter ID (pmt_123)`),eventType:Gd,timestamp:A$1(),date:A$1().describe(`YYYY-MM-DD`),hour:M$1().int().min(0).max(23),properties:Xd,context:Zd,productId:A$1().optional(),createdAt:A$1(),updatedAt:A$1()}),$d=Qd.omit({id:true,timestamp:true,date:true,hour:true,createdAt:true,updatedAt:true}).meta({description:`Schema for tracking an analytics event. Excludes system-generated fields`}),ef=I$1({legacyOrgId:A$1().min(1),legacyEventId:A$1().min(1),legacyTeamId:A$1().min(1),legacyEventName:A$1().optional(),legacyEventSlug:A$1().optional(),legacyEventCreatedAt:gs([A$1(),fs(),ns()]).optional(),legacyTeamCreatedAt:gs([A$1(),fs(),ns()]).optional()}),tf=I$1({eventName:A$1().min(1).optional(),eventType:Gd.optional(),eventId:A$1().min(1).optional(),teamId:A$1().min(1).optional(),promoterId:A$1().min(1).optional(),properties:Ss(A$1(),os()).optional(),context:Zd.partial().optional(),legacyContext:ef.optional()}).passthrough().meta({description:`Compatibility schema for legacy Sash analytics payloads that require server-side ID normalization`}),nf=gs([$d,tf]).meta({description:`Analytics ingress schema accepting both canonical payloads and legacy Sash-compatible payloads`});Au({eventId:A$1().meta({description:`Event ID to get tracking events for`}),limit:R$1().int().positive().optional().meta({description:`Maximum number of events to return`})}).meta({description:`Schema for retrieving tracking events for an event`});I$1({id:A$1(),email:Mo(),firstName:A$1(),lastName:A$1(),imageUrl:A$1().url().optional(),tenantId:A$1(),createdAt:A$1().datetime(),updatedAt:A$1().datetime()});const vf=L$1([`AIRWALLEX`,`STRIPE`]),bf=I$1({id:A$1().readonly().meta({examples:[x$1.Beneficiary.id],description:`A unique identifier for this beneficiary.`}),createdAt:O$1().readonly().meta({examples:[x$1.Beneficiary.createdAt],description:`Timestamp in ISO 8601 format when this beneficiary was created.`}),updatedAt:O$1().readonly().meta({examples:[x$1.Beneficiary.updatedAt],description:`Timestamp in ISO 8601 format when this beneficiary was last updated.`}),name:A$1().meta({examples:[x$1.Beneficiary.name],description:`The account name for this beneficiary.`}),currency:z$1.meta({examples:[x$1.Beneficiary.currency],description:`Three-letter ISO 4217 currency code for payouts.`}),gateway:vf.meta({examples:[`STRIPE`],description:`The payment gateway used for processing payouts.`}),gatewayId:A$1().meta({examples:[x$1.Beneficiary.gatewayId],description:`The identifier assigned by the payment gateway to this account.`}),teamId:A$1().meta({description:`Team that owns this beneficiary account.`}),teamIds:F$1(A$1()).meta({examples:[[]],description:`List of team IDs this beneficiary is assigned to. Empty array means available to all teams.`}),venueIds:F$1(A$1()).meta({examples:[[]],description:`List of venue IDs this beneficiary is assigned to. Empty array means team-level only (available to all venues).`})}).meta({description:`beneficiary`}),xf=I$1({city:A$1().optional(),country_code:A$1(),postcode:A$1().optional(),state:A$1().optional(),street_address:A$1().optional()}),Sf=I$1({account_currency:A$1(),account_name:A$1(),account_number:A$1().optional(),account_routing_type1:A$1().optional(),account_routing_value1:A$1().optional(),account_routing_type2:A$1().optional(),account_routing_value2:A$1().optional(),bank_account_category:A$1().optional(),bank_branch:A$1().optional(),bank_country_code:A$1(),bank_name:A$1().optional(),bank_street_address:A$1().optional(),binding_mobile_number:A$1().optional(),fingerprint:A$1().optional(),iban:A$1().optional(),local_clearing_system:A$1().optional(),swift_code:A$1().optional(),transaction_reference:A$1().optional(),account_identifier_type:A$1().optional(),account_identifier_value:A$1().optional()}),Cf=I$1({transfer_methods:F$1(L$1([`SWIFT`,`LOCAL`])).meta({examples:[[`LOCAL`]],description:`Transfer methods supported for this beneficiary`}),beneficiary:I$1({company_name:A$1().optional(),date_of_birth:A$1().optional(),entity_type:A$1().meta({examples:[`COMPANY`],description:`Whether the beneficiary is PERSONAL or COMPANY`}),first_name:A$1().optional(),last_name:A$1().optional(),address:xf,bank_details:Sf,additional_info:I$1({personal_email:Mo().optional()}).optional()}).meta({description:`Beneficiary details including personal/company info, address, and bank details`})}).meta({description:`Complete beneficiary request structure for Airwallex validation`}),wf=Cf.extend({id:A$1().optional()}),Tf=bf.omit({id:true,createdAt:true,updatedAt:true,currency:true}).extend({currency:z$1.meta({examples:[x$1.Beneficiary.currency],description:`Three-letter ISO 4217 currency code for payouts to this beneficiary account`}),airwallex:wf.optional().meta({examples:[x$1.AirwallexBeneficiary],description:`Airwallex-specific beneficiary details including bank account information and address (required when gateway is AIRWALLEX)`}),teamIds:F$1(A$1()).optional().default([]).meta({examples:[[]],description:`List of team IDs to assign this beneficiary to. Empty array or omitted means available to all teams.`}),venueIds:F$1(A$1()).optional().default([]).meta({examples:[[]],description:`List of venue IDs to assign this beneficiary to. Empty array or omitted means team-level only.`})}).meta({description:`Schema for creating a new beneficiary account for receiving payouts`}),Ef=bf.pick({id:true}).meta({description:`Schema for retrieving a single beneficiary by its unique identifier`}),Df=Ef.meta({description:`Schema for deleting a beneficiary account - requires the beneficiary ID`}),Of=I$1({teamId:A$1().optional().meta({examples:[x$1.Team.id],description:`Optional identifier of the team whose beneficiaries to list. When provided, only beneficiaries for that team are returned.`}),gateway:L$1([`AIRWALLEX`,`STRIPE`]).optional().meta({examples:[x$1.Beneficiary.gateway],description:`Filter beneficiaries by payment gateway provider (optional)`}),currency:z$1.optional().meta({examples:[x$1.Beneficiary.currency],description:`Filter beneficiaries by currency code (optional)`}),query:A$1().optional().meta({examples:[`beneficiary`],description:`Optional search query to filter beneficiaries by name or gateway identifier. When provided, search-backed pagination is used.`}),limit:Mc(`beneficiaries`).optional(),cursor:A$1().optional().meta({examples:[`eyJpZCI6ImJlbl8wMWpwczVjZ3NlNW42bWcxeW1rZXc5dHNmaCJ9`],description:`Pagination cursor returned by a previous request. Omit on the first request.`})}).meta({description:`Query parameters for listing beneficiaries with pagination and optional filters`}),kf=G$2(bf,`beneficiaries`),Af=I$1({beneficiary:bf}),jf=I$1({min:M$1().optional().meta({description:`Minimum number of time units for the transfer`}),max:M$1().optional().meta({description:`Maximum number of time units for the transfer`}),unit:A$1().optional().meta({examples:[`day`],description:`Time unit (e.g., 'day', 'hour')`})}).meta({description:`Expected transfer completion time range`}),Mf=I$1({min:M$1().optional().meta({description:`Minimum transfer amount`}),max:M$1().optional().meta({description:`Maximum transfer amount`})}).meta({description:`Transfer amount limits`}),Nf=I$1({label:A$1().meta({description:`Display label for the option`}),value:A$1().meta({description:`Value to submit when selected`}),flightTime:jf.optional().meta({description:`Expected transfer time for TRANSFER_METHOD options`}),transferLimit:Mf.optional().meta({description:`Transfer amount limits for TRANSFER_METHOD options`}),processingTime:A$1().optional().meta({description:`Human-readable processing time description`})}).meta({description:`A selectable option in a form field`}),Pf=I$1({type:L$1([`INPUT`,`SELECT`,`RADIO`,`TRANSFER_METHOD`,`DYNAMIC_SELECT`]).meta({examples:[`INPUT`],description:`The type of form input to render`}),label:A$1().optional().meta({description:`Display label for the field`}),placeholder:A$1().optional().meta({description:`Placeholder text for input fields`}),description:A$1().optional().meta({description:`Detailed description of the field`}),tip:A$1().optional().meta({description:`Tooltip information shown on hover`}),example:A$1().optional().meta({description:`Example value for the field`}),default:A$1().optional().meta({description:`Default value to pre-populate the field`}),key:A$1().optional().meta({description:`Unique key identifier for the field`}),options:F$1(Nf).optional().meta({description:`Available options for SELECT and RADIO field types`}),refresh:P$1().optional().meta({description:`When true, changing this field's value should trigger a schema refresh. Note: only documented API parameters (transfer_method, local_clearing_system) actually update the schema.`})}).meta({description:`Field definition containing type, label, options, and metadata from Airwallex`}),Ff=I$1({pattern:A$1().optional().meta({description:`Regex pattern for field validation`}),type:A$1().optional().meta({description:`Validation type identifier`})}).meta({description:`Validation rules for a form field`}),If=I$1({path:A$1().meta({examples:[`beneficiary.bank_details.account_number`],description:`Dot-notation path to the field in the beneficiary request object`}),enabled:P$1().meta({examples:[true],description:`Whether this field should be displayed`}),required:P$1().meta({examples:[true],description:`Whether this field is required for submission`}),field:Pf.optional().meta({description:`Field definition with type, label, and options`}),rule:Ff.optional().meta({description:`Validation rules for the field`})}).meta({description:`A single field in the beneficiary form schema with display and validation rules`}),Lf=I$1({bankCountryCode:A$1().regex(/^[A-Z]{2}$/).meta({examples:[`AU`],description:`Two-letter ISO 3166-1 alpha-2 country code for the bank location`}),accountCurrency:z$1.meta({examples:[`AUD`],description:`Three-letter ISO 4217 currency code for the beneficiary account`}),entityType:L$1([`PERSONAL`,`COMPANY`]).meta({examples:[`COMPANY`],description:`Whether the beneficiary is an individual or a company`}),transferMethod:L$1([`LOCAL`,`SWIFT`]).optional().meta({examples:[`LOCAL`],description:`Transfer method: SWIFT for international wire transfers, LOCAL for domestic transfers`}),localClearingSystem:A$1().optional().meta({examples:[`NPP`],description:`Local clearing system for domestic transfers (e.g., NPP, BANK_TRANSFER, BPAY for Australia). Only applicable when transferMethod is LOCAL.`}),fieldValues:Ss(A$1(),A$1()).optional().meta({examples:[{"beneficiary.bank_details.account_routing_type1":`phone_number`}],description:`Current values of fields with refresh=true. Used to get dynamic schema updates based on user selections.`})}).meta({description:`Parameters to fetch the form schema for a beneficiary.`}),Rf=I$1({fields:F$1(If).meta({description:`Array of form fields with their display and validation configuration`}),selectedTransferMethod:L$1([`LOCAL`,`SWIFT`]).optional().meta({examples:[`LOCAL`],description:`The transfer method used to generate this schema. When not provided in the request, LOCAL is auto-selected if available.`}),selectedLocalClearingSystem:A$1().optional().meta({examples:[`NPP`],description:`The local clearing system used to generate this schema, if applicable.`})}).meta({description:`Form schema response containing all fields needed to collect beneficiary details`}),zf=v$1.route({method:`GET`,path:`/beneficiaries/schema`,summary:`Get beneficiary form schema`,description:`Returns the form schema containing all fields required to create a beneficiary for the given country, currency, entity type, and transfer method combination. Use this to dynamically render the beneficiary creation form.`,tags:[`Beneficiaries`]}).input(Lf.strict()).output(Rf),Bf=I$1({source:A$1().meta({examples:[`beneficiary.bank_details.account_number`],description:`Dot-notation path to the field that failed validation`}),code:A$1().meta({examples:[`001`],description:`Airwallex validation error code`}),message:A$1().meta({examples:[`This field is required`],description:`Human-readable error message`})}).meta({description:`Details about a single validation error for a field`}),Vf=Cf.meta({description:`Beneficiary request data to validate against Airwallex rules before creating`}),Hf=I$1({valid:P$1().meta({examples:[true],description:`Whether the beneficiary request passed all validation rules`}),errors:F$1(Bf).optional().meta({description:`Array of validation errors when valid is false. Each error contains the field path, error code, and message.`})}).meta({description:`Validation result indicating whether the beneficiary request is valid for creation`}),Uf=v$1.route({method:`POST`,path:`/beneficiaries/validate`,summary:`Validate beneficiary request`,description:`Validates a beneficiary request against Airwallex rules without creating the beneficiary. Use this to provide real-time validation feedback before submission.`,tags:[`Beneficiaries`]}).input(Vf.strict()).output(Hf),Wf=v$1.route({method:`GET`,path:`/events/{eventId}/admissions/{id}`,summary:`Get admission by ID`,tags:[`Admissions`]}).input(Al.strict()).output(Il),Gf=v$1.route({method:`POST`,path:`/events/{eventId}/admissions`,summary:`Create a new admission`,tags:[`Admissions`]}).input(Ol.strict()).output(Il),Kf=v$1.route({method:`PUT`,path:`/events/{eventId}/admissions/{id}`,summary:`Update an admission`,tags:[`Admissions`]}).input(Ll.strict()).output(Il);var qf={get:Wf,list:v$1.route({method:`GET`,path:`/events/{eventId}/admissions`,summary:`List admissions`,description:`Returns admissions with cursor-based pagination. Automatically uses search-backed pagination when query parameter is provided for full-text search capabilities.`,tags:[`Admissions`]}).input(jl.strict()).output(Ml),create:Gf,update:Kf,remove:v$1.route({method:`DELETE`,path:`/events/{eventId}/admissions/{id}`,summary:`Delete an admission`,tags:[`Admissions`]}).input(kl.strict()).output(Il),quote:v$1.route({method:`POST`,path:`/events/{eventId}/admissions/quote`,summary:`Create an admission quote`,tags:[`Admissions`]}).input(Pl.strict()).output(Fl)},Jf={track:v$1.route({method:`POST`,path:`/analytics/track`,summary:`Track event`,tags:[`Analytics`]}).input(nf).output(Qd),page:v$1.route({method:`POST`,path:`/analytics/page`,summary:`Page event`,tags:[`Analytics`]}).input(nf).output(Qd),identify:v$1.route({method:`POST`,path:`/analytics/identify`,summary:`Identify event`,tags:[`Analytics`]}).input(nf).output(Qd),alias:v$1.route({method:`POST`,path:`/analytics/alias`,summary:`Alias event`,tags:[`Analytics`]}).input(nf).output(Qd),group:v$1.route({method:`POST`,path:`/analytics/group`,summary:`Group event`,tags:[`Analytics`]}).input(nf).output(Qd),screen:v$1.route({method:`POST`,path:`/analytics/screen`,summary:`Screen event`,tags:[`Analytics`]}).input(nf).output(Qd)};const Yf=v$1.route({method:`GET`,path:`/beneficiaries/{id}`,summary:`Get beneficiary by ID`,tags:[`Beneficiaries`]}).input(Ef.strict()).output(Af),Xf=v$1.route({method:`POST`,path:`/beneficiaries`,summary:`Create a new beneficiary`,tags:[`Beneficiaries`]}).input(Tf.strict()).output(Af);var Zf={get:Yf,list:v$1.route({method:`GET`,path:`/beneficiaries`,summary:`List beneficiaries with cursor-based pagination`,description:"Returns beneficiary data with cursor-based pagination and optional full-text search via the `query` parameter.",tags:[`Beneficiaries`]}).input(Of.strict()).output(kf),create:Xf,remove:v$1.route({method:`DELETE`,path:`/beneficiaries/{id}`,summary:`Delete a beneficiary`,tags:[`Beneficiaries`]}).input(Df.strict()).output(Af),schema:zf,validate:Uf};const Qf=L$1([`AMOUNT`,`PERCENT`]),ep=L$1([`TEAM`,`PROMOTER`,`EVENTS`,`SECTIONS`,`ADMISSIONS`]),np=I$1({id:A$1().readonly().meta({examples:[x$1.Coupon.id],description:`A unique identifier for this coupon.`}),couponId:A$1().optional().readonly().meta({examples:[x$1.Coupon.couponId],description:`Duplicate of id field for GSI queries.`}),createdAt:O$1().readonly().meta({examples:[x$1.Coupon.createdAt],description:`Timestamp in ISO 8601 format when this coupon was created.`}),updatedAt:O$1().readonly().meta({examples:[x$1.Coupon.updatedAt],description:`Timestamp in ISO 8601 format when this coupon was last updated.`}),name:A$1().meta({examples:[x$1.Coupon.name],description:`Internal label for the coupon, visible to event organisers.`}),active:P$1().optional().meta({examples:[x$1.Coupon.active],description:`Whether this coupon is currently active.`}),kind:Qf.meta({examples:[`PERCENT`],description:`Type of discount this coupon gives: a fixed amount or a percentage.`}),filter:ep.meta({examples:[`EVENTS`],description:`Scope of the coupon. TEAM applies to all events in the team. PROMOTER applies to all events by specified promoters. EVENTS/SECTIONS/ADMISSIONS apply to specific items.`}),currency:z$1.optional().meta({examples:[x$1.Coupon.currency],description:`Three-letter ISO 4217 currency code. Required for AMOUNT coupons. Optional for PERCENT coupons - when omitted, applies to all currencies.`}),discount:M$1().min(0).meta({examples:[x$1.Coupon.discount],description:`The discount value. If kind is 'amount', this is a currency amount. If kind is 'percent', this is a percentage.`}),limit:M$1().meta({examples:[x$1.Coupon.limit],description:`Maximum number of times the coupon can be redeemed across all customers.`}),uses:M$1().optional().meta({examples:[x$1.Coupon.uses],description:`Number of times this coupon has been redeemed so far.`}),promoters:F$1(I$1({id:A$1().meta({description:`Identifier of a promoter this coupon applies to.`}),name:A$1().meta({description:`Name of a promoter this coupon applies to.`}),slug:A$1().meta({description:`URL slug of a promoter this coupon applies to.`})})).optional().meta({description:`List of promoters this coupon applies to when filter is PROMOTER.`}),events:F$1(I$1({id:A$1().meta({description:`Identifier of an event this coupon applies to.`}),name:A$1().meta({description:`Name of an event this coupon applies to.`}),slug:A$1().meta({description:`URL slug of an event this coupon applies to.`})})).optional().meta({description:`List of events this coupon applies to when filter is EVENTS.`}),sections:F$1(I$1({id:A$1().meta({description:`Identifier of a section this coupon applies to.`}),name:A$1().meta({description:`Name of a section this coupon applies to.`}),eventId:A$1().meta({description:`Identifier of the event this section belongs to.`})})).optional().meta({description:`List of sections this coupon applies to when filter is 'sections'.`}),admissions:F$1(I$1({id:A$1().meta({description:`Identifier of an admission this coupon applies to.`}),name:A$1().meta({description:`Name of an admission this coupon applies to.`}),eventId:A$1().meta({description:`Identifier of the event this admission belongs to.`})})).optional().meta({description:`List of admissions this coupon applies to when filter is 'admissions'.`}),saleStartsAt:U$2.meta({examples:[x$1.Coupon.saleStartsAt],description:`Wall clock time when this coupon becomes valid (no timezone, ISO 8601 format: YYYY-MM-DDTHH:mm:ss)`}),saleEndsAt:U$2.optional().meta({examples:[x$1.Coupon.saleEndsAt],description:`Wall clock time when this coupon expires (no timezone, ISO 8601 format: YYYY-MM-DDTHH:mm:ss)`}),teamId:A$1().meta({description:`Team that created this coupon.`})}).meta({description:`coupon`}),rp=I$1({id:A$1().readonly().meta({examples:[x$1.CouponCode.id],description:`A unique identifier for this coupon code.`}),createdAt:O$1().readonly().meta({examples:[x$1.CouponCode.createdAt],description:`Timestamp in ISO 8601 format when this coupon code was created.`}),updatedAt:O$1().readonly().meta({examples:[x$1.CouponCode.updatedAt],description:`Timestamp in ISO 8601 format when this coupon code was last updated.`}),name:A$1().meta({examples:[x$1.CouponCode.name],description:`The code string that customers enter to redeem the coupon.`}),active:P$1().meta({examples:[x$1.CouponCode.active],description:`Whether this coupon code is currently enabled for use.`}),couponId:A$1().meta({examples:[x$1.Coupon.id],description:`Identifier of the coupon to which this code belongs.`}),teamId:A$1().meta({description:`Team that created this coupon code.`}),uses:M$1().int().nonnegative().default(0).readonly().meta({examples:[0],description:`Number of times this specific coupon code has been used in successful orders.`})}).meta({description:`coupon-code`}),ip=rp.pick({id:true});I$1({couponId:A$1().meta({examples:[x$1.Coupon.id]})});I$1({name:A$1(),couponId:A$1().optional().meta({examples:[x$1.Coupon.id]})});const sp=rp.omit({id:true,createdAt:true,updatedAt:true,uses:true}),cp=rp.omit({createdAt:true,updatedAt:true,couponId:true,teamId:true,uses:true}).partial().extend({id:rp.shape.id}),lp=ip,up=I$1({couponId:A$1().optional().meta({examples:[x$1.Coupon.id],description:`Optional filter to retrieve coupon codes for a specific coupon`}),teamId:A$1().optional().meta({examples:[`tem_01jqpjksnsen9vprw95et60t2m`],description:`Optional filter to retrieve coupon codes created by a specific team`}),active:Zs().optional().meta({examples:[true],description:`Optional filter to retrieve only active or inactive coupon codes`}),query:A$1().optional().meta({examples:[`SUMMER`],description:`Optional search query to filter coupon codes by name. When provided, search-backed pagination is used.`}),limit:Mc(`coupon codes`).optional(),cursor:A$1().optional().meta({examples:[`eyJpZCI6ImNwY18wMWpwczVjZ3NmenR3N2h4Y3ZyMndmdGsyIn0`],description:`Pagination cursor returned by a previous request. Omit on the first request.`})}).meta({description:`Schema for listing coupon codes with optional filtering, search, and pagination`}),dp=G$2(rp,`codes`),fp=I$1({couponCode:rp}),pp=np.omit({id:true,createdAt:true,updatedAt:true}).meta({description:`Schema for creating a new coupon without system-generated fields`}),mp=np.pick({id:true}).meta({description:`Schema for retrieving a single coupon by ID`}),hp=mp.meta({description:`Schema for deleting a coupon by ID with optional soft-delete filtering`}),gp=I$1({teamId:A$1().meta({examples:[x$1.Team.id],description:`Unique identifier of the team whose coupons to retrieve`}),active:Zs().optional().meta({examples:[true],description:`Optional filter to retrieve only active or inactive coupons`}),query:A$1().optional().meta({examples:[`Half Price`],description:`Optional search query to filter coupons by name or description. When provided, search-backed pagination is used.`}),limit:Mc(`coupons`).optional(),cursor:A$1().optional().meta({examples:[`eyJpZCI6ImNwbl8wMWpwczVjZ3NmenMxa3NxYWV0NWhiYThhYyJ9`],description:`Pagination cursor returned by a previous request. Omit on the first request.`})}).meta({description:`Schema for listing coupons belonging to a specific team with optional filtering and pagination`}),_p=G$2(np,`coupons`),vp=I$1({coupon:np}),yp=np.omit({createdAt:true,updatedAt:true,teamId:true}).partial().extend({id:np.shape.id.meta({examples:[x$1.Coupon.id],description:`Unique identifier of the coupon to update`}),saleEndsAt:U$2.nullable().optional().meta({examples:[x$1.Coupon.saleEndsAt],description:`Expiry time. Pass null to remove end date; omit to leave unchanged.`}),currency:z$1.nullable().optional().meta({examples:[`AUD`,`USD`,`GBP`],description:`Three-letter ISO 4217 currency code. Pass null to clear; omit to leave unchanged.`})}).meta({description:`Schema for updating an existing coupon.`}),bp=v$1.route({method:`GET`,path:`/coupon-codes/{id}`,summary:`Get coupon code by ID`,tags:[`Coupon Codes`]}).input(ip.strict()).output(fp),xp=v$1.route({method:`POST`,path:`/coupon-codes`,summary:`Create a new coupon code`,tags:[`Coupon Codes`]}).input(sp.strict()).output(fp),Sp=v$1.route({method:`PUT`,path:`/coupon-codes/{id}`,summary:`Update a coupon code`,tags:[`Coupon Codes`]}).input(cp.strict()).output(fp);var Cp={get:bp,list:v$1.route({method:`GET`,path:`/coupon-codes`,summary:`List coupon codes with cursor-based pagination`,description:"Returns coupon code data with cursor-based pagination and optional full-text search via the `query` parameter.",tags:[`Coupon Codes`]}).input(up.strict()).output(dp),create:xp,update:Sp,remove:v$1.route({method:`DELETE`,path:`/coupon-codes/{id}`,summary:`Delete a coupon code`,tags:[`Coupon Codes`]}).input(lp.strict()).output(fp)};const wp=v$1.route({method:`GET`,path:`/coupons/{id}`,summary:`Get coupon by ID`,tags:[`Coupons`]}).input(mp.strict()).output(vp),Tp=v$1.route({method:`POST`,path:`/coupons`,summary:`Create a new coupon`,tags:[`Coupons`]}).input(pp.strict()).output(vp),Ep=v$1.route({method:`PUT`,path:`/coupons/{id}`,summary:`Update a coupon`,tags:[`Coupons`]}).input(yp.strict()).output(vp);var Dp={get:wp,list:v$1.route({method:`GET`,path:`/coupons`,summary:`List coupons with cursor-based pagination`,description:"Returns coupon data with cursor-based pagination and optional full-text search via the `query` parameter.",tags:[`Coupons`]}).input(gp.strict()).output(_p),create:Tp,update:Ep,remove:v$1.route({method:`DELETE`,path:`/coupons/{id}`,summary:`Delete a coupon`,tags:[`Coupons`]}).input(hp.strict()).output(vp),code:Cp},Op={suggestTags:v$1.route({method:`POST`,path:`/events/tags`,summary:`Suggest event genres and categories`,description:`Uses AI to analyze event description and optional artwork to suggest relevant music genres and event categories. Returns up to 5 genres and 10 categories with a confidence score.`,tags:[`Events`]}).input(Rl.strict()).output(zl)};const kp=I$1({eventId:V$1.meta({description:`Event to like`})}).meta({description:`Request to like an event`}),Ap=I$1({limit:Mc(`likes`),cursor:A$1().optional().meta({description:`Pagination cursor from previous response. Used to fetch next page of results`})}).meta({description:`Query parameters for listing the current user's liked events with pagination. Returns events sorted by most recently liked first.`}),jp=I$1({tenantId:A$1().readonly().meta({description:`Tenant ID for multi-tenant isolation`}),userId:lc.readonly().meta({description:`User who liked the event`}),eventId:V$1.meta({description:`Event the user liked`}),createdAt:O$1().readonly().meta({description:`Timestamp when the user liked the event`})}).meta({description:`Represents a user's like on an event. Used for tracking popular events and building personalized recommendations.`}),Mp=G$2(jp,`likes`).meta({description:`Paginated list of event likes. Use cursor-based pagination to navigate through results.`}),Np=I$1({eventId:V$1.meta({description:`Event to remove like from`})}).meta({description:`Request to remove the current user's like from an event`}),Pp=I$1({like:jp});var Fp={add:v$1.route({method:`POST`,path:`/events/{eventId}/like`,summary:`Like an event`,description:`Like an event as the current user. Atomically increments the event's likes counter.`,tags:[`Events`]}).input(kp).output(Pp),remove:v$1.route({method:`DELETE`,path:`/events/{eventId}/like`,summary:`Remove like from an event`,description:`Remove the current user's like from an event. Atomically decrements the event's likes counter.`,tags:[`Events`]}).input(Np).output(us()),list:v$1.route({method:`GET`,path:`/events/likes`,summary:`List liked events`,description:`List all events the current user has liked, with cursor-based pagination.`,tags:[`Events`]}).input(Ap).output(Mp)};const Ip=I$1({id:cc.readonly().meta({examples:[x$1.Location.id],description:`Location identifier`}),googlePlaceId:A$1().optional().meta({examples:[`ChIJP3Sa8ziYEmsRUKgyFmh9AQM`],description:`Google Place ID for this location`}),createdAt:O$1().meta({examples:[x$1.Location.createdAt],description:`Timestamp in ISO 8601 format when the location was created`}),updatedAt:O$1().meta({examples:[x$1.Location.updatedAt],description:`Timestamp in ISO 8601 format when the location was last updated`}),name:A$1().meta({examples:[x$1.Location.name],description:`Location name`}),address:A$1().meta({examples:[x$1.Location.address],description:`Formatted address`}),city:A$1().optional().meta({examples:[x$1.Location.city],description:`City name`}),state:A$1().optional().meta({examples:[x$1.Location.state],description:`State or region`}),postcode:A$1().optional().meta({examples:[x$1.Location.postcode],description:`Postal code`}),country:A$1().meta({examples:[x$1.Location.country],description:`Country name`}),latitude:M$1().min(-90).max(90).meta({examples:[x$1.Location.latitude],description:`Latitude coordinate`}),longitude:M$1().min(-180).max(180).meta({examples:[x$1.Location.longitude],description:`Longitude coordinate`}),timeZone:A$1().min(1).regex(/^[A-Za-z0-9_+-]+(\/[A-Za-z0-9_+-]+)*$/,{message:`Must be a valid IANA timezone identifier format`}).meta({examples:[x$1.Location.timeZone],description:`IANA timezone identifier (e.g., 'America/New_York', 'Europe/London', 'Australia/Sydney', 'UTC'). Must be validated against the IANA timezone database where used.`}),types:F$1(A$1()).optional().meta({examples:[[`establishment`,`point_of_interest`,`stadium`]],description:`Google Place types indicating the category and nature of this location`}),description:A$1().optional().meta({examples:[`Historic outdoor amphitheater known for summer concerts`],description:`AI-generated description of the place, when available`}),image:H$2.optional().meta({description:`Primary location photo`}),venueId:sc.optional().meta({description:`Venue identifier if this location is a managed venue on the platform`})}).meta({description:`Location with full details including coordinates and timezone`}),Lp=Ip.omit({venueId:true}).extend({venue:I$1({id:sc.meta({description:`Venue identifier`}),name:A$1().meta({description:`Venue name`}),slug:A$1().meta({description:`URL-friendly venue slug`}),teamId:A$1().meta({description:`Team that owns this venue`}),approval:Qs.meta({description:`Venue approval status`}),image:H$2.optional().meta({description:`Venue image`}),description:A$1().optional().meta({description:`Venue description`})}).optional().meta({description:`Denormalized venue details if this location is a managed venue. Only included when venue is approved.`})}),Rp=I$1({id:fc.readonly().meta({examples:[x$1.Promoter.id],description:`Unique identifier for the promoter organization`}),createdAt:O$1().readonly().meta({examples:[x$1.Promoter.createdAt],description:`Timestamp in ISO 8601 format when the promoter was created`}),updatedAt:O$1().readonly().meta({examples:[x$1.Promoter.updatedAt],description:`Timestamp in ISO 8601 format when the promoter was last updated`}),name:A$1().min(3).max(30).meta({examples:[x$1.Promoter.name],description:`Display name of the promoter organization. Must be between 3 and 30 characters`}),slug:A$1().min(3).max(30).meta({examples:[x$1.Promoter.slug],description:`URL-friendly slug for the promoter organization. Must be unique and between 3 and 30 characters`}),teamId:oc.meta({examples:[`tem_01jqpjksnsen9vprw95et60t2m`],description:`ID of the team that owns this promoter. Establishes team-based organization and permissions.`}),description:A$1().meta({examples:[x$1.Promoter.description],description:`Detailed description of the promoter organization and their events`}),approval:Qs.meta({examples:[x$1.Promoter.approval],description:`Approval status of the promoter. PENDING: awaiting review, APPROVED: can create events, REJECTED: cannot operate`}),image:H$2.optional().meta({description:`Optional promotional image for the promoter organization with dimensions and alt text`}),location:Lp.meta({description:`Primary location details for the promoter including address, coordinates, and timezone`}),geohash:A$1().meta({examples:[x$1.Promoter.geohash],description:`Geohash encoding of the promoter's location for efficient spatial queries`}),tracking:I$1({fbId:A$1().optional().meta({examples:[x$1.Promoter.tracking.fbId],description:`Facebook pixel ID for tracking conversions and analytics`}),gtmId:A$1().optional().meta({examples:[x$1.Promoter.tracking.gtmId],description:`Google Tag Manager container ID for web analytics`}),tikTokId:A$1().optional().meta({examples:[x$1.Promoter.tracking.tikTokId],description:`TikTok pixel ID for advertising and conversion tracking`})}).optional().meta({description:`Optional tracking configuration for analytics and advertising platforms`}),metadata:jc}).meta({description:`Promoter organization with location and approval status`}),zp=I$1({id:A$1().readonly().meta({examples:[x$1.Section.id],description:`Unique identifier for the section`}),createdAt:O$1().readonly().meta({examples:[x$1.Section.createdAt],description:`Timestamp when the section was created in ISO 8601 format`}),updatedAt:O$1().readonly().meta({examples:[x$1.Section.updatedAt],description:`Timestamp when the section was last updated in ISO 8601 format`}),name:A$1().meta({examples:[x$1.Section.name],description:`Display name of the section (e.g., 'VIP Area', 'General Admission')`}),capacity:Dc().prefault(-1).meta({examples:[x$1.Section.capacity],description:`Maximum number of attendees for this section. Use -1 for unlimited capacity`}),limit:Oc().prefault(-1).meta({examples:[x$1.Section.limit??-1],description:`Maximum number of tickets for this section that can be purchased in a single order. A value of -1 indicates unlimited`}),available:M$1().min(-1).readonly().meta({examples:[x$1.Section.available],description:`Number of tickets currently available for purchase in this section. Use -1 when capacity is unlimited`}),sold:M$1().min(0).readonly().meta({examples:[x$1.Section.sold],description:`Number of tickets sold for this section`}),reserved:M$1().readonly().meta({examples:[x$1.Section.reserved],description:`Number of tickets currently reserved (in pending orders) for this section`}),order:M$1().min(0).meta({examples:[x$1.Section.order],description:`Display order of the section. Lower numbers appear first in listings`}),location:Ip.meta({description:`Physical location details for the section`}),passcode:A$1().optional().meta({examples:[`VIPACCESS`],description:`Code required to reveal all admissions within this section. Case-insensitive comparison`}),teamId:A$1().meta({description:`Team that owns this section. Denormalized for efficient queries.`}),promoterId:A$1().meta({examples:[x$1.Section.promoterId],description:`Unique identifier of the promoter who owns this section`}),eventId:A$1().meta({examples:[x$1.Section.eventId],description:`Unique identifier of the event this section belongs to`}),eventSlug:A$1().meta({examples:[x$1.Section.eventSlug],description:`URL-friendly identifier of the event this section belongs to`})}).meta({description:`A section represents a distinct area or tier within an event venue with its own capacity and pricing`}),Bp=L$1([`UPCOMING`,`ENDED`]),Hp=L$1([`PUBLIC`,`PRIVATE`,`SCHEDULED`,`PASSCODE`,`CANCELLED`]),Wp=I$1({id:V$1.readonly().meta({examples:[x$1.Event.id],description:`A unique identifier for this event`}),createdAt:O$1().readonly().meta({examples:[x$1.Event.createdAt],description:`Timestamp in ISO 8601 format when this event was created`}),updatedAt:O$1().readonly().meta({examples:[x$1.Event.updatedAt],description:`Timestamp in ISO 8601 format when this event was last updated`}),name:A$1().meta({examples:[x$1.Event.name],description:`The title of the event shown to attendees`}),slug:A$1().meta({examples:[x$1.Event.slug],description:`URL-friendly identifier for the event`}),description:A$1().meta({examples:[x$1.Event.description],description:`Detailed description of the event`}),approval:Qs.meta({examples:[`APPROVED`],description:`Approval status of the event`}),status:Bp.meta({examples:[`UPCOMING`,`ENDED`],description:`Current stage of the event lifecycle`}),visibility:Hp.meta({examples:[`PUBLIC`],description:`Who can see the event`}),currency:z$1.meta({examples:[`AUD`],description:`Three-letter ISO 4217 currency code used for ticket prices`}),url:Io().optional().meta({examples:[`https://example.com`],description:`External URL for the event website or ticket page`}),entryStartsAt:U$2.meta({examples:[x$1.Event.entryStartsAt],description:`Wall clock time when event entry begins (no timezone, displays same everywhere)`}),entryEndsAt:U$2.meta({examples:[x$1.Event.entryEndsAt],description:`Wall clock time when event entry ends (no timezone, displays same everywhere)`}),publishAt:U$2.meta({examples:[x$1.Event.publishAt],description:`Wall clock time when the event becomes publicly visible (no timezone)`}),images:I$1({mobile:H$2.meta({description:`Mobile-optimized image for the event`}),desktop:H$2.meta({description:`Desktop-optimized image for the event`})}),geohash:A$1().meta({examples:[x$1.Event.geohash],description:`Geohash representing the event location`}),location:Lp.meta({description:`Structured location details for the event`}),teamId:oc.meta({description:`Team that owns this event. Denormalized for efficient queries.`}),promoterId:fc.meta({examples:[x$1.Promoter.id],description:`Promoter organizing the event. Must belong to the team.`}),metadata:jc,genres:F$1(A$1()).optional().meta({description:`Music genres for the event (1-5 genres)`,examples:[[`Tech House`,`Melodic Techno`]]}),categories:F$1(A$1()).optional().meta({description:`Event characteristics like vibe, venue type, and amenities (up to 10)`,examples:[[`Day Party`,`Open Air`,`Free Entry`]]}),featured:P$1().optional().meta({description:`Whether this event is an editorial pick`,examples:[true]}),likes:M$1().int().min(0).optional().meta({description:`Number of users who liked this event`,examples:[42]})}).meta({description:`event`}),Gp=Rp.pick({id:true,name:true,slug:true,description:true,image:true}),Kp=Wp.extend({sections:F$1(zp),admissions:F$1(W$2),promoter:Gp.optional().meta({description:`Public summary of the promoter organizing this event. Included on event detail responses only.`}),liked:P$1().optional().meta({description:`Whether the current user has liked this event`,examples:[true,false]})}),qp=I$1({event:Kp}),Jp=Wp.omit({id:true,teamId:true,createdAt:true,updatedAt:true,status:true,approval:true,geohash:true,location:true,featured:true,likes:true}).extend({slug:A$1().min(3).max(100).optional().meta({examples:[x$1.Event.slug],description:`URL-friendly slug for the event. If not provided, will be automatically generated from the name. Must be unique and between 3 and 100 characters`}),passcode:A$1().optional().meta({description:`Passcode for protected access to the event`}),locationId:cc.optional().meta({examples:[`loc_01jqpjksnsen9vprw95et60t2m`],description:`ID of an existing location. Either locationId or googlePlaceId must be provided.`}),googlePlaceId:A$1().optional().meta({examples:[`ChIJN1t_tDeuEmsRUsoyG83frY4`],description:`Google Place ID to create a new location from. Either locationId or googlePlaceId must be provided.`}),genres:ic.optional().meta({description:`Music genres for the event (1-5 genres)`,examples:[[`Tech House`,`Melodic Techno`]]}),categories:nc.meta({description:`Event characteristics like vibe, venue type, and amenities (up to 10)`,examples:[[`Day Party`,`Open Air`,`Free Entry`]]})}).refine(e=>e.locationId||e.googlePlaceId,{message:`Either locationId or googlePlaceId must be provided`}),Yp=I$1({key:A$1().min(1).meta({description:`Event key - either a unique ID (evt_xxx format) or URL-friendly slug`,examples:[x$1.Event.id,x$1.Event.slug]})}),Xp=I$1({key:A$1().min(1).meta({description:`Event key - either a unique ID (evt_xxx format) or URL-friendly slug`,examples:[x$1.Event.id,x$1.Event.slug]}),featured:P$1().meta({description:`Whether the event should be featured (editorial pick)`,examples:[true,false]})}),Zp=I$1({key:A$1().min(1).meta({description:`Event key - either a unique ID (evt_xxx format) or URL-friendly slug`,examples:[x$1.Event.id,x$1.Event.slug]}),passcode:A$1().optional().meta({description:`Passcode for accessing protected events`}),teamId:A$1().optional().meta({description:`Optional team scope. When provided, event must belong to this team.`})}),Qp=I$1({sold:M$1().min(0).meta({description:`Number of tickets sold (net of refunds)`}),reserved:M$1().min(0).meta({description:`Number of tickets reserved`}),available:M$1().min(-1).meta({description:`Number of tickets available (-1 for unlimited)`}),capacity:M$1().min(-1).meta({description:`Total capacity (-1 for unlimited)`})}),$p=I$1({status:L$1([`UPCOMING`,`ENDED`]).optional().meta({examples:[`UPCOMING`],description:`Filter events by their current lifecycle status`}),approval:Qs.optional().meta({examples:[`APPROVED`],description:`Filter events by their approval status`}),visibility:L$1([`PUBLIC`,`PRIVATE`,`SCHEDULED`,`PASSCODE`]).optional().meta({examples:[`PUBLIC`],description:`Filter events by their visibility setting`}),promoterId:A$1().optional().meta({examples:[x$1.Promoter.id],description:`Filter events to only those belonging to a specific promoter. If not provided, returns events from all promoters the user has access to`}),teamId:A$1().optional().meta({description:`Filter events to only those belonging to a specific team. If not provided, returns events from all teams the user has access to`}),venueId:A$1().optional().meta({description:`Filter events to only those at a specific venue. If not provided, returns events at all venues`}),limit:R$1().min(1).max(100).prefault(20).meta({examples:[20],description:`Maximum number of events to return in each result set. Must be between 1 and 100, defaults to 20`}),cursor:A$1().optional().meta({examples:[`evt_01jps5cgsenjrazw6wswmyspa3`],description:`Cursor token for pagination. Provide the cursor from the previous response to continue fetching results`}),query:Xs().optional().meta({examples:[`Test Event`],description:`Search term to filter events by name, description, or location. Triggers full‑text search when provided`}),latitude:R$1().min(-90).max(90).optional().meta({examples:[x$1.Event.location.latitude],description:`Latitude coordinate for geographic search. Provide with longitude (and optional radius)`}),longitude:R$1().min(-180).max(180).optional().meta({examples:[x$1.Event.location.longitude],description:`Longitude coordinate for geographic search. Provide with latitude (and optional radius)`}),radius:R$1().optional().meta({examples:[20],description:`Search radius in kilometers from the provided coordinates. Defaults to 20km`}),country:A$1().optional().meta({examples:[`australia`],description:`Filter by country region slug. Matches events where location.country equals the region name`}),state:A$1().optional().meta({examples:[`nsw`],description:`Filter by state/province region slug. Matches events where location.state equals the region name`}),city:A$1().optional().meta({examples:[`sydney`],description:`Filter by city region slug. Matches events where location.city equals the region name`}),from:A$1().date().optional().meta({examples:[`2024-01-01`],description:`Filter events that start on or after this date (YYYY-MM-DD format). Events with entryStartsAt >= from`}),to:A$1().date().optional().meta({examples:[`2024-12-31`],description:`Filter events that start on or before this date (YYYY-MM-DD format). Events with entryStartsAt <= to`}),genres:F$1(rc).max(20,`Cannot filter by more than 20 genres`).optional().meta({examples:[[`Tech House`,`Melodic Techno`]],description:`Filter events by music genre(s). Returns events matching ANY of the provided genres (OR logic). Maximum 20 genres`}),categories:F$1(tc).max(10,`Cannot filter by more than 10 categories`).optional().meta({examples:[[`Day Party`,`Open Air`]],description:`Filter events by category(s). Returns events matching ANY of the provided categories (OR logic). Maximum 10 categories`}),featured:P$1().optional().meta({examples:[true],description:`Filter to only featured (editorial pick) events`})}).meta({description:`List events with filtering, full‑text search, geo queries, date range filtering, genre/category filtering, and cursor-based pagination`}),em=$p,tm=Dl({booking:`Booking fee for the cheapest publicly purchasable admission, in cents`,currency:`Three-letter ISO 4217 currency code for the cheapest publicly purchasable admission`,price:`Cheapest publicly purchasable admission price for this event, selected by base price`}),nm=G$2(Wp.extend({inventory:Qp.optional(),liked:P$1().optional().meta({description:`Whether the current user has liked this event`,examples:[true,false]}),price:tm.nullable().meta({description:`Cheapest publicly purchasable admission price, or null when no public admission is currently available`})}),`events`),rm=I$1({event:Wp});L$1([`ONLINE`,`DOOR`,`SALE_ENDED`,`SOLD_OUT`]);const om=Wp.omit({createdAt:true,updatedAt:true,promoterId:true,geohash:true,status:true,location:true,featured:true,likes:true}).partial().extend({key:A$1().meta({examples:[x$1.Event.id,x$1.Event.slug],description:`Event key - either a unique ID (evt_xxx format) or URL-friendly slug`}),passcode:A$1().nullable().optional().meta({description:`Passcode for protected access. Pass null to clear; omit to leave unchanged.`}),url:Io().nullable().optional().meta({examples:[`https://example.com/events/summer-festival-2025`],description:`External event URL. Pass null to clear; omit to leave unchanged.`}),locationId:cc.optional().meta({examples:[`loc_01jqpjksnsen9vprw95et60t2m`],description:`ID of an existing location to update to. Either locationId or googlePlaceId can be provided.`}),googlePlaceId:A$1().optional().meta({examples:[`ChIJN1t_tDeuEmsRUsoyG83frY4`],description:`Google Place ID to update location from. Either locationId or googlePlaceId can be provided.`}),genres:ic.optional().meta({description:`Music genres for the event (1-5 genres)`,examples:[[`Tech House`,`Melodic Techno`]]}),categories:nc.meta({description:`Event characteristics like vibe, venue type, and amenities (up to 10)`,examples:[[`Day Party`,`Open Air`,`Free Entry`]]}),notify:P$1().optional().meta({description:`Whether attendees should be notified about this event update.`,examples:[true]})}).meta({description:`Schema for updating an existing event.`}),sm=od.extend({limit:R$1().min(1).max(100).optional().default(10)}),cm=id.extend({limit:R$1().min(1).max(100).optional().default(10)}),lm=cd.extend({limit:R$1().min(1).max(100).optional().default(10)}),um=fd.extend({limit:R$1().min(1).max(100).optional().default(10)}),dm=md.extend({limit:R$1().min(1).max(100).optional().default(10)});var fm={summary:v$1.route({method:`GET`,path:`/events/{eventId}/performance/summary`,summary:`Get event performance summary`,description:`Top-level KPI metrics with period comparison based on tracking events`,tags:[`Event Performance`]}).input(Ku).output(qu),tickets:v$1.route({method:`GET`,path:`/events/{eventId}/performance/tickets`,summary:`Get ticket sales performance`,description:`Time series of sold tickets and successful-order revenue by period, with admission and section breakdowns`,tags:[`Event Performance`]}).input(Ju).output(Yu),funnel:v$1.route({method:`GET`,path:`/events/{eventId}/performance/funnel`,summary:`Get sales funnel performance`,description:`Conversion funnel showing drop-off at each stage from tracking events`,tags:[`Event Performance`]}).input(Xu).output(Zu),campaigns:v$1.route({method:`GET`,path:`/events/{eventId}/performance/campaigns`,summary:`Get campaign performance`,description:`Marketing campaign metrics from tracking events (UTM campaign parameter)`,tags:[`Event Performance`]}).input(sm).output(sd),coupons:v$1.route({method:`GET`,path:`/events/{eventId}/performance/coupons`,summary:`Get coupon performance`,description:`Coupon usage and revenue from actual order data`,tags:[`Event Performance`]}).input(cm).output(ad),mediums:v$1.route({method:`GET`,path:`/events/{eventId}/performance/mediums`,summary:`Get traffic medium performance`,description:`Performance by traffic medium (social, email, cpc) from tracking events`,tags:[`Event Performance`]}).input(lm).output(ld),devices:v$1.route({method:`GET`,path:`/events/{eventId}/performance/devices`,summary:`Get device performance`,description:`Performance breakdown by device type from tracking events`,tags:[`Event Performance`]}).input(ud).output(dd),locations:v$1.route({method:`GET`,path:`/events/{eventId}/performance/locations`,summary:`Get geographic performance`,description:`Performance by geographic location from tracking events`,tags:[`Event Performance`]}).input(um).output(pd),traffic:v$1.route({method:`GET`,path:`/events/{eventId}/performance/traffic`,summary:`Get traffic source performance`,description:`Top referral sources and channels from tracking events`,tags:[`Event Performance`]}).input(dm).output(hd),attendance:v$1.route({method:`GET`,path:`/events/{eventId}/performance/attendance`,summary:`Get event attendance statistics`,description:`Check-in statistics and attendance breakdown by admission and section`,tags:[`Event Performance`]}).input(gd).output(bd)};const pm=v$1.route({method:`GET`,path:`/events/{key}`,summary:`Get event by ID or slug`,description:`Retrieve an event using either its unique ID or URL-friendly slug`,tags:[`Events`]}).input(Zp).output(qp),mm=v$1.route({method:`POST`,path:`/events`,summary:`Create a new event`,tags:[`Events`]}).input(Jp.strict()).output(rm),hm=v$1.route({method:`PUT`,path:`/events/{key}`,summary:`Update an event`,description:`Update an event using either its unique ID or URL-friendly slug`,tags:[`Events`]}).input(om.strict()).output(rm);var gm={get:pm,list:v$1.route({method:`GET`,path:`/events`,summary:`List events`,description:`List events with filters for status, approval, visibility, and promoter. Supports full‑text search (query), geo search (latitude/longitude/radius), and cursor-based pagination.`,tags:[`Events`]}).input(em).output(nm),create:mm,update:hm,remove:v$1.route({method:`DELETE`,path:`/events/{key}`,summary:`Delete an event`,description:`Delete an event using either its unique ID or URL-friendly slug`,tags:[`Events`]}).input(Yp.strict()).output(rm),feature:v$1.route({method:`POST`,path:`/events/{key}/feature`,summary:`Toggle event featured status`,description:`Set or remove featured status on an event. Tenant admin only.`,tags:[`Events`]}).input(Xp.strict()).output(rm),like:Fp,performance:fm,tags:Op.suggestTags};const _m=I$1({id:Sc.readonly().meta({description:`Unique identifier for the event collaborator`}),createdAt:O$1().readonly().meta({description:`Timestamp in ISO 8601 format when the collaborator was added`}),updatedAt:O$1().readonly().meta({description:`Timestamp in ISO 8601 format when the collaborator was last updated`}),eventId:V$1.meta({description:`Event this collaboration applies to`}),promoterId:fc.meta({description:`Promoter collaborating on the event`}),acceptedBy:lc.meta({description:`User ID who accepted the invitation to collaborate`}),promoter:I$1({id:fc.meta({description:`Unique identifier of the promoter`}),name:A$1().meta({description:`Name of the promoter`}),teamId:oc.meta({description:`Team ID of the promoter`})}).optional().meta({description:`Populated promoter details. Only included when explicitly requested.`}),permissions:al.meta({description:`Permissions granted to this collaborator. User must have permission in BOTH this grant AND their team membership (intersection).`,examples:[[],[`event.read`,`event.write`],[`order.read`],[`ticket.scan`],[`*`]]}),tenantId:A$1().readonly().meta({description:`Tenant ID for multi-tenant isolation`})}).meta({description:`Active event collaborator. Created when a promoter accepts an invitation or is directly added to an event. Hard deleted when removed.`}),vm=_m.pick({id:true,eventId:true}).meta({description:`Schema for accepting an event promoter collaboration invitation. User accepting must be a member of the invited promoter's team.`}),ym=I$1({id:Sc.readonly().meta({description:`Unique identifier for the event collaboration invitation`}),createdAt:O$1().readonly().meta({description:`Timestamp in ISO 8601 format when the invitation was created`}),updatedAt:O$1().readonly().meta({description:`Timestamp in ISO 8601 format when the invitation was last updated`}),eventId:V$1.meta({description:`Event this invitation applies to`}),promoterId:fc.meta({description:`Promoter being invited to collaborate on the event.`}),invitedByPromoterId:fc.meta({description:`Promoter who sent this invitation (event owner or collaborator with permission).`}),permissions:al.meta({description:`Permissions the promoter will receive upon accepting the invitation.`,examples:[[],[`event.read`,`event.write`],[`order.read`],[`ticket.scan`],[`*`]]}),token:A$1().readonly().meta({description:`Secure token for invite acceptance. Required to accept the invitation.`}),invitedBy:lc.meta({description:`User ID who sent the invitation`}),expiresAt:M$1().int().positive().meta({description:`Unix timestamp (seconds) for DynamoDB TTL. Invitation will be automatically deleted after 7 days.`}),tenantId:A$1().readonly().meta({description:`Tenant ID for multi-tenant isolation`})}).meta({description:`Pending event collaborator invitation. Automatically deleted after 7 days via DynamoDB TTL. When accepted, creates an EventCollaborator record and deletes the invitation.`}),bm=ym.omit({id:true,tenantId:true,createdAt:true,updatedAt:true,token:true,expiresAt:true,invitedByPromoterId:true}).meta({description:`Schema for inviting a promoter to collaborate on an event. Creates a pending invitation that the promoter can accept.`}),xm=I$1({eventId:V$1.meta({description:`Event ID that the collaboration belongs to`}),id:Sc.meta({description:`Event team access grant ID to retrieve`})}),Sm=I$1({invite:ym}),Cm=I$1({eventId:A$1().meta({description:`Event ID to list collaborators for`}),accessPromoterId:A$1().optional().meta({description:`DEPRECATED: Use 'promoterId' instead. Filter by collaborating promoter ID (what events can this promoter access). Maintained for backward compatibility.`}),ownerPromoterId:A$1().optional().meta({description:`DEPRECATED: No longer used. Maintained for backward compatibility only.`}),limit:Mc(`event collaborators`),cursor:A$1().optional().meta({description:`Pagination cursor from previous response. Used to fetch next page of results`})}).meta({description:`Query parameters for listing active event collaborations with pagination and filtering. Only returns accepted collaborations (not pending invitations). Use invite endpoints for pending invitations.`}),wm=G$2(_m,`grants`),Tm=I$1({collaborator:_m});var Em={get:v$1.route({method:`GET`,path:`/events/{eventId}/collaborators/{id}`,summary:`Get event collaborator by ID`,description:`Retrieve an active event collaboration by its unique ID. Returns the collaborator record with promoter and permission details.`,tags:[`Event Collaborators`]}).input(xm.strict()).output(Tm),list:v$1.route({method:`GET`,path:`/events/{eventId}/collaborators`,summary:`List active event collaborators with cursor-based pagination`,description:`Returns active event collaborations for a specific event with cursor pagination. Only shows accepted collaborators. For pending invitations, use the invite endpoints.`,tags:[`Event Collaborators`]}).input(Cm.strict()).output(wm),create:v$1.route({method:`POST`,path:`/events/{eventId}/collaborators`,summary:`Invite a promoter to collaborate on an event`,description:`Send a collaboration invitation to a promoter (can be from a different team). Enables cross-team promoter-to-promoter collaboration. Creates a pending invitation with a secure token that expires in 7 days. The invited promoter must accept to create an active collaboration.`,tags:[`Event Collaborators`]}).input(bm.strict()).output(Sm),accept:v$1.route({method:`POST`,path:`/events/{eventId}/collaborators/{id}/accept`,summary:`Accept an event collaboration invitation`,description:`Accept a pending event collaboration invitation. User must be a member of the invited promoter's team. Deletes the invitation and creates an active collaboration record.`,tags:[`Event Collaborators`]}).input(vm.strict()).output(Tm),remove:v$1.route({method:`DELETE`,path:`/events/{eventId}/collaborators/{id}`,summary:`Remove active event collaboration`,description:`Remove an active collaboration (hard delete). Can be done by event team members or the collaborating team members. This completely removes access.`,tags:[`Event Collaborators`]}).input(xm.strict()).output(us())};const Dm=L$1([`default`,`custom`]),Om=L$1([`active`,`pending`,`pending_certificate`,`pending_dns_validation`,`pending_cloudfront`,`cloudfront_deploying`,`pending_activation`,`failed`]),km=L$1([`pending_validation`,`issued`,`failed`,`expired`]),Am=I$1({domain:A$1(),name:A$1(),value:A$1(),type:A$1(),purpose:L$1([`ssl_validation`,`traffic_routing`]).optional()}),jm=I$1({domain:A$1(),type:Dm,status:Om,isPrimary:P$1(),teamId:A$1(),tenantId:A$1(),certificateArn:A$1().optional(),certificateStatus:km.optional(),distributionId:A$1().optional(),distributionDomain:A$1().optional(),dnsRecords:F$1(Am).optional(),dnsValidationRecords:F$1(Am).optional(),errorMessage:A$1().optional(),verifiedAt:O$1().optional(),createdAt:O$1(),updatedAt:O$1()}),Mm=I$1({host:A$1()}),Nm=vs(`type`,[I$1({type:Ts(`resolved`),data:I$1({teamId:A$1(),tenantId:A$1()})}),I$1({type:Ts(`pending`),data:I$1({status:Om.exclude([`active`,`pending`]),errorMessage:A$1().optional()})}),I$1({type:Ts(`not_found`)})]),Pm=I$1({file:is().describe(`Image file to upload (max 10MB)`),folder:L$1([`avatars`,`events`,`teams`,`promoters`,`venues`]).describe(`Folder to upload to`),width:R$1().int().positive().optional().describe(`Target width in pixels`),height:R$1().int().positive().optional().describe(`Target height in pixels`)}),Fm=H$2,Im=v$1.route({method:`POST`,path:`/internal/upload/image`,summary:`Upload and compress image`,description:`Upload an image file (PNG, JPEG, or SVG), optionally resize it, and compress it for web. SVG files are uploaded as-is without compression. Returns the uploaded image URL and metadata.`,tags:[`Internal`]}).input(Pm.strict()).output(Fm);var Lm={resolveDomain:v$1.route({method:`GET`,path:`/internal/domains/resolve`,summary:`Resolve host to team and tenant context`,tags:[`Internal`]}).input(Mm.strict()).output(Nm),uploadImage:Im};const Rm=I$1({key:A$1().min(1).meta({description:`Location key - either a location ID (loc_xxx format) or provider-specific identifier (e.g., Google Place ID)`,examples:[x$1.Location.id,`ChIJP3Sa8ziYEmsRUKgyFmh9AQM`]})}),zm=I$1({query:A$1().min(1).meta({examples:[`sydney opera`],description:`Search query for location search`}),latitude:R$1().min(-90).max(90).optional().meta({examples:[x$1.Location.latitude],description:`User's latitude for proximity-based results (optional for better relevance)`}),longitude:R$1().min(-180).max(180).optional().meta({examples:[x$1.Location.longitude],description:`User's longitude for proximity-based results (optional for better relevance)`}),types:F$1(A$1()).optional().meta({examples:[[`establishment`]],description:`Filter results by Google Place types (e.g., 'establishment', 'night_club', 'bar')`})}).meta({description:`Parameters for searching locations`}),Bm=I$1({googlePlaceId:A$1().meta({examples:[`ChIJP3Sa8ziYEmsRUKgyFmh9AQM`],description:`Google Place ID for this location`}),name:A$1().meta({examples:[x$1.Location.name],description:`Primary name of the location`}),description:A$1().meta({examples:[x$1.Location.address],description:`Full formatted address`}),venue:I$1({id:sc.meta({examples:[x$1.Venue.id],description:`Venue ID if this location is a managed venue`}),name:A$1().meta({examples:[x$1.Venue.name],description:`Venue name`}),teamId:A$1().meta({description:`Team that manages this venue`}),image:H$2.optional().meta({description:`Primary venue image`})}).optional().meta({description:`Present if this location is a managed venue on the platform`})}).meta({description:`Single location search result with optional venue overlay`}),Vm=I$1({predictions:F$1(Bm).meta({description:`Array of location predictions`})}).meta({description:`Response containing location search results`}),Hm=I$1({location:Lp});var Um={list:v$1.route({method:`GET`,path:`/locations`,summary:`Search for locations`,description:`Search for locations by query. Returns predictions with venue badges for locations that are managed venues on the platform. The query parameter is required.`,tags:[`Locations`]}).input(zm.strict()).output(Vm),get:v$1.route({method:`GET`,path:`/locations/{key}`,summary:`Get location details`,description:`Fetch full location details including coordinates, timezone, and photo. Accepts location ID or provider identifier (e.g., Google Place ID). Uses cache-first strategy.`,tags:[`Locations`]}).input(Rm.strict()).output(Hm)};const Wm=I$1({name:A$1().meta({examples:[`tenant-web`,`team-web`,`api`,`partner`],description:`Free-form channel identifier describing where the order originated.`}),referrer:A$1().optional().meta({examples:[`https://sash.teams.mixmag.au/events/example-event`],description:`Optional referrer URL captured at order creation for redirect routing and attribution.`}),utmSource:A$1().optional().meta({examples:[`instagram`],description:`Optional UTM source captured from the originating URL.`}),utmMedium:A$1().optional().meta({examples:[`social`],description:`Optional UTM medium captured from the originating URL.`}),utmCampaign:A$1().optional().meta({examples:[`summer-launch`],description:`Optional UTM campaign captured from the originating URL.`}),deviceType:L$1([`MOBILE`,`TABLET`,`DESKTOP`]).optional().meta({examples:[`MOBILE`],description:`Optional analytics device classification captured at order creation.`}),country:A$1().optional().meta({examples:[`Australia`],description:`Optional viewer country captured at order creation for analytics attribution.`}),region:A$1().optional().meta({examples:[`Australia - New South Wales`],description:`Optional viewer region captured at order creation for analytics attribution.`})}),Gm=I$1({id:A$1().meta({examples:[x$1.CouponCode.id],description:`Unique identifier of the coupon code used in the order`}),name:A$1().meta({examples:[x$1.CouponCode.name],description:`The coupon code string that was entered by the customer`}),couponId:A$1().meta({examples:[x$1.CouponCode.couponId],description:`Unique identifier of the parent coupon configuration`})}),Km=I$1({id:A$1().meta({examples:[x$1.Customer.id],description:`Unique identifier of the customer who placed the order`}),firstName:A$1().meta({examples:[x$1.Customer.firstName],description:`First name of the customer`}),lastName:A$1().meta({examples:[x$1.Customer.lastName],description:`Last name of the customer`}),email:Mo().meta({examples:[x$1.Customer.email],description:`Email address of the customer`}),phone:A$1().meta({examples:[x$1.Customer.phone],description:`Customer phone number in E.164 format for SMS delivery`}).optional()}),qm=I$1({id:A$1().meta({examples:[x$1.Event.id],description:`Unique identifier of the event associated with the order`}),name:A$1().meta({examples:[x$1.Event.name],description:`Display name of the event`}),slug:A$1().meta({examples:[x$1.Event.slug],description:`URL-friendly slug of the event`}),location:A$1().meta({examples:[x$1.Event.location.name],description:`Name of the venue or location where the event takes place`}).optional()}),Jm=L$1([`GATEWAY`,`SHIPPING`,`SMS_DELIVERY`]).meta({description:`Type of fee applied to an order`}),Ym=I$1({id:A$1().meta({examples:[x$1.OrderFee.id],description:`Unique identifier for this order fee`}),createdAt:O$1().readonly().meta({examples:[x$1.OrderFee.createdAt],description:`Timestamp in ISO 8601 format when this fee was created`}),reason:A$1().meta({examples:[x$1.OrderFee.reason],description:`Description explaining why this fee was applied to the order`}),amount:M$1().finite(`Amount must be a valid number`).meta({examples:[x$1.OrderFee.amount],description:`Fee amount in cents (positive value indicates charge to customer, negative value indicates credit or discount)`}),currency:z$1.meta({examples:[x$1.OrderFee.currency],description:`Currency code in ISO 4217 format`}),requestId:A$1().meta({examples:[x$1.OrderFee.requestId],description:`External payment processor request identifier for tracking this fee`}),kind:Jm.optional().meta({examples:[`GATEWAY`],description:`Type of fee for categorization and reporting`})});function Xm(){return {mobile:{src:`https://assets.session.services/event-mobile.jpg`,alt:`Mobile Event Image`,width:1080,height:1350},desktop:{src:`https://assets.session.services/event-desktop.jpg`,alt:`Desktop Event Image`,width:1920,height:1080}}}const Zm=e=>({id:e.id,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:e.name,slug:e.slug,description:e.description,approval:`APPROVED`,status:`UPCOMING`,visibility:`PUBLIC`,currency:`AUD`,entryStartsAt:b$1(y$1(new Date,1)),entryEndsAt:b$1(y$1(new Date,2)),publishAt:b$1(new Date),images:Xm(),geohash:`r3gx1`,location:e.location,teamId:e.teamId,promoterId:e.promoterId,tenantId:e.tenantId}),Qm=e=>({id:e.id,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),...e.sectionId?{sectionId:e.sectionId}:{},...e.teamId?{teamId:e.teamId}:{},promoterId:e.promoterId,eventId:e.eventId,eventSlug:e.eventSlug,name:e.name,capacity:100,limit:-1,available:100,entryStartsAt:b$1(y$1(new Date,1)),entryEndsAt:b$1(y$1(new Date,2)),saleStartsAt:b$1(new Date),saleEndsAt:b$1(y$1(new Date,2)),price:{base:1e3,booking:200,currency:`AUD`},tenantId:e.tenantId}),$m=e=>({id:`tkt_01jps5cgsh51kzg7534pzap7gk`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),status:`REDEEMED`,scans:[],token:e.token,attendee:{email:Z$1.Customer.email,firstName:Z$1.Customer.firstName,lastName:Z$1.Customer.lastName},event:{id:Z$1.WrongEvent.id,name:Z$1.WrongEvent.name,slug:Z$1.WrongEvent.slug,location:Z$1.WrongEvent.location,entryStartsAt:Z$1.WrongEvent.entryStartsAt,entryEndsAt:Z$1.WrongEvent.entryEndsAt,images:Z$1.WrongEvent.images},admission:{id:Z$1.WrongAdmission.id,name:Z$1.WrongAdmission.name,price:Z$1.WrongAdmission.price,entryStartsAt:Z$1.WrongAdmission.entryStartsAt,entryEndsAt:Z$1.WrongAdmission.entryEndsAt},eventId:Z$1.WrongEvent.id,customerId:Z$1.Customer.id,orderId:Z$1.WrongOrder.id,orderItemId:Z$1.WrongOrderItem.id,admissionId:Z$1.WrongOrderItem.admissionId,...e.teamId?{teamId:e.teamId}:{},promoterId:Z$1.WrongPromoter.id,promoterSlug:Z$1.WrongPromoter.slug,tenantId:Z$1.Tenant.id}),eh=e=>{let t=new Date(2020,1,1);return {...x$1.Event,id:e.id,status:e.status,createdAt:t.toISOString(),updatedAt:t.toISOString(),publishAt:b$1(t),entryStartsAt:b$1(t),entryEndsAt:b$1(new Date(2020,1,2)),slug:e.slug,name:e.name}};let Z$1;(function(e){let{Tenant:t,Team:n,TeamMember:r,TeamInvite:i,Venue:a,User:o,Session:s,EmailVerification:c,PasswordReset:l,Promoter:u,PromoterMember:d,CurrentSession:f,Event:p,DetailedEvent:m,Location:ee,CarouselLocation:te,Section:ne,Admission:h,Beneficiary:re,AirwallexBeneficiary:ie,Coupon:ae,CouponCode:oe,AmountCoupon:se,AmountCouponCode:ce,Customer:le,Payout:ue,Order:de,OrderItem:fe,OrderFee:pe,Ticket:me}=x$1;e.Tenant=t,e.Team=n,e.TeamMember=r,e.TeamInvite=i,e.Venue=a,e.User=o,e.Session=s,e.EmailVerification=c,e.PasswordReset=l,e.Promoter=u,e.PromoterMember=d,e.CurrentSession=f,e.Event=p,e.DetailedEvent=m,e.Location=ee,e.CarouselLocation=te,e.Section=ne,e.Admission=h,e.Beneficiary=re,e.AirwallexBeneficiary=ie,e.Coupon=ae,e.CouponCode=oe,e.AmountCoupon=se,e.AmountCouponCode=ce,e.Customer=le,e.Payout=ue,e.Order=de,e.OrderItem=fe,e.OrderFee=pe,e.Ticket=me,e.JayUser={...o,id:`usr_01k5hbpkfje048zccqmqfhjpep`,email:`j@1f.io`,firstName:`Jay`,lastName:`McMullen`};let he=e.TestUser={id:`usr_01k5wcss3gf24advd4av43s96m`,email:`test@e2e.session.services`,firstName:`Test`,lastName:`User`,createdAt:`2025-09-23T22:58:37.808Z`,updatedAt:`2025-09-23T22:58:37.808Z`,tenantId:`tnt_01jqpj2t2kfvmstt6f6tzkbaf2`};e.TestPromoterMember={id:`mbr_01k6s0t3f3f6cak0066dy5n1dm`,createdAt:`2025-10-05T01:47:04.035Z`,updatedAt:`2025-10-05T01:47:04.035Z`,teamId:n.id,userId:he.id,user:he,permissions:[`*`],isOwner:false,tenantId:t.id},e.SystemUser={...o,id:`usr_01jps5cgsgn1ee4txxn0fz81f2`,email:`system@session.services`,firstName:`Session`,lastName:`Services`},e.DeletedAdmission={...h,id:`adm_01jps5cgsg63gr2s1g2d87cqfy`,deletedAt:new Date().toISOString(),deleted:true},e.SoloAdmission={...h,id:`adm_01jpsf2h7r4z8kmd9x1q3w4vty`,name:`Solo Admission`,sectionId:void 0},e.DeletedCoupon={...ae,id:`cpn_01jps5cgsgzxf6xvmx3dnt9h1p`,couponId:`cpn_01jps5cgsgzxf6xvmx3dnt9h1p`,deletedAt:new Date().toISOString(),deleted:true},e.DeletedCouponCode={...oe,id:`cod_01jps5cgsg7ep2gvwzghp1ppv6`,deletedAt:new Date().toISOString(),deleted:true},e.DeletedSection={...ne,id:`sct_01jps5cgsgy7681swwcvf01wxh`,deletedAt:new Date().toISOString(),deleted:true},e.DeletedEvent={...p,id:`evt_01jps5cgsg8pyd64pc89tcbg9j`,slug:`deleted-event`,name:`Deleted Event`,deletedAt:new Date().toISOString(),deleted:true},e.PastEvent=eh({id:`evt_01jqqt1ztw4676fdrr27z7de1c`,status:`ENDED`,slug:`past-event`,name:`Past Event`}),e.CancelledEvent=eh({id:`evt_01jt0tfntmfk1sgn72q8c02v7a`,status:`CANCELLED`,slug:`cancelled-event`,name:`Cancelled Event`}),e.DeletedPromoter={...u,id:`pmt_01jps5cgsg4xem309j6sxj01aw`,slug:`deleted-promoter`,name:`Deleted Promoter`,deletedAt:new Date().toISOString(),deleted:true},e.DeletedPromoterMember={...d,userId:Z$1.User.id,user:Z$1.User,id:`mbr_01jpwzceh3zvab64kwq633q4cc`},e.SmsOrder={...de,id:x$1.SmsOrder.id,status:`SUCCESSFUL`,price:{...de.price,sms:200},customer:{...le,phone:`+61412345678`},offers:[]},e.ExpiredOrder={...de,id:`ord_01jq0xwysx1hzs3wqt2fns4578`,token:`c76e3a5d7105345b58e383e6d90fe7728b75f938b727f0b9ecc5b977e8c3b5d0`,status:`PENDING`,createdAt:new Date(2020,1,1).toISOString(),updatedAt:new Date(2020,1,1).toISOString()},e.AbandonedOrder={...de,id:`ord_01jq0xdzwsfjpd329r8gv3txr2`,token:`c76e3a5d7105345b58e383e6d90fe7728b75f938b727f0b9ecc5b977e8c3b5d0`,status:`ABANDONED`,createdAt:new Date(2020,1,1).toISOString(),updatedAt:new Date(2020,1,1).toISOString()},e.ProcessingOrder={...de,id:`ord_01jq289n4kcz2tnre24x3v2get`,token:`c76e3a5d7105345b58e383e6d90fe7728b75f938b727f0b9ecc5b977e8c3b5d0`,status:`PROCESSING`,customer:x$1.Customer,customerId:x$1.Customer.id},e.FreeAdmission={...h,id:`adm_01jpykjbrdgy8jxmz57hmampww`,price:{base:0,booking:0,currency:`AUD`}},e.SoldOutAdmission={...h,id:`adm_01jps5cgse6m3567vzvk69hkrm`,name:`First Release`,capacity:100,available:0,sold:100,reserved:0},e.UnlimitedAdmission={...h,id:`adm_01jsr09narf6d83vyk3hs8q9cf`,name:`First Release`,capacity:-1,available:-1,sold:100,reserved:0},e.UnlimitedSection={id:`sct_01jsr09narf6d83vytx3cng55e`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),teamId:n.id,promoterId:u.id,eventId:p.id,eventSlug:p.slug,name:`Sold Out Section`,capacity:-1,limit:-1,available:-1,sold:200,reserved:0,order:0,location:ee,tenantId:t.id};let ge=e.SoldOutSection={id:`sct_01jq1rcqbkzqbbakgwy8ptpmvq`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),teamId:n.id,promoterId:u.id,eventId:p.id,eventSlug:p.slug,name:`Sold Out Section`,capacity:200,limit:-1,sold:200,available:0,reserved:0,order:0,location:ee,tenantId:t.id};e.SoldOutSectionAdmission={...h,sectionId:ge.id,id:`adm_01jq1rcjah79628zsafg3k8wyz`,name:`First Release`,capacity:100,available:100,sold:0,reserved:0,order:0};let _e=e.MaxReservedSection={id:`sct_01jq1rcqbkzrkea9ng8e4kngvq`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),teamId:n.id,promoterId:u.id,eventId:p.id,eventSlug:p.slug,name:`Max Reserved Section`,capacity:200,limit:-1,sold:0,available:0,reserved:200,location:ee,tenantId:t.id,order:0};e.MaxReservedAdmission={...h,id:`adm_01jq1rcqbk5s86df68xvz66fh4`,name:`First Release`,capacity:100,available:0,sold:0,reserved:100},e.MaxReservedSectionAdmission={...h,sectionId:_e.id,id:`adm_01jq1rcqbkhkxq67e9rs8rpngt`,name:`First Release`,capacity:100,available:100,sold:0,reserved:0},e.SessionsBeneficiary={...re,id:`ben_01jps5cgse5n6mg1ymkew9tsss`,promoterId:`pmt_01jqpjksnsen9vprw95et60t2m`},e.AnotherBeneficiary={...re,id:`ben_01jpsbxdthxadywamz2yj4zt75`,currency:`USD`,name:`Another Bank Account`},e.AnotherSection={...ne,id:`sct_01jps5cgsg3spk97pwwp4352z9`},e.AnotherEvent={...p,id:`evt_01jps5cgsgkegpptzf3dsmkbpy`,slug:`another-event`,name:`Another Event`,visibility:`PUBLIC`},e.AnotherCouponCode={...oe,name:`ANOTHER`,id:`cod_01jps5cgsghcvnjsf5nax5d7z7`},e.PrivateEvent={...p,id:`evt_01jps5cgsgavb91qw967y3d64f`,slug:`private-event`,name:`Private Event`,visibility:`PRIVATE`},e.PendingEvent={...p,id:`evt_01jps5cgsh7mpevnq8pngdqs8q`,slug:`pending-event`,name:`Pending Event`,approval:`PENDING`};let ve=e.WrongUser={id:`usr_01jps5cgshwa2sts0fj53pksk0`,email:`wrong@session.services`,firstName:`Wrong`,lastName:`User`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),tenantId:t.id},ye=e.WrongTeam={id:`tem_01jps5cgshfgkvmjhfkev542en`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Wrong Team`,slug:`wrong-team`,description:`This is the wrong team...`,type:`PROMOTER`,tenantId:`tnt_01jqpj2t2kfvmstt6f6tzkbaf2`},be=e.WrongPromoter={id:`pmt_01jps5cgshfgkvmjhfkev542en`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Wrong Promoter`,slug:`wrong-promoter`,description:`This is the wrong promoter...`,payoutFrequency:`AFTER_EVENT`,image:{src:`https://assets.session.services/icon-bg.png`,alt:`Session Services Logo`,width:800,height:800},approval:`APPROVED`,type:`PROMOTER`,teamId:ye.id,geohash:`r3gx1`,location:{id:`loc_01jps5cgshfgkvmjhfkev542ep`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Sydney`,address:`Sydney NSW 2000, Australia`,city:`Sydney`,state:`New South Wales`,postcode:`2000`,country:`Australia`,latitude:-33.8688,longitude:151.2093,timeZone:`Australia/Sydney`},tracking:{fbId:`485739562847563`,gtmId:`GTM-K8WPM5N`,tikTokId:`BQCKPH3RC77U8GPMLJ5G`},tenantId:`tnt_01jqpj2t2kfvmstt6f6tzkbaf2`};e.WrongPromoterMember={id:`mbr_01jps5cgsec5ge0b1bxa6gzkkk`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),promoterId:be.id,userId:ve.id,user:{id:ve.id,email:ve.email,firstName:ve.firstName,lastName:ve.lastName},permissions:[`*`],tenantId:t.id};let xe=e.WrongEvent=Zm({id:`evt_01jps5cgshm2v14zzykna678fd`,name:`Wrong Event`,slug:`wrong-event`,description:`This is the wrong event...`,location:{id:`loc_01jps5cgshm2v14zzykna678fe`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Watson's EQ`,address:`The, Entertainment Quarter, 1 Bent St, Moore Park NSW 2021, Australia`,city:`Moore Park`,state:`New South Wales`,postcode:`2021`,country:`Australia`,latitude:-33.8944593,longitude:151.2252255,timeZone:`Australia/Sydney`,image:{src:`https://assets.session.services/locations/watsons-eq.jpg`,alt:`Watson's EQ`,width:1200,height:800}},teamId:ye.id,promoterId:be.id,tenantId:t.id}),Se=e.WrongAdmission=Qm({id:`adm_01jps5cgshfggkvmjhfkevy5en`,sectionId:(e.WrongSection={id:`sct_01jps5cgsh6asm2d0ghfqq6br2`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),teamId:ye.id,promoterId:be.id,eventId:xe.id,eventSlug:xe.slug,name:`Wrong Admission`,capacity:200,limit:-1,available:200,reserved:0,order:0,sold:0,location:ee,tenantId:t.id}).id,teamId:ye.id,promoterId:be.id,eventId:xe.id,eventSlug:xe.slug,name:`Wrong Release`,tenantId:t.id});e.ExpiredAdmission={...h,id:`adm_01jq6cazzbswynyvg8d0hpx1n5`,entryStartsAt:b$1(new Date(2020,0,1)),entryEndsAt:b$1(y$1(new Date(2020,0,1),2))};let Ce=e.WrongBeneficiary={id:`ben_01jps5cgshfgnzwvcyck0y4sdg`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`My Bank Account`,currency:`AUD`,gatewayId:`ben_12345abcde67890`,gateway:`AIRWALLEX`,assignment:`PROMOTER`,teamId:ye.id,promoterId:be.id,tenantId:t.id},we=e.WrongCoupon={id:`cpn_01jps5cgsh4fy01mvwvzn7xbc9`,couponId:`cpn_01jps5cgsh4fy01mvwvzn7xbc9`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Wrong Price`,active:true,kind:`PERCENT`,filter:`TEAM`,currency:`AUD`,discount:50,uses:0,limit:-1,saleStartsAt:b$1(new Date(2025,1,10,3,0,0)),saleEndsAt:void 0,deletedAt:void 0,teamId:ye.id,tenantId:t.id},Te=e.WrongCouponCode={id:`cod_01jps5cgsh2hevcp6av50kbgyf`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),active:true,name:`WRONG`,tenantId:t.id,couponId:we.id,teamId:ye.id},Ee=e.WrongPayout={id:`pyt_01jps5cgshynssderz1k0fd7z3`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),paidAt:new Date().toISOString(),structure:`default`,items:{tickets:{beneficiaryId:Ce.id,feeAmount:0,feeCurrency:`AUD`,transferAmount:1e3,transferCurrency:`AUD`},sessions:{beneficiaryId:Ce.id,feeAmount:0,feeCurrency:`AUD`,transferAmount:650,transferCurrency:`AUD`}},eventId:xe.id,teamId:ye.id,promoterId:be.id},De=e.WrongOrder={id:`ord_01jps5cgshxhcpy2djnr8e04s3`,token:`51126f93491f3bda92235ade2d87baec7935610e52b64d4252a3c721dfc6016a`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),status:`PENDING`,payment:{method:`FREE`},price:{total:0,base:0,booking:0,discount:0,processor:0,currency:`AUD`},code:{id:Te.id,name:Te.name},customer:le,teamId:ye.id,promoterId:be.id,eventId:xe.id,paymentId:``,payoutIds:[Ee.id]};e.WrongOrderItem={id:`itm_01jps5cgsh14bjvyywkvt6f37e`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),orderId:De.id,kind:`ADMISSION`,quantity:2,admissionId:Se.id,price:{base:Se.price.base,booking:Se.price.booking,discount:0,currency:Se.price.currency}},e.WrongOrderFee={id:`fee_01jps5cgshgebpv67sppjfrgb8`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),orderId:De.id,reason:`Gateway Fee`,amount:-30,currency:`AUD`,requestId:`att_sgpdz4v2ph1axmdmdx8_m8w6qv`},e.WrongTicket=$m({token:`a1b2c3d4e5f6789012345678901234567890123456789012345678901234abcd`,teamId:ye.id}),e.AnotherTicket={...me,id:`tkt_01jq6v4gmad9m28kzw8g8910jw`},e.ExpiredTicket=$m({token:`e1f2a3b4c5d6789012345678901234567890123456789012345678901234efab`}),e.UpcomingPayout={...ue,id:`pyt_01jq9cvaxvatez34jmwn11rzt8`,status:`UPCOMING`,transfers:[],deductions:[]},e.PayoutNotePayout={...ue,id:`pyt_01kr2note0000000000000001`,transfers:[],deductions:[]};let g=e.MixmagTenant={id:`tnt_01hk153x00en6tvgwwwhn8xj1p`,oldId:`p8npi2s3t24arpunzp2e7dzaq`,name:`Mixmag ANZ`,slug:`mixmag-anz`,email:`hello@mixmag.net.au`,adminTeamId:`tem_01hr9kk2pgez2s8jzb3gs5nwsf`,legacyTenantsToTeams:{clhvrnqph0000m9rq039hkw7s:`tem_01k5sashm1xmaganzteam0001`,"6kh3sj8ih5tvg927rz5elm90o":`tem_01k6blankm1xmaganzteam002`,vc8vrjrv5arhabnk8ainx0ycb:`tem_01k7prowlm1xmaganzteam003`,clkwbixsi0000m9coi7i5b65z:`tem_01k8crousm1xmaganzteam004`},defaultCurrency:`AUD`,smsSenderId:`MIXMAG`,baseUrl:{dev:`http://mixmag-au.local:3000`,production:`https://mixmag-anz.app.session.services`},logo:{icon:{src:`https://assets.session.services/icon-bg.png`,width:29,height:29},email:{src:`https://assets.session.services/icon-bg.png`,width:165,height:76},website:{src:`https://assets.session.services/icon-bg.png`,width:165,height:76},qr:{src:`https://assets.session.services/tenants/mixmag-anz/qr.svg`}},favicon:`https://assets.session.services/tenants/mixmag-anz/favicon.svg`},Oe=e.MixmagUser={id:`usr_01jps5cgsmh2d4ez6xz2t23fsf`,email:`mixmag@session.services`,firstName:`Mixmag`,lastName:`User`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),tenantId:g.id},ke=e.MixmagTeam={id:`tem_01hr9kk2pgez2s8jzb3gs5nwsf`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Mixmag Team`,slug:`mixmag-team`,description:`This is Mixmag team...`,type:`PROMOTER`,tenantId:`tnt_01jqpj2t2kfvmstt6f6tzkbaf2`},Ae=e.MixmagPromoter={id:`pmt_01hr9kk2pgez2s8jzb3gs5nwsf`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),payoutFrequency:`AFTER_EVENT`,name:`Mixmag Promoter`,slug:`mixmag-promoter`,description:`This is Mixmag...`,image:{src:`https://assets.session.services/icon-bg.png`,alt:`Session Services Logo`,width:800,height:800},approval:`APPROVED`,type:`PROMOTER`,geohash:`r3gx1`,location:{id:`loc_01hr9kk2pgez2s8jzb3gs5nwsg`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Mixmag`,address:`169 Oxford St, Darlinghurst NSW 2010, Australia`,city:`Darlinghurst`,state:`New South Wales`,postcode:`2010`,country:`Australia`,latitude:-33.8774,longitude:151.2196,timeZone:`Australia/Sydney`},tracking:{fbId:`485739562847563`,gtmId:`GTM-K8WPM5N`,tikTokId:`BQCKPH3RC77U8GPMLJ5G`},teamId:ke.id,tenantId:`tnt_01jqpj2t2kfvmstt6f6tzkbaf2`},je=e.MixmagSashPromoter={id:`pmt_01jps5cgsm15cfwrtat68b2vq5`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),payoutFrequency:`WEEKLY`,name:`SASH Mixmag Promoter`,slug:`sash-mixmag-promoter`,description:`This is SASH on Mixmag...`,image:{src:`https://assets.session.services/icon-bg.png`,alt:`Session Services Logo`,width:800,height:800},approval:`APPROVED`,type:`PROMOTER`,geohash:`r3gx1`,location:{id:`loc_01jps5cgsm15cfwrtat68b2vq6`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Mixmag`,address:`169 Oxford St, Darlinghurst NSW 2010, Australia`,city:`Darlinghurst`,state:`New South Wales`,postcode:`2010`,country:`Australia`,latitude:-33.8774,longitude:151.2196,timeZone:`Australia/Sydney`},tracking:{fbId:`485739562847563`,gtmId:`GTM-K8WPM5N`,tikTokId:`BQCKPH3RC77U8GPMLJ5G`},tenantId:g.id},Me=e.MixmagSashTeam={id:`tem_01ha3fnp48ekdst2ezkgxm3zem`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Sash Team`,slug:`sash`,description:`SASH team for Mixmag ANZ fixtures`,type:`PROMOTER`,tenantId:g.id},Ne=e.MixmagSashFixturePromoter={id:`pmt_01ha3fnp48ekdst2ezkgxm3zem`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),payoutFrequency:`WEEKLY`,name:`Sash Fixture Promoter`,slug:`sash-fixture-promoter`,description:`Fixture promoter for SASH test event`,image:{src:`https://assets.session.services/icon-bg.png`,alt:`Session Services Logo`,width:800,height:800},approval:`APPROVED`,type:`PROMOTER`,geohash:`r3gx3`,location:{...te,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()},tracking:{fbId:`485739562847563`,gtmId:`GTM-K8WPM5N`,tikTokId:`BQCKPH3RC77U8GPMLJ5G`},teamId:Me.id,tenantId:g.id};e.MixmagSashFixtureEvent={id:`evt_01hj8xw1e0em7vjns3zjtc9q9g`,createdAt:`2023-12-22T14:11:36.000Z`,updatedAt:`2024-12-13T07:53:26.000Z`,name:`Test Event`,slug:`test-event`,description:`This is an event for testing`,approval:`APPROVED`,status:`ENDED`,visibility:`PRIVATE`,currency:`AUD`,entryStartsAt:`2024-12-30T21:00:56`,entryEndsAt:`2024-12-31T03:00:08`,publishAt:`2024-12-13T18:49:56`,images:{mobile:{src:`https://assets.session.services/uploads/images/1771573094836-test-event-1734076207200-mobile.jpg`,alt:`test-event-1734076207200-mobile.jpg`,width:1080,height:1350},desktop:{src:`https://assets.session.services/uploads/images/1771573095056-test-event-1734076207200-desktop.jpg`,alt:`test-event-1734076207200-desktop.jpg`,width:1920,height:1005}},geohash:`r3gx3`,location:{...te,createdAt:`2025-12-12T08:13:11.004Z`,updatedAt:`2025-12-12T08:13:11.171Z`},teamId:Me.id,promoterId:Ne.id,tenantId:g.id},e.MixmagPromoterMember={id:`mbr_01jps5cgsmk2femegmakpgrjdq`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),promoterId:Ae.id,promoterSlug:Ae.slug,userId:Oe.id,user:{id:Oe.id,email:Oe.email,firstName:Oe.firstName,lastName:Oe.lastName},permissions:[`*`],tenantId:g.id};let _=e.MixmagEvent=Zm({id:`evt_01jps5cgsmwksmhse1gr2jrq7x`,name:`Mixmag Event`,slug:`wrong-event`,description:`This is the wrong event...`,location:{id:`loc_01jps5cgsmkp1bdr7hgfmmhr4e`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Mixmag`,address:`169 Oxford St, Darlinghurst NSW 2010, Australia`,city:`Darlinghurst`,state:`New South Wales`,postcode:`2010`,country:`Australia`,latitude:-33.8774,longitude:151.2196,timeZone:`Australia/Sydney`},teamId:ke.id,promoterId:Ae.id,tenantId:g.id}),Pe=e.MixmagSashEvent=Zm({id:`evt_01kb1ve66keh4rntf96rq5wpk2`,name:`Mixmag SASH Event`,slug:`mixmag-sash-event`,description:`This is a sash on mixmag event...`,location:{id:`loc_01jps5cgsm7qxvh6watsons0eq`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Watson's EQ`,address:`The, Entertainment Quarter, 1 Bent St, Moore Park NSW 2021, Australia`,city:`Moore Park`,state:`New South Wales`,postcode:`2010`,country:`Australia`,latitude:-33.8944593,longitude:151.2252255,timeZone:`Australia/Sydney`},teamId:ke.id,promoterId:Ae.id,tenantId:g.id}),Fe=e.MixmagAdmission=Qm({id:`adm_01jps5cgsmbepdasrtxvh9xa0k`,sectionId:(e.MixmagSection={id:`sct_01jps5cgsmhrfxjn18y9bfdqc2`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),teamId:ke.id,promoterId:Ae.id,eventId:_.id,eventSlug:_.slug,name:`Mixmag Admission`,capacity:200,limit:-1,available:200,reserved:0,order:0,sold:0,location:ee,tenantId:g.id}).id,teamId:ke.id,promoterId:Ae.id,eventId:_.id,eventSlug:_.slug,name:`Mixmag Release`,tenantId:g.id});e.MixmagSashAdmission=Qm({id:`adm_01jps5cgsm5c3scpdyf25bhntd`,promoterId:je.id,eventId:Pe.id,eventSlug:Pe.slug,name:`Final Release`,tenantId:g.id});let Ie=e.MixmagBeneficiary={id:`ben_01jps5cgsmgxsdv4nxjk51s5by`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`My Bank Account`,currency:`AUD`,gatewayId:`ben_12345abcde67890`,gateway:`AIRWALLEX`,assignment:`PROMOTER`,teamId:ke.id,promoterId:Ae.id,tenantId:g.id},Le=e.MixmagCoupon={id:`cpn_01kb1vvpa0ecrbpyh2j5mvzdp9`,couponId:`cpn_01kb1vvpa0ecrbpyh2j5mvzdp9`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Mixmag Price`,active:true,kind:`PERCENT`,filter:`TEAM`,currency:`AUD`,discount:50,uses:0,limit:-1,saleStartsAt:b$1(new Date(2025,1,10,3,0,0)),saleEndsAt:void 0,deletedAt:void 0,teamId:ke.id,tenantId:g.id},Re=e.MixmagCouponCode={id:`cod_01jps5cgsmc53405wk7t2v8ka7`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),active:true,name:`MIXMAG`,tenantId:g.id,couponId:Le.id,teamId:ke.id},ze=e.MixmagPayout={id:`pyt_01jps5cgsmx1x39hnrmvvtcets`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),paidAt:new Date().toISOString(),structure:`default`,items:{tickets:{beneficiaryId:Ie.id,feeAmount:0,feeCurrency:`AUD`,transferAmount:1e3,transferCurrency:`AUD`},sessions:{beneficiaryId:Ie.id,feeAmount:0,feeCurrency:`AUD`,transferAmount:650,transferCurrency:`AUD`}},eventId:_.id,promoterId:Ae.id},Be=e.MixmagOrder={id:`ord_01jps5cgsmtxt8e0985tstqe5h`,token:`16a761b251a2368027c6c08453eca1a97f7e7fcbf714b789c8aa96033d199b90`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),status:`PENDING`,payment:{method:`FREE`},price:{total:0,base:0,booking:0,discount:0,processor:0,currency:`AUD`},code:{id:Re.id,name:Re.name},customer:le,promoterId:Ae.id,eventId:_.id,paymentId:``,payoutIds:[ze.id]},Ve=e.MixmagOrderItem={id:`itm_01jps5cgsmqrkg0btn7khdyjyg`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),orderId:Be.id,kind:`ADMISSION`,quantity:2,admissionId:Fe.id,price:{base:Fe.price.base,booking:Fe.price.booking,discount:0,currency:Fe.price.currency}};e.MixmagOrderFee={id:`fee_01jps5cgsm4jgpnfqxahmwm7he`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),orderId:Be.id,reason:`Gateway Fee`,amount:30,currency:`AUD`,requestId:`att_sgpdz4v2ph1axmdmdx8_m8w6qv`},e.MixmagTicket={id:`tkt_01jps5cgsmycbvfrqw5h3zt9bp`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),status:`REDEEMED`,scans:[],token:`m1i2x3m4a5g6789012345678901234567890123456789012345678901234mixm`,attendee:{email:le.email,firstName:le.firstName,lastName:le.lastName},event:{id:_.id,name:_.name,slug:_.slug,location:_.location,entryStartsAt:_.entryStartsAt,entryEndsAt:_.entryEndsAt,images:_.images},admission:{id:Fe.id,name:Fe.name,price:Fe.price,entryStartsAt:Fe.entryStartsAt,entryEndsAt:Fe.entryEndsAt},eventId:_.id,customerId:le.id,orderId:Be.id,orderItemId:Ve.id,admissionId:Fe.id,promoterId:Ae.id,promoterSlug:Ae.slug,tenantId:g.id},e.InactiveCoupon={...ae,id:`cpn_01kb1ve66keh4rntfm5z89yskj`,couponId:`cpn_01kb1ve66keh4rntfm5z89yskj`,name:`Inactive Coupon`,active:false};let He=e.MelbourneLocation={id:`loc_01hk153x00ebfrn7y8v7z8emew`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),googlePlaceId:`ChIJc4QL47ZC1moRFW-PYdhx-O0`,name:`Federation Square`,address:`Federation Square, Melbourne VIC 3000, Australia`,city:`Melbourne`,state:`Victoria`,postcode:`3000`,country:`Australia`,latitude:-37.8179789,longitude:144.9690576,timeZone:`Australia/Melbourne`};e.MelbourneVenue={...a,id:`ven_01kb1ve66heh4rntebeywafbwj`,name:`Melbourne Convention Centre`,slug:`melbourne-convention-centre`,description:`Premier convention and exhibition venue in Melbourne`,locationId:He.id,location:He,geohash:`r1r0f`};let Ue=e.MelbournePromoter={...u,id:`pmt_01kb1ve66keh4rntehghtb8j43`,name:`Melbourne Promoter`,slug:`melbourne-promoter`,description:`A promoter based in Melbourne`,geohash:`r1r0f`,location:He};e.MelbourneEvent={...p,id:`evt_01kb1ve66keh4rnteypq587crh`,name:`Melbourne Event`,slug:`melbourne-event`,description:`An event in Melbourne for geo testing`,promoterId:Ue.id,geohash:`r1r0f`,location:He},e.PendingVenue={...a,id:`ven_01kb1ve66keh4rntf3crpmdyaw`,name:`Pending Venue`,slug:`pending-venue`,description:`A venue pending approval`,approval:`PENDING`},e.Locations={sydneyOperaHouse:{id:`loc_01hk153x00fpxv6cjp99qawkcs`,googlePlaceId:`ChIJ3S-JXmauEmsRUcIaWtf4MzE`,name:`Sydney Opera House`,address:`Bennelong Point, Sydney NSW 2000, Australia`,city:`Sydney`,state:`New South Wales`,postcode:`2000`,country:`Australia`,latitude:-33.8567844,longitude:151.2152967,timeZone:`Australia/Sydney`,types:[`establishment`,`point_of_interest`,`tourist_attraction`],image:{src:`https://assets.session.services/locations/loc_01hk153x00fpxv6cjp99qawkcs.jpg`,alt:`Sydney Opera House`,width:1200,height:800}},carouselBarBallroom:{...te,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),types:[...te.types],image:te.image},homeTheVenue:{id:`loc_01hk153x00eqbb7qm3b7fjxh7j`,googlePlaceId:`ChIJLaRY2DuuEmsRkgiW8LMz2Hs`,name:`Home The Venue`,address:`101/1-5 Wheat Rd, Sydney NSW 2000, Australia`,city:`Sydney`,state:`New South Wales`,postcode:`2000`,country:`Australia`,latitude:-33.8725457,longitude:151.201907,timeZone:`Australia/Sydney`,types:[`establishment`,`food`,`night_club`,`point_of_interest`,`restaurant`],image:{src:`https://assets.session.services/locations/loc_01hk153x00eqbb7qm3b7fjxh7j.jpg`,alt:`Home The Venue`,width:1200,height:800}},greenwoodHotel:{id:`loc_01hk153x00eerbxb70s9fwbmc9`,googlePlaceId:`ChIJPZiEA_OuEmsRWKYZIBL58QU`,name:`Greenwood Hotel`,address:`The Greenwood Plaza Rooftop, 36 Blue St, North Sydney NSW 2060, Australia`,city:`North Sydney`,state:`New South Wales`,postcode:`2060`,country:`Australia`,latitude:-33.8401485,longitude:151.2074803,timeZone:`Australia/Sydney`,types:[`bar`,`establishment`,`food`,`point_of_interest`,`restaurant`],image:{src:`https://assets.session.services/locations/loc_01hk153x00eerbxb70s9fwbmc9.jpg`,alt:`Greenwood Hotel`,width:1200,height:800}},sydneyRacquetClub:{id:`loc_01hk153x00f26trt0z9kmm5pm4`,googlePlaceId:`ChIJB3Dai2SvEmsR904tdDsfGWs`,name:`Sydney Racquet Club`,address:`17 Park Rd N, Moore Park NSW 2021, Australia`,city:`Moore Park`,state:`New South Wales`,postcode:`2021`,country:`Australia`,latitude:-33.89344310000001,longitude:151.2260224,timeZone:`Australia/Sydney`,types:[`establishment`,`point_of_interest`],image:{src:`https://assets.session.services/locations/loc_01hk153x00f26trt0z9kmm5pm4.jpg`,alt:`Sydney Racquet Club`,width:1200,height:800}},centralStation:{id:`loc_01hk153x00fypv7sxqvby33hsg`,googlePlaceId:`ChIJpcfaaCGuEmsRcTRNZkqb51U`,name:`Central Station`,address:`Eddy Ave, Haymarket NSW 2000, Australia`,city:`Haymarket`,state:`New South Wales`,postcode:`2000`,country:`Australia`,latitude:-33.8826465,longitude:151.2064744,timeZone:`Australia/Sydney`,types:[`establishment`,`point_of_interest`,`subway_station`,`train_station`,`transit_station`],image:{src:`https://assets.session.services/locations/loc_01hk153x00fypv7sxqvby33hsg.jpg`,alt:`Central Station`,width:1200,height:800}},federationSquare:{id:`loc_01hk153x00ebfrn7y8v7z8emew`,googlePlaceId:`ChIJc4QL47ZC1moRFW-PYdhx-O0`,name:`Federation Square`,address:`Federation Square, Melbourne VIC 3000, Australia`,city:`Melbourne`,state:`Victoria`,postcode:`3000`,country:`Australia`,latitude:-37.8179789,longitude:144.9690576,timeZone:`Australia/Melbourne`,types:[`town_square`],image:{src:`https://assets.session.services/locations/loc_01hk153x00ebfrn7y8v7z8emew.jpg`,alt:`Federation Square`,width:1200,height:800}},bondiBeach:{id:`loc_01hk153x00er59hr0dvf9t4mpy`,googlePlaceId:`ChIJWTi8xgGyEmsRgK0yFmh9AQU`,name:`Bondi Beach`,address:`Bondi Beach NSW 2026, Australia`,city:`Bondi Beach`,state:`New South Wales`,postcode:`2026`,country:`Australia`,latitude:-33.8891201,longitude:151.2703991,timeZone:`Australia/Sydney`,types:[`locality`,`political`],image:{src:`https://assets.session.services/locations/loc_01hk153x00er59hr0dvf9t4mpy.jpg`,alt:`Bondi Beach`,width:1200,height:800}},sydney:{id:`loc_01hk153x00fyrr4gttg9psr5cv`,googlePlaceId:`ChIJP3Sa8ziYEmsRUKgyFmh9AQM`,name:`Sydney`,address:`Sydney NSW, Australia`,city:`Sydney`,state:`New South Wales`,postcode:void 0,country:`Australia`,latitude:-33.8727409,longitude:151.2057136,timeZone:`Australia/Sydney`,types:[`colloquial_area`,`locality`,`political`],image:{src:`https://assets.session.services/locations/loc_01hk153x00fyrr4gttg9psr5cv.jpg`,alt:`Sydney`,width:1200,height:800}}};})(Z$1||={});const th=I$1({net:N$1().min(0).meta({examples:[x$1.OrderItem.price.net],description:`Total amount to pay to promoter in cents.
|
|
37
|
-
Calculated as: total - booking - refunded`}),total:
|
|
38
|
-
Calculated as: gross - discount`}),gross:
|
|
39
|
-
Calculated as: base + booking`}),base:
|
|
40
|
-
Calculated as: total + booking + refunded + dispute`}),total:
|
|
41
|
-
Calculated as: gross + discount`}),gross:
|
|
42
|
-
Calculated as: base + booking + shipping`}),base:N$1().min(0).meta({examples:[x$1.Order.price.base],description:`Total ticket price in cents`}),booking:N$1().min(0).meta({examples:[x$1.Order.price.booking],description:`Total booking fees in cents (non-refundable)`}),shipping:N$1().min(0).meta({examples:[x$1.Order.price.shipping],description:`Total shipping amount in cents`}),sms:N$1().min(0).default(0).meta({examples:[x$1.Order.price.sms],description:`SMS delivery fee in cents (customer-facing price in event currency)`}),refunded:N$1().max(0).meta({examples:[x$1.Order.price.refunded],description:`Total amount refunded in cents (negative value)`}),discount:N$1().max(0).meta({examples:[x$1.Order.price.discount],description:`Total amount discounted in cents (negative value)`}),gateway:N$1().max(0).meta({examples:[x$1.Order.price.gateway],description:`Total absorbed payment gateway fees in cents (negative value)`}),dispute:N$1().max(0).meta({examples:[x$1.Order.price.dispute],description:`Total non-absorbed payment gateway fees in cents (negative value)`}),currency:z$1.meta({examples:[x$1.Order.price.currency],description:`Currency code in ISO 4217 format`})}),_h=L$1([`PENDING`,`PROCESSING`,`SUCCEEDED`,`FAILED`]),yh=L$1([`CUSTOMER_REQUEST`,`DUPLICATE`,`EVENT_CANCELLED`,`OTHER`]),xh=L$1([`USER`,`GATEWAY`]),Ch=I$1({orderItemId:A$1().meta({examples:[x$1.OrderRefundItem.orderItemId],description:`Identifier of the order item being refunded`}),quantity:N$1().min(1).meta({examples:[x$1.OrderRefundItem.quantity],description:`Number of units refunded for this item`}),amount:N$1().min(0).meta({examples:[x$1.OrderRefundItem.amount],description:`Refund amount for this item in cents (base price only, excludes booking fee)`}),ticketIds:F$1(A$1()).meta({examples:[x$1.OrderRefundItem.ticketIds],description:`Specific ticket identifiers that were refunded (selected via FIFO)`})}),wh=I$1({id:A$1().meta({examples:[x$1.OrderRefund.id],description:`Unique identifier for this refund`}),idempotencyKey:A$1().optional().meta({examples:[x$1.OrderRefund.idempotencyKey],description:`Client-provided key to prevent duplicate refund processing`}),status:_h.meta({examples:[`PENDING`,`SUCCEEDED`],description:`Current processing status. PENDING: awaiting gateway confirmation or async processing (e.g., bank transfers). PROCESSING: gateway confirmed, ticket cancellation in progress. SUCCEEDED/FAILED: terminal states.`}),processedAt:O$1().optional().meta({examples:[x$1.OrderRefund.processedAt],description:`Timestamp when the payment gateway confirmed the refund`}),failureReason:A$1().optional().meta({examples:[`Insufficient funds for refund`],description:`Error message from payment gateway if refund failed`}),amount:N$1().min(1).meta({examples:[x$1.OrderRefund.amount],description:`Total refund amount in cents (excludes booking fee, includes shipping if applicable)`}),shippingRefunded:N$1().min(0).meta({examples:[x$1.OrderRefund.shippingRefunded],description:`Shipping portion of the refund in cents`}),reason:yh.meta({examples:[`CUSTOMER_REQUEST`,`DUPLICATE`,`EVENT_CANCELLED`],description:`Categorized reason for the refund used for analytics`}),note:A$1().optional().meta({examples:[x$1.OrderRefund.note],description:`Free-form notes explaining the refund`}),items:F$1(Ch).meta({description:`Line items included in this refund with quantities and amounts`}),ticketsCancelled:P$1().meta({examples:[x$1.OrderRefund.ticketsCancelled],description:`Whether tickets were cancelled as part of this refund`}),ticketsCancelledCount:N$1().optional().meta({examples:[x$1.OrderRefund.ticketsCancelledCount],description:`Number of tickets that were cancelled`}),gateway:lh.meta({examples:[`STRIPE`,`AIRWALLEX`],description:`Payment gateway used to process the refund`}),gatewayRefundId:A$1().optional().meta({examples:[x$1.OrderRefund.gatewayRefundId],description:`Refund identifier from the payment gateway`}),initiatedBy:xh.meta({examples:[`USER`,`GATEWAY`],description:`Whether refund was initiated by a user or directly through the payment gateway`}),userId:A$1().optional().meta({examples:[x$1.OrderRefund.userId],description:`Identifier of the user who initiated the refund (when initiatedBy is USER)`}),metadata:Ss(A$1(),A$1()).optional().meta({examples:[{supportTicket:`#12345`}],description:`Custom key-value pairs passed through to the payment gateway`}),createdAt:O$1().meta({examples:[x$1.OrderRefund.createdAt],description:`Timestamp when the refund was created`})}),Th=gh.extend({exchangeRate:M$1().meta({examples:[1.4],description:`Conversion rate applied from the original payment currency to the settlement currency. 1.0 when both currencies are the same`})}).meta({description:`Settled price breakdown in the payout currency. All amounts from the original order price are converted using the exchange rate. For same-currency orders the values match the order price with an exchange rate of 1.0`,examples:[{base:14e3,booking:700,shipping:0,sms:0,discount:0,refunded:0,gateway:0,dispute:0,gross:14700,total:14700,net:14e3,currency:`AUD`,exchangeRate:1.4}]});function Eh(e,t,n={}){return I$1({id:A$1().meta({examples:t.idExamples,description:t.idDescription}),createdAt:O$1().readonly().meta({examples:t.createdAtExamples,description:`Timestamp in ISO 8601 format when this timeline entry was created`}),...n,kind:e.meta({examples:t.kindExamples,description:t.kindDescription}),editable:P$1().meta({examples:[false],description:`Whether this timeline entry can be edited by users`}),pinned:P$1().meta({examples:[false],description:`Whether this timeline entry is pinned to the top of the timeline`}),description:A$1().meta({examples:t.descriptionExamples,description:`Human-readable description of what happened in this timeline event`}),author:A$1().meta({examples:[`System`],description:`Name of the user or system that created this timeline entry`}),userId:A$1().optional().meta({examples:[x$1.User.id],description:t.userIdDescription??`Identifier of the user who created this timeline entry, when available`}),externalId:A$1().optional().meta({examples:t.externalIdExamples,description:t.externalIdDescription})})}const Dh=L$1(`ORDER_STATUS_UPDATED.ORDER_EXPIRED.ORDER_COMPLETED.PAYMENT_INITIATED.PAYMENT_PROCESSING.PAYMENT_FAILED.PAYMENT_SUCCEEDED.REFUND_INITIATED.REFUND_PROCESSING.REFUND_SUCCEEDED.REFUND_FAILED.CHARGEBACK_INITIATED.CHARGEBACK_EVIDENCE_SUBMITTED.CHARGEBACK_WON.CHARGEBACK_LOST.CHARGEBACK_FUNDS_WITHDRAWN.TICKETS_GENERATED.TICKET_ADDED.TICKETS_SCANNED.TICKET_EDITED.TICKET_STATUS_CHANGED.EMAIL_SENT.EMAIL_DELIVERED.EMAIL_OPENED.EMAIL_BOUNCED.EMAIL_COMPLAINED.EMAIL_FAILED.SMS_SENT.SMS_DELIVERED.SMS_FAILED.NOTE`.split(`.`)),Oh=Eh(Dh,{createdAtExamples:[x$1.Order.createdAt],descriptionExamples:[`Order was created successfully`],externalIdDescription:`External idempotency key for deduplication (e.g., SES messageId + eventType)`,externalIdExamples:[`ses:01234567-89ab-cdef-0123-456789abcdef:Delivery`],idDescription:`Unique identifier of the timeline entry`,idExamples:[x$1.Timeline.id],kindDescription:`Type of timeline event (ORDER_COMPLETED, PAYMENT_SUCCEEDED, REFUND_INITIATED, etc.)`,kindExamples:[`ORDER_COMPLETED`],userIdDescription:`Identifier of the user who created this timeline entry, when available.`},{status:A$1().optional().meta({examples:[`SUCCESSFUL`],description:`Order status associated with this timeline entry, when applicable.`})}),kh=L$1([`PENDING`,`PROCESSING`,`SUCCESSFUL`,`DISPUTED`,`ABANDONED`]),jh=I$1({id:uc.readonly().meta({examples:[x$1.Order.id],description:`A unique identifier for this order.`}),createdAt:O$1().readonly().meta({examples:[x$1.Order.createdAt],description:`Timestamp in ISO 8601 format when this order was created.`}),updatedAt:O$1().readonly().meta({examples:[x$1.Order.updatedAt],description:`Timestamp in ISO 8601 format when this order was last updated.`}),status:kh.meta({examples:[`PENDING`],description:`Current payment lifecycle status. PENDING: awaiting payment. PROCESSING: payment in progress. SUCCESSFUL: payment confirmed. DISPUTED: chargeback filed. ABANDONED: expired or cancelled.`}),payment:hh.optional().meta({description:`Payment gateway details including method, card brand, and transaction identifiers. Absent for free orders.`}),items:F$1(ih).meta({description:`Line items in this order, each with a ticket type, quantity, and price breakdown.`}),fees:F$1(Ym).meta({description:`Gateway fees recorded against this order from settlement processing (e.g. payment processing fees, dispute fees).`}),price:gh.meta({description:`Price breakdown in the event currency. This reflects what the customer was charged.`}),settlement:Th.optional().meta({description:`Price breakdown in the payout currency with the exchange rate applied. When the event currency differs from the settlement currency, all amounts are converted. For same-currency orders the values match the order price with an exchange rate of 1.0.`}),couponCode:Gm.optional().meta({description:`Coupon code applied to this order for discount calculation.`}),customer:Km.optional().meta({description:`Customer who placed this order. Absent for guest checkouts before customer details are captured.`}),marketingConsent:ah.optional().meta({description:`Marketing opt-in choices captured during checkout.`}),timeline:F$1(Oh).optional().meta({description:`Chronological audit trail of events for this order (payments, refunds, emails, scans).`}),refunds:F$1(wh).default([]).meta({description:`Refunds processed for this order including pending, succeeded, and failed attempts.`}),offers:F$1(ch).default([]).meta({description:`Pre-computed add-on offers available during checkout (e.g. SMS ticket delivery).`}),customerId:hc.optional().meta({examples:[x$1.Customer.id],description:`Identifier of the customer who placed this order.`}),createdBy:Km.optional().meta({description:`Admin user who created this order on behalf of the customer.`}),teamId:oc.meta({description:`Team that owns this order.`}),promoterId:fc.meta({examples:[x$1.Promoter.id],description:`Promoter managing this order.`}),event:qm.meta({description:`Snapshot of the event at time of purchase (name, slug, location).`}),payoutIds:F$1(yc.meta({examples:[`pay_01HQXYZ`],description:`Payout identifier.`})).meta({description:`Payout identifiers for settlements that included this order.`}),eventId:V$1.meta({examples:[x$1.Event.id],description:`Identifier of the event this order belongs to.`}),checkoutUrl:A$1().optional().readonly().meta({examples:[`https://example.com/checkout/ord_1234567890`],description:`Derived checkout URL where the customer can complete payment for this order.`}),returnUrl:A$1().optional().meta({examples:[`https://example.com/event/success`],description:`URL to redirect to after successful payment completion.`}),channel:Wm.optional().meta({description:`Channel metadata captured at order creation to identify origin and redirect context.`}),reservedAt:O$1().optional().meta({examples:[new Date().toISOString()],description:`Timestamp when inventory was reserved for this order. Used for checkout countdown timer.`})}).meta({description:`A customer order for event tickets. Tracks the full lifecycle from checkout through payment, settlement, and payout.`}),Mh=I$1({id:A$1().meta({examples:[x$1.Order.id],description:`Unique identifier of the order to add a note to`}),note:A$1().min(1).max(1e3).meta({examples:[`Customer requested special seating arrangements`],description:`Note text content (1-1000 characters)`})}),Nh=ih.omit({id:true,price:true,kind:true}).extend({id:A$1().optional().meta({examples:[`itm_01jps5cgsfwyxj0516571eaf17`],description:`Unique identifier for this order item. When omitted, the server assigns an id during processing`})}),Ph=I$1({eventId:A$1().meta({examples:[`evt_01jps5cgsenjrazw6wswmyspa3`],description:`Unique identifier of the event for which to create the order`}),items:F$1(Nh).meta({description:`List of items to include in the new order`}),couponCode:A$1().optional().meta({examples:[`TEST50`],description:`Optional coupon code to apply discount to the order`}),returnUrl:A$1().optional().meta({examples:[`https://example.com/event/success`],description:`Optional URL to redirect to after successful payment`}),channel:Wm.optional().meta({description:`Optional channel metadata for where the order originated (for attribution and redirect routing).`})}),Fh=I$1({id:A$1().meta({examples:[x$1.Order.id],description:`Unique identifier of the order`}),noteId:A$1().meta({examples:[`tl_1234567890_abc123`],description:`Unique identifier of the timeline note to delete`})}),Ih=L$1([`EMAIL`,`SMS`]).meta({examples:[`EMAIL`],description:`Method used to deliver tickets to the customer: EMAIL or SMS`});I$1({id:A$1().meta({examples:[x$1.Order.id],description:`Unique identifier of the order to edit`}),signature:wl.meta({description:`HMAC signature for customer access during checkout (16 characters, base64url encoded). Required for editing order items.`}),items:F$1(Nh).min(1).meta({description:`Updated list of items for the order (replaces existing items). Prices will be recalculated and payment intent updated.`})});const Rh=I$1({id:A$1().meta({examples:[x$1.Order.id],description:`Unique identifier of the order to retrieve`}),signature:wl.optional().meta({description:`HMAC signature for public order access (16 characters, base64url encoded)`})}),zh=`Either locationId or googlePlaceId must be provided`,Bh={locationId:cc.optional().meta({examples:[`loc_01jqpjksnsen9vprw95et60t2m`],description:`ID of an existing location. Either locationId or googlePlaceId must be provided.`}),googlePlaceId:A$1().optional().meta({examples:[`ChIJN1t_tDeuEmsRUsoyG83frY4`],description:`Google Place ID to create a new location from. Either locationId or googlePlaceId must be provided.`})};function Vh(e){return !!(e.locationId||e.googlePlaceId)}const Hh=zp.omit({id:true,createdAt:true,updatedAt:true,order:true,available:true,sold:true,reserved:true,promoterId:true,eventSlug:true,location:true}).extend({order:M$1().optional().meta({examples:[x$1.Section.order],description:`Display order of the section. Lower numbers appear first in listings. Defaults to 0 if not specified`}),...Bh}).refine(Vh,{message:zh}).meta({description:`Schema for creating a new section within an event venue. Excludes system-generated fields and fields derived from the event`}),Uh=zp.pick({id:true}).extend({eventId:A$1().meta({examples:[x$1.Section.eventId],description:`Unique identifier of the event to verify section belongs to`})}).meta({description:`Schema for soft-deleting a section by setting its deletedAt timestamp`}),Wh=zp.pick({id:true}).extend({eventId:A$1().meta({examples:[x$1.Section.eventId],description:`Unique identifier of the event to verify section belongs to`})}).meta({description:`Schema for retrieving a specific section by ID`}),Gh=I$1({eventId:zp.shape.eventId,query:A$1().optional().meta({examples:[`VIP`],description:`Optional search query. When provided, automatically uses search-backed pagination for full-text search capabilities`}),limit:R$1().min(1).max(100).prefault(20).meta({examples:[20],description:`Maximum number of sections to return in each result set. Must be between 1 and 100, defaults to 20`}),cursor:A$1().optional().meta({examples:[`eyJpbnRlbnQiOnsicmVzb3VyY2UiOiJzZWN0aW9uLmxpc3QifSwicG9zaXRpb24iOnsiZW5naW5lIjoiZHluYW1vIiwgImN1cnNvciI6InNlY18wMWpwczVjZ3NlMGczcWo1NnZkODZ6N3FqIiwgImhpc3RvcnkiOltdfX0=`],description:`Opaque pagination cursor from a previous response. Provide to continue fetching subsequent results`})}).meta({description:`Schema for listing sections with cursor-based pagination. Automatically uses search-backed pagination when query parameter is provided`}),Kh=G$2(zp,`sections`),qh=I$1({section:zp}),Jh=zp.omit({promoterId:true,createdAt:true,updatedAt:true,eventSlug:true,available:true,sold:true,reserved:true,location:true,teamId:true,name:true,capacity:true,limit:true,order:true,passcode:true}).extend({id:A$1().meta({examples:[x$1.Section.id],description:`Unique identifier of the section to update`}),eventId:A$1().meta({examples:[x$1.Section.eventId],description:`Unique identifier of the event to verify section belongs to`}),name:zp.shape.name.optional(),capacity:Dc().optional(),limit:Oc().optional(),order:zp.shape.order.optional(),passcode:zp.shape.passcode,locationId:cc.optional().meta({examples:[`loc_01jqpjksnsen9vprw95et60t2m`],description:`ID of an existing location to update to. Either locationId or googlePlaceId can be provided.`}),googlePlaceId:A$1().optional().meta({examples:[`ChIJN1t_tDeuEmsRUsoyG83frY4`],description:`Google Place ID to update location from. Either locationId or googlePlaceId can be provided.`})}).meta({description:`Schema for updating an existing section.`}),Yh=ih.extend({admission:W$2.optional().meta({description:`Complete admission details for this order item when available`}),section:zp.optional().meta({description:`Complete section details for this order item when applicable`})}),Xh=L$1([`asc`,`desc`]),Zh=I$1({mine:P$1().optional().meta({examples:[true],description:`When true, returns only the authenticated user's orders. Can be combined with teamId or eventId to further filter results.`}),teamId:A$1().optional().meta({description:`Filter orders by team unique identifier`}),eventId:A$1().optional().meta({examples:[`evt_01jps5cgsenjrazw6wswmyspa3`],description:`Filter orders by event unique identifier`}),status:kh.optional().meta({examples:[`SUCCESSFUL`],description:`Filter orders by payment status`}),query:A$1().optional().meta({examples:[`John Doe`],description:`Optional search query to filter orders by customer details. When provided, search-backed pagination is used.`}),includeEventTerms:P$1().optional().meta({examples:[true],description:`When true for authenticated user-owned order searches, also matches event name, slug, and location unless eventId is already provided.`}),direction:Xh.optional().meta({examples:[`asc`,`desc`],description:"Sort direction for order lists. Orders are always sorted by creation time. Defaults to `desc` when omitted."}),from:A$1().date().optional().meta({examples:[`2025-01-01`],description:`Filter orders created on or after this date (YYYY-MM-DD format). Inclusive of the entire day.`}),to:A$1().date().optional().meta({examples:[`2025-12-31`],description:`Filter orders created on or before this date (YYYY-MM-DD format). Inclusive of the entire day.`}),limit:Mc(`orders`),cursor:A$1().optional().meta({examples:[`eyJpZCI6Im9yZF8wMWpwczVjZ3NmZ3ZlNWI1ZzI2NjZreXJ5aCJ9`],description:`Pagination cursor for continuing to fetch subsequent results`})}),Qh=G$2(jh,`orders`),$h=I$1({items:F$1(Yh).meta({description:`List of order items with complete pricing and admission details`}),price:gh.meta({description:`Total pricing breakdown for the entire order quote`}),couponCode:rp.optional().meta({description:`Applied coupon code details if a discount was used in this quote`})}),eg=I$1({eventId:A$1().meta({examples:[`evt_01jps5cgsenjrazw6wswmyspa3`],description:`Unique identifier of the event for which to generate a price quote`}),items:F$1(Nh).meta({description:`List of items to include in the price quote calculation`}),couponCode:A$1().optional().meta({examples:[`TEST50`],description:`Optional coupon code to apply discount to the quote`})}),tg=I$1({quote:$h}),ng=I$1({orderItemId:A$1().meta({examples:[x$1.OrderRefundItem.orderItemId],description:`Identifier of the order item to refund`}),quantity:N$1().min(1).meta({examples:[x$1.OrderRefundItem.quantity],description:`Number of units to refund for this item`})}),rg=I$1({id:uc.meta({examples:[x$1.Order.id],description:`Identifier of the order to refund`}),fullRefund:P$1().default(false).meta({examples:[false],description:`When true, refunds all remaining refundable items. Mutually exclusive with items.`}),items:F$1(ng).optional().meta({description:`Specific items and quantities to refund. Required if fullRefund is false.`}),shippingAmount:N$1().min(0).optional().meta({examples:[500],description:`Amount of shipping to refund in cents. Cannot exceed remaining refundable shipping.`}),cancelTickets:P$1().default(true).meta({examples:[true],description:`Whether to cancel tickets associated with refunded items. Defaults to true.`}),notify:P$1().default(true).meta({examples:[true],description:`Whether to send a refund confirmation email to the customer. Defaults to true.`}),reason:yh.meta({examples:[`CUSTOMER_REQUEST`,`DUPLICATE`,`EVENT_CANCELLED`],description:`Categorized reason for the refund`}),note:A$1().optional().meta({examples:[`Customer requested refund due to schedule conflict`],description:`Free-form notes explaining the refund`}),idempotencyKey:A$1().optional().meta({examples:[`refund_12345_customer_request`],description:`Client-provided key to prevent duplicate refund processing. Recommended for programmatic refunds.`}),metadata:Ss(A$1(),A$1()).optional().meta({examples:[{supportTicket:`#12345`}],description:`Custom key-value pairs passed through to the payment gateway`})}).refine(e=>e.fullRefund||e.items&&e.items.length>0,{message:`Either fullRefund must be true or items must be provided`}),ig=I$1({refund:wh}),ag=I$1({id:A$1().meta({examples:[x$1.Order.id],description:`Order ID to resend tickets for`}),email:A$1().email().optional().meta({examples:[`customer@example.com`],description:`Email address to send tickets to. If not provided, uses order.customer.email`})}),og=I$1({id:A$1().meta({examples:[x$1.Order.id],description:`Unique identifier of the order to reserve inventory for`}),signature:wl.meta({description:`HMAC signature for customer access during checkout (16 characters, base64url encoded).`})}),cg=I$1({order:jh});var lg={version:4,country_calling_codes:{1:[`US`,`AG`,`AI`,`AS`,`BB`,`BM`,`BS`,`CA`,`DM`,`DO`,`GD`,`GU`,`JM`,`KN`,`KY`,`LC`,`MP`,`MS`,`PR`,`SX`,`TC`,`TT`,`VC`,`VG`,`VI`],7:[`RU`,`KZ`],20:[`EG`],27:[`ZA`],30:[`GR`],31:[`NL`],32:[`BE`],33:[`FR`],34:[`ES`],36:[`HU`],39:[`IT`,`VA`],40:[`RO`],41:[`CH`],43:[`AT`],44:[`GB`,`GG`,`IM`,`JE`],45:[`DK`],46:[`SE`],47:[`NO`,`SJ`],48:[`PL`],49:[`DE`],51:[`PE`],52:[`MX`],53:[`CU`],54:[`AR`],55:[`BR`],56:[`CL`],57:[`CO`],58:[`VE`],60:[`MY`],61:[`AU`,`CC`,`CX`],62:[`ID`],63:[`PH`],64:[`NZ`],65:[`SG`],66:[`TH`],81:[`JP`],82:[`KR`],84:[`VN`],86:[`CN`],90:[`TR`],91:[`IN`],92:[`PK`],93:[`AF`],94:[`LK`],95:[`MM`],98:[`IR`],211:[`SS`],212:[`MA`,`EH`],213:[`DZ`],216:[`TN`],218:[`LY`],220:[`GM`],221:[`SN`],222:[`MR`],223:[`ML`],224:[`GN`],225:[`CI`],226:[`BF`],227:[`NE`],228:[`TG`],229:[`BJ`],230:[`MU`],231:[`LR`],232:[`SL`],233:[`GH`],234:[`NG`],235:[`TD`],236:[`CF`],237:[`CM`],238:[`CV`],239:[`ST`],240:[`GQ`],241:[`GA`],242:[`CG`],243:[`CD`],244:[`AO`],245:[`GW`],246:[`IO`],247:[`AC`],248:[`SC`],249:[`SD`],250:[`RW`],251:[`ET`],252:[`SO`],253:[`DJ`],254:[`KE`],255:[`TZ`],256:[`UG`],257:[`BI`],258:[`MZ`],260:[`ZM`],261:[`MG`],262:[`RE`,`YT`],263:[`ZW`],264:[`NA`],265:[`MW`],266:[`LS`],267:[`BW`],268:[`SZ`],269:[`KM`],290:[`SH`,`TA`],291:[`ER`],297:[`AW`],298:[`FO`],299:[`GL`],350:[`GI`],351:[`PT`],352:[`LU`],353:[`IE`],354:[`IS`],355:[`AL`],356:[`MT`],357:[`CY`],358:[`FI`,`AX`],359:[`BG`],370:[`LT`],371:[`LV`],372:[`EE`],373:[`MD`],374:[`AM`],375:[`BY`],376:[`AD`],377:[`MC`],378:[`SM`],380:[`UA`],381:[`RS`],382:[`ME`],383:[`XK`],385:[`HR`],386:[`SI`],387:[`BA`],389:[`MK`],420:[`CZ`],421:[`SK`],423:[`LI`],500:[`FK`],501:[`BZ`],502:[`GT`],503:[`SV`],504:[`HN`],505:[`NI`],506:[`CR`],507:[`PA`],508:[`PM`],509:[`HT`],590:[`GP`,`BL`,`MF`],591:[`BO`],592:[`GY`],593:[`EC`],594:[`GF`],595:[`PY`],596:[`MQ`],597:[`SR`],598:[`UY`],599:[`CW`,`BQ`],670:[`TL`],672:[`NF`],673:[`BN`],674:[`NR`],675:[`PG`],676:[`TO`],677:[`SB`],678:[`VU`],679:[`FJ`],680:[`PW`],681:[`WF`],682:[`CK`],683:[`NU`],685:[`WS`],686:[`KI`],687:[`NC`],688:[`TV`],689:[`PF`],690:[`TK`],691:[`FM`],692:[`MH`],850:[`KP`],852:[`HK`],853:[`MO`],855:[`KH`],856:[`LA`],880:[`BD`],886:[`TW`],960:[`MV`],961:[`LB`],962:[`JO`],963:[`SY`],964:[`IQ`],965:[`KW`],966:[`SA`],967:[`YE`],968:[`OM`],970:[`PS`],971:[`AE`],972:[`IL`],973:[`BH`],974:[`QA`],975:[`BT`],976:[`MN`],977:[`NP`],992:[`TJ`],993:[`TM`],994:[`AZ`],995:[`GE`],996:[`KG`],998:[`UZ`]},countries:{AC:[`247`,`00`,`(?:[01589]\\d|[46])\\d{4}`,[5,6]],AD:[`376`,`00`,`(?:1|6\\d)\\d{7}|[135-9]\\d{5}`,[6,8,9],[[`(\\d{3})(\\d{3})`,`$1 $2`,[`[135-9]`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`1`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`6`]]]],AE:[`971`,`00`,`(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}`,[5,6,7,8,9,10,11,12],[[`(\\d{3})(\\d{2,9})`,`$1 $2`,[`60|8`]],[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[236]|[479][2-8]`],`0$1`],[`(\\d{3})(\\d)(\\d{5})`,`$1 $2 $3`,[`[479]`]],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`5`],`0$1`]],`0`],AF:[`93`,`00`,`[2-7]\\d{8}`,[9],[[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[2-7]`],`0$1`]],`0`],AG:[`1`,`011`,`(?:268|[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([457]\\d{6})$|1`,`268$1`,0,`268`],AI:[`1`,`011`,`(?:264|[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([2457]\\d{6})$|1`,`264$1`,0,`264`],AL:[`355`,`00`,`(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}`,[6,7,8,9],[[`(\\d{3})(\\d{3,4})`,`$1 $2`,[`80|9`],`0$1`],[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`4[2-6]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[2358][2-5]|4`],`0$1`],[`(\\d{3})(\\d{5})`,`$1 $2`,[`[23578]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`6`],`0$1`]],`0`],AM:[`374`,`00`,`(?:[1-489]\\d|55|60|77)\\d{6}`,[8],[[`(\\d{3})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`[89]0`],`0 $1`],[`(\\d{3})(\\d{5})`,`$1 $2`,[`2|3[12]`],`(0$1)`],[`(\\d{2})(\\d{6})`,`$1 $2`,[`1|47`],`(0$1)`],[`(\\d{2})(\\d{6})`,`$1 $2`,[`[3-9]`],`0$1`]],`0`],AO:[`244`,`00`,`[29]\\d{8}`,[9],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[29]`]]]],AR:[`54`,`00`,`(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}`,[10,11],[[`(\\d{4})(\\d{2})(\\d{4})`,`$1 $2-$3`,[`2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])`,`2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)`,`2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]`,`2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]`],`0$1`,1],[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2-$3`,[`1`],`0$1`,1],[`(\\d{3})(\\d{3})(\\d{4})`,`$1-$2-$3`,[`[68]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2-$3`,[`[23]`],`0$1`,1],[`(\\d)(\\d{4})(\\d{2})(\\d{4})`,`$2 15-$3-$4`,[`9(?:2[2-469]|3[3-578])`,`9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))`,`9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)`,`9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]`,`9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]`],`0$1`,0,`$1 $2 $3-$4`],[`(\\d)(\\d{2})(\\d{4})(\\d{4})`,`$2 15-$3-$4`,[`91`],`0$1`,0,`$1 $2 $3-$4`],[`(\\d{3})(\\d{3})(\\d{5})`,`$1-$2-$3`,[`8`],`0$1`],[`(\\d)(\\d{3})(\\d{3})(\\d{4})`,`$2 15-$3-$4`,[`9`],`0$1`,0,`$1 $2 $3-$4`]],`0`,0,`0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?`,`9$1`],AS:[`1`,`011`,`(?:[58]\\d\\d|684|900)\\d{7}`,[10],0,`1`,0,`([267]\\d{6})$|1`,`684$1`,0,`684`],AT:[`43`,`00`,`1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}`,[4,5,6,7,8,9,10,11,12,13],[[`(\\d)(\\d{3,12})`,`$1 $2`,[`1(?:11|[2-9])`],`0$1`],[`(\\d{3})(\\d{2})`,`$1 $2`,[`517`],`0$1`],[`(\\d{2})(\\d{3,5})`,`$1 $2`,[`5[079]`],`0$1`],[`(\\d{3})(\\d{3,10})`,`$1 $2`,[`(?:31|4)6|51|6(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]`,`(?:31|4)6|51|6(?:485|5[0-3579]|[6-9])|7(?:20|32|8)|[89]`],`0$1`],[`(\\d{4})(\\d{3,9})`,`$1 $2`,[`[2-467]|5[2-6]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`5`],`0$1`],[`(\\d{2})(\\d{4})(\\d{4,7})`,`$1 $2 $3`,[`5`],`0$1`]],`0`],AU:[`61`,`001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011`,`1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}`,[5,6,7,8,9,10,12],[[`(\\d{2})(\\d{3,4})`,`$1 $2`,[`16`],`0$1`],[`(\\d{2})(\\d{3})(\\d{2,4})`,`$1 $2 $3`,[`16`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`14|4`],`0$1`],[`(\\d)(\\d{4})(\\d{4})`,`$1 $2 $3`,[`[2378]`],`(0$1)`],[`(\\d{4})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`1(?:30|[89])`]]],`0`,0,`(183[12])|0`,0,0,0,[[`(?:(?:241|349)0\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|[34]\\d\\d)|91(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79]))))\\d{3}|(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8])|8(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}`,[9]],[`4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}`,[9]],[`180(?:0\\d{3}|2)\\d{3}`,[7,10]],[`190[0-26]\\d{6}`,[10]],0,0,0,[`163\\d{2,6}`,[5,6,7,8,9]],[`14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}`,[9]],[`13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}`,[6,8,10,12]]],`0011`],AW:[`297`,`00`,`(?:[25-79]\\d\\d|800)\\d{4}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[25-9]`]]]],AX:[`358`,`00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))`,`2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}`,[5,6,7,8,9,10,11,12],0,`0`,0,0,0,0,`18`,0,`00`],AZ:[`994`,`00`,`365\\d{6}|(?:[124579]\\d|60|88)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`90`],`0$1`],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`1[28]|2|365|46`,`1[28]|2|365[45]|46`,`1[28]|2|365(?:4|5[02])|46`],`(0$1)`],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[13-9]`],`0$1`]],`0`],BA:[`387`,`00`,`6\\d{8}|(?:[35689]\\d|49|70)\\d{6}`,[8,9],[[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`6[1-3]|[7-9]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2-$3`,[`[3-5]|6[56]`],`0$1`],[`(\\d{2})(\\d{2})(\\d{2})(\\d{3})`,`$1 $2 $3 $4`,[`6`],`0$1`]],`0`],BB:[`1`,`011`,`(?:246|[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([2-9]\\d{6})$|1`,`246$1`,0,`246`],BD:[`880`,`00`,`[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}`,[6,7,8,9,10],[[`(\\d{2})(\\d{4,6})`,`$1-$2`,[`31[5-8]|[459]1`],`0$1`],[`(\\d{3})(\\d{3,7})`,`$1-$2`,[`3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]`],`0$1`],[`(\\d{4})(\\d{3,6})`,`$1-$2`,[`[13-9]|2[23]`],`0$1`],[`(\\d)(\\d{7,8})`,`$1-$2`,[`2`],`0$1`]],`0`],BE:[`32`,`00`,`4\\d{8}|[1-9]\\d{7}`,[8,9],[[`(\\d{3})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`(?:80|9)0`],`0$1`],[`(\\d)(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[239]|4[23]`],`0$1`],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[15-8]`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`4`],`0$1`]],`0`],BF:[`226`,`00`,`(?:[025-7]\\d|44)\\d{6}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[024-7]`]]]],BG:[`359`,`00`,`00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}`,[6,7,8,9,12],[[`(\\d)(\\d)(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`2`],`0$1`],[`(\\d{3})(\\d{4})`,`$1 $2`,[`43[1-6]|70[1-9]`],`0$1`],[`(\\d)(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`2`],`0$1`],[`(\\d{2})(\\d{3})(\\d{2,3})`,`$1 $2 $3`,[`[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]`],`0$1`],[`(\\d{3})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`(?:70|8)0`],`0$1`],[`(\\d{3})(\\d{3})(\\d{2})`,`$1 $2 $3`,[`43[1-7]|7`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[48]|9[08]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`9`],`0$1`]],`0`],BH:[`973`,`00`,`[136-9]\\d{7}`,[8],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[13679]|8[02-4679]`]]]],BI:[`257`,`00`,`(?:[267]\\d|31)\\d{6}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[2367]`]]]],BJ:[`229`,`00`,`(?:01\\d|8)\\d{7}`,[8,10],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`8`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4 $5`,[`0`]]]],BL:[`590`,`00`,`(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}`,[9],0,`0`,0,0,0,0,0,[[`590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}`],[`(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}`],[`80[0-5]\\d{6}`],0,0,0,0,0,[`9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}`]]],BM:[`1`,`011`,`(?:441|[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([2-9]\\d{6})$|1`,`441$1`,0,`441`],BN:[`673`,`00`,`[2-578]\\d{6}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[2-578]`]]]],BO:[`591`,`00(?:1\\d)?`,`8001\\d{5}|(?:[2-467]\\d|50)\\d{6}`,[8,9],[[`(\\d)(\\d{7})`,`$1 $2`,[`[235]|4[46]`]],[`(\\d{8})`,`$1`,[`[67]`]],[`(\\d{3})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`8`]]],`0`,0,`0(1\\d)?`],BQ:[`599`,`00`,`(?:[34]1|7\\d)\\d{5}`,[7],0,0,0,0,0,0,`[347]`],BR:[`55`,`00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)`,`[1-467]\\d{9,10}|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}`,[8,9,10,11],[[`(\\d{4})(\\d{4})`,`$1-$2`,[`300|4(?:0[02]|37|86)`,`300|4(?:0(?:0|20)|370|864)`]],[`(\\d{3})(\\d{2,3})(\\d{4})`,`$1 $2 $3`,[`(?:[358]|90)0`],`0$1`],[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2-$3`,[`(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]`],`($1)`],[`(\\d{2})(\\d{5})(\\d{4})`,`$1 $2-$3`,[`[16][1-9]|[2-57-9]`],`($1)`]],`0`,0,`(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?`,`$2`],BS:[`1`,`011`,`(?:242|[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([3-8]\\d{6})$|1`,`242$1`,0,`242`],BT:[`975`,`00`,`[178]\\d{7}|[2-8]\\d{6}`,[7,8],[[`(\\d)(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[2-6]|7[246]|8[2-4]`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`1[67]|[78]`]]]],BW:[`267`,`00`,`(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}`,[7,8,10],[[`(\\d{2})(\\d{5})`,`$1 $2`,[`90`]],[`(\\d{3})(\\d{4})`,`$1 $2`,[`[24-6]|3[15-9]`]],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[37]`]],[`(\\d{4})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`0`]],[`(\\d{3})(\\d{4})(\\d{3})`,`$1 $2 $3`,[`8`]]]],BY:[`375`,`810`,`(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}`,[6,7,8,9,10,11],[[`(\\d{3})(\\d{3})`,`$1 $2`,[`800`],`8 $1`],[`(\\d{3})(\\d{2})(\\d{2,4})`,`$1 $2 $3`,[`800`],`8 $1`],[`(\\d{4})(\\d{2})(\\d{3})`,`$1 $2-$3`,[`1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])`,`1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])`],`8 0$1`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2-$3-$4`,[`1(?:[56]|7[467])|2[1-3]`],`8 0$1`],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2-$3-$4`,[`[1-4]`],`8 0$1`],[`(\\d{3})(\\d{3,4})(\\d{4})`,`$1 $2 $3`,[`[89]`],`8 $1`]],`8`,0,`0|80?`,0,0,0,0,`8~10`],BZ:[`501`,`00`,`(?:0800\\d|[2-8])\\d{6}`,[7,11],[[`(\\d{3})(\\d{4})`,`$1-$2`,[`[2-8]`]],[`(\\d)(\\d{3})(\\d{4})(\\d{3})`,`$1-$2-$3-$4`,[`0`]]]],CA:[`1`,`011`,`[2-9]\\d{9}|3\\d{6}`,[7,10],0,`1`,0,0,0,0,0,[[`(?:2(?:04|[23]6|[48]9|5[07]|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}`,[10]],[``,[10]],[`8(?:00|33|44|55|66|77|88)[2-9]\\d{6}`,[10]],[`900[2-9]\\d{6}`,[10]],[`52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|3[23]|44|66|77|88)|6(?:22|33))[2-9]\\d{6}`,[10]],0,[`310\\d{4}`,[7]],0,[`600[2-9]\\d{6}`,[10]]]],CC:[`61`,`001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011`,`1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}`,[6,7,8,9,10,12],0,`0`,0,`([59]\\d{7})$|0`,`8$1`,0,0,[[`8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}`,[9]],[`4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}`,[9]],[`180(?:0\\d{3}|2)\\d{3}`,[7,10]],[`190[0-26]\\d{6}`,[10]],0,0,0,0,[`14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}`,[9]],[`13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}`,[6,8,10,12]]],`0011`],CD:[`243`,`00`,`(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}`,[7,8,9,10],[[`(\\d{2})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`88`],`0$1`],[`(\\d{2})(\\d{5})`,`$1 $2`,[`[1-6]`],`0$1`],[`(\\d{2})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`2`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[89]`],`0$1`],[`(\\d{2})(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`5`],`0$1`]],`0`],CF:[`236`,`00`,`(?:[27]\\d{3}|8776)\\d{4}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[278]`]]]],CG:[`242`,`00`,`222\\d{6}|(?:0\\d|80)\\d{7}`,[9],[[`(\\d)(\\d{4})(\\d{4})`,`$1 $2 $3`,[`8`]],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[02]`]]]],CH:[`41`,`00`,`8\\d{11}|[2-9]\\d{8}`,[9,12],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`8[047]|90`],`0$1`],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[2-79]|81`],`0$1`],[`(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4 $5`,[`8`],`0$1`]],`0`],CI:[`225`,`00`,`[02]\\d{9}`,[10],[[`(\\d{2})(\\d{2})(\\d)(\\d{5})`,`$1 $2 $3 $4`,[`2`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{4})`,`$1 $2 $3 $4`,[`0`]]]],CK:[`682`,`00`,`[2-578]\\d{4}`,[5],[[`(\\d{2})(\\d{3})`,`$1 $2`,[`[2-578]`]]]],CL:[`56`,`(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0`,`12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}`,[9,10,11],[[`(\\d{5})(\\d{4})`,`$1 $2`,[`219`,`2196`],`($1)`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`60|809`]],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`44`]],[`(\\d)(\\d{4})(\\d{4})`,`$1 $2 $3`,[`2[1-36]`],`($1)`],[`(\\d)(\\d{4})(\\d{4})`,`$1 $2 $3`,[`9(?:10|[2-9])`]],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[1-9])`],`($1)`],[`(\\d{3})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`60|8`]],[`(\\d{4})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1`]],[`(\\d{3})(\\d{3})(\\d{2})(\\d{3})`,`$1 $2 $3 $4`,[`60`]]]],CM:[`237`,`00`,`[26]\\d{8}|88\\d{6,7}`,[8,9],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`88`]],[`(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4 $5`,[`[26]|88`]]]],CN:[`86`,`00|1(?:[12]\\d|79)\\d\\d00`,`(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}`,[7,8,9,10,11,12],[[`(\\d{2})(\\d{5,6})`,`$1 $2`,[`(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]`,`(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1`,`10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12`,`10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123`,`10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123`],`0$1`],[`(\\d{3})(\\d{5,6})`,`$1 $2`,[`3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]`,`(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]`,`85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])`,`85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`(?:4|80)0`]],[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`10|2(?:[02-57-9]|1[1-9])`,`10|2(?:[02-57-9]|1[1-9])`,`10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])`],`0$1`,1],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]`],`0$1`,1],[`(\\d{3})(\\d{7,8})`,`$1 $2`,[`9`]],[`(\\d{4})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`80`],`0$1`,1],[`(\\d{3})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`[3-578]`],`0$1`,1],[`(\\d{3})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`1[3-9]`]],[`(\\d{2})(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3 $4`,[`[12]`],`0$1`,1]],`0`,0,`(1(?:[12]\\d|79)\\d\\d)|0`,0,0,0,0,`00`],CO:[`57`,`00(?:4(?:[14]4|56)|[579])`,`(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}`,[8,10,11],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`46`]],[`(\\d{3})(\\d{7})`,`$1 $2`,[`6|90`],`($1)`],[`(\\d{3})(\\d{7})`,`$1 $2`,[`3[0-357]|9[14]`]],[`(\\d)(\\d{3})(\\d{7})`,`$1-$2-$3`,[`1`],`0$1`,0,`$1 $2 $3`]],`0`,0,`0([3579]|4(?:[14]4|56))?`],CR:[`506`,`00`,`(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}`,[8,10],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[2-7]|8[3-9]`]],[`(\\d{3})(\\d{3})(\\d{4})`,`$1-$2-$3`,[`[89]`]]],0,0,`(19(?:0[0-2468]|1[09]|20|66|77|99))`],CU:[`53`,`119`,`(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}`,[6,7,8,10],[[`(\\d{2})(\\d{4,6})`,`$1 $2`,[`2[1-4]|[34]`],`(0$1)`],[`(\\d)(\\d{6,7})`,`$1 $2`,[`7`],`(0$1)`],[`(\\d)(\\d{7})`,`$1 $2`,[`[56]`],`0$1`],[`(\\d{3})(\\d{7})`,`$1 $2`,[`8`],`0$1`]],`0`],CV:[`238`,`0`,`(?:[2-59]\\d\\d|800)\\d{4}`,[7],[[`(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`[2-589]`]]]],CW:[`599`,`00`,`(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}`,[7,8],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[3467]`]],[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`9[4-8]`]]],0,0,0,0,0,`[69]`],CX:[`61`,`001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011`,`1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}`,[6,7,8,9,10,12],0,`0`,0,`([59]\\d{7})$|0`,`8$1`,0,0,[[`8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}`,[9]],[`4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}`,[9]],[`180(?:0\\d{3}|2)\\d{3}`,[7,10]],[`190[0-26]\\d{6}`,[10]],0,0,0,0,[`14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}`,[9]],[`13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}`,[6,8,10,12]]],`0011`],CY:[`357`,`00`,`(?:[279]\\d|[58]0)\\d{6}`,[8],[[`(\\d{2})(\\d{6})`,`$1 $2`,[`[257-9]`]]]],CZ:[`420`,`00`,`(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}`,[9,10,11,12],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[2-8]|9[015-7]`]],[`(\\d{2})(\\d{3})(\\d{3})(\\d{2})`,`$1 $2 $3 $4`,[`96`]],[`(\\d{2})(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`9`]],[`(\\d{3})(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`9`]]]],DE:[`49`,`00`,`[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}`,[4,5,6,7,8,9,10,11,12,13,14,15],[[`(\\d{2})(\\d{3,13})`,`$1 $2`,[`3[02]|40|[68]9`],`0$1`],[`(\\d{3})(\\d{3,12})`,`$1 $2`,[`2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1`,`2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1`],`0$1`],[`(\\d{4})(\\d{2,11})`,`$1 $2`,[`[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]`,`[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]`],`0$1`],[`(\\d{3})(\\d{4})`,`$1 $2`,[`138`],`0$1`],[`(\\d{5})(\\d{2,10})`,`$1 $2`,[`3`],`0$1`],[`(\\d{3})(\\d{5,11})`,`$1 $2`,[`181`],`0$1`],[`(\\d{3})(\\d)(\\d{4,10})`,`$1 $2 $3`,[`1(?:3|80)|9`],`0$1`],[`(\\d{3})(\\d{7,8})`,`$1 $2`,[`1[67]`],`0$1`],[`(\\d{3})(\\d{7,12})`,`$1 $2`,[`8`],`0$1`],[`(\\d{5})(\\d{6})`,`$1 $2`,[`185`,`1850`,`18500`],`0$1`],[`(\\d{3})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`7`],`0$1`],[`(\\d{4})(\\d{7})`,`$1 $2`,[`18[68]`],`0$1`],[`(\\d{4})(\\d{7})`,`$1 $2`,[`15[1279]`],`0$1`],[`(\\d{5})(\\d{6})`,`$1 $2`,[`15[03568]`,`15(?:[0568]|3[13])`],`0$1`],[`(\\d{3})(\\d{8})`,`$1 $2`,[`18`],`0$1`],[`(\\d{3})(\\d{2})(\\d{7,8})`,`$1 $2 $3`,[`1(?:6[023]|7)`],`0$1`],[`(\\d{4})(\\d{2})(\\d{7})`,`$1 $2 $3`,[`15[279]`],`0$1`],[`(\\d{3})(\\d{2})(\\d{8})`,`$1 $2 $3`,[`15`],`0$1`]],`0`],DJ:[`253`,`00`,`(?:2\\d|77)\\d{6}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[27]`]]]],DK:[`45`,`00`,`[2-9]\\d{7}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[2-9]`]]]],DM:[`1`,`011`,`(?:[58]\\d\\d|767|900)\\d{7}`,[10],0,`1`,0,`([2-7]\\d{6})$|1`,`767$1`,0,`767`],DO:[`1`,`011`,`(?:[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,0,0,0,`8001|8[024]9`],DZ:[`213`,`00`,`(?:[1-4]|[5-79]\\d|80)\\d{7}`,[8,9],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[1-4]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`9`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[5-8]`],`0$1`]],`0`],EC:[`593`,`00`,`1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}`,[8,9,10,11],[[`(\\d)(\\d{3})(\\d{4})`,`$1 $2-$3`,[`[2-7]`],`(0$1)`,0,`$1-$2-$3`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`9`],`0$1`],[`(\\d{4})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`1`]]],`0`],EE:[`372`,`00`,`8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}`,[7,8,10],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88`,`[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88`]],[`(\\d{4})(\\d{3,4})`,`$1 $2`,[`[45]|8(?:00|[1-49])`,`[45]|8(?:00[1-9]|[1-49])`]],[`(\\d{2})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`7`]],[`(\\d{4})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`8`]]]],EG:[`20`,`00`,`[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}`,[8,9,10],[[`(\\d)(\\d{7,8})`,`$1 $2`,[`[23]`],`0$1`],[`(\\d{2})(\\d{6,7})`,`$1 $2`,[`1[35]|[4-6]|8[2468]|9[235-7]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[89]`],`0$1`],[`(\\d{2})(\\d{8})`,`$1 $2`,[`1`],`0$1`]],`0`],EH:[`212`,`00`,`[5-8]\\d{8}`,[9],0,`0`,0,0,0,0,0,[[`528[89]\\d{5}`],[`(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|5[0-5]))\\d{6}`],[`80[0-7]\\d{6}`],[`89\\d{7}`],0,0,0,0,[`(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}`]]],ER:[`291`,`00`,`[178]\\d{6}`,[7],[[`(\\d)(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[178]`],`0$1`]],`0`],ES:[`34`,`00`,`[5-9]\\d{8}`,[9],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[89]00`]],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[5-9]`]]]],ET:[`251`,`00`,`(?:11|[2-579]\\d)\\d{7}`,[9],[[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[1-579]`],`0$1`]],`0`],FI:[`358`,`00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))`,`[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}`,[5,6,7,8,9,10,11,12],[[`(\\d{5})`,`$1`,[`20[2-59]`],`0$1`],[`(\\d{3})(\\d{3,7})`,`$1 $2`,[`(?:[1-3]0|[68])0|70[07-9]`],`0$1`],[`(\\d{2})(\\d{4,8})`,`$1 $2`,[`[14]|2[09]|50|7[135]`],`0$1`],[`(\\d{2})(\\d{6,10})`,`$1 $2`,[`7`],`0$1`],[`(\\d)(\\d{4,9})`,`$1 $2`,[`(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9`],`0$1`]],`0`,0,0,0,0,`1[03-79]|[2-9]`,0,`00`],FJ:[`679`,`0(?:0|52)`,`45\\d{5}|(?:0800\\d|[235-9])\\d{6}`,[7,11],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[235-9]|45`]],[`(\\d{4})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`0`]]],0,0,0,0,0,0,0,`00`],FK:[`500`,`00`,`[2-7]\\d{4}`,[5]],FM:[`691`,`00`,`(?:[39]\\d\\d|820)\\d{4}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[389]`]]]],FO:[`298`,`00`,`[2-9]\\d{5}`,[6],[[`(\\d{6})`,`$1`,[`[2-9]`]]],0,0,`(10(?:01|[12]0|88))`],FR:[`33`,`00`,`[1-9]\\d{8}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`8`],`0 $1`],[`(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4 $5`,[`[1-79]`],`0$1`]],`0`],GA:[`241`,`00`,`(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}`,[7,8],[[`(\\d)(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[2-7]`],`0$1`],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`0`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`11|[67]`],`0$1`]],0,0,`0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})`,`$1`],GB:[`44`,`00`,`[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}`,[7,9,10],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`800`,`8001`,`80011`,`800111`,`8001111`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`845`,`8454`,`84546`,`845464`],`0$1`],[`(\\d{3})(\\d{6})`,`$1 $2`,[`800`],`0$1`],[`(\\d{5})(\\d{4,5})`,`$1 $2`,[`1(?:38|5[23]|69|76|94)`,`1(?:(?:38|69)7|5(?:24|39)|768|946)`,`1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)`],`0$1`],[`(\\d{4})(\\d{5,6})`,`$1 $2`,[`1(?:[2-69][02-9]|[78])`],`0$1`],[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`[25]|7(?:0|6[02-9])`,`[25]|7(?:0|6(?:[03-9]|2[356]))`],`0$1`],[`(\\d{4})(\\d{6})`,`$1 $2`,[`7`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[1389]`],`0$1`]],`0`,0,`0|180020`,0,0,0,[[`(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}`,[9,10]],[`7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}`,[10]],[`80[08]\\d{7}|800\\d{6}|8001111`],[`(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d`,[7,10]],[`70\\d{8}`,[10]],0,[`(?:3[0347]|55)\\d{8}`,[10]],[`76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}`,[10]],[`56\\d{8}`,[10]]],0,` x`],GD:[`1`,`011`,`(?:473|[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([2-9]\\d{6})$|1`,`473$1`,0,`473`],GE:[`995`,`00`,`(?:[3-57]\\d\\d|800)\\d{6}`,[9],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`70`],`0$1`],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`32`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[57]`]],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[348]`],`0$1`]],`0`],GF:[`594`,`00`,`(?:[56]94\\d|7093)\\d{5}|(?:80|9\\d)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[5-7]|9[47]`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[89]`],`0$1`]],`0`],GG:[`44`,`00`,`(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?`,[7,9,10],0,`0`,0,`([25-9]\\d{5})$|0|180020`,`1481$1`,0,0,[[`1481[25-9]\\d{5}`,[10]],[`7(?:(?:781|839)\\d|911[17])\\d{5}`,[10]],[`80[08]\\d{7}|800\\d{6}|8001111`],[`(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d`,[7,10]],[`70\\d{8}`,[10]],0,[`(?:3[0347]|55)\\d{8}`,[10]],[`76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}`,[10]],[`56\\d{8}`,[10]]]],GH:[`233`,`00`,`(?:[235]\\d{3}|800)\\d{5}`,[8,9],[[`(\\d{3})(\\d{5})`,`$1 $2`,[`8`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[235]`],`0$1`]],`0`],GI:[`350`,`00`,`(?:[25]\\d|60)\\d{6}`,[8],[[`(\\d{3})(\\d{5})`,`$1 $2`,[`2`]]]],GL:[`299`,`00`,`(?:19|[2-689]\\d|70)\\d{4}`,[6],[[`(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`19|[2-9]`]]]],GM:[`220`,`00`,`[2-9]\\d{6}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[2-9]`]]]],GN:[`224`,`00`,`722\\d{6}|(?:3|6\\d)\\d{7}`,[8,9],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`3`]],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[67]`]]]],GP:[`590`,`00`,`(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[5-79]`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`8`],`0$1`]],`0`,0,0,0,0,0,[[`590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}`],[`(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}`],[`80[0-5]\\d{6}`],0,0,0,0,0,[`9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}`]]],GQ:[`240`,`00`,`222\\d{6}|(?:3\\d|55|[89]0)\\d{7}`,[9],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[235]`]],[`(\\d{3})(\\d{6})`,`$1 $2`,[`[89]`]]]],GR:[`30`,`00`,`5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}`,[10,11,12],[[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`21|7`]],[`(\\d{4})(\\d{6})`,`$1 $2`,[`2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5`]],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[2689]`]],[`(\\d{3})(\\d{3,4})(\\d{5})`,`$1 $2 $3`,[`8`]]]],GT:[`502`,`00`,`80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}`,[8,11],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[2-8]`]],[`(\\d{4})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1`]]]],GU:[`1`,`011`,`(?:[58]\\d\\d|671|900)\\d{7}`,[10],0,`1`,0,`([2-9]\\d{6})$|1`,`671$1`,0,`671`],GW:[`245`,`00`,`[49]\\d{8}|4\\d{6}`,[7,9],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`40`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[49]`]]]],GY:[`592`,`001`,`(?:[2-8]\\d{3}|9008)\\d{3}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[2-9]`]]]],HK:[`852`,`00(?:30|5[09]|[126-9]?)`,`8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}`,[5,6,7,8,9,11],[[`(\\d{3})(\\d{2,5})`,`$1 $2`,[`900`,`9003`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[2-7]|8[1-4]|9(?:0[1-9]|[1-8])`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`8`]],[`(\\d{3})(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`9`]]],0,0,0,0,0,0,0,`00`],HN:[`504`,`00`,`8\\d{10}|[237-9]\\d{7}`,[8,11],[[`(\\d{4})(\\d{4})`,`$1-$2`,[`[237-9]`]]]],HR:[`385`,`00`,`[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}`,[7,8,9],[[`(\\d{2})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`6[01]`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2,3})`,`$1 $2 $3`,[`8`],`0$1`],[`(\\d)(\\d{4})(\\d{3})`,`$1 $2 $3`,[`1`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`6|7[245]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`9`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[2-57]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`8`],`0$1`]],`0`],HT:[`509`,`00`,`[2-589]\\d{7}`,[8],[[`(\\d{2})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`[2-589]`]]]],HU:[`36`,`00`,`[235-7]\\d{8}|[1-9]\\d{7}`,[8,9],[[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1`],`(06 $1)`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]`],`(06 $1)`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[2-9]`],`06 $1`]],`06`],ID:[`62`,`00[89]`,`00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}`,[7,8,9,10,11,12,13,14,15,16,17],[[`(\\d)(\\d{3})(\\d{3})`,`$1 $2 $3`,[`15`]],[`(\\d{2})(\\d{5,9})`,`$1 $2`,[`2[124]|[36]1`],`(0$1)`],[`(\\d{3})(\\d{5,7})`,`$1 $2`,[`800`],`0$1`],[`(\\d{3})(\\d{5,8})`,`$1 $2`,[`[2-79]`],`(0$1)`],[`(\\d{3})(\\d{3,4})(\\d{3})`,`$1-$2-$3`,[`8[1-35-9]`],`0$1`],[`(\\d{3})(\\d{6,8})`,`$1 $2`,[`1`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`804`],`0$1`],[`(\\d{3})(\\d)(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`80`],`0$1`],[`(\\d{3})(\\d{4})(\\d{4,5})`,`$1-$2-$3`,[`8`],`0$1`]],`0`],IE:[`353`,`00`,`(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}`,[7,8,9,10],[[`(\\d{2})(\\d{5})`,`$1 $2`,[`2[24-9]|47|58|6[237-9]|9[35-9]`],`(0$1)`],[`(\\d{3})(\\d{5})`,`$1 $2`,[`[45]0`],`(0$1)`],[`(\\d)(\\d{3,4})(\\d{4})`,`$1 $2 $3`,[`1`],`(0$1)`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[2569]|4[1-69]|7[14]`],`(0$1)`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`70`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`81`],`(0$1)`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[78]`],`0$1`],[`(\\d{4})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`1`]],[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`4`],`(0$1)`],[`(\\d{2})(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3 $4`,[`8`],`0$1`]],`0`],IL:[`972`,`0(?:0|1[2-9])`,`1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}`,[7,8,9,10,11,12],[[`(\\d{4})(\\d{3})`,`$1-$2`,[`125`]],[`(\\d{4})(\\d{2})(\\d{2})`,`$1-$2-$3`,[`121`]],[`(\\d)(\\d{3})(\\d{4})`,`$1-$2-$3`,[`[2-489]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1-$2-$3`,[`[57]`],`0$1`],[`(\\d{4})(\\d{3})(\\d{3})`,`$1-$2-$3`,[`12`]],[`(\\d{4})(\\d{6})`,`$1-$2`,[`159`]],[`(\\d)(\\d{3})(\\d{3})(\\d{3})`,`$1-$2-$3-$4`,[`1[7-9]`]],[`(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})`,`$1-$2 $3-$4`,[`15`]]],`0`],IM:[`44`,`00`,`1624\\d{6}|(?:[3578]\\d|90)\\d{8}`,[10],0,`0`,0,`([25-8]\\d{5})$|0|180020`,`1624$1`,0,`74576|(?:16|7[56])24`],IN:[`91`,`00`,`(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}`,[8,9,10,11,12,13],[[`(\\d{8})`,`$1`,[`5(?:0|2[23]|3[03]|[67]1|88)`,`5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)`,`5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)`],0,1],[`(\\d{4})(\\d{4,5})`,`$1 $2`,[`180`,`1800`],0,1],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`140`],0,1],[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`11|2[02]|33|4[04]|79[1-7]|80[2-46]`,`11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])`,`11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])`],`0$1`,1],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]`,`1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]`,`1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]`],`0$1`,1],[`(\\d{4})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807`,`1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]`,`1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689])\\d|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]`],`0$1`,1],[`(\\d{5})(\\d{5})`,`$1 $2`,[`16|[6-9]`],`0$1`,1],[`(\\d{4})(\\d{2,4})(\\d{4})`,`$1 $2 $3`,[`18[06]`,`18[06]0`],0,1],[`(\\d{4})(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`18`],0,1]],`0`],IO:[`246`,`00`,`3\\d{6}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`3`]]]],IQ:[`964`,`00`,`(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}`,[8,9,10],[[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[2-6]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`7`],`0$1`]],`0`],IR:[`98`,`00`,`[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}`,[4,5,6,7,10],[[`(\\d{4,5})`,`$1`,[`96`],`0$1`],[`(\\d{2})(\\d{4,5})`,`$1 $2`,[`(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`9`],`0$1`],[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`[1-8]`],`0$1`]],`0`],IS:[`354`,`00|1(?:0(?:01|[12]0)|100)`,`(?:38\\d|[4-9])\\d{6}`,[7,9],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[4-9]`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`3`]]],0,0,0,0,0,0,0,`00`],IT:[`39`,`00`,`0\\d{5,11}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?`,[6,7,8,9,10,11,12],[[`(\\d{2})(\\d{4,6})`,`$1 $2`,[`0[26]`]],[`(\\d{3})(\\d{3,6})`,`$1 $2`,[`0[13-57-9][0159]|8(?:03|4[17]|9[2-5])`,`0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))`]],[`(\\d{4})(\\d{2,6})`,`$1 $2`,[`0(?:[13-579][2-46-8]|8[236-8])`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`894`]],[`(\\d{2})(\\d{3,4})(\\d{4})`,`$1 $2 $3`,[`0[26]|5`]],[`(\\d{3})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`1(?:44|[679])|[378]|43`]],[`(\\d{3})(\\d{3,4})(\\d{4})`,`$1 $2 $3`,[`0[13-57-9][0159]|14`]],[`(\\d{2})(\\d{4})(\\d{5})`,`$1 $2 $3`,[`0[26]`]],[`(\\d{4})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`0`]],[`(\\d{3})(\\d{4})(\\d{4,5})`,`$1 $2 $3`,[`[03]`]]],0,0,0,0,0,0,[[`0(?:669[0-79]\\d{1,6}|831\\d{2,8})|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}`],[`3[2-9]\\d{7,8}|(?:31|43)\\d{8}`,[9,10]],[`80(?:0\\d{3}|3)\\d{3}`,[6,9]],[`(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}`,[6,8,9,10]],[`1(?:78\\d|99)\\d{6}`,[9,10]],[`3[2-8]\\d{9,10}`,[11,12]],0,0,[`55\\d{8}`,[10]],[`84(?:[08]\\d{3}|[17])\\d{3}`,[6,9]]]],JE:[`44`,`00`,`1534\\d{6}|(?:[3578]\\d|90)\\d{8}`,[10],0,`0`,0,`([0-24-8]\\d{5})$|0|180020`,`1534$1`,0,0,[[`1534[0-24-8]\\d{5}`],[`7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}`],[`80(?:07(?:35|81)|8901)\\d{4}`],[`(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}`],[`701511\\d{4}`],0,[`(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}`],[`76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}`],[`56\\d{8}`]]],JM:[`1`,`011`,`(?:[58]\\d\\d|658|900)\\d{7}`,[10],0,`1`,0,0,0,0,`658|876`],JO:[`962`,`00`,`(?:(?:[2689]|7\\d)\\d|32|427|53)\\d{6}`,[8,9],[[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[2356]|87`],`(0$1)`],[`(\\d{3})(\\d{5,6})`,`$1 $2`,[`[89]`],`0$1`],[`(\\d{2})(\\d{7})`,`$1 $2`,[`70`],`0$1`],[`(\\d)(\\d{4})(\\d{4})`,`$1 $2 $3`,[`[47]`],`0$1`]],`0`],JP:[`81`,`010`,`00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}`,[8,9,10,11,12,13,14,15,16,17],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1-$2-$3`,[`(?:12|57|99)0`],`0$1`],[`(\\d{4})(\\d)(\\d{4})`,`$1-$2-$3`,[`1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])`,`1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]`,`1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1-$2-$3`,[`60`],`0$1`],[`(\\d)(\\d{4})(\\d{4})`,`$1-$2-$3`,[`3|4(?:2[09]|7[01])|6[1-9]`,`3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1-$2-$3`,[`1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])`,`1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]`,`1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]`],`0$1`],[`(\\d{3})(\\d{2})(\\d{4})`,`$1-$2-$3`,[`[14]|[289][2-9]|5[3-9]|7[2-4679]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1-$2-$3`,[`800`],`0$1`],[`(\\d{2})(\\d{4})(\\d{4})`,`$1-$2-$3`,[`[25-9]`],`0$1`]],`0`,0,`(000[2569]\\d{4,6})$|(?:(?:003768)0?)|0`,`$1`],KE:[`254`,`000`,`(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}`,[7,8,9,10],[[`(\\d{2})(\\d{5,7})`,`$1 $2`,[`[24-6]`],`0$1`],[`(\\d{3})(\\d{6})`,`$1 $2`,[`[17]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[89]`],`0$1`]],`0`],KG:[`996`,`00`,`8\\d{9}|[235-9]\\d{8}`,[9,10],[[`(\\d{4})(\\d{5})`,`$1 $2`,[`3(?:1[346]|[24-79])`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[235-79]|88`],`0$1`],[`(\\d{3})(\\d{3})(\\d)(\\d{2,3})`,`$1 $2 $3 $4`,[`8`],`0$1`]],`0`],KH:[`855`,`00[14-9]`,`1\\d{9}|[1-9]\\d{7,8}`,[8,9,10],[[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[1-9]`],`0$1`],[`(\\d{4})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`1`]]],`0`],KI:[`686`,`00`,`(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}`,[5,8],0,`0`],KM:[`269`,`00`,`[3478]\\d{6}`,[7],[[`(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`[3478]`]]]],KN:[`1`,`011`,`(?:[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([2-7]\\d{6})$|1`,`869$1`,0,`869`],KP:[`850`,`00|99`,`85\\d{6}|(?:19\\d|[2-7])\\d{7}`,[8,10],[[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`8`],`0$1`],[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[2-7]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1`],`0$1`]],`0`],KR:[`82`,`00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))`,`00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}`,[5,6,8,9,10,11,12,13,14],[[`(\\d{2})(\\d{3,4})`,`$1-$2`,[`(?:3[1-3]|[46][1-4]|5[1-5])1`],`0$1`],[`(\\d{4})(\\d{4})`,`$1-$2`,[`1`]],[`(\\d)(\\d{3,4})(\\d{4})`,`$1-$2-$3`,[`2`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1-$2-$3`,[`[36]0|8`],`0$1`],[`(\\d{2})(\\d{3,4})(\\d{4})`,`$1-$2-$3`,[`[1346]|5[1-5]`],`0$1`],[`(\\d{2})(\\d{4})(\\d{4})`,`$1-$2-$3`,[`[57]`],`0$1`],[`(\\d{2})(\\d{5})(\\d{4})`,`$1-$2-$3`,[`5`],`0$1`]],`0`,0,`0(8(?:[1-46-8]|5\\d\\d))?`],KW:[`965`,`00`,`18\\d{5}|(?:[2569]\\d|41)\\d{6}`,[7,8],[[`(\\d{4})(\\d{3,4})`,`$1 $2`,[`[169]|2(?:[235]|4[1-35-9])|52`]],[`(\\d{3})(\\d{5})`,`$1 $2`,[`[245]`]]]],KY:[`1`,`011`,`(?:345|[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([2-9]\\d{6})$|1`,`345$1`,0,`345`],KZ:[`7`,`810`,`(?:33622|8\\d{8})\\d{5}|[78]\\d{9}`,[10,14],0,`8`,0,0,0,0,`33622|7`,0,`8~10`],LA:[`856`,`00`,`[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}`,[8,9,10],[[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`2[13]|3[14]|[4-8]`],`0$1`],[`(\\d{2})(\\d{2})(\\d{2})(\\d{3})`,`$1 $2 $3 $4`,[`3`],`0$1`],[`(\\d{2})(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`[23]`],`0$1`]],`0`],LB:[`961`,`00`,`[27-9]\\d{7}|[13-9]\\d{6}`,[7,8],[[`(\\d)(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[13-69]|7(?:[2-57]|62|8[0-6]|9[04-9])|8[02-9]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[27-9]`]]],`0`],LC:[`1`,`011`,`(?:[58]\\d\\d|758|900)\\d{7}`,[10],0,`1`,0,`([2-8]\\d{6})$|1`,`758$1`,0,`758`],LI:[`423`,`00`,`[68]\\d{8}|(?:[2378]\\d|90)\\d{5}`,[7,9],[[`(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`[2379]|8(?:0[09]|7)`,`[2379]|8(?:0(?:02|9)|7)`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`8`]],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`69`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`6`]]],`0`,0,`(1001)|0`],LK:[`94`,`00`,`[1-9]\\d{8}`,[9],[[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`7`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[1-689]`],`0$1`]],`0`],LR:[`231`,`00`,`(?:[2457]\\d|33|88)\\d{7}|(?:2\\d|[4-6])\\d{6}`,[7,8,9],[[`(\\d)(\\d{3})(\\d{3})`,`$1 $2 $3`,[`4[67]|[56]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`2`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[2-578]`],`0$1`]],`0`],LS:[`266`,`00`,`(?:[256]\\d\\d|800)\\d{5}`,[8],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[2568]`]]]],LT:[`370`,`00`,`(?:[3469]\\d|52|[78]0)\\d{6}`,[8],[[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`52[0-7]`],`(0-$1)`,1],[`(\\d{3})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`[7-9]`],`0 $1`,1],[`(\\d{2})(\\d{6})`,`$1 $2`,[`37|4(?:[15]|6[1-8])`],`(0-$1)`,1],[`(\\d{3})(\\d{5})`,`$1 $2`,[`[3-6]`],`(0-$1)`,1]],`0`,0,`[08]`],LU:[`352`,`00`,`35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}`,[4,5,6,7,8,9,10,11],[[`(\\d{2})(\\d{3})`,`$1 $2`,[`2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])`]],[`(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])`]],[`(\\d{2})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`20[2-689]`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})`,`$1 $2 $3 $4`,[`2(?:[0367]|4[3-8])`]],[`(\\d{3})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`80[01]|90[015]`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{3})`,`$1 $2 $3 $4`,[`20`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`6`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})`,`$1 $2 $3 $4 $5`,[`2(?:[0367]|4[3-8])`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})`,`$1 $2 $3 $4`,[`[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]`]]],0,0,`(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)`],LV:[`371`,`00`,`(?:[268]\\d|78|90)\\d{6}`,[8],[[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[2679]|8[01]`]]]],LY:[`218`,`00`,`[2-9]\\d{8}`,[9],[[`(\\d{2})(\\d{7})`,`$1-$2`,[`[2-9]`],`0$1`]],`0`],MA:[`212`,`00`,`[5-8]\\d{8}`,[9],[[`(\\d{4})(\\d{5})`,`$1-$2`,[`892`],`0$1`],[`(\\d{2})(\\d{7})`,`$1-$2`,[`8(?:0[0-7]|9)`],`0$1`],[`(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4 $5`,[`[5-8]`],`0$1`]],`0`,0,0,0,0,`[5-8]`],MC:[`377`,`00`,`(?:[3489]|[67]\\d)\\d{7}`,[8,9],[[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`4`],`0$1`],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[389]`]],[`(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4 $5`,[`[67]`],`0$1`]],`0`],MD:[`373`,`00`,`(?:[235-7]\\d|[89]0)\\d{6}`,[8],[[`(\\d{3})(\\d{5})`,`$1 $2`,[`[89]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`22|3`],`0$1`],[`(\\d{3})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`[25-7]`],`0$1`]],`0`],ME:[`382`,`00`,`(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}`,[8,9],[[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[2-9]`],`0$1`]],`0`],MF:[`590`,`00`,`(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}`,[9],0,`0`,0,0,0,0,0,[[`590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}`],[`(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}`],[`80[0-5]\\d{6}`],0,0,0,0,0,[`9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}`]]],MG:[`261`,`00`,`[23]\\d{8}`,[9],[[`(\\d{2})(\\d{2})(\\d{3})(\\d{2})`,`$1 $2 $3 $4`,[`[23]`],`0$1`]],`0`,0,`([24-9]\\d{6})$|0`,`20$1`],MH:[`692`,`011`,`329\\d{4}|(?:[256]\\d|45)\\d{5}`,[7],[[`(\\d{3})(\\d{4})`,`$1-$2`,[`[2-6]`]]],`1`],MK:[`389`,`00`,`[2-578]\\d{7}`,[8],[[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`2|34[47]|4(?:[37]7|5[47]|64)`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[347]`],`0$1`],[`(\\d{3})(\\d)(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[58]`],`0$1`]],`0`],ML:[`223`,`00`,`[24-9]\\d{7}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[24-9]`]]]],MM:[`95`,`00`,`1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}`,[6,7,8,9,10],[[`(\\d)(\\d{2})(\\d{3})`,`$1 $2 $3`,[`16|2`],`0$1`],[`(\\d{2})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]`],`0$1`],[`(\\d)(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[12]|452|678|86`,`[12]|452|6788|86`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[4-7]|8[1-35]`],`0$1`],[`(\\d)(\\d{3})(\\d{4,6})`,`$1 $2 $3`,[`9(?:2[0-4]|[35-9]|4[137-9])`],`0$1`],[`(\\d)(\\d{4})(\\d{4})`,`$1 $2 $3`,[`2`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`8`],`0$1`],[`(\\d)(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`92`],`0$1`],[`(\\d)(\\d{5})(\\d{4})`,`$1 $2 $3`,[`9`],`0$1`]],`0`],MN:[`976`,`001`,`[12]\\d{7,9}|[5-9]\\d{7}`,[8,9,10],[[`(\\d{2})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`[12]1`],`0$1`],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[5-9]`]],[`(\\d{3})(\\d{5,6})`,`$1 $2`,[`[12]2[1-3]`],`0$1`],[`(\\d{4})(\\d{5,6})`,`$1 $2`,[`[12](?:27|3[2-8]|4[2-68]|5[1-4689])`,`[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]`],`0$1`],[`(\\d{5})(\\d{4,5})`,`$1 $2`,[`[12]`],`0$1`]],`0`],MO:[`853`,`00`,`0800\\d{3}|(?:28|[68]\\d)\\d{6}`,[7,8],[[`(\\d{4})(\\d{3})`,`$1 $2`,[`0`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[268]`]]]],MP:[`1`,`011`,`[58]\\d{9}|(?:67|90)0\\d{7}`,[10],0,`1`,0,`([2-9]\\d{6})$|1`,`670$1`,0,`670`],MQ:[`596`,`00`,`(?:596\\d|7091)\\d{5}|(?:69|[89]\\d)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[5-79]|8(?:0[6-9]|[36])`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`8`],`0$1`]],`0`],MR:[`222`,`00`,`(?:[2-4]\\d\\d|800)\\d{5}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[2-48]`]]]],MS:[`1`,`011`,`(?:[58]\\d\\d|664|900)\\d{7}`,[10],0,`1`,0,`([34]\\d{6})$|1`,`664$1`,0,`664`],MT:[`356`,`00`,`3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}`,[8],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[2357-9]`]]]],MU:[`230`,`0(?:0|[24-7]0|3[03])`,`(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}`,[7,8,10],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[2-46]|8[013]`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[57]`]],[`(\\d{5})(\\d{5})`,`$1 $2`,[`8`]]],0,0,0,0,0,0,0,`020`],MV:[`960`,`0(?:0|19)`,`(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}`,[7,10],[[`(\\d{3})(\\d{4})`,`$1-$2`,[`[34679]`]],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[89]`]]],0,0,0,0,0,0,0,`00`],MW:[`265`,`00`,`(?:[1289]\\d|31|77)\\d{7}|1\\d{6}`,[7,9],[[`(\\d)(\\d{3})(\\d{3})`,`$1 $2 $3`,[`1[2-9]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`2`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[137-9]`],`0$1`]],`0`],MX:[`52`,`0[09]`,`[2-9]\\d{9}`,[10],[[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`33|5[56]|81`]],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[2-9]`]]],0,0,0,0,0,0,0,`00`],MY:[`60`,`00`,`1\\d{8,9}|(?:3\\d|[4-9])\\d{7}`,[8,9,10],[[`(\\d)(\\d{3})(\\d{4})`,`$1-$2 $3`,[`[4-79]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1-$2 $3`,[`1(?:[02469]|[378][1-9]|53)|8`,`1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8`],`0$1`],[`(\\d)(\\d{4})(\\d{4})`,`$1-$2 $3`,[`3`],`0$1`],[`(\\d)(\\d{3})(\\d{2})(\\d{4})`,`$1-$2-$3-$4`,[`1(?:[367]|80)`]],[`(\\d{3})(\\d{3})(\\d{4})`,`$1-$2 $3`,[`15`],`0$1`],[`(\\d{2})(\\d{4})(\\d{4})`,`$1-$2 $3`,[`1`],`0$1`]],`0`],MZ:[`258`,`00`,`(?:2|8\\d)\\d{7}`,[8,9],[[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`2|8[2-79]`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`8`]]]],NA:[`264`,`00`,`[68]\\d{7,8}`,[8,9],[[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`88`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`6`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`87`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`8`],`0$1`]],`0`],NC:[`687`,`00`,`(?:050|[2-57-9]\\d\\d)\\d{3}`,[6],[[`(\\d{2})(\\d{2})(\\d{2})`,`$1.$2.$3`,[`[02-57-9]`]]]],NE:[`227`,`00`,`[027-9]\\d{7}`,[8],[[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`08`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[089]|2[013]|7[0467]`]]]],NF:[`672`,`00`,`[13]\\d{5}`,[6],[[`(\\d{2})(\\d{4})`,`$1 $2`,[`1[0-3]`]],[`(\\d)(\\d{5})`,`$1 $2`,[`[13]`]]],0,0,`([0-258]\\d{4})$`,`3$1`],NG:[`234`,`009`,`(?:20|9\\d)\\d{8}|[78]\\d{9,13}`,[10,11,12,13,14],[[`(\\d{3})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[7-9]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`20[129]`],`0$1`],[`(\\d{4})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`2`],`0$1`],[`(\\d{3})(\\d{4})(\\d{4,5})`,`$1 $2 $3`,[`[78]`],`0$1`],[`(\\d{3})(\\d{5})(\\d{5,6})`,`$1 $2 $3`,[`[78]`],`0$1`]],`0`],NI:[`505`,`00`,`(?:1800|[25-8]\\d{3})\\d{4}`,[8],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[125-8]`]]]],NL:[`31`,`00`,`(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}`,[5,6,7,8,9,10,11],[[`(\\d{3})(\\d{4,7})`,`$1 $2`,[`[89]0`],`0$1`],[`(\\d{2})(\\d{7})`,`$1 $2`,[`66`],`0$1`],[`(\\d)(\\d{8})`,`$1 $2`,[`6`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`1[16-8]|2[259]|3[124]|4[17-9]|5[124679]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[1-578]|91`],`0$1`],[`(\\d{3})(\\d{3})(\\d{5})`,`$1 $2 $3`,[`9`],`0$1`]],`0`],NO:[`47`,`00`,`(?:0|[2-9]\\d{3})\\d{4}`,[5,8],[[`(\\d{3})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`8`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[2-79]`]]],0,0,0,0,0,`[02-689]|7[0-8]`],NP:[`977`,`00`,`(?:1\\d|9)\\d{9}|[1-9]\\d{7}`,[8,10,11],[[`(\\d)(\\d{7})`,`$1-$2`,[`1[2-6]`],`0$1`],[`(\\d{2})(\\d{6})`,`$1-$2`,[`1[01]|[2-8]|9(?:[1-59]|[67][2-6])`],`0$1`],[`(\\d{3})(\\d{7})`,`$1-$2`,[`9`]]],`0`],NR:[`674`,`00`,`(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[24-9]`]]]],NU:[`683`,`00`,`(?:[4-7]|888\\d)\\d{3}`,[4,7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`8`]]]],NZ:[`64`,`0(?:0|161)`,`[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}`,[5,6,7,8,9,10],[[`(\\d{2})(\\d{3,8})`,`$1 $2`,[`8[1-79]`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2,3})`,`$1 $2 $3`,[`50[036-8]|8|90`,`50(?:[0367]|88)|8|90`],`0$1`],[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`24|[346]|7[2-57-9]|9[2-9]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`2(?:10|74)|[589]`],`0$1`],[`(\\d{2})(\\d{3,4})(\\d{4})`,`$1 $2 $3`,[`1|2[028]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,5})`,`$1 $2 $3`,[`2(?:[169]|7[0-35-9])|7`],`0$1`]],`0`,0,0,0,0,0,0,`00`],OM:[`968`,`00`,`(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}`,[7,8,9],[[`(\\d{3})(\\d{4,6})`,`$1 $2`,[`[58]`]],[`(\\d{2})(\\d{6})`,`$1 $2`,[`2`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[179]`]]]],PA:[`507`,`00`,`(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}`,[7,8,10,11],[[`(\\d{3})(\\d{4})`,`$1-$2`,[`[1-57-9]`]],[`(\\d{4})(\\d{4})`,`$1-$2`,[`[68]`]],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`8`]]]],PE:[`51`,`00|19(?:1[124]|77|90)00`,`(?:[14-8]|9\\d)\\d{7}`,[8,9],[[`(\\d{3})(\\d{5})`,`$1 $2`,[`80`],`(0$1)`],[`(\\d)(\\d{7})`,`$1 $2`,[`1`],`(0$1)`],[`(\\d{2})(\\d{6})`,`$1 $2`,[`[4-8]`],`(0$1)`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`9`]]],`0`,0,0,0,0,0,0,`00`,` Anexo `],PF:[`689`,`00`,`4\\d{5}(?:\\d{2})?|8\\d{7,8}`,[6,8,9],[[`(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`44`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`4|8[7-9]`]],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`8`]]]],PG:[`675`,`00|140[1-3]`,`(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}`,[7,8],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`18|[2-69]|85`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[78]`]]],0,0,0,0,0,0,0,`00`],PH:[`63`,`00`,`(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}`,[6,8,9,10,11,12,13],[[`(\\d)(\\d{5})`,`$1 $2`,[`2`],`(0$1)`],[`(\\d{4})(\\d{4,6})`,`$1 $2`,[`3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2`,`3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))`],`(0$1)`],[`(\\d{5})(\\d{4})`,`$1 $2`,[`346|4(?:27|9[35])|883`,`3469|4(?:279|9(?:30|56))|8834`],`(0$1)`],[`(\\d)(\\d{4})(\\d{4})`,`$1 $2 $3`,[`2`],`(0$1)`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[3-7]|8[2-8]`],`(0$1)`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[89]`],`0$1`],[`(\\d{4})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1`]],[`(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})`,`$1 $2 $3 $4`,[`1`]]],`0`],PK:[`92`,`00`,`122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}`,[8,9,10,11,12],[[`(\\d{3})(\\d{3})(\\d{2,7})`,`$1 $2 $3`,[`[89]0`],`0$1`],[`(\\d{4})(\\d{5})`,`$1 $2`,[`1`]],[`(\\d{3})(\\d{6,7})`,`$1 $2`,[`2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])`,`9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]`],`(0$1)`],[`(\\d{2})(\\d{7,8})`,`$1 $2`,[`(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]`],`(0$1)`],[`(\\d{5})(\\d{5})`,`$1 $2`,[`58`],`(0$1)`],[`(\\d{3})(\\d{7})`,`$1 $2`,[`3`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91`],`(0$1)`],[`(\\d{3})(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`[24-9]`],`(0$1)`]],`0`],PL:[`48`,`00`,`(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}`,[6,7,8,9,10],[[`(\\d{5})`,`$1`,[`19`]],[`(\\d{3})(\\d{3})`,`$1 $2`,[`11|20|64`]],[`(\\d{2})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1`,`(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19`]],[`(\\d{3})(\\d{2})(\\d{2,3})`,`$1 $2 $3`,[`64`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)`]],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`1[2-8]|[2-7]|8[1-79]|9[145]`]],[`(\\d{3})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`8`]]]],PM:[`508`,`00`,`[45]\\d{5}|(?:708|8\\d\\d)\\d{6}`,[6,9],[[`(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`[45]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`7`]],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`8`],`0$1`]],`0`],PR:[`1`,`011`,`(?:[589]\\d\\d|787)\\d{7}`,[10],0,`1`,0,0,0,0,`787|939`],PS:[`970`,`00`,`[2489]2\\d{6}|(?:1\\d|5)\\d{8}`,[8,9,10],[[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[2489]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`5`],`0$1`],[`(\\d{4})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`1`]]],`0`],PT:[`351`,`00`,`1693\\d{5}|(?:[26-9]\\d|30)\\d{7}`,[9],[[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`2[12]`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`16|[236-9]`]]]],PW:[`680`,`01[12]`,`(?:[24-8]\\d\\d|345|900)\\d{4}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[2-9]`]]]],PY:[`595`,`00`,`[36-8]\\d{5,8}|4\\d{6,8}|59\\d{6}|9\\d{5,10}|(?:2\\d|5[0-8])\\d{6,7}`,[6,7,8,9,10,11],[[`(\\d{3})(\\d{3,6})`,`$1 $2`,[`[2-9]0`],`0$1`],[`(\\d{2})(\\d{5})`,`$1 $2`,[`3[289]|4[246-8]|61|7[1-3]|8[1-36]`],`(0$1)`],[`(\\d{3})(\\d{4,5})`,`$1 $2`,[`2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85`],`(0$1)`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]`],`(0$1)`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`87`]],[`(\\d{3})(\\d{6})`,`$1 $2`,[`9(?:[5-79]|8[1-7])`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[2-8]`],`0$1`],[`(\\d{4})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`9`]]],`0`],QA:[`974`,`00`,`800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}`,[7,8,9,11],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`2[136]|8`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[3-7]`]]]],RE:[`262`,`00`,`709\\d{6}|(?:26|[689]\\d)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[26-9]`],`0$1`]],`0`,0,0,0,0,0,[[`26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}`],[`(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}`],[`80\\d{7}`],[`89[1-37-9]\\d{6}`],0,0,0,0,[`9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}`],[`8(?:1[019]|2[0156]|84|90)\\d{6}`]]],RO:[`40`,`00`,`(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}`,[6,9],[[`(\\d{3})(\\d{3})`,`$1 $2`,[`2[3-6]`,`2[3-6]\\d9`],`0$1`],[`(\\d{2})(\\d{4})`,`$1 $2`,[`219|31`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[23]1`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[236-9]`],`0$1`]],`0`,0,0,0,0,0,0,0,` int `],RS:[`381`,`00`,`38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}`,[6,7,8,9,10,11,12],[[`(\\d{3})(\\d{3,9})`,`$1 $2`,[`(?:2[389]|39)0|[7-9]`],`0$1`],[`(\\d{2})(\\d{5,10})`,`$1 $2`,[`[1-36]`],`0$1`]],`0`],RU:[`7`,`810`,`8\\d{13}|[347-9]\\d{9}`,[10,14],[[`(\\d{4})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`7(?:1[0-8]|2[1-9])`,`7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))`,`7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2`],`8 ($1)`,1],[`(\\d{5})(\\d)(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`7(?:1[0-68]|2[1-9])`,`7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))`,`7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]`],`8 ($1)`,1],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`7`],`8 ($1)`,1],[`(\\d{3})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2-$3-$4`,[`[349]|8(?:[02-7]|1[1-8])`],`8 ($1)`,1],[`(\\d{4})(\\d{4})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`8`],`8 ($1)`]],`8`,0,0,0,0,0,[[`336(?:[013-9]\\d|2[013-9])\\d{5}|(?:3(?:0[12]|4[1-35-79]|5[1-3]|65|8[1-58]|9[0145])|4(?:01|1[1356]|2[13467]|7[1-5]|8[1-7]|9[1-689])|8(?:1[1-8]|2[01]|3[13-6]|4[0-8]|5[15-7]|6[0-35-79]|7[1-37-9]))\\d{7}`,[10]],[`9\\d{9}`,[10]],[`8(?:0[04]|108\\d{3})\\d{7}`],[`80[39]\\d{7}`,[10]],[`808\\d{7}`,[10]]],`8~10`],RW:[`250`,`00`,`(?:06|[27]\\d\\d|[89]00)\\d{6}`,[8,9],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`0`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`2`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[7-9]`],`0$1`]],`0`],SA:[`966`,`00`,`(?:[15]\\d|800|92)\\d{7}`,[9,10],[[`(\\d{4})(\\d{5})`,`$1 $2`,[`9`]],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`5`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`8`]]],`0`],SB:[`677`,`0[01]`,`[6-9]\\d{6}|[1-6]\\d{4}`,[5,7],[[`(\\d{2})(\\d{5})`,`$1 $2`,[`6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])`]]]],SC:[`248`,`010|0[0-2]`,`(?:[2489]\\d|64)\\d{5}`,[7],[[`(\\d)(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[246]|9[57]`]]],0,0,0,0,0,0,0,`00`],SD:[`249`,`00`,`[19]\\d{8}`,[9],[[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[19]`],`0$1`]],`0`],SE:[`46`,`00`,`(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}`,[6,7,8,9,10,12],[[`(\\d{2})(\\d{2,3})(\\d{2})`,`$1-$2 $3`,[`20`],`0$1`,0,`$1 $2 $3`],[`(\\d{3})(\\d{4})`,`$1-$2`,[`9(?:00|39|44|9)`],`0$1`,0,`$1 $2`],[`(\\d{2})(\\d{3})(\\d{2})`,`$1-$2 $3`,[`[12][136]|3[356]|4[0246]|6[03]|90[1-9]`],`0$1`,0,`$1 $2 $3`],[`(\\d)(\\d{2,3})(\\d{2})(\\d{2})`,`$1-$2 $3 $4`,[`8`],`0$1`,0,`$1 $2 $3 $4`],[`(\\d{3})(\\d{2,3})(\\d{2})`,`$1-$2 $3`,[`1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])`],`0$1`,0,`$1 $2 $3`],[`(\\d{3})(\\d{2,3})(\\d{3})`,`$1-$2 $3`,[`9(?:00|39|44)`],`0$1`,0,`$1 $2 $3`],[`(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})`,`$1-$2 $3 $4`,[`1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]`],`0$1`,0,`$1 $2 $3 $4`],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1-$2 $3 $4`,[`10|7`],`0$1`,0,`$1 $2 $3 $4`],[`(\\d)(\\d{3})(\\d{3})(\\d{2})`,`$1-$2 $3 $4`,[`8`],`0$1`,0,`$1 $2 $3 $4`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1-$2 $3 $4`,[`[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])`],`0$1`,0,`$1 $2 $3 $4`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{3})`,`$1-$2 $3 $4`,[`9`],`0$1`,0,`$1 $2 $3 $4`],[`(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1-$2 $3 $4 $5`,[`[26]`],`0$1`,0,`$1 $2 $3 $4 $5`]],`0`],SG:[`65`,`0[0-3]\\d`,`(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}`,[8,10,11],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[369]|8(?:0[1-9]|[1-9])`]],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`8`]],[`(\\d{4})(\\d{4})(\\d{3})`,`$1 $2 $3`,[`7`]],[`(\\d{4})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1`]]]],SH:[`290`,`00`,`(?:[256]\\d|8)\\d{3}`,[4,5],0,0,0,0,0,0,`[256]`],SI:[`386`,`00|10(?:22|66|88|99)`,`[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}`,[5,6,7,8],[[`(\\d{2})(\\d{3,6})`,`$1 $2`,[`8[09]|9`],`0$1`],[`(\\d{3})(\\d{5})`,`$1 $2`,[`59|8`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[37][01]|4[0139]|51|6`],`0$1`],[`(\\d)(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[1-57]`],`(0$1)`]],`0`,0,0,0,0,0,0,`00`],SJ:[`47`,`00`,`0\\d{4}|(?:[489]\\d|79)\\d{6}`,[5,8],0,0,0,0,0,0,`79`],SK:[`421`,`00`,`[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}`,[6,7,9],[[`(\\d)(\\d{2})(\\d{3,4})`,`$1 $2 $3`,[`21`],`0$1`],[`(\\d{2})(\\d{2})(\\d{2,3})`,`$1 $2 $3`,[`[3-5][1-8]1`,`[3-5][1-8]1[67]`],`0$1`],[`(\\d)(\\d{3})(\\d{3})(\\d{2})`,`$1/$2 $3 $4`,[`2`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[689]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1/$2 $3 $4`,[`[3-5]`],`0$1`]],`0`],SL:[`232`,`00`,`(?:[237-9]\\d|66)\\d{6}`,[8],[[`(\\d{2})(\\d{6})`,`$1 $2`,[`[236-9]`],`(0$1)`]],`0`],SM:[`378`,`00`,`(?:0549|[5-7]\\d)\\d{6}`,[8,10],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[5-7]`]],[`(\\d{4})(\\d{6})`,`$1 $2`,[`0`]]],0,0,`([89]\\d{5})$`,`0549$1`],SN:[`221`,`00`,`(?:[378]\\d|93)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`8`]],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[379]`]]]],SO:[`252`,`00`,`[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}`,[6,7,8,9],[[`(\\d{2})(\\d{4})`,`$1 $2`,[`8[125]`]],[`(\\d{6})`,`$1`,[`[134]`]],[`(\\d)(\\d{6})`,`$1 $2`,[`[15]|2[0-79]|3[0-46-8]|4[0-7]`]],[`(\\d)(\\d{7})`,`$1 $2`,[`(?:2|90)4|[67]`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[348]|64|79|90`]],[`(\\d{2})(\\d{5,7})`,`$1 $2`,[`1|28|6[0-35-9]|7[67]|9[2-9]`]]],`0`],SR:[`597`,`00`,`(?:[2-5]|[6-8]\\d|90)\\d{5}`,[6,7],[[`(\\d{2})(\\d{2})(\\d{2})`,`$1-$2-$3`,[`56`]],[`(\\d{3})(\\d{3})`,`$1-$2`,[`[2-5]`]],[`(\\d{3})(\\d{4})`,`$1-$2`,[`[6-9]`]]]],SS:[`211`,`00`,`[19]\\d{8}`,[9],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[19]`],`0$1`]],`0`],ST:[`239`,`00`,`(?:22|9\\d)\\d{5}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[29]`]]]],SV:[`503`,`00`,`[25-7]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?`,[7,8,11],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[89]`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[25-7]`]],[`(\\d{3})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`[89]`]]]],SX:[`1`,`011`,`7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`(5\\d{6})$|1`,`721$1`,0,`721`],SY:[`963`,`00`,`[1-359]\\d{8}|[1-5]\\d{7}`,[8,9],[[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[1-4]|5[1-3]`],`0$1`,1],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[59]`],`0$1`,1]],`0`],SZ:[`268`,`00`,`0800\\d{4}|(?:[237]\\d|900)\\d{6}`,[8,9],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[0237]`]],[`(\\d{5})(\\d{4})`,`$1 $2`,[`9`]]]],TA:[`290`,`00`,`8\\d{3}`,[4],0,0,0,0,0,0,`8`],TC:[`1`,`011`,`(?:[58]\\d\\d|649|900)\\d{7}`,[10],0,`1`,0,`([2-479]\\d{6})$|1`,`649$1`,0,`649`],TD:[`235`,`00|16`,`(?:22|30|[689]\\d|77)\\d{6}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[236-9]`]]],0,0,0,0,0,0,0,`00`],TG:[`228`,`00`,`[279]\\d{7}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[279]`]]]],TH:[`66`,`00[1-9]`,`(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}`,[8,9,10,13],[[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`2`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[13-9]`],`0$1`],[`(\\d{4})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`1`]]],`0`],TJ:[`992`,`810`,`(?:[0-57-9]\\d|66)\\d{7}`,[9],[[`(\\d{6})(\\d)(\\d{2})`,`$1 $2 $3`,[`331`,`3317`]],[`(\\d{3})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`44[02-479]|[34]7`]],[`(\\d{4})(\\d)(\\d{4})`,`$1 $2 $3`,[`3(?:[1245]|3[12])`]],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`\\d`]]],0,0,0,0,0,0,0,`8~10`],TK:[`690`,`00`,`[2-47]\\d{3,6}`,[4,5,6,7]],TL:[`670`,`00`,`7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}`,[7,8],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[2-489]|70`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`7`]]]],TM:[`993`,`810`,`(?:[1-6]\\d|71)\\d{6}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2-$3-$4`,[`12`],`(8 $1)`],[`(\\d{3})(\\d)(\\d{2})(\\d{2})`,`$1 $2-$3-$4`,[`[1-5]`],`(8 $1)`],[`(\\d{2})(\\d{6})`,`$1 $2`,[`[67]`],`8 $1`]],`8`,0,0,0,0,0,0,`8~10`],TN:[`216`,`00`,`[2-57-9]\\d{7}`,[8],[[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[2-57-9]`]]]],TO:[`676`,`00`,`(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}`,[5,7],[[`(\\d{2})(\\d{3})`,`$1-$2`,[`[2-4]|50|6[09]|7[0-24-69]|8[05]`]],[`(\\d{4})(\\d{3})`,`$1 $2`,[`0`]],[`(\\d{3})(\\d{4})`,`$1 $2`,[`[5-9]`]]]],TR:[`90`,`00`,`4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}`,[7,10,12,13],[[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`512|8[01589]|90`],`0$1`,1],[`(\\d{3})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`5(?:[0-59]|61)`,`5(?:[0-59]|61[06])`,`5(?:[0-59]|61[06]1)`],`0$1`,1],[`(\\d{3})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[24][1-8]|3[1-9]`],`(0$1)`,1],[`(\\d{3})(\\d{3})(\\d{6,7})`,`$1 $2 $3`,[`80`],`0$1`,1]],`0`],TT:[`1`,`011`,`(?:[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([2-46-8]\\d{6})$|1`,`868$1`,0,`868`],TV:[`688`,`00`,`(?:2|7\\d\\d|90)\\d{4}`,[5,6,7],[[`(\\d{2})(\\d{3})`,`$1 $2`,[`2`]],[`(\\d{2})(\\d{4})`,`$1 $2`,[`90`]],[`(\\d{2})(\\d{5})`,`$1 $2`,[`7`]]]],TW:[`886`,`0(?:0[25-79]|19)`,`[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}`,[7,8,9,10,11],[[`(\\d{2})(\\d)(\\d{4})`,`$1 $2 $3`,[`202`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[258]0`],`0$1`],[`(\\d)(\\d{3,4})(\\d{4})`,`$1 $2 $3`,[`[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]`,`[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[49]`],`0$1`],[`(\\d{2})(\\d{4})(\\d{4,5})`,`$1 $2 $3`,[`7`],`0$1`]],`0`,0,0,0,0,0,0,0,`#`],TZ:[`255`,`00[056]`,`(?:[25-8]\\d|41|90)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`[89]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[24]`],`0$1`],[`(\\d{2})(\\d{7})`,`$1 $2`,[`5`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[67]`],`0$1`]],`0`],UA:[`380`,`00`,`[89]\\d{9}|[3-9]\\d{8}`,[9,10],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]`,`6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]`],`0$1`],[`(\\d{4})(\\d{5})`,`$1 $2`,[`3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])`,`3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[3-7]|89|9[1-9]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[89]`],`0$1`]],`0`,0,0,0,0,0,0,`0~0`],UG:[`256`,`00[057]`,`800\\d{6}|(?:[29]0|[347]\\d)\\d{7}`,[9],[[`(\\d{4})(\\d{5})`,`$1 $2`,[`202`,`2024`],`0$1`],[`(\\d{3})(\\d{6})`,`$1 $2`,[`[27-9]|4(?:6[45]|[7-9])`],`0$1`],[`(\\d{2})(\\d{7})`,`$1 $2`,[`[34]`],`0$1`]],`0`],US:[`1`,`011`,`[2-9]\\d{9}|3\\d{6}`,[10],[[`(\\d{3})(\\d{4})`,`$1-$2`,[`310`],0,1],[`(\\d{3})(\\d{3})(\\d{4})`,`($1) $2-$3`,[`[2-9]`],0,1,`$1-$2-$3`]],`1`,0,0,0,0,0,[[`(?:274[27]|(?:472|983)[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-247]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}`],[``],[`8(?:00|33|44|55|66|77|88)[2-9]\\d{6}`],[`900[2-9]\\d{6}`],[`52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}`]]],UY:[`598`,`0(?:0|1[3-9]\\d)`,`0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}`,[4,5,6,7,8,9,10,11,12,13],[[`(\\d{4,5})`,`$1`,[`21`]],[`(\\d{3})(\\d{3,4})`,`$1 $2`,[`0`]],[`(\\d{3})(\\d{4})`,`$1 $2`,[`[49]0|8`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`9`],`0$1`],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[124]`]],[`(\\d{3})(\\d{3})(\\d{2,4})`,`$1 $2 $3`,[`0`]],[`(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})`,`$1 $2 $3 $4`,[`0`]]],`0`,0,0,0,0,0,0,`00`,` int. `],UZ:[`998`,`00`,`(?:20|33|[5-9]\\d)\\d{7}`,[9],[[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[235-9]`]]]],VA:[`39`,`00`,`0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}`,[6,7,8,9,10,11,12],0,0,0,0,0,0,`06698`],VC:[`1`,`011`,`(?:[58]\\d\\d|784|900)\\d{7}`,[10],0,`1`,0,`([2-7]\\d{6})$|1`,`784$1`,0,`784`],VE:[`58`,`00`,`[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}`,[10],[[`(\\d{3})(\\d{7})`,`$1-$2`,[`[24-689]`],`0$1`]],`0`],VG:[`1`,`011`,`(?:284|[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([2-578]\\d{6})$|1`,`284$1`,0,`284`],VI:[`1`,`011`,`[58]\\d{9}|(?:34|90)0\\d{7}`,[10],0,`1`,0,`([2-9]\\d{6})$|1`,`340$1`,0,`340`],VN:[`84`,`00`,`[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}`,[7,8,9,10],[[`(\\d{2})(\\d{5})`,`$1 $2`,[`80`],`0$1`,1],[`(\\d{4})(\\d{4,6})`,`$1 $2`,[`1`],0,1],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`6`],`0$1`,1],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[357-9]`],`0$1`,1],[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`2[48]`],`0$1`,1],[`(\\d{3})(\\d{4})(\\d{3})`,`$1 $2 $3`,[`2`],`0$1`,1]],`0`],VU:[`678`,`00`,`[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}`,[5,7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[57-9]`]]]],WF:[`681`,`00`,`(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}`,[6,9],[[`(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`[47-9]`]],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`8`]]]],WS:[`685`,`0`,`(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}`,[5,6,7,10],[[`(\\d{5})`,`$1`,[`[2-5]|6[1-9]`]],[`(\\d{3})(\\d{3,7})`,`$1 $2`,[`[68]`]],[`(\\d{2})(\\d{5})`,`$1 $2`,[`7`]]]],XK:[`383`,`00`,`2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}`,[8,9,10,11,12],[[`(\\d{3})(\\d{5})`,`$1 $2`,[`[89]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[2-4]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`2|39`],`0$1`],[`(\\d{2})(\\d{7,10})`,`$1 $2`,[`3`],`0$1`]],`0`],YE:[`967`,`00`,`(?:1|7\\d)\\d{7}|[1-7]\\d{6}`,[7,8,9],[[`(\\d)(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[1-6]|7(?:[24-6]|8[0-7])`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`7`],`0$1`]],`0`],YT:[`262`,`00`,`7093\\d{5}|(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}`,[9],0,`0`,0,0,0,0,0,[[`269(?:0[0-467]|15|5[0-4]|6\\d|[78]0)\\d{4}`],[`(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}`],[`80\\d{7}`],0,0,0,0,0,[`9(?:(?:39|47)8[01]|769\\d)\\d{4}`]]],ZA:[`27`,`00`,`[1-79]\\d{8}|8\\d{4,9}`,[5,6,7,8,9,10],[[`(\\d{2})(\\d{3,4})`,`$1 $2`,[`8[1-4]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{2,3})`,`$1 $2 $3`,[`8[1-4]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`860`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[1-9]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`8`],`0$1`]],`0`],ZM:[`260`,`00`,`800\\d{6}|(?:21|[579]\\d|63)\\d{7}`,[9],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[28]`],`0$1`],[`(\\d{2})(\\d{7})`,`$1 $2`,[`[579]`],`0$1`]],`0`],ZW:[`263`,`00`,`2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}`,[5,6,7,8,9,10],[[`(\\d{3})(\\d{3,5})`,`$1 $2`,[`2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]`],`0$1`],[`(\\d)(\\d{3})(\\d{2,4})`,`$1 $2 $3`,[`[49]`],`0$1`],[`(\\d{3})(\\d{4})`,`$1 $2`,[`80`],`0$1`],[`(\\d{2})(\\d{7})`,`$1 $2`,[`24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2`,`2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]`],`(0$1)`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`7`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)`,`2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)`],`0$1`],[`(\\d{4})(\\d{6})`,`$1 $2`,[`8`],`0$1`],[`(\\d{2})(\\d{3,5})`,`$1 $2`,[`1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`29[013-9]|39|54`],`0$1`],[`(\\d{4})(\\d{3,5})`,`$1 $2`,[`(?:25|54)8`,`258|5483`],`0$1`]],`0`]},nonGeographic:{800:[`800`,0,`(?:00|[1-9]\\d)\\d{6}`,[8],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`\\d`]]],0,0,0,0,0,0,[0,0,[`(?:00|[1-9]\\d)\\d{6}`]]],808:[`808`,0,`[1-9]\\d{7}`,[8],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[1-9]`]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,[`[1-9]\\d{7}`]]],870:[`870`,0,`7\\d{11}|[235-7]\\d{8}`,[9,12],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[235-7]`]]],0,0,0,0,0,0,[0,[`(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}`],0,0,0,0,0,0,[`2\\d{8}`,[9]]]],878:[`878`,0,`10\\d{10}`,[12],[[`(\\d{2})(\\d{5})(\\d{5})`,`$1 $2 $3`,[`1`]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,[`10\\d{10}`]]],881:[`881`,0,`6\\d{9}|[0-36-9]\\d{8}`,[9,10],[[`(\\d)(\\d{3})(\\d{5})`,`$1 $2 $3`,[`[0-37-9]`]],[`(\\d)(\\d{3})(\\d{5,6})`,`$1 $2 $3`,[`6`]]],0,0,0,0,0,0,[0,[`6\\d{9}|[0-36-9]\\d{8}`]]],882:[`882`,0,`[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?`,[7,8,9,10,11,12],[[`(\\d{2})(\\d{5})`,`$1 $2`,[`16|342`]],[`(\\d{2})(\\d{6})`,`$1 $2`,[`49`]],[`(\\d{2})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`1[36]|9`]],[`(\\d{2})(\\d{4})(\\d{3})`,`$1 $2 $3`,[`3[23]`]],[`(\\d{2})(\\d{3,4})(\\d{4})`,`$1 $2 $3`,[`16`]],[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`10|23|3(?:[15]|4[57])|4|51`]],[`(\\d{3})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`34`]],[`(\\d{2})(\\d{4,5})(\\d{5})`,`$1 $2 $3`,[`[1-35]`]]],0,0,0,0,0,0,[0,[`342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}`,[7,8,9,10,12]],0,0,0,[`348[57]\\d{7}`,[11]],0,0,[`1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}`]]],883:[`883`,0,`(?:[1-4]\\d|51)\\d{6,10}`,[8,9,10,11,12],[[`(\\d{3})(\\d{3})(\\d{2,8})`,`$1 $2 $3`,[`[14]|2[24-689]|3[02-689]|51[24-9]`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`510`]],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`21`]],[`(\\d{4})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`51[13]`]],[`(\\d{3})(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`[235]`]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,[`(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}`]]],888:[`888`,0,`\\d{11}`,[11],[[`(\\d{3})(\\d{3})(\\d{5})`,`$1 $2 $3`]],0,0,0,0,0,0,[0,0,0,0,0,0,[`\\d{11}`]]],979:[`979`,0,`[1359]\\d{8}`,[9],[[`(\\d)(\\d{4})(\\d{4})`,`$1 $2 $3`,[`[1359]`]]],0,0,0,0,0,0,[0,0,0,[`[1359]\\d{8}`]]]}};function ug(e,t){var n=Array.prototype.slice.call(t);return n.push(lg),e.apply(this,n)}function dg(e,t){e=e.split(`-`),t=t.split(`-`);for(var n=e[0].split(`.`),r=t[0].split(`.`),i=0;i<3;i++){var a=Number(n[i]),o=Number(r[i]);if(a>o)return 1;if(o>a)return -1;if(!isNaN(a)&&isNaN(o))return 1;if(isNaN(a)&&!isNaN(o))return -1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0}var fg={}.constructor;function pg(e){return e!=null&&e.constructor===fg}function mg(e){"@babel/helpers - typeof";return mg=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},mg(e)}function hg(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function gg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||false,r.configurable=true,`value`in r&&(r.writable=true),Object.defineProperty(e,vg(r.key),r);}}function _g(e,t,n){return t&&gg(e.prototype,t),Object.defineProperty(e,`prototype`,{writable:false}),e}function vg(e){var t=yg(e,`string`);return mg(t)==`symbol`?t:t+``}function yg(e,t){if(mg(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(mg(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return (String)(e)}var bg=`1.2.0`,xg=`1.7.35`,Sg=` ext. `,Cg=/^\d+$/,Q$2=function(){function e(t){hg(this,e),kg(t),this.metadata=t,Ng.call(this,t);}return _g(e,[{key:`getCountries`,value:function(){return Object.keys(this.metadata.countries).filter(function(e){return e!==`001`})}},{key:`getCountryMetadata`,value:function(e){return this.metadata.countries[e]}},{key:`nonGeographic`,value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:`hasCountry`,value:function(e){return this.getCountryMetadata(e)!==void 0}},{key:`hasCallingCode`,value:function(e){if(this.getCountryCodesForCallingCode(e))return true;if(this.nonGeographic()){if(this.nonGeographic()[e])return true}else {var t=this.countryCallingCodes()[e];if(t&&t.length===1&&t[0]===`001`)return true}}},{key:`isNonGeographicCallingCode`,value:function(e){return this.nonGeographic()?!!this.nonGeographic()[e]:!this.getCountryCodesForCallingCode(e)}},{key:`country`,value:function(e){return this.selectNumberingPlan(e)}},{key:`selectNumberingPlan`,value:function(e,t){if(e&&Cg.test(e)&&(t=e,e=null),e&&e!==`001`){if(!this.hasCountry(e))throw Error(`Unknown country: ${e}`);this.numberingPlan=new wg(this.getCountryMetadata(e),this);}else if(t){if(!this.hasCallingCode(t))throw Error(`Unknown calling code: ${t}`);this.numberingPlan=new wg(this.getNumberingPlanMetadata(t),this);}else this.numberingPlan=void 0;return this}},{key:`getCountryCodesForCallingCode`,value:function(e){var t=this.countryCallingCodes()[e];if(t)return t.length===1&&t[0].length===3?void 0:t}},{key:`getCountryCodeForCallingCode`,value:function(e){var t=this.getCountryCodesForCallingCode(e);if(t)return t[0]}},{key:`getNumberingPlanMetadata`,value:function(e){var t=this.getCountryCodeForCallingCode(e);if(t)return this.getCountryMetadata(t);if(this.nonGeographic()){var n=this.nonGeographic()[e];if(n)return n}else {var r=this.countryCallingCodes()[e];if(r&&r.length===1&&r[0]===`001`)return this.metadata.countries[`001`]}}},{key:`countryCallingCode`,value:function(){return this.numberingPlan.callingCode()}},{key:`IDDPrefix`,value:function(){return this.numberingPlan.IDDPrefix()}},{key:`defaultIDDPrefix`,value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:`nationalNumberPattern`,value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:`possibleLengths`,value:function(){return this.numberingPlan.possibleLengths()}},{key:`formats`,value:function(){return this.numberingPlan.formats()}},{key:`nationalPrefixForParsing`,value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:`nationalPrefixTransformRule`,value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:`leadingDigits`,value:function(){return this.numberingPlan.leadingDigits()}},{key:`hasTypes`,value:function(){return this.numberingPlan.hasTypes()}},{key:`type`,value:function(e){return this.numberingPlan.type(e)}},{key:`ext`,value:function(){return this.numberingPlan.ext()}},{key:`countryCallingCodes`,value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:`chooseCountryByCountryCallingCode`,value:function(e){return this.selectNumberingPlan(e)}},{key:`hasSelectedNumberingPlan`,value:function(){return this.numberingPlan!==void 0}}])}(),wg=function(){function e(t,n){hg(this,e),this.globalMetadataObject=n,this.metadata=t,Ng.call(this,n.metadata);}return _g(e,[{key:`callingCode`,value:function(){return this.metadata[0]}},{key:`getDefaultCountryMetadataForRegion`,value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:`IDDPrefix`,value:function(){if(!(this.v1||this.v2))return this.metadata[1]}},{key:`defaultIDDPrefix`,value:function(){if(!(this.v1||this.v2))return this.metadata[12]}},{key:`nationalNumberPattern`,value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:`possibleLengths`,value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:`_getFormats`,value:function(e){return e[this.v1?2:this.v2?3:4]}},{key:`formats`,value:function(){var e=this;return (this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[]).map(function(t){return new Tg(t,e)})}},{key:`nationalPrefix`,value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:`_getNationalPrefixFormattingRule`,value:function(e){return e[this.v1?4:this.v2?5:6]}},{key:`nationalPrefixFormattingRule`,value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion())}},{key:`_nationalPrefixForParsing`,value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:`nationalPrefixForParsing`,value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:`nationalPrefixTransformRule`,value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:`_getNationalPrefixIsOptionalWhenFormatting`,value:function(){return !!this.metadata[this.v1?7:this.v2?8:9]}},{key:`nationalPrefixIsOptionalWhenFormattingInNationalFormat`,value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion())}},{key:`leadingDigits`,value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:`types`,value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:`hasTypes`,value:function(){return this.types()&&this.types().length===0?false:!!this.types()}},{key:`type`,value:function(e){if(this.hasTypes()&&Og(this.types(),e))return new Dg(Og(this.types(),e),this)}},{key:`ext`,value:function(){return this.v1||this.v2?Sg:this.metadata[13]||Sg}}])}(),Tg=function(){function e(t,n){hg(this,e),this._format=t,this.metadata=n;}return _g(e,[{key:`pattern`,value:function(){return this._format[0]}},{key:`format`,value:function(){return this._format[1]}},{key:`leadingDigitsPatterns`,value:function(){return this._format[2]||[]}},{key:`nationalPrefixFormattingRule`,value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:`nationalPrefixIsOptionalWhenFormattingInNationalFormat`,value:function(){return !!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:`nationalPrefixIsMandatoryWhenFormattingInNationalFormat`,value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:`usesNationalPrefix`,value:function(){return !!(this.nationalPrefixFormattingRule()&&!Eg.test(this.nationalPrefixFormattingRule()))}},{key:`internationalFormat`,value:function(){return this._format[5]||this.format()}}])}(),Eg=/^\(?\$1\)?$/,Dg=function(){function e(t,n){hg(this,e),this.type=t,this.metadata=n;}return _g(e,[{key:`pattern`,value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:`possibleLengths`,value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}])}();function Og(e,t){switch(t){case `FIXED_LINE`:return e[0];case `MOBILE`:return e[1];case `TOLL_FREE`:return e[2];case `PREMIUM_RATE`:return e[3];case `PERSONAL_NUMBER`:return e[4];case `VOICEMAIL`:return e[5];case `UAN`:return e[6];case `PAGER`:return e[7];case `VOIP`:return e[8];case `SHARED_COST`:return e[9]}}function kg(e){if(!e)throw Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!pg(e)||!pg(e.countries))throw Error(`[libphonenumber-js] \`metadata\` argument was passed but it's not a valid metadata. Must be an object having \`.countries\` child object property. Got ${pg(e)?`an object of shape: { `+Object.keys(e).join(`, `)+` }`:`a `+Ag(e)+`: `+e}.`)}var Ag=function(e){return mg(e)};function jg(e,t){if(t=new Q$2(t),t.hasCountry(e))return t.selectNumberingPlan(e).countryCallingCode();throw Error(`Unknown country: ${e}`)}function Mg(e,t){return t.countries.hasOwnProperty(e)}function Ng(e){var t=e.version;typeof t==`number`?(this.v1=t===1,this.v2=t===2,this.v3=t===3,this.v4=t===4):t?dg(t,bg)===-1?this.v2=true:dg(t,xg)===-1?this.v3=true:this.v4=true:this.v1=true;}function Rg(e,t,n){return zg(e,t,void 0,n)}function zg(e,t,n,r){t&&(r=new Q$2(r.metadata),r.selectNumberingPlan(t));var i=r.type(n),a=i&&i.possibleLengths()||r.possibleLengths();if(!a)return `IS_POSSIBLE`;var s=e.length,c=a[0];return c===s?`IS_POSSIBLE`:c>s?`TOO_SHORT`:a[a.length-1]<s?`TOO_LONG`:a.indexOf(s,1)>=0?`IS_POSSIBLE`:`INVALID_LENGTH`}function Bg(e,t,n){if(t===void 0&&(t={}),n=new Q$2(n),t.v2){if(!e.countryCallingCode)throw Error(`Invalid phone number object passed`);n.selectNumberingPlan(e.countryCallingCode);}else {if(!e.phone)return false;if(e.country){if(!n.hasCountry(e.country))throw Error(`Unknown country: ${e.country}`);n.selectNumberingPlan(e.country);}else {if(!e.countryCallingCode)throw Error(`Invalid phone number object passed`);n.selectNumberingPlan(e.countryCallingCode);}}if(n.possibleLengths())return Vg(e.phone||e.nationalNumber,e.country,n);if(e.countryCallingCode&&n.isNonGeographicCallingCode(e.countryCallingCode))return true;throw Error(`Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.`)}function Vg(e,t,n){switch(Rg(e,t,n)){case `IS_POSSIBLE`:return true;default:return false}}function Hg(e,t){return e||=``,RegExp(`^(?:`+t+`)$`).test(e)}function Ug(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n)return (n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Wg(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:true}:{done:false,value:e[r++]}}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
43
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
44
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c_(e,t){if(e){if(typeof e==`string`)return l_(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l_(e,t):void 0}}function l_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function u_(e,t){var n=t.countries,r=t.metadata;r=new Q$2(r);for(var i=s_(n),a;!(a=i()).done;){var o=a.value;if(r.selectNumberingPlan(o),r.leadingDigits()){if(e&&e.search(r.leadingDigits())===0)return o}else if(qg({phone:e,country:o},void 0,r.metadata))return o}}function f_(e,t){var n=t.nationalNumber,r=t.metadata;var i=r.getCountryCodesForCallingCode(e);if(i)return i.length===1?i[0]:u_(n,{countries:i,metadata:r.metadata})}function p_(e,t,n){var r=o_(e,n),i=r.carrierCode,a=r.nationalNumber;return a!==e&&(!m_(e,a,n)||n.numberingPlan.possibleLengths()&&(t||=f_(n.numberingPlan.callingCode(),{nationalNumber:a,metadata:n}),!h_(a,t,n)))?{nationalNumber:e}:{nationalNumber:a,carrierCode:i}}function m_(e,t,n){return !(Hg(e,n.nationalNumberPattern())&&!Hg(t,n.nationalNumberPattern()))}function h_(e,t,n){switch(Rg(e,t,n)){case `TOO_SHORT`:case `INVALID_LENGTH`:return false;default:return true}}function g_(e,t,n,r,i){var a=n?jg(n,i):r;if(e.indexOf(a)===0){i=new Q$2(i),i.selectNumberingPlan(n,a);var o=e.slice(a.length),s=p_(o,t,i).nationalNumber,c=p_(e,t,i).nationalNumber;if(!Hg(c,i.nationalNumberPattern())&&Hg(s,i.nationalNumberPattern())||Rg(c,t,i)===`TOO_LONG`)return {countryCallingCode:a,number:o}}return {number:e}}function __(e,t,n,r,i){if(!e)return {};var a;if(e[0]!==`+`){var o=a_(e,n,r,i);if(o&&o!==e)a=true,e=`+`+o;else {if(n||r){var s=g_(e,t,n,r,i),c=s.countryCallingCode,l=s.number;if(c)return {countryCallingCodeSource:`FROM_NUMBER_WITHOUT_PLUS_SIGN`,countryCallingCode:c,number:l}}return {number:e}}}if(e[1]===`0`)return {};i=new Q$2(i);for(var u=2;u-1<=e_&&u<=e.length;){var d=e.slice(1,u);if(i.hasCallingCode(d))return i.selectNumberingPlan(d),{countryCallingCodeSource:a?`FROM_NUMBER_WITH_IDD`:`FROM_NUMBER_WITH_PLUS_SIGN`,countryCallingCode:d,number:e.slice(u)};u++;}return {}}function v_(e){return e.replace(RegExp(`[${n_}]+`,`g`),` `).trim()}var y_=/(\$\d)/;function b_(e,t,n){var r=n.useInternationalFormat,i=n.withNationalPrefix;var a=e.replace(new RegExp(t.pattern()),r?t.internationalFormat():i&&t.nationalPrefixFormattingRule()?t.format().replace(y_,t.nationalPrefixFormattingRule()):t.format());return r?v_(a):a}var x_=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function S_(e,t,n){var r=new Q$2(n);if(r.selectNumberingPlan(e,t),r.defaultIDDPrefix())return r.defaultIDDPrefix();if(x_.test(r.IDDPrefix()))return r.IDDPrefix()}var C_=`;ext=`,w_=function(e){return `([${t_}]{1,${e}})`};function T_(e){var t=`20`,n=`15`,r=`9`,i=`6`,a=`[ \xA0\\t,]*`,o=`[:\\..]?[ \xA0\\t,-]*`,s=`#?`,c=`(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)`,l=`(?:[xx##~~]|int|int)`,u=`[- ]+`,d=`[ \xA0\\t]*`,f=`(?:,{2}|;)`,p=C_+w_(t),m=a+c+o+w_(t)+s,ee=a+l+o+w_(r)+s,te=u+w_(i)+`#`,ne=d+f+o+w_(n)+s,h=d+`(?:,)+`+o+w_(r)+s;return p+`|`+m+`|`+ee+`|`+te+`|`+ne+`|`+h}var E_=`[`+t_+`]{`+Qg+`}`,D_=`[`+r_+`]{0,1}(?:[`+n_+`]*[`+t_+`]){3,}[`+n_+t_+`]*`,O_=RegExp(`^[`+r_+`]{0,1}(?:[`+n_+`]*[`+t_+`]){1,2}$`,`i`),k_=D_+`(?:`+T_()+`)?`,A_=RegExp(`^`+E_+`$|^`+k_+`$`,`i`);function j_(e){return e.length>=Qg&&A_.test(e)}function M_(e){return O_.test(e)}function N_(e){var t=e.number,n=e.ext;if(!t)return ``;if(t[0]!==`+`)throw Error(`"formatRFC3966()" expects "number" to be in E.164 format.`);return `tel:${t}${n?`;ext=`+n:``}`}var P_={formatExtension:function(e,t,n){return `${e}${n.ext()}${t}`}};function F_(e,t,n,r){if(n=n?B_({},P_,n):P_,r=new Q$2(r),e.country&&e.country!==`001`){if(!r.hasCountry(e.country))throw Error(`Unknown country: ${e.country}`);r.selectNumberingPlan(e.country);}else if(e.countryCallingCode)r.selectNumberingPlan(e.countryCallingCode);else return e.phone||``;var i=r.countryCallingCode(),a=n.v2?e.nationalNumber:e.phone,o;switch(t){case `NATIONAL`:return a?(o=I_(a,e.carrierCode,`NATIONAL`,r,n),R_(o,e.ext,r,n.formatExtension)):``;case `INTERNATIONAL`:return a?(o=I_(a,null,`INTERNATIONAL`,r,n),o=`+${i} ${o}`,R_(o,e.ext,r,n.formatExtension)):`+${i}`;case `E.164`:return `+${i}${a}`;case `RFC3966`:return N_({number:`+${i}${a}`,ext:e.ext});case `IDD`:if(!n.fromCountry)return;var s=z_(a,e.carrierCode,i,n.fromCountry,r);return s?R_(s,e.ext,r,n.formatExtension):void 0;default:throw Error(`Unknown "format" argument passed to "formatNumber()": "${t}"`)}}function I_(e,t,n,r,i){var a=L_(r.formats(),e);return a?b_(e,a,{useInternationalFormat:n===`INTERNATIONAL`,withNationalPrefix:!(a.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&i&&i.nationalPrefix===false)}):e}function L_(e,t){return V_(e,function(e){if(e.leadingDigitsPatterns().length>0){var n=e.leadingDigitsPatterns()[e.leadingDigitsPatterns().length-1];if(t.search(n)!==0)return false}return Hg(t,e.pattern())})}function R_(e,t,n,r){return t?r(e,t,n):e}function z_(e,t,n,r,i){if(jg(r,i.metadata)===n){var a=I_(e,t,`NATIONAL`,i);return n===`1`?n+` `+a:a}var o=S_(r,void 0,i.metadata);if(o)return `${o} ${n} ${I_(e,null,`INTERNATIONAL`,i)}`}function B_(){for(var e=1,t=[...arguments];e<t.length;){if(t[e])for(var n in t[e])t[0][n]=t[e][n];e++;}return t[0]}function V_(e,t){for(var n=0;n<e.length;){if(t(e[n]))return e[n];n++;}}function H_(e){"@babel/helpers - typeof";return H_=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},H_(e)}function U_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r);}return n}function W_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?U_(Object(n),true).forEach(function(t){G_(e,t,n[t]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t));});}return e}function G_(e,t,n){return (t=Y_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true}):e[t]=n,e}function K_(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function q_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||false,r.configurable=true,`value`in r&&(r.writable=true),Object.defineProperty(e,Y_(r.key),r);}}function J_(e,t,n){return t&&q_(e.prototype,t),Object.defineProperty(e,`prototype`,{writable:false}),e}function Y_(e){var t=X_(e,`string`);return H_(t)==`symbol`?t:t+``}function X_(e,t){if(H_(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(H_(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return (String)(e)}var Z_=false,Q_=function(){function e(t,n,r){if(K_(this,e),!t)throw TypeError(`First argument is required`);if(typeof t!=`string`)throw TypeError(`First argument must be a string`);if(t[0]===`+`&&!n)throw TypeError("`metadata` argument not passed");if(pg(n)&&pg(n.countries)){r=n;var i=t;if(!tv.test(i))throw Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var a=__(i,void 0,void 0,void 0,r),o=a.countryCallingCode;if(n=a.number,t=o,!n)throw Error("Invalid `number` argument passed: too short")}if(!n)throw TypeError("`nationalNumber` argument is required");if(typeof n!=`string`)throw TypeError("`nationalNumber` argument must be a string");kg(r);var s=ev(t,r),c=s.country,l=s.countryCallingCode;this.country=c,this.countryCallingCode=l,this.nationalNumber=n,this.number=`+`+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return r};}return J_(e,[{key:`setExt`,value:function(e){this.ext=e;}},{key:`getPossibleCountries`,value:function(){return this.country?[this.country]:Xg(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:`isPossible`,value:function(){return Bg(this,{v2:true},this.getMetadata())}},{key:`isValid`,value:function(){return Yg(this,{v2:true},this.getMetadata())}},{key:`isNonGeographic`,value:function(){return new Q$2(this.getMetadata()).isNonGeographicCallingCode(this.countryCallingCode)}},{key:`isEqual`,value:function(e){return this.number===e.number&&this.ext===e.ext}},{key:`getType`,value:function(){return qg(this,{v2:true},this.getMetadata())}},{key:`format`,value:function(e,t){return F_(this,e,t?W_(W_({},t),{},{v2:true}):{v2:true},this.getMetadata())}},{key:`formatNational`,value:function(e){return this.format(`NATIONAL`,e)}},{key:`formatInternational`,value:function(e){return this.format(`INTERNATIONAL`,e)}},{key:`getURI`,value:function(e){return this.format(`RFC3966`,e)}}])}(),$_=function(e){return /^[A-Z]{2}$/.test(e)};function ev(e,t){var n,r,i=new Q$2(t);return $_(e)?(n=e,i.selectNumberingPlan(n),r=i.countryCallingCode()):(r=e,Z_),{country:n,countryCallingCode:r}}var tv=/^\+\d+$/;function nv(e){"@babel/helpers - typeof";return nv=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},nv(e)}function iv(e,t,n){return Object.defineProperty(e,`prototype`,{writable:false}),e}function sv(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function cv(e,t,n){return t=_v(t),lv(e,mv()?Reflect.construct(t,n||[],_v(e).constructor):t.apply(e,n))}function lv(e,t){if(t&&(nv(t)==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return uv(e)}function uv(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function dv(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}}),Object.defineProperty(e,`prototype`,{writable:false}),t&&gv(e,t);}function fv(e){var t=typeof Map==`function`?new Map:void 0;return fv=function(e){if(e===null||!hv(e))return e;if(typeof e!=`function`)throw TypeError(`Super expression must either be null or a function`);if(t!==void 0){if(t.has(e))return t.get(e);t.set(e,n);}function n(){return pv(e,arguments,_v(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:false,writable:true,configurable:true}}),gv(n,e)},fv(e)}function pv(e,t,n){if(mv())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&gv(i,n.prototype),i}function mv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch{}return (mv=function(){return !!e})()}function hv(e){try{return Function.toString.call(e).indexOf(`[native code]`)!==-1}catch{return typeof e==`function`}}function gv(e,t){return gv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},gv(e,t)}function _v(e){return _v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_v(e)}var vv=function(e){function t(e){var n;return sv(this,t),n=cv(this,t,[e]),Object.setPrototypeOf(n,t.prototype),n.name=n.constructor.name,n}return dv(t,e),iv(t)}(fv(Error)),yv=RegExp(`(?:`+T_()+`)$`,`i`);function bv(e){var t=e.search(yv);if(t<0)return {};for(var n=e.slice(0,t),r=e.match(yv),i=1;i<r.length;){if(r[i])return {number:n,ext:r[i]};i++;}}var xv={0:`0`,1:`1`,2:`2`,3:`3`,4:`4`,5:`5`,6:`6`,7:`7`,8:`8`,9:`9`,"0":`0`,"1":`1`,"2":`2`,"3":`3`,"4":`4`,"5":`5`,"6":`6`,"7":`7`,"8":`8`,"9":`9`,"٠":`0`,"١":`1`,"٢":`2`,"٣":`3`,"٤":`4`,"٥":`5`,"٦":`6`,"٧":`7`,"٨":`8`,"٩":`9`,"۰":`0`,"۱":`1`,"۲":`2`,"۳":`3`,"۴":`4`,"۵":`5`,"۶":`6`,"۷":`7`,"۸":`8`,"۹":`9`};function Sv(e){return xv[e]}function Cv(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n)return (n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=wv(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:true}:{done:false,value:e[r++]}}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
45
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
46
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function py(e,t){if(e){if(typeof e==`string`)return my(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?my(e,t):void 0}}function my(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function hy(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=true,l=false;try{if(a=(n=n.call(e)).next,t===0);else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=true);}catch(e){l=true,i=e;}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function gy(e){if(Array.isArray(e))return e}function _y(e){var t=dy(Array.prototype.slice.call(e),4),n=t[0],r=t[1],i=t[2],a=t[3],o,s,c;if(typeof n==`string`)o=n;else throw TypeError(`A text for parsing must be a string.`);if(!r||typeof r==`string`)a?(s=i,c=a):(s=void 0,c=i),r&&(s=sy({defaultCountry:r},s));else if(pg(r))i?(s=r,c=i):c=r;else throw Error(`Invalid second argument: ${r}`);return {text:o,options:s,metadata:c}}function vy(e){"@babel/helpers - typeof";return vy=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},vy(e)}function yy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r);}return n}function by(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?yy(Object(n),true).forEach(function(t){xy(e,t,n[t]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yy(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t));});}return e}function xy(e,t,n){return (t=Sy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true}):e[t]=n,e}function Sy(e){var t=Cy(e,`string`);return vy(t)==`symbol`?t:t+``}function Cy(e,t){if(vy(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(vy(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return (t===`string`?String:Number)(e)}function wy(e,t,n){t&&t.defaultCountry&&!Mg(t.defaultCountry,n)&&(t=by(by({},t),{},{defaultCountry:void 0}));try{return iy(e,t,n)}catch(e){if(!(e instanceof vv))throw e}}function Ty(e){"@babel/helpers - typeof";return Ty=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Ty(e)}function Ey(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r);}return n}function Dy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Ey(Object(n),true).forEach(function(t){Oy(e,t,n[t]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ey(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t));});}return e}function Oy(e,t,n){return (t=ky(t))in e?Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true}):e[t]=n,e}function ky(e){var t=Ay(e,`string`);return Ty(t)==`symbol`?t:t+``}function Ay(e,t){if(Ty(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ty(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return (t===`string`?String:Number)(e)}function jy(){var e=_y(arguments),t=e.text,n=e.options,r=e.metadata;n=Dy(Dy({},n),{},{extract:false});var i=wy(t,n,r);return i&&i.isValid()||false}function My(){return ug(jy,arguments)}const Ny=Ph.omit({eventId:true,channel:true}).partial().extend({id:A$1().meta({examples:[x$1.Order.id],description:`Unique identifier of the order to update`}),signature:wl.meta({description:`HMAC signature for customer access during checkout (16 characters, base64url encoded). Required for all order updates.`}),items:F$1(Nh).min(1).optional().meta({description:`Updated list of items for the order. Requires signature. Prices will be recalculated and payment intent updated.`}),customer:I$1({firstName:A$1().meta({examples:[x$1.Customer.firstName],description:`Updated first name of the customer`}).optional(),lastName:A$1().meta({examples:[x$1.Customer.lastName],description:`Updated last name of the customer`}).optional(),email:Mo().meta({examples:[x$1.Customer.email],description:`Updated email address of the customer`}).optional(),phone:A$1().refine(e=>!e||My(e),{message:`Phone must be in E.164 format (e.g., +61412345678)`}).meta({examples:[x$1.Customer.phone],description:`Updated phone number in E.164 format (e.g., +61412345678)`}).optional(),deliveryMethod:Ih.optional()}).optional().meta({description:`Updated customer information for the order. All fields are optional for partial updates.`}),marketingConsent:ah.optional().meta({description:`Marketing opt-in choices captured during checkout.`})}),Py=I$1({id:A$1().meta({examples:[x$1.Order.id],description:`Unique identifier of the order`}),noteId:A$1().meta({examples:[`tl_1234567890_abc123`],description:`Unique identifier of the timeline note to update`}),note:A$1().min(1).max(1e3).meta({examples:[`Updated: Customer confirmed special seating arrangements`],description:`Updated note text content (1-1000 characters)`})});var Fy={create:v$1.route({method:`POST`,path:`/orders/{id}/notes`,summary:`Add note to order timeline (promoter only)`,description:`Add a user note to the order timeline. Note will be marked as editable by the author.`,tags:[`Orders`]}).input(Mh.strict()).output(cg),update:v$1.route({method:`PATCH`,path:`/orders/{id}/notes/{noteId}`,summary:`Update timeline note (author only)`,description:`Update a timeline note. Only the author can edit their own notes. System-generated entries cannot be edited.`,tags:[`Orders`]}).input(Py.strict()).output(cg),remove:v$1.route({method:`DELETE`,path:`/orders/{id}/notes/{noteId}`,summary:`Delete timeline note (author only)`,description:`Delete a timeline note. Only the author can delete their own notes. System-generated entries cannot be deleted.`,tags:[`Orders`]}).input(Fh.strict()).output(us())};const Iy=v$1.route({method:`GET`,path:`/orders/{id}`,summary:`Get order by ID`,tags:[`Orders`]}).input(Rh.strict()).output(cg),Ly=v$1.route({method:`GET`,path:`/orders`,summary:`List orders with cursor-based pagination`,description:"Returns order data with cursor-based pagination, optional full-text search via `query`, and deterministic created-at sorting.",tags:[`Orders`]}).input(Zh.strict()).output(Qh),Ry=v$1.route({method:`POST`,path:`/orders/quote`,summary:`Create order quote`,tags:[`Orders`]}).input(eg.strict()).output(tg);var zy={get:Iy,list:Ly,create:v$1.route({method:`POST`,path:`/orders`,summary:`Create a new order`,tags:[`Orders`]}).input(Ph.strict()).output(cg),update:v$1.route({method:`PUT`,path:`/orders/{id}`,summary:`Update an order`,tags:[`Orders`]}).input(Ny.strict()).output(cg),reserve:v$1.route({method:`POST`,path:`/orders/{id}/reserve`,summary:`Re-reserve inventory for an abandoned order`,description:`Attempts to re-reserve inventory for an abandoned order. If inventory is available, the order status is set back to PENDING with a new reservation timer. Returns the updated order with a new reservedAt timestamp if successful.`,tags:[`Orders`]}).input(og.strict()).output(cg),quote:Ry,resend:v$1.route({method:`POST`,path:`/orders/{id}/resend`,summary:`Resend tickets to customer`,description:`Resend order tickets to the customer's email. Optionally provide a different email address.`,tags:[`Orders`]}).input(ag.strict()).output(cg),refund:v$1.route({method:`POST`,path:`/orders/{id}/refund`,summary:`Refund order items`,description:`Process a refund for order items. Supports full or partial refunds with optional ticket cancellation.`,tags:[`Orders`]}).input(rg.strict()).output(ig),note:Fy};I$1({success:P$1().meta({description:`Whether the payout approval was successful`}),message:A$1().optional().meta({description:`Optional message about the approval result`}),payoutId:A$1().meta({description:`ID of the payout that was approved`})});const Vy=I$1({payoutId:A$1().meta({examples:[x$1.Payout.id],description:`Unique identifier of the payout for which to retrieve the detailed breakdown of orders and financial calculations.`})}),Hy=I$1({id:A$1().readonly().meta({examples:[x$1.PayoutDeduction.id],description:`Unique identifier for this deduction record.`}),createdAt:O$1().readonly().meta({examples:[x$1.PayoutDeduction.createdAt],description:`Timestamp in ISO 8601 format when this deduction was created.`}),updatedAt:O$1().readonly().meta({examples:[x$1.PayoutDeduction.updatedAt],description:`Timestamp in ISO 8601 format when this deduction was last updated.`}),amount:N$1().min(0).meta({examples:[x$1.PayoutDeduction.amount],description:`Deduction amount in cents. Positive values represent money being deducted from the payout.`}),currency:z$1.meta({examples:[x$1.PayoutDeduction.currency],description:`Currency code in ISO 4217 format for the deduction amount.`}),description:A$1().meta({examples:[x$1.PayoutDeduction.description],description:`Human-readable description explaining the reason for this deduction (e.g., 'Minimum bar spend not met', 'Venue damage charge').`}),gateway:A$1().meta({examples:[x$1.PayoutDeduction.gateway],description:`Payment gateway identifier where this deduction was processed.`}),gatewayId:A$1().meta({examples:[x$1.PayoutDeduction.gatewayId],description:`Unique identifier assigned by the payment gateway for this deduction transaction.`}),beneficiary:A$1().meta({examples:[x$1.PayoutDeduction.beneficiary],description:`Human-readable name of the beneficiary account from which this deduction was taken.`}),beneficiaryId:A$1().meta({examples:[x$1.PayoutDeduction.beneficiaryId],description:`Unique identifier of the beneficiary account from which this deduction was taken.`}),transferId:A$1().optional().meta({description:`Optional reference to a transfer record when this deduction results in money being moved to a future payout.`}),transferPayoutId:A$1().optional().meta({description:`Optional reference to a future payout where the deducted amount will be applied.`})}),Uy=I$1({id:A$1().meta({examples:[x$1.Event.id],description:`Unique identifier for the event associated with this payout.`}),name:A$1().meta({examples:[x$1.Event.name],description:`Human-readable name of the event.`}),slug:A$1().meta({examples:[x$1.Event.slug],description:`URL-friendly slug identifier for the event.`}),location:A$1().optional().meta({examples:[x$1.Event.location.name],description:`Optional human-readable location name where the event takes place.`})}),Wy=I$1({net:N$1().meta({examples:[x$1.Payout.price.net],description:`Total amount to pay to promoter.
|
|
47
|
-
Calculated as: total + booking + refunded + dispute + deductions`}),total:
|
|
48
|
-
Calculated as: gross + discount`}),gross:
|
|
49
|
-
Calculated as: base + booking + shipping`}),base:N$1().min(0).meta({examples:[x$1.Payout.price.base],description:`Total value of tickets.`}),booking:N$1().min(0).meta({examples:[x$1.Payout.price.booking],description:`Total value of booking fees (non-refundable).`}),shipping:N$1().min(0).meta({examples:[x$1.Payout.price.shipping],description:`Total value of shipping.`}),sms:N$1().min(0).default(0).meta({examples:[x$1.Payout.price.sms],description:`Total SMS delivery fees collected in cents (owed to Session Services, not the event organiser).`}),refunded:N$1().max(0).meta({examples:[x$1.Payout.price.refunded],description:`Total value of refunds (negative value).`}),discount:N$1().max(0).meta({examples:[x$1.Payout.price.discount],description:`Total value of discounts (negative value).`}),gateway:N$1().max(0).meta({examples:[x$1.Payout.price.gateway],description:`Total value of absorbed payment gateway fees (negative value).`}),dispute:N$1().max(0).meta({examples:[x$1.Payout.price.dispute],description:`Total value of non-absorbed payment gateway fees (negative value).`}),deductions:N$1().max(0).meta({examples:[x$1.Payout.price.deductions],description:`Total value of deductions for when money is owed (negative value).`}),currency:z$1.meta({examples:[x$1.Payout.price.currency],description:`Currency code in ISO 4217 format.`})}),Gy=L$1([`CREATED`,`APPROVED`,`REJECTED`,`PROCESSING`,`PAID`,`FAILED`,`CANCELLED`,`NOTE`]),Ky=Eh(Gy,{createdAtExamples:[x$1.Payout.createdAt],descriptionExamples:[`Payout was created after event settlement`],externalIdDescription:`External idempotency key for deduplication (e.g., Airwallex transfer events)`,externalIdExamples:[`airwallex:transfer_abc123:completed`],idDescription:`Unique identifier for this timeline entry`,idExamples:[`tl_01jgxyz123abc`],kindDescription:`Type of timeline event (CREATED, APPROVED, PROCESSING, PAID, NOTE, etc.)`,kindExamples:[`CREATED`,`APPROVED`,`PAID`]}),qy=I$1({id:A$1().meta({examples:[x$1.PayoutTransfer.id],description:`Unique identifier for this transfer record.`}),createdAt:O$1().meta({examples:[x$1.PayoutTransfer.createdAt],description:`Timestamp in ISO 8601 format when this transfer was created.`}),kind:L$1([`TICKETS`,`TENANT`,`VENUE`,`TEAM`,`SESSIONS`,`UNKNOWN`]).meta({examples:[`TICKETS`],description:`Type of transfer. TICKETS: revenue from ticket sales, TENANT: platform fees, VENUE: venue split, TEAM: team split, SESSIONS: platform commission, UNKNOWN: unclassified transfer.`}),amount:N$1().min(0).meta({examples:[x$1.PayoutTransfer.amount],description:`Transfer amount in cents. Positive values represent money being transferred to the beneficiary.`}),currency:z$1.meta({examples:[x$1.PayoutTransfer.currency],description:`Currency code in ISO 4217 format for the transfer amount.`}),fee:N$1().min(0).meta({examples:[x$1.PayoutTransfer.fee],description:`Gateway processing fee for this transfer in cents. This fee is deducted from the transfer amount.`}),feeCurrency:z$1.meta({examples:[x$1.PayoutTransfer.feeCurrency],description:`Currency code in ISO 4217 format for the gateway fee.`}),reference:A$1().meta({examples:[x$1.PayoutTransfer.reference],description:`External reference identifier for tracking this transfer with the payment gateway.`}),gateway:L$1([`AIRWALLEX`,`STRIPE`]).meta({examples:[`AIRWALLEX`],description:`Payment gateway used to process this transfer.`}),gatewayId:A$1().meta({examples:[x$1.PayoutTransfer.gatewayId],description:`Unique identifier assigned by the payment gateway for this transfer.`}),beneficiary:A$1().meta({examples:[x$1.PayoutTransfer.beneficiary],description:`Human-readable name of the beneficiary receiving this transfer.`}),beneficiaryId:A$1().meta({examples:[x$1.PayoutTransfer.beneficiaryId],description:`Unique identifier of the beneficiary account receiving this transfer.`}),status:A$1().optional().meta({examples:[`SCHEDULED`],description:`Transfer status from the payment gateway (e.g. SCHEDULED, IN_PROGRESS, COMPLETED).`}),settlementAmount:N$1().min(0).optional().meta({examples:[3550],description:`Amount received by the beneficiary in their local currency, in cents. Present only for cross-currency transfers where the settlement currency differs from the source currency.`}),settlementCurrency:z$1.optional().meta({examples:[`USD`],description:`Currency code in ISO 4217 format for the settlement amount. Present only for cross-currency transfers.`}),deductionId:A$1().optional().meta({description:`Optional reference to a deduction record when this transfer represents money being held back from a previous negative payout.`}),deductionPayoutId:A$1().optional().meta({description:`Optional reference to the payout that originated this transfer when it represents an outstanding balance being carried forward.`})}),Jy=L$1([`UPCOMING`,`FAILED`,`PROCESSING`,`PAID`,`CANCELLED`]),Xy=L$1([`AIRWALLEX`,`STRIPE`,`MANUAL`]),Qy=L$1([`DAILY`,`WEEKLY`,`AFTER_EVENT`,`ON_DEMAND`]),eb=I$1({id:A$1().readonly().meta({examples:[x$1.Payout.id],description:`A unique identifier for this payout.`}),createdAt:O$1().readonly().meta({examples:[x$1.Payout.createdAt],description:`Timestamp in ISO 8601 format when this payout was created.`}),updatedAt:O$1().readonly().meta({examples:[x$1.Payout.updatedAt],description:`Timestamp in ISO 8601 format when this payout was last updated.`}),paidAt:O$1().optional().meta({examples:[x$1.Payout.paidAt],description:`Timestamp in ISO 8601 format when this payout was completed.`}),dueAt:O$1().optional().meta({examples:[x$1.Payout.createdAt],description:`Earliest timestamp in ISO 8601 format when this payout can be picked up for processing. This is not a guaranteed bank arrival time.`}),status:Jy.meta({examples:[`PAID`],description:`Current payment status of this payout.`}),method:Xy.meta({examples:[`MANUAL`],description:`The payout channel used for disbursing funds.`}),approval:Qs.meta({examples:[`APPROVED`],description:`Approval status for this payout.`}),frequency:Qy.default(`AFTER_EVENT`).meta({examples:[`AFTER_EVENT`],description:`Schedule on which this payout is generated.`}),structure:A$1().meta({examples:[x$1.Payout.structure],description:`Data structure defining how funds are allocated in this payout.`}),transfers:F$1(qy).meta({description:`List of individual transfer records included in this payout.`}),deductions:F$1(Hy).meta({description:`List of deductions applied before calculating the payout total.`}),price:Wy.meta({description:`Summary of amounts for transfers and deductions in this payout.`}),event:Uy.meta({description:`Information about the event associated with this payout.`}),timeline:F$1(Ky).optional().meta({description:`Chronological list of status changes and notes for this payout.`}),eventId:A$1().meta({examples:[x$1.Payout.eventId],description:`Identifier of the event for which this payout was generated.`}),teamId:A$1().meta({description:`Team receiving this payout. BREAKING CHANGE: Replaced promoterId/promoterSlug.`})}).meta({description:`payout`});I$1({id:A$1().meta({examples:[x$1.Payout.id],description:`Unique identifier of the payout to approve for processing.`})});I$1({id:A$1().meta({examples:[x$1.Payout.id],description:`Unique identifier of the payout to reject.`}),reason:A$1().optional().meta({examples:[`Insufficient funds in account`],description:`Optional reason for rejecting the payout. This will be recorded for audit purposes.`})});I$1({id:A$1().meta({examples:[x$1.Payout.id],description:`Unique identifier of the payout to process and initiate transfers.`})});I$1({id:A$1().meta({examples:[x$1.Payout.id],description:`Unique identifier of the payout to retry transfer processing for.`})});const ab=I$1({id:A$1().meta({examples:[x$1.Payout.id],description:`Unique identifier of the payout to add a note to`}),note:A$1().trim().min(1).max(1e3).meta({examples:[`Transfer confirmed via bank statement`],description:`Note text content (1-1000 characters)`})}),ob=I$1({name:A$1(),gateway:L$1([`AIRWALLEX`,`STRIPE`,`FREE`]),message:A$1(),eventIds:F$1(A$1()).optional(),venues:F$1(A$1()).optional(),tenants:F$1(A$1()).optional(),teams:F$1(A$1()).optional(),ticketBeneficiaryTeamId:A$1().optional(),min:M$1().optional(),max:M$1().optional(),percent:M$1().optional(),split:I$1({tenant:M$1(),team:M$1(),venue:M$1(),sessions:M$1()})}),sb=I$1({tenant:M$1().meta({examples:[5e4],description:`Amount allocated to the tenant (platform) in cents. This represents the platform's share of the revenue.`}),venue:M$1().meta({examples:[25e3],description:`Amount allocated to the venue in cents. This represents the venue's share of the revenue from events held at their location.`}),team:M$1().meta({examples:[2e4],description:`Amount allocated to the team in cents. This represents the team's share of the revenue after fees and other deductions.`}),sessions:M$1().meta({examples:[3e3],description:`Amount allocated to Sessions platform commission in cents. This represents the platform's service fees.`}),tickets:M$1().meta({examples:[2e3],description:`Amount allocated to ticketing fees in cents. This represents fees charged for ticket processing and management.`})});I$1({payout:eb.meta({description:`Complete payout record containing all financial details and metadata for calculating beneficiary allocations.`}),feeStructure:ob.meta({description:`Fee structure configuration that defines how revenue is split between different parties (promoter, venue, platform, etc.).`}),split:sb.meta({description:`Calculated split amounts showing how the payout total is divided among the different beneficiaries in cents.`})});const lb=I$1({orders:M$1().meta({examples:[150],description:`Total number of orders included in this payout breakdown.`}),price:gh.meta({description:`Aggregated price information for all orders included in this payout, showing total revenue, fees, and deductions.`}),split:sb.meta({description:`How the total payout amount is split between different beneficiaries (tenant, venue, promoter, etc.) in cents.`}),structure:A$1().meta({examples:[`DEFAULT`],description:`Fee structure identifier that was used to calculate the payout split and allocations.`})}),ub=I$1({total:lb.meta({description:`Summary totals for all orders included in this payout breakdown, including aggregated financial calculations.`}),orders:F$1(I$1({order:jh.meta({description:`Complete order information including customer details, items, and payment status.`}),price:gh.meta({description:`Settled price information for this specific order, showing final amounts after refunds and adjustments.`}),split:sb.meta({description:`How this individual order's revenue is split between different beneficiaries in cents.`}),structure:A$1().meta({examples:[`DEFAULT`],description:`Fee structure identifier used to calculate the split for this order.`})})).meta({description:`Detailed breakdown of individual orders included in this payout, showing how each order contributes to the total.`})});eb.pick({id:true,eventId:true}).extend({id:A$1().meta({examples:[x$1.Payout.id],description:`Unique identifier of the payout for which to retrieve the detailed breakdown.`}),eventId:A$1().meta({examples:[x$1.Event.id],description:`Unique identifier of the event associated with the payout breakdown.`})});eb.pick({eventId:true,teamId:true,method:true,frequency:true}).partial({method:true,frequency:true}).meta({description:`Schema for creating a new payout record`}).extend({eventId:A$1().meta({examples:[x$1.Event.id],description:`Unique identifier of the event for which the payout is being created`}),teamId:A$1().meta({examples:[`tem_01jqpjksnsen9vprw95et60t2m`],description:`Unique identifier of the team who will receive the payout`}),method:L$1([`AIRWALLEX`,`STRIPE`,`MANUAL`]).optional().meta({examples:[`AIRWALLEX`],description:`Optional payment method for the payout. Defaults to promoter's preferred method if not specified`}),frequency:L$1([`DAILY`,`WEEKLY`,`AFTER_EVENT`]).optional().meta({examples:[`AFTER_EVENT`],description:`Optional payout frequency. Defaults to 'AFTER_EVENT' if not specified`})});const pb=I$1({id:A$1().meta({examples:[x$1.Payout.id],description:`Unique identifier of the payout`}),noteId:A$1().meta({examples:[`tl_1234567890_abc123`],description:`Unique identifier of the timeline note to delete`})}),mb=eb.pick({id:true}).extend({id:A$1().meta({examples:[x$1.Payout.id],description:`Unique identifier of the payout to retrieve.`})}),hb=I$1({mine:P$1().optional().meta({examples:[true],description:"When true, returns payouts from teams where the authenticated user has payout access (for example, `payout.read` or `payout.write`)."}),teamId:A$1().optional().meta({description:`Filter payouts by specific team unique identifier. BREAKING CHANGE: Replaced promoterId filter.`}),eventId:A$1().optional().meta({examples:[x$1.Event.id],description:`Filter payouts by specific event unique identifier. When provided, only returns payouts for this event.`}),status:L$1([`UPCOMING`,`FAILED`,`PROCESSING`,`PAID`,`CANCELLED`]).optional().meta({examples:[`PAID`],description:`Filter payouts by payment status. UPCOMING: scheduled but not yet processed, FAILED: failed processing and will retry, PROCESSING: currently being processed, PAID: successfully completed, CANCELLED: cancelled before completion.`}),approval:Qs.optional().meta({examples:[`APPROVED`],description:`Filter payouts by approval status. PENDING: awaiting approval, APPROVED: approved for processing, REJECTED: rejected and will not be processed.`}),query:A$1().optional().meta({examples:[`PAID venue:sydney`],description:`Optional search query to filter payouts by text fields. When provided, search-backed pagination is used.`}),limit:Mc(`payouts`).optional(),cursor:A$1().optional().meta({examples:[`eyJpZCI6InBheV8wMWpwczVjZ3NmdjJ3cmU2aGQwcmM0dzR0OCJ9`],description:`Pagination cursor for continuing to fetch subsequent results. Use the cursor from the previous response to continue.`})}).meta({description:`Schema for listing payouts with optional filtering, search, and cursor-based pagination`}),gb=G$2(eb,`payouts`),_b=L$1([`VALID`,`FALLBACK`,`MISSING`]),vb=I$1({status:_b.meta({examples:[`VALID`],description:`Resolution status for the beneficiary used by this split. FALLBACK indicates a non-strict match was used, MISSING means no beneficiary is configured.`}),warning:A$1().optional().meta({examples:[`Using fallback beneficiary with matching gateway only.`],description:`Optional warning message shown when fallback or missing beneficiary resolution was required.`}),beneficiary:I$1({id:A$1().optional().meta({examples:[x$1.Beneficiary.id],description:`Identifier for the beneficiary.`}),teamId:A$1().optional().meta({examples:[x$1.Team.id],description:`Team that owns this beneficiary configuration.`}),name:A$1().meta({examples:[x$1.Beneficiary.name],description:`Display name for the resolved beneficiary.`}),gateway:L$1([`AIRWALLEX`,`STRIPE`]).optional().meta({examples:[x$1.Beneficiary.gateway],description:`Payment gateway for this beneficiary when available from configuration.`}),gatewayId:A$1().meta({examples:[x$1.Beneficiary.gatewayId],description:`Gateway-specific beneficiary identifier used for transfer creation.`}),currency:z$1.meta({examples:[x$1.Beneficiary.currency],description:`Currency configured for this beneficiary.`})}).optional()}),yb=L$1([`tickets`,`tenant`,`venue`,`team`,`sessions`]),bb=I$1({kind:yb.meta({examples:[`tickets`],description:`Split component represented by this row.`}),amount:M$1().int().meta({examples:[114500],description:`Amount in cents for this split component.`}),currency:z$1.meta({examples:[x$1.Payout.price.currency],description:`Currency code for this split component.`}),beneficiary:vb}),xb=L$1([`TRACKED`,`N_A`,`SKIPPED`]),Sb=I$1({orders:M$1().int().meta({examples:[12],description:`Number of orders in this settlement bucket.`}),price:gh.meta({description:`Aggregated totals for the orders in this bucket, in the bucket's native currency.`})}),Cb=I$1({state:xb.meta({examples:[`TRACKED`],description:`Whether settlement tracking applies to this payout preview. Non-Airwallex payouts return N_A.`}),settled:Sb.optional().meta({description:`Completed Airwallex orders that already have settlement data available.`}),awaitingSettlement:Sb.optional().meta({description:`Completed Airwallex orders still waiting on settlement ingestion.`})}),wb=I$1({payout:eb.pick({id:true,status:true,approval:true,method:true,frequency:true,structure:true,createdAt:true,dueAt:true,teamId:true,eventId:true,event:true,price:true}).meta({description:`Lightweight payout summary used by approvals and payout queue UIs.`}),rows:F$1(bb).meta({description:`Non-zero split rows with beneficiary resolution status and warnings.`}),settlementSummary:Cb.meta({description:`Settlement status summary for the payout event. Airwallex payouts expose settled vs awaiting-settlement buckets.`})}),Tb=mb.extend({includeSettlementSummary:P$1().optional().meta({examples:[true],description:`When true, includes the Airwallex settlement summary for the payout preview.`})}),Eb=I$1({payout:eb,breakdown:ub}),Db=Ss(A$1(),Ss(A$1(),I$1({net:M$1(),total:M$1(),gross:M$1(),base:M$1(),booking:M$1(),shipping:M$1(),refunded:M$1(),discount:M$1(),gateway:M$1(),dispute:M$1(),deductions:M$1()}))).meta({description:`Payout statistics grouped by period (current/previous) and currency`,examples:[{current:{USD:{net:1e5,total:12e4,gross:115e3,base:11e4,booking:5e3,shipping:0,refunded:0,discount:5e3,gateway:3e3,dispute:0,deductions:2e3}},previous:{USD:{net:8e4,total:95e3,gross:9e4,base:85e3,booking:5e3,shipping:0,refunded:0,discount:5e3,gateway:2500,dispute:0,deductions:1500}}}]}),Ob=I$1({teamId:A$1().optional().meta({description:`Filter stats by team ID`}),startDate:A$1().optional().meta({description:`Start date for stats period (YYYY-MM-DD)`}),endDate:A$1().optional().meta({description:`End date for stats period (YYYY-MM-DD)`})}),kb=eb.pick({id:true}).merge(eb.pick({status:true,approval:true}).partial()).extend({id:A$1().meta({examples:[x$1.Payout.id],description:`Unique identifier of the payout to update.`}),status:L$1([`CANCELLED`]).optional().meta({examples:[`CANCELLED`],description:`Optional new payment status for the payout. Only CANCELLED is allowed for manual updates.`}),approval:Qs.optional().meta({examples:[`APPROVED`],description:`Optional new approval status for the payout. PENDING: awaiting approval, APPROVED: approved for processing, REJECTED: rejected.`})}),Ab=I$1({id:A$1().meta({examples:[x$1.Payout.id],description:`Unique identifier of the payout`}),noteId:A$1().meta({examples:[`tl_1234567890_abc123`],description:`Unique identifier of the timeline note to update`}),note:A$1().trim().min(1).max(1e3).meta({examples:[`Updated: Transfer confirmed - reference #12345`],description:`Updated note text content (1-1000 characters)`})}),jb=I$1({payout:eb});var Mb={create:v$1.route({method:`POST`,path:`/payouts/{id}/notes`,summary:"Add note to payout timeline (`payout.write` required)",description:`Add a user note to the payout timeline. Note will be marked as editable by the author.`,tags:[`Payouts`]}).input(ab.strict()).output(jb),update:v$1.route({method:`PATCH`,path:`/payouts/{id}/notes/{noteId}`,summary:`Update timeline note (author only)`,description:`Update a timeline note. Only the author can edit their own notes. System-generated entries cannot be edited.`,tags:[`Payouts`]}).input(Ab.strict()).output(jb),remove:v$1.route({method:`DELETE`,path:`/payouts/{id}/notes/{noteId}`,summary:`Delete timeline note (author only)`,description:`Delete a timeline note. Only the author can delete their own notes. System-generated entries cannot be deleted.`,tags:[`Payouts`]}).input(pb.strict()).output(jb)},Nb={get:v$1.route({method:`GET`,path:`/payouts/{id}`,summary:`Get payout by ID with breakdown`,tags:[`Payouts`]}).input(mb.strict()).output(Eb),list:v$1.route({method:`GET`,path:`/payouts`,summary:`List payouts with cursor-based pagination`,description:"Returns payout data with cursor-based pagination and optional full-text search via the `query` parameter.",tags:[`Payouts`]}).input(hb.strict()).output(gb),preview:v$1.route({method:`GET`,path:`/payouts/{id}/preview`,summary:`Get payout preview for approvals`,description:`Returns lightweight payout split rows and beneficiary resolution status used by approvals dropdowns.`,tags:[`Payouts`]}).input(Tb.strict()).output(wb),stats:v$1.route({method:`POST`,path:`/payouts/stats`,summary:`Get payout statistics`,tags:[`Payouts`]}).input(Ob.strict()).output(Db),breakdown:v$1.route({method:`GET`,path:`/payouts/{payoutId}/breakdown`,summary:`Get payout breakdown`,tags:[`Payouts`]}).input(Vy.strict()).output(ub),update:v$1.route({method:`PATCH`,path:`/payouts/{id}`,summary:`Update a payout`,description:`Update payout status or approval. Use approval field to approve or reject payouts.`,tags:[`Payouts`]}).input(kb.strict()).output(eb),note:Mb};const Pb=L$1([`PROMOTER`,`VENUE`]).meta({description:`Type of permission scope. PROMOTER: applies to all events by a specific promoter. VENUE: applies to all events at a specific venue.`}),Fb=I$1({id:A$1().readonly().meta({description:`Unique identifier for the permission scope`}),createdAt:O$1().readonly().meta({description:`Timestamp in ISO 8601 format when the scope was created`}),updatedAt:O$1().readonly().meta({description:`Timestamp in ISO 8601 format when the scope was last updated`}),teamMemberId:A$1().meta({description:`Team member this scope applies to`}),teamId:A$1().meta({description:`Team the member belongs to`}),userId:A$1().meta({description:`ID of the user this permission scope applies to`}),permissions:F$1(il).meta({description:`Scoped permissions. Can be empty array to remove all access. Replaces lower-tier permissions based on kind (VENUE overrides PROMOTER overrides BASE).`}),roleIds:F$1(A$1()).optional().meta({description:`Optional role IDs applied at this scope. Role-derived permissions are merged with explicit scoped nodes.`}),tenantId:A$1().readonly().meta({description:`Tenant identifier`})}),Ib=vs(`kind`,[Fb.extend({kind:Ts(`PROMOTER`).meta({description:`Scope type: PROMOTER-specific permissions`}),promoterId:A$1().meta({description:`Promoter this scope applies to. Replaces base permissions for all events by this promoter.`})}).meta({description:`PROMOTER-specific permission scope. Applies to all events by the specified promoter.`}),Fb.extend({kind:Ts(`VENUE`).meta({description:`Scope type: VENUE-specific permissions`}),venueId:A$1().meta({description:`Venue this scope applies to. Replaces base/promoter permissions for all events at this venue.`})}).meta({description:`VENUE-specific permission scope. Applies to all events at the specified venue.`})]).meta({description:`Permission scope for a team member. Can be PROMOTER-specific (applies to all events by that promoter) or VENUE-specific (applies to all events at that venue). Replaces lower-tier permissions using REPLACE semantics.`}),Lb=I$1({permissions:F$1(il).meta({description:`Scoped permissions. Can be empty array to remove all access. Replaces lower-tier permissions based on kind (VENUE overrides PROMOTER overrides BASE).`}),roleIds:F$1(A$1()).optional().meta({description:`Optional role IDs to apply at this scope.`})}),Rb=vs(`kind`,[Lb.extend({kind:Ts(`PROMOTER`).meta({description:`Scope type: PROMOTER-specific permissions`}),promoterId:A$1().meta({description:`Promoter this scope applies to. Replaces base permissions for all events by this promoter.`})}).meta({description:`Create a PROMOTER-specific permission scope. Applies to all events by the specified promoter.`}),Lb.extend({kind:Ts(`VENUE`).meta({description:`Scope type: VENUE-specific permissions`}),venueId:A$1().meta({description:`Venue this scope applies to. Replaces base/promoter permissions for all events at this venue.`})}).meta({description:`Create a VENUE-specific permission scope. Applies to all events at the specified venue.`})]).meta({description:`Schema for creating a new permission scope. Must specify kind (PROMOTER or VENUE) and corresponding ID.`}),zb=I$1({id:Cc.meta({description:`Unique identifier for the permission scope`})}).meta({description:`Schema for retrieving a single permission scope by ID`}),Bb=I$1({teamMemberId:A$1().optional().meta({description:`Filter by team member ID`}),userId:A$1().optional().meta({description:`Filter by user ID`}),kind:Pb.optional().meta({description:`Filter by scope kind (PROMOTER or VENUE)`}),promoterId:A$1().optional().meta({description:`Filter by promoter ID (only for kind=PROMOTER scopes)`}),venueId:A$1().optional().meta({description:`Filter by venue ID (only for kind=VENUE scopes)`}),limit:Mc(`permission scopes`),cursor:A$1().optional().meta({description:`Pagination cursor from previous response. Used to fetch next page of results`})}).meta({description:`Query parameters for listing permission scopes with pagination and filtering`}),Vb=G$2(Ib,`items`).meta({description:`Paginated response containing permission scopes with cursor for next page`}),Hb=Lb.meta({description:`Schema for updating an existing permission scope. Only permissions array can be modified.`}),Ub=I$1({key:A$1(),memberId:A$1()}),Wb=Ub.merge(zb).strict();var Gb={get:v$1.route({method:`GET`,path:`/teams/{key}/members/{memberId}/permission-scopes/{id}`,summary:`Get permission scope by ID`,description:`Retrieve a permission scope using its unique ID`,tags:[`Permission Scopes`]}).input(Wb).output(Ib),list:v$1.route({method:`GET`,path:`/teams/{key}/members/{memberId}/permission-scopes`,summary:`List permission scopes with cursor-based pagination`,description:`Returns permission scopes for a specific team member with cursor pagination. Can filter by kind (PROMOTER or VENUE).`,tags:[`Permission Scopes`]}).input(Ub.merge(Bb).strict()).output(Vb),create:v$1.route({method:`POST`,path:`/teams/{key}/members/{memberId}/permission-scopes`,summary:`Create a new permission scope`,description:`Create a permission scope for a team member. Can be PROMOTER-specific (applies to all events by that promoter) or VENUE-specific (applies to all events at that venue). Replaces lower-tier permissions.`,tags:[`Permission Scopes`]}).input(Ub.and(Rb)).output(Ib),update:v$1.route({method:`PATCH`,path:`/teams/{key}/members/{memberId}/permission-scopes/{id}`,summary:`Update a permission scope`,description:`Update an existing permission scope. Only the permissions array can be modified.`,tags:[`Permission Scopes`]}).input(Ub.extend({id:A$1()}).merge(Hb).strict()).output(Ib),remove:v$1.route({method:`DELETE`,path:`/teams/{key}/members/{memberId}/permission-scopes/{id}`,summary:`Delete a permission scope`,description:`Remove a permission scope. Team member will revert to lower-tier permissions for the affected resource.`,tags:[`Permission Scopes`]}).input(Wb).output(Ib)};const Kb=I$1({id:wc.meta({description:`Permission role ID`}),teamId:oc.meta({description:`Team that owns this role`}),name:A$1().min(1).meta({description:`Role display name`}),description:A$1().optional().meta({description:`Optional role description`}),permissions:ol.meta({description:`Permission nodes granted by this role`}),createdAt:O$1().meta({description:`Timestamp in ISO 8601 format when the role was created`}),updatedAt:O$1().meta({description:`Timestamp in ISO 8601 format when the role was last updated`})}).meta({description:`Team-scoped permission role`}),qb=I$1({role:Kb}),Jb=I$1({roles:F$1(Kb)}),Yb=I$1({key:A$1().meta({description:`Team identifier (ID or slug)`})}),Xb=I$1({key:A$1().meta({description:`Team identifier (ID or slug)`}),roleId:wc}),Zb=I$1({key:A$1().meta({description:`Team identifier (ID or slug)`}),name:A$1().min(1).meta({description:`Role display name`}),description:A$1().optional().meta({description:`Optional role description`}),permissions:ol}),Qb=I$1({key:A$1().meta({description:`Team identifier (ID or slug)`}),roleId:wc,name:A$1().min(1).meta({description:`Role display name`}),description:A$1().optional().meta({description:`Optional role description`}),permissions:ol}),$b=I$1({memberId:bc,permissions:F$1(il),updatedAt:O$1()}),ex=I$1({member:$b}),tx=I$1({key:A$1().meta({description:`Team identifier (ID or slug)`}),memberId:bc}),nx=I$1({key:A$1().meta({description:`Team identifier (ID or slug)`}),memberId:bc,permissions:F$1(il).meta({description:`Direct permission nodes for this member. Full-replace semantics; use an empty array to remove all direct grants.`})}),rx=I$1({memberId:bc,roleIds:F$1(wc).meta({description:`Role IDs assigned to this member`}),updatedAt:O$1()}),ix=I$1({member:rx}),ax=I$1({key:A$1().meta({description:`Team identifier (ID or slug)`}),memberId:bc}),ox=I$1({key:A$1().meta({description:`Team identifier (ID or slug)`}),memberId:bc,roleIds:F$1(wc)}),sx=I$1({direct:F$1(A$1()),fromRoles:F$1(A$1()),effective:F$1(A$1()),denied:F$1(A$1())});I$1({memberId:bc,permissions:sx});I$1({key:A$1().meta({description:`Team identifier (ID or slug)`}),memberId:bc,domain:A$1().optional().meta({description:`Optional domain filter (for example: ticket, event)`}),action:A$1().optional().meta({description:`Optional action filter (for example: read, write, scan)`}),resourceId:A$1().optional().meta({description:`Optional resource ID filter`})});const dx=v$1.route({method:`GET`,path:`/teams/{key}/roles`,summary:`List team roles`,description:`Returns all roles configured for a team.`,tags:[`Permissions`]}).input(Yb.strict()).output(Jb),fx=v$1.route({method:`POST`,path:`/teams/{key}/roles`,summary:`Create team role`,description:`Creates a team-scoped permission role.`,tags:[`Permissions`]}).input(Zb.strict()).output(qb),px=v$1.route({method:`GET`,path:`/teams/{key}/roles/{roleId}`,summary:`Get team role`,description:`Retrieves a team role by ID.`,tags:[`Permissions`]}).input(Xb.strict()).output(qb),mx=v$1.route({method:`PUT`,path:`/teams/{key}/roles/{roleId}`,summary:`Replace team role`,description:`Full-replace, idempotent update for role name, description, and permissions.`,tags:[`Permissions`]}).input(Qb.strict()).output(qb),hx=v$1.route({method:`DELETE`,path:`/teams/{key}/roles/{roleId}`,summary:`Delete team role`,description:`Deletes a team role.`,tags:[`Permissions`]}).input(Xb.strict()).output(qb),gx=v$1.route({method:`GET`,path:`/teams/{key}/members/{memberId}/permissions`,summary:`Get member direct permissions`,description:`Returns direct permission nodes assigned to a member.`,tags:[`Permissions`]}).input(tx.strict()).output(ex),_x=v$1.route({method:`PUT`,path:`/teams/{key}/members/{memberId}/permissions`,summary:`Replace member direct permissions`,description:`Full-replace, idempotent update for direct permission nodes assigned to a member.`,tags:[`Permissions`]}).input(nx.strict()).output(ex),vx=v$1.route({method:`GET`,path:`/teams/{key}/members/{memberId}/roles`,summary:`Get member role assignments`,description:`Returns role IDs assigned to a member.`,tags:[`Permissions`]}).input(ax.strict()).output(ix),yx=v$1.route({method:`PUT`,path:`/teams/{key}/members/{memberId}/roles`,summary:`Replace member role assignments`,description:`Full-replace, idempotent update for role assignments on a member.`,tags:[`Permissions`]}).input(ox.strict()).output(ix);var bx={roles:{list:dx,create:fx,get:px,update:mx,remove:hx},members:{permissions:{get:gx,replace:_x},roles:{get:vx,replace:yx}}};const xx=I$1({key:A$1().min(1).meta({description:`Promoter key - either a unique ID (pmt_xxx format) or URL-friendly slug`,examples:[x$1.Promoter.id,x$1.Promoter.slug]})}).meta({description:`Request schema for retrieving a promoter by either its unique ID or slug`});Rp.pick({slug:true});const Cx=Rp.omit({id:true,createdAt:true,updatedAt:true,geohash:true,approval:true,location:true}).extend({teamId:A$1().meta({examples:[`tem_01jqpjksnsen9vprw95et60t2m`],description:`ID of the team that will own this promoter. User must be a member of this team.`}),slug:A$1().min(3).max(30).optional().meta({examples:[x$1.Promoter.slug],description:`URL-friendly slug for the promoter organization. If not provided, will be automatically generated from the name. Must be unique and between 3 and 30 characters`}),...Bh}).refine(Vh,{message:zh}).meta({description:`Schema for creating a new promoter organization. The system automatically generates the ID, tenant association, geohash, and timestamps`}),wx=I$1({key:A$1().min(1).meta({description:`Promoter key - either a unique ID (pmt_xxx format) or URL-friendly slug`,examples:[x$1.Promoter.id,x$1.Promoter.slug]})}).meta({description:`Schema for removing (soft deleting) a promoter organization by key (ID or slug)`});Rp.pick({id:true}).meta({description:`Schema for retrieving a specific promoter by ID`});const Ex=e=>{if(e!=null)return typeof e==`string`?Dx(e):e};function Dx(e){let t=e.trim();if(t.length===0)return;let n=Number(t);return Number.isNaN(n)?e:n}const Ox=I$1({teamId:A$1().optional().meta({description:`Filter promoters to only those belonging to a specific team`}),approval:Qs.optional().meta({examples:[x$1.Promoter.approval],description:`Filter promoters by approval status. PENDING: awaiting review, APPROVED: can create events, REJECTED: cannot operate`}),query:A$1().optional().meta({examples:[`Session Services`],description:`Optional search query. When provided, results are fetched from search with unified cursor pagination.`}),latitude:R$1().min(-90).max(90).optional().meta({examples:[x$1.Promoter.location.latitude],description:`Latitude used with longitude and radius to filter promoters by proximity when searching.`}),longitude:R$1().min(-180).max(180).optional().meta({examples:[x$1.Promoter.location.longitude],description:`Longitude used with latitude and radius to filter promoters by proximity when searching.`}),radius:R$1().optional().meta({examples:[50],description:`Search radius in kilometers applied when latitude and longitude are provided.`}),mine:Zs().optional().meta({examples:[true],description:`When true, limits results to promoters from teams the current user belongs to. When combined with teamId, returns only that team's promoters (bypassing tenant-wide admin scope).`}),limit:(()=>Ys(Ex,M$1().min(1).max(100).prefault(20)).meta({examples:[20],description:`Maximum number of promoters to return (1-100, defaults to 20)`}))().optional(),cursor:A$1().optional().meta({examples:[`eyJpZCI6InByb18wMWpxcGprc25zZW45dnBydzk1ZXQ2MHQybSJ9`],description:`Opaque cursor for pagination. Use the cursor from the previous response to continue fetching results.`})}).meta({description:`Schema for listing promoters with optional filtering by team, full-text search, and cursor pagination`}),kx=G$2(Rp,`promoters`),Ax=I$1({promoter:Rp}),jx=Rp.omit({createdAt:true,updatedAt:true,id:true,location:true}).partial().extend({key:A$1().min(1).meta({description:`Promoter key - either a unique ID (pmt_xxx format) or URL-friendly slug`,examples:[x$1.Promoter.id,x$1.Promoter.slug]}),locationId:cc.optional().meta({examples:[`loc_01jqpjksnsen9vprw95et60t2m`],description:`ID of an existing location to update to. Either locationId or googlePlaceId can be provided.`}),googlePlaceId:A$1().optional().meta({examples:[`ChIJN1t_tDeuEmsRUsoyG83frY4`],description:`Google Place ID to update location from. Either locationId or googlePlaceId can be provided.`}),image:H$2.nullable().optional().meta({description:`Promoter image. Pass null to clear; omit to leave unchanged.`,examples:[x$1.Promoter.image,null]}),tracking:I$1({fbId:A$1().optional(),gtmId:A$1().optional(),tikTokId:A$1().optional()}).nullable().optional().meta({description:`Analytics tracking config. Pass null to clear all tracking; omit to leave unchanged.`})}).meta({description:`Schema for updating an existing promoter.`});var Mx={summary:v$1.route({method:`GET`,path:`/promoters/{promoterId}/performance/summary`,summary:`Get promoter performance summary`,description:`Overview KPIs for a single promoter based on tracking data (excludes entity-based data like payouts)`,tags:[`Promoter Performance`]}).input(xd).output(Sd),revenue:v$1.route({method:`GET`,path:`/promoters/{promoterId}/performance/revenue`,summary:`Get promoter revenue over time`,description:`Time-series data for revenue and tickets sold for a single promoter`,tags:[`Promoter Performance`]}).input(Cd).output(wd),events:v$1.route({method:`GET`,path:`/promoters/{promoterId}/performance/events`,summary:`Get promoter top events by tickets`,description:`Top events by ticket count for a single promoter`,tags:[`Promoter Performance`]}).input(Td).output(Ed)};const Nx=v$1.route({method:`GET`,path:`/promoters/{key}`,summary:`Get promoter by ID or slug`,description:`Retrieve a promoter using either its unique ID or URL-friendly slug`,tags:[`Promoters`]}).input(xx.strict()).output(Ax),Px=v$1.route({method:`POST`,path:`/promoters`,summary:`Create a new promoter`,description:`Create a new promoter brand within a team`,tags:[`Promoters`]}).input(Cx.strict()).output(Ax),Fx=v$1.route({method:`PUT`,path:`/promoters/{key}`,summary:`Update a promoter`,description:`Update a promoter using either its unique ID or URL-friendly slug`,tags:[`Promoters`]}).input(jx.strict()).output(Ax);var Ix={get:Nx,list:v$1.route({method:`GET`,path:`/promoters`,summary:`List promoters with cursor-based pagination`,description:`Returns promoters with cursor pagination. Filter by teamId to see promoters for a specific team.`,tags:[`Promoters`]}).input(Ox.strict()).output(kx),create:Px,update:Fx,remove:v$1.route({method:`DELETE`,path:`/promoters/{key}`,summary:`Delete a promoter`,description:`Delete a promoter using either its unique ID or URL-friendly slug`,tags:[`Promoters`]}).input(wx.strict()).output(Ax),performance:Mx};const Lx=v$1.route({method:`GET`,path:`/events/{eventId}/sections/{id}`,summary:`Get section by ID`,tags:[`Sections`]}).input(Wh.strict()).output(qh),Rx=v$1.route({method:`POST`,path:`/events/{eventId}/sections`,summary:`Create a new section`,tags:[`Sections`]}).input(Hh.strict()).output(qh),zx=v$1.route({method:`PUT`,path:`/events/{eventId}/sections/{id}`,summary:`Update a section`,tags:[`Sections`]}).input(Jh.strict()).output(qh);var Bx={get:Lx,list:v$1.route({method:`GET`,path:`/events/{eventId}/sections`,summary:`List sections`,description:`Returns sections with cursor-based pagination. Automatically uses search-backed pagination when query parameter is provided for full-text search capabilities.`,tags:[`Sections`]}).input(Gh.strict()).output(Kh),create:Rx,update:zx,remove:v$1.route({method:`DELETE`,path:`/events/{eventId}/sections/{id}`,summary:`Delete a section`,tags:[`Sections`]}).input(Uh.strict()).output(qh)};const Vx=I$1({key:A$1().meta({description:`Team identifier (ID or slug)`}),inviteId:A$1().meta({description:`Team invite ID to accept`}),token:A$1().meta({description:`Secure token used to accept the team invite. This token must match the one sent in the invitation email.`})}),Hx=I$1({provider:L$1([`STRIPE`,`AIRWALLEX`]).meta({description:`Payment gateway provider type`}),connectedAt:O$1().meta({description:`Timestamp when the payment gateway was connected to this team`}),connectedBy:A$1().meta({description:`User ID of the team member who connected the payment gateway`}),accountId:A$1().meta({description:`Connected account ID. For Stripe: acct_xxxxx. For Airwallex: business account open ID.`})}).meta({description:`Payment gateway configuration for direct payouts to the team's connected account`}),Ux=I$1({id:oc.readonly().meta({description:`Unique identifier for the team organization`}),createdAt:O$1().readonly().meta({description:`Timestamp in ISO 8601 format when the team was created`}),updatedAt:O$1().readonly().meta({description:`Timestamp in ISO 8601 format when the team was last updated`}),name:A$1().min(3).max(30).meta({description:`Display name of the team organization. Must be between 3 and 30 characters`}),slug:A$1().min(3).max(30).meta({description:`URL-friendly slug for the team organization. Must be unique within tenant and between 3 and 30 characters`}),supportEmail:A$1().email().optional().meta({description:`Support email address for customer inquiries. Used as reply-to address in order confirmation emails`}),publicBaseUrl:Io().optional().meta({description:`Optional public website base URL for team-owned event and order links. When present, it overrides the tenant public base URL.`,examples:[`https://sash.net.au`]}),image:H$2.optional().meta({description:`Team image with dimensions and alt text for branding across the platform`}),metadata:jc,approval:Qs.meta({description:`Approval status of the team. PENDING: awaiting review, APPROVED: can create promoters/venues/events, REJECTED: cannot operate`}),deletedAt:O$1().optional().readonly().meta({description:`Timestamp in ISO 8601 format when the team was soft deleted. Only present for deleted teams.`}),tenantId:A$1().readonly().meta({description:`Tenant ID for multi-tenant isolation`}),isAdmin:P$1().optional().meta({description:`Whether this team is the admin team for the tenant`}),gateway:Hx.optional().meta({description:`Connected payment gateway for direct payouts. When connected, funds from ticket sales go directly to the team's account with platform fees deducted.`})}).meta({description:`Team organization that owns promoters and venues. Multiple brands can exist under one team.`});Ux.extend({promoter:Rp.meta({description:`The primary promoter brand associated with this team`})}).meta({description:`Team organization with its primary promoter brand included for convenience`});const Gx=Ux.extend({member:I$1({id:bc.meta({description:`Current user's team member identifier for this team`}),permissions:al.meta({description:`Permissions the current user has for this team. Controls access to team resources.`,examples:[[],[`team.read`,`team.write`],[`team.member.read`,`team.member.write`],[`ticket.scan`],[`*`]]}),isOwner:P$1().meta({description:`Whether the current user is the owner of this team. Owners have full control.`})}).optional().meta({description:`Current user's membership details for this team. Present when user is a member.`})}).meta({description:`Team organization with the current user's membership details`}),Kx=I$1({key:A$1().min(1).meta({description:`Team key - either a unique ID (tem_xxx format) or URL-friendly slug`,examples:[x$1.Team.id,x$1.Team.slug]})}).meta({description:`Request schema for retrieving a team by either its unique ID or slug`}),qx=Ux.omit({id:true,tenantId:true,createdAt:true,updatedAt:true,deletedAt:true}).extend({slug:A$1().min(3).max(30).optional().meta({description:`URL-friendly slug for the team organization. If not provided, will be automatically generated from the name. Must be unique within tenant and between 3 and 30 characters`}),approval:Ux.shape.approval.optional().meta({description:`Approval status of the team. Defaults to PENDING if not specified.`})}).meta({description:`Schema for creating a new team organization. The system automatically generates the ID, tenant association, and timestamps`});I$1({id:oc.meta({description:`Team ID to delete`})});I$1({id:oc.meta({description:`Team ID to retrieve`})});const Xx=I$1({id:xc.readonly().meta({description:`Unique identifier for the team invitation`}),createdAt:O$1().readonly().meta({description:`Timestamp in ISO 8601 format when the invitation was created`}),updatedAt:O$1().readonly().meta({description:`Timestamp in ISO 8601 format when the invitation was last updated`}),teamId:oc.meta({description:`Team this invitation is for`}),email:Mo().meta({description:`Email address of the invited user. Used for sending invitation.`}),permissions:F$1(il).meta({description:`Permissions the user will receive upon accepting the invitation. Can be overridden per promoter or venue.`,examples:[[],[`event.read`,`event.write`,`order.read`],[`team.member.read`,`team.member.write`],[`ticket.scan`],[`*`]]}),roleIds:F$1(A$1()).optional().meta({description:`Role IDs assigned on invite acceptance. Effective permissions are role + explicit nodes.`}),token:A$1().readonly().meta({description:`Secure token for invite acceptance. Required to accept the invitation.`}),expiresAt:M$1().int().positive().meta({description:`Unix timestamp (seconds) for DynamoDB TTL. Invitation will be automatically deleted after 7 days.`}),invitedBy:lc.meta({description:`User ID who sent the invitation`}),tenantId:A$1().readonly().meta({description:`Tenant ID for multi-tenant isolation`})}).meta({description:`Pending team invitation. Automatically deleted after 7 days via DynamoDB TTL. When accepted, creates a TeamMember record and deletes the invitation.`}),Zx=I$1({key:A$1().meta({description:`Team identifier (ID or slug)`}),inviteId:A$1().meta({description:`Team invite ID to cancel`})}),Qx=I$1({key:A$1().meta({description:`Team identifier (ID or slug)`}),email:Mo().meta({description:`Email address of the user to invite`}),roleIds:F$1(A$1()).min(1).meta({description:`Role IDs to grant to the invited user.`})}),$x=I$1({key:A$1().meta({description:`Team identifier (ID or slug)`}),inviteId:xc.meta({description:`Team invite ID to retrieve`})}),eS=I$1({key:A$1().meta({description:`Team identifier (ID or slug)`}),query:A$1().optional().meta({description:`Search query to filter invitations by email. Case-insensitive partial match`}),limit:M$1().int().min(1).max(100).default(20).optional().meta({description:`Maximum number of invitations to return per page`}),cursor:A$1().optional().meta({description:`Pagination cursor for fetching the next page`})}),tS=G$2(Xx,`invites`),nS=I$1({invite:Xx}),rS=I$1({userId:lc.optional().meta({description:`Filter teams by user membership. If omitted, returns all teams (tenant admin only). If provided, returns teams where the specified user is a member`}),approval:Qs.optional().meta({description:`Filter teams by approval status. PENDING: awaiting review, APPROVED: can operate, REJECTED: cannot operate`}),query:A$1().optional().meta({description:`Optional search query for filtering teams by name or slug`}),limit:Mc(`teams`),cursor:A$1().optional().meta({description:`Pagination cursor from previous response. Used to fetch next page of results`})}).meta({description:`Query parameters for listing teams with pagination and filtering`}),iS=G$2(Gx,`teams`),aS=L$1([`STRIPE`,`AIRWALLEX`]),oS=I$1({key:A$1().meta({description:`Team identifier (ID or slug)`}),provider:aS.meta({description:`Payment processor to connect`,examples:[`STRIPE`,`AIRWALLEX`]})}),sS=I$1({authorizationUrl:A$1().url().meta({description:`URL to redirect the user to for OAuth authorization. Open in a new window or redirect the current page.`,examples:[`https://connect.stripe.com/oauth/authorize?response_type=code&client_id=ca_xxx&scope=read_write&redirect_uri=...`]})}),cS=I$1({key:A$1().meta({description:`Team identifier (ID or slug)`})}),lS=I$1({team:Gx.extend({isAdmin:P$1().optional().meta({description:`Whether this team is the tenant admin team`})})}),uS=I$1({id:A$1().meta({description:`Role ID`}),teamId:A$1().meta({description:`Team ID this role belongs to`}),key:A$1().meta({description:`Role key`}),name:A$1().meta({description:`Role display name`}),description:A$1().optional().meta({description:`Role description`}),permissions:F$1(A$1()).meta({description:`Permission nodes granted by this role`}),scope:Ts(`TEAM`).meta({description:`Role scope`}),isPreset:P$1().meta({description:`Whether this role is a system preset role`})});I$1({roles:F$1(uS)});I$1({key:A$1().meta({description:`Team identifier (ID or slug)`})});const pS=Ux.omit({tenantId:true,createdAt:true,updatedAt:true,id:true}).partial().extend({key:A$1().min(1).meta({description:`Team key - either a unique ID (tem_xxx format) or URL-friendly slug`,examples:[x$1.Team.id,x$1.Team.slug]}),supportEmail:A$1().email().nullable().optional().meta({description:`Support email for customer inquiries. Pass null to clear, omit to leave unchanged.`}),publicBaseUrl:Io().nullable().optional().meta({description:`Public website base URL for team-owned event and order links. Pass null to clear, omit to leave unchanged.`}),image:H$2.nullable().optional().meta({description:`Team image. Pass null to clear, omit to leave unchanged.`})}).meta({description:`Schema for updating an existing team organization. Pass null to clear optional fields.`});var mS={summary:v$1.route({method:`GET`,path:`/teams/{teamId}/performance/summary`,summary:`Get team performance summary`,description:`Overview KPIs aggregated across all promoters in the team, based on tracking data (excludes entity-based data like payouts)`,tags:[`Team Performance`]}).input(Dd).output(Od),revenue:v$1.route({method:`GET`,path:`/teams/{teamId}/performance/revenue`,summary:`Get team revenue over time`,description:`Time-series data for revenue and tickets sold aggregated across all promoters in the team`,tags:[`Team Performance`]}).input(kd).output(Ad),funnel:v$1.route({method:`GET`,path:`/teams/{teamId}/performance/funnel`,summary:`Get team conversion funnel`,description:`Conversion funnel showing drop-off rates from product view to purchase, aggregated across all events in the team`,tags:[`Team Performance`]}).input(Fd).output(Id),traffic:v$1.route({method:`GET`,path:`/teams/{teamId}/performance/traffic`,summary:`Get team traffic sources`,description:`Traffic source breakdown by campaign, medium, or source, aggregated across all events in the team`,tags:[`Team Performance`]}).input(Vd).output(Hd),events:v$1.route({method:`GET`,path:`/teams/{teamId}/performance/events`,summary:`Get team top events by tickets`,description:`Top events by ticket count, aggregated across all events in the team`,tags:[`Team Performance`]}).input(Nd).output(Pd),admissions:v$1.route({method:`GET`,path:`/teams/{teamId}/performance/admissions`,summary:`Get team top admissions by tickets`,description:`Top admission types by ticket count, aggregated across all events in the team`,tags:[`Team Performance`]}).input(zd).output(Bd),orders:v$1.route({method:`GET`,path:`/teams/{teamId}/performance/orders`,summary:`Get team orders distribution`,description:`Order counts grouped by time breakdown (hour, day of week, day, week, month)`,tags:[`Team Performance`]}).input(Ld).output(Rd),tracking:v$1.route({method:`GET`,path:`/teams/{teamId}/performance/tracking`,summary:`Get team tracking time series`,description:`Time-series tracking data (page views, add to cart, checkout, orders) aggregated at team or tenant level`,tags:[`Team Performance`]}).input(Ud).output(Wd)},hS={get:v$1.route({method:`GET`,path:`/teams/{key}`,summary:`Get team by ID or slug`,description:`Retrieve a team with membership details. User must be a member of the team.`,tags:[`Teams`]}).input(Kx.strict()).output(lS),list:v$1.route({method:`GET`,path:`/teams`,summary:`List teams with cursor-based pagination`,description:`Returns teams the current user has access to with cursor pagination`,tags:[`Teams`]}).input(rS.strict()).output(iS),create:v$1.route({method:`POST`,path:`/teams`,summary:`Create a new team`,description:`Create a new team organization`,tags:[`Teams`]}).input(qx.strict()).output(lS),update:v$1.route({method:`PATCH`,path:`/teams/{key}`,summary:`Update a team`,description:`Update an existing team by ID or slug`,tags:[`Teams`]}).input(pS.strict()).output(lS),remove:v$1.route({method:`DELETE`,path:`/teams/{key}`,summary:`Delete a team`,description:`Soft delete a team by ID or slug`,tags:[`Teams`]}).input(Kx.strict()).output(lS),performance:mS};const gS=I$1({key:A$1()}),_S=I$1({domain:A$1().nullable()}),vS=I$1({key:A$1(),domain:A$1()}),yS=I$1({key:A$1(),domain:A$1()}),bS=I$1({key:A$1()}),xS=I$1({domain:jm}),SS=I$1({domains:F$1(jm)}),CS=I$1({domain:A$1()});var wS={list:v$1.route({method:`GET`,path:`/teams/{key}/domains`,summary:`List team domains`,tags:[`Team Domains`]}).input(bS.strict()).output(SS),create:v$1.route({method:`POST`,path:`/teams/{key}/domains`,summary:`Create team custom domain`,tags:[`Team Domains`]}).input(vS.strict()).output(xS),get:v$1.route({method:`GET`,path:`/teams/{key}/domains/{domain}`,summary:`Get team domain status`,tags:[`Team Domains`]}).input(yS.strict()).output(xS),remove:v$1.route({method:`DELETE`,path:`/teams/{key}/domains/{domain}`,summary:`Remove team custom domain`,tags:[`Team Domains`]}).input(yS.strict()).output(CS),setPrimary:v$1.route({method:`POST`,path:`/teams/{key}/domains/{domain}/primary`,summary:`Set primary team domain`,tags:[`Team Domains`]}).input(yS.strict()).output(xS),canonical:v$1.route({method:`GET`,path:`/teams/{key}/domains/canonical`,summary:`Get canonical team domain`,tags:[`Team Domains`]}).input(gS.strict()).output(_S)};const TS=I$1({id:bc.readonly().meta({description:`Unique identifier for the team member`}),createdAt:O$1().readonly().meta({description:`Timestamp in ISO 8601 format when the member was created`}),updatedAt:O$1().readonly().meta({description:`Timestamp in ISO 8601 format when the member was last updated`}),teamId:oc.meta({description:`Team this member belongs to`}),userId:lc.meta({description:`User ID of the team member`}),user:I$1({id:lc.meta({description:`Unique identifier of the user`}),email:Mo().meta({description:`Email address of the user`}),firstName:A$1().meta({description:`First name of the user`}),lastName:A$1().meta({description:`Last name of the user`}),imageUrl:A$1().optional().meta({description:`Profile image URL of the user`})}).meta({description:`Denormalized user details for quick access without additional queries.`}),permissions:F$1(il).optional().meta({description:`Base permissions across the team. Can be overridden per promoter or venue. Undefined means no base permissions (permissions come from PermissionScope only).`,examples:[[`event.read`,`event.write`,`order.read`],[`team.member.read`,`team.member.write`],[`ticket.scan`],[`*`]]}),roleIds:F$1(A$1()).optional().meta({description:`Role IDs assigned to this team member. Effective permissions are derived from role nodes plus explicit permission nodes.`}),isOwner:P$1().meta({description:`Whether this member is the owner of the team. Only one owner per team is allowed. Owner has full control and cannot be deleted.`}),tenantId:A$1().readonly().meta({description:`Tenant ID for multi-tenant isolation`})}).meta({description:`Active team member with base permissions. Permissions can be overridden per promoter or venue. Created when a user accepts an invitation or is directly added to a team.`}),ES=I$1({member:TS});var DS={list:v$1.route({method:`GET`,path:`/teams/{key}/invites`,summary:`List pending team invitations with cursor-based pagination`,description:`Returns pending team invitations for a specific team. Team key can be ID or slug. These are email-based invitations that have not yet been accepted.`,tags:[`Team Invites`]}).input(eS.strict()).output(tS),get:v$1.route({method:`GET`,path:`/teams/{key}/invites/{inviteId}`,summary:`Get pending invitation by ID`,description:`Retrieve a pending team invitation by its ID. Team key can be ID or slug.`,tags:[`Team Invites`]}).input($x.strict()).output(nS),create:v$1.route({method:`POST`,path:`/teams/{key}/invites`,summary:`Create a team invitation`,description:`Invite a user to join a team by email. Team key can be ID or slug. Creates a pending invitation with a secure token that expires in 7 days. The invited user will receive an email with an acceptance link.`,tags:[`Team Invites`]}).input(Qx.strict()).output(nS),accept:v$1.route({method:`PATCH`,path:`/teams/{key}/invites/{inviteId}`,summary:`Accept a team invitation`,description:`Accept a pending team invitation using the secure token. Team key can be ID or slug. This deletes the invitation and creates an active TeamMember record. Returns the newly created team member.`,tags:[`Team Invites`]}).input(Vx.strict()).output(ES),resend:v$1.route({method:`POST`,path:`/teams/{key}/invites/{inviteId}/resend`,summary:`Resend invitation email`,description:`Resend the invitation email with a new token and extended expiry. Team key can be ID or slug. Useful when the original invitation has expired or was not received.`,tags:[`Team Invites`]}).input($x.strict()).output(nS),cancel:v$1.route({method:`DELETE`,path:`/teams/{key}/invites/{inviteId}`,summary:`Cancel a pending invitation`,description:`Cancel a pending team invitation before it is accepted. Team key can be ID or slug. Deletes the invitation record.`,tags:[`Team Invites`]}).input(Zx.strict()).output(nS)},OS={connect:v$1.route({method:`POST`,path:`/teams/{key}/payment/connect`,summary:`Initiate payment processor connection`,description:`Start the OAuth flow to connect a team's payment processor account. Returns an authorization URL to redirect the user to the payment provider's OAuth page. The OAuth callback is handled directly by the payment gateway.`,tags:[`Team Payments`]}).input(oS.strict()).output(sS),disconnect:v$1.route({method:`POST`,path:`/teams/{key}/payment/disconnect`,summary:`Disconnect payment processor`,description:`Remove the payment processor connection from a team. Future ticket sales will use the platform account. Only the team owner can disconnect the payment processor.`,tags:[`Team Payments`]}).input(cS.strict()).output(Ux)};const kS=TS.omit({id:true,tenantId:true,createdAt:true,updatedAt:true,user:true,teamId:true,permissions:true}).extend({key:A$1().meta({description:`Team identifier (ID or slug)`}),roleIds:F$1(A$1()).min(1).meta({description:`Role IDs assigned to this team member.`})}).meta({description:`Schema for adding an existing user to a team. Requires userId of an existing user account.`}),AS=I$1({key:A$1().meta({description:`Team identifier (ID or slug)`}),userId:A$1().meta({description:`User ID of the team member to retrieve`})}),jS=I$1({key:A$1().meta({description:`Team identifier (ID or slug)`}),query:A$1().optional().meta({description:`Search query to filter members by name or email. Case-insensitive partial match`}),limit:Mc(`team members`),cursor:A$1().optional().meta({description:`Pagination cursor from previous response. Used to fetch next page of results`})}).meta({description:`Query parameters for listing active team members with pagination and search`}),MS=G$2(TS,`members`),NS=I$1({key:A$1().meta({description:`Team identifier (ID or slug)`}),newOwnerId:A$1().meta({description:`Team member ID of the new owner. This member must already exist with ACTIVE status.`})}).meta({description:`Schema for transferring team ownership from the current owner to another active team member.`}),PS=I$1({previousOwner:TS.meta({description:"The previous owner (now a regular member with owner-equivalent access, typically via `*`)"}),newOwner:TS.meta({description:`The new owner (now has isOwner: true)`})}).meta({description:`Response payload for team ownership transfer operation`}),FS=I$1({id:A$1().meta({description:`Team member ID to update`}),roleIds:F$1(A$1()).min(1).meta({description:`Replace role assignments for this team member with the provided role IDs.`}),isOwner:P$1().optional().meta({description:`Whether this team member is an owner of the team`})}).meta({description:`Schema for updating team member roles. Cannot update teamId, userId, or owner status.`});const LS=v$1.route({method:`GET`,path:`/teams/{key}/members/{userId}`,summary:`Get team member by user ID`,description:`Retrieve a team member using the team key (ID or slug) and user ID`,tags:[`Team Members`]}).input(AS.strict()).output(ES),RS=v$1.route({method:`GET`,path:`/teams/{key}/members`,summary:`List team members with cursor-based pagination`,description:`Returns active team members for a specific team with cursor pagination. Team key can be ID or slug. For pending invitations, use the team invites endpoint instead.`,tags:[`Team Members`]}).input(jS.strict()).output(MS),zS=v$1.route({method:`POST`,path:`/teams/{key}/members`,summary:`Add an existing user to a team`,description:`Directly add an existing user to a team. Team key can be ID or slug. Requires at least one role ID. To invite a new user by email, use the team invites endpoint instead.`,tags:[`Team Members`]}).input(kS.strict()).output(ES),BS=v$1.route({method:`PATCH`,path:`/teams/{key}/members/{userId}`,summary:`Update a team member's roles`,description:`Update an existing active team member. Team key can be ID or slug. Replaces role assignments. Cannot modify isOwner (use transfer endpoint instead).`,tags:[`Team Members`]}).input(FS.extend({key:A$1(),userId:A$1()}).strict()).output(ES),VS=v$1.route({method:`DELETE`,path:`/teams/{key}/members/{userId}`,summary:`Remove a team member`,description:`Remove an active member from a team. Team key can be ID or slug. Cannot remove the team owner (transfer ownership first). To cancel pending invitations, use the team invites endpoint.`,tags:[`Team Members`]}).input(AS.strict()).output(ES),HS=v$1.route({method:`POST`,path:`/teams/{key}/transfer`,summary:`Transfer team ownership`,description:"Transfer team ownership from the current owner to another active member. Team key can be ID or slug. Only the current owner can perform this action. Previous owner retains owner-equivalent access (typically via `*`) but loses isOwner status.",tags:[`Team Members`]}).input(NS.strict()).output(PS);var US={get:LS,list:RS,create:zS,update:BS,remove:VS,transfer:HS};const WS=L$1([`ALL`,`COUNTRY`,`STATE`,`CITY`,`VENUE`]),GS=I$1({id:A$1(),name:A$1(),slug:A$1(),kind:WS,parentId:A$1().optional(),latitude:M$1().optional(),longitude:M$1().optional(),radius:M$1().optional(),enabled:P$1(),order:M$1(),zoom:M$1().optional(),heroImage:A$1().optional(),description:A$1().optional()}),KS=I$1({tenant:I$1({id:A$1(),name:A$1(),slug:A$1(),adminTeamId:A$1(),legacyTenantsToTeams:Ss(A$1(),A$1()).optional(),features:Ss(A$1(),P$1()).optional(),defaultCurrency:A$1(),logo:I$1({email:I$1({src:A$1(),width:M$1(),height:M$1()}),website:I$1({src:A$1(),width:M$1(),height:M$1()})}),baseUrl:I$1({dev:A$1().optional(),production:A$1().optional()}),publicBaseUrl:I$1({dev:A$1().optional(),sandbox:A$1().optional(),production:A$1().optional()}).optional()}),regions:F$1(GS)}),qS=I$1({regions:F$1(GS)}),JS=I$1({teamId:A$1().optional()}),YS=I$1({counts:I$1({teams:P$1(),promoters:P$1(),venues:P$1(),events:P$1(),payouts:P$1()})}),XS=v$1.route({method:`GET`,path:`/tenant/config`,summary:`Get tenant configuration`,tags:[`Tenant`],description:`Returns tenant configuration including features and regions. Requires x-tenant-id header.`}).output(KS),ZS=v$1.route({method:`GET`,path:`/tenant/regions`,summary:`Get tenant regions`,tags:[`Tenant`],description:`Returns available regions for the tenant. Requires x-tenant-id header.`}).output(qS);var QS={approvals:v$1.route({method:`GET`,path:`/tenant/approvals`,summary:`Get tenant approval badges`,tags:[`Tenant`],description:`Returns lightweight booleans for pending approvals. Requires tenant admin access.`}).input(JS).output(YS),config:XS,regions:ZS};const $S=I$1({id:A$1().meta({examples:[x$1.Admission.id],description:`Admission ID reference`}),name:A$1().meta({examples:[`VIP Access`,`General Admission`,`Early Bird`],description:`Admission type name at time of purchase`}),price:I$1({base:M$1().meta({description:`Base price in smallest currency unit (cents)`}),booking:M$1().meta({description:`Booking fee in smallest currency unit (cents)`}),currency:A$1().meta({examples:[`USD`,`EUR`,`GBP`],description:`ISO 4217 currency code`})}).meta({description:`Price snapshot at time of purchase`}),entryStartsAt:U$2.meta({description:`Wall clock time when ticket holder can enter (no timezone, displays same everywhere)`}),entryEndsAt:U$2.meta({description:`Wall clock time when entry period ends (no timezone, displays same everywhere)`})}).meta({description:`Admission details for this ticket`}),eC=I$1({firstName:A$1().trim().min(1).meta({examples:[x$1.Customer.firstName],description:`First name of the ticket attendee`}),lastName:A$1().trim().min(1).meta({examples:[x$1.Customer.lastName],description:`Last name of the ticket attendee`}),email:Mo().meta({examples:[x$1.Customer.email],description:`Email address of the ticket attendee`}),phone:A$1().meta({examples:[x$1.Customer.phone],description:`Phone number of the ticket attendee (optional)`}).optional()}).meta({description:`Attendee information for a ticket - can be edited by tenant admins. Defaults to the order customer details when ticket is created.`}),tC=I$1({id:A$1().meta({examples:[x$1.Event.id],description:`Event ID reference`}),name:A$1().meta({examples:[x$1.Event.name],description:`The title of the event shown to attendees`}),slug:A$1().meta({examples:[x$1.Event.slug],description:`URL-friendly identifier for the event`}),location:Ip.meta({description:`Structured location details for the event`}),entryStartsAt:U$2.meta({examples:[x$1.Event.entryStartsAt],description:`Wall clock time when event entry begins (no timezone, displays same everywhere)`}),entryEndsAt:U$2.meta({examples:[x$1.Event.entryEndsAt],description:`Wall clock time when event entry ends (no timezone, displays same everywhere)`}),images:I$1({mobile:H$2.meta({description:`Mobile-optimized image for the event`}),desktop:H$2.meta({description:`Desktop-optimized image for the event`})})}).meta({description:`Event details for this ticket`}),nC=I$1({id:A$1().meta({examples:[x$1.User.id],description:`Unique identifier of the user who performed the ticket scan`}),firstName:A$1().meta({examples:[x$1.User.firstName],description:`First name of the user who performed the scan`}),lastName:A$1().meta({examples:[x$1.User.lastName],description:`Last name of the user who performed the scan`}),email:Mo().meta({examples:[x$1.User.email],description:`Email address of the user who performed the scan`})}).meta({description:`Information about the user who scanned a ticket`}),rC=L$1([`CHECK_IN`,`CHECK_OUT`]),aC=I$1({id:A$1().meta({examples:[x$1.TicketScan.id],description:`Unique identifier of the ticket scan record`}),scannedAt:O$1().readonly().meta({examples:[x$1.TicketScan.scannedAt],description:`Timestamp when the ticket was scanned in ISO 8601 format`}),scannedById:A$1().meta({examples:[x$1.TicketScan.scannedById],description:`Unique identifier of the user who performed the scan`}),scannedBy:nC.meta({description:`Detailed information about the user who performed the scan`}),deviceId:A$1().meta({examples:[x$1.TicketScan.deviceId],description:`Unique identifier of the device used for scanning`}),kind:rC.meta({examples:[`CHECK_IN`],description:`Type of scan operation: CHECK_IN for entry, CHECK_OUT for exit`})}).meta({description:`Record of a ticket scan operation including when, who, and what type of scan`}),oC=I$1({id:A$1().meta({examples:[x$1.Section.id],description:`Section ID reference`}),name:A$1().meta({examples:[`Floor Section A`,`Balcony Left`,`VIP Lounge`],description:`Section name at time of purchase`}),location:I$1({name:A$1().meta({description:`Venue or location name`}),address:A$1().optional().meta({description:`Street address`}),city:A$1().optional().meta({description:`City name`}),state:A$1().optional().meta({description:`State or province`}),postcode:A$1().optional().meta({description:`Postal/ZIP code`}),country:A$1().optional().meta({description:`ISO country code`}),latitude:M$1().optional().meta({description:`Geographic latitude coordinate`}),longitude:M$1().optional().meta({description:`Geographic longitude coordinate`}),timeZone:A$1().optional().meta({examples:[`America/New_York`,`Europe/London`],description:`IANA timezone identifier`})}).meta({description:`Physical location details`})}).meta({description:`Section details for this ticket`}),sC=L$1([`ACTIVE`,`REDEEMED`,`CANCELLED`]),$$2=I$1({id:A$1().readonly().meta({examples:[x$1.Ticket.id],description:`Unique identifier for the ticket`}),createdAt:O$1().readonly().meta({examples:[x$1.Ticket.createdAt],description:`Timestamp when the ticket was created in ISO 8601 format`}),updatedAt:O$1().readonly().meta({examples:[x$1.Ticket.updatedAt],description:`Timestamp when the ticket was last updated in ISO 8601 format`}),scans:F$1(aC).meta({description:`Array of all scan records for this ticket (check-ins and check-outs)`}),status:sC.meta({examples:[`ACTIVE`],description:`Current status of the ticket: ACTIVE (can be used), REDEEMED (already used), CANCELLED (invalidated or refunded)`}),attendee:eC.meta({description:`Attendee information for this ticket - editable by tenant admins`}),customerId:hc.meta({examples:[x$1.Ticket.customerId],description:`Unique identifier of the customer who purchased this ticket (read-only)`}),eventId:V$1.meta({examples:[x$1.Ticket.eventId],description:`Unique identifier of the event this ticket grants access to`}),event:tC.meta({description:`Event details for this ticket`}),admissionId:gc.meta({examples:[x$1.Ticket.admissionId],description:`Unique identifier of the admission type/tier this ticket represents`}),admission:$S.meta({description:`Admission details for this ticket`}),section:oC.optional().meta({description:`Section details for this ticket (if assigned to a section)`}),orderId:uc.meta({examples:[x$1.Ticket.orderId],description:`Unique identifier of the order this ticket was purchased in`}),orderItemId:A$1().meta({examples:[x$1.Ticket.orderItemId],description:`Unique identifier of the specific order item this ticket represents (optional for legacy tickets)`}).optional(),teamId:oc.meta({examples:[x$1.Ticket.teamId],description:`Identifier of the team that owns this ticket`}),promoterId:fc.meta({examples:[x$1.Ticket.promoterId],description:`Unique identifier of the promoter/organizer who created this event`})}).meta({description:`A ticket represents a customer's admission to an event. It tracks the purchase, scanning history, and current status.`}),lC=I$1({kind:L$1([`CHECK_IN`,`CHECK_OUT`]).meta({description:`The most recent attendee scan action.`}),scannedAt:O$1().meta({description:`Timestamp for the most recent attendee scan.`})}),uC=L$1(`#ABCDEFGHIJKLMNOPQRSTUVWXYZ`.split(``)).meta({description:`Alpha navigation bucket key for attendee roster jumps.`}),dC=I$1({key:uC,count:R$1().int().min(0).meta({description:`Number of roster rows currently available in this bucket.`}),anchor:A$1().meta({description:`Server-issued bookmark for the first roster row in this bucket under the active filters.`})}),fC=$S.pick({id:true,name:true,entryEndsAt:true}),pC=oC.pick({id:true,name:true}),mC=I$1({id:dc.meta({examples:[x$1.Ticket.id],description:`Ticket identifier for this attendee roster row.`}),orderId:uc.meta({examples:[x$1.Ticket.orderId],description:`Order identifier used to navigate to order details.`}),status:sC.meta({description:`Current ticket status for the attendee row.`}),attendee:eC.meta({description:`Editable attendee identity fields for this ticket.`}),admission:fC.meta({description:`Admission snapshot needed for roster labels and expiry state.`}),section:pC.optional().meta({description:`Optional section label shown in the roster row.`}),lastScan:lC.optional().meta({description:`Most recent scan event for compact roster activity text.`}),lastCheckInAt:O$1().optional().meta({description:`Timestamp for the most recent check-in scan, used for checked-in labels.`})}),hC=I$1({eventId:V$1.meta({examples:[x$1.Event.id],description:`Event identifier for the attendee alpha index.`}),admissionIds:F$1(gc).optional().meta({examples:[[x$1.Admission.id]],description:`Optional admission filters used when computing available attendee buckets.`}),sectionIds:F$1(_c).optional().meta({examples:[[x$1.Section.id]],description:`Optional section filters used when computing available attendee buckets.`})}),gC=I$1({buckets:F$1(dC).meta({description:`Available attendee alpha buckets for the active filter set.`})}),_C=R$1().int().min(1).max(100).prefault(100).meta({examples:[100],description:`Maximum number of attendee roster rows to return per request (1-100, default: 100).`}),vC=I$1({eventId:V$1.meta({examples:[x$1.Event.id],description:`Event identifier for the attendee roster.`}),admissionIds:F$1(gc).optional().meta({examples:[[x$1.Admission.id]],description:`Optional admission filters. When provided, only matching ticket admissions are included.`}),sectionIds:F$1(_c).optional().meta({examples:[[x$1.Section.id]],description:`Optional section filters. When provided, only matching ticket sections are included.`}),query:A$1().optional().meta({examples:[`John`,`john@example.com`,`+61400000000`],description:`Optional attendee search query. Matches attendee name, email, and phone.`}),cursor:Nc.optional(),before:Nc.optional().meta({description:`Cursor for loading roster rows before the current window. Mutually exclusive with cursor and anchor.`}),anchor:A$1().optional().meta({description:`Server-issued bookmark used to jump to a roster bucket. Mutually exclusive with cursor and before.`}),limit:_C.optional()}),yC=G$2(mC,`tickets`),bC=$$2.pick({status:true,admissionId:true,orderItemId:true}).extend({orderId:A$1().meta({examples:[x$1.Order.id],description:`The order this ticket belongs to`}),customerId:A$1().meta({examples:[x$1.Customer.id],description:`The customer who purchased this ticket`}),attendee:eC.optional().meta({description:`Optional attendee information - defaults to order customer details if not provided`})}).meta({description:`Schema for creating a new ticket - caller provides minimal input; derived fields are populated by the service`}),xC=$$2.pick({id:true}).extend({signature:wl.optional().meta({description:`HMAC signature for public ticket access (16 characters, base64url encoded)`})}).meta({description:`Schema for retrieving a specific ticket by ID with optional signature validation`}),SC=I$1({promoterId:A$1().optional().meta({examples:[x$1.Promoter.id],description:`Filter tickets by promoter/organizer unique identifier (optional)`}),eventId:A$1().optional().meta({examples:[x$1.Event.id],description:`Filter tickets by event unique identifier (optional)`}),customerId:A$1().optional().meta({examples:[x$1.Customer.id],description:`Filter tickets by customer unique identifier (optional)`}),orderId:A$1().optional().meta({examples:[x$1.Order.id],description:`Filter tickets by order unique identifier (optional)`}),status:sC.optional().meta({examples:[`ACTIVE`],description:`Filter tickets by status: ACTIVE (can be used), REDEEMED (already used), CANCELLED (invalidated or refunded)`}),orderSignature:wl.optional().meta({description:`Order signature used to access tickets for a specific order without permissions (16 characters, base64url encoded)`}),query:A$1().optional().meta({examples:[`John Doe`],description:`Optional search query to filter tickets by customer details. When provided, search-backed pagination is used.`}),limit:Mc(`tickets`).optional(),cursor:A$1().optional().meta({examples:[`eyJpZCI6InRrdF8wMWpwczVjZ3NnMHMzMncycHI3M3ZiY2NkZSJ9`],description:`Pagination cursor for continuing to fetch subsequent results (optional)`})}).meta({description:`Schema for listing tickets with optional filtering, search, and cursor-based pagination`}),CC=G$2($$2,`tickets`),wC=I$1({ticket:$$2}),TC=$$2.pick({id:true,eventId:true}).extend({key:$$2.shape.id.meta({description:`Transition key. Supports canonical ticket IDs (tkt_*), order IDs (ord_*), and legacy Neon ticket IDs.`}),deviceId:$$2.shape.scans.element.shape.deviceId.optional().meta({description:`Unique identifier of the scanning device (optional).`}),eventId:$$2.shape.eventId.optional().meta({description:`Optional event scope guard for check-in transitions. When provided, check-in fails if the ticket/order event does not match.`}),allowPartialOrderCheckIn:P$1().optional().meta({description:`Confirms an order-level check-in when some tickets are already redeemed and some remain active.`})}).omit({id:true}).meta({description:`Schema for check-in/check-out transitions addressed by key, where key may resolve to a ticket, order, or legacy ticket identifier.`}),EC=L$1([`ticket`,`order`,`legacy`]),DC=L$1([`NOOP_TRANSITION`]),OC=L$1([`PARTIAL_ORDER_CONFIRMATION_REQUIRED`]),kC=L$1([`EVENT_MISMATCH`]),AC=I$1({id:$$2.shape.orderId,checkedInCount:M$1().int().nonnegative().optional(),items:F$1(I$1({quantity:M$1().int().positive()}))}),jC=tC.pick({id:true,name:true,slug:true,entryStartsAt:true}).extend({teamId:$$2.shape.teamId}),MC=I$1({reason:DC,kind:L$1([`CHECK_IN`,`CHECK_OUT`]),targetType:EC,order:AC.optional(),ticket:$$2.optional()}),NC=I$1({reason:kC,kind:L$1([`CHECK_IN`,`CHECK_OUT`]),targetType:EC,requestedEventId:$$2.shape.eventId.optional(),event:jC,order:AC.optional(),ticket:$$2.optional()}),PC=I$1({reason:OC,kind:Ts(`CHECK_IN`),targetType:Ts(`order`),order:AC,ticket:$$2.optional()}),FC=gs([MC,NC,PC]),IC=I$1({tickets:F$1($$2).meta({description:`Transition result tickets. Single-item array for ticket/legacy targets and full order tickets for order targets.`}),targetType:EC.meta({description:`Resolved target scope from the provided key.`}),order:AC.optional()}),LC=L$1([`ACTIVE`,`CANCELLED`]).describe(`Status updates allowed via PATCH: ACTIVE (reactivate), CANCELLED (void). REDEEMED is set via scan endpoint.`),RC=I$1({id:A$1().meta({examples:[x$1.Ticket.id],description:`Unique identifier of the ticket to update`}),status:LC.optional().meta({description:`Update ticket status: CANCELLED to void, ACTIVE to reactivate`}),attendee:eC.partial().nullable().optional().meta({description:`Attendee info. Pass object to set/update, null to clear, or omit to leave unchanged.`}),admissionId:A$1().optional().meta({examples:[x$1.Admission.id],description:`Change ticket type/admission (admission and section objects will be fetched from event and stored)`})}).meta({description:`Schema for updating a ticket.`}),zC=v$1.route({method:`GET`,path:`/tickets/{id}`,summary:`Get ticket by ID`,tags:[`Tickets`]}).input(xC.strict()).output(wC),BC=v$1.route({method:`POST`,path:`/tickets`,summary:`Create a new ticket`,tags:[`Tickets`]}).input(bC.strict()).output(wC),VC=v$1.route({method:`PUT`,path:`/tickets/{id}`,summary:`Update a ticket`,tags:[`Tickets`]}).input(RC.strict()).output(wC),HC=v$1.route({method:`GET`,path:`/tickets`,summary:`List tickets with cursor-based pagination`,description:"Returns ticket data with cursor-based pagination, optional full-text search via `query`, and a fixed attendee-name ascending order for non-search list paths.",tags:[`Tickets`]}).input(SC.strict()).output(CC),UC=v$1.route({method:`GET`,path:`/tickets/attendees`,summary:`List event attendees with alpha-navigation support`,description:`Returns ticket-backed attendee roster rows for an event. Supports bounded browsing, alpha jump bookmarks, and attendee search.`,tags:[`Tickets`]}).input(vC.strict()).output(yC),WC=v$1.route({method:`GET`,path:`/tickets/attendees/index`,summary:`Get attendee alpha-navigation buckets`,description:`Returns available alpha buckets and server-issued bookmarks for the ticket attendee roster.`,tags:[`Tickets`]}).input(hC.strict()).output(gC),GC=v$1.route({method:`PUT`,path:`/tickets/{key}/check-in`,summary:`Check in tickets by key`,tags:[`Tickets`]}).input(TC.strict()).errors({UNPROCESSABLE_ENTITY:{data:FC}}).output(IC),KC=v$1.route({method:`PUT`,path:`/tickets/{key}/check-out`,summary:`Check out tickets by key`,tags:[`Tickets`]}).input(TC.strict()).errors({UNPROCESSABLE_ENTITY:{data:FC}}).output(IC);var qC={get:zC,list:HC,attendees:{list:UC,index:WC},create:BC,update:VC,checkInByKey:GC,checkOutByKey:KC};const JC={id:x$1.User.id,createdAt:x$1.User.createdAt,updatedAt:x$1.User.updatedAt,email:x$1.User.email,firstName:x$1.User.firstName,lastName:x$1.User.lastName,imageUrl:`https://assets.session.services/examples/avatar.jpg`,tenantId:x$1.User.tenantId},YC=I$1({id:A$1().readonly().meta({description:`Unique identifier for the user`,examples:[x$1.User.id]}),createdAt:O$1().readonly().meta({description:`ISO 8601 timestamp when the user account was created`,examples:[x$1.User.createdAt]}),updatedAt:O$1().readonly().meta({description:`ISO 8601 timestamp when the user account was last updated`,examples:[x$1.User.updatedAt]}),email:Mo().meta({description:`User's email address, used for authentication and communication`,examples:[x$1.User.email]}),firstName:A$1().min(1).meta({description:`User's first name`,examples:[x$1.User.firstName]}),lastName:A$1().min(1).meta({description:`User's last name`,examples:[x$1.User.lastName]}),imageUrl:Io().optional().meta({description:`Optional URL to the user's profile image or avatar`,examples:[`https://assets.session.services/examples/avatar.jpg`]}),metadata:Ss(A$1(),Ac).optional().meta({description:`Arbitrary key-value metadata for storing user preferences and settings`,examples:[{"widgets:team_abc123":{visibleWidgets:[`revenue`]}}]})}).meta({ref:`User`,description:`User entity containing profile and audit information scoped to a specific tenant`,examples:[JC]}),XC=TS.meta({ref:`MeTeamMember`,description:`Team membership for the current user with denormalized user details and role-expanded team permissions.`}),ZC=I$1({access:A$1().meta({description:`JWT access token with updated user data`}),refresh:A$1().meta({description:`Refresh token for obtaining new access tokens`})}).meta({ref:`Tokens`,description:`Authentication tokens for client session management`}),QC=I$1({user:YC.meta({description:`The updated user profile`}),tokens:ZC.optional().meta({description:`New JWT tokens with updated user data. Present when refresh token was provided in request.`})}).meta({ref:`UserUpdateResponse`,description:`Response payload for PATCH /users/me containing the updated user profile.`}),$C=I$1({deleted:Ts(true).meta({description:`Whether the current user account was deleted.`})}).meta({ref:`UserDeleteResponse`,description:`Response payload for DELETE /users/me after deleting the current account.`}),ew=I$1({user:YC.nullable().meta({description:`Current authenticated user profile, null if not authenticated`}),isAdmin:P$1().meta({description:`Whether the current user has admin privileges for the tenant`}),members:F$1(XC).meta({description:`All team memberships for the current user within this tenant.`})}).meta({ref:`MeResponse`,description:`Response payload for GET /users/me providing the current user, tenant admin status, and team memberships.`,examples:[{user:{id:`usr_01k5hbpkfje048zccqmqfhjpep`,createdAt:`2025-09-19T16:07:46.418Z`,updatedAt:`2025-09-19T16:07:46.418Z`,email:`j@1f.io`,firstName:`Jay`,lastName:`McMullen`,imageUrl:`https://assets.session.services/examples/avatar.jpg`},isAdmin:true,members:[{id:`mbr_01jps5cgsec5ge0b1bxa6gzkkk`,createdAt:`2025-09-25T03:25:46.080Z`,updatedAt:`2025-09-25T03:25:46.080Z`,teamId:`tem_01jqpjksnsen9vprw95et60t2m`,userId:`usr_01k5hbpkfje048zccqmqfhjpep`,user:{id:`usr_01k5hbpkfje048zccqmqfhjpep`,email:`j@1f.io`,firstName:`Jay`,lastName:`McMullen`,imageUrl:`https://assets.session.services/examples/avatar.jpg`},permissions:[`*`],isOwner:true,tenantId:`tnt_01abc123`}]}]}),tw=v$1.route({method:`GET`,path:`/users/me`,summary:`Get the current user and their team memberships`,tags:[`Users`]}).output(ew),nw=I$1({firstName:A$1().min(1).optional(),lastName:A$1().min(1).optional(),imageUrl:Io().optional(),metadata:Ss(A$1(),Ac).optional(),refreshToken:A$1().optional().meta({description:`Current refresh token. When provided, new tokens with updated user data will be returned.`})}).meta({ref:`UpdateUserInput`,description:`Input for updating the current user's profile`}),rw=v$1.route({method:`PATCH`,path:`/users/me`,summary:`Update the current user's profile`,tags:[`Users`]}).input(nw).output(QC);var iw={me:tw,remove:v$1.route({method:`DELETE`,path:`/users/me`,summary:`Delete the current user's account`,tags:[`Users`]}).output($C),update:rw};const aw=I$1({id:A$1().readonly().meta({description:`Unique identifier for the venue`}),createdAt:O$1().readonly().meta({description:`Timestamp in ISO 8601 format when the venue was created`}),updatedAt:O$1().readonly().meta({description:`Timestamp in ISO 8601 format when the venue was last updated`}),teamId:A$1().meta({description:`Team that manages this venue`}),locationId:cc.meta({examples:[`loc_01h2xk3j9k8m2n5p7q9r1s3t4v`],description:`Location identifier for this venue`}),googlePlaceId:A$1().optional().meta({examples:[`ChIJP3Sa8ziYEmsRUKgyFmh9AQM`],description:`Google Place ID when this venue is linked to a Google Places location`}),approval:Qs.meta({examples:[`APPROVED`],description:`Approval status of the venue`}),name:A$1().min(3).max(100).meta({description:`Display name of the venue. Must be between 3 and 100 characters`}),slug:A$1().min(3).meta({description:`URL-friendly slug for the venue. Must be unique within tenant`}),description:A$1().max(500).optional().meta({description:`Short description of the venue for listings and discovery`}),image:H$2.optional().meta({description:`Venue image`}),contact:I$1({email:Mo().optional().meta({description:`Public contact email for venue inquiries`}),phone:A$1().optional().meta({description:`Public contact phone number`}),website:Io().optional().meta({description:`Venue website URL`}),instagram:A$1().optional().meta({description:`Instagram profile URL`}),facebook:A$1().optional().meta({description:`Facebook page URL`}),twitter:A$1().optional().meta({description:`Twitter/X profile URL`}),tiktok:A$1().optional().meta({description:`TikTok profile URL`}),youtube:A$1().optional().meta({description:`YouTube channel URL`})}).optional().meta({description:`Public contact information and social media links`}),location:Ip.omit({venueId:true}).meta({description:`Physical location details including address, coordinates, and timezone`}),geohash:A$1().meta({description:`Geohash encoding of the venue's location for efficient spatial queries`}),capacity:M$1().int().min(1).optional().meta({description:`Maximum capacity of the venue (number of attendees)`}),metadata:jc,deletedAt:O$1().readonly().optional().meta({description:`Timestamp in ISO 8601 format when the venue was soft-deleted. Null if not deleted`}),tenantId:A$1().readonly().meta({description:`Tenant ID for multi-tenant isolation`})}).meta({description:`Managed venue with custom branding and details. Teams can claim venues which then appear in location search results.`}),ow=aw.omit({id:true,tenantId:true,createdAt:true,updatedAt:true,geohash:true,deletedAt:true,location:true,googlePlaceId:true,approval:true}).extend({slug:A$1().min(3).optional().meta({description:`URL-friendly slug for the venue. If not provided, will be automatically generated from the name. Must be unique within tenant`})}).meta({description:`Schema for creating a new venue. The system automatically derives location details and Google Place ID from the locationId`}),sw=I$1({key:A$1().min(1).meta({description:`Venue key - either a unique ID (ven_xxx format) or URL-friendly slug`,examples:[x$1.Venue.id,x$1.Venue.slug]})}),cw=I$1({key:A$1().meta({examples:[x$1.Venue.id,x$1.Venue.slug],description:`Venue key - either a unique ID (ven_xxx format) or URL-friendly slug`})}),lw=I$1({teamId:A$1().optional().meta({description:`Filter venues by owner team ID`}),approval:Qs.optional().meta({description:`Filter venues by approval status. PENDING: awaiting review, APPROVED: can be used for events, REJECTED: cannot be used`}),query:A$1().optional().meta({description:`Optional search query for filtering venues by name or slug`}),latitude:R$1().min(-90).max(90).optional().meta({description:`Latitude for location-based search. Must be used with longitude`}),longitude:R$1().min(-180).max(180).optional().meta({description:`Longitude for location-based search. Must be used with latitude`}),radius:R$1().min(1).max(2e4).optional().meta({description:`Search radius in kilometers (1-20000). Requires latitude and longitude`}),limit:Mc(`venues`),cursor:A$1().optional().meta({description:`Pagination cursor from previous response. Used to fetch next page of results`})}).meta({description:`Query parameters for listing venues with pagination, filtering, and location-based search`}),uw=G$2(aw,`venues`).meta({description:`Paginated response containing venues with cursor for next page`}),dw=I$1({venue:aw}),fw=aw.omit({id:true,tenantId:true,teamId:true,createdAt:true,updatedAt:true,deletedAt:true,geohash:true}).partial().extend({key:A$1().meta({examples:[x$1.Venue.id,x$1.Venue.slug],description:`Venue key - either a unique ID (ven_xxx format) or URL-friendly slug`}),description:A$1().max(500).nullable().optional().meta({description:`Short description of the venue. Pass null to clear, omit to leave unchanged.`}),image:H$2.nullable().optional().meta({description:`Venue image. Pass null to clear, omit to leave unchanged.`}),capacity:M$1().int().min(1).nullable().optional().meta({description:`Maximum capacity. Pass null to clear, omit to leave unchanged.`}),contact:I$1({email:Mo().optional(),phone:A$1().optional(),website:Io().optional(),instagram:A$1().optional(),facebook:A$1().optional(),twitter:A$1().optional(),tiktok:A$1().optional(),youtube:A$1().optional()}).nullable().optional().meta({description:`Contact information. Pass null to clear all contact fields, omit to leave unchanged.`}),googlePlaceId:A$1().nullable().optional().meta({description:`Google Place ID. Pass null to unlink from Google Places, omit to leave unchanged.`})}).meta({description:`Schema for updating an existing venue. Cannot change teamId (owner). Pass null to clear optional fields.`}),pw={analytics:Jf,beneficiary:Zf,section:Bx,event:gm,eventCollaborator:Em,admission:qf,order:zy,ticket:qC,internal:Lm,location:Um,coupon:Dp,payout:Nb,teams:bx,permissionScope:Gb,promoter:Ix,team:hS,teamDomain:wS,teamInvite:DS,teamPayment:OS,teamMember:US,tenant:QS,venue:{get:v$1.route({method:`GET`,path:`/venues/{key}`,summary:`Get venue by ID or slug`,description:`Retrieve a venue using its unique ID or slug`,tags:[`Venues`]}).input(cw.strict()).output(dw),list:v$1.route({method:`GET`,path:`/venues`,summary:`List venues with cursor-based pagination`,description:`Returns venues with cursor pagination. Supports filtering by team, location-based search, and text query`,tags:[`Venues`]}).input(lw.strict()).output(uw),create:v$1.route({method:`POST`,path:`/venues`,summary:`Create a new venue`,description:`Create a new venue. Venue will be owned by the specified team but can be used by all teams for their events`,tags:[`Venues`]}).input(ow.strict()).output(dw),update:v$1.route({method:`PATCH`,path:`/venues/{key}`,summary:`Update a venue`,description:`Update an existing venue. Cannot change venue ownership (teamId)`,tags:[`Venues`]}).input(fw.strict()).output(dw),remove:v$1.route({method:`DELETE`,path:`/venues/{key}`,summary:`Delete a venue`,description:`Soft delete a venue`,tags:[`Venues`]}).input(sw.strict()).output(dw),linkLocation:v$1.route({method:`POST`,path:`/venues/{key}/locations`,summary:`Link location to venue`,description:"Link a location to this venue. Allows the venue to be discovered when users search for this location. A venue can have multiple linked locations (e.g., different addresses, branded names). Requires venue access on the owning team (for example, `venue.write`).",tags:[`Venues`]}).input(cw.extend({locationKey:A$1().meta({description:`Location ID (loc_xxx) or Google Place ID to link to this venue`,examples:[`loc_01jps5cgsm7qxvh6watsons0eq`,`ChIJP3Sa8ziYEmsRUKgyFmh9AQM`]})}).strict()).output(dw),unlinkLocation:v$1.route({method:`DELETE`,path:`/venues/{key}/locations/{locationKey}`,summary:`Unlink location from venue`,description:"Remove a location link from this venue. The location will no longer show this venue's branding. Requires venue access on the owning team (for example, `venue.write`).",tags:[`Venues`]}).input(cw.extend({locationKey:A$1().meta({description:`Location ID (loc_xxx) or Google Place ID to unlink from this venue`,examples:[`loc_01jps5cgsm7qxvh6watsons0eq`,`ChIJP3Sa8ziYEmsRUKgyFmh9AQM`]})}).strict()).output(dw)},user:iw},mw=L$1([`ORDER`]).meta({description:`Aggregate type this notification belongs to`}),hw=L$1([`ORDER_CONFIRMATION`,`ORDER_REMINDER`,`ORDER_CANCELLATION`,`ORDER_TIME_CHANGE`,`ORDER_VENUE_CHANGE`,`ORDER_TIME_AND_VENUE_CHANGE`]).meta({description:`Notification kind`}),gw=L$1([`SMS`,`EMAIL`]).meta({description:`Delivery channel`}),_w=L$1([`PENDING`,`PROCESSING`,`SENT`,`DELIVERED`,`FAILED`,`CANCELLED`]).meta({description:`Current notification status`});I$1({id:Tc.meta({examples:[x$1.Notification.id],description:`Unique notification identifier`}),createdAt:O$1().readonly().meta({examples:[x$1.Notification.createdAt],description:`Timestamp when notification was created`}),updatedAt:O$1().readonly().meta({examples:[x$1.Notification.updatedAt],description:`Timestamp when notification was last updated`}),aggregateType:mw.meta({examples:[x$1.Notification.aggregateType]}),aggregateId:uc.meta({examples:[x$1.Notification.aggregateId],description:`Aggregate identifier (order ID for ORDER notifications)`}),eventId:V$1.optional().meta({examples:[x$1.Notification.eventId],description:`Associated event identifier when applicable`}),kind:hw.meta({examples:[x$1.Notification.kind]}),channel:gw.meta({examples:[x$1.Notification.channel]}),status:_w.meta({examples:[x$1.Notification.status]}),providerMessageId:A$1().optional().meta({examples:[x$1.Notification.providerMessageId],description:`Provider message identifier`}),sentAt:O$1().optional().meta({examples:[x$1.Notification.sentAt],description:`Timestamp when provider accepted send request`}),deliveredAt:O$1().optional().meta({examples:[x$1.Notification.deliveredAt],description:`Timestamp when provider confirmed delivery`}),failedAt:O$1().optional().meta({examples:[x$1.Notification.failedAt],description:`Timestamp when notification failed`}),failureCode:A$1().optional().meta({examples:[x$1.Notification.failureCode],description:`Failure code when notification is FAILED`}),failureReason:A$1().optional().meta({examples:[x$1.Notification.failureReason],description:`Failure reason when notification is FAILED`})}).meta({description:`Notification delivery record`});I$1({id:bc.meta({description:`Team member ID to delete`})});
|
|
50
|
-
|
|
51
|
-
var
|
|
36
|
+
`);}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return (t,n)=>s(e,t,n)},a,o=Qt,s=!Rt.jitless,c=s&&$t.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===false&&f.jitless!==true?(a||=i(t.shape),d=a(d,f),l?bi([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)};});function Ci(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!hn(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>vn(e,r,zt())))}),t)}const wi=x$1(`$ZodUnion`,(e,t)=>{T$1.init(e,t),S$1(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),S$1(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),S$1(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),S$1(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>Wt(e.source)).join(`|`)})$`)}});let n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(i,a)=>{if(n)return r(i,a);let o=false,s=[];for(let e of t.options){let t=e._zod.run({value:i.value,issues:[]},a);if(t instanceof Promise)s.push(t),o=true;else {if(t.issues.length===0)return t;s.push(t);}}return o?Promise.all(s).then(t=>Ci(t,i,e,a)):Ci(s,i,e,a)};}),Ti=x$1(`$ZodDiscriminatedUnion`,(e,t)=>{wi.init(e,t);let n=e._zod.parse;S$1(e._zod,`propValues`,()=>{let e={};for(let n of t.options){let r=n._zod.propValues;if(!r||Object.keys(r).length===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let[t,n]of Object.entries(r)){e[t]||(e[t]=new Set);for(let r of n)e[t].add(r);}}return e});let r=Ht(()=>{let e=t.options,n=new Map;for(let r of e){let e=r._zod.propValues?.[t.discriminator];if(!e||e.size===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let t of e){if(n.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);n.set(t,r);}}return n});e._zod.parse=(i,a)=>{let o=i.value;if(!Qt(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=r.value.get(o?.[t.discriminator]);return s?s._zod.run(i,a):t.unionFallback?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,input:o,path:[t.discriminator],inst:e}),i)};}),Ei=x$1(`$ZodIntersection`,(e,t)=>{T$1.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>Oi(e,t,n)):Oi(e,i,a)};});function Di(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return {valid:true,data:e};if(en(e)&&en(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=Di(e[n],t[n]);if(!r.valid)return {valid:false,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data;}return {valid:true,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return {valid:false,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=Di(i,a);if(!o.valid)return {valid:false,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data);}return {valid:true,data:n}}return {valid:false,mergeErrorPath:[]}}function Oi(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),hn(e))return e;let r=Di(t.value,n.value);if(!r.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return e.value=r.data,e}const ki=x$1(`$ZodRecord`,(e,t)=>{T$1.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!en(i))return n.issues.push({expected:`record`,code:`invalid_type`,input:i,inst:e}),n;let a=[],o=t.keyType._zod.values;if(o){n.value={};let s=new Set;for(let e of o)if(typeof e==`string`||typeof e==`number`||typeof e==`symbol`){s.add(typeof e==`number`?e.toString():e);let o=t.valueType._zod.run({value:i[e],issues:[]},r);o instanceof Promise?a.push(o.then(t=>{t.issues.length&&n.issues.push(...gn(e,t.issues)),n.value[e]=t.value;})):(o.issues.length&&n.issues.push(...gn(e,o.issues)),n.value[e]=o.value);}let c;for(let e in i)s.has(e)||(c??=[],c.push(e));c&&c.length>0&&n.issues.push({code:`unrecognized_keys`,input:i,inst:e,keys:c});}else {n.value={};for(let o of Reflect.ownKeys(i)){if(o===`__proto__`)continue;let s=t.keyType._zod.run({value:o,issues:[]},r);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(s.issues.length){n.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>vn(e,r,zt())),input:o,path:[o],inst:e}),n.value[s.value]=s.value;continue}let c=t.valueType._zod.run({value:i[o],issues:[]},r);c instanceof Promise?a.push(c.then(e=>{e.issues.length&&n.issues.push(...gn(o,e.issues)),n.value[s.value]=e.value;})):(c.issues.length&&n.issues.push(...gn(o,c.issues)),n.value[s.value]=c.value);}}return a.length?Promise.all(a).then(()=>n):n};}),Ai=x$1(`$ZodEnum`,(e,t)=>{T$1.init(e,t);let n=Bt(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>nn.has(typeof e)).map(e=>typeof e==`string`?rn(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t};}),ji=x$1(`$ZodLiteral`,(e,t)=>{if(T$1.init(e,t),t.values.length===0)throw Error(`Cannot create literal schema with no valid values`);let n=new Set(t.values);e._zod.values=n,e._zod.pattern=RegExp(`^(${t.values.map(e=>typeof e==`string`?rn(e):e?rn(e.toString()):String(e)).join(`|`)})$`),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r};}),Mi=x$1(`$ZodTransform`,(e,t)=>{T$1.init(e,t),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new Lt(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return (i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n));if(i instanceof Promise)throw new It;return n.value=i,n};});function Ni(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const Pi=x$1(`$ZodOptional`,(e,t)=>{T$1.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,S$1(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),S$1(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${Wt(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>Ni(t,e.value)):Ni(r,e.value)}return e.value===void 0?e:t.innerType._zod.run(e,n)};}),Fi=x$1(`$ZodNullable`,(e,t)=>{T$1.init(e,t),S$1(e._zod,`optin`,()=>t.innerType._zod.optin),S$1(e._zod,`optout`,()=>t.innerType._zod.optout),S$1(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${Wt(e.source)}|null)$`):void 0}),S$1(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n);}),Ii=x$1(`$ZodDefault`,(e,t)=>{T$1.init(e,t),e._zod.optin=`optional`,S$1(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>Li(e,t)):Li(r,t)};});function Li(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const Ri=x$1(`$ZodPrefault`,(e,t)=>{T$1.init(e,t),e._zod.optin=`optional`,S$1(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n));}),zi=x$1(`$ZodNonOptional`,(e,t)=>{T$1.init(e,t),S$1(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>Bi(t,e)):Bi(i,e)};});function Bi(e,t){return !e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}const Vi=x$1(`$ZodCatch`,(e,t)=>{T$1.init(e,t),S$1(e._zod,`optin`,()=>t.innerType._zod.optin),S$1(e._zod,`optout`,()=>t.innerType._zod.optout),S$1(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>vn(e,n,zt()))},input:e.value}),e.issues=[]),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>vn(e,n,zt()))},input:e.value}),e.issues=[]),e)};}),Hi=x$1(`$ZodPipe`,(e,t)=>{T$1.init(e,t),S$1(e._zod,`values`,()=>t.in._zod.values),S$1(e._zod,`optin`,()=>t.in._zod.optin),S$1(e._zod,`optout`,()=>t.out._zod.optout),S$1(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>Ui(e,t.in,n)):Ui(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>Ui(e,t.out,n)):Ui(r,t.out,n)};});function Ui(e,t,n){return e.issues.length?(e.aborted=true,e):t._zod.run({value:e.value,issues:e.issues},n)}const Wi=x$1(`$ZodReadonly`,(e,t)=>{T$1.init(e,t),S$1(e._zod,`propValues`,()=>t.innerType._zod.propValues),S$1(e._zod,`values`,()=>t.innerType._zod.values),S$1(e._zod,`optin`,()=>t.innerType?._zod?.optin),S$1(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(Gi):Gi(r)};});function Gi(e){return e.value=Object.freeze(e.value),e}const Ki=x$1(`$ZodLazy`,(e,t)=>{T$1.init(e,t),S$1(e._zod,`innerType`,()=>t.getter()),S$1(e._zod,`pattern`,()=>e._zod.innerType?._zod?.pattern),S$1(e._zod,`propValues`,()=>e._zod.innerType?._zod?.propValues),S$1(e._zod,`optin`,()=>e._zod.innerType?._zod?.optin??void 0),S$1(e._zod,`optout`,()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n);}),qi=x$1(`$ZodCustom`,(e,t)=>{w$1.init(e,t),T$1.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>Ji(t,n,r,e));Ji(i,n,r,e);};});function Ji(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(bn(e));}}var Yi,Xi=class{constructor(){this._map=new WeakMap,this._idmap=new Map;}add(e,...t){let n=t[0];if(this._map.set(e,n),n&&typeof n==`object`&&`id`in n){if(this._idmap.has(n.id))throw Error(`ID ${n.id} already exists in the registry`);this._idmap.set(n.id,e);}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function Zi(){return new Xi}(Yi=globalThis).__zod_globalRegistry??(Yi.__zod_globalRegistry=Zi());const Qi=globalThis.__zod_globalRegistry;function $i(e,t){return new e({type:`string`,...C$1(t)})}function ea(e,t){return new e({type:`string`,coerce:true,...C$1(t)})}function ta(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:false,...C$1(t)})}function na(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:false,...C$1(t)})}function ra(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:false,...C$1(t)})}function ia(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:false,version:`v4`,...C$1(t)})}function aa(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:false,version:`v6`,...C$1(t)})}function oa(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:false,version:`v7`,...C$1(t)})}function sa(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:false,...C$1(t)})}function ca(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:false,...C$1(t)})}function la(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:false,...C$1(t)})}function ua(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:false,...C$1(t)})}function da(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:false,...C$1(t)})}function fa(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:false,...C$1(t)})}function pa(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:false,...C$1(t)})}function ma(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:false,...C$1(t)})}function ha(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:false,...C$1(t)})}function ga(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:false,...C$1(t)})}function _a(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:false,...C$1(t)})}function va(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:false,...C$1(t)})}function ya(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:false,...C$1(t)})}function ba(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:false,...C$1(t)})}function xa(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:false,...C$1(t)})}function Sa(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:false,...C$1(t)})}function Ca(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:false,local:false,precision:null,...C$1(t)})}function wa(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...C$1(t)})}function Ta(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...C$1(t)})}function Ea(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...C$1(t)})}function Da(e,t){return new e({type:`number`,checks:[],...C$1(t)})}function Oa(e,t){return new e({type:`number`,coerce:true,checks:[],...C$1(t)})}function ka(e,t){return new e({type:`number`,check:`number_format`,abort:false,format:`safeint`,...C$1(t)})}function Aa(e,t){return new e({type:`boolean`,...C$1(t)})}function ja(e,t){return new e({type:`boolean`,coerce:true,...C$1(t)})}function Ma(e,t){return new e({type:`null`,...C$1(t)})}function Na(e){return new e({type:`any`})}function Pa(e){return new e({type:`unknown`})}function Fa(e,t){return new e({type:`never`,...C$1(t)})}function Ia(e,t){return new e({type:`void`,...C$1(t)})}function La(e,t){return new e({type:`date`,...C$1(t)})}function Ra(e,t){return new _r({check:`less_than`,...C$1(t),value:e,inclusive:false})}function za(e,t){return new _r({check:`less_than`,...C$1(t),value:e,inclusive:true})}function Ba(e,t){return new vr({check:`greater_than`,...C$1(t),value:e,inclusive:false})}function Va(e,t){return new vr({check:`greater_than`,...C$1(t),value:e,inclusive:true})}function Ha(e,t){return new yr({check:`multiple_of`,...C$1(t),value:e})}function Ua(e,t){return new xr({check:`max_length`,...C$1(t),maximum:e})}function Wa(e,t){return new Sr({check:`min_length`,...C$1(t),minimum:e})}function Ga(e,t){return new Cr({check:`length_equals`,...C$1(t),length:e})}function Ka(e,t){return new Tr({check:`string_format`,format:`regex`,...C$1(t),pattern:e})}function qa(e){return new Er({check:`string_format`,format:`lowercase`,...C$1(e)})}function Ja(e){return new Dr({check:`string_format`,format:`uppercase`,...C$1(e)})}function Ya(e,t){return new Or({check:`string_format`,format:`includes`,...C$1(t),includes:e})}function Xa(e,t){return new kr({check:`string_format`,format:`starts_with`,...C$1(t),prefix:e})}function Za(e,t){return new Ar({check:`string_format`,format:`ends_with`,...C$1(t),suffix:e})}function Qa(e){return new jr({check:`overwrite`,tx:e})}function $a(e){return Qa(t=>t.normalize(e))}function eo(){return Qa(e=>e.trim())}function to(){return Qa(e=>e.toLowerCase())}function no(){return Qa(e=>e.toUpperCase())}function ro(){return Qa(e=>Xt(e))}function io(e,t,n){return new e({type:`array`,element:t,...C$1(n)})}function ao(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...C$1(n)})}function oo(e){let t=so(n=>(n.addIssue=e=>{if(typeof e==`string`)n.issues.push(bn(e,n.value,t._zod.def));else {let r=e;r.fatal&&(r.continue=false),r.code??=`custom`,r.input??=n.value,r.inst??=t,r.continue??=!t._zod.def.abort,n.issues.push(bn(r));}},e(n.value,n)));return t}function so(e,t){let n=new w$1({check:`custom`,...C$1(t)});return n._zod.check=e,n}const co=x$1(`ZodISODateTime`,(e,t)=>{Kr.init(e,t),A$1.init(e,t);});function D$1(e){return Ca(co,e)}const lo=x$1(`ZodISODate`,(e,t)=>{qr.init(e,t),A$1.init(e,t);});function uo(e){return wa(lo,e)}const fo=x$1(`ZodISOTime`,(e,t)=>{Jr.init(e,t),A$1.init(e,t);});function po(e){return Ta(fo,e)}const mo=x$1(`ZodISODuration`,(e,t)=>{Yr.init(e,t),A$1.init(e,t);});function ho(e){return Ea(mo,e)}const go=(e,t)=>{Sn.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>Tn(e,t)},flatten:{value:t=>wn(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,Vt,2);}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,Vt,2);}},isEmpty:{get(){return e.issues.length===0}}});};x$1(`ZodError`,go);const _o=x$1(`ZodError`,go,{Parent:Error}),vo=En(_o),yo=Dn(_o),bo=On(_o),xo=An(_o),So=Mn(_o),Co=Nn(_o),wo=Pn(_o),To=Fn(_o),Eo=In(_o),Do=Ln(_o),Oo=Rn(_o),ko=zn(_o),O$1=x$1(`ZodType`,(e,t)=>(T$1.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,`_def`,{value:t}),e.check=(...n)=>e.clone(Jt(t,{checks:[...t.checks??[],...n.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]})),e.clone=(t,n)=>an(e,t,n),e.brand=()=>e,e.register=((t,n)=>(t.add(e,n),e)),e.parse=(t,n)=>vo(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>bo(e,t,n),e.parseAsync=async(t,n)=>yo(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>xo(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>So(e,t,n),e.decode=(t,n)=>Co(e,t,n),e.encodeAsync=async(t,n)=>wo(e,t,n),e.decodeAsync=async(t,n)=>To(e,t,n),e.safeEncode=(t,n)=>Eo(e,t,n),e.safeDecode=(t,n)=>Do(e,t,n),e.safeEncodeAsync=async(t,n)=>Oo(e,t,n),e.safeDecodeAsync=async(t,n)=>ko(e,t,n),e.refine=(t,n)=>e.check(Js(t,n)),e.superRefine=t=>e.check(Ys(t)),e.overwrite=t=>e.check(Qa(t)),e.optional=()=>As(e),e.nullable=()=>Ms(e),e.nullish=()=>As(Ms(e)),e.nonoptional=t=>Rs(e,t),e.array=()=>P$1(e),e.or=t=>_s([e,t]),e.and=t=>xs(e,t),e.transform=t=>Hs(e,Os(t)),e.default=t=>Ps(e,t),e.prefault=t=>Is(e,t),e.catch=t=>Bs(e,t),e.pipe=t=>Hs(e,t),e.readonly=()=>Ws(e),e.describe=t=>{let n=e.clone();return Qi.add(n,{description:t}),n},Object.defineProperty(e,`description`,{get(){return Qi.get(e)?.description},configurable:true}),e.meta=(...t)=>{if(t.length===0)return Qi.get(e);let n=e.clone();return Qi.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),Ao=x$1(`_ZodString`,(e,t)=>{Pr.init(e,t),O$1.init(e,t);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...t)=>e.check(Ka(...t)),e.includes=(...t)=>e.check(Ya(...t)),e.startsWith=(...t)=>e.check(Xa(...t)),e.endsWith=(...t)=>e.check(Za(...t)),e.min=(...t)=>e.check(Wa(...t)),e.max=(...t)=>e.check(Ua(...t)),e.length=(...t)=>e.check(Ga(...t)),e.nonempty=(...t)=>e.check(Wa(1,...t)),e.lowercase=t=>e.check(qa(t)),e.uppercase=t=>e.check(Ja(t)),e.trim=()=>e.check(eo()),e.normalize=(...t)=>e.check($a(...t)),e.toLowerCase=()=>e.check(to()),e.toUpperCase=()=>e.check(no()),e.slugify=()=>e.check(ro());}),jo=x$1(`ZodString`,(e,t)=>{Pr.init(e,t),Ao.init(e,t),e.email=t=>e.check(ta(Mo,t)),e.url=t=>e.check(sa(Io,t)),e.jwt=t=>e.check(Sa(Qo,t)),e.emoji=t=>e.check(ca(Ro,t)),e.guid=t=>e.check(na(Po,t)),e.uuid=t=>e.check(ra(Fo,t)),e.uuidv4=t=>e.check(ia(Fo,t)),e.uuidv6=t=>e.check(aa(Fo,t)),e.uuidv7=t=>e.check(oa(Fo,t)),e.nanoid=t=>e.check(la(zo,t)),e.guid=t=>e.check(na(Po,t)),e.cuid=t=>e.check(ua(Bo,t)),e.cuid2=t=>e.check(da(Vo,t)),e.ulid=t=>e.check(fa(Ho,t)),e.base64=t=>e.check(ya(Yo,t)),e.base64url=t=>e.check(ba(Xo,t)),e.xid=t=>e.check(pa(Uo,t)),e.ksuid=t=>e.check(ma(Wo,t)),e.ipv4=t=>e.check(ha(Go,t)),e.ipv6=t=>e.check(ga(Ko,t)),e.cidrv4=t=>e.check(_a(qo,t)),e.cidrv6=t=>e.check(va(Jo,t)),e.e164=t=>e.check(xa(Zo,t)),e.datetime=t=>e.check(D$1(t)),e.date=t=>e.check(uo(t)),e.time=t=>e.check(po(t)),e.duration=t=>e.check(ho(t));});function k$1(e){return $i(jo,e)}const A$1=x$1(`ZodStringFormat`,(e,t)=>{E$1.init(e,t),Ao.init(e,t);}),Mo=x$1(`ZodEmail`,(e,t)=>{Lr.init(e,t),A$1.init(e,t);});function No(e){return ta(Mo,e)}const Po=x$1(`ZodGUID`,(e,t)=>{Fr.init(e,t),A$1.init(e,t);}),Fo=x$1(`ZodUUID`,(e,t)=>{Ir.init(e,t),A$1.init(e,t);}),Io=x$1(`ZodURL`,(e,t)=>{Rr.init(e,t),A$1.init(e,t);});function Lo(e){return sa(Io,e)}const Ro=x$1(`ZodEmoji`,(e,t)=>{zr.init(e,t),A$1.init(e,t);}),zo=x$1(`ZodNanoID`,(e,t)=>{Br.init(e,t),A$1.init(e,t);}),Bo=x$1(`ZodCUID`,(e,t)=>{Vr.init(e,t),A$1.init(e,t);}),Vo=x$1(`ZodCUID2`,(e,t)=>{Hr.init(e,t),A$1.init(e,t);}),Ho=x$1(`ZodULID`,(e,t)=>{Ur.init(e,t),A$1.init(e,t);}),Uo=x$1(`ZodXID`,(e,t)=>{Wr.init(e,t),A$1.init(e,t);}),Wo=x$1(`ZodKSUID`,(e,t)=>{Gr.init(e,t),A$1.init(e,t);}),Go=x$1(`ZodIPv4`,(e,t)=>{Xr.init(e,t),A$1.init(e,t);}),Ko=x$1(`ZodIPv6`,(e,t)=>{Zr.init(e,t),A$1.init(e,t);}),qo=x$1(`ZodCIDRv4`,(e,t)=>{Qr.init(e,t),A$1.init(e,t);}),Jo=x$1(`ZodCIDRv6`,(e,t)=>{$r.init(e,t),A$1.init(e,t);}),Yo=x$1(`ZodBase64`,(e,t)=>{ti.init(e,t),A$1.init(e,t);}),Xo=x$1(`ZodBase64URL`,(e,t)=>{ri.init(e,t),A$1.init(e,t);}),Zo=x$1(`ZodE164`,(e,t)=>{ii.init(e,t),A$1.init(e,t);}),Qo=x$1(`ZodJWT`,(e,t)=>{oi.init(e,t),A$1.init(e,t);}),$o=x$1(`ZodNumber`,(e,t)=>{si.init(e,t),O$1.init(e,t),e.gt=(t,n)=>e.check(Ba(t,n)),e.gte=(t,n)=>e.check(Va(t,n)),e.min=(t,n)=>e.check(Va(t,n)),e.lt=(t,n)=>e.check(Ra(t,n)),e.lte=(t,n)=>e.check(za(t,n)),e.max=(t,n)=>e.check(za(t,n)),e.int=t=>e.check(M$1(t)),e.safe=t=>e.check(M$1(t)),e.positive=t=>e.check(Ba(0,t)),e.nonnegative=t=>e.check(Va(0,t)),e.negative=t=>e.check(Ra(0,t)),e.nonpositive=t=>e.check(za(0,t)),e.multipleOf=(t,n)=>e.check(Ha(t,n)),e.step=(t,n)=>e.check(Ha(t,n)),e.finite=()=>e;let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=true,e.format=n.format??null;});function j$1(e){return Da($o,e)}const es=x$1(`ZodNumberFormat`,(e,t)=>{ci.init(e,t),$o.init(e,t);});function M$1(e){return ka(es,e)}const ts=x$1(`ZodBoolean`,(e,t)=>{li.init(e,t),O$1.init(e,t);});function N$1(e){return Aa(ts,e)}const ns=x$1(`ZodNull`,(e,t)=>{ui.init(e,t),O$1.init(e,t);});function rs(e){return Ma(ns,e)}const is=x$1(`ZodAny`,(e,t)=>{di.init(e,t),O$1.init(e,t);});function as(){return Na(is)}const os=x$1(`ZodUnknown`,(e,t)=>{fi.init(e,t),O$1.init(e,t);});function ss(){return Pa(os)}const cs=x$1(`ZodNever`,(e,t)=>{pi.init(e,t),O$1.init(e,t);});function ls(e){return Fa(cs,e)}const us=x$1(`ZodVoid`,(e,t)=>{mi.init(e,t),O$1.init(e,t);});function ds(e){return Ia(us,e)}const fs=x$1(`ZodDate`,(e,t)=>{hi.init(e,t),O$1.init(e,t),e.min=(t,n)=>e.check(Va(t,n)),e.max=(t,n)=>e.check(za(t,n));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null;});function ps(e){return La(fs,e)}const ms=x$1(`ZodArray`,(e,t)=>{_i.init(e,t),O$1.init(e,t),e.element=t.element,e.min=(t,n)=>e.check(Wa(t,n)),e.nonempty=t=>e.check(Wa(1,t)),e.max=(t,n)=>e.check(Ua(t,n)),e.length=(t,n)=>e.check(Ga(t,n)),e.unwrap=()=>e.element;});function P$1(e,t){return io(ms,e,t)}const hs=x$1(`ZodObject`,(e,t)=>{Si.init(e,t),O$1.init(e,t),S$1(e,`shape`,()=>t.shape),e.keyof=()=>I$1(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:ss()}),e.loose=()=>e.clone({...e._zod.def,catchall:ss()}),e.strict=()=>e.clone({...e._zod.def,catchall:ls()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>un(e,t),e.safeExtend=t=>dn(e,t),e.merge=t=>fn(e,t),e.pick=t=>cn(e,t),e.omit=t=>ln(e,t),e.partial=(...t)=>pn(ks,e,t[0]),e.required=(...t)=>mn(Ls,e,t[0]);});function F$1(e,t){return new hs({type:`object`,shape:e??{},...C$1(t)})}const gs=x$1(`ZodUnion`,(e,t)=>{wi.init(e,t),O$1.init(e,t),e.options=t.options;});function _s(e,t){return new gs({type:`union`,options:e,...C$1(t)})}const vs=x$1(`ZodDiscriminatedUnion`,(e,t)=>{gs.init(e,t),Ti.init(e,t);});function ys(e,t,n){return new vs({type:`union`,options:t,discriminator:e,...C$1(n)})}const bs=x$1(`ZodIntersection`,(e,t)=>{Ei.init(e,t),O$1.init(e,t);});function xs(e,t){return new bs({type:`intersection`,left:e,right:t})}const Ss=x$1(`ZodRecord`,(e,t)=>{ki.init(e,t),O$1.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType;});function Cs(e,t,n){return new Ss({type:`record`,keyType:e,valueType:t,...C$1(n)})}const ws=x$1(`ZodEnum`,(e,t)=>{Ai.init(e,t),O$1.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new ws({...t,checks:[],...C$1(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new ws({...t,checks:[],...C$1(r),entries:i})};});function I$1(e,t){return new ws({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...C$1(t)})}const Ts=x$1(`ZodLiteral`,(e,t)=>{ji.init(e,t),O$1.init(e,t),e.values=new Set(t.values),Object.defineProperty(e,`value`,{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}});});function Es(e,t){return new Ts({type:`literal`,values:Array.isArray(e)?e:[e],...C$1(t)})}const Ds=x$1(`ZodTransform`,(e,t)=>{Mi.init(e,t),O$1.init(e,t),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new Lt(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(bn(r,n.value,t));else {let t=r;t.fatal&&(t.continue=false),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(bn(t));}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)};});function Os(e){return new Ds({type:`transform`,transform:e})}const ks=x$1(`ZodOptional`,(e,t)=>{Pi.init(e,t),O$1.init(e,t),e.unwrap=()=>e._zod.def.innerType;});function As(e){return new ks({type:`optional`,innerType:e})}const js=x$1(`ZodNullable`,(e,t)=>{Fi.init(e,t),O$1.init(e,t),e.unwrap=()=>e._zod.def.innerType;});function Ms(e){return new js({type:`nullable`,innerType:e})}const Ns=x$1(`ZodDefault`,(e,t)=>{Ii.init(e,t),O$1.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap;});function Ps(e,t){return new Ns({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():tn(t)}})}const Fs=x$1(`ZodPrefault`,(e,t)=>{Ri.init(e,t),O$1.init(e,t),e.unwrap=()=>e._zod.def.innerType;});function Is(e,t){return new Fs({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():tn(t)}})}const Ls=x$1(`ZodNonOptional`,(e,t)=>{zi.init(e,t),O$1.init(e,t),e.unwrap=()=>e._zod.def.innerType;});function Rs(e,t){return new Ls({type:`nonoptional`,innerType:e,...C$1(t)})}const zs=x$1(`ZodCatch`,(e,t)=>{Vi.init(e,t),O$1.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap;});function Bs(e,t){return new zs({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}const Vs=x$1(`ZodPipe`,(e,t)=>{Hi.init(e,t),O$1.init(e,t),e.in=t.in,e.out=t.out;});function Hs(e,t){return new Vs({type:`pipe`,in:e,out:t})}const Us=x$1(`ZodReadonly`,(e,t)=>{Wi.init(e,t),O$1.init(e,t),e.unwrap=()=>e._zod.def.innerType;});function Ws(e){return new Us({type:`readonly`,innerType:e})}const Gs=x$1(`ZodLazy`,(e,t)=>{Ki.init(e,t),O$1.init(e,t),e.unwrap=()=>e._zod.def.getter();});function Ks(e){return new Gs({type:`lazy`,getter:e})}const qs=x$1(`ZodCustom`,(e,t)=>{qi.init(e,t),O$1.init(e,t);});function Js(e,t={}){return ao(qs,e,t)}function Ys(e){return oo(e)}function Xs(e,t){return Hs(Os(e),t)}function Zs(e){return ea(jo,e)}function L$1(e){return Oa($o,e)}function Qs(e){return ja(ts,e)}const $s=I$1([`PENDING`,`APPROVED`,`REJECTED`]).meta({description:`Approval status. PENDING: awaiting review, APPROVED: approved for operation, REJECTED: rejected and cannot operate`}),tc=`AED.ALL.AMD.ANG.AOA.ARS.AUD.AWG.AZN.BAM.BBD.BDT.BGN.BHD.BIF.BMD.BND.BOB.BRL.BSD.BTN.BWP.BZD.CAD.CHF.CLP.CNY.COP.CRC.CVE.CZK.DJF.DKK.DOP.DZD.EGP.ERN.ETB.EUR.FJD.FKP.GBP.GEL.GHS.GIP.GMD.GNF.GTQ.GYD.HKD.HNL.HUF.IDR.ILS.INR.ISK.JMD.JOD.JPY.KES.KGS.KHR.KMF.KRW.KWD.KYD.KZT.LAK.LBP.LKR.LRD.LSL.LYD.MAD.MDL.MGA.MKD.MNT.MOP.MUR.MVR.MWK.MXN.MYR.NAD.NGN.NIO.NOK.NPR.NZD.OMR.PAB.PEN.PGK.PHP.PKR.PLN.PYG.QAR.RON.RSD.RWF.SAR.SBD.SCR.SEK.SGD.SHP.SLE.SRD.SVC.SZL.THB.TJS.TMT.TND.TOP.TRY.TTD.TWD.TZS.UAH.UGX.USD.UYU.UZS.VND.VUV.WST.XAF.XCD.XOF.XPF.ZAR.ZMW.ZWL`.split(`.`),R$1=I$1(tc).meta({examples:[`AUD`],description:`Three-letter ISO 4217 currency code for transactions and payouts`}),nc=I$1([{category:`Day Party`,group:`Event Type`,priority:`core`,notes:`Daytime or afternoon-focused event, often starting before evening and ending earlier than club nights; common signals include "day party", "day sesh", "Sunday session", "afternoon", "sunset", "courtyard", "rooftop", "poolside" or "open air".`},{category:`Festival`,group:`Event Type`,priority:`core`,notes:`Large-scale event with multiple artists, stages, areas, brands or sessions; may run all day, across multiple days, or as a major ticketed programme; match terms like "festival", "lineup", "multi-stage", "weekender", "one-day festival" or "camping".`},{category:`Afterparty`,group:`Event Type`,priority:`high`,notes:`Post-main-event continuation, usually late-night or early-morning, often tied to a festival, concert, gig, show, launch or headline act; match "official afterparty", "after party", "kick-ons", "continue the night" or "late-night session".`},{category:`Boat Party`,group:`Event Type`,priority:`high`,notes:`Event held on a boat, yacht, harbour cruise or floating venue; strong signals include "boat party", "cruise", "harbour", "on the water", "boarding time", "sailing", "wharf", "dock" or "yacht".`},{category:`Pool Party`,group:`Event Type`,priority:`high`,notes:`Party centred around a pool, resort, hotel or swim-friendly venue; usually daytime or summer-focused; match "pool party", "poolside", "swimwear", "cabana", "resort", "hotel pool", "daybed" or "summer session".`},{category:`Live Performance`,group:`Event Type`,priority:`high`,notes:`Event includes live acts, bands, vocalists, instrumentalists or live electronic performance rather than only DJ sets; match "live", "live set", "performing live", "band", "vocalist", "singer", "instrumental", "live show" or "concert".`},{category:`Warehouse`,group:`Venue Type`,priority:`core`,notes:`Industrial, raw or repurposed warehouse-style venue; often underground, large-room, concrete, late-night or rave-oriented; match "warehouse", "industrial space", "secret warehouse", "inner west warehouse", "factory", "converted space" or "underground location".`},{category:`Open Air`,group:`Venue Type`,priority:`core`,notes:`Outdoor event in an uncovered or partly outdoor setting; match "open air", "outdoor", "under the sky", "courtyard", "garden", "terrace", "park", "field", "amphitheatre" or "sunset session".`},{category:`Rooftop`,group:`Venue Type`,priority:`high`,notes:`Event held on a rooftop, terrace or elevated city-view venue; often summer, sunset, cocktail or skyline-focused; match "rooftop", "terrace", "skyline", "city views", "above the city", "sunset rooftop" or "open-air rooftop".`},{category:`Beach Party`,group:`Venue Type`,priority:`high`,notes:`Coastal, beachfront or seaside event; may be on the sand, near the beach, at a beach club or coastal venue; match "beach party", "beachfront", "seaside", "coastal", "on the sand", "ocean views" or "beach club".`},{category:`Secret Location`,group:`Venue Type`,priority:`high`,notes:`Venue is hidden, TBA, revealed later or sent only to ticket holders; common in underground, warehouse and rave events; match "secret location", "TBA", "location revealed", "address released", "SMS location" or "ticket holders only".`},{category:`DIY`,group:`Venue Type`,priority:`medium`,notes:`Independent, self-organised or non-traditional event, often in unconventional spaces, bush settings or community-run venues; match "DIY", "bush doof", "renegade", "self-organised", "community-run", "off-grid" or "independent party".`},{category:`Basement`,group:`Venue Type`,priority:`medium`,notes:`Small, low-ceiling, underground or downstairs venue; usually intimate, dark, club-focused or late-night; match "basement", "cellar", "downstairs", "underground room", "low ceiling" or "intimate club room".`},{category:`Free Entry`,group:`Entry`,priority:`core`,notes:`No ticket or cover charge required to attend; match "free entry", "free event", "no cover", "free before", "RSVP free", "complimentary entry" or "walk-ins welcome". Do not confuse with free RSVP if paid entry may still apply.`},{category:`Donation`,group:`Entry`,priority:`medium`,notes:`Entry is by donation, pay-what-you-can or voluntary contribution rather than a fixed ticket price; match "donation", "pay what you want", "PWYW", "suggested donation", "gold coin" or "contribute at the door".`},{category:`Vinyl Only`,group:`Music`,priority:`high`,notes:`DJs perform using vinyl records only, usually signalling collector, selector, audiophile or purist culture; match "vinyl only", "all vinyl", "records only", "turntables", "wax", "crate diggers" or "strictly vinyl".`},{category:`Silent Disco`,group:`Music`,priority:`medium`,notes:`Attendees listen through wireless headphones rather than a traditional speaker system; often multiple channels or DJs; match "silent disco", "headphone party", "wireless headphones", "choose your channel" or "multi-channel headphones".`},{category:`Underground`,group:`Vibe`,priority:`high`,notes:`Non-mainstream, independent or subcultural event with raw, niche, alternative or anti-commercial positioning; match "underground", "leftfield", "subculture", "no frills", "raw", "for the heads", "heads only" or "off the beaten path".`},{category:`Intimate`,group:`Vibe`,priority:`high`,notes:`Small-capacity, close-quarters or personal event; often limited tickets, small room, listening bar or community feel; match "intimate", "limited capacity", "small room", "close and personal", "cosy", "private" or "exclusive".`},{category:`Queer Friendly`,group:`Vibe`,priority:`high`,notes:`Event explicitly welcomes, centres or is safe for LGBTQI+ communities; match "queer", "LGBTQI+", "LGBTQIA+", "gay", "trans inclusive", "rainbow community", "queer-friendly" or "queer party". Use when identity/community focus is explicit.`},{category:`FLINTA`,group:`Vibe`,priority:`high`,notes:`Event explicitly centres or welcomes women, lesbians, intersex, non-binary, trans and agender people; match "FLINTA", "FLINTA*", "women and gender diverse", "trans and non-binary", "femme-led" or "gender-diverse community".`},{category:`Safe Space`,group:`Vibe`,priority:`high`,notes:`Event emphasises inclusion, consent, harm minimisation, anti-harassment or community safety policies; match "safe space", "safer space", "consent policy", "zero tolerance", "harm reduction", "inclusive space" or "respectful dancefloor".`},{category:`No Photos`,group:`Vibe`,priority:`medium`,notes:`Event discourages or bans photography/video to protect privacy, immersion or dancefloor culture; match "no photos", "no filming", "no cameras", "phone stickers", "camera policy", "be present" or "respect the dancefloor".`},{category:`Rave`,group:`Vibe`,priority:`high`,notes:`High-energy dance event rooted in rave culture; often late-night, warehouse, underground, fast, heavy or euphoric; match "rave", "all-night", "warehouse rave", "doof", "hard dance", "strobe", "lasers" or "rave culture".`},{category:`BYO`,group:`Amenities`,priority:`core`,notes:`Attendees can or must bring their own alcohol, drinks or supplies; match "BYO", "bring your own", "bring drinks", "no bar", "esky", "cooler", "bottle shop run" or "self-catered drinks".`},{category:`Cash Only`,group:`Amenities`,priority:`medium`,notes:`Venue, bar, door or stall accepts cash but not card payments; match "cash only", "bring cash", "no EFTPOS", "no card", "cash at the door" or "ATM nearby".`},{category:`Card Only`,group:`Amenities`,priority:`medium`,notes:`Venue, bar, door or stall is cashless and accepts card or digital payments only; match "card only", "cashless", "no cash", "tap only", "EFTPOS only" or "card payments only".`},{category:`Food Available`,group:`Amenities`,priority:`medium`,notes:`Food is available at or near the event through vendors, kitchen, food trucks or venue menu; match "food available", "food trucks", "kitchen open", "snacks", "menu", "vendors", "street food" or "dinner available".`},{category:`Dress Code`,group:`Other`,priority:`high`,notes:`Event requires, encourages or enforces specific clothing, theme, footwear or presentation; match "dress code", "strict dress code", "theme", "costume", "black tie", "no thongs", "collared shirts", "dress to impress" or "entry may be refused".`}].map(e=>e.category)),rc=P$1(nc).max(10).optional().meta({description:`Event characteristics like vibe, venue type, and amenities (up to 10 categories)`,examples:[[`Day Party`,`Open Air`,`Free Entry`]]}),ic=I$1([{genre:`House`,category:`House`,priority:`core`,notes:`Broad 4/4 dance music rooted in Chicago house; warm grooves, steady kicks, club-focused; use when event says house music generally without a clear subgenre.`},{genre:`Deep House`,category:`House`,priority:`core`,notes:`Smooth, warm, soulful or jazzy house; deeper basslines, softer drums, slower club tempo; often described as intimate, sophisticated, sunset, lounge or underground.`},{genre:`Tech House`,category:`House`,priority:`core`,notes:`Groovy house with techno-influenced drums, rolling basslines, minimal vocals and big club energy; common in Ibiza, festivals, commercial underground and peak-time club events.`},{genre:`Progressive House`,category:`House`,priority:`core`,notes:`Melodic house with long builds, emotional breakdowns and gradual progression; often associated with mainstage, euphoric, cinematic or journey-style sets.`},{genre:`Minimal House`,category:`House`,priority:`core`,notes:`Stripped-back, repetitive house with sparse percussion, subtle grooves and restrained arrangements; common in European club, afterhours and vinyl-focused events.`},{genre:`Romanian Minimal`,category:`House`,priority:`core`,notes:`Hypnotic, micro-detailed minimal house/techno linked to Romania; long-form grooves, subtle swing, deep rolling bass, afterhours, vinyl, underground and "ro-minimal" wording.`},{genre:`Afro House`,category:`House`,priority:`core`,notes:`House music with African percussion, polyrhythms, chants, soulful vocals and warm melodic grooves; often spiritual, organic, sunset, beach club or global house oriented.`},{genre:`Afro Tech`,category:`House`,priority:`core`,notes:`Darker, tougher and more electronic Afro House; heavier drums, driving bass, tribal percussion and peak-time club energy; sits between Afro House and melodic techno.`},{genre:`Acid House`,category:`House`,priority:`high`,notes:`House built around squelchy Roland TB-303 acid basslines; raw, psychedelic, ravey or retro Chicago/UK warehouse references.`},{genre:`Funky House`,category:`House`,priority:`high`,notes:`Upbeat, feel-good house with funk, disco samples, bass guitar grooves, bright hooks and party-friendly energy; often vocal, summery or nostalgic.`},{genre:`Jackin House`,category:`House`,priority:`high`,notes:`Bouncy Chicago-style house with shuffled drums, chunky grooves, cut-up samples and playful energy; often raw, funky, loop-based and dancefloor-driven.`},{genre:`Soulful House`,category:`House`,priority:`medium`,notes:`Vocal-led house with gospel, soul and R&B influence; rich chords, emotional vocals, uplifting messages and warm classic house feel.`},{genre:`Melodic House`,category:`House`,priority:`high`,notes:`Modern melodic, emotional house with polished production, arpeggios, atmospheric pads and deep/progressive feel; often Anjunadeep, sunset, rooftop or organic club energy.`},{genre:`Latin House`,category:`House`,priority:`medium`,notes:`House with Latin percussion, Spanish or Portuguese vocals, salsa, samba, reggaeton or Afro-Latin rhythmic influence; upbeat, percussive and dancefloor-friendly.`},{genre:`Techno`,category:`Techno`,priority:`core`,notes:`Broad 4/4 electronic club music rooted in Detroit and Berlin; repetitive, mechanical, driving, hypnotic or warehouse-focused; use when techno is named without a clearer subtype.`},{genre:`Melodic Techno`,category:`Techno`,priority:`core`,notes:`Emotional, cinematic techno with big synth melodies, arpeggios, dark builds and dramatic drops; often Afterlife, Tale Of Us, lasers, visuals or large-room events.`},{genre:`Hard Techno`,category:`Techno`,priority:`core`,notes:`Fast, aggressive techno with pounding kicks, distorted drums, high energy and rave/warehouse intensity; often 145+ BPM and associated with modern hard rave trends.`},{genre:`Industrial Techno`,category:`Techno`,priority:`high`,notes:`Dark, harsh techno with distorted kicks, metallic percussion, noise textures and warehouse or dystopian aesthetics; more abrasive than standard techno.`},{genre:`Minimal Techno`,category:`Techno`,priority:`high`,notes:`Stripped-back techno built from repetition, subtle changes, sparse drums and hypnotic grooves; less melodic and more mechanical than minimal house.`},{genre:`Detroit Techno`,category:`Techno`,priority:`medium`,notes:`Techno rooted in Detroit's futuristic, soulful and machine-funk sound; classic, purist, historical or old-school techno references.`},{genre:`Dub Techno`,category:`Techno`,priority:`medium`,notes:`Deep techno with dub chords, echo, reverb, spacious atmospheres and slow hypnotic movement; often smoky, deep, aquatic or meditative.`},{genre:`Acid Techno`,category:`Techno`,priority:`medium`,notes:`Techno driven by squelchy 303 acid lines, looping percussion and rave energy; harder and more driving than acid house.`},{genre:`Hypnotic Techno`,category:`Techno`,priority:`medium`,notes:`Repetitive, deep, rolling techno designed for trance-like immersion; subtle loops, long blends, minimal melody and underground warehouse feel.`},{genre:`Drum & Bass`,category:`Bass`,priority:`core`,notes:`Fast breakbeat music around 160-180 BPM with heavy basslines and chopped drums; use for D&B, drum and bass, rollers, jump-up or bass-heavy rave events.`},{genre:`Jungle`,category:`Bass`,priority:`core`,notes:`Breakbeat-heavy precursor to D&B with chopped amen breaks, reggae/dub samples, ragga vocals and 90s UK rave energy.`},{genre:`Dubstep`,category:`Bass`,priority:`core`,notes:`Bass-heavy UK-origin genre around 140 BPM; half-time drums, sub-bass, wobble bass, dark atmospheres or aggressive drops.`},{genre:`Bass House`,category:`Bass`,priority:`core`,notes:`House-tempo club music with heavy bass drops, punchy drums and EDM/festival energy; blends house groove with dubstep or bass music sound design.`},{genre:`Breakbeat`,category:`Bass`,priority:`core`,notes:`Electronic music built on syncopated broken drum patterns instead of straight 4/4; often rave, electro, UK club, breaks or old-school references.`},{genre:`UK Garage`,category:`Bass`,priority:`core`,notes:`Skippy UK club music with swung 2-step rhythms, chopped vocals, sub-bass and soulful/R&B influence; often "UKG", "garage", "2-step" or "speed garage".`},{genre:`Bassline`,category:`Bass`,priority:`high`,notes:`UK 4x4 garage-derived bass music with warping basslines, fast club energy and playful vocal chops; often northern UK or speed garage adjacent.`},{genre:`Grime`,category:`Bass`,priority:`high`,notes:`UK rap and electronic bass hybrid around 140 BPM; MC-led, sparse beats, aggressive flows, eski sounds and London street culture references.`},{genre:`Liquid DnB`,category:`Bass`,priority:`medium`,notes:`Melodic, smooth and soulful drum & bass; rolling breaks, warm bass, vocals, pads and emotional or uplifting atmosphere.`},{genre:`Neurofunk`,category:`Bass`,priority:`medium`,notes:`Technical, dark and aggressive drum & bass with complex bass sound design, precise drums and futuristic, intense energy.`},{genre:`Footwork`,category:`Bass`,priority:`medium`,notes:`Fast Chicago club style around 160 BPM with syncopated kicks, chopped vocal samples and jittery rhythms; related to juke and dance battles.`},{genre:`Jersey Club`,category:`Bass`,priority:`medium`,notes:`Fast, bouncy US club music with chopped samples, triplet kick patterns and call-and-response energy; often party, dance challenge or club edit focused.`},{genre:`Trance`,category:`Trance`,priority:`core`,notes:`Euphoric electronic dance music with emotional melodies, long builds, breakdowns and big climaxes; often 90s, festival, uplifting or hands-in-the-air language.`},{genre:`Psytrance`,category:`Trance`,priority:`core`,notes:`Fast psychedelic trance with rolling basslines, hypnotic repetition, alien/psychedelic sound design and outdoor festival or doof culture references.`},{genre:`Progressive Trance`,category:`Trance`,priority:`high`,notes:`Smoother, slower trance with gradual melodic builds, deep atmospheres and less explosive drops than uplifting trance; often journey-based and emotional.`},{genre:`Disco`,category:`Disco`,priority:`core`,notes:`Classic dance music with live-sounding drums, strings, funk bass, soul vocals and 70s/80s references; use for retro disco, disco party or classic dance events.`},{genre:`Nu Disco`,category:`Disco`,priority:`core`,notes:`Modern electronic disco with polished production, house tempo, funk basslines, synths and retro dancefloor feel; often contemporary disco edits or poolside energy.`},{genre:`Italo Disco`,category:`Disco`,priority:`medium`,notes:`European 80s disco style with synth bass, drum machines, dramatic vocals and retro-futurist melodies; often Italian, cult, synth-heavy or nostalgic.`},{genre:`Funk`,category:`Disco`,priority:`high`,notes:`Groove-based music with syncopated bass, live drums, brass, guitars and rhythmic vocals; often party, rare groove, soul-funk or dancefloor classics.`},{genre:`Soul`,category:`Disco`,priority:`medium`,notes:`Vocal-focused music rooted in R&B, gospel and Motown traditions; emotional vocals, warm instrumentation and classic groove; may overlap with disco and house roots.`},{genre:`Balearic`,category:`Disco`,priority:`medium`,notes:`Eclectic Ibiza-influenced sound blending downtempo, disco, house, pop, world and chillout; sunset, beach, terrace, poolside or open-air language.`},{genre:`Hardcore`,category:`Hard Dance`,priority:`high`,notes:`Very fast, intense rave music with distorted kicks, aggressive synths and high BPM; use when event says hardcore, ravecore or extreme hard dance.`},{genre:`Hardstyle`,category:`Hard Dance`,priority:`high`,notes:`Dutch-origin hard dance with distorted reverse-bass kicks, euphoric melodies, screeches and festival anthems; usually around 150 BPM.`},{genre:`Gabber`,category:`Hard Dance`,priority:`low`,notes:`Extreme Dutch hardcore style with very fast BPM, distorted kicks, raw rave energy and Rotterdam/hakken culture references.`},{genre:`Happy Hardcore`,category:`Hard Dance`,priority:`low`,notes:`Fast, euphoric hardcore with bright melodies, pitched-up vocals, piano riffs and 90s UK rave nostalgia; playful rather than dark.`},{genre:`Amapiano`,category:`Global`,priority:`core`,notes:`South African club music with log drums, shakers, jazzy chords, smooth vocals and laid-back but danceable grooves; often piano-led and percussive.`},{genre:`Gqom`,category:`Global`,priority:`high`,notes:`Dark, minimal South African club sound from Durban; heavy broken rhythms, raw percussion, sparse vocals and intense hypnotic energy.`},{genre:`Afrobeats`,category:`Global`,priority:`core`,notes:`West African pop and club sound, especially Nigerian/Ghanaian; melodic vocals, dancehall/highlife/hip-hop influence, warm rhythms and mainstream crossover.`},{genre:`Kuduro`,category:`Global`,priority:`medium`,notes:`Angolan and Portuguese club music with fast, hard percussion, energetic chants and raw dancefloor intensity; often Afro-Portuguese or Lisbon club references.`},{genre:`Singeli`,category:`Global`,priority:`low`,notes:`Extremely fast Tanzanian electronic dance music, often 180-220+ BPM; frantic rhythms, rapid vocals and high-energy East African street sound.`},{genre:`Baile Funk`,category:`Global`,priority:`high`,notes:`Brazilian funk carioca with heavy drums, MC vocals, Portuguese lyrics and raw party energy; often Rio, favela, proibidao or funk mandelao references.`},{genre:`Reggaeton`,category:`Global`,priority:`high`,notes:`Latin urban dance music with dembow rhythm, Spanish vocals, pop/hip-hop influence and mainstream club appeal; often perreo or Latin party events.`},{genre:`Dancehall`,category:`Global`,priority:`high`,notes:`Jamaican club music with riddims, patois vocals, reggae influence and sound system culture; can be party, bashment, Caribbean or crossover pop.`},{genre:`Dembow`,category:`Global`,priority:`medium`,notes:`Dominican-origin club style built on repetitive dembow rhythm, Spanish MC vocals and raw Latin street-party energy; more minimal and percussive than reggaeton.`},{genre:`Ambient`,category:`Downtempo`,priority:`high`,notes:`Atmospheric, beatless or low-rhythm electronic music focused on texture, mood and space; suited to listening rooms, chill rooms, sound baths or pre/post-event settings.`},{genre:`Downtempo`,category:`Downtempo`,priority:`high`,notes:`Slower electronic music with relaxed beats, warm textures and lounge/chillout feel; use for chill, sunset, listening, cafe, pre-party or afterhours decompression events.`},{genre:`Electronica`,category:`Downtempo`,priority:`high`,notes:`Broad non-club-focused electronic music; experimental, melodic, listening-oriented or pop-adjacent; use when event says electronic but not clearly house/techno/bass.`},{genre:`Trip Hop`,category:`Downtempo`,priority:`low`,notes:`Moody 90s Bristol sound blending hip-hop beats, dub, soul, jazz and atmospheric vocals; dark, smoky, cinematic or Massive Attack/Portishead references.`},{genre:`Lo-Fi`,category:`Downtempo`,priority:`medium`,notes:`Relaxed, hazy, imperfect-sounding beats with soft drums, samples, jazz chords and study/chill aesthetics; often lo-fi hip-hop or bedroom production references.`},{genre:`Electro`,category:`Electronic`,priority:`core`,notes:`Syncopated electronic music with 808 drums, robotic funk, vocoders, breakbeats and Detroit/80s futurism; distinct from electro-house.`},{genre:`Synth Pop`,category:`Electronic`,priority:`medium`,notes:`Pop-oriented electronic music with catchy vocals, 80s synths, drum machines and new wave influence; often retro, nostalgic or indie-pop crossover.`},{genre:`Industrial`,category:`Electronic`,priority:`medium`,notes:`Dark electronic or rock-influenced music with harsh textures, machine rhythms, noise and dystopian aesthetics; may overlap with EBM and industrial techno.`},{genre:`EBM`,category:`Electronic`,priority:`low`,notes:`Electronic Body Music: hard, repetitive industrial dance with shouted vocals, rigid basslines and militaristic rhythms; 80s/Belgian/German club references.`},{genre:`Indie Dance`,category:`Electronic`,priority:`high`,notes:`Danceable blend of indie rock, disco, synth pop and electronic production; often band/DJ crossover, nu-disco-adjacent, stylish or alternative club sound.`},{genre:`Experimental`,category:`Electronic`,priority:`medium`,notes:`Unconventional electronic music that avoids standard genre structures; abstract, avant-garde, noise, leftfield, art-focused or boundary-pushing events.`},{genre:`Hip-Hop`,category:`Non-Electronic`,priority:`high`,notes:`Rap-led music with beats, MCs, sampling, trap, boom bap or old-school references; use for hip-hop parties, rap nights or DJ sets centred on rap.`},{genre:`R&B`,category:`Non-Electronic`,priority:`high`,notes:`Smooth vocal-led music with soul, hip-hop and pop influence; 90s/2000s R&B, slow jams, contemporary R&B or club crossover events.`},{genre:`Jazz`,category:`Non-Electronic`,priority:`medium`,notes:`Improvised or live instrumental music with swing, bebop, fusion, soul-jazz or jazz club references; often live band or listening-focused.`},{genre:`Pop`,category:`Non-Electronic`,priority:`medium`,notes:`Mainstream, chart-focused music with recognisable hits, singalong vocals and broad commercial appeal; use for general pop parties or top-40 events.`},{genre:`Rock`,category:`Non-Electronic`,priority:`low`,notes:`Guitar-driven band music; indie rock, classic rock, punk, alternative or live venue references; usually non-electronic unless explicitly DJ edits.`},{genre:`Reggae`,category:`Non-Electronic`,priority:`medium`,notes:`Jamaican-origin music with offbeat guitar rhythms, dub influence, roots vocals and sound system culture; includes roots, dub and reggae parties.`},{genre:`Live`,category:`Non-Electronic`,priority:`medium`,notes:`Event is centred on live performance rather than DJ genre; bands, singers, instrumentalists or live electronic acts; use only when performance format is the key signal.`}].map(e=>e.genre)),ac=P$1(ic).min(1).max(5).meta({description:`Music genres for the event (1-5 genres)`,examples:[[`Tech House`,`Melodic Techno`]]});P$1(ic).max(5).optional().meta({description:`Music genres for the event (up to 5 genres)`,examples:[[`Tech House`,`Melodic Techno`]]});function z$1(e,t){return k$1().regex(RegExp(`^${e}_[0-9a-z]{26}$`),`Must be a valid ${t} ID`).describe(`Unique ${t} identifier`)}const sc=z$1(`tem`,`team`),B$1=z$1(`evt`,`event`),cc=z$1(`ven`,`venue`),lc=z$1(`loc`,`location`),uc=z$1(`usr`,`user`),dc=z$1(`ord`,`order`),fc=z$1(`tkt`,`ticket`),pc=z$1(`pmt`,`promoter`);z$1(`cpn`,`coupon`);z$1(`cod`,`coupon code`);const gc=z$1(`cus`,`customer`),_c=z$1(`adm`,`admission`),vc=z$1(`sct`,`section`);z$1(`ben`,`beneficiary`);const bc=z$1(`pyt`,`payout`),xc=z$1(`mbr`,`team member`),Sc=z$1(`inv`,`team invite`),Cc=z$1(`ecl`,`event collaborator`),wc=z$1(`psc`,`permission scope`),Tc=z$1(`prl`,`permission role`),Ec=z$1(`ntf`,`notification`),V$1=F$1({src:Lo().meta({examples:[`https://assets.session.services/my-image.jpg`]}),alt:k$1().meta({examples:[`My Image`]}),width:j$1().meta({examples:[1080]}),height:j$1().meta({examples:[1080]})}),Dc=`Limit cannot be 0. Use -1 for unlimited or a positive number for a specific limit`;function Oc(){return j$1().min(-1)}function kc(){return j$1().min(-1).refine(e=>e!==0,{message:Dc})}const Ac=_s([k$1(),j$1(),N$1(),rs()]),jc=Ks(()=>_s([Ac,P$1(jc),Cs(k$1(),jc)])),Mc=Cs(k$1().min(1).max(40).meta({description:`Metadata key. Must be 1-40 characters`}),k$1().max(500).meta({description:`Metadata value. Must not exceed 500 characters`})).refine(e=>Object.keys(e).length<=50,{message:`Metadata cannot exceed 50 keys`}).optional().meta({description:`Flexible key-value metadata storage for custom configuration. Similar to Stripe's metadata API. Maximum 50 keys, key names up to 40 characters, values up to 500 characters.`}),H$2=k$1().regex(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}$/,`Must be a naive datetime without timezone (YYYY-MM-DDTHH:mm:ss)`).meta({description:`Wall clock time without timezone (displays same everywhere)`,examples:[`2025-03-15T19:30:00`]});function U$2(e){return L$1().int().min(1).max(100).prefault(20).meta({examples:[20],description:`Maximum number of ${e} to return per request (1-100, default: 20)`})}const Nc=k$1().meta({description:`Opaque cursor for pagination. Use the cursor from the previous response to continue fetching results.`}),Pc=`[a-z][a-z0-9-]*`,Fc=`(?:${Pc})(?:\\.${Pc})*`,Ic=RegExp(`^-?(?:\\*|${Fc}(?:\\.\\*|\\.bypass|\\.[a-z]{3}_[0-9a-z]{26})?)$`),Lc=/^[a-z]{3}_[0-9a-z]{26}$/,Rc=[`tem`,`pmt`,`ven`,`evt`,`ord`,`tkt`,`cpn`],zc=`tenant.masquerade,team.read,team.write,team.member.read,team.member.write,team.invite.read,team.invite.write,team.gateway.read,team.gateway.connect,team.gateway.write,team.performance.read,cms.read,cms.write,role.read,role.write,event.read,event.write,event.performance.read,promoter.read,promoter.write,promoter.performance.read,venue.read,venue.write,order.read,order.write,ticket.read,ticket.write,ticket.scan,coupon.read,coupon.write,beneficiary.read,beneficiary.write,payout.read,payout.write,*`.split(`,`),Bc=[`tenant`,`team`,`team.member`,`team.invite`,`team.gateway`,`team.performance`,`cms`,`role`,`event`,`event.performance`,`promoter`,`promoter.performance`,`venue`,`order`,`ticket`,`coupon`,`beneficiary`,`payout`],Vc=new Set(zc),Hc=new Set(Bc),Uc={"tenant.masquerade":[],"team.read":[`tem`],"team.write":[`tem`],"team.member.read":[`tem`],"team.member.write":[`tem`],"team.invite.read":[`tem`],"team.invite.write":[`tem`],"team.gateway.read":[`tem`,`pmt`],"team.gateway.connect":[`tem`],"team.gateway.write":[`tem`,`pmt`],"team.performance.read":[`tem`,`pmt`,`evt`],"cms.read":[],"cms.write":[],"role.read":[`tem`],"role.write":[`tem`],"event.read":[`tem`,`pmt`,`ven`,`evt`],"event.write":[`tem`,`pmt`,`ven`,`evt`],"event.performance.read":[`tem`,`pmt`,`ven`,`evt`],"promoter.read":[`tem`,`pmt`,`evt`],"promoter.write":[`tem`,`pmt`,`evt`],"promoter.performance.read":[`tem`,`pmt`,`evt`],"venue.read":[`tem`,`ven`,`evt`],"venue.write":[`tem`,`ven`,`evt`],"order.read":[`tem`,`pmt`,`ven`,`evt`,`ord`],"order.write":[`tem`,`pmt`,`ven`,`evt`,`ord`],"ticket.read":[`tem`,`pmt`,`ven`,`evt`,`ord`,`tkt`],"ticket.write":[`tem`,`pmt`,`ven`,`evt`,`ord`,`tkt`],"ticket.scan":[`tem`,`pmt`,`ven`,`evt`,`ord`,`tkt`],"coupon.read":[`tem`,`pmt`,`evt`,`cpn`],"coupon.write":[`tem`,`pmt`,`evt`,`cpn`],"beneficiary.read":[`tem`,`pmt`],"beneficiary.write":[`tem`,`pmt`],"payout.read":[`tem`,`pmt`],"payout.write":[`tem`,`pmt`],"*":[]};function Wc(e){let[t]=e.split(`_`);return t?Rc.includes(t):false}function Gc(e){let[t]=e.split(`_`);return !t||!Wc(e)?null:t}function Kc(e){return Lc.test(e)&&Wc(e)}function qc$1(e,t){let n=Gc(t);return n?(Uc[e]??[]).includes(n):false}function Jc$1(e,t){return !Vc.has(e)||!Kc(t)?false:qc$1(e,t)}function Yc$1(e){return e.startsWith(`-`)?e.slice(1):e}function Xc$1(e){return Vc.has(e)}function Zc$1(e){return e.endsWith(`.bypass`)?Vc.has(e.slice(0,-7)):false}function Qc$1(e){let t=e.match(/^((?:[a-z][a-z0-9-]*)(?:\.[a-z][a-z0-9-]*)*)\.([a-z]{3}_[0-9a-z]{26})$/);return t?$c$1(t):null}function $c$1(e){let t=e[1],n=e[2];return !t||!n?null:{base:t,resourceId:n}}function el$1(e){let t=Qc$1(e);return t?Jc$1(t.base,t.resourceId):false}function tl(e){if(!e.endsWith(`.*`))return false;let t=e.slice(0,-2);return Hc.has(t)||Vc.has(t)}const nl=[Xc$1,Zc$1,el$1,tl];function rl(e){let t=Yc$1(e);return nl.some(e=>e(t))}const il=k$1().regex(Ic,`Invalid permission node. Use lowercase dot notation with optional wildcard, resource target, bypass target, and deny prefix.`).refine(rl,{message:`Unsupported permission node. Only nodes from the canonical permission catalog are allowed.`}).meta({description:`Permission node in minecraft-style format. Supports exact, scoped wildcard, resource target, bypass target, and deny prefix.`,examples:[`team.read`,`team.member.write`,`ticket.scan`,`ticket.scan.*`,`ticket.scan.evt_01h8c3jm9zs2v6h2k9p9r8f5a1`,`team.gateway.connect.bypass`,`team.*`,`*`,`-team.gateway.write`,`-ticket.scan.evt_01h8c3jm9zs2v6h2k9p9r8f5a1`]}),al$1=P$1(il).meta({description:`Array of permission nodes. Supports wildcard and negation. Empty arrays are allowed.`,examples:[[],[`team.read`,`team.member.write`],[`event.read`,`event.write`],[`*`],[`-team.gateway.write`]]}),ol=al$1.min(1).meta({description:`Non-empty array of permission nodes. Supports wildcard and negation.`,examples:[[`team.read`,`team.member.write`],[`event.read`,`event.write`],[`*`],[`-team.gateway.write`]]});const wl=k$1().length(16).meta({examples:[b$1.signature],description:`HMAC signature for secure access (16 characters, base64url encoded)`}),Tl=I$1([`SALE_ENDED`,`SOLD_OUT`,`DOOR`]);function Dl(e){return F$1({base:M$1().min(0).meta({examples:[b$1.Admission.price.base],description:`Base cost of a ticket for this admission type before fees, in cents`}),booking:M$1().min(0).meta({examples:[b$1.Admission.price.booking],description:e.booking}),currency:R$1.meta({examples:[b$1.Admission.price.currency],description:e.currency})}).meta({examples:[b$1.Admission.price],description:e.price})}const W$2=F$1({id:_c.readonly().meta({description:`A unique identifier for this admission`,examples:[b$1.Admission.id]}),name:k$1().meta({description:`The display name of the admission type shown to customers`,examples:[b$1.Admission.name]}),subtitle:k$1().max(100).optional().meta({description:`Short supporting text shown below the admission name`,examples:[b$1.Admission.subtitle]}),description:k$1().max(500).optional().meta({description:`Detailed information shown when customers expand 'More info'`,examples:[b$1.Admission.description]}),capacity:Oc().prefault(-1).meta({examples:[b$1.Admission.capacity],description:`Maximum number of tickets that can be sold for this admission type. A value of -1 indicates unlimited`}),limit:kc().prefault(-1).meta({examples:[b$1.Admission.limit??-1],description:`Maximum number of tickets of this admission type that can be purchased in a single order. A value of -1 indicates unlimited`}),available:j$1().min(-1).readonly().meta({examples:[b$1.Admission.available],description:`Current number of tickets available for purchase, calculated as capacity minus sold minus reserved. A value of -1 indicates unlimited`}),sold:j$1().min(0).readonly().meta({examples:[b$1.Admission.sold],description:`Total number of tickets of this admission type that have been purchased`}),reserved:j$1().min(0).readonly().meta({examples:[b$1.Admission.reserved],description:`Number of tickets held for customers during checkout and not available to others`}),order:j$1().min(0).meta({examples:[b$1.Admission.order],description:`Determines the position in which this admission type appears when listed. Lower values appear first`}),createdAt:D$1().readonly().meta({examples:[b$1.Admission.createdAt],description:`Timestamp in ISO 8601 format when this admission type was created`}),updatedAt:D$1().readonly().meta({examples:[b$1.Admission.updatedAt],description:`Timestamp in ISO 8601 format when this admission type was last updated`}),entryStartsAt:H$2.meta({examples:[b$1.Admission.entryStartsAt],description:`Wall clock time from which tickets of this type are valid for entry (no timezone)`}),entryEndsAt:H$2.meta({examples:[b$1.Admission.entryEndsAt],description:`Wall clock time until which tickets of this type are valid for entry (no timezone)`}),saleStartsAt:H$2.meta({examples:[b$1.Admission.saleStartsAt],description:`Wall clock time when ticket sales for this admission type begin (no timezone)`}),saleEndsAt:H$2.meta({examples:[b$1.Admission.saleEndsAt],description:`Wall clock time when ticket sales for this admission type end (no timezone)`}),saleEndsBehavior:Tl.default(`SALE_ENDED`).meta({examples:[b$1.Admission.saleEndsBehavior],description:`Label to display for this admission after ticket sales have ended`}),price:Dl({booking:`Additional booking fee applied to the ticket price, in cents`,currency:`Three-letter ISO 4217 currency code for the ticket price`,price:`Pricing details for this admission type, including base cost and fees in cents, and currency`}),visibility:I$1([`ALWAYS`,`STACKED`,`HIDDEN`]).prefault(`ALWAYS`).meta({examples:[`ALWAYS`],description:`Controls how this admission type is displayed: 'ALWAYS' shows it at all times, 'STACKED' reveals it when higher-priority tiers sell out, 'HIDDEN' requires a passcode to view`}),passcode:k$1().optional().meta({examples:[`VIPACCESS`],description:`Code required to reveal this admission type when visibility is 'HIDDEN'. Case-insensitive comparison`}),sectionId:vc.nullable().optional().meta({examples:[b$1.Admission.sectionId],description:`Identifier of the section this admission type belongs to, if any`}),teamId:sc.meta({description:`Team that owns this admission. Denormalized for efficient queries.`}),promoterId:pc.meta({examples:[b$1.Admission.promoterId],description:`Identifier of the promoter responsible for this admission type`}),eventId:B$1.meta({examples:[b$1.Admission.eventId],description:`Identifier of the event to which this admission type is linked`}),eventSlug:k$1().meta({examples:[b$1.Admission.eventSlug],description:`URL-friendly slug for the event associated with this admission type`})}).meta({description:`Admission represents a specific type or category of ticket available for an event`,examples:[b$1.Admission]}),Ol=W$2.omit({id:true,createdAt:true,updatedAt:true,available:true,sold:true,reserved:true}).meta({description:`Schema for creating a new admission type for an event`}),kl=W$2.pick({id:true}).extend({eventId:W$2.shape.eventId.meta({examples:[b$1.Admission.eventId],description:`Identifier of the event to which this admission type belongs`})}).meta({description:`Schema for deleting an admission type from an event. This performs a soft delete by setting the deletedAt timestamp`}),Al=W$2.pick({id:true}).extend({eventId:B$1.meta({examples:[b$1.Admission.eventId],description:`Identifier of the event to which this admission type belongs`})}).meta({description:`Schema for retrieving a specific admission type`}),jl=F$1({eventId:k$1().meta({examples:[b$1.Admission.eventId],description:`Identifier of the event to list admission types for`}),sectionId:k$1().optional().meta({examples:[b$1.Admission.sectionId],description:`Filter admission types by section identifier. If provided, only admissions for this section are returned`}),query:k$1().optional().meta({examples:[`Early Bird`],description:`Optional search query to filter admissions by name. When provided, search-backed pagination is used.`}),limit:U$2(`admission types`).optional(),cursor:k$1().optional().meta({examples:[`eyJpZCI6ImFkbV8wMWpwczVjZ3NlZTB4dmFwYms5MmU4ZWI0ZyJ9`],description:`Pagination cursor for retrieving the next set of results. Obtained from previous response`})}).meta({description:`Schema for listing admission types with pagination and filtering options`});function G$2(e,t){let n={[t]:P$1(e).meta({description:`Array of ${t} for the current result set`})},r=k$1().nullish().meta({examples:[`eyJ2ZXJzaW9uIjoxLCJpbnRlbnQiOnsic291cmNlIjoiZGVtbyJ9LCJwb3MiOnsicHJpbWFyeUtleSI6InBybV8wMXM4NTNqIn19`],description:`Cursor for navigating backward in the result set. Omitted when there are no prior results.`}),i=k$1().nullish().meta({examples:[`eyJ2ZXJzaW9uIjoxLCJpbnRlbnQiOnsic291cmNlIjoiZGVtbyJ9LCJwb3MiOnsicHJpbWFyeUtleSI6InBybV8wMXM4NTNkIn19`],description:`Cursor for navigating forward in the result set. Omitted when there are no subsequent results.`});return F$1({...n,before:r,after:i,limit:L$1().min(1).meta({examples:[20],description:`Maximum number of items to return in each result set`})})}const Ml=G$2(W$2,`admissions`),Nl=W$2.pick({eventId:true}).extend({message:k$1().meta({examples:[`7.5% of the ticket price or $2 AUD, whichever is higher`],description:`Detailed explanation of the booking fee calculation applied to this admission type`}),price:Dl({booking:`Calculated booking fee applied to the ticket price, in cents`,currency:`Three-letter ISO 4217 currency code for the quoted price`,price:`Pricing quote for this admission type, showing base cost and calculated booking fee in cents`})}).meta({description:`Response schema for admission pricing quotes, including booking fee calculations and explanatory messages`}),Pl=W$2.pick({eventId:true}).extend({base:M$1().min(0).meta({examples:[b$1.Admission.price.base],description:`Base cost of a ticket for this admission type before fees, in cents`}),currency:R$1.meta({examples:[b$1.Admission.price.currency],description:`Three-letter ISO 4217 currency code for the ticket price`})}).meta({description:`Request schema for generating a pricing quote for an admission type, including booking fee calculations`}),Fl=F$1({quote:Nl}),Il=F$1({admission:W$2}),Ll=F$1({id:W$2.shape.id,eventId:W$2.shape.eventId,name:W$2.shape.name.optional(),subtitle:W$2.shape.subtitle,description:W$2.shape.description,capacity:Oc().optional(),limit:kc().optional(),order:W$2.shape.order.optional(),entryStartsAt:W$2.shape.entryStartsAt.optional(),entryEndsAt:W$2.shape.entryEndsAt.optional(),saleStartsAt:W$2.shape.saleStartsAt.optional(),saleEndsAt:W$2.shape.saleEndsAt.optional(),saleEndsBehavior:Tl.optional(),price:W$2.shape.price.optional(),visibility:I$1([`ALWAYS`,`STACKED`,`HIDDEN`]).optional(),passcode:k$1().optional(),sectionId:vc.nullable().optional().meta({description:`Section ID. Pass null to unassign from section; omit to leave unchanged.`})}).meta({description:`Schema for updating an existing admission type.`}),Rl=F$1({eventId:B$1.optional().meta({description:`Event ID for rate limiting and change detection. If provided, suggestions are limited to once per day per event and only if the description changed significantly.`,examples:[b$1.Event.id]}),description:k$1().min(100).max(1e4).meta({description:`Event description to analyze for genre and category suggestions. Minimum 100 characters required for meaningful AI analysis.`,examples:[`Join us for an all-night warehouse party featuring the best in tech house and melodic techno. BYO drinks, intimate vibes, and a killer sound system.`]}),eventName:k$1().optional().meta({description:`Optional event name for additional context`,examples:[`Warehouse Sessions Vol. 5`]}),imageUrl:Lo().optional().meta({description:`Optional event artwork URL for visual analysis (multimodal)`,examples:[`https://assets.session.services/events/poster.jpg`]})}).meta({description:`Input for AI-powered event tag suggestions`}),zl=F$1({genres:P$1(ic).max(5).meta({description:`Suggested music genres based on event description and artwork`,examples:[[`Tech House`,`Melodic Techno`]]}),categories:P$1(nc).max(10).meta({description:`Suggested event categories based on description and artwork`,examples:[[`Warehouse`,`Underground`,`BYO`]]}),confidence:j$1().min(0).max(1).meta({description:`AI confidence score for the suggestions (0-1)`,examples:[.85]}),startDate:k$1().optional().meta({description:`Event start date/time. Either ISO 8601 format (if specific date found) or natural language hint for relative dates (e.g., 'next Saturday 9pm').`,examples:[`2025-02-15T21:00:00`,`next Saturday 9pm`]}),endDate:k$1().optional().meta({description:`Event end date/time. Either ISO 8601 format (if specific date found) or natural language hint.`,examples:[`2025-02-16T04:00:00`,`6am Sunday`]}),venueName:k$1().optional().meta({description:`Venue or location name extracted from the description or artwork. Used to search for and prefill the event location.`,examples:[`Warehouse 21`,`The Metro Theatre`]}),ticketUrl:Lo().optional().meta({description:`External ticket purchase URL if found in the description. Only extracted if different from the host platform.`,examples:[`https://www.eventbrite.com/e/warehouse-sessions-tickets-123`]})}).meta({description:`AI-generated genre and category suggestions for an event`});F$1({estimatedInputTokens:j$1().int().meta({description:`Estimated input tokens for the request`,examples:[500]}),estimatedOutputTokens:j$1().int().meta({description:`Estimated output tokens for the response`,examples:[100]}),estimatedCostUsd:j$1().meta({description:`Estimated cost in USD`,examples:[.002]}),includesImage:N$1().meta({description:`Whether the estimate includes image analysis`,examples:[true]})}).meta({description:`Cost estimate for an AI tag suggestion request`});var Bl=/^(?:[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 Vl(e){return typeof e==`string`&&Bl.test(e)}for(var Hl=Vl,K$2=[],Ul=0;Ul<256;++Ul)K$2.push((Ul+256).toString(16).slice(1));function Wl(e,t=0){return (K$2[e[t+0]]+K$2[e[t+1]]+K$2[e[t+2]]+K$2[e[t+3]]+`-`+K$2[e[t+4]]+K$2[e[t+5]]+`-`+K$2[e[t+6]]+K$2[e[t+7]]+`-`+K$2[e[t+8]]+K$2[e[t+9]]+`-`+K$2[e[t+10]]+K$2[e[t+11]]+K$2[e[t+12]]+K$2[e[t+13]]+K$2[e[t+14]]+K$2[e[t+15]]).toLowerCase()}function Gl(e,t=0){var n=Wl(e,t);if(!Hl(n))throw TypeError(`Stringified UUID is invalid`);return n}var Kl=Gl,ql,Jl=new Uint8Array(16);function Yl(){if(!ql&&(ql=typeof crypto<`u`&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ql))throw Error(`crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported`);return ql(Jl)}var Xl=null,Zl=null,Ql=0;function $l(e,t,n){e||={};var r=t&&n||0,i=t||new Uint8Array(16),a=e.random||(e.rng||Yl)(),o=e.msecs===void 0?Date.now():e.msecs,s=e.seq===void 0?null:e.seq,c=Zl,l=Xl;return o>Ql&&e.msecs===void 0&&(Ql=o,s!==null&&(c=null,l=null)),s!==null&&(s>2147483647&&(s=2147483647),c=s>>>19&4095,l=s&524287),(c===null||l===null)&&(c=a[6]&127,c=c<<8|a[7],l=a[8]&63,l=l<<8|a[9],l=l<<5|a[10]>>>3),o+1e4>Ql&&s===null?++l>524287&&(l=0,++c>4095&&(c=0,Ql++)):Ql=o,Zl=c,Xl=l,i[r++]=Ql/1099511627776&255,i[r++]=Ql/4294967296&255,i[r++]=Ql/16777216&255,i[r++]=Ql/65536&255,i[r++]=Ql/256&255,i[r++]=Ql&255,i[r++]=c>>>4&15|112,i[r++]=c&255,i[r++]=l>>>13&63|128,i[r++]=l>>>5&255,i[r++]=l<<3&255|a[10]&7,i[r++]=a[11],i[r++]=a[12],i[r++]=a[13],i[r++]=a[14],i[r++]=a[15],t||Wl(i)}var eu=$l;function tu(e){let t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=t&255,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=t&255,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=t&255,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=t&255,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=t&255,n}var q$1=`0123456789abcdefghjkmnpqrstvwxyz`,J$1=new Uint8Array([255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,10,11,12,13,14,15,16,17,255,18,19,255,20,21,255,22,23,24,25,26,255,27,28,29,30,31,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255]);function nu(e){let t=Array(26).fill(``);if(e.length!==16)throw Error(`Invalid length. Expected 16 bytes, got ${e.length}. Input: ${e}`);return t[0]=q$1[(e[0]&224)>>5],t[1]=q$1[e[0]&31],t[2]=q$1[(e[1]&248)>>3],t[3]=q$1[(e[1]&7)<<2|(e[2]&192)>>6],t[4]=q$1[(e[2]&62)>>1],t[5]=q$1[(e[2]&1)<<4|(e[3]&240)>>4],t[6]=q$1[(e[3]&15)<<1|(e[4]&128)>>7],t[7]=q$1[(e[4]&124)>>2],t[8]=q$1[(e[4]&3)<<3|(e[5]&224)>>5],t[9]=q$1[e[5]&31],t[10]=q$1[(e[6]&248)>>3],t[11]=q$1[(e[6]&7)<<2|(e[7]&192)>>6],t[12]=q$1[(e[7]&62)>>1],t[13]=q$1[(e[7]&1)<<4|(e[8]&240)>>4],t[14]=q$1[(e[8]&15)<<1|(e[9]&128)>>7],t[15]=q$1[(e[9]&124)>>2],t[16]=q$1[(e[9]&3)<<3|(e[10]&224)>>5],t[17]=q$1[e[10]&31],t[18]=q$1[(e[11]&248)>>3],t[19]=q$1[(e[11]&7)<<2|(e[12]&192)>>6],t[20]=q$1[(e[12]&62)>>1],t[21]=q$1[(e[12]&1)<<4|(e[13]&240)>>4],t[22]=q$1[(e[13]&15)<<1|(e[14]&128)>>7],t[23]=q$1[(e[14]&124)>>2],t[24]=q$1[(e[14]&3)<<3|(e[15]&224)>>5],t[25]=q$1[e[15]&31],t.join(``)}function ru(e){if(e.length!==26)throw Error(`Invalid length. Expected 26 bytes, got ${e.length}. Input: ${e}`);let t=new TextEncoder().encode(e);if(J$1[t[0]]===255||J$1[t[1]]===255||J$1[t[2]]===255||J$1[t[3]]===255||J$1[t[4]]===255||J$1[t[5]]===255||J$1[t[6]]===255||J$1[t[7]]===255||J$1[t[8]]===255||J$1[t[9]]===255||J$1[t[10]]===255||J$1[t[11]]===255||J$1[t[12]]===255||J$1[t[13]]===255||J$1[t[14]]===255||J$1[t[15]]===255||J$1[t[16]]===255||J$1[t[17]]===255||J$1[t[18]]===255||J$1[t[19]]===255||J$1[t[20]]===255||J$1[t[21]]===255||J$1[t[22]]===255||J$1[t[23]]===255||J$1[t[24]]===255||J$1[t[25]]===255)throw Error(`Invalid base32 character`);let n=new Uint8Array(16);return n[0]=J$1[t[0]]<<5|J$1[t[1]],n[1]=J$1[t[2]]<<3|J$1[t[3]]>>2,n[2]=(J$1[t[3]]&3)<<6|J$1[t[4]]<<1|J$1[t[5]]>>4,n[3]=(J$1[t[5]]&15)<<4|J$1[t[6]]>>1,n[4]=(J$1[t[6]]&1)<<7|J$1[t[7]]<<2|J$1[t[8]]>>3,n[5]=(J$1[t[8]]&7)<<5|J$1[t[9]],n[6]=J$1[t[10]]<<3|J$1[t[11]]>>2,n[7]=(J$1[t[11]]&3)<<6|J$1[t[12]]<<1|J$1[t[13]]>>4,n[8]=(J$1[t[13]]&15)<<4|J$1[t[14]]>>1,n[9]=(J$1[t[14]]&1)<<7|J$1[t[15]]<<2|J$1[t[16]]>>3,n[10]=(J$1[t[16]]&7)<<5|J$1[t[17]],n[11]=J$1[t[18]]<<3|J$1[t[19]]>>2,n[12]=(J$1[t[19]]&3)<<6|J$1[t[20]]<<1|J$1[t[21]]>>4,n[13]=(J$1[t[21]]&15)<<4|J$1[t[22]]>>1,n[14]=(J$1[t[22]]&1)<<7|J$1[t[23]]<<2|J$1[t[24]]>>3,n[15]=(J$1[t[24]]&7)<<5|J$1[t[25]],n}function iu(e){if(e.length>63)return false;let t,n,r;for(n=0,r=e.length;n<r;n+=1){t=e.charCodeAt(n);let i=t>96&&t<123,a=t===95;if((n===0||n===r-1)&&!i||!(i||a))return false}return true}var au=class extends Error{constructor(e){super(`Invalid prefix "${e}". Must be at most 63 ASCII letters [a-z_]`),this.name=`InvalidPrefixError`;}},ou=class extends Error{constructor(e,t){super(`Invalid TypeId. Prefix mismatch. Expected ${e}, got ${t}`),this.name=`PrefixMismatchError`;}},su=class extends Error{constructor(e){super(`Invalid TypeId. Prefix cannot be empty when there's a separator: ${e}`),this.name=`EmptyPrefixError`;}},cu=class extends Error{constructor(e){super(`Invalid length. Suffix should have 26 characters, got ${e}`),this.name=`InvalidSuffixLengthError`;}},lu=class extends Error{constructor(e){super(`Invalid suffix. First character "${e}" must be in the range [0-7]`),this.name=`InvalidSuffixCharacterError`;}},uu=class extends Error{constructor(e,t){super(`Cannot convert TypeID of type ${e} to type ${t}`),this.name=`TypeIDConversionError`;}};function du(e=``,t=``){if(!iu(e))throw new au(e);let n;if(t)n=t;else {let e=new Uint8Array(16);eu(void 0,e),n=nu(e);}if(n.length!==26)throw new cu(n.length);if(n[0]>`7`)throw new lu(n[0]);return ru(n),e===``?n:`${e}_${n}`}function fu(e,t){let n,r,i=e.lastIndexOf(`_`);if(i===-1)n=``,r=e;else if(n=e.substring(0,i),r=e.substring(i+1),!n)throw new su(e);if(!r)throw new cu(0);if(t&&n!==t)throw new ou(t,n);return du(n,r)}function pu(e){let t=e.lastIndexOf(`_`);return t===-1?``:e.substring(0,t)}function mu(e){let t=e.lastIndexOf(`_`);return t===-1?e:e.substring(t+1)}var hu=class{constructor(e,t=``){this.prefix=e,this.suffix=t;let n=du(e,t);this.prefix=pu(n),this.suffix=mu(n);}getType(){return this.prefix}getSuffix(){return this.suffix}asType(e){let t=this;if(t.prefix!==e)throw new uu(t.prefix,e);return t}toUUIDBytes(){return ru(this.suffix)}toUUID(){return Kl(this.toUUIDBytes())}toString(){return this.prefix===``?this.suffix:`${this.prefix}_${this.suffix}`}static fromString(e,t){let n=fu(e,t);return new hu(pu(n),mu(n))}static fromUUIDBytes(e,t){return new hu(e,nu(t))}static fromUUID(e,t){return new hu(e,nu(tu(t)))}};function gu(e=``,t=``){return new hu(e,t)}const _u={admission:`adm`,anonymous:`anon`,beneficiary:`ben`,coupon:`cpn`,couponCode:`cod`,customer:`cus`,event:`evt`,eventCollaborator:`ecl`,eventCollaboratorInvite:`evi`,membership:`mem`,order:`ord`,orderItem:`itm`,orderFee:`fee`,permissionScope:`psc`,permissionRole:`prl`,permissionSnapshot:`pss`,payout:`pyt`,payoutDeduction:`pad`,payoutTransfer:`xfr`,promoter:`pmt`,refund:`rfd`,section:`sct`,scan:`scn`,team:`tem`,teamMember:`mbr`,teamInvite:`inv`,teamGateway:`tgw`,tenant:`tnt`,ticket:`tkt`,user:`usr`,venue:`ven`,location:`loc`,request:`req`,walletDevice:`wdv`,schedule:`sch`,session:`ssn`,trackingEvent:`tev`,trackingStats:`sta`,hllShard:`shr`,timeline:`tln`,notification:`ntf`};function vu(e){return gu(_u[e])}const yu=`ses_sid`,bu=`ses_aid`;function xu(){return vu(`session`).toString()}function Su(){return vu(`anonymous`).toString()}function Cu(e){let t=e.getCookie(yu);if(t)return t;let n=xu();return e.setCookie(yu,n),n}function wu(e){let t=e.getItem(bu);if(t)return t;let n=Su();return e.setItem(bu,n),n}function Tu(e){let t=xu(),n=Su();return e.setCookie(yu,t),e.setItem(bu,n),{sessionId:t,anonymousId:n}}const Du=uo().describe(`Date (YYYY-MM-DD)`),Ou=F$1({startDate:Du.describe(`Start date (YYYY-MM-DD)`),endDate:Du.describe(`End date (YYYY-MM-DD)`)}),ku=F$1({startDate:Du.optional().describe(`Start date (YYYY-MM-DD)`),endDate:Du.optional().describe(`End date (YYYY-MM-DD)`)}).refine(e=>!e.startDate&&!e.endDate||!!(e.startDate&&e.endDate),{message:`Both startDate and endDate must be provided together, or omit both for all-time data`});function Y$1(e){return F$1(e).extend(Ou.shape)}function Au(e){return xs(F$1(e),ku)}const X$1=F$1({value:j$1().describe(`Current period value`),previous:j$1().describe(`Comparison period value`),change:j$1().describe(`Percentage change from previous period`),changeType:I$1([`increase`,`decrease`,`unchanged`]).describe(`Direction of change`)}),ju=F$1({eventId:k$1().describe(`Event identifier`),eventName:k$1().describe(`Event name`),ticketCount:j$1().describe(`Number of tickets sold`),sharePercent:j$1().describe(`Percentage of total tickets`)}),Mu=F$1({start:k$1().describe(`Period start date`),end:k$1().describe(`Period end date`)}),Nu=F$1({start:k$1().describe(`Comparison period start date`),end:k$1().describe(`Comparison period end date`)}),Pu=I$1([`HOUR`,`DAY`,`WEEK`,`MONTH`]),Fu=F$1({date:k$1().describe(`Date (YYYY-MM-DD)`),revenue:j$1().describe(`Revenue in cents`),tickets:j$1().describe(`Tickets sold`)}),Iu=Fu.extend({orders:j$1().describe(`Orders placed`)}),Lu=F$1({revenue:j$1().describe(`Total revenue for period in cents`),tickets:j$1().describe(`Total tickets for period`)}),Ru=Lu.extend({orders:j$1().describe(`Total orders for period`)}),zu=F$1({revenue:X$1.describe(`Total revenue in cents`),ticketsSold:X$1.describe(`Number of tickets sold`),averageOrderValue:X$1.describe(`Average order value in cents`),conversionRate:X$1.describe(`Overall conversion rate (%)`),activeEvents:X$1.describe(`Number of active events in period`),uniqueCustomers:X$1.describe(`Unique customers (estimated)`),orderCount:X$1.describe(`Number of orders placed`),pageViews:X$1.describe(`Total page views from tracking`)}),Bu=F$1({events:P$1(ju),totalTickets:j$1().describe(`Total tickets across all events`)});function Vu(e,t){return Y$1({...Gu(e,t),currency:k$1().optional().describe(`Currency code for revenue metrics`)})}function Hu(e){return F$1({meta:F$1({...e,currency:k$1().describe(`Primary currency code`),currencies:P$1(k$1()).describe(`All currencies with transactions`),dateRange:Mu,comparisonRange:Nu}),metrics:zu})}function Uu(e,t){return Y$1({...Gu(e,t),granularity:Pu.optional().default(`DAY`).describe(`Time granularity`),currency:k$1().optional().describe(`Currency filter`)})}function Wu(e,t){return Y$1({...Gu(e,t),limit:j$1().optional().default(5).describe(`Maximum number of events to return`)})}function Gu(e,t){return {[e]:k$1().describe(t)}}const Ku=Au({eventId:k$1().describe(`Event identifier`)}).meta({description:`Event performance summary request`}),qu=F$1({meta:F$1({eventId:k$1().describe(`Event identifier`),eventName:k$1().describe(`Event name`),currency:k$1().describe(`Currency code (e.g., USD, EUR)`),dateRange:Mu.optional().describe(`Present only when startDate/endDate are provided`),comparisonRange:Nu.optional().describe(`Present only when startDate/endDate are provided`)}),metrics:F$1({revenue:X$1.describe(`Total revenue in cents`),ticketsSold:X$1.describe(`Number of tickets sold`),orderCount:X$1.describe(`Number of orders placed`),averageOrderValue:X$1.describe(`Average order value in cents`),conversionRate:X$1.describe(`Conversion rate as percentage`),pageViews:X$1.describe(`Total page/product views`),uniqueVisitors:X$1.describe(`Unique visitors (estimated)`),checkoutStarted:X$1.describe(`Number of checkout started events (external link clicks for external events)`)})}),Ju=Y$1({eventId:k$1().describe(`Event identifier`),granularity:Pu.optional().default(`DAY`).describe(`Time granularity for aggregation`),breakdown:I$1([`TOTAL`]).optional().default(`TOTAL`).describe(`Breakdown type (always TOTAL for performance)`),includeBreakdowns:N$1().optional().default(true).describe(`Whether to include admission and section breakdowns in each time bucket`)}),Yu=F$1({meta:F$1({eventId:k$1(),eventName:k$1().describe(`Event name`),currency:k$1().describe(`Currency code`),dateRange:Mu,granularity:Pu}),series:P$1(F$1({date:k$1().describe(`Date or timestamp`),tickets:j$1().describe(`Tickets sold in period`),revenue:j$1().describe(`Revenue in period (cents)`),admissions:P$1(F$1({id:k$1(),name:k$1(),quantity:j$1()})),sections:P$1(F$1({id:k$1(),name:k$1(),quantity:j$1()}))}))}),Xu=Y$1({eventId:k$1().describe(`Event identifier`)}),Zu=F$1({meta:F$1({eventId:k$1(),eventName:k$1().describe(`Event name`),currency:k$1().describe(`Currency code`),dateRange:Mu}),totals:F$1({entered:j$1().describe(`Total entered funnel (product viewed)`),completed:j$1().describe(`Total completed (orders)`),overallConversionRate:j$1().describe(`Overall conversion rate (%)`),totalDropped:j$1().describe(`Total dropped off`)}),stages:P$1(F$1({id:k$1().describe(`Funnel stage identifier`),name:k$1().describe(`Human-readable stage name`),count:j$1().describe(`Number of events at this stage`),conversionRate:j$1().describe(`Conversion rate from first stage (%)`),dropoffRate:j$1().describe(`Dropoff rate from previous stage (%)`)}))});F$1({meta:F$1({eventId:k$1(),dimension:k$1().describe(`Dimension type`),dateRange:Mu,limit:j$1().optional()}),data:P$1(F$1({name:k$1().describe(`Dimension value (e.g., campaign name)`),views:j$1().describe(`Page/product views`),conversions:j$1().describe(`Completed orders`),revenue:j$1().describe(`Total revenue in cents`),conversionRate:j$1().describe(`Conversion rate (%)`),share:j$1().describe(`Percentage share of total`).optional()})),totals:F$1({views:j$1(),conversions:j$1(),revenue:j$1()}).optional()});const $u=I$1([`HOUR`,`DAY`,`WEEK`,`MONTH`]),ed=F$1({eventId:k$1().describe(`Event identifier`),eventName:k$1().describe(`Event name`),currency:k$1().describe(`Currency code (e.g., USD, EUR)`),dateRange:Mu}),td=ed.extend({limit:j$1().describe(`Maximum number of results returned`)});Y$1({eventId:k$1(),granularity:$u.optional()});F$1({granularity:$u,data:P$1(F$1({date:k$1(),revenue:j$1(),ticketsSold:j$1()}))});const id=Y$1({eventId:k$1(),limit:j$1().min(1).max(100).optional().default(10)}),ad=F$1({meta:td,totals:F$1({uses:j$1().describe(`Total coupon uses across all coupons`),revenue:j$1().describe(`Total revenue from coupon-discounted orders (cents)`)}),coupons:P$1(F$1({id:k$1().describe(`Coupon code identifier`),code:k$1().describe(`Coupon code`),uses:j$1().describe(`Number of times this coupon was used`),revenue:j$1().describe(`Revenue from this coupon (cents)`),discount:k$1().describe(`Discount amount or percentage`),share:j$1().describe(`Share of total coupon uses (%)`)})).describe(`Coupons sorted by uses descending`)}),od=Y$1({eventId:k$1(),limit:j$1().min(1).max(100).optional().default(10)}),sd=F$1({data:P$1(F$1({campaign:k$1(),views:j$1(),conversions:j$1(),conversionRate:j$1(),sharePercent:j$1()})),totalConversions:j$1()}),cd=Y$1({eventId:k$1(),limit:j$1().min(1).max(100).optional().default(10)}),ld=F$1({meta:td,totals:F$1({views:j$1().describe(`Total views across all mediums`),conversions:j$1().describe(`Total conversions across all mediums`)}),mediums:P$1(F$1({id:k$1().describe(`Medium identifier (e.g., 'social', 'email')`),name:k$1().describe(`Medium name`),views:j$1().describe(`Views from this medium`),conversions:j$1().describe(`Conversions from this medium`),conversionRate:j$1().describe(`Conversion rate (%)`),share:j$1().describe(`Share of total conversions (%)`)})).describe(`Mediums sorted by conversions descending`)}),ud=Y$1({eventId:k$1()}),dd=F$1({meta:ed,totals:F$1({revenue:j$1().describe(`Total revenue across all devices (cents)`),orders:j$1().describe(`Total orders across all devices`)}),devices:P$1(F$1({id:I$1([`MOBILE`,`DESKTOP`,`TABLET`]).describe(`Device type`),name:k$1().describe(`Human-readable device name`),revenue:j$1().describe(`Revenue from this device (cents)`),orders:j$1().describe(`Orders from this device`),conversionRate:j$1().describe(`Conversion rate (%)`),share:j$1().describe(`Share of total revenue (%)`)})).describe(`Devices sorted by revenue descending`)}),fd=Y$1({eventId:k$1(),limit:j$1().min(1).max(100).optional().default(10)}),pd=F$1({meta:td,totals:F$1({tickets:j$1().describe(`Total tickets across all locations`),revenue:j$1().describe(`Total revenue across all locations (cents)`)}),locations:P$1(F$1({id:k$1().describe(`Location/region code (e.g., 'US-CA', 'GB')`),name:k$1().describe(`Human-readable location name`),views:j$1().describe(`Page views from this location`),tickets:j$1().describe(`Tickets from this location`),revenue:j$1().describe(`Revenue from this location (cents)`),share:j$1().describe(`Share of total views (%)`)})).describe(`Locations sorted by views descending`)}),md=Y$1({eventId:k$1(),limit:j$1().min(1).max(100).optional().default(10)}),hd=F$1({meta:td,totals:F$1({sessions:j$1().describe(`Total sessions across all sources`),conversions:j$1().describe(`Total conversions across all sources`),revenue:j$1().describe(`Total revenue across all sources (cents)`)}),sources:P$1(F$1({id:k$1().describe(`Traffic source identifier`),name:k$1().describe(`Traffic source name`),referrer:k$1().describe(`Referrer URL or domain`),sessions:j$1().describe(`Sessions from this source`),conversions:j$1().describe(`Conversions from this source`),conversionRate:j$1().describe(`Conversion rate (%)`),revenue:j$1().describe(`Revenue from this source (cents)`),share:j$1().describe(`Share of total conversions (%)`)})).describe(`Traffic sources sorted by conversions descending`)}),gd=F$1({eventId:k$1(),includeAdmission:N$1().optional().default(true),includeSection:N$1().optional().default(true),granularity:I$1([`HOUR`,`MINUTE`]).optional()}),_d=F$1({totalTickets:j$1(),checkedIn:j$1(),notCheckedIn:j$1(),checkinRate:j$1()}),vd=_d.extend({admissionId:k$1(),admissionName:k$1()}),yd=_d.extend({sectionId:k$1(),sectionName:k$1()}),bd=_s([_d.extend({byAdmission:P$1(vd),bySection:P$1(yd)}),F$1({granularity:I$1([`HOUR`,`MINUTE`]),totalTickets:j$1(),data:P$1(F$1({timestamp:k$1(),checkedIn:j$1(),rate:j$1(),checkinsThisPeriod:j$1()})),byAdmission:P$1(F$1({admissionId:k$1(),admissionName:k$1(),data:P$1(F$1({timestamp:k$1(),checkedIn:j$1(),rate:j$1()}))})).optional(),bySection:P$1(F$1({sectionId:k$1(),sectionName:k$1(),data:P$1(F$1({timestamp:k$1(),checkedIn:j$1(),rate:j$1()}))})).optional()})]),xd=Vu(`promoterId`,`Promoter identifier`),Sd=Hu({promoterId:k$1().describe(`Promoter identifier`),promoterName:k$1().describe(`Promoter name`),teamId:k$1().describe(`Team identifier`),teamName:k$1().describe(`Team name`)}),Cd=Uu(`promoterId`,`Promoter identifier`),wd=F$1({meta:F$1({promoterId:k$1(),dateRange:Mu,granularity:Pu}),currencies:P$1(F$1({currency:k$1().describe(`Currency code (e.g., USD, EUR)`),series:P$1(Fu),totals:Lu})).describe(`Time-series data grouped by currency`)}),Td=Wu(`promoterId`,`Promoter identifier`),Ed=Bu,Dd=Vu(`teamId`,`Team identifier`),Od=Hu({teamId:k$1().describe(`Team identifier`),teamName:k$1().describe(`Team name`)}),kd=Uu(`teamId`,`Team identifier`),Ad=F$1({meta:F$1({teamId:k$1(),dateRange:Mu,granularity:Pu}),currencies:P$1(F$1({currency:k$1().describe(`Currency code (e.g., USD, EUR)`),series:P$1(Iu),totals:Ru})).describe(`Time-series data grouped by currency`)});Y$1({teamId:k$1().describe(`Team identifier`),limit:j$1().optional().default(10).describe(`Number of events to return`),sortBy:I$1([`revenue`,`tickets`,`conversion`]).optional().default(`revenue`).describe(`Sort metric`)});F$1({meta:F$1({teamId:k$1(),dateRange:F$1({start:k$1(),end:k$1()}),limit:j$1(),sortBy:k$1()}),data:P$1(F$1({eventId:k$1().describe(`Event identifier`),eventName:k$1().describe(`Event name`),eventDate:k$1().describe(`Event date`).optional(),status:k$1().describe(`Event status`),revenue:j$1().describe(`Total revenue in cents`),tickets:j$1().describe(`Tickets sold`),views:j$1().describe(`Page views`),conversionRate:j$1().describe(`Conversion rate (%)`),contribution:j$1().describe(`% of promoter's total revenue`)})),totals:F$1({events:j$1().describe(`Total events in period`),revenue:j$1().describe(`Combined revenue`),tickets:j$1().describe(`Combined tickets`)})});const Nd=Wu(`teamId`,`Team identifier`),Pd=Bu,Fd=Y$1({teamId:k$1().describe(`Team identifier`)}),Id=F$1({stages:P$1(F$1({stageId:k$1().describe(`Funnel stage identifier`),stageLabel:k$1().describe(`Human-readable stage name`),count:j$1().describe(`Number of events at this stage`),conversionRate:j$1().describe(`Conversion rate from first stage (%)`),dropoffPercent:j$1().describe(`Dropoff rate from previous stage (%)`)}))}),Ld=Y$1({teamId:k$1().describe(`Team identifier`),groupBy:I$1([`HOUR`,`DAY_OF_WEEK`,`DAY`,`WEEK`,`MONTH`]).optional().default(`HOUR`).describe(`Time breakdown for aggregation`),timeZone:k$1().optional().default(`UTC`).describe(`IANA timezone for hour/day aggregation (e.g., 'America/New_York')`)}),Rd=F$1({groupBy:I$1([`HOUR`,`DAY_OF_WEEK`,`DAY`,`WEEK`,`MONTH`]).describe(`The grouping used for aggregation`),buckets:P$1(F$1({key:_s([j$1(),k$1()]).describe(`Bucket key (hour 0-23, day 0-6, or date string)`),label:k$1().describe(`Human-readable label`),orderCount:j$1().describe(`Number of orders`),sharePercent:j$1().describe(`Percentage of total orders`)})),totalOrders:j$1().describe(`Total orders across all buckets`)}),zd=Y$1({teamId:k$1().describe(`Team identifier`),limit:j$1().optional().default(10).describe(`Maximum number of admissions to return`)}),Bd=F$1({admissions:P$1(F$1({admissionId:k$1().describe(`Admission identifier`),admissionName:k$1().describe(`Admission name`),ticketCount:j$1().describe(`Number of tickets sold`),sharePercent:j$1().describe(`Percentage of total tickets`)})),totalTickets:j$1().describe(`Total tickets across all admissions`)}),Vd=Y$1({teamId:k$1().describe(`Team identifier`),type:I$1([`campaign`,`medium`,`source`]).describe(`Dimension type to analyze`),limit:j$1().optional().default(20).describe(`Maximum number of results to return`)}),Hd=F$1({dimensionType:I$1([`campaign`,`medium`,`source`]).describe(`The dimension type analyzed`),data:P$1(F$1({dimensionValue:k$1().describe(`The dimension value (e.g., campaign name)`),dimensionLabel:k$1().describe(`Human-readable label`),views:j$1().describe(`Total page views`),conversions:j$1().describe(`Total conversions (orders)`),conversionRate:j$1().describe(`Conversion rate (%)`),sharePercent:j$1().describe(`Share of total conversions (%)`)})),totalConversions:j$1().describe(`Total conversions across all dimensions`)}),Ud=Y$1({teamId:k$1().describe(`Team identifier`),granularity:I$1([`DAY`,`WEEK`,`MONTH`]).optional().default(`DAY`).describe(`Time granularity for aggregation`)}),Wd=F$1({granularity:I$1([`DAY`,`WEEK`,`MONTH`]).describe(`The granularity used`),series:P$1(F$1({date:k$1().describe(`Date key (YYYY-MM-DD, YYYY-Www, or YYYY-MM)`),label:k$1().describe(`Human-readable label`),productViewed:j$1().describe(`Page views`),productAdded:j$1().describe(`Add to cart events`),checkoutStarted:j$1().describe(`Checkout started events`),orderCompleted:j$1().describe(`Completed orders`)})),totals:F$1({productViewed:j$1().describe(`Total page views`),productAdded:j$1().describe(`Total add to cart`),checkoutStarted:j$1().describe(`Total checkouts started`),orderCompleted:j$1().describe(`Total orders completed`),uniqueVisitors:j$1().describe(`Unique visitors (estimated via HyperLogLog, ~0.8% error)`)})}),Gd=I$1(`Page Viewed.Screen Viewed.Products Searched.Product List Viewed.Product List Filtered.Promotion Viewed.Promotion Clicked.Product Clicked.Product Viewed.Product Added.Product Removed.Cart Viewed.Checkout Started.Checkout Step Viewed.Checkout Step Completed.Payment Info Entered.Order Completed.Order Updated.Order Refunded.Order Cancelled.Coupon Entered.Coupon Applied.Coupon Denied.Coupon Removed.Product Added to Wishlist.Product Removed from Wishlist.Wishlist Product Added to Cart.Product Shared.Cart Shared.Product Reviewed`.split(`.`)),Kd=Gd.enum,qd=F$1({product_id:k$1().optional().describe(`admission_id in ticketing context`),sku:k$1().optional().describe(`admission_id or admission_name`),category:k$1().optional().describe(`event_name or "Admission"`),name:k$1().optional().describe(`admission_name`),brand:k$1().optional().describe(`promoter_name`),variant:k$1().optional().describe(`section_name`),price:j$1().optional().describe(`admission price (base + booking fee)`),quantity:j$1().optional().describe(`number of tickets`),coupon:k$1().optional().describe(`coupon code applied`),position:j$1().optional().describe(`position in list`),url:k$1().optional().describe(`URL to event/admission page`),image_url:k$1().optional().describe(`event image`),admission_id:k$1().optional().describe(`Explicit admission ID`),section_id:k$1().optional().describe(`Section ID if applicable`),event_id:k$1().optional().describe(`Event ID for this admission`),promoter_id:k$1().optional().describe(`Promoter ID`),price_base:j$1().nullish().describe(`Base price before fees`),price_booking_fee:j$1().nullish().describe(`Booking fee`),capacity:j$1().optional().describe(`Total capacity for this admission`),available:j$1().optional().describe(`Remaining tickets available`),sold:j$1().optional().describe(`Tickets already sold`)}),Jd=F$1({type:k$1(),value:k$1()}),Yd=F$1({type:k$1(),value:k$1()}),Xd=F$1({query:_s([k$1(),Cs(k$1(),ss())]).optional(),list_id:k$1().optional(),category:k$1().optional(),filters:P$1(Jd).optional(),sorts:P$1(Yd).optional(),promotion_id:k$1().optional(),creative:k$1().optional(),name:k$1().optional(),position:_s([k$1(),j$1()]).optional(),product_id:k$1().optional(),sku:k$1().optional(),brand:k$1().optional(),variant:k$1().optional(),price:j$1().optional(),quantity:j$1().optional(),coupon:k$1().optional(),currency:k$1().optional(),value:j$1().optional(),url:k$1().optional(),image_url:k$1().optional(),cart_id:k$1().optional(),checkout_id:k$1().optional(),step:j$1().optional(),shipping_method:k$1().optional(),payment_method:k$1().optional(),order_id:k$1().optional(),affiliation:k$1().optional(),subtotal:j$1().optional(),total:j$1().optional(),revenue:j$1().optional(),shipping:j$1().optional(),tax:j$1().optional(),discount:j$1().optional(),coupon_id:k$1().optional(),coupon_name:k$1().optional(),reason:k$1().optional(),wishlist_id:k$1().optional(),wishlist_name:k$1().optional(),share_via:k$1().optional(),share_message:k$1().optional(),recipient:k$1().optional(),review_id:k$1().optional(),review_body:k$1().optional(),rating:k$1().optional(),products:P$1(qd).optional(),event_id:k$1().optional().describe(`ID of the ticketed event (evt_xxx)`),event_name:k$1().optional().describe(`Name of the ticketed event`),event_slug:k$1().optional().describe(`URL slug of event`),event_starts_at:H$2.optional().describe(`When the event starts (naive datetime, no timezone)`),event_ends_at:H$2.optional().describe(`When the event ends (naive datetime, no timezone)`),event_status:I$1([`UPCOMING`,`LIVE`,`ENDED`,`CANCELLED`]).optional(),event_visibility:I$1([`PUBLIC`,`PRIVATE`]).optional(),event_location:k$1().optional().describe(`Venue name`),event_city:k$1().optional().describe(`Venue city`),event_country:k$1().optional().describe(`Venue country`),promoter_id:k$1().optional().describe(`ID of the promoter (pmt_xxx)`),promoter_name:k$1().optional().describe(`Name of the promoter`),promoter_slug:k$1().optional().describe(`URL slug of promoter`),admission_id:k$1().optional().describe(`ID of admission type (adm_xxx)`),admission_name:k$1().optional().describe(`Name of admission (e.g., "General Admission")`),admission_capacity:j$1().optional().describe(`Total capacity for this admission`),admission_available:j$1().optional().describe(`Tickets still available`),admission_sold:j$1().optional().describe(`Tickets already sold`),section_id:k$1().optional().describe(`ID of section (sct_xxx)`),section_name:k$1().optional().describe(`Name of section (e.g., "VIP", "General")`),section_capacity:j$1().optional().describe(`Total capacity for this section`),section_available:j$1().optional().describe(`Spots still available in section`),ticket_id:k$1().optional().describe(`Individual ticket ID (tkt_xxx)`),ticket_status:I$1([`VALID`,`REDEEMED`,`CANCELLED`]).optional(),tickets_quantity:j$1().optional().describe(`Number of tickets in transaction`),customer_id:k$1().optional().describe(`Customer ID (cus_xxx)`),customer_email:k$1().optional().describe(`Customer email`),customer_first_name:k$1().optional(),customer_last_name:k$1().optional(),price_base:j$1().nullish().describe(`Base price before fees`),price_booking_fee:j$1().nullish().describe(`Booking fee amount`),price_discount_amount:j$1().nullish().describe(`Discount amount applied`),sale_starts_at:H$2.optional().describe(`When tickets go on sale (naive datetime, no timezone)`),sale_ends_at:H$2.optional().describe(`When ticket sales end (naive datetime, no timezone)`),entry_starts_at:H$2.optional().describe(`When entry to event begins (naive datetime, no timezone)`),entry_ends_at:H$2.optional().describe(`When entry to event ends (naive datetime, no timezone)`),funnel_step:k$1().optional().describe(`Current funnel step (e.g., "browse", "cart", "checkout")`),time_to_purchase:j$1().optional().describe(`Seconds from first view to purchase`),session_duration:j$1().optional().describe(`Total session duration in seconds`),referrer_type:I$1([`DIRECT`,`SOCIAL`,`EMAIL`,`SEARCH`,`REFERRAL`,`AD`]).optional(),campaign_id:k$1().optional().describe(`Marketing campaign ID`),affiliate_id:k$1().optional().describe(`Affiliate partner ID`),promo_code_used:k$1().optional().describe(`Promotional code applied`),platform:I$1([`WEB`,`MOBILE_WEB`,`IOS`,`ANDROID`]).optional(),app_version:k$1().optional(),device_type:I$1([`MOBILE`,`TABLET`,`DESKTOP`]).optional()}),Zd=F$1({session_id:k$1(),user_id:k$1().optional(),anonymous_id:k$1().optional(),utm_source:k$1().optional(),utm_medium:k$1().optional(),utm_campaign:k$1().optional(),utm_term:k$1().optional(),utm_content:k$1().optional(),page:F$1({url:k$1(),path:k$1(),title:k$1()}),referrer:k$1().optional(),user_agent:k$1().optional(),ip:k$1().optional(),geo:F$1({country:k$1().optional().describe(`Country code (e.g., "AU")`),countryName:k$1().optional().describe(`Country name (e.g., "Australia")`),region:k$1().optional().describe(`State/province code`),regionName:k$1().optional().describe(`State/province name (e.g., "New South Wales")`),city:k$1().optional().describe(`City name`),latitude:k$1().optional().describe(`Latitude`),longitude:k$1().optional().describe(`Longitude`)}).optional(),fbc:k$1().optional().describe(`Facebook click ID`),fbp:k$1().optional().describe(`Facebook browser ID`),ttclid:k$1().optional().describe(`TikTok click ID`)}),Qd=F$1({id:k$1(),eventId:k$1().min(1).describe(`Event being tracked (evt_123)`),teamId:k$1().min(1).describe(`Team ID (team_123)`),promoterId:k$1().min(1).describe(`Promoter ID (pmt_123)`),eventType:Gd,timestamp:k$1(),date:k$1().describe(`YYYY-MM-DD`),hour:j$1().int().min(0).max(23),properties:Xd,context:Zd,productId:k$1().optional(),createdAt:k$1(),updatedAt:k$1()}),$d=Qd.omit({id:true,timestamp:true,date:true,hour:true,createdAt:true,updatedAt:true}).meta({description:`Schema for tracking an analytics event. Excludes system-generated fields`}),ef=F$1({legacyOrgId:k$1().min(1),legacyEventId:k$1().min(1),legacyTeamId:k$1().min(1),legacyEventName:k$1().optional(),legacyEventSlug:k$1().optional(),legacyEventCreatedAt:_s([k$1(),ps(),rs()]).optional(),legacyTeamCreatedAt:_s([k$1(),ps(),rs()]).optional()}),tf=F$1({eventName:k$1().min(1).optional(),eventType:Gd.optional(),eventId:k$1().min(1).optional(),teamId:k$1().min(1).optional(),promoterId:k$1().min(1).optional(),properties:Cs(k$1(),ss()).optional(),context:Zd.partial().optional(),legacyContext:ef.optional()}).passthrough().meta({description:`Compatibility schema for legacy Sash analytics payloads that require server-side ID normalization`}),nf=_s([$d,tf]).meta({description:`Analytics ingress schema accepting both canonical payloads and legacy Sash-compatible payloads`});Au({eventId:k$1().meta({description:`Event ID to get tracking events for`}),limit:L$1().int().positive().optional().meta({description:`Maximum number of events to return`})}).meta({description:`Schema for retrieving tracking events for an event`});F$1({id:k$1(),email:No(),firstName:k$1(),lastName:k$1(),imageUrl:k$1().url().optional(),tenantId:k$1(),createdAt:k$1().datetime(),updatedAt:k$1().datetime()});const vf=I$1([`AIRWALLEX`,`STRIPE`]),bf=F$1({id:k$1().readonly().meta({examples:[b$1.Beneficiary.id],description:`A unique identifier for this beneficiary.`}),createdAt:D$1().readonly().meta({examples:[b$1.Beneficiary.createdAt],description:`Timestamp in ISO 8601 format when this beneficiary was created.`}),updatedAt:D$1().readonly().meta({examples:[b$1.Beneficiary.updatedAt],description:`Timestamp in ISO 8601 format when this beneficiary was last updated.`}),name:k$1().meta({examples:[b$1.Beneficiary.name],description:`The account name for this beneficiary.`}),currency:R$1.meta({examples:[b$1.Beneficiary.currency],description:`Three-letter ISO 4217 currency code for payouts.`}),gateway:vf.meta({examples:[`STRIPE`],description:`The payment gateway used for processing payouts.`}),gatewayId:k$1().meta({examples:[b$1.Beneficiary.gatewayId],description:`The identifier assigned by the payment gateway to this account.`}),teamId:k$1().meta({description:`Team that owns this beneficiary account.`}),teamIds:P$1(k$1()).meta({examples:[[]],description:`List of team IDs this beneficiary is assigned to. Empty array means available to all teams.`}),venueIds:P$1(k$1()).meta({examples:[[]],description:`List of venue IDs this beneficiary is assigned to. Empty array means team-level only (available to all venues).`})}).meta({description:`beneficiary`}),xf=F$1({city:k$1().optional(),country_code:k$1(),postcode:k$1().optional(),state:k$1().optional(),street_address:k$1().optional()}),Sf=F$1({account_currency:k$1(),account_name:k$1(),account_number:k$1().optional(),account_routing_type1:k$1().optional(),account_routing_value1:k$1().optional(),account_routing_type2:k$1().optional(),account_routing_value2:k$1().optional(),bank_account_category:k$1().optional(),bank_branch:k$1().optional(),bank_country_code:k$1(),bank_name:k$1().optional(),bank_street_address:k$1().optional(),binding_mobile_number:k$1().optional(),fingerprint:k$1().optional(),iban:k$1().optional(),local_clearing_system:k$1().optional(),swift_code:k$1().optional(),transaction_reference:k$1().optional(),account_identifier_type:k$1().optional(),account_identifier_value:k$1().optional()}),Cf=F$1({transfer_methods:P$1(I$1([`SWIFT`,`LOCAL`])).meta({examples:[[`LOCAL`]],description:`Transfer methods supported for this beneficiary`}),beneficiary:F$1({company_name:k$1().optional(),date_of_birth:k$1().optional(),entity_type:k$1().meta({examples:[`COMPANY`],description:`Whether the beneficiary is PERSONAL or COMPANY`}),first_name:k$1().optional(),last_name:k$1().optional(),address:xf,bank_details:Sf,additional_info:F$1({personal_email:No().optional()}).optional()}).meta({description:`Beneficiary details including personal/company info, address, and bank details`})}).meta({description:`Complete beneficiary request structure for Airwallex validation`}),wf=Cf.extend({id:k$1().optional()}),Tf=bf.omit({id:true,createdAt:true,updatedAt:true,currency:true}).extend({currency:R$1.meta({examples:[b$1.Beneficiary.currency],description:`Three-letter ISO 4217 currency code for payouts to this beneficiary account`}),airwallex:wf.optional().meta({examples:[b$1.AirwallexBeneficiary],description:`Airwallex-specific beneficiary details including bank account information and address (required when gateway is AIRWALLEX)`}),teamIds:P$1(k$1()).optional().default([]).meta({examples:[[]],description:`List of team IDs to assign this beneficiary to. Empty array or omitted means available to all teams.`}),venueIds:P$1(k$1()).optional().default([]).meta({examples:[[]],description:`List of venue IDs to assign this beneficiary to. Empty array or omitted means team-level only.`})}).meta({description:`Schema for creating a new beneficiary account for receiving payouts`}),Ef=bf.pick({id:true}).meta({description:`Schema for retrieving a single beneficiary by its unique identifier`}),Df=Ef.meta({description:`Schema for deleting a beneficiary account - requires the beneficiary ID`}),Of=F$1({teamId:k$1().optional().meta({examples:[b$1.Team.id],description:`Optional identifier of the team whose beneficiaries to list. When provided, only beneficiaries for that team are returned.`}),gateway:I$1([`AIRWALLEX`,`STRIPE`]).optional().meta({examples:[b$1.Beneficiary.gateway],description:`Filter beneficiaries by payment gateway provider (optional)`}),currency:R$1.optional().meta({examples:[b$1.Beneficiary.currency],description:`Filter beneficiaries by currency code (optional)`}),query:k$1().optional().meta({examples:[`beneficiary`],description:`Optional search query to filter beneficiaries by name or gateway identifier. When provided, search-backed pagination is used.`}),limit:U$2(`beneficiaries`).optional(),cursor:k$1().optional().meta({examples:[`eyJpZCI6ImJlbl8wMWpwczVjZ3NlNW42bWcxeW1rZXc5dHNmaCJ9`],description:`Pagination cursor returned by a previous request. Omit on the first request.`})}).meta({description:`Query parameters for listing beneficiaries with pagination and optional filters`}),kf=G$2(bf,`beneficiaries`),Af=F$1({beneficiary:bf}),jf=F$1({min:j$1().optional().meta({description:`Minimum number of time units for the transfer`}),max:j$1().optional().meta({description:`Maximum number of time units for the transfer`}),unit:k$1().optional().meta({examples:[`day`],description:`Time unit (e.g., 'day', 'hour')`})}).meta({description:`Expected transfer completion time range`}),Mf=F$1({min:j$1().optional().meta({description:`Minimum transfer amount`}),max:j$1().optional().meta({description:`Maximum transfer amount`})}).meta({description:`Transfer amount limits`}),Nf=F$1({label:k$1().meta({description:`Display label for the option`}),value:k$1().meta({description:`Value to submit when selected`}),flightTime:jf.optional().meta({description:`Expected transfer time for TRANSFER_METHOD options`}),transferLimit:Mf.optional().meta({description:`Transfer amount limits for TRANSFER_METHOD options`}),processingTime:k$1().optional().meta({description:`Human-readable processing time description`})}).meta({description:`A selectable option in a form field`}),Pf=F$1({type:I$1([`INPUT`,`SELECT`,`RADIO`,`TRANSFER_METHOD`,`DYNAMIC_SELECT`]).meta({examples:[`INPUT`],description:`The type of form input to render`}),label:k$1().optional().meta({description:`Display label for the field`}),placeholder:k$1().optional().meta({description:`Placeholder text for input fields`}),description:k$1().optional().meta({description:`Detailed description of the field`}),tip:k$1().optional().meta({description:`Tooltip information shown on hover`}),example:k$1().optional().meta({description:`Example value for the field`}),default:k$1().optional().meta({description:`Default value to pre-populate the field`}),key:k$1().optional().meta({description:`Unique key identifier for the field`}),options:P$1(Nf).optional().meta({description:`Available options for SELECT and RADIO field types`}),refresh:N$1().optional().meta({description:`When true, changing this field's value should trigger a schema refresh. Note: only documented API parameters (transfer_method, local_clearing_system) actually update the schema.`})}).meta({description:`Field definition containing type, label, options, and metadata from Airwallex`}),Ff=F$1({pattern:k$1().optional().meta({description:`Regex pattern for field validation`}),type:k$1().optional().meta({description:`Validation type identifier`})}).meta({description:`Validation rules for a form field`}),If=F$1({path:k$1().meta({examples:[`beneficiary.bank_details.account_number`],description:`Dot-notation path to the field in the beneficiary request object`}),enabled:N$1().meta({examples:[true],description:`Whether this field should be displayed`}),required:N$1().meta({examples:[true],description:`Whether this field is required for submission`}),field:Pf.optional().meta({description:`Field definition with type, label, and options`}),rule:Ff.optional().meta({description:`Validation rules for the field`})}).meta({description:`A single field in the beneficiary form schema with display and validation rules`}),Lf=F$1({bankCountryCode:k$1().regex(/^[A-Z]{2}$/).meta({examples:[`AU`],description:`Two-letter ISO 3166-1 alpha-2 country code for the bank location`}),accountCurrency:R$1.meta({examples:[`AUD`],description:`Three-letter ISO 4217 currency code for the beneficiary account`}),entityType:I$1([`PERSONAL`,`COMPANY`]).meta({examples:[`COMPANY`],description:`Whether the beneficiary is an individual or a company`}),transferMethod:I$1([`LOCAL`,`SWIFT`]).optional().meta({examples:[`LOCAL`],description:`Transfer method: SWIFT for international wire transfers, LOCAL for domestic transfers`}),localClearingSystem:k$1().optional().meta({examples:[`NPP`],description:`Local clearing system for domestic transfers (e.g., NPP, BANK_TRANSFER, BPAY for Australia). Only applicable when transferMethod is LOCAL.`}),fieldValues:Cs(k$1(),k$1()).optional().meta({examples:[{"beneficiary.bank_details.account_routing_type1":`phone_number`}],description:`Current values of fields with refresh=true. Used to get dynamic schema updates based on user selections.`})}).meta({description:`Parameters to fetch the form schema for a beneficiary.`}),Rf=F$1({fields:P$1(If).meta({description:`Array of form fields with their display and validation configuration`}),selectedTransferMethod:I$1([`LOCAL`,`SWIFT`]).optional().meta({examples:[`LOCAL`],description:`The transfer method used to generate this schema. When not provided in the request, LOCAL is auto-selected if available.`}),selectedLocalClearingSystem:k$1().optional().meta({examples:[`NPP`],description:`The local clearing system used to generate this schema, if applicable.`})}).meta({description:`Form schema response containing all fields needed to collect beneficiary details`}),zf=v$1.route({method:`GET`,path:`/beneficiaries/schema`,summary:`Get beneficiary form schema`,description:`Returns the form schema containing all fields required to create a beneficiary for the given country, currency, entity type, and transfer method combination. Use this to dynamically render the beneficiary creation form.`,tags:[`Beneficiaries`]}).input(Lf.strict()).output(Rf),Bf=F$1({source:k$1().meta({examples:[`beneficiary.bank_details.account_number`],description:`Dot-notation path to the field that failed validation`}),code:k$1().meta({examples:[`001`],description:`Airwallex validation error code`}),message:k$1().meta({examples:[`This field is required`],description:`Human-readable error message`})}).meta({description:`Details about a single validation error for a field`}),Vf=Cf.meta({description:`Beneficiary request data to validate against Airwallex rules before creating`}),Hf=F$1({valid:N$1().meta({examples:[true],description:`Whether the beneficiary request passed all validation rules`}),errors:P$1(Bf).optional().meta({description:`Array of validation errors when valid is false. Each error contains the field path, error code, and message.`})}).meta({description:`Validation result indicating whether the beneficiary request is valid for creation`}),Uf=v$1.route({method:`POST`,path:`/beneficiaries/validate`,summary:`Validate beneficiary request`,description:`Validates a beneficiary request against Airwallex rules without creating the beneficiary. Use this to provide real-time validation feedback before submission.`,tags:[`Beneficiaries`]}).input(Vf.strict()).output(Hf),Wf=v$1.route({method:`GET`,path:`/events/{eventId}/admissions/{id}`,summary:`Get admission by ID`,tags:[`Admissions`]}).input(Al.strict()).output(Il),Gf=v$1.route({method:`POST`,path:`/events/{eventId}/admissions`,summary:`Create a new admission`,tags:[`Admissions`]}).input(Ol.strict()).output(Il),Kf=v$1.route({method:`PUT`,path:`/events/{eventId}/admissions/{id}`,summary:`Update an admission`,tags:[`Admissions`]}).input(Ll.strict()).output(Il);var qf={get:Wf,list:v$1.route({method:`GET`,path:`/events/{eventId}/admissions`,summary:`List admissions`,description:`Returns admissions with cursor-based pagination. Automatically uses search-backed pagination when query parameter is provided for full-text search capabilities.`,tags:[`Admissions`]}).input(jl.strict()).output(Ml),create:Gf,update:Kf,remove:v$1.route({method:`DELETE`,path:`/events/{eventId}/admissions/{id}`,summary:`Delete an admission`,tags:[`Admissions`]}).input(kl.strict()).output(Il),quote:v$1.route({method:`POST`,path:`/events/{eventId}/admissions/quote`,summary:`Create an admission quote`,tags:[`Admissions`]}).input(Pl.strict()).output(Fl)},Jf={track:v$1.route({method:`POST`,path:`/analytics/track`,summary:`Track event`,tags:[`Analytics`]}).input(nf).output(Qd),page:v$1.route({method:`POST`,path:`/analytics/page`,summary:`Page event`,tags:[`Analytics`]}).input(nf).output(Qd),identify:v$1.route({method:`POST`,path:`/analytics/identify`,summary:`Identify event`,tags:[`Analytics`]}).input(nf).output(Qd),alias:v$1.route({method:`POST`,path:`/analytics/alias`,summary:`Alias event`,tags:[`Analytics`]}).input(nf).output(Qd),group:v$1.route({method:`POST`,path:`/analytics/group`,summary:`Group event`,tags:[`Analytics`]}).input(nf).output(Qd),screen:v$1.route({method:`POST`,path:`/analytics/screen`,summary:`Screen event`,tags:[`Analytics`]}).input(nf).output(Qd)};const Yf=v$1.route({method:`GET`,path:`/beneficiaries/{id}`,summary:`Get beneficiary by ID`,tags:[`Beneficiaries`]}).input(Ef.strict()).output(Af),Xf=v$1.route({method:`POST`,path:`/beneficiaries`,summary:`Create a new beneficiary`,tags:[`Beneficiaries`]}).input(Tf.strict()).output(Af);var Zf={get:Yf,list:v$1.route({method:`GET`,path:`/beneficiaries`,summary:`List beneficiaries with cursor-based pagination`,description:"Returns beneficiary data with cursor-based pagination and optional full-text search via the `query` parameter.",tags:[`Beneficiaries`]}).input(Of.strict()).output(kf),create:Xf,remove:v$1.route({method:`DELETE`,path:`/beneficiaries/{id}`,summary:`Delete a beneficiary`,tags:[`Beneficiaries`]}).input(Df.strict()).output(Af),schema:zf,validate:Uf};const Qf=I$1([`AMOUNT`,`PERCENT`]),ep=I$1([`TEAM`,`PROMOTER`,`EVENTS`,`SECTIONS`,`ADMISSIONS`]),np=F$1({id:k$1().readonly().meta({examples:[b$1.Coupon.id],description:`A unique identifier for this coupon.`}),couponId:k$1().optional().readonly().meta({examples:[b$1.Coupon.couponId],description:`Duplicate of id field for GSI queries.`}),createdAt:D$1().readonly().meta({examples:[b$1.Coupon.createdAt],description:`Timestamp in ISO 8601 format when this coupon was created.`}),updatedAt:D$1().readonly().meta({examples:[b$1.Coupon.updatedAt],description:`Timestamp in ISO 8601 format when this coupon was last updated.`}),name:k$1().meta({examples:[b$1.Coupon.name],description:`Internal label for the coupon, visible to event organisers.`}),active:N$1().optional().meta({examples:[b$1.Coupon.active],description:`Whether this coupon is currently active.`}),kind:Qf.meta({examples:[`PERCENT`],description:`Type of discount this coupon gives: a fixed amount or a percentage.`}),filter:ep.meta({examples:[`EVENTS`],description:`Scope of the coupon. TEAM applies to all events in the team. PROMOTER applies to all events by specified promoters. EVENTS/SECTIONS/ADMISSIONS apply to specific items.`}),currency:R$1.optional().meta({examples:[b$1.Coupon.currency],description:`Three-letter ISO 4217 currency code. Required for AMOUNT coupons. Optional for PERCENT coupons - when omitted, applies to all currencies.`}),discount:j$1().min(0).meta({examples:[b$1.Coupon.discount],description:`The discount value. If kind is 'amount', this is a currency amount. If kind is 'percent', this is a percentage.`}),limit:j$1().meta({examples:[b$1.Coupon.limit],description:`Maximum number of times the coupon can be redeemed across all customers.`}),uses:j$1().optional().meta({examples:[b$1.Coupon.uses],description:`Number of times this coupon has been redeemed so far.`}),promoters:P$1(F$1({id:k$1().meta({description:`Identifier of a promoter this coupon applies to.`}),name:k$1().meta({description:`Name of a promoter this coupon applies to.`}),slug:k$1().meta({description:`URL slug of a promoter this coupon applies to.`})})).optional().meta({description:`List of promoters this coupon applies to when filter is PROMOTER.`}),events:P$1(F$1({id:k$1().meta({description:`Identifier of an event this coupon applies to.`}),name:k$1().meta({description:`Name of an event this coupon applies to.`}),slug:k$1().meta({description:`URL slug of an event this coupon applies to.`})})).optional().meta({description:`List of events this coupon applies to when filter is EVENTS.`}),sections:P$1(F$1({id:k$1().meta({description:`Identifier of a section this coupon applies to.`}),name:k$1().meta({description:`Name of a section this coupon applies to.`}),eventId:k$1().meta({description:`Identifier of the event this section belongs to.`})})).optional().meta({description:`List of sections this coupon applies to when filter is 'sections'.`}),admissions:P$1(F$1({id:k$1().meta({description:`Identifier of an admission this coupon applies to.`}),name:k$1().meta({description:`Name of an admission this coupon applies to.`}),eventId:k$1().meta({description:`Identifier of the event this admission belongs to.`})})).optional().meta({description:`List of admissions this coupon applies to when filter is 'admissions'.`}),saleStartsAt:H$2.meta({examples:[b$1.Coupon.saleStartsAt],description:`Wall clock time when this coupon becomes valid (no timezone, ISO 8601 format: YYYY-MM-DDTHH:mm:ss)`}),saleEndsAt:H$2.optional().meta({examples:[b$1.Coupon.saleEndsAt],description:`Wall clock time when this coupon expires (no timezone, ISO 8601 format: YYYY-MM-DDTHH:mm:ss)`}),teamId:k$1().meta({description:`Team that created this coupon.`})}).meta({description:`coupon`}),rp=F$1({id:k$1().readonly().meta({examples:[b$1.CouponCode.id],description:`A unique identifier for this coupon code.`}),createdAt:D$1().readonly().meta({examples:[b$1.CouponCode.createdAt],description:`Timestamp in ISO 8601 format when this coupon code was created.`}),updatedAt:D$1().readonly().meta({examples:[b$1.CouponCode.updatedAt],description:`Timestamp in ISO 8601 format when this coupon code was last updated.`}),name:k$1().meta({examples:[b$1.CouponCode.name],description:`The code string that customers enter to redeem the coupon.`}),active:N$1().meta({examples:[b$1.CouponCode.active],description:`Whether this coupon code is currently enabled for use.`}),couponId:k$1().meta({examples:[b$1.Coupon.id],description:`Identifier of the coupon to which this code belongs.`}),teamId:k$1().meta({description:`Team that created this coupon code.`}),uses:j$1().int().nonnegative().default(0).readonly().meta({examples:[0],description:`Number of times this specific coupon code has been used in successful orders.`})}).meta({description:`coupon-code`}),ip=rp.pick({id:true});F$1({couponId:k$1().meta({examples:[b$1.Coupon.id]})});F$1({name:k$1(),couponId:k$1().optional().meta({examples:[b$1.Coupon.id]})});const sp=rp.omit({id:true,createdAt:true,updatedAt:true,uses:true}),cp=rp.omit({createdAt:true,updatedAt:true,couponId:true,teamId:true,uses:true}).partial().extend({id:rp.shape.id}),lp=ip,up=F$1({couponId:k$1().optional().meta({examples:[b$1.Coupon.id],description:`Optional filter to retrieve coupon codes for a specific coupon`}),teamId:k$1().optional().meta({examples:[`tem_01jqpjksnsen9vprw95et60t2m`],description:`Optional filter to retrieve coupon codes created by a specific team`}),active:Qs().optional().meta({examples:[true],description:`Optional filter to retrieve only active or inactive coupon codes`}),query:k$1().optional().meta({examples:[`SUMMER`],description:`Optional search query to filter coupon codes by name. When provided, search-backed pagination is used.`}),limit:U$2(`coupon codes`).optional(),cursor:k$1().optional().meta({examples:[`eyJpZCI6ImNwY18wMWpwczVjZ3NmenR3N2h4Y3ZyMndmdGsyIn0`],description:`Pagination cursor returned by a previous request. Omit on the first request.`})}).meta({description:`Schema for listing coupon codes with optional filtering, search, and pagination`}),dp=G$2(rp,`codes`),fp=F$1({couponCode:rp}),pp=np.omit({id:true,createdAt:true,updatedAt:true}).meta({description:`Schema for creating a new coupon without system-generated fields`}),mp=np.pick({id:true}).meta({description:`Schema for retrieving a single coupon by ID`}),hp=mp.meta({description:`Schema for deleting a coupon by ID with optional soft-delete filtering`}),gp=F$1({teamId:k$1().meta({examples:[b$1.Team.id],description:`Unique identifier of the team whose coupons to retrieve`}),active:Qs().optional().meta({examples:[true],description:`Optional filter to retrieve only active or inactive coupons`}),query:k$1().optional().meta({examples:[`Half Price`],description:`Optional search query to filter coupons by name or description. When provided, search-backed pagination is used.`}),limit:U$2(`coupons`).optional(),cursor:k$1().optional().meta({examples:[`eyJpZCI6ImNwbl8wMWpwczVjZ3NmenMxa3NxYWV0NWhiYThhYyJ9`],description:`Pagination cursor returned by a previous request. Omit on the first request.`})}).meta({description:`Schema for listing coupons belonging to a specific team with optional filtering and pagination`}),_p=G$2(np,`coupons`),vp=F$1({coupon:np}),yp=np.omit({createdAt:true,updatedAt:true,teamId:true}).partial().extend({id:np.shape.id.meta({examples:[b$1.Coupon.id],description:`Unique identifier of the coupon to update`}),saleEndsAt:H$2.nullable().optional().meta({examples:[b$1.Coupon.saleEndsAt],description:`Expiry time. Pass null to remove end date; omit to leave unchanged.`}),currency:R$1.nullable().optional().meta({examples:[`AUD`,`USD`,`GBP`],description:`Three-letter ISO 4217 currency code. Pass null to clear; omit to leave unchanged.`})}).meta({description:`Schema for updating an existing coupon.`}),bp=v$1.route({method:`GET`,path:`/coupon-codes/{id}`,summary:`Get coupon code by ID`,tags:[`Coupon Codes`]}).input(ip.strict()).output(fp),xp=v$1.route({method:`POST`,path:`/coupon-codes`,summary:`Create a new coupon code`,tags:[`Coupon Codes`]}).input(sp.strict()).output(fp),Sp=v$1.route({method:`PUT`,path:`/coupon-codes/{id}`,summary:`Update a coupon code`,tags:[`Coupon Codes`]}).input(cp.strict()).output(fp);var Cp={get:bp,list:v$1.route({method:`GET`,path:`/coupon-codes`,summary:`List coupon codes with cursor-based pagination`,description:"Returns coupon code data with cursor-based pagination and optional full-text search via the `query` parameter.",tags:[`Coupon Codes`]}).input(up.strict()).output(dp),create:xp,update:Sp,remove:v$1.route({method:`DELETE`,path:`/coupon-codes/{id}`,summary:`Delete a coupon code`,tags:[`Coupon Codes`]}).input(lp.strict()).output(fp)};const wp=v$1.route({method:`GET`,path:`/coupons/{id}`,summary:`Get coupon by ID`,tags:[`Coupons`]}).input(mp.strict()).output(vp),Tp=v$1.route({method:`POST`,path:`/coupons`,summary:`Create a new coupon`,tags:[`Coupons`]}).input(pp.strict()).output(vp),Ep=v$1.route({method:`PUT`,path:`/coupons/{id}`,summary:`Update a coupon`,tags:[`Coupons`]}).input(yp.strict()).output(vp);var Dp={get:wp,list:v$1.route({method:`GET`,path:`/coupons`,summary:`List coupons with cursor-based pagination`,description:"Returns coupon data with cursor-based pagination and optional full-text search via the `query` parameter.",tags:[`Coupons`]}).input(gp.strict()).output(_p),create:Tp,update:Ep,remove:v$1.route({method:`DELETE`,path:`/coupons/{id}`,summary:`Delete a coupon`,tags:[`Coupons`]}).input(hp.strict()).output(vp),code:Cp},Op={suggestTags:v$1.route({method:`POST`,path:`/events/tags`,summary:`Suggest event genres and categories`,description:`Uses AI to analyze event description and optional artwork to suggest relevant music genres and event categories. Returns up to 5 genres and 10 categories with a confidence score.`,tags:[`Events`]}).input(Rl.strict()).output(zl)};const kp=F$1({eventId:B$1.meta({description:`Event to like`})}).meta({description:`Request to like an event`}),Ap=F$1({limit:U$2(`likes`),cursor:k$1().optional().meta({description:`Pagination cursor from previous response. Used to fetch next page of results`})}).meta({description:`Query parameters for listing the current user's liked events with pagination. Returns events sorted by most recently liked first.`}),jp=F$1({tenantId:k$1().readonly().meta({description:`Tenant ID for multi-tenant isolation`}),userId:uc.readonly().meta({description:`User who liked the event`}),eventId:B$1.meta({description:`Event the user liked`}),createdAt:D$1().readonly().meta({description:`Timestamp when the user liked the event`})}).meta({description:`Represents a user's like on an event. Used for tracking popular events and building personalized recommendations.`}),Mp=G$2(jp,`likes`).meta({description:`Paginated list of event likes. Use cursor-based pagination to navigate through results.`}),Np=F$1({eventId:B$1.meta({description:`Event to remove like from`})}).meta({description:`Request to remove the current user's like from an event`}),Pp=F$1({like:jp});var Fp={add:v$1.route({method:`POST`,path:`/events/{eventId}/like`,summary:`Like an event`,description:`Like an event as the current user. Atomically increments the event's likes counter.`,tags:[`Events`]}).input(kp).output(Pp),remove:v$1.route({method:`DELETE`,path:`/events/{eventId}/like`,summary:`Remove like from an event`,description:`Remove the current user's like from an event. Atomically decrements the event's likes counter.`,tags:[`Events`]}).input(Np).output(ds()),list:v$1.route({method:`GET`,path:`/events/likes`,summary:`List liked events`,description:`List all events the current user has liked, with cursor-based pagination.`,tags:[`Events`]}).input(Ap).output(Mp)};const Ip=F$1({id:lc.readonly().meta({examples:[b$1.Location.id],description:`Location identifier`}),googlePlaceId:k$1().optional().meta({examples:[`ChIJP3Sa8ziYEmsRUKgyFmh9AQM`],description:`Google Place ID for this location`}),createdAt:D$1().meta({examples:[b$1.Location.createdAt],description:`Timestamp in ISO 8601 format when the location was created`}),updatedAt:D$1().meta({examples:[b$1.Location.updatedAt],description:`Timestamp in ISO 8601 format when the location was last updated`}),name:k$1().meta({examples:[b$1.Location.name],description:`Location name`}),address:k$1().meta({examples:[b$1.Location.address],description:`Formatted address`}),city:k$1().optional().meta({examples:[b$1.Location.city],description:`City name`}),state:k$1().optional().meta({examples:[b$1.Location.state],description:`State or region`}),postcode:k$1().optional().meta({examples:[b$1.Location.postcode],description:`Postal code`}),country:k$1().meta({examples:[b$1.Location.country],description:`Country name`}),latitude:j$1().min(-90).max(90).meta({examples:[b$1.Location.latitude],description:`Latitude coordinate`}),longitude:j$1().min(-180).max(180).meta({examples:[b$1.Location.longitude],description:`Longitude coordinate`}),timeZone:k$1().min(1).regex(/^[A-Za-z0-9_+-]+(\/[A-Za-z0-9_+-]+)*$/,{message:`Must be a valid IANA timezone identifier format`}).meta({examples:[b$1.Location.timeZone],description:`IANA timezone identifier (e.g., 'America/New_York', 'Europe/London', 'Australia/Sydney', 'UTC'). Must be validated against the IANA timezone database where used.`}),types:P$1(k$1()).optional().meta({examples:[[`establishment`,`point_of_interest`,`stadium`]],description:`Google Place types indicating the category and nature of this location`}),description:k$1().optional().meta({examples:[`Historic outdoor amphitheater known for summer concerts`],description:`AI-generated description of the place, when available`}),image:V$1.optional().meta({description:`Primary location photo`}),venueId:cc.optional().meta({description:`Venue identifier if this location is a managed venue on the platform`})}).meta({description:`Location with full details including coordinates and timezone`}),Lp=Ip.omit({venueId:true}).extend({venue:F$1({id:cc.meta({description:`Venue identifier`}),name:k$1().meta({description:`Venue name`}),slug:k$1().meta({description:`URL-friendly venue slug`}),teamId:k$1().meta({description:`Team that owns this venue`}),approval:$s.meta({description:`Venue approval status`}),image:V$1.optional().meta({description:`Venue image`}),description:k$1().optional().meta({description:`Venue description`})}).optional().meta({description:`Denormalized venue details if this location is a managed venue. Only included when venue is approved.`})}),Rp=F$1({id:pc.readonly().meta({examples:[b$1.Promoter.id],description:`Unique identifier for the promoter organization`}),createdAt:D$1().readonly().meta({examples:[b$1.Promoter.createdAt],description:`Timestamp in ISO 8601 format when the promoter was created`}),updatedAt:D$1().readonly().meta({examples:[b$1.Promoter.updatedAt],description:`Timestamp in ISO 8601 format when the promoter was last updated`}),name:k$1().min(3).max(30).meta({examples:[b$1.Promoter.name],description:`Display name of the promoter organization. Must be between 3 and 30 characters`}),slug:k$1().min(3).max(30).meta({examples:[b$1.Promoter.slug],description:`URL-friendly slug for the promoter organization. Must be unique and between 3 and 30 characters`}),teamId:sc.meta({examples:[`tem_01jqpjksnsen9vprw95et60t2m`],description:`ID of the team that owns this promoter. Establishes team-based organization and permissions.`}),description:k$1().meta({examples:[b$1.Promoter.description],description:`Detailed description of the promoter organization and their events`}),approval:$s.meta({examples:[b$1.Promoter.approval],description:`Approval status of the promoter. PENDING: awaiting review, APPROVED: can create events, REJECTED: cannot operate`}),image:V$1.optional().meta({description:`Optional promotional image for the promoter organization with dimensions and alt text`}),location:Lp.meta({description:`Primary location details for the promoter including address, coordinates, and timezone`}),geohash:k$1().meta({examples:[b$1.Promoter.geohash],description:`Geohash encoding of the promoter's location for efficient spatial queries`}),tracking:F$1({fbId:k$1().optional().meta({examples:[b$1.Promoter.tracking.fbId],description:`Facebook pixel ID for tracking conversions and analytics`}),gtmId:k$1().optional().meta({examples:[b$1.Promoter.tracking.gtmId],description:`Google Tag Manager container ID for web analytics`}),tikTokId:k$1().optional().meta({examples:[b$1.Promoter.tracking.tikTokId],description:`TikTok pixel ID for advertising and conversion tracking`})}).optional().meta({description:`Optional tracking configuration for analytics and advertising platforms`}),metadata:Mc}).meta({description:`Promoter organization with location and approval status`}),zp=F$1({id:k$1().readonly().meta({examples:[b$1.Section.id],description:`Unique identifier for the section`}),createdAt:D$1().readonly().meta({examples:[b$1.Section.createdAt],description:`Timestamp when the section was created in ISO 8601 format`}),updatedAt:D$1().readonly().meta({examples:[b$1.Section.updatedAt],description:`Timestamp when the section was last updated in ISO 8601 format`}),name:k$1().meta({examples:[b$1.Section.name],description:`Display name of the section (e.g., 'VIP Area', 'General Admission')`}),capacity:Oc().prefault(-1).meta({examples:[b$1.Section.capacity],description:`Maximum number of attendees for this section. Use -1 for unlimited capacity`}),limit:kc().prefault(-1).meta({examples:[b$1.Section.limit??-1],description:`Maximum number of tickets for this section that can be purchased in a single order. A value of -1 indicates unlimited`}),available:j$1().min(-1).readonly().meta({examples:[b$1.Section.available],description:`Number of tickets currently available for purchase in this section. Use -1 when capacity is unlimited`}),sold:j$1().min(0).readonly().meta({examples:[b$1.Section.sold],description:`Number of tickets sold for this section`}),reserved:j$1().readonly().meta({examples:[b$1.Section.reserved],description:`Number of tickets currently reserved (in pending orders) for this section`}),order:j$1().min(0).meta({examples:[b$1.Section.order],description:`Display order of the section. Lower numbers appear first in listings`}),location:Ip.meta({description:`Physical location details for the section`}),passcode:k$1().optional().meta({examples:[`VIPACCESS`],description:`Code required to reveal all admissions within this section. Case-insensitive comparison`}),teamId:k$1().meta({description:`Team that owns this section. Denormalized for efficient queries.`}),promoterId:k$1().meta({examples:[b$1.Section.promoterId],description:`Unique identifier of the promoter who owns this section`}),eventId:k$1().meta({examples:[b$1.Section.eventId],description:`Unique identifier of the event this section belongs to`}),eventSlug:k$1().meta({examples:[b$1.Section.eventSlug],description:`URL-friendly identifier of the event this section belongs to`})}).meta({description:`A section represents a distinct area or tier within an event venue with its own capacity and pricing`}),Bp=I$1([`UPCOMING`,`ENDED`]),Hp=I$1([`PUBLIC`,`PRIVATE`,`SCHEDULED`,`PASSCODE`,`CANCELLED`]),Wp=F$1({id:B$1.readonly().meta({examples:[b$1.Event.id],description:`A unique identifier for this event`}),createdAt:D$1().readonly().meta({examples:[b$1.Event.createdAt],description:`Timestamp in ISO 8601 format when this event was created`}),updatedAt:D$1().readonly().meta({examples:[b$1.Event.updatedAt],description:`Timestamp in ISO 8601 format when this event was last updated`}),name:k$1().meta({examples:[b$1.Event.name],description:`The title of the event shown to attendees`}),slug:k$1().meta({examples:[b$1.Event.slug],description:`URL-friendly identifier for the event`}),description:k$1().meta({examples:[b$1.Event.description],description:`Detailed description of the event`}),approval:$s.meta({examples:[`APPROVED`],description:`Approval status of the event`}),status:Bp.meta({examples:[`UPCOMING`,`ENDED`],description:`Current stage of the event lifecycle`}),visibility:Hp.meta({examples:[`PUBLIC`],description:`Who can see the event`}),currency:R$1.meta({examples:[`AUD`],description:`Three-letter ISO 4217 currency code used for ticket prices`}),url:Lo().optional().meta({examples:[`https://example.com`],description:`External URL for the event website or ticket page`}),entryStartsAt:H$2.meta({examples:[b$1.Event.entryStartsAt],description:`Wall clock time when event entry begins (no timezone, displays same everywhere)`}),entryEndsAt:H$2.meta({examples:[b$1.Event.entryEndsAt],description:`Wall clock time when event entry ends (no timezone, displays same everywhere)`}),publishAt:H$2.meta({examples:[b$1.Event.publishAt],description:`Wall clock time when the event becomes publicly visible (no timezone)`}),images:F$1({mobile:V$1.meta({description:`Mobile-optimized image for the event`}),desktop:V$1.meta({description:`Desktop-optimized image for the event`})}),geohash:k$1().meta({examples:[b$1.Event.geohash],description:`Geohash representing the event location`}),location:Lp.meta({description:`Structured location details for the event`}),teamId:sc.meta({description:`Team that owns this event. Denormalized for efficient queries.`}),promoterId:pc.meta({examples:[b$1.Promoter.id],description:`Promoter organizing the event. Must belong to the team.`}),metadata:Mc,genres:P$1(k$1()).optional().meta({description:`Music genres for the event (1-5 genres)`,examples:[[`Tech House`,`Melodic Techno`]]}),categories:P$1(k$1()).optional().meta({description:`Event characteristics like vibe, venue type, and amenities (up to 10)`,examples:[[`Day Party`,`Open Air`,`Free Entry`]]}),featured:N$1().optional().meta({description:`Whether this event is an editorial pick`,examples:[true]}),likes:j$1().int().min(0).optional().meta({description:`Number of users who liked this event`,examples:[42]})}).meta({description:`event`}),Gp=Rp.pick({id:true,name:true,slug:true,description:true,image:true}),Kp=Wp.extend({sections:P$1(zp),admissions:P$1(W$2),promoter:Gp.optional().meta({description:`Public summary of the promoter organizing this event. Included on event detail responses only.`}),liked:N$1().optional().meta({description:`Whether the current user has liked this event`,examples:[true,false]})}),qp=F$1({event:Kp}),Jp=Wp.omit({id:true,teamId:true,createdAt:true,updatedAt:true,status:true,approval:true,geohash:true,location:true,featured:true,likes:true}).extend({slug:k$1().min(3).max(100).optional().meta({examples:[b$1.Event.slug],description:`URL-friendly slug for the event. If not provided, will be automatically generated from the name. Must be unique and between 3 and 100 characters`}),passcode:k$1().optional().meta({description:`Passcode for protected access to the event`}),locationId:lc.optional().meta({examples:[`loc_01jqpjksnsen9vprw95et60t2m`],description:`ID of an existing location. Either locationId or googlePlaceId must be provided.`}),googlePlaceId:k$1().optional().meta({examples:[`ChIJN1t_tDeuEmsRUsoyG83frY4`],description:`Google Place ID to create a new location from. Either locationId or googlePlaceId must be provided.`}),genres:ac.optional().meta({description:`Music genres for the event (1-5 genres)`,examples:[[`Tech House`,`Melodic Techno`]]}),categories:rc.meta({description:`Event characteristics like vibe, venue type, and amenities (up to 10)`,examples:[[`Day Party`,`Open Air`,`Free Entry`]]})}).refine(e=>e.locationId||e.googlePlaceId,{message:`Either locationId or googlePlaceId must be provided`}),Yp=F$1({key:k$1().min(1).meta({description:`Event key - either a unique ID (evt_xxx format) or URL-friendly slug`,examples:[b$1.Event.id,b$1.Event.slug]})}),Xp=F$1({key:k$1().min(1).meta({description:`Event key - either a unique ID (evt_xxx format) or URL-friendly slug`,examples:[b$1.Event.id,b$1.Event.slug]}),featured:N$1().meta({description:`Whether the event should be featured (editorial pick)`,examples:[true,false]})}),Zp=F$1({key:k$1().min(1).meta({description:`Event key - either a unique ID (evt_xxx format) or URL-friendly slug`,examples:[b$1.Event.id,b$1.Event.slug]}),passcode:k$1().optional().meta({description:`Passcode for accessing protected events`}),teamId:k$1().optional().meta({description:`Optional team scope. When provided, event must belong to this team.`})}),Qp=F$1({sold:j$1().min(0).meta({description:`Number of tickets sold (net of refunds)`}),reserved:j$1().min(0).meta({description:`Number of tickets reserved`}),available:j$1().min(-1).meta({description:`Number of tickets available (-1 for unlimited)`}),capacity:j$1().min(-1).meta({description:`Total capacity (-1 for unlimited)`})}),$p=F$1({status:I$1([`UPCOMING`,`ENDED`]).optional().meta({examples:[`UPCOMING`],description:`Filter events by their current lifecycle status`}),approval:$s.optional().meta({examples:[`APPROVED`],description:`Filter events by their approval status`}),visibility:I$1([`PUBLIC`,`PRIVATE`,`SCHEDULED`,`PASSCODE`]).optional().meta({examples:[`PUBLIC`],description:`Filter events by their visibility setting`}),promoterId:k$1().optional().meta({examples:[b$1.Promoter.id],description:`Filter events to only those belonging to a specific promoter. If not provided, returns events from all promoters the user has access to`}),teamId:k$1().optional().meta({description:`Filter events to only those belonging to a specific team. If not provided, returns events from all teams the user has access to`}),venueId:k$1().optional().meta({description:`Filter events to only those at a specific venue. If not provided, returns events at all venues`}),limit:L$1().min(1).max(100).prefault(20).meta({examples:[20],description:`Maximum number of events to return in each result set. Must be between 1 and 100, defaults to 20`}),cursor:k$1().optional().meta({examples:[`evt_01jps5cgsenjrazw6wswmyspa3`],description:`Cursor token for pagination. Provide the cursor from the previous response to continue fetching results`}),query:Zs().optional().meta({examples:[`Test Event`],description:`Search term to filter events by name, description, or location. Triggers full‑text search when provided`}),latitude:L$1().min(-90).max(90).optional().meta({examples:[b$1.Event.location.latitude],description:`Latitude coordinate for geographic search. Provide with longitude (and optional radius)`}),longitude:L$1().min(-180).max(180).optional().meta({examples:[b$1.Event.location.longitude],description:`Longitude coordinate for geographic search. Provide with latitude (and optional radius)`}),radius:L$1().optional().meta({examples:[20],description:`Search radius in kilometers from the provided coordinates. Defaults to 20km`}),country:k$1().optional().meta({examples:[`australia`],description:`Filter by country region slug. Matches events where location.country equals the region name`}),state:k$1().optional().meta({examples:[`nsw`],description:`Filter by state/province region slug. Matches events where location.state equals the region name`}),city:k$1().optional().meta({examples:[`sydney`],description:`Filter by city region slug. Matches events where location.city equals the region name`}),from:k$1().date().optional().meta({examples:[`2024-01-01`],description:`Filter events that start on or after this date (YYYY-MM-DD format). Events with entryStartsAt >= from`}),to:k$1().date().optional().meta({examples:[`2024-12-31`],description:`Filter events that start on or before this date (YYYY-MM-DD format). Events with entryStartsAt <= to`}),genres:P$1(ic).max(20,`Cannot filter by more than 20 genres`).optional().meta({examples:[[`Tech House`,`Melodic Techno`]],description:`Filter events by music genre(s). Returns events matching ANY of the provided genres (OR logic). Maximum 20 genres`}),categories:P$1(nc).max(10,`Cannot filter by more than 10 categories`).optional().meta({examples:[[`Day Party`,`Open Air`]],description:`Filter events by category(s). Returns events matching ANY of the provided categories (OR logic). Maximum 10 categories`}),featured:N$1().optional().meta({examples:[true],description:`Filter to only featured (editorial pick) events`})}).meta({description:`List events with filtering, full‑text search, geo queries, date range filtering, genre/category filtering, and cursor-based pagination`}),em=$p,tm=Dl({booking:`Booking fee for the cheapest publicly purchasable admission, in cents`,currency:`Three-letter ISO 4217 currency code for the cheapest publicly purchasable admission`,price:`Cheapest publicly purchasable admission price for this event, selected by base price`}),nm=G$2(Wp.extend({inventory:Qp.optional(),liked:N$1().optional().meta({description:`Whether the current user has liked this event`,examples:[true,false]}),price:tm.nullable().meta({description:`Cheapest publicly purchasable admission price, or null when no public admission is currently available`})}),`events`),rm=F$1({event:Wp});I$1([`ONLINE`,`DOOR`,`SALE_ENDED`,`SOLD_OUT`]);const om=Wp.omit({createdAt:true,updatedAt:true,promoterId:true,geohash:true,status:true,location:true,featured:true,likes:true}).partial().extend({key:k$1().meta({examples:[b$1.Event.id,b$1.Event.slug],description:`Event key - either a unique ID (evt_xxx format) or URL-friendly slug`}),passcode:k$1().nullable().optional().meta({description:`Passcode for protected access. Pass null to clear; omit to leave unchanged.`}),url:Lo().nullable().optional().meta({examples:[`https://example.com/events/summer-festival-2025`],description:`External event URL. Pass null to clear; omit to leave unchanged.`}),locationId:lc.optional().meta({examples:[`loc_01jqpjksnsen9vprw95et60t2m`],description:`ID of an existing location to update to. Either locationId or googlePlaceId can be provided.`}),googlePlaceId:k$1().optional().meta({examples:[`ChIJN1t_tDeuEmsRUsoyG83frY4`],description:`Google Place ID to update location from. Either locationId or googlePlaceId can be provided.`}),genres:ac.optional().meta({description:`Music genres for the event (1-5 genres)`,examples:[[`Tech House`,`Melodic Techno`]]}),categories:rc.meta({description:`Event characteristics like vibe, venue type, and amenities (up to 10)`,examples:[[`Day Party`,`Open Air`,`Free Entry`]]}),notify:N$1().optional().meta({description:`Whether attendees should be notified about this event update.`,examples:[true]})}).meta({description:`Schema for updating an existing event.`}),sm=od.extend({limit:L$1().min(1).max(100).optional().default(10)}),cm=id.extend({limit:L$1().min(1).max(100).optional().default(10)}),lm=cd.extend({limit:L$1().min(1).max(100).optional().default(10)}),um=fd.extend({limit:L$1().min(1).max(100).optional().default(10)}),dm=md.extend({limit:L$1().min(1).max(100).optional().default(10)});var fm={summary:v$1.route({method:`GET`,path:`/events/{eventId}/performance/summary`,summary:`Get event performance summary`,description:`Top-level KPI metrics with period comparison based on tracking events`,tags:[`Event Performance`]}).input(Ku).output(qu),tickets:v$1.route({method:`GET`,path:`/events/{eventId}/performance/tickets`,summary:`Get ticket sales performance`,description:`Time series of sold tickets and successful-order revenue by period, with admission and section breakdowns`,tags:[`Event Performance`]}).input(Ju).output(Yu),funnel:v$1.route({method:`GET`,path:`/events/{eventId}/performance/funnel`,summary:`Get sales funnel performance`,description:`Conversion funnel showing drop-off at each stage from tracking events`,tags:[`Event Performance`]}).input(Xu).output(Zu),campaigns:v$1.route({method:`GET`,path:`/events/{eventId}/performance/campaigns`,summary:`Get campaign performance`,description:`Marketing campaign metrics from tracking events (UTM campaign parameter)`,tags:[`Event Performance`]}).input(sm).output(sd),coupons:v$1.route({method:`GET`,path:`/events/{eventId}/performance/coupons`,summary:`Get coupon performance`,description:`Coupon usage and revenue from actual order data`,tags:[`Event Performance`]}).input(cm).output(ad),mediums:v$1.route({method:`GET`,path:`/events/{eventId}/performance/mediums`,summary:`Get traffic medium performance`,description:`Performance by traffic medium (social, email, cpc) from tracking events`,tags:[`Event Performance`]}).input(lm).output(ld),devices:v$1.route({method:`GET`,path:`/events/{eventId}/performance/devices`,summary:`Get device performance`,description:`Performance breakdown by device type from tracking events`,tags:[`Event Performance`]}).input(ud).output(dd),locations:v$1.route({method:`GET`,path:`/events/{eventId}/performance/locations`,summary:`Get geographic performance`,description:`Performance by geographic location from tracking events`,tags:[`Event Performance`]}).input(um).output(pd),traffic:v$1.route({method:`GET`,path:`/events/{eventId}/performance/traffic`,summary:`Get traffic source performance`,description:`Top referral sources and channels from tracking events`,tags:[`Event Performance`]}).input(dm).output(hd),attendance:v$1.route({method:`GET`,path:`/events/{eventId}/performance/attendance`,summary:`Get event attendance statistics`,description:`Check-in statistics and attendance breakdown by admission and section`,tags:[`Event Performance`]}).input(gd).output(bd)};const pm=v$1.route({method:`GET`,path:`/events/{key}`,summary:`Get event by ID or slug`,description:`Retrieve an event using either its unique ID or URL-friendly slug`,tags:[`Events`]}).input(Zp).output(qp),mm=v$1.route({method:`POST`,path:`/events`,summary:`Create a new event`,tags:[`Events`]}).input(Jp.strict()).output(rm),hm=v$1.route({method:`PUT`,path:`/events/{key}`,summary:`Update an event`,description:`Update an event using either its unique ID or URL-friendly slug`,tags:[`Events`]}).input(om.strict()).output(rm);var gm={get:pm,list:v$1.route({method:`GET`,path:`/events`,summary:`List events`,description:`List events with filters for status, approval, visibility, and promoter. Supports full‑text search (query), geo search (latitude/longitude/radius), and cursor-based pagination.`,tags:[`Events`]}).input(em).output(nm),create:mm,update:hm,remove:v$1.route({method:`DELETE`,path:`/events/{key}`,summary:`Delete an event`,description:`Delete an event using either its unique ID or URL-friendly slug`,tags:[`Events`]}).input(Yp.strict()).output(rm),feature:v$1.route({method:`POST`,path:`/events/{key}/feature`,summary:`Toggle event featured status`,description:`Set or remove featured status on an event. Tenant admin only.`,tags:[`Events`]}).input(Xp.strict()).output(rm),like:Fp,performance:fm,tags:Op.suggestTags};const _m=F$1({id:Cc.readonly().meta({description:`Unique identifier for the event collaborator`}),createdAt:D$1().readonly().meta({description:`Timestamp in ISO 8601 format when the collaborator was added`}),updatedAt:D$1().readonly().meta({description:`Timestamp in ISO 8601 format when the collaborator was last updated`}),eventId:B$1.meta({description:`Event this collaboration applies to`}),promoterId:pc.meta({description:`Promoter collaborating on the event`}),acceptedBy:uc.meta({description:`User ID who accepted the invitation to collaborate`}),promoter:F$1({id:pc.meta({description:`Unique identifier of the promoter`}),name:k$1().meta({description:`Name of the promoter`}),teamId:sc.meta({description:`Team ID of the promoter`})}).optional().meta({description:`Populated promoter details. Only included when explicitly requested.`}),permissions:al$1.meta({description:`Permissions granted to this collaborator. User must have permission in BOTH this grant AND their team membership (intersection).`,examples:[[],[`event.read`,`event.write`],[`order.read`],[`ticket.scan`],[`*`]]}),tenantId:k$1().readonly().meta({description:`Tenant ID for multi-tenant isolation`})}).meta({description:`Active event collaborator. Created when a promoter accepts an invitation or is directly added to an event. Hard deleted when removed.`}),vm=_m.pick({id:true,eventId:true}).meta({description:`Schema for accepting an event promoter collaboration invitation. User accepting must be a member of the invited promoter's team.`}),ym=F$1({id:Cc.readonly().meta({description:`Unique identifier for the event collaboration invitation`}),createdAt:D$1().readonly().meta({description:`Timestamp in ISO 8601 format when the invitation was created`}),updatedAt:D$1().readonly().meta({description:`Timestamp in ISO 8601 format when the invitation was last updated`}),eventId:B$1.meta({description:`Event this invitation applies to`}),promoterId:pc.meta({description:`Promoter being invited to collaborate on the event.`}),invitedByPromoterId:pc.meta({description:`Promoter who sent this invitation (event owner or collaborator with permission).`}),permissions:al$1.meta({description:`Permissions the promoter will receive upon accepting the invitation.`,examples:[[],[`event.read`,`event.write`],[`order.read`],[`ticket.scan`],[`*`]]}),token:k$1().readonly().meta({description:`Secure token for invite acceptance. Required to accept the invitation.`}),invitedBy:uc.meta({description:`User ID who sent the invitation`}),expiresAt:j$1().int().positive().meta({description:`Unix timestamp (seconds) for DynamoDB TTL. Invitation will be automatically deleted after 7 days.`}),tenantId:k$1().readonly().meta({description:`Tenant ID for multi-tenant isolation`})}).meta({description:`Pending event collaborator invitation. Automatically deleted after 7 days via DynamoDB TTL. When accepted, creates an EventCollaborator record and deletes the invitation.`}),bm=ym.omit({id:true,tenantId:true,createdAt:true,updatedAt:true,token:true,expiresAt:true,invitedByPromoterId:true}).meta({description:`Schema for inviting a promoter to collaborate on an event. Creates a pending invitation that the promoter can accept.`}),xm=F$1({eventId:B$1.meta({description:`Event ID that the collaboration belongs to`}),id:Cc.meta({description:`Event team access grant ID to retrieve`})}),Sm=F$1({invite:ym}),Cm=F$1({eventId:k$1().meta({description:`Event ID to list collaborators for`}),accessPromoterId:k$1().optional().meta({description:`DEPRECATED: Use 'promoterId' instead. Filter by collaborating promoter ID (what events can this promoter access). Maintained for backward compatibility.`}),ownerPromoterId:k$1().optional().meta({description:`DEPRECATED: No longer used. Maintained for backward compatibility only.`}),limit:U$2(`event collaborators`),cursor:k$1().optional().meta({description:`Pagination cursor from previous response. Used to fetch next page of results`})}).meta({description:`Query parameters for listing active event collaborations with pagination and filtering. Only returns accepted collaborations (not pending invitations). Use invite endpoints for pending invitations.`}),wm=G$2(_m,`grants`),Tm=F$1({collaborator:_m});var Em={get:v$1.route({method:`GET`,path:`/events/{eventId}/collaborators/{id}`,summary:`Get event collaborator by ID`,description:`Retrieve an active event collaboration by its unique ID. Returns the collaborator record with promoter and permission details.`,tags:[`Event Collaborators`]}).input(xm.strict()).output(Tm),list:v$1.route({method:`GET`,path:`/events/{eventId}/collaborators`,summary:`List active event collaborators with cursor-based pagination`,description:`Returns active event collaborations for a specific event with cursor pagination. Only shows accepted collaborators. For pending invitations, use the invite endpoints.`,tags:[`Event Collaborators`]}).input(Cm.strict()).output(wm),create:v$1.route({method:`POST`,path:`/events/{eventId}/collaborators`,summary:`Invite a promoter to collaborate on an event`,description:`Send a collaboration invitation to a promoter (can be from a different team). Enables cross-team promoter-to-promoter collaboration. Creates a pending invitation with a secure token that expires in 7 days. The invited promoter must accept to create an active collaboration.`,tags:[`Event Collaborators`]}).input(bm.strict()).output(Sm),accept:v$1.route({method:`POST`,path:`/events/{eventId}/collaborators/{id}/accept`,summary:`Accept an event collaboration invitation`,description:`Accept a pending event collaboration invitation. User must be a member of the invited promoter's team. Deletes the invitation and creates an active collaboration record.`,tags:[`Event Collaborators`]}).input(vm.strict()).output(Tm),remove:v$1.route({method:`DELETE`,path:`/events/{eventId}/collaborators/{id}`,summary:`Remove active event collaboration`,description:`Remove an active collaboration (hard delete). Can be done by event team members or the collaborating team members. This completely removes access.`,tags:[`Event Collaborators`]}).input(xm.strict()).output(ds())};const Dm=I$1([`default`,`custom`]),Om=I$1([`active`,`pending`,`pending_certificate`,`pending_dns_validation`,`pending_cloudfront`,`cloudfront_deploying`,`pending_activation`,`failed`]),km=I$1([`pending_validation`,`issued`,`failed`,`expired`]),Am=F$1({domain:k$1(),name:k$1(),value:k$1(),type:k$1(),purpose:I$1([`ssl_validation`,`traffic_routing`]).optional()}),jm=F$1({domain:k$1(),type:Dm,status:Om,isPrimary:N$1(),teamId:k$1(),tenantId:k$1(),certificateArn:k$1().optional(),certificateStatus:km.optional(),distributionId:k$1().optional(),distributionDomain:k$1().optional(),dnsRecords:P$1(Am).optional(),dnsValidationRecords:P$1(Am).optional(),errorMessage:k$1().optional(),verifiedAt:D$1().optional(),createdAt:D$1(),updatedAt:D$1()}),Mm=F$1({host:k$1()}),Nm=ys(`type`,[F$1({type:Es(`resolved`),data:F$1({teamId:k$1(),tenantId:k$1()})}),F$1({type:Es(`pending`),data:F$1({status:Om.exclude([`active`,`pending`]),errorMessage:k$1().optional()})}),F$1({type:Es(`not_found`)})]),Pm=F$1({file:as().describe(`Image file to upload (max 10MB)`),folder:I$1([`avatars`,`events`,`teams`,`promoters`,`venues`]).describe(`Folder to upload to`),width:L$1().int().positive().optional().describe(`Target width in pixels`),height:L$1().int().positive().optional().describe(`Target height in pixels`)}),Fm=V$1,Im=F$1({language:k$1().trim().max(80).optional(),platform:k$1().trim().max(120).optional(),timezone:k$1().trim().max(120).optional(),userAgent:k$1().trim().max(800).optional(),viewport:F$1({width:j$1().int().positive().max(1e4),height:j$1().int().positive().max(1e4),devicePixelRatio:j$1().positive().max(10).optional()}).optional()}),Lm=F$1({key:k$1().trim().min(1),message:k$1().trim().min(10).max(4e3),pageUrl:Lo().max(2e3),pageTitle:k$1().trim().max(300).optional(),browser:Im.optional()}),Rm=F$1({ok:Es(true)}),zm=v$1.route({method:`POST`,path:`/internal/upload/image`,summary:`Upload and compress image`,description:`Upload an image file (PNG, JPEG, or SVG), optionally resize it, and compress it for web. SVG files are uploaded as-is without compression. Returns the uploaded image URL and metadata.`,tags:[`Internal`]}).input(Pm.strict()).output(Fm);var Bm={resolveDomain:v$1.route({method:`GET`,path:`/internal/domains/resolve`,summary:`Resolve host to team and tenant context`,tags:[`Internal`]}).input(Mm.strict()).output(Nm),shareFeedback:v$1.route({method:`POST`,path:`/internal/feedback`,summary:`Share product feedback`,description:`Send authenticated tenant dashboard feedback to the Sessions team.`,tags:[`Internal`]}).input(Lm.strict()).output(Rm),uploadImage:zm};const Vm=F$1({key:k$1().min(1).meta({description:`Location key - either a location ID (loc_xxx format) or provider-specific identifier (e.g., Google Place ID)`,examples:[b$1.Location.id,`ChIJP3Sa8ziYEmsRUKgyFmh9AQM`]})}),Hm=F$1({query:k$1().min(1).meta({examples:[`sydney opera`],description:`Search query for location search`}),latitude:L$1().min(-90).max(90).optional().meta({examples:[b$1.Location.latitude],description:`User's latitude for proximity-based results (optional for better relevance)`}),longitude:L$1().min(-180).max(180).optional().meta({examples:[b$1.Location.longitude],description:`User's longitude for proximity-based results (optional for better relevance)`}),types:P$1(k$1()).optional().meta({examples:[[`establishment`]],description:`Filter results by Google Place types (e.g., 'establishment', 'night_club', 'bar')`})}).meta({description:`Parameters for searching locations`}),Um=F$1({googlePlaceId:k$1().meta({examples:[`ChIJP3Sa8ziYEmsRUKgyFmh9AQM`],description:`Google Place ID for this location`}),name:k$1().meta({examples:[b$1.Location.name],description:`Primary name of the location`}),description:k$1().meta({examples:[b$1.Location.address],description:`Full formatted address`}),venue:F$1({id:cc.meta({examples:[b$1.Venue.id],description:`Venue ID if this location is a managed venue`}),name:k$1().meta({examples:[b$1.Venue.name],description:`Venue name`}),teamId:k$1().meta({description:`Team that manages this venue`}),image:V$1.optional().meta({description:`Primary venue image`})}).optional().meta({description:`Present if this location is a managed venue on the platform`})}).meta({description:`Single location search result with optional venue overlay`}),Wm=F$1({predictions:P$1(Um).meta({description:`Array of location predictions`})}).meta({description:`Response containing location search results`}),Gm=F$1({location:Lp});var Km={list:v$1.route({method:`GET`,path:`/locations`,summary:`Search for locations`,description:`Search for locations by query. Returns predictions with venue badges for locations that are managed venues on the platform. The query parameter is required.`,tags:[`Locations`]}).input(Hm.strict()).output(Wm),get:v$1.route({method:`GET`,path:`/locations/{key}`,summary:`Get location details`,description:`Fetch full location details including coordinates, timezone, and photo. Accepts location ID or provider identifier (e.g., Google Place ID). Uses cache-first strategy.`,tags:[`Locations`]}).input(Vm.strict()).output(Gm)};const qm=F$1({name:k$1().meta({examples:[`tenant-web`,`team-web`,`api`,`partner`],description:`Free-form channel identifier describing where the order originated.`}),referrer:k$1().optional().meta({examples:[`https://sash.teams.mixmag.au/events/example-event`],description:`Optional referrer URL captured at order creation for redirect routing and attribution.`}),utmSource:k$1().optional().meta({examples:[`instagram`],description:`Optional UTM source captured from the originating URL.`}),utmMedium:k$1().optional().meta({examples:[`social`],description:`Optional UTM medium captured from the originating URL.`}),utmCampaign:k$1().optional().meta({examples:[`summer-launch`],description:`Optional UTM campaign captured from the originating URL.`}),deviceType:I$1([`MOBILE`,`TABLET`,`DESKTOP`]).optional().meta({examples:[`MOBILE`],description:`Optional analytics device classification captured at order creation.`}),country:k$1().optional().meta({examples:[`Australia`],description:`Optional viewer country captured at order creation for analytics attribution.`}),region:k$1().optional().meta({examples:[`Australia - New South Wales`],description:`Optional viewer region captured at order creation for analytics attribution.`})}),Jm=F$1({id:k$1().meta({examples:[b$1.CouponCode.id],description:`Unique identifier of the coupon code used in the order`}),name:k$1().meta({examples:[b$1.CouponCode.name],description:`The coupon code string that was entered by the customer`}),couponId:k$1().meta({examples:[b$1.CouponCode.couponId],description:`Unique identifier of the parent coupon configuration`})}),Ym=F$1({id:k$1().meta({examples:[b$1.Customer.id],description:`Unique identifier of the customer who placed the order`}),firstName:k$1().meta({examples:[b$1.Customer.firstName],description:`First name of the customer`}),lastName:k$1().meta({examples:[b$1.Customer.lastName],description:`Last name of the customer`}),email:No().meta({examples:[b$1.Customer.email],description:`Email address of the customer`}),phone:k$1().meta({examples:[b$1.Customer.phone],description:`Customer phone number in E.164 format for SMS delivery`}).optional()}),Xm=F$1({id:k$1().meta({examples:[b$1.Event.id],description:`Unique identifier of the event associated with the order`}),name:k$1().meta({examples:[b$1.Event.name],description:`Display name of the event`}),slug:k$1().meta({examples:[b$1.Event.slug],description:`URL-friendly slug of the event`}),location:k$1().meta({examples:[b$1.Event.location.name],description:`Name of the venue or location where the event takes place`}).optional()}),Zm=I$1([`GATEWAY`,`SHIPPING`,`SMS_DELIVERY`]).meta({description:`Type of fee applied to an order`}),Qm=F$1({id:k$1().meta({examples:[b$1.OrderFee.id],description:`Unique identifier for this order fee`}),createdAt:D$1().readonly().meta({examples:[b$1.OrderFee.createdAt],description:`Timestamp in ISO 8601 format when this fee was created`}),reason:k$1().meta({examples:[b$1.OrderFee.reason],description:`Description explaining why this fee was applied to the order`}),amount:j$1().finite(`Amount must be a valid number`).meta({examples:[b$1.OrderFee.amount],description:`Fee amount in cents (positive value indicates charge to customer, negative value indicates credit or discount)`}),currency:R$1.meta({examples:[b$1.OrderFee.currency],description:`Currency code in ISO 4217 format`}),requestId:k$1().meta({examples:[b$1.OrderFee.requestId],description:`External payment processor request identifier for tracking this fee`}),kind:Zm.optional().meta({examples:[`GATEWAY`],description:`Type of fee for categorization and reporting`})});function $m(){return {mobile:{src:`https://assets.session.services/event-mobile.jpg`,alt:`Mobile Event Image`,width:1080,height:1350},desktop:{src:`https://assets.session.services/event-desktop.jpg`,alt:`Desktop Event Image`,width:1920,height:1080}}}const eh=e=>({id:e.id,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:e.name,slug:e.slug,description:e.description,approval:`APPROVED`,status:`UPCOMING`,visibility:`PUBLIC`,currency:`AUD`,entryStartsAt:y$1(Tt(new Date,1)),entryEndsAt:y$1(Tt(new Date,2)),publishAt:y$1(new Date),images:$m(),geohash:`r3gx1`,location:e.location,teamId:e.teamId,promoterId:e.promoterId,tenantId:e.tenantId}),th=e=>({id:e.id,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),...e.sectionId?{sectionId:e.sectionId}:{},...e.teamId?{teamId:e.teamId}:{},promoterId:e.promoterId,eventId:e.eventId,eventSlug:e.eventSlug,name:e.name,capacity:100,limit:-1,available:100,entryStartsAt:y$1(Tt(new Date,1)),entryEndsAt:y$1(Tt(new Date,2)),saleStartsAt:y$1(new Date),saleEndsAt:y$1(Tt(new Date,2)),price:{base:1e3,booking:200,currency:`AUD`},tenantId:e.tenantId}),nh=e=>({id:`tkt_01jps5cgsh51kzg7534pzap7gk`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),status:`REDEEMED`,scans:[],token:e.token,attendee:{email:Z$1.Customer.email,firstName:Z$1.Customer.firstName,lastName:Z$1.Customer.lastName},event:{id:Z$1.WrongEvent.id,name:Z$1.WrongEvent.name,slug:Z$1.WrongEvent.slug,location:Z$1.WrongEvent.location,entryStartsAt:Z$1.WrongEvent.entryStartsAt,entryEndsAt:Z$1.WrongEvent.entryEndsAt,images:Z$1.WrongEvent.images},admission:{id:Z$1.WrongAdmission.id,name:Z$1.WrongAdmission.name,price:Z$1.WrongAdmission.price,entryStartsAt:Z$1.WrongAdmission.entryStartsAt,entryEndsAt:Z$1.WrongAdmission.entryEndsAt},eventId:Z$1.WrongEvent.id,customerId:Z$1.Customer.id,orderId:Z$1.WrongOrder.id,orderItemId:Z$1.WrongOrderItem.id,admissionId:Z$1.WrongOrderItem.admissionId,...e.teamId?{teamId:e.teamId}:{},promoterId:Z$1.WrongPromoter.id,promoterSlug:Z$1.WrongPromoter.slug,tenantId:Z$1.Tenant.id}),rh=e=>{let t=new Date(2020,1,1);return {...b$1.Event,id:e.id,status:e.status,createdAt:t.toISOString(),updatedAt:t.toISOString(),publishAt:y$1(t),entryStartsAt:y$1(t),entryEndsAt:y$1(new Date(2020,1,2)),slug:e.slug,name:e.name}};let Z$1;(function(e){let{Tenant:t,Team:n,TeamMember:r,TeamInvite:i,Venue:a,User:o,Session:s,EmailVerification:c,PasswordReset:l,Promoter:u,PromoterMember:d,CurrentSession:f,Event:p,DetailedEvent:m,Location:ee,CarouselLocation:te,Section:ne,Admission:h,Beneficiary:re,AirwallexBeneficiary:ie,Coupon:ae,CouponCode:oe,AmountCoupon:se,AmountCouponCode:ce,Customer:le,Payout:ue,Order:de,OrderItem:fe,OrderFee:pe,Ticket:me}=b$1;e.Tenant=t,e.Team=n,e.TeamMember=r,e.TeamInvite=i,e.Venue=a,e.User=o,e.Session=s,e.EmailVerification=c,e.PasswordReset=l,e.Promoter=u,e.PromoterMember=d,e.CurrentSession=f,e.Event=p,e.DetailedEvent=m,e.Location=ee,e.CarouselLocation=te,e.Section=ne,e.Admission=h,e.Beneficiary=re,e.AirwallexBeneficiary=ie,e.Coupon=ae,e.CouponCode=oe,e.AmountCoupon=se,e.AmountCouponCode=ce,e.Customer=le,e.Payout=ue,e.Order=de,e.OrderItem=fe,e.OrderFee=pe,e.Ticket=me,e.JayUser={...o,id:`usr_01k5hbpkfje048zccqmqfhjpep`,email:`j@1f.io`,firstName:`Jay`,lastName:`McMullen`};let he=e.TestUser={id:`usr_01k5wcss3gf24advd4av43s96m`,email:`test@e2e.session.services`,firstName:`Test`,lastName:`User`,createdAt:`2025-09-23T22:58:37.808Z`,updatedAt:`2025-09-23T22:58:37.808Z`,tenantId:`tnt_01jqpj2t2kfvmstt6f6tzkbaf2`};e.TestPromoterMember={id:`mbr_01k6s0t3f3f6cak0066dy5n1dm`,createdAt:`2025-10-05T01:47:04.035Z`,updatedAt:`2025-10-05T01:47:04.035Z`,teamId:n.id,userId:he.id,user:he,permissions:[`*`],isOwner:false,tenantId:t.id},e.SystemUser={...o,id:`usr_01jps5cgsgn1ee4txxn0fz81f2`,email:`system@session.services`,firstName:`Session`,lastName:`Services`},e.DeletedAdmission={...h,id:`adm_01jps5cgsg63gr2s1g2d87cqfy`,deletedAt:new Date().toISOString(),deleted:true},e.SoloAdmission={...h,id:`adm_01jpsf2h7r4z8kmd9x1q3w4vty`,name:`Solo Admission`,sectionId:void 0},e.DeletedCoupon={...ae,id:`cpn_01jps5cgsgzxf6xvmx3dnt9h1p`,couponId:`cpn_01jps5cgsgzxf6xvmx3dnt9h1p`,deletedAt:new Date().toISOString(),deleted:true},e.DeletedCouponCode={...oe,id:`cod_01jps5cgsg7ep2gvwzghp1ppv6`,deletedAt:new Date().toISOString(),deleted:true},e.DeletedSection={...ne,id:`sct_01jps5cgsgy7681swwcvf01wxh`,deletedAt:new Date().toISOString(),deleted:true},e.DeletedEvent={...p,id:`evt_01jps5cgsg8pyd64pc89tcbg9j`,slug:`deleted-event`,name:`Deleted Event`,deletedAt:new Date().toISOString(),deleted:true},e.PastEvent=rh({id:`evt_01jqqt1ztw4676fdrr27z7de1c`,status:`ENDED`,slug:`past-event`,name:`Past Event`}),e.CancelledEvent=rh({id:`evt_01jt0tfntmfk1sgn72q8c02v7a`,status:`CANCELLED`,slug:`cancelled-event`,name:`Cancelled Event`}),e.DeletedPromoter={...u,id:`pmt_01jps5cgsg4xem309j6sxj01aw`,slug:`deleted-promoter`,name:`Deleted Promoter`,deletedAt:new Date().toISOString(),deleted:true},e.DeletedPromoterMember={...d,userId:Z$1.User.id,user:Z$1.User,id:`mbr_01jpwzceh3zvab64kwq633q4cc`},e.SmsOrder={...de,id:b$1.SmsOrder.id,status:`SUCCESSFUL`,price:{...de.price,sms:200},customer:{...le,phone:`+61412345678`},offers:[]},e.ExpiredOrder={...de,id:`ord_01jq0xwysx1hzs3wqt2fns4578`,token:`c76e3a5d7105345b58e383e6d90fe7728b75f938b727f0b9ecc5b977e8c3b5d0`,status:`PENDING`,createdAt:new Date(2020,1,1).toISOString(),updatedAt:new Date(2020,1,1).toISOString()},e.AbandonedOrder={...de,id:`ord_01jq0xdzwsfjpd329r8gv3txr2`,token:`c76e3a5d7105345b58e383e6d90fe7728b75f938b727f0b9ecc5b977e8c3b5d0`,status:`ABANDONED`,createdAt:new Date(2020,1,1).toISOString(),updatedAt:new Date(2020,1,1).toISOString()},e.ProcessingOrder={...de,id:`ord_01jq289n4kcz2tnre24x3v2get`,token:`c76e3a5d7105345b58e383e6d90fe7728b75f938b727f0b9ecc5b977e8c3b5d0`,status:`PROCESSING`,customer:b$1.Customer,customerId:b$1.Customer.id},e.FreeAdmission={...h,id:`adm_01jpykjbrdgy8jxmz57hmampww`,price:{base:0,booking:0,currency:`AUD`}},e.SoldOutAdmission={...h,id:`adm_01jps5cgse6m3567vzvk69hkrm`,name:`First Release`,capacity:100,available:0,sold:100,reserved:0},e.UnlimitedAdmission={...h,id:`adm_01jsr09narf6d83vyk3hs8q9cf`,name:`First Release`,capacity:-1,available:-1,sold:100,reserved:0},e.UnlimitedSection={id:`sct_01jsr09narf6d83vytx3cng55e`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),teamId:n.id,promoterId:u.id,eventId:p.id,eventSlug:p.slug,name:`Sold Out Section`,capacity:-1,limit:-1,available:-1,sold:200,reserved:0,order:0,location:ee,tenantId:t.id};let ge=e.SoldOutSection={id:`sct_01jq1rcqbkzqbbakgwy8ptpmvq`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),teamId:n.id,promoterId:u.id,eventId:p.id,eventSlug:p.slug,name:`Sold Out Section`,capacity:200,limit:-1,sold:200,available:0,reserved:0,order:0,location:ee,tenantId:t.id};e.SoldOutSectionAdmission={...h,sectionId:ge.id,id:`adm_01jq1rcjah79628zsafg3k8wyz`,name:`First Release`,capacity:100,available:100,sold:0,reserved:0,order:0};let _e=e.MaxReservedSection={id:`sct_01jq1rcqbkzrkea9ng8e4kngvq`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),teamId:n.id,promoterId:u.id,eventId:p.id,eventSlug:p.slug,name:`Max Reserved Section`,capacity:200,limit:-1,sold:0,available:0,reserved:200,location:ee,tenantId:t.id,order:0};e.MaxReservedAdmission={...h,id:`adm_01jq1rcqbk5s86df68xvz66fh4`,name:`First Release`,capacity:100,available:0,sold:0,reserved:100},e.MaxReservedSectionAdmission={...h,sectionId:_e.id,id:`adm_01jq1rcqbkhkxq67e9rs8rpngt`,name:`First Release`,capacity:100,available:100,sold:0,reserved:0},e.SessionsBeneficiary={...re,id:`ben_01jps5cgse5n6mg1ymkew9tsss`,promoterId:`pmt_01jqpjksnsen9vprw95et60t2m`},e.AnotherBeneficiary={...re,id:`ben_01jpsbxdthxadywamz2yj4zt75`,currency:`USD`,name:`Another Bank Account`},e.AnotherSection={...ne,id:`sct_01jps5cgsg3spk97pwwp4352z9`},e.AnotherEvent={...p,id:`evt_01jps5cgsgkegpptzf3dsmkbpy`,slug:`another-event`,name:`Another Event`,visibility:`PUBLIC`},e.AnotherCouponCode={...oe,name:`ANOTHER`,id:`cod_01jps5cgsghcvnjsf5nax5d7z7`},e.PrivateEvent={...p,id:`evt_01jps5cgsgavb91qw967y3d64f`,slug:`private-event`,name:`Private Event`,visibility:`PRIVATE`},e.PendingEvent={...p,id:`evt_01jps5cgsh7mpevnq8pngdqs8q`,slug:`pending-event`,name:`Pending Event`,approval:`PENDING`};let ve=e.WrongUser={id:`usr_01jps5cgshwa2sts0fj53pksk0`,email:`wrong@session.services`,firstName:`Wrong`,lastName:`User`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),tenantId:t.id},ye=e.WrongTeam={id:`tem_01jps5cgshfgkvmjhfkev542en`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Wrong Team`,slug:`wrong-team`,description:`This is the wrong team...`,type:`PROMOTER`,tenantId:`tnt_01jqpj2t2kfvmstt6f6tzkbaf2`},be=e.WrongPromoter={id:`pmt_01jps5cgshfgkvmjhfkev542en`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Wrong Promoter`,slug:`wrong-promoter`,description:`This is the wrong promoter...`,payoutFrequency:`AFTER_EVENT`,image:{src:`https://assets.session.services/icon-bg.png`,alt:`Session Services Logo`,width:800,height:800},approval:`APPROVED`,type:`PROMOTER`,teamId:ye.id,geohash:`r3gx1`,location:{id:`loc_01jps5cgshfgkvmjhfkev542ep`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Sydney`,address:`Sydney NSW 2000, Australia`,city:`Sydney`,state:`New South Wales`,postcode:`2000`,country:`Australia`,latitude:-33.8688,longitude:151.2093,timeZone:`Australia/Sydney`},tracking:{fbId:`485739562847563`,gtmId:`GTM-K8WPM5N`,tikTokId:`BQCKPH3RC77U8GPMLJ5G`},tenantId:`tnt_01jqpj2t2kfvmstt6f6tzkbaf2`};e.WrongPromoterMember={id:`mbr_01jps5cgsec5ge0b1bxa6gzkkk`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),promoterId:be.id,userId:ve.id,user:{id:ve.id,email:ve.email,firstName:ve.firstName,lastName:ve.lastName},permissions:[`*`],tenantId:t.id};let xe=e.WrongEvent=eh({id:`evt_01jps5cgshm2v14zzykna678fd`,name:`Wrong Event`,slug:`wrong-event`,description:`This is the wrong event...`,location:{id:`loc_01jps5cgshm2v14zzykna678fe`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Watson's EQ`,address:`The, Entertainment Quarter, 1 Bent St, Moore Park NSW 2021, Australia`,city:`Moore Park`,state:`New South Wales`,postcode:`2021`,country:`Australia`,latitude:-33.8944593,longitude:151.2252255,timeZone:`Australia/Sydney`,image:{src:`https://assets.session.services/locations/watsons-eq.jpg`,alt:`Watson's EQ`,width:1200,height:800}},teamId:ye.id,promoterId:be.id,tenantId:t.id}),Se=e.WrongAdmission=th({id:`adm_01jps5cgshfggkvmjhfkevy5en`,sectionId:(e.WrongSection={id:`sct_01jps5cgsh6asm2d0ghfqq6br2`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),teamId:ye.id,promoterId:be.id,eventId:xe.id,eventSlug:xe.slug,name:`Wrong Admission`,capacity:200,limit:-1,available:200,reserved:0,order:0,sold:0,location:ee,tenantId:t.id}).id,teamId:ye.id,promoterId:be.id,eventId:xe.id,eventSlug:xe.slug,name:`Wrong Release`,tenantId:t.id});e.ExpiredAdmission={...h,id:`adm_01jq6cazzbswynyvg8d0hpx1n5`,entryStartsAt:y$1(new Date(2020,0,1)),entryEndsAt:y$1(Tt(new Date(2020,0,1),2))};let Ce=e.WrongBeneficiary={id:`ben_01jps5cgshfgnzwvcyck0y4sdg`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`My Bank Account`,currency:`AUD`,gatewayId:`ben_12345abcde67890`,gateway:`AIRWALLEX`,assignment:`PROMOTER`,teamId:ye.id,promoterId:be.id,tenantId:t.id},we=e.WrongCoupon={id:`cpn_01jps5cgsh4fy01mvwvzn7xbc9`,couponId:`cpn_01jps5cgsh4fy01mvwvzn7xbc9`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Wrong Price`,active:true,kind:`PERCENT`,filter:`TEAM`,currency:`AUD`,discount:50,uses:0,limit:-1,saleStartsAt:y$1(new Date(2025,1,10,3,0,0)),saleEndsAt:void 0,deletedAt:void 0,teamId:ye.id,tenantId:t.id},Te=e.WrongCouponCode={id:`cod_01jps5cgsh2hevcp6av50kbgyf`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),active:true,name:`WRONG`,tenantId:t.id,couponId:we.id,teamId:ye.id},Ee=e.WrongPayout={id:`pyt_01jps5cgshynssderz1k0fd7z3`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),paidAt:new Date().toISOString(),structure:`default`,items:{tickets:{beneficiaryId:Ce.id,feeAmount:0,feeCurrency:`AUD`,transferAmount:1e3,transferCurrency:`AUD`},sessions:{beneficiaryId:Ce.id,feeAmount:0,feeCurrency:`AUD`,transferAmount:650,transferCurrency:`AUD`}},eventId:xe.id,teamId:ye.id,promoterId:be.id},De=e.WrongOrder={id:`ord_01jps5cgshxhcpy2djnr8e04s3`,token:`51126f93491f3bda92235ade2d87baec7935610e52b64d4252a3c721dfc6016a`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),status:`PENDING`,payment:{method:`FREE`},price:{total:0,base:0,booking:0,discount:0,processor:0,currency:`AUD`},code:{id:Te.id,name:Te.name},customer:le,teamId:ye.id,promoterId:be.id,eventId:xe.id,paymentId:``,payoutIds:[Ee.id]};e.WrongOrderItem={id:`itm_01jps5cgsh14bjvyywkvt6f37e`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),orderId:De.id,kind:`ADMISSION`,quantity:2,admissionId:Se.id,price:{base:Se.price.base,booking:Se.price.booking,discount:0,currency:Se.price.currency}},e.WrongOrderFee={id:`fee_01jps5cgshgebpv67sppjfrgb8`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),orderId:De.id,reason:`Gateway Fee`,amount:-30,currency:`AUD`,requestId:`att_sgpdz4v2ph1axmdmdx8_m8w6qv`},e.WrongTicket=nh({token:`a1b2c3d4e5f6789012345678901234567890123456789012345678901234abcd`,teamId:ye.id}),e.AnotherTicket={...me,id:`tkt_01jq6v4gmad9m28kzw8g8910jw`},e.ExpiredTicket=nh({token:`e1f2a3b4c5d6789012345678901234567890123456789012345678901234efab`}),e.UpcomingPayout={...ue,id:`pyt_01jq9cvaxvatez34jmwn11rzt8`,status:`UPCOMING`,transfers:[],deductions:[]},e.PayoutNotePayout={...ue,id:`pyt_01kr2note0000000000000001`,transfers:[],deductions:[]};let g=e.MixmagTenant={id:`tnt_01hk153x00en6tvgwwwhn8xj1p`,oldId:`p8npi2s3t24arpunzp2e7dzaq`,name:`Mixmag ANZ`,slug:`mixmag-anz`,email:`hello@mixmag.net.au`,adminTeamId:`tem_01hr9kk2pgez2s8jzb3gs5nwsf`,legacyTenantsToTeams:{clhvrnqph0000m9rq039hkw7s:`tem_01k5sashm1xmaganzteam0001`,"6kh3sj8ih5tvg927rz5elm90o":`tem_01k6blankm1xmaganzteam002`,vc8vrjrv5arhabnk8ainx0ycb:`tem_01k7prowlm1xmaganzteam003`,clkwbixsi0000m9coi7i5b65z:`tem_01k8crousm1xmaganzteam004`},defaultCurrency:`AUD`,smsSenderId:`MIXMAG`,baseUrl:{dev:`http://mixmag-au.local:3000`,production:`https://mixmag-anz.app.session.services`},logo:{icon:{src:`https://assets.session.services/icon-bg.png`,width:29,height:29},email:{src:`https://assets.session.services/icon-bg.png`,width:165,height:76},website:{src:`https://assets.session.services/icon-bg.png`,width:165,height:76},qr:{src:`https://assets.session.services/tenants/mixmag-anz/qr.svg`}},favicon:`https://assets.session.services/tenants/mixmag-anz/favicon.svg`},Oe=e.MixmagUser={id:`usr_01jps5cgsmh2d4ez6xz2t23fsf`,email:`mixmag@session.services`,firstName:`Mixmag`,lastName:`User`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),tenantId:g.id},ke=e.MixmagTeam={id:`tem_01hr9kk2pgez2s8jzb3gs5nwsf`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Mixmag Team`,slug:`mixmag-team`,description:`This is Mixmag team...`,type:`PROMOTER`,tenantId:`tnt_01jqpj2t2kfvmstt6f6tzkbaf2`},Ae=e.MixmagPromoter={id:`pmt_01hr9kk2pgez2s8jzb3gs5nwsf`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),payoutFrequency:`AFTER_EVENT`,name:`Mixmag Promoter`,slug:`mixmag-promoter`,description:`This is Mixmag...`,image:{src:`https://assets.session.services/icon-bg.png`,alt:`Session Services Logo`,width:800,height:800},approval:`APPROVED`,type:`PROMOTER`,geohash:`r3gx1`,location:{id:`loc_01hr9kk2pgez2s8jzb3gs5nwsg`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Mixmag`,address:`169 Oxford St, Darlinghurst NSW 2010, Australia`,city:`Darlinghurst`,state:`New South Wales`,postcode:`2010`,country:`Australia`,latitude:-33.8774,longitude:151.2196,timeZone:`Australia/Sydney`},tracking:{fbId:`485739562847563`,gtmId:`GTM-K8WPM5N`,tikTokId:`BQCKPH3RC77U8GPMLJ5G`},teamId:ke.id,tenantId:`tnt_01jqpj2t2kfvmstt6f6tzkbaf2`},je=e.MixmagSashPromoter={id:`pmt_01jps5cgsm15cfwrtat68b2vq5`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),payoutFrequency:`WEEKLY`,name:`SASH Mixmag Promoter`,slug:`sash-mixmag-promoter`,description:`This is SASH on Mixmag...`,image:{src:`https://assets.session.services/icon-bg.png`,alt:`Session Services Logo`,width:800,height:800},approval:`APPROVED`,type:`PROMOTER`,geohash:`r3gx1`,location:{id:`loc_01jps5cgsm15cfwrtat68b2vq6`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Mixmag`,address:`169 Oxford St, Darlinghurst NSW 2010, Australia`,city:`Darlinghurst`,state:`New South Wales`,postcode:`2010`,country:`Australia`,latitude:-33.8774,longitude:151.2196,timeZone:`Australia/Sydney`},tracking:{fbId:`485739562847563`,gtmId:`GTM-K8WPM5N`,tikTokId:`BQCKPH3RC77U8GPMLJ5G`},tenantId:g.id},Me=e.MixmagSashTeam={id:`tem_01ha3fnp48ekdst2ezkgxm3zem`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Sash Team`,slug:`sash`,description:`SASH team for Mixmag ANZ fixtures`,type:`PROMOTER`,tenantId:g.id},Ne=e.MixmagSashFixturePromoter={id:`pmt_01ha3fnp48ekdst2ezkgxm3zem`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),payoutFrequency:`WEEKLY`,name:`Sash Fixture Promoter`,slug:`sash-fixture-promoter`,description:`Fixture promoter for SASH test event`,image:{src:`https://assets.session.services/icon-bg.png`,alt:`Session Services Logo`,width:800,height:800},approval:`APPROVED`,type:`PROMOTER`,geohash:`r3gx3`,location:{...te,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()},tracking:{fbId:`485739562847563`,gtmId:`GTM-K8WPM5N`,tikTokId:`BQCKPH3RC77U8GPMLJ5G`},teamId:Me.id,tenantId:g.id};e.MixmagSashFixtureEvent={id:`evt_01hj8xw1e0em7vjns3zjtc9q9g`,createdAt:`2023-12-22T14:11:36.000Z`,updatedAt:`2024-12-13T07:53:26.000Z`,name:`Test Event`,slug:`test-event`,description:`This is an event for testing`,approval:`APPROVED`,status:`ENDED`,visibility:`PRIVATE`,currency:`AUD`,entryStartsAt:`2024-12-30T21:00:56`,entryEndsAt:`2024-12-31T03:00:08`,publishAt:`2024-12-13T18:49:56`,images:{mobile:{src:`https://assets.session.services/uploads/images/1771573094836-test-event-1734076207200-mobile.jpg`,alt:`test-event-1734076207200-mobile.jpg`,width:1080,height:1350},desktop:{src:`https://assets.session.services/uploads/images/1771573095056-test-event-1734076207200-desktop.jpg`,alt:`test-event-1734076207200-desktop.jpg`,width:1920,height:1005}},geohash:`r3gx3`,location:{...te,createdAt:`2025-12-12T08:13:11.004Z`,updatedAt:`2025-12-12T08:13:11.171Z`},teamId:Me.id,promoterId:Ne.id,tenantId:g.id},e.MixmagPromoterMember={id:`mbr_01jps5cgsmk2femegmakpgrjdq`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),promoterId:Ae.id,promoterSlug:Ae.slug,userId:Oe.id,user:{id:Oe.id,email:Oe.email,firstName:Oe.firstName,lastName:Oe.lastName},permissions:[`*`],tenantId:g.id};let _=e.MixmagEvent=eh({id:`evt_01jps5cgsmwksmhse1gr2jrq7x`,name:`Mixmag Event`,slug:`wrong-event`,description:`This is the wrong event...`,location:{id:`loc_01jps5cgsmkp1bdr7hgfmmhr4e`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Mixmag`,address:`169 Oxford St, Darlinghurst NSW 2010, Australia`,city:`Darlinghurst`,state:`New South Wales`,postcode:`2010`,country:`Australia`,latitude:-33.8774,longitude:151.2196,timeZone:`Australia/Sydney`},teamId:ke.id,promoterId:Ae.id,tenantId:g.id}),Pe=e.MixmagSashEvent=eh({id:`evt_01kb1ve66keh4rntf96rq5wpk2`,name:`Mixmag SASH Event`,slug:`mixmag-sash-event`,description:`This is a sash on mixmag event...`,location:{id:`loc_01jps5cgsm7qxvh6watsons0eq`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Watson's EQ`,address:`The, Entertainment Quarter, 1 Bent St, Moore Park NSW 2021, Australia`,city:`Moore Park`,state:`New South Wales`,postcode:`2010`,country:`Australia`,latitude:-33.8944593,longitude:151.2252255,timeZone:`Australia/Sydney`},teamId:ke.id,promoterId:Ae.id,tenantId:g.id}),Fe=e.MixmagAdmission=th({id:`adm_01jps5cgsmbepdasrtxvh9xa0k`,sectionId:(e.MixmagSection={id:`sct_01jps5cgsmhrfxjn18y9bfdqc2`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),teamId:ke.id,promoterId:Ae.id,eventId:_.id,eventSlug:_.slug,name:`Mixmag Admission`,capacity:200,limit:-1,available:200,reserved:0,order:0,sold:0,location:ee,tenantId:g.id}).id,teamId:ke.id,promoterId:Ae.id,eventId:_.id,eventSlug:_.slug,name:`Mixmag Release`,tenantId:g.id});e.MixmagSashAdmission=th({id:`adm_01jps5cgsm5c3scpdyf25bhntd`,promoterId:je.id,eventId:Pe.id,eventSlug:Pe.slug,name:`Final Release`,tenantId:g.id});let Ie=e.MixmagBeneficiary={id:`ben_01jps5cgsmgxsdv4nxjk51s5by`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`My Bank Account`,currency:`AUD`,gatewayId:`ben_12345abcde67890`,gateway:`AIRWALLEX`,assignment:`PROMOTER`,teamId:ke.id,promoterId:Ae.id,tenantId:g.id},Le=e.MixmagCoupon={id:`cpn_01kb1vvpa0ecrbpyh2j5mvzdp9`,couponId:`cpn_01kb1vvpa0ecrbpyh2j5mvzdp9`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Mixmag Price`,active:true,kind:`PERCENT`,filter:`TEAM`,currency:`AUD`,discount:50,uses:0,limit:-1,saleStartsAt:y$1(new Date(2025,1,10,3,0,0)),saleEndsAt:void 0,deletedAt:void 0,teamId:ke.id,tenantId:g.id},Re=e.MixmagCouponCode={id:`cod_01jps5cgsmc53405wk7t2v8ka7`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),active:true,name:`MIXMAG`,tenantId:g.id,couponId:Le.id,teamId:ke.id},ze=e.MixmagPayout={id:`pyt_01jps5cgsmx1x39hnrmvvtcets`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),paidAt:new Date().toISOString(),structure:`default`,items:{tickets:{beneficiaryId:Ie.id,feeAmount:0,feeCurrency:`AUD`,transferAmount:1e3,transferCurrency:`AUD`},sessions:{beneficiaryId:Ie.id,feeAmount:0,feeCurrency:`AUD`,transferAmount:650,transferCurrency:`AUD`}},eventId:_.id,promoterId:Ae.id},Be=e.MixmagOrder={id:`ord_01jps5cgsmtxt8e0985tstqe5h`,token:`16a761b251a2368027c6c08453eca1a97f7e7fcbf714b789c8aa96033d199b90`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),status:`PENDING`,payment:{method:`FREE`},price:{total:0,base:0,booking:0,discount:0,processor:0,currency:`AUD`},code:{id:Re.id,name:Re.name},customer:le,promoterId:Ae.id,eventId:_.id,paymentId:``,payoutIds:[ze.id]},Ve=e.MixmagOrderItem={id:`itm_01jps5cgsmqrkg0btn7khdyjyg`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),orderId:Be.id,kind:`ADMISSION`,quantity:2,admissionId:Fe.id,price:{base:Fe.price.base,booking:Fe.price.booking,discount:0,currency:Fe.price.currency}};e.MixmagOrderFee={id:`fee_01jps5cgsm4jgpnfqxahmwm7he`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),orderId:Be.id,reason:`Gateway Fee`,amount:30,currency:`AUD`,requestId:`att_sgpdz4v2ph1axmdmdx8_m8w6qv`},e.MixmagTicket={id:`tkt_01jps5cgsmycbvfrqw5h3zt9bp`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),status:`REDEEMED`,scans:[],token:`m1i2x3m4a5g6789012345678901234567890123456789012345678901234mixm`,attendee:{email:le.email,firstName:le.firstName,lastName:le.lastName},event:{id:_.id,name:_.name,slug:_.slug,location:_.location,entryStartsAt:_.entryStartsAt,entryEndsAt:_.entryEndsAt,images:_.images},admission:{id:Fe.id,name:Fe.name,price:Fe.price,entryStartsAt:Fe.entryStartsAt,entryEndsAt:Fe.entryEndsAt},eventId:_.id,customerId:le.id,orderId:Be.id,orderItemId:Ve.id,admissionId:Fe.id,promoterId:Ae.id,promoterSlug:Ae.slug,tenantId:g.id},e.InactiveCoupon={...ae,id:`cpn_01kb1ve66keh4rntfm5z89yskj`,couponId:`cpn_01kb1ve66keh4rntfm5z89yskj`,name:`Inactive Coupon`,active:false};let He=e.MelbourneLocation={id:`loc_01hk153x00ebfrn7y8v7z8emew`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),googlePlaceId:`ChIJc4QL47ZC1moRFW-PYdhx-O0`,name:`Federation Square`,address:`Federation Square, Melbourne VIC 3000, Australia`,city:`Melbourne`,state:`Victoria`,postcode:`3000`,country:`Australia`,latitude:-37.8179789,longitude:144.9690576,timeZone:`Australia/Melbourne`};e.MelbourneVenue={...a,id:`ven_01kb1ve66heh4rntebeywafbwj`,name:`Melbourne Convention Centre`,slug:`melbourne-convention-centre`,description:`Premier convention and exhibition venue in Melbourne`,locationId:He.id,location:He,geohash:`r1r0f`};let Ue=e.MelbournePromoter={...u,id:`pmt_01kb1ve66keh4rntehghtb8j43`,name:`Melbourne Promoter`,slug:`melbourne-promoter`,description:`A promoter based in Melbourne`,geohash:`r1r0f`,location:He};e.MelbourneEvent={...p,id:`evt_01kb1ve66keh4rnteypq587crh`,name:`Melbourne Event`,slug:`melbourne-event`,description:`An event in Melbourne for geo testing`,promoterId:Ue.id,geohash:`r1r0f`,location:He},e.PendingVenue={...a,id:`ven_01kb1ve66keh4rntf3crpmdyaw`,name:`Pending Venue`,slug:`pending-venue`,description:`A venue pending approval`,approval:`PENDING`},e.Locations={sydneyOperaHouse:{id:`loc_01hk153x00fpxv6cjp99qawkcs`,googlePlaceId:`ChIJ3S-JXmauEmsRUcIaWtf4MzE`,name:`Sydney Opera House`,address:`Bennelong Point, Sydney NSW 2000, Australia`,city:`Sydney`,state:`New South Wales`,postcode:`2000`,country:`Australia`,latitude:-33.8567844,longitude:151.2152967,timeZone:`Australia/Sydney`,types:[`establishment`,`point_of_interest`,`tourist_attraction`],image:{src:`https://assets.session.services/locations/loc_01hk153x00fpxv6cjp99qawkcs.jpg`,alt:`Sydney Opera House`,width:1200,height:800}},carouselBarBallroom:{...te,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),types:[...te.types],image:te.image},homeTheVenue:{id:`loc_01hk153x00eqbb7qm3b7fjxh7j`,googlePlaceId:`ChIJLaRY2DuuEmsRkgiW8LMz2Hs`,name:`Home The Venue`,address:`101/1-5 Wheat Rd, Sydney NSW 2000, Australia`,city:`Sydney`,state:`New South Wales`,postcode:`2000`,country:`Australia`,latitude:-33.8725457,longitude:151.201907,timeZone:`Australia/Sydney`,types:[`establishment`,`food`,`night_club`,`point_of_interest`,`restaurant`],image:{src:`https://assets.session.services/locations/loc_01hk153x00eqbb7qm3b7fjxh7j.jpg`,alt:`Home The Venue`,width:1200,height:800}},greenwoodHotel:{id:`loc_01hk153x00eerbxb70s9fwbmc9`,googlePlaceId:`ChIJPZiEA_OuEmsRWKYZIBL58QU`,name:`Greenwood Hotel`,address:`The Greenwood Plaza Rooftop, 36 Blue St, North Sydney NSW 2060, Australia`,city:`North Sydney`,state:`New South Wales`,postcode:`2060`,country:`Australia`,latitude:-33.8401485,longitude:151.2074803,timeZone:`Australia/Sydney`,types:[`bar`,`establishment`,`food`,`point_of_interest`,`restaurant`],image:{src:`https://assets.session.services/locations/loc_01hk153x00eerbxb70s9fwbmc9.jpg`,alt:`Greenwood Hotel`,width:1200,height:800}},sydneyRacquetClub:{id:`loc_01hk153x00f26trt0z9kmm5pm4`,googlePlaceId:`ChIJB3Dai2SvEmsR904tdDsfGWs`,name:`Sydney Racquet Club`,address:`17 Park Rd N, Moore Park NSW 2021, Australia`,city:`Moore Park`,state:`New South Wales`,postcode:`2021`,country:`Australia`,latitude:-33.89344310000001,longitude:151.2260224,timeZone:`Australia/Sydney`,types:[`establishment`,`point_of_interest`],image:{src:`https://assets.session.services/locations/loc_01hk153x00f26trt0z9kmm5pm4.jpg`,alt:`Sydney Racquet Club`,width:1200,height:800}},centralStation:{id:`loc_01hk153x00fypv7sxqvby33hsg`,googlePlaceId:`ChIJpcfaaCGuEmsRcTRNZkqb51U`,name:`Central Station`,address:`Eddy Ave, Haymarket NSW 2000, Australia`,city:`Haymarket`,state:`New South Wales`,postcode:`2000`,country:`Australia`,latitude:-33.8826465,longitude:151.2064744,timeZone:`Australia/Sydney`,types:[`establishment`,`point_of_interest`,`subway_station`,`train_station`,`transit_station`],image:{src:`https://assets.session.services/locations/loc_01hk153x00fypv7sxqvby33hsg.jpg`,alt:`Central Station`,width:1200,height:800}},federationSquare:{id:`loc_01hk153x00ebfrn7y8v7z8emew`,googlePlaceId:`ChIJc4QL47ZC1moRFW-PYdhx-O0`,name:`Federation Square`,address:`Federation Square, Melbourne VIC 3000, Australia`,city:`Melbourne`,state:`Victoria`,postcode:`3000`,country:`Australia`,latitude:-37.8179789,longitude:144.9690576,timeZone:`Australia/Melbourne`,types:[`town_square`],image:{src:`https://assets.session.services/locations/loc_01hk153x00ebfrn7y8v7z8emew.jpg`,alt:`Federation Square`,width:1200,height:800}},bondiBeach:{id:`loc_01hk153x00er59hr0dvf9t4mpy`,googlePlaceId:`ChIJWTi8xgGyEmsRgK0yFmh9AQU`,name:`Bondi Beach`,address:`Bondi Beach NSW 2026, Australia`,city:`Bondi Beach`,state:`New South Wales`,postcode:`2026`,country:`Australia`,latitude:-33.8891201,longitude:151.2703991,timeZone:`Australia/Sydney`,types:[`locality`,`political`],image:{src:`https://assets.session.services/locations/loc_01hk153x00er59hr0dvf9t4mpy.jpg`,alt:`Bondi Beach`,width:1200,height:800}},sydney:{id:`loc_01hk153x00fyrr4gttg9psr5cv`,googlePlaceId:`ChIJP3Sa8ziYEmsRUKgyFmh9AQM`,name:`Sydney`,address:`Sydney NSW, Australia`,city:`Sydney`,state:`New South Wales`,postcode:void 0,country:`Australia`,latitude:-33.8727409,longitude:151.2057136,timeZone:`Australia/Sydney`,types:[`colloquial_area`,`locality`,`political`],image:{src:`https://assets.session.services/locations/loc_01hk153x00fyrr4gttg9psr5cv.jpg`,alt:`Sydney`,width:1200,height:800}}};})(Z$1||={});const ih=F$1({net:M$1().min(0).meta({examples:[b$1.OrderItem.price.net],description:`Total amount to pay to promoter in cents.
|
|
37
|
+
Calculated as: total - booking - refunded`}),total:M$1().min(0).meta({examples:[b$1.OrderItem.price.total],description:`Total amount the customer should pay in cents.
|
|
38
|
+
Calculated as: gross - discount`}),gross:M$1().min(0).meta({examples:[b$1.OrderItem.price.gross],description:`Total amount before refunds and discounts in cents.
|
|
39
|
+
Calculated as: base + booking`}),base:M$1().min(0).meta({examples:[b$1.OrderItem.price.base],description:`Total ticket price in cents`}),booking:M$1().min(0).meta({examples:[b$1.OrderItem.price.booking],description:`Total booking fees in cents (non-refundable)`}),refunded:M$1().max(0).meta({examples:[b$1.OrderItem.price.refunded],description:`Total amount refunded in cents`}),discount:M$1().max(0).meta({examples:[b$1.OrderItem.price.discount],description:`Total amount discounted in cents`}),currency:R$1.meta({examples:[b$1.OrderItem.price.currency],description:`Currency code in ISO 4217 format.`})}),ah=I$1([`ADMISSION`,`ADDON`]),sh=F$1({id:k$1().meta({examples:[b$1.OrderItem.id],description:`Unique identifier for this order item`}),kind:ah.meta({examples:[b$1.OrderItem.kind],description:`Type of item: ADMISSION for tickets, ADDON for additional products or services`}),quantity:M$1().min(1).meta({examples:[b$1.OrderItem.quantity],description:`Number of items purchased (minimum 1)`}),admissionId:k$1().optional().meta({examples:[b$1.OrderItem.admissionId],description:`Unique identifier of the admission ticket type, required for ADMISSION items`}),sectionId:k$1().optional().meta({examples:[b$1.OrderItem.sectionId],description:`Unique identifier of the venue section for this admission`}),admission:W$2.optional().meta({examples:[Z$1.Admission],description:`Complete admission details captured at time of purchase. This is a snapshot that preserves the exact ticket type information as it was when the order was placed`}),section:zp.optional().meta({examples:[Z$1.Section],description:`Complete section details captured at time of purchase. This is a snapshot that preserves the exact venue area or category information as it was when the order was placed`}),price:ih.meta({description:`Pricing breakdown for this order item including all fees and discounts`})}),ch=F$1({promoter:N$1(),tenant:N$1()}),lh=I$1([`SMS_DELIVERY`]).meta({description:`Type of pre-computed offer available for this order`}),uh=F$1({amount:M$1().min(0).meta({examples:[200],description:`Offer price in the smallest currency unit (e.g. cents)`}),currency:R$1.meta({examples:[`AUD`],description:`Three-letter ISO 4217 currency code`})}),dh=F$1({kind:lh.meta({examples:[`SMS_DELIVERY`],description:`Discriminator identifying the type of offer`}),label:k$1().meta({examples:[`SMS ticket delivery`],description:`Human-readable label for the offer`}),price:uh.meta({description:`Pre-computed price for this offer`})}),fh=I$1([`FREE`,`AIRWALLEX`,`STRIPE`]),mh=I$1([`AMERICAN_EXPRESS`,`CHINA_UNION_PAY`,`DINERS_CLUB_INTERNATIONAL`,`DISCOVER`,`JCB`,`MAESTRO`,`MASTERCARD`,`UNION_PAY`,`VISA`]),gh=I$1(`ACH_DIRECT_DEBIT.ACSS_DEBIT.AFFIRM.AFTERPAY.ALFAMART.ALIPAY.ALIPAYCN.ALIPAYHK.ALMA.AMAZON_PAY.APPLEPAY.ATOME.BACS_DIRECT_DEBIT.BANCONTACT.BANK_TRANSFER.BECS_DIRECT_DEBIT.BILLIE.BITPAY.BLIK.BOLETO.BOOST.CARD.CARD_PRESENT.CASHAPP.CRYPTO.CUSTOM.CUSTOMER_BALANCE.DANA.DOKU_EWALLET.DRAGONPAY.DUIT_NOW.EFT_DIRECT_DEBIT.EPS.ESUN.FAMILY_MART.FPX.FPS.GCASH.GIROPAY.GOOGLEPAY.GO_PAY.GRABPAY.HI_LIFE.IDEAL.INDOMARET.INTERAC_PRESENT.JENIUS_PAY.KAKAOPAY.KLARNA.KONBINI.KOREAN_LOCAL_CARD.LINK.LINKAJA.MAXIMA.MB_WAY.MOBILEPAY.MULTIBANCO.MYBANK.NARVESEN.NAVER_PAY.NZ_BANK_ACCOUNT.ONLINE_BANKING.OVO.OXXO.P24.PAYBYBANKAPP.PAYCO.PAYEASY.PAYPAL.PAYPAY.PAYSAFECASH.PAYSAFECARD.PAYSERA.PAY_NOW.PERLAS_TERMINALS.PIX.PROMPTPAY.RABBIT_LINE_PAY.REVOLUT_PAY.SAMSUNG_PAY.SATISPAY.SEPA_DIRECT_DEBIT.SEVEN_ELEVEN.SHOPEE_PAY.SKRILL.SOFORT.SWISH.TNG.TOSS_PAY.TRUEMONEY.TRUSTLY.TWINT.VERKKOPANKKI.WECHATPAY.ZIP`.split(`.`)),vh=F$1({method:fh.meta({examples:[`FREE`],description:`Payment gateway used to process this order: FREE for no-cost orders, AIRWALLEX or STRIPE for paid orders`}),source:gh.optional().meta({examples:[`APPLEPAY`,`GOOGLEPAY`,`CARD`],description:`Payment method used by the customer such as ApplePay, GooglePay, or card-based payments`}),brand:mh.optional().meta({examples:[`VISA`,`MASTERCARD`,`AMERICAN_EXPRESS`],description:`Card brand when source is CARD (Visa, Mastercard, American Express, etc.)`}),last4:k$1().optional().meta({examples:[`4242`],description:`Last 4 digits of the card number when source is CARD`}),stripeId:k$1().optional().meta({examples:[`pi_1234567890abcdef`],description:`Stripe payment intent identifier when using Stripe gateway`}),stripeClientSecret:k$1().optional().meta({examples:[`pi_1234567890abcdef_secret_xyz`],description:`Stripe PaymentIntent client secret associated with the order, used to complete the payment flow`}),stripeAccountId:k$1().optional().meta({examples:[`acct_1234567890abcdef`],description:`Connected Stripe account ID for direct charges. When present, payment is processed directly on the connected account rather than the platform account.`}),airwallexId:k$1().optional().meta({examples:[`int_hkdmr7v9rg1j8donpkmv96`],description:`Airwallex payment intent identifier when using Airwallex gateway`}),airwallexClientSecret:k$1().optional().meta({examples:[`eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3MDAwMDAwMDAsImV4cCI6MTcwMDAwMzYwMCwiaW50ZW50X2lkIjoiaW50X2hrZG1yN3Y5cmcxajhkb25wa212OTYifQ.K8vLx2nPzQHdR5mT1wYcBfJkLmNpS3xG7aE9dH4qZvM`],description:`Airwallex client secret used to authenticate requests for payment initialization`}),airwallexCustomerId:k$1().optional().meta({examples:[`cus_hkdmrhkh8he4j3kvela`],description:`Airwallex customer ID attached to the PaymentIntent for saved cards functionality`}),airwallexCustomerClientSecret:k$1().optional().meta({examples:[`eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3MDAwMDAwMDAsImV4cCI6MTcwMDAwMzYwMCwiY3VzdG9tZXJfaWQiOiJjdXNfaGtkbXJoa2g4aGU0ajNrdmVsYSJ9.abc123`],description:`Airwallex customer client secret for accessing saved payment methods in the Drop-in Element`})}),yh=F$1({net:M$1().meta({examples:[b$1.Order.price.net],description:`Total amount to pay to promoter in cents.
|
|
40
|
+
Calculated as: total + booking + refunded + dispute`}),total:M$1().meta({examples:[b$1.Order.price.total],description:`Total amount the customer should pay in cents.
|
|
41
|
+
Calculated as: gross + discount`}),gross:M$1().min(0).meta({examples:[b$1.Order.price.gross],description:`Total amount before refunds and discounts in cents.
|
|
42
|
+
Calculated as: base + booking + shipping`}),base:M$1().min(0).meta({examples:[b$1.Order.price.base],description:`Total ticket price in cents`}),booking:M$1().min(0).meta({examples:[b$1.Order.price.booking],description:`Total booking fees in cents (non-refundable)`}),shipping:M$1().min(0).meta({examples:[b$1.Order.price.shipping],description:`Total shipping amount in cents`}),sms:M$1().min(0).default(0).meta({examples:[b$1.Order.price.sms],description:`SMS delivery fee in cents (customer-facing price in event currency)`}),refunded:M$1().max(0).meta({examples:[b$1.Order.price.refunded],description:`Total amount refunded in cents (negative value)`}),discount:M$1().max(0).meta({examples:[b$1.Order.price.discount],description:`Total amount discounted in cents (negative value)`}),gateway:M$1().max(0).meta({examples:[b$1.Order.price.gateway],description:`Total absorbed payment gateway fees in cents (negative value)`}),dispute:M$1().max(0).meta({examples:[b$1.Order.price.dispute],description:`Total non-absorbed payment gateway fees in cents (negative value)`}),currency:R$1.meta({examples:[b$1.Order.price.currency],description:`Currency code in ISO 4217 format`})}),bh=I$1([`PENDING`,`PROCESSING`,`SUCCEEDED`,`FAILED`]),Sh=I$1([`CUSTOMER_REQUEST`,`DUPLICATE`,`EVENT_CANCELLED`,`OTHER`]),wh=I$1([`USER`,`GATEWAY`]),Eh=F$1({orderItemId:k$1().meta({examples:[b$1.OrderRefundItem.orderItemId],description:`Identifier of the order item being refunded`}),quantity:M$1().min(1).meta({examples:[b$1.OrderRefundItem.quantity],description:`Number of units refunded for this item`}),amount:M$1().min(0).meta({examples:[b$1.OrderRefundItem.amount],description:`Refund amount for this item in cents (base price only, excludes booking fee)`}),ticketIds:P$1(k$1()).meta({examples:[b$1.OrderRefundItem.ticketIds],description:`Specific ticket identifiers that were refunded (selected via FIFO)`})}),Dh=F$1({id:k$1().meta({examples:[b$1.OrderRefund.id],description:`Unique identifier for this refund`}),idempotencyKey:k$1().optional().meta({examples:[b$1.OrderRefund.idempotencyKey],description:`Client-provided key to prevent duplicate refund processing`}),status:bh.meta({examples:[`PENDING`,`SUCCEEDED`],description:`Current processing status. PENDING: awaiting gateway confirmation or async processing (e.g., bank transfers). PROCESSING: gateway confirmed, ticket cancellation in progress. SUCCEEDED/FAILED: terminal states.`}),processedAt:D$1().optional().meta({examples:[b$1.OrderRefund.processedAt],description:`Timestamp when the payment gateway confirmed the refund`}),failureReason:k$1().optional().meta({examples:[`Insufficient funds for refund`],description:`Error message from payment gateway if refund failed`}),amount:M$1().min(1).meta({examples:[b$1.OrderRefund.amount],description:`Total refund amount in cents (excludes booking fee, includes shipping if applicable)`}),shippingRefunded:M$1().min(0).meta({examples:[b$1.OrderRefund.shippingRefunded],description:`Shipping portion of the refund in cents`}),reason:Sh.meta({examples:[`CUSTOMER_REQUEST`,`DUPLICATE`,`EVENT_CANCELLED`],description:`Categorized reason for the refund used for analytics`}),note:k$1().optional().meta({examples:[b$1.OrderRefund.note],description:`Free-form notes explaining the refund`}),items:P$1(Eh).meta({description:`Line items included in this refund with quantities and amounts`}),ticketsCancelled:N$1().meta({examples:[b$1.OrderRefund.ticketsCancelled],description:`Whether tickets were cancelled as part of this refund`}),ticketsCancelledCount:M$1().optional().meta({examples:[b$1.OrderRefund.ticketsCancelledCount],description:`Number of tickets that were cancelled`}),gateway:fh.meta({examples:[`STRIPE`,`AIRWALLEX`],description:`Payment gateway used to process the refund`}),gatewayRefundId:k$1().optional().meta({examples:[b$1.OrderRefund.gatewayRefundId],description:`Refund identifier from the payment gateway`}),initiatedBy:wh.meta({examples:[`USER`,`GATEWAY`],description:`Whether refund was initiated by a user or directly through the payment gateway`}),userId:k$1().optional().meta({examples:[b$1.OrderRefund.userId],description:`Identifier of the user who initiated the refund (when initiatedBy is USER)`}),metadata:Cs(k$1(),k$1()).optional().meta({examples:[{supportTicket:`#12345`}],description:`Custom key-value pairs passed through to the payment gateway`}),createdAt:D$1().meta({examples:[b$1.OrderRefund.createdAt],description:`Timestamp when the refund was created`})}),Oh=yh.extend({exchangeRate:j$1().meta({examples:[1.4],description:`Conversion rate applied from the original payment currency to the settlement currency. 1.0 when both currencies are the same`})}).meta({description:`Settled price breakdown in the payout currency. All amounts from the original order price are converted using the exchange rate. For same-currency orders the values match the order price with an exchange rate of 1.0`,examples:[{base:14e3,booking:700,shipping:0,sms:0,discount:0,refunded:0,gateway:0,dispute:0,gross:14700,total:14700,net:14e3,currency:`AUD`,exchangeRate:1.4}]});function kh(e,t,n={}){return F$1({id:k$1().meta({examples:t.idExamples,description:t.idDescription}),createdAt:D$1().readonly().meta({examples:t.createdAtExamples,description:`Timestamp in ISO 8601 format when this timeline entry was created`}),...n,kind:e.meta({examples:t.kindExamples,description:t.kindDescription}),editable:N$1().meta({examples:[false],description:`Whether this timeline entry can be edited by users`}),pinned:N$1().meta({examples:[false],description:`Whether this timeline entry is pinned to the top of the timeline`}),description:k$1().meta({examples:t.descriptionExamples,description:`Human-readable description of what happened in this timeline event`}),author:k$1().meta({examples:[`System`],description:`Name of the user or system that created this timeline entry`}),userId:k$1().optional().meta({examples:[b$1.User.id],description:t.userIdDescription??`Identifier of the user who created this timeline entry, when available`}),externalId:k$1().optional().meta({examples:t.externalIdExamples,description:t.externalIdDescription})})}const Ah=I$1(`ORDER_STATUS_UPDATED.ORDER_EXPIRED.ORDER_COMPLETED.PAYMENT_INITIATED.PAYMENT_PROCESSING.PAYMENT_FAILED.PAYMENT_SUCCEEDED.REFUND_INITIATED.REFUND_PROCESSING.REFUND_SUCCEEDED.REFUND_FAILED.CHARGEBACK_INITIATED.CHARGEBACK_EVIDENCE_SUBMITTED.CHARGEBACK_WON.CHARGEBACK_LOST.CHARGEBACK_FUNDS_WITHDRAWN.TICKETS_GENERATED.TICKET_ADDED.TICKETS_SCANNED.TICKET_EDITED.TICKET_STATUS_CHANGED.EMAIL_SENT.EMAIL_DELIVERED.EMAIL_OPENED.EMAIL_BOUNCED.EMAIL_COMPLAINED.EMAIL_FAILED.SMS_SENT.SMS_DELIVERED.SMS_FAILED.NOTE`.split(`.`)),jh=kh(Ah,{createdAtExamples:[b$1.Order.createdAt],descriptionExamples:[`Order was created successfully`],externalIdDescription:`External idempotency key for deduplication (e.g., SES messageId + eventType)`,externalIdExamples:[`ses:01234567-89ab-cdef-0123-456789abcdef:Delivery`],idDescription:`Unique identifier of the timeline entry`,idExamples:[b$1.Timeline.id],kindDescription:`Type of timeline event (ORDER_COMPLETED, PAYMENT_SUCCEEDED, REFUND_INITIATED, etc.)`,kindExamples:[`ORDER_COMPLETED`],userIdDescription:`Identifier of the user who created this timeline entry, when available.`},{status:k$1().optional().meta({examples:[`SUCCESSFUL`],description:`Order status associated with this timeline entry, when applicable.`})}),Mh=I$1([`PENDING`,`PROCESSING`,`SUCCESSFUL`,`DISPUTED`,`ABANDONED`]),Ph=F$1({id:dc.readonly().meta({examples:[b$1.Order.id],description:`A unique identifier for this order.`}),createdAt:D$1().readonly().meta({examples:[b$1.Order.createdAt],description:`Timestamp in ISO 8601 format when this order was created.`}),updatedAt:D$1().readonly().meta({examples:[b$1.Order.updatedAt],description:`Timestamp in ISO 8601 format when this order was last updated.`}),status:Mh.meta({examples:[`PENDING`],description:`Current payment lifecycle status. PENDING: awaiting payment. PROCESSING: payment in progress. SUCCESSFUL: payment confirmed. DISPUTED: chargeback filed. ABANDONED: expired or cancelled.`}),payment:vh.optional().meta({description:`Payment gateway details including method, card brand, and transaction identifiers. Absent for free orders.`}),items:P$1(sh).meta({description:`Line items in this order, each with a ticket type, quantity, and price breakdown.`}),fees:P$1(Qm).meta({description:`Gateway fees recorded against this order from settlement processing (e.g. payment processing fees, dispute fees).`}),price:yh.meta({description:`Price breakdown in the event currency. This reflects what the customer was charged.`}),settlement:Oh.optional().meta({description:`Price breakdown in the payout currency with the exchange rate applied. When the event currency differs from the settlement currency, all amounts are converted. For same-currency orders the values match the order price with an exchange rate of 1.0.`}),couponCode:Jm.optional().meta({description:`Coupon code applied to this order for discount calculation.`}),customer:Ym.optional().meta({description:`Customer who placed this order. Absent for guest checkouts before customer details are captured.`}),marketingConsent:ch.optional().meta({description:`Marketing opt-in choices captured during checkout.`}),timeline:P$1(jh).optional().meta({description:`Chronological audit trail of events for this order (payments, refunds, emails, scans).`}),refunds:P$1(Dh).default([]).meta({description:`Refunds processed for this order including pending, succeeded, and failed attempts.`}),offers:P$1(dh).default([]).meta({description:`Pre-computed add-on offers available during checkout (e.g. SMS ticket delivery).`}),customerId:gc.optional().meta({examples:[b$1.Customer.id],description:`Identifier of the customer who placed this order.`}),createdBy:Ym.optional().meta({description:`Admin user who created this order on behalf of the customer.`}),teamId:sc.meta({description:`Team that owns this order.`}),promoterId:pc.meta({examples:[b$1.Promoter.id],description:`Promoter managing this order.`}),event:Xm.meta({description:`Snapshot of the event at time of purchase (name, slug, location).`}),payoutIds:P$1(bc.meta({examples:[`pay_01HQXYZ`],description:`Payout identifier.`})).meta({description:`Payout identifiers for settlements that included this order.`}),eventId:B$1.meta({examples:[b$1.Event.id],description:`Identifier of the event this order belongs to.`}),checkoutUrl:k$1().optional().readonly().meta({examples:[`https://example.com/checkout/ord_1234567890`],description:`Derived checkout URL where the customer can complete payment for this order.`}),returnUrl:k$1().optional().meta({examples:[`https://example.com/event/success`],description:`URL to redirect to after successful payment completion.`}),channel:qm.optional().meta({description:`Channel metadata captured at order creation to identify origin and redirect context.`}),reservedAt:D$1().optional().meta({examples:[new Date().toISOString()],description:`Timestamp when inventory was reserved for this order. Used for checkout countdown timer.`})}).meta({description:`A customer order for event tickets. Tracks the full lifecycle from checkout through payment, settlement, and payout.`}),Fh=F$1({id:k$1().meta({examples:[b$1.Order.id],description:`Unique identifier of the order to add a note to`}),note:k$1().min(1).max(1e3).meta({examples:[`Customer requested special seating arrangements`],description:`Note text content (1-1000 characters)`})}),Ih=sh.omit({id:true,price:true,kind:true}).extend({id:k$1().optional().meta({examples:[`itm_01jps5cgsfwyxj0516571eaf17`],description:`Unique identifier for this order item. When omitted, the server assigns an id during processing`})}),Lh=F$1({eventId:k$1().meta({examples:[`evt_01jps5cgsenjrazw6wswmyspa3`],description:`Unique identifier of the event for which to create the order`}),items:P$1(Ih).meta({description:`List of items to include in the new order`}),couponCode:k$1().optional().meta({examples:[`TEST50`],description:`Optional coupon code to apply discount to the order`}),returnUrl:k$1().optional().meta({examples:[`https://example.com/event/success`],description:`Optional URL to redirect to after successful payment`}),channel:qm.optional().meta({description:`Optional channel metadata for where the order originated (for attribution and redirect routing).`})}),Rh=F$1({id:k$1().meta({examples:[b$1.Order.id],description:`Unique identifier of the order`}),noteId:k$1().meta({examples:[`tl_1234567890_abc123`],description:`Unique identifier of the timeline note to delete`})}),zh=I$1([`EMAIL`,`SMS`]).meta({examples:[`EMAIL`],description:`Method used to deliver tickets to the customer: EMAIL or SMS`});F$1({id:k$1().meta({examples:[b$1.Order.id],description:`Unique identifier of the order to edit`}),signature:wl.meta({description:`HMAC signature for customer access during checkout (16 characters, base64url encoded). Required for editing order items.`}),items:P$1(Ih).min(1).meta({description:`Updated list of items for the order (replaces existing items). Prices will be recalculated and payment intent updated.`})});const Vh=F$1({id:k$1().meta({examples:[b$1.Order.id],description:`Unique identifier of the order to retrieve`}),signature:wl.optional().meta({description:`HMAC signature for public order access (16 characters, base64url encoded)`})}),Hh=`Either locationId or googlePlaceId must be provided`,Uh={locationId:lc.optional().meta({examples:[`loc_01jqpjksnsen9vprw95et60t2m`],description:`ID of an existing location. Either locationId or googlePlaceId must be provided.`}),googlePlaceId:k$1().optional().meta({examples:[`ChIJN1t_tDeuEmsRUsoyG83frY4`],description:`Google Place ID to create a new location from. Either locationId or googlePlaceId must be provided.`})};function Wh(e){return !!(e.locationId||e.googlePlaceId)}const Gh=zp.omit({id:true,createdAt:true,updatedAt:true,order:true,available:true,sold:true,reserved:true,promoterId:true,eventSlug:true,location:true}).extend({order:j$1().optional().meta({examples:[b$1.Section.order],description:`Display order of the section. Lower numbers appear first in listings. Defaults to 0 if not specified`}),...Uh}).refine(Wh,{message:Hh}).meta({description:`Schema for creating a new section within an event venue. Excludes system-generated fields and fields derived from the event`}),Kh=zp.pick({id:true}).extend({eventId:k$1().meta({examples:[b$1.Section.eventId],description:`Unique identifier of the event to verify section belongs to`})}).meta({description:`Schema for soft-deleting a section by setting its deletedAt timestamp`}),qh=zp.pick({id:true}).extend({eventId:k$1().meta({examples:[b$1.Section.eventId],description:`Unique identifier of the event to verify section belongs to`})}).meta({description:`Schema for retrieving a specific section by ID`}),Jh=F$1({eventId:zp.shape.eventId,query:k$1().optional().meta({examples:[`VIP`],description:`Optional search query. When provided, automatically uses search-backed pagination for full-text search capabilities`}),limit:L$1().min(1).max(100).prefault(20).meta({examples:[20],description:`Maximum number of sections to return in each result set. Must be between 1 and 100, defaults to 20`}),cursor:k$1().optional().meta({examples:[`eyJpbnRlbnQiOnsicmVzb3VyY2UiOiJzZWN0aW9uLmxpc3QifSwicG9zaXRpb24iOnsiZW5naW5lIjoiZHluYW1vIiwgImN1cnNvciI6InNlY18wMWpwczVjZ3NlMGczcWo1NnZkODZ6N3FqIiwgImhpc3RvcnkiOltdfX0=`],description:`Opaque pagination cursor from a previous response. Provide to continue fetching subsequent results`})}).meta({description:`Schema for listing sections with cursor-based pagination. Automatically uses search-backed pagination when query parameter is provided`}),Yh=G$2(zp,`sections`),Xh=F$1({section:zp}),Zh=zp.omit({promoterId:true,createdAt:true,updatedAt:true,eventSlug:true,available:true,sold:true,reserved:true,location:true,teamId:true,name:true,capacity:true,limit:true,order:true,passcode:true}).extend({id:k$1().meta({examples:[b$1.Section.id],description:`Unique identifier of the section to update`}),eventId:k$1().meta({examples:[b$1.Section.eventId],description:`Unique identifier of the event to verify section belongs to`}),name:zp.shape.name.optional(),capacity:Oc().optional(),limit:kc().optional(),order:zp.shape.order.optional(),passcode:zp.shape.passcode,locationId:lc.optional().meta({examples:[`loc_01jqpjksnsen9vprw95et60t2m`],description:`ID of an existing location to update to. Either locationId or googlePlaceId can be provided.`}),googlePlaceId:k$1().optional().meta({examples:[`ChIJN1t_tDeuEmsRUsoyG83frY4`],description:`Google Place ID to update location from. Either locationId or googlePlaceId can be provided.`})}).meta({description:`Schema for updating an existing section.`}),Qh=sh.extend({admission:W$2.optional().meta({description:`Complete admission details for this order item when available`}),section:zp.optional().meta({description:`Complete section details for this order item when applicable`})}),$h=I$1([`asc`,`desc`]),eg=F$1({mine:N$1().optional().meta({examples:[true],description:`When true, returns only the authenticated user's orders. Can be combined with teamId or eventId to further filter results.`}),teamId:k$1().optional().meta({description:`Filter orders by team unique identifier`}),eventId:k$1().optional().meta({examples:[`evt_01jps5cgsenjrazw6wswmyspa3`],description:`Filter orders by event unique identifier`}),status:Mh.optional().meta({examples:[`SUCCESSFUL`],description:`Filter orders by payment status`}),query:k$1().optional().meta({examples:[`John Doe`],description:`Optional search query to filter orders by customer details. When provided, search-backed pagination is used.`}),includeEventTerms:N$1().optional().meta({examples:[true],description:`When true for authenticated user-owned order searches, also matches event name, slug, and location unless eventId is already provided.`}),direction:$h.optional().meta({examples:[`asc`,`desc`],description:"Sort direction for order lists. Orders are always sorted by creation time. Defaults to `desc` when omitted."}),from:k$1().date().optional().meta({examples:[`2025-01-01`],description:`Filter orders created on or after this date (YYYY-MM-DD format). Inclusive of the entire day.`}),to:k$1().date().optional().meta({examples:[`2025-12-31`],description:`Filter orders created on or before this date (YYYY-MM-DD format). Inclusive of the entire day.`}),limit:U$2(`orders`),cursor:k$1().optional().meta({examples:[`eyJpZCI6Im9yZF8wMWpwczVjZ3NmZ3ZlNWI1ZzI2NjZreXJ5aCJ9`],description:`Pagination cursor for continuing to fetch subsequent results`})}),tg=G$2(Ph,`orders`),ng=F$1({items:P$1(Qh).meta({description:`List of order items with complete pricing and admission details`}),price:yh.meta({description:`Total pricing breakdown for the entire order quote`}),couponCode:rp.optional().meta({description:`Applied coupon code details if a discount was used in this quote`})}),rg=F$1({eventId:k$1().meta({examples:[`evt_01jps5cgsenjrazw6wswmyspa3`],description:`Unique identifier of the event for which to generate a price quote`}),items:P$1(Ih).meta({description:`List of items to include in the price quote calculation`}),couponCode:k$1().optional().meta({examples:[`TEST50`],description:`Optional coupon code to apply discount to the quote`})}),ig=F$1({quote:ng}),ag=F$1({orderItemId:k$1().meta({examples:[b$1.OrderRefundItem.orderItemId],description:`Identifier of the order item to refund`}),quantity:M$1().min(1).meta({examples:[b$1.OrderRefundItem.quantity],description:`Number of units to refund for this item`})}),og=F$1({id:dc.meta({examples:[b$1.Order.id],description:`Identifier of the order to refund`}),fullRefund:N$1().default(false).meta({examples:[false],description:`When true, refunds all remaining refundable items. Mutually exclusive with items.`}),items:P$1(ag).optional().meta({description:`Specific items and quantities to refund. Required if fullRefund is false.`}),shippingAmount:M$1().min(0).optional().meta({examples:[500],description:`Amount of shipping to refund in cents. Cannot exceed remaining refundable shipping.`}),cancelTickets:N$1().default(true).meta({examples:[true],description:`Whether to cancel tickets associated with refunded items. Defaults to true.`}),notify:N$1().default(true).meta({examples:[true],description:`Whether to send a refund confirmation email to the customer. Defaults to true.`}),reason:Sh.meta({examples:[`CUSTOMER_REQUEST`,`DUPLICATE`,`EVENT_CANCELLED`],description:`Categorized reason for the refund`}),note:k$1().optional().meta({examples:[`Customer requested refund due to schedule conflict`],description:`Free-form notes explaining the refund`}),idempotencyKey:k$1().optional().meta({examples:[`refund_12345_customer_request`],description:`Client-provided key to prevent duplicate refund processing. Recommended for programmatic refunds.`}),metadata:Cs(k$1(),k$1()).optional().meta({examples:[{supportTicket:`#12345`}],description:`Custom key-value pairs passed through to the payment gateway`})}).refine(e=>e.fullRefund||e.items&&e.items.length>0,{message:`Either fullRefund must be true or items must be provided`}),sg=F$1({refund:Dh}),cg=F$1({id:k$1().meta({examples:[b$1.Order.id],description:`Order ID to resend tickets for`}),email:k$1().email().optional().meta({examples:[`customer@example.com`],description:`Email address to send tickets to. If not provided, uses order.customer.email`})}),lg=F$1({id:k$1().meta({examples:[b$1.Order.id],description:`Unique identifier of the order to reserve inventory for`}),signature:wl.meta({description:`HMAC signature for customer access during checkout (16 characters, base64url encoded).`})}),dg=F$1({order:Ph});var fg={version:4,country_calling_codes:{1:[`US`,`AG`,`AI`,`AS`,`BB`,`BM`,`BS`,`CA`,`DM`,`DO`,`GD`,`GU`,`JM`,`KN`,`KY`,`LC`,`MP`,`MS`,`PR`,`SX`,`TC`,`TT`,`VC`,`VG`,`VI`],7:[`RU`,`KZ`],20:[`EG`],27:[`ZA`],30:[`GR`],31:[`NL`],32:[`BE`],33:[`FR`],34:[`ES`],36:[`HU`],39:[`IT`,`VA`],40:[`RO`],41:[`CH`],43:[`AT`],44:[`GB`,`GG`,`IM`,`JE`],45:[`DK`],46:[`SE`],47:[`NO`,`SJ`],48:[`PL`],49:[`DE`],51:[`PE`],52:[`MX`],53:[`CU`],54:[`AR`],55:[`BR`],56:[`CL`],57:[`CO`],58:[`VE`],60:[`MY`],61:[`AU`,`CC`,`CX`],62:[`ID`],63:[`PH`],64:[`NZ`],65:[`SG`],66:[`TH`],81:[`JP`],82:[`KR`],84:[`VN`],86:[`CN`],90:[`TR`],91:[`IN`],92:[`PK`],93:[`AF`],94:[`LK`],95:[`MM`],98:[`IR`],211:[`SS`],212:[`MA`,`EH`],213:[`DZ`],216:[`TN`],218:[`LY`],220:[`GM`],221:[`SN`],222:[`MR`],223:[`ML`],224:[`GN`],225:[`CI`],226:[`BF`],227:[`NE`],228:[`TG`],229:[`BJ`],230:[`MU`],231:[`LR`],232:[`SL`],233:[`GH`],234:[`NG`],235:[`TD`],236:[`CF`],237:[`CM`],238:[`CV`],239:[`ST`],240:[`GQ`],241:[`GA`],242:[`CG`],243:[`CD`],244:[`AO`],245:[`GW`],246:[`IO`],247:[`AC`],248:[`SC`],249:[`SD`],250:[`RW`],251:[`ET`],252:[`SO`],253:[`DJ`],254:[`KE`],255:[`TZ`],256:[`UG`],257:[`BI`],258:[`MZ`],260:[`ZM`],261:[`MG`],262:[`RE`,`YT`],263:[`ZW`],264:[`NA`],265:[`MW`],266:[`LS`],267:[`BW`],268:[`SZ`],269:[`KM`],290:[`SH`,`TA`],291:[`ER`],297:[`AW`],298:[`FO`],299:[`GL`],350:[`GI`],351:[`PT`],352:[`LU`],353:[`IE`],354:[`IS`],355:[`AL`],356:[`MT`],357:[`CY`],358:[`FI`,`AX`],359:[`BG`],370:[`LT`],371:[`LV`],372:[`EE`],373:[`MD`],374:[`AM`],375:[`BY`],376:[`AD`],377:[`MC`],378:[`SM`],380:[`UA`],381:[`RS`],382:[`ME`],383:[`XK`],385:[`HR`],386:[`SI`],387:[`BA`],389:[`MK`],420:[`CZ`],421:[`SK`],423:[`LI`],500:[`FK`],501:[`BZ`],502:[`GT`],503:[`SV`],504:[`HN`],505:[`NI`],506:[`CR`],507:[`PA`],508:[`PM`],509:[`HT`],590:[`GP`,`BL`,`MF`],591:[`BO`],592:[`GY`],593:[`EC`],594:[`GF`],595:[`PY`],596:[`MQ`],597:[`SR`],598:[`UY`],599:[`CW`,`BQ`],670:[`TL`],672:[`NF`],673:[`BN`],674:[`NR`],675:[`PG`],676:[`TO`],677:[`SB`],678:[`VU`],679:[`FJ`],680:[`PW`],681:[`WF`],682:[`CK`],683:[`NU`],685:[`WS`],686:[`KI`],687:[`NC`],688:[`TV`],689:[`PF`],690:[`TK`],691:[`FM`],692:[`MH`],850:[`KP`],852:[`HK`],853:[`MO`],855:[`KH`],856:[`LA`],880:[`BD`],886:[`TW`],960:[`MV`],961:[`LB`],962:[`JO`],963:[`SY`],964:[`IQ`],965:[`KW`],966:[`SA`],967:[`YE`],968:[`OM`],970:[`PS`],971:[`AE`],972:[`IL`],973:[`BH`],974:[`QA`],975:[`BT`],976:[`MN`],977:[`NP`],992:[`TJ`],993:[`TM`],994:[`AZ`],995:[`GE`],996:[`KG`],998:[`UZ`]},countries:{AC:[`247`,`00`,`(?:[01589]\\d|[46])\\d{4}`,[5,6]],AD:[`376`,`00`,`(?:1|6\\d)\\d{7}|[135-9]\\d{5}`,[6,8,9],[[`(\\d{3})(\\d{3})`,`$1 $2`,[`[135-9]`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`1`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`6`]]]],AE:[`971`,`00`,`(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}`,[5,6,7,8,9,10,11,12],[[`(\\d{3})(\\d{2,9})`,`$1 $2`,[`60|8`]],[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[236]|[479][2-8]`],`0$1`],[`(\\d{3})(\\d)(\\d{5})`,`$1 $2 $3`,[`[479]`]],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`5`],`0$1`]],`0`],AF:[`93`,`00`,`[2-7]\\d{8}`,[9],[[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[2-7]`],`0$1`]],`0`],AG:[`1`,`011`,`(?:268|[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([457]\\d{6})$|1`,`268$1`,0,`268`],AI:[`1`,`011`,`(?:264|[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([2457]\\d{6})$|1`,`264$1`,0,`264`],AL:[`355`,`00`,`(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}`,[6,7,8,9],[[`(\\d{3})(\\d{3,4})`,`$1 $2`,[`80|9`],`0$1`],[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`4[2-6]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[2358][2-5]|4`],`0$1`],[`(\\d{3})(\\d{5})`,`$1 $2`,[`[23578]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`6`],`0$1`]],`0`],AM:[`374`,`00`,`(?:[1-489]\\d|55|60|77)\\d{6}`,[8],[[`(\\d{3})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`[89]0`],`0 $1`],[`(\\d{3})(\\d{5})`,`$1 $2`,[`2|3[12]`],`(0$1)`],[`(\\d{2})(\\d{6})`,`$1 $2`,[`1|47`],`(0$1)`],[`(\\d{2})(\\d{6})`,`$1 $2`,[`[3-9]`],`0$1`]],`0`],AO:[`244`,`00`,`[29]\\d{8}`,[9],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[29]`]]]],AR:[`54`,`00`,`(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}`,[10,11],[[`(\\d{4})(\\d{2})(\\d{4})`,`$1 $2-$3`,[`2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])`,`2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)`,`2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]`,`2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]`],`0$1`,1],[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2-$3`,[`1`],`0$1`,1],[`(\\d{3})(\\d{3})(\\d{4})`,`$1-$2-$3`,[`[68]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2-$3`,[`[23]`],`0$1`,1],[`(\\d)(\\d{4})(\\d{2})(\\d{4})`,`$2 15-$3-$4`,[`9(?:2[2-469]|3[3-578])`,`9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))`,`9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)`,`9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]`,`9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]`],`0$1`,0,`$1 $2 $3-$4`],[`(\\d)(\\d{2})(\\d{4})(\\d{4})`,`$2 15-$3-$4`,[`91`],`0$1`,0,`$1 $2 $3-$4`],[`(\\d{3})(\\d{3})(\\d{5})`,`$1-$2-$3`,[`8`],`0$1`],[`(\\d)(\\d{3})(\\d{3})(\\d{4})`,`$2 15-$3-$4`,[`9`],`0$1`,0,`$1 $2 $3-$4`]],`0`,0,`0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?`,`9$1`],AS:[`1`,`011`,`(?:[58]\\d\\d|684|900)\\d{7}`,[10],0,`1`,0,`([267]\\d{6})$|1`,`684$1`,0,`684`],AT:[`43`,`00`,`1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}`,[4,5,6,7,8,9,10,11,12,13],[[`(\\d)(\\d{3,12})`,`$1 $2`,[`1(?:11|[2-9])`],`0$1`],[`(\\d{3})(\\d{2})`,`$1 $2`,[`517`],`0$1`],[`(\\d{2})(\\d{3,5})`,`$1 $2`,[`5[079]`],`0$1`],[`(\\d{3})(\\d{3,10})`,`$1 $2`,[`(?:31|4)6|51|6(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]`,`(?:31|4)6|51|6(?:485|5[0-3579]|[6-9])|7(?:20|32|8)|[89]`],`0$1`],[`(\\d{4})(\\d{3,9})`,`$1 $2`,[`[2-467]|5[2-6]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`5`],`0$1`],[`(\\d{2})(\\d{4})(\\d{4,7})`,`$1 $2 $3`,[`5`],`0$1`]],`0`],AU:[`61`,`001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011`,`1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}`,[5,6,7,8,9,10,12],[[`(\\d{2})(\\d{3,4})`,`$1 $2`,[`16`],`0$1`],[`(\\d{2})(\\d{3})(\\d{2,4})`,`$1 $2 $3`,[`16`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`14|4`],`0$1`],[`(\\d)(\\d{4})(\\d{4})`,`$1 $2 $3`,[`[2378]`],`(0$1)`],[`(\\d{4})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`1(?:30|[89])`]]],`0`,0,`(183[12])|0`,0,0,0,[[`(?:(?:241|349)0\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|[34]\\d\\d)|91(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79]))))\\d{3}|(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8])|8(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}`,[9]],[`4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}`,[9]],[`180(?:0\\d{3}|2)\\d{3}`,[7,10]],[`190[0-26]\\d{6}`,[10]],0,0,0,[`163\\d{2,6}`,[5,6,7,8,9]],[`14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}`,[9]],[`13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}`,[6,8,10,12]]],`0011`],AW:[`297`,`00`,`(?:[25-79]\\d\\d|800)\\d{4}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[25-9]`]]]],AX:[`358`,`00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))`,`2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}`,[5,6,7,8,9,10,11,12],0,`0`,0,0,0,0,`18`,0,`00`],AZ:[`994`,`00`,`365\\d{6}|(?:[124579]\\d|60|88)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`90`],`0$1`],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`1[28]|2|365|46`,`1[28]|2|365[45]|46`,`1[28]|2|365(?:4|5[02])|46`],`(0$1)`],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[13-9]`],`0$1`]],`0`],BA:[`387`,`00`,`6\\d{8}|(?:[35689]\\d|49|70)\\d{6}`,[8,9],[[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`6[1-3]|[7-9]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2-$3`,[`[3-5]|6[56]`],`0$1`],[`(\\d{2})(\\d{2})(\\d{2})(\\d{3})`,`$1 $2 $3 $4`,[`6`],`0$1`]],`0`],BB:[`1`,`011`,`(?:246|[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([2-9]\\d{6})$|1`,`246$1`,0,`246`],BD:[`880`,`00`,`[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}`,[6,7,8,9,10],[[`(\\d{2})(\\d{4,6})`,`$1-$2`,[`31[5-8]|[459]1`],`0$1`],[`(\\d{3})(\\d{3,7})`,`$1-$2`,[`3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]`],`0$1`],[`(\\d{4})(\\d{3,6})`,`$1-$2`,[`[13-9]|2[23]`],`0$1`],[`(\\d)(\\d{7,8})`,`$1-$2`,[`2`],`0$1`]],`0`],BE:[`32`,`00`,`4\\d{8}|[1-9]\\d{7}`,[8,9],[[`(\\d{3})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`(?:80|9)0`],`0$1`],[`(\\d)(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[239]|4[23]`],`0$1`],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[15-8]`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`4`],`0$1`]],`0`],BF:[`226`,`00`,`(?:[025-7]\\d|44)\\d{6}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[024-7]`]]]],BG:[`359`,`00`,`00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}`,[6,7,8,9,12],[[`(\\d)(\\d)(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`2`],`0$1`],[`(\\d{3})(\\d{4})`,`$1 $2`,[`43[1-6]|70[1-9]`],`0$1`],[`(\\d)(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`2`],`0$1`],[`(\\d{2})(\\d{3})(\\d{2,3})`,`$1 $2 $3`,[`[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]`],`0$1`],[`(\\d{3})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`(?:70|8)0`],`0$1`],[`(\\d{3})(\\d{3})(\\d{2})`,`$1 $2 $3`,[`43[1-7]|7`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[48]|9[08]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`9`],`0$1`]],`0`],BH:[`973`,`00`,`[136-9]\\d{7}`,[8],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[13679]|8[02-4679]`]]]],BI:[`257`,`00`,`(?:[267]\\d|31)\\d{6}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[2367]`]]]],BJ:[`229`,`00`,`(?:01\\d|8)\\d{7}`,[8,10],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`8`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4 $5`,[`0`]]]],BL:[`590`,`00`,`(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}`,[9],0,`0`,0,0,0,0,0,[[`590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}`],[`(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}`],[`80[0-5]\\d{6}`],0,0,0,0,0,[`9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}`]]],BM:[`1`,`011`,`(?:441|[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([2-9]\\d{6})$|1`,`441$1`,0,`441`],BN:[`673`,`00`,`[2-578]\\d{6}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[2-578]`]]]],BO:[`591`,`00(?:1\\d)?`,`8001\\d{5}|(?:[2-467]\\d|50)\\d{6}`,[8,9],[[`(\\d)(\\d{7})`,`$1 $2`,[`[235]|4[46]`]],[`(\\d{8})`,`$1`,[`[67]`]],[`(\\d{3})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`8`]]],`0`,0,`0(1\\d)?`],BQ:[`599`,`00`,`(?:[34]1|7\\d)\\d{5}`,[7],0,0,0,0,0,0,`[347]`],BR:[`55`,`00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)`,`[1-467]\\d{9,10}|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}`,[8,9,10,11],[[`(\\d{4})(\\d{4})`,`$1-$2`,[`300|4(?:0[02]|37|86)`,`300|4(?:0(?:0|20)|370|864)`]],[`(\\d{3})(\\d{2,3})(\\d{4})`,`$1 $2 $3`,[`(?:[358]|90)0`],`0$1`],[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2-$3`,[`(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]`],`($1)`],[`(\\d{2})(\\d{5})(\\d{4})`,`$1 $2-$3`,[`[16][1-9]|[2-57-9]`],`($1)`]],`0`,0,`(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?`,`$2`],BS:[`1`,`011`,`(?:242|[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([3-8]\\d{6})$|1`,`242$1`,0,`242`],BT:[`975`,`00`,`[178]\\d{7}|[2-8]\\d{6}`,[7,8],[[`(\\d)(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[2-6]|7[246]|8[2-4]`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`1[67]|[78]`]]]],BW:[`267`,`00`,`(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}`,[7,8,10],[[`(\\d{2})(\\d{5})`,`$1 $2`,[`90`]],[`(\\d{3})(\\d{4})`,`$1 $2`,[`[24-6]|3[15-9]`]],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[37]`]],[`(\\d{4})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`0`]],[`(\\d{3})(\\d{4})(\\d{3})`,`$1 $2 $3`,[`8`]]]],BY:[`375`,`810`,`(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}`,[6,7,8,9,10,11],[[`(\\d{3})(\\d{3})`,`$1 $2`,[`800`],`8 $1`],[`(\\d{3})(\\d{2})(\\d{2,4})`,`$1 $2 $3`,[`800`],`8 $1`],[`(\\d{4})(\\d{2})(\\d{3})`,`$1 $2-$3`,[`1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])`,`1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])`],`8 0$1`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2-$3-$4`,[`1(?:[56]|7[467])|2[1-3]`],`8 0$1`],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2-$3-$4`,[`[1-4]`],`8 0$1`],[`(\\d{3})(\\d{3,4})(\\d{4})`,`$1 $2 $3`,[`[89]`],`8 $1`]],`8`,0,`0|80?`,0,0,0,0,`8~10`],BZ:[`501`,`00`,`(?:0800\\d|[2-8])\\d{6}`,[7,11],[[`(\\d{3})(\\d{4})`,`$1-$2`,[`[2-8]`]],[`(\\d)(\\d{3})(\\d{4})(\\d{3})`,`$1-$2-$3-$4`,[`0`]]]],CA:[`1`,`011`,`[2-9]\\d{9}|3\\d{6}`,[7,10],0,`1`,0,0,0,0,0,[[`(?:2(?:04|[23]6|[48]9|5[07]|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}`,[10]],[``,[10]],[`8(?:00|33|44|55|66|77|88)[2-9]\\d{6}`,[10]],[`900[2-9]\\d{6}`,[10]],[`52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|3[23]|44|66|77|88)|6(?:22|33))[2-9]\\d{6}`,[10]],0,[`310\\d{4}`,[7]],0,[`600[2-9]\\d{6}`,[10]]]],CC:[`61`,`001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011`,`1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}`,[6,7,8,9,10,12],0,`0`,0,`([59]\\d{7})$|0`,`8$1`,0,0,[[`8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}`,[9]],[`4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}`,[9]],[`180(?:0\\d{3}|2)\\d{3}`,[7,10]],[`190[0-26]\\d{6}`,[10]],0,0,0,0,[`14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}`,[9]],[`13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}`,[6,8,10,12]]],`0011`],CD:[`243`,`00`,`(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}`,[7,8,9,10],[[`(\\d{2})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`88`],`0$1`],[`(\\d{2})(\\d{5})`,`$1 $2`,[`[1-6]`],`0$1`],[`(\\d{2})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`2`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[89]`],`0$1`],[`(\\d{2})(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`5`],`0$1`]],`0`],CF:[`236`,`00`,`(?:[27]\\d{3}|8776)\\d{4}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[278]`]]]],CG:[`242`,`00`,`222\\d{6}|(?:0\\d|80)\\d{7}`,[9],[[`(\\d)(\\d{4})(\\d{4})`,`$1 $2 $3`,[`8`]],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[02]`]]]],CH:[`41`,`00`,`8\\d{11}|[2-9]\\d{8}`,[9,12],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`8[047]|90`],`0$1`],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[2-79]|81`],`0$1`],[`(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4 $5`,[`8`],`0$1`]],`0`],CI:[`225`,`00`,`[02]\\d{9}`,[10],[[`(\\d{2})(\\d{2})(\\d)(\\d{5})`,`$1 $2 $3 $4`,[`2`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{4})`,`$1 $2 $3 $4`,[`0`]]]],CK:[`682`,`00`,`[2-578]\\d{4}`,[5],[[`(\\d{2})(\\d{3})`,`$1 $2`,[`[2-578]`]]]],CL:[`56`,`(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0`,`12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}`,[9,10,11],[[`(\\d{5})(\\d{4})`,`$1 $2`,[`219`,`2196`],`($1)`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`60|809`]],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`44`]],[`(\\d)(\\d{4})(\\d{4})`,`$1 $2 $3`,[`2[1-36]`],`($1)`],[`(\\d)(\\d{4})(\\d{4})`,`$1 $2 $3`,[`9(?:10|[2-9])`]],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[1-9])`],`($1)`],[`(\\d{3})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`60|8`]],[`(\\d{4})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1`]],[`(\\d{3})(\\d{3})(\\d{2})(\\d{3})`,`$1 $2 $3 $4`,[`60`]]]],CM:[`237`,`00`,`[26]\\d{8}|88\\d{6,7}`,[8,9],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`88`]],[`(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4 $5`,[`[26]|88`]]]],CN:[`86`,`00|1(?:[12]\\d|79)\\d\\d00`,`(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}`,[7,8,9,10,11,12],[[`(\\d{2})(\\d{5,6})`,`$1 $2`,[`(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]`,`(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1`,`10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12`,`10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123`,`10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123`],`0$1`],[`(\\d{3})(\\d{5,6})`,`$1 $2`,[`3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]`,`(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]`,`85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])`,`85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`(?:4|80)0`]],[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`10|2(?:[02-57-9]|1[1-9])`,`10|2(?:[02-57-9]|1[1-9])`,`10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])`],`0$1`,1],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]`],`0$1`,1],[`(\\d{3})(\\d{7,8})`,`$1 $2`,[`9`]],[`(\\d{4})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`80`],`0$1`,1],[`(\\d{3})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`[3-578]`],`0$1`,1],[`(\\d{3})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`1[3-9]`]],[`(\\d{2})(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3 $4`,[`[12]`],`0$1`,1]],`0`,0,`(1(?:[12]\\d|79)\\d\\d)|0`,0,0,0,0,`00`],CO:[`57`,`00(?:4(?:[14]4|56)|[579])`,`(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}`,[8,10,11],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`46`]],[`(\\d{3})(\\d{7})`,`$1 $2`,[`6|90`],`($1)`],[`(\\d{3})(\\d{7})`,`$1 $2`,[`3[0-357]|9[14]`]],[`(\\d)(\\d{3})(\\d{7})`,`$1-$2-$3`,[`1`],`0$1`,0,`$1 $2 $3`]],`0`,0,`0([3579]|4(?:[14]4|56))?`],CR:[`506`,`00`,`(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}`,[8,10],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[2-7]|8[3-9]`]],[`(\\d{3})(\\d{3})(\\d{4})`,`$1-$2-$3`,[`[89]`]]],0,0,`(19(?:0[0-2468]|1[09]|20|66|77|99))`],CU:[`53`,`119`,`(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}`,[6,7,8,10],[[`(\\d{2})(\\d{4,6})`,`$1 $2`,[`2[1-4]|[34]`],`(0$1)`],[`(\\d)(\\d{6,7})`,`$1 $2`,[`7`],`(0$1)`],[`(\\d)(\\d{7})`,`$1 $2`,[`[56]`],`0$1`],[`(\\d{3})(\\d{7})`,`$1 $2`,[`8`],`0$1`]],`0`],CV:[`238`,`0`,`(?:[2-59]\\d\\d|800)\\d{4}`,[7],[[`(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`[2-589]`]]]],CW:[`599`,`00`,`(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}`,[7,8],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[3467]`]],[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`9[4-8]`]]],0,0,0,0,0,`[69]`],CX:[`61`,`001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011`,`1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}`,[6,7,8,9,10,12],0,`0`,0,`([59]\\d{7})$|0`,`8$1`,0,0,[[`8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}`,[9]],[`4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}`,[9]],[`180(?:0\\d{3}|2)\\d{3}`,[7,10]],[`190[0-26]\\d{6}`,[10]],0,0,0,0,[`14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}`,[9]],[`13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}`,[6,8,10,12]]],`0011`],CY:[`357`,`00`,`(?:[279]\\d|[58]0)\\d{6}`,[8],[[`(\\d{2})(\\d{6})`,`$1 $2`,[`[257-9]`]]]],CZ:[`420`,`00`,`(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}`,[9,10,11,12],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[2-8]|9[015-7]`]],[`(\\d{2})(\\d{3})(\\d{3})(\\d{2})`,`$1 $2 $3 $4`,[`96`]],[`(\\d{2})(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`9`]],[`(\\d{3})(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`9`]]]],DE:[`49`,`00`,`[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}`,[4,5,6,7,8,9,10,11,12,13,14,15],[[`(\\d{2})(\\d{3,13})`,`$1 $2`,[`3[02]|40|[68]9`],`0$1`],[`(\\d{3})(\\d{3,12})`,`$1 $2`,[`2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1`,`2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1`],`0$1`],[`(\\d{4})(\\d{2,11})`,`$1 $2`,[`[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]`,`[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]`],`0$1`],[`(\\d{3})(\\d{4})`,`$1 $2`,[`138`],`0$1`],[`(\\d{5})(\\d{2,10})`,`$1 $2`,[`3`],`0$1`],[`(\\d{3})(\\d{5,11})`,`$1 $2`,[`181`],`0$1`],[`(\\d{3})(\\d)(\\d{4,10})`,`$1 $2 $3`,[`1(?:3|80)|9`],`0$1`],[`(\\d{3})(\\d{7,8})`,`$1 $2`,[`1[67]`],`0$1`],[`(\\d{3})(\\d{7,12})`,`$1 $2`,[`8`],`0$1`],[`(\\d{5})(\\d{6})`,`$1 $2`,[`185`,`1850`,`18500`],`0$1`],[`(\\d{3})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`7`],`0$1`],[`(\\d{4})(\\d{7})`,`$1 $2`,[`18[68]`],`0$1`],[`(\\d{4})(\\d{7})`,`$1 $2`,[`15[1279]`],`0$1`],[`(\\d{5})(\\d{6})`,`$1 $2`,[`15[03568]`,`15(?:[0568]|3[13])`],`0$1`],[`(\\d{3})(\\d{8})`,`$1 $2`,[`18`],`0$1`],[`(\\d{3})(\\d{2})(\\d{7,8})`,`$1 $2 $3`,[`1(?:6[023]|7)`],`0$1`],[`(\\d{4})(\\d{2})(\\d{7})`,`$1 $2 $3`,[`15[279]`],`0$1`],[`(\\d{3})(\\d{2})(\\d{8})`,`$1 $2 $3`,[`15`],`0$1`]],`0`],DJ:[`253`,`00`,`(?:2\\d|77)\\d{6}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[27]`]]]],DK:[`45`,`00`,`[2-9]\\d{7}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[2-9]`]]]],DM:[`1`,`011`,`(?:[58]\\d\\d|767|900)\\d{7}`,[10],0,`1`,0,`([2-7]\\d{6})$|1`,`767$1`,0,`767`],DO:[`1`,`011`,`(?:[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,0,0,0,`8001|8[024]9`],DZ:[`213`,`00`,`(?:[1-4]|[5-79]\\d|80)\\d{7}`,[8,9],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[1-4]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`9`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[5-8]`],`0$1`]],`0`],EC:[`593`,`00`,`1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}`,[8,9,10,11],[[`(\\d)(\\d{3})(\\d{4})`,`$1 $2-$3`,[`[2-7]`],`(0$1)`,0,`$1-$2-$3`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`9`],`0$1`],[`(\\d{4})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`1`]]],`0`],EE:[`372`,`00`,`8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}`,[7,8,10],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88`,`[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88`]],[`(\\d{4})(\\d{3,4})`,`$1 $2`,[`[45]|8(?:00|[1-49])`,`[45]|8(?:00[1-9]|[1-49])`]],[`(\\d{2})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`7`]],[`(\\d{4})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`8`]]]],EG:[`20`,`00`,`[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}`,[8,9,10],[[`(\\d)(\\d{7,8})`,`$1 $2`,[`[23]`],`0$1`],[`(\\d{2})(\\d{6,7})`,`$1 $2`,[`1[35]|[4-6]|8[2468]|9[235-7]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[89]`],`0$1`],[`(\\d{2})(\\d{8})`,`$1 $2`,[`1`],`0$1`]],`0`],EH:[`212`,`00`,`[5-8]\\d{8}`,[9],0,`0`,0,0,0,0,0,[[`528[89]\\d{5}`],[`(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|5[0-5]))\\d{6}`],[`80[0-7]\\d{6}`],[`89\\d{7}`],0,0,0,0,[`(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}`]]],ER:[`291`,`00`,`[178]\\d{6}`,[7],[[`(\\d)(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[178]`],`0$1`]],`0`],ES:[`34`,`00`,`[5-9]\\d{8}`,[9],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[89]00`]],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[5-9]`]]]],ET:[`251`,`00`,`(?:11|[2-579]\\d)\\d{7}`,[9],[[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[1-579]`],`0$1`]],`0`],FI:[`358`,`00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))`,`[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}`,[5,6,7,8,9,10,11,12],[[`(\\d{5})`,`$1`,[`20[2-59]`],`0$1`],[`(\\d{3})(\\d{3,7})`,`$1 $2`,[`(?:[1-3]0|[68])0|70[07-9]`],`0$1`],[`(\\d{2})(\\d{4,8})`,`$1 $2`,[`[14]|2[09]|50|7[135]`],`0$1`],[`(\\d{2})(\\d{6,10})`,`$1 $2`,[`7`],`0$1`],[`(\\d)(\\d{4,9})`,`$1 $2`,[`(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9`],`0$1`]],`0`,0,0,0,0,`1[03-79]|[2-9]`,0,`00`],FJ:[`679`,`0(?:0|52)`,`45\\d{5}|(?:0800\\d|[235-9])\\d{6}`,[7,11],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[235-9]|45`]],[`(\\d{4})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`0`]]],0,0,0,0,0,0,0,`00`],FK:[`500`,`00`,`[2-7]\\d{4}`,[5]],FM:[`691`,`00`,`(?:[39]\\d\\d|820)\\d{4}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[389]`]]]],FO:[`298`,`00`,`[2-9]\\d{5}`,[6],[[`(\\d{6})`,`$1`,[`[2-9]`]]],0,0,`(10(?:01|[12]0|88))`],FR:[`33`,`00`,`[1-9]\\d{8}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`8`],`0 $1`],[`(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4 $5`,[`[1-79]`],`0$1`]],`0`],GA:[`241`,`00`,`(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}`,[7,8],[[`(\\d)(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[2-7]`],`0$1`],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`0`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`11|[67]`],`0$1`]],0,0,`0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})`,`$1`],GB:[`44`,`00`,`[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}`,[7,9,10],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`800`,`8001`,`80011`,`800111`,`8001111`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`845`,`8454`,`84546`,`845464`],`0$1`],[`(\\d{3})(\\d{6})`,`$1 $2`,[`800`],`0$1`],[`(\\d{5})(\\d{4,5})`,`$1 $2`,[`1(?:38|5[23]|69|76|94)`,`1(?:(?:38|69)7|5(?:24|39)|768|946)`,`1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)`],`0$1`],[`(\\d{4})(\\d{5,6})`,`$1 $2`,[`1(?:[2-69][02-9]|[78])`],`0$1`],[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`[25]|7(?:0|6[02-9])`,`[25]|7(?:0|6(?:[03-9]|2[356]))`],`0$1`],[`(\\d{4})(\\d{6})`,`$1 $2`,[`7`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[1389]`],`0$1`]],`0`,0,`0|180020`,0,0,0,[[`(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}`,[9,10]],[`7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}`,[10]],[`80[08]\\d{7}|800\\d{6}|8001111`],[`(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d`,[7,10]],[`70\\d{8}`,[10]],0,[`(?:3[0347]|55)\\d{8}`,[10]],[`76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}`,[10]],[`56\\d{8}`,[10]]],0,` x`],GD:[`1`,`011`,`(?:473|[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([2-9]\\d{6})$|1`,`473$1`,0,`473`],GE:[`995`,`00`,`(?:[3-57]\\d\\d|800)\\d{6}`,[9],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`70`],`0$1`],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`32`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[57]`]],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[348]`],`0$1`]],`0`],GF:[`594`,`00`,`(?:[56]94\\d|7093)\\d{5}|(?:80|9\\d)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[5-7]|9[47]`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[89]`],`0$1`]],`0`],GG:[`44`,`00`,`(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?`,[7,9,10],0,`0`,0,`([25-9]\\d{5})$|0|180020`,`1481$1`,0,0,[[`1481[25-9]\\d{5}`,[10]],[`7(?:(?:781|839)\\d|911[17])\\d{5}`,[10]],[`80[08]\\d{7}|800\\d{6}|8001111`],[`(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d`,[7,10]],[`70\\d{8}`,[10]],0,[`(?:3[0347]|55)\\d{8}`,[10]],[`76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}`,[10]],[`56\\d{8}`,[10]]]],GH:[`233`,`00`,`(?:[235]\\d{3}|800)\\d{5}`,[8,9],[[`(\\d{3})(\\d{5})`,`$1 $2`,[`8`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[235]`],`0$1`]],`0`],GI:[`350`,`00`,`(?:[25]\\d|60)\\d{6}`,[8],[[`(\\d{3})(\\d{5})`,`$1 $2`,[`2`]]]],GL:[`299`,`00`,`(?:19|[2-689]\\d|70)\\d{4}`,[6],[[`(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`19|[2-9]`]]]],GM:[`220`,`00`,`[2-9]\\d{6}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[2-9]`]]]],GN:[`224`,`00`,`722\\d{6}|(?:3|6\\d)\\d{7}`,[8,9],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`3`]],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[67]`]]]],GP:[`590`,`00`,`(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[5-79]`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`8`],`0$1`]],`0`,0,0,0,0,0,[[`590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}`],[`(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}`],[`80[0-5]\\d{6}`],0,0,0,0,0,[`9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}`]]],GQ:[`240`,`00`,`222\\d{6}|(?:3\\d|55|[89]0)\\d{7}`,[9],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[235]`]],[`(\\d{3})(\\d{6})`,`$1 $2`,[`[89]`]]]],GR:[`30`,`00`,`5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}`,[10,11,12],[[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`21|7`]],[`(\\d{4})(\\d{6})`,`$1 $2`,[`2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5`]],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[2689]`]],[`(\\d{3})(\\d{3,4})(\\d{5})`,`$1 $2 $3`,[`8`]]]],GT:[`502`,`00`,`80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}`,[8,11],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[2-8]`]],[`(\\d{4})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1`]]]],GU:[`1`,`011`,`(?:[58]\\d\\d|671|900)\\d{7}`,[10],0,`1`,0,`([2-9]\\d{6})$|1`,`671$1`,0,`671`],GW:[`245`,`00`,`[49]\\d{8}|4\\d{6}`,[7,9],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`40`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[49]`]]]],GY:[`592`,`001`,`(?:[2-8]\\d{3}|9008)\\d{3}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[2-9]`]]]],HK:[`852`,`00(?:30|5[09]|[126-9]?)`,`8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}`,[5,6,7,8,9,11],[[`(\\d{3})(\\d{2,5})`,`$1 $2`,[`900`,`9003`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[2-7]|8[1-4]|9(?:0[1-9]|[1-8])`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`8`]],[`(\\d{3})(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`9`]]],0,0,0,0,0,0,0,`00`],HN:[`504`,`00`,`8\\d{10}|[237-9]\\d{7}`,[8,11],[[`(\\d{4})(\\d{4})`,`$1-$2`,[`[237-9]`]]]],HR:[`385`,`00`,`[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}`,[7,8,9],[[`(\\d{2})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`6[01]`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2,3})`,`$1 $2 $3`,[`8`],`0$1`],[`(\\d)(\\d{4})(\\d{3})`,`$1 $2 $3`,[`1`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`6|7[245]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`9`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[2-57]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`8`],`0$1`]],`0`],HT:[`509`,`00`,`[2-589]\\d{7}`,[8],[[`(\\d{2})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`[2-589]`]]]],HU:[`36`,`00`,`[235-7]\\d{8}|[1-9]\\d{7}`,[8,9],[[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1`],`(06 $1)`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]`],`(06 $1)`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[2-9]`],`06 $1`]],`06`],ID:[`62`,`00[89]`,`00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}`,[7,8,9,10,11,12,13,14,15,16,17],[[`(\\d)(\\d{3})(\\d{3})`,`$1 $2 $3`,[`15`]],[`(\\d{2})(\\d{5,9})`,`$1 $2`,[`2[124]|[36]1`],`(0$1)`],[`(\\d{3})(\\d{5,7})`,`$1 $2`,[`800`],`0$1`],[`(\\d{3})(\\d{5,8})`,`$1 $2`,[`[2-79]`],`(0$1)`],[`(\\d{3})(\\d{3,4})(\\d{3})`,`$1-$2-$3`,[`8[1-35-9]`],`0$1`],[`(\\d{3})(\\d{6,8})`,`$1 $2`,[`1`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`804`],`0$1`],[`(\\d{3})(\\d)(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`80`],`0$1`],[`(\\d{3})(\\d{4})(\\d{4,5})`,`$1-$2-$3`,[`8`],`0$1`]],`0`],IE:[`353`,`00`,`(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}`,[7,8,9,10],[[`(\\d{2})(\\d{5})`,`$1 $2`,[`2[24-9]|47|58|6[237-9]|9[35-9]`],`(0$1)`],[`(\\d{3})(\\d{5})`,`$1 $2`,[`[45]0`],`(0$1)`],[`(\\d)(\\d{3,4})(\\d{4})`,`$1 $2 $3`,[`1`],`(0$1)`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[2569]|4[1-69]|7[14]`],`(0$1)`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`70`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`81`],`(0$1)`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[78]`],`0$1`],[`(\\d{4})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`1`]],[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`4`],`(0$1)`],[`(\\d{2})(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3 $4`,[`8`],`0$1`]],`0`],IL:[`972`,`0(?:0|1[2-9])`,`1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}`,[7,8,9,10,11,12],[[`(\\d{4})(\\d{3})`,`$1-$2`,[`125`]],[`(\\d{4})(\\d{2})(\\d{2})`,`$1-$2-$3`,[`121`]],[`(\\d)(\\d{3})(\\d{4})`,`$1-$2-$3`,[`[2-489]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1-$2-$3`,[`[57]`],`0$1`],[`(\\d{4})(\\d{3})(\\d{3})`,`$1-$2-$3`,[`12`]],[`(\\d{4})(\\d{6})`,`$1-$2`,[`159`]],[`(\\d)(\\d{3})(\\d{3})(\\d{3})`,`$1-$2-$3-$4`,[`1[7-9]`]],[`(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})`,`$1-$2 $3-$4`,[`15`]]],`0`],IM:[`44`,`00`,`1624\\d{6}|(?:[3578]\\d|90)\\d{8}`,[10],0,`0`,0,`([25-8]\\d{5})$|0|180020`,`1624$1`,0,`74576|(?:16|7[56])24`],IN:[`91`,`00`,`(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}`,[8,9,10,11,12,13],[[`(\\d{8})`,`$1`,[`5(?:0|2[23]|3[03]|[67]1|88)`,`5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)`,`5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)`],0,1],[`(\\d{4})(\\d{4,5})`,`$1 $2`,[`180`,`1800`],0,1],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`140`],0,1],[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`11|2[02]|33|4[04]|79[1-7]|80[2-46]`,`11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])`,`11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])`],`0$1`,1],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]`,`1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]`,`1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]`],`0$1`,1],[`(\\d{4})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807`,`1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]`,`1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689])\\d|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]`],`0$1`,1],[`(\\d{5})(\\d{5})`,`$1 $2`,[`16|[6-9]`],`0$1`,1],[`(\\d{4})(\\d{2,4})(\\d{4})`,`$1 $2 $3`,[`18[06]`,`18[06]0`],0,1],[`(\\d{4})(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`18`],0,1]],`0`],IO:[`246`,`00`,`3\\d{6}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`3`]]]],IQ:[`964`,`00`,`(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}`,[8,9,10],[[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[2-6]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`7`],`0$1`]],`0`],IR:[`98`,`00`,`[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}`,[4,5,6,7,10],[[`(\\d{4,5})`,`$1`,[`96`],`0$1`],[`(\\d{2})(\\d{4,5})`,`$1 $2`,[`(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`9`],`0$1`],[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`[1-8]`],`0$1`]],`0`],IS:[`354`,`00|1(?:0(?:01|[12]0)|100)`,`(?:38\\d|[4-9])\\d{6}`,[7,9],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[4-9]`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`3`]]],0,0,0,0,0,0,0,`00`],IT:[`39`,`00`,`0\\d{5,11}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?`,[6,7,8,9,10,11,12],[[`(\\d{2})(\\d{4,6})`,`$1 $2`,[`0[26]`]],[`(\\d{3})(\\d{3,6})`,`$1 $2`,[`0[13-57-9][0159]|8(?:03|4[17]|9[2-5])`,`0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))`]],[`(\\d{4})(\\d{2,6})`,`$1 $2`,[`0(?:[13-579][2-46-8]|8[236-8])`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`894`]],[`(\\d{2})(\\d{3,4})(\\d{4})`,`$1 $2 $3`,[`0[26]|5`]],[`(\\d{3})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`1(?:44|[679])|[378]|43`]],[`(\\d{3})(\\d{3,4})(\\d{4})`,`$1 $2 $3`,[`0[13-57-9][0159]|14`]],[`(\\d{2})(\\d{4})(\\d{5})`,`$1 $2 $3`,[`0[26]`]],[`(\\d{4})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`0`]],[`(\\d{3})(\\d{4})(\\d{4,5})`,`$1 $2 $3`,[`[03]`]]],0,0,0,0,0,0,[[`0(?:669[0-79]\\d{1,6}|831\\d{2,8})|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}`],[`3[2-9]\\d{7,8}|(?:31|43)\\d{8}`,[9,10]],[`80(?:0\\d{3}|3)\\d{3}`,[6,9]],[`(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}`,[6,8,9,10]],[`1(?:78\\d|99)\\d{6}`,[9,10]],[`3[2-8]\\d{9,10}`,[11,12]],0,0,[`55\\d{8}`,[10]],[`84(?:[08]\\d{3}|[17])\\d{3}`,[6,9]]]],JE:[`44`,`00`,`1534\\d{6}|(?:[3578]\\d|90)\\d{8}`,[10],0,`0`,0,`([0-24-8]\\d{5})$|0|180020`,`1534$1`,0,0,[[`1534[0-24-8]\\d{5}`],[`7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}`],[`80(?:07(?:35|81)|8901)\\d{4}`],[`(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}`],[`701511\\d{4}`],0,[`(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}`],[`76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}`],[`56\\d{8}`]]],JM:[`1`,`011`,`(?:[58]\\d\\d|658|900)\\d{7}`,[10],0,`1`,0,0,0,0,`658|876`],JO:[`962`,`00`,`(?:(?:[2689]|7\\d)\\d|32|427|53)\\d{6}`,[8,9],[[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[2356]|87`],`(0$1)`],[`(\\d{3})(\\d{5,6})`,`$1 $2`,[`[89]`],`0$1`],[`(\\d{2})(\\d{7})`,`$1 $2`,[`70`],`0$1`],[`(\\d)(\\d{4})(\\d{4})`,`$1 $2 $3`,[`[47]`],`0$1`]],`0`],JP:[`81`,`010`,`00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}`,[8,9,10,11,12,13,14,15,16,17],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1-$2-$3`,[`(?:12|57|99)0`],`0$1`],[`(\\d{4})(\\d)(\\d{4})`,`$1-$2-$3`,[`1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])`,`1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]`,`1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1-$2-$3`,[`60`],`0$1`],[`(\\d)(\\d{4})(\\d{4})`,`$1-$2-$3`,[`3|4(?:2[09]|7[01])|6[1-9]`,`3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1-$2-$3`,[`1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])`,`1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]`,`1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]`],`0$1`],[`(\\d{3})(\\d{2})(\\d{4})`,`$1-$2-$3`,[`[14]|[289][2-9]|5[3-9]|7[2-4679]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1-$2-$3`,[`800`],`0$1`],[`(\\d{2})(\\d{4})(\\d{4})`,`$1-$2-$3`,[`[25-9]`],`0$1`]],`0`,0,`(000[2569]\\d{4,6})$|(?:(?:003768)0?)|0`,`$1`],KE:[`254`,`000`,`(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}`,[7,8,9,10],[[`(\\d{2})(\\d{5,7})`,`$1 $2`,[`[24-6]`],`0$1`],[`(\\d{3})(\\d{6})`,`$1 $2`,[`[17]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[89]`],`0$1`]],`0`],KG:[`996`,`00`,`8\\d{9}|[235-9]\\d{8}`,[9,10],[[`(\\d{4})(\\d{5})`,`$1 $2`,[`3(?:1[346]|[24-79])`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[235-79]|88`],`0$1`],[`(\\d{3})(\\d{3})(\\d)(\\d{2,3})`,`$1 $2 $3 $4`,[`8`],`0$1`]],`0`],KH:[`855`,`00[14-9]`,`1\\d{9}|[1-9]\\d{7,8}`,[8,9,10],[[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[1-9]`],`0$1`],[`(\\d{4})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`1`]]],`0`],KI:[`686`,`00`,`(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}`,[5,8],0,`0`],KM:[`269`,`00`,`[3478]\\d{6}`,[7],[[`(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`[3478]`]]]],KN:[`1`,`011`,`(?:[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([2-7]\\d{6})$|1`,`869$1`,0,`869`],KP:[`850`,`00|99`,`85\\d{6}|(?:19\\d|[2-7])\\d{7}`,[8,10],[[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`8`],`0$1`],[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[2-7]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1`],`0$1`]],`0`],KR:[`82`,`00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))`,`00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}`,[5,6,8,9,10,11,12,13,14],[[`(\\d{2})(\\d{3,4})`,`$1-$2`,[`(?:3[1-3]|[46][1-4]|5[1-5])1`],`0$1`],[`(\\d{4})(\\d{4})`,`$1-$2`,[`1`]],[`(\\d)(\\d{3,4})(\\d{4})`,`$1-$2-$3`,[`2`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1-$2-$3`,[`[36]0|8`],`0$1`],[`(\\d{2})(\\d{3,4})(\\d{4})`,`$1-$2-$3`,[`[1346]|5[1-5]`],`0$1`],[`(\\d{2})(\\d{4})(\\d{4})`,`$1-$2-$3`,[`[57]`],`0$1`],[`(\\d{2})(\\d{5})(\\d{4})`,`$1-$2-$3`,[`5`],`0$1`]],`0`,0,`0(8(?:[1-46-8]|5\\d\\d))?`],KW:[`965`,`00`,`18\\d{5}|(?:[2569]\\d|41)\\d{6}`,[7,8],[[`(\\d{4})(\\d{3,4})`,`$1 $2`,[`[169]|2(?:[235]|4[1-35-9])|52`]],[`(\\d{3})(\\d{5})`,`$1 $2`,[`[245]`]]]],KY:[`1`,`011`,`(?:345|[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([2-9]\\d{6})$|1`,`345$1`,0,`345`],KZ:[`7`,`810`,`(?:33622|8\\d{8})\\d{5}|[78]\\d{9}`,[10,14],0,`8`,0,0,0,0,`33622|7`,0,`8~10`],LA:[`856`,`00`,`[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}`,[8,9,10],[[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`2[13]|3[14]|[4-8]`],`0$1`],[`(\\d{2})(\\d{2})(\\d{2})(\\d{3})`,`$1 $2 $3 $4`,[`3`],`0$1`],[`(\\d{2})(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`[23]`],`0$1`]],`0`],LB:[`961`,`00`,`[27-9]\\d{7}|[13-9]\\d{6}`,[7,8],[[`(\\d)(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[13-69]|7(?:[2-57]|62|8[0-6]|9[04-9])|8[02-9]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[27-9]`]]],`0`],LC:[`1`,`011`,`(?:[58]\\d\\d|758|900)\\d{7}`,[10],0,`1`,0,`([2-8]\\d{6})$|1`,`758$1`,0,`758`],LI:[`423`,`00`,`[68]\\d{8}|(?:[2378]\\d|90)\\d{5}`,[7,9],[[`(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`[2379]|8(?:0[09]|7)`,`[2379]|8(?:0(?:02|9)|7)`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`8`]],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`69`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`6`]]],`0`,0,`(1001)|0`],LK:[`94`,`00`,`[1-9]\\d{8}`,[9],[[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`7`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[1-689]`],`0$1`]],`0`],LR:[`231`,`00`,`(?:[2457]\\d|33|88)\\d{7}|(?:2\\d|[4-6])\\d{6}`,[7,8,9],[[`(\\d)(\\d{3})(\\d{3})`,`$1 $2 $3`,[`4[67]|[56]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`2`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[2-578]`],`0$1`]],`0`],LS:[`266`,`00`,`(?:[256]\\d\\d|800)\\d{5}`,[8],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[2568]`]]]],LT:[`370`,`00`,`(?:[3469]\\d|52|[78]0)\\d{6}`,[8],[[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`52[0-7]`],`(0-$1)`,1],[`(\\d{3})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`[7-9]`],`0 $1`,1],[`(\\d{2})(\\d{6})`,`$1 $2`,[`37|4(?:[15]|6[1-8])`],`(0-$1)`,1],[`(\\d{3})(\\d{5})`,`$1 $2`,[`[3-6]`],`(0-$1)`,1]],`0`,0,`[08]`],LU:[`352`,`00`,`35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}`,[4,5,6,7,8,9,10,11],[[`(\\d{2})(\\d{3})`,`$1 $2`,[`2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])`]],[`(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])`]],[`(\\d{2})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`20[2-689]`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})`,`$1 $2 $3 $4`,[`2(?:[0367]|4[3-8])`]],[`(\\d{3})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`80[01]|90[015]`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{3})`,`$1 $2 $3 $4`,[`20`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`6`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})`,`$1 $2 $3 $4 $5`,[`2(?:[0367]|4[3-8])`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})`,`$1 $2 $3 $4`,[`[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]`]]],0,0,`(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)`],LV:[`371`,`00`,`(?:[268]\\d|78|90)\\d{6}`,[8],[[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[2679]|8[01]`]]]],LY:[`218`,`00`,`[2-9]\\d{8}`,[9],[[`(\\d{2})(\\d{7})`,`$1-$2`,[`[2-9]`],`0$1`]],`0`],MA:[`212`,`00`,`[5-8]\\d{8}`,[9],[[`(\\d{4})(\\d{5})`,`$1-$2`,[`892`],`0$1`],[`(\\d{2})(\\d{7})`,`$1-$2`,[`8(?:0[0-7]|9)`],`0$1`],[`(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4 $5`,[`[5-8]`],`0$1`]],`0`,0,0,0,0,`[5-8]`],MC:[`377`,`00`,`(?:[3489]|[67]\\d)\\d{7}`,[8,9],[[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`4`],`0$1`],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[389]`]],[`(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4 $5`,[`[67]`],`0$1`]],`0`],MD:[`373`,`00`,`(?:[235-7]\\d|[89]0)\\d{6}`,[8],[[`(\\d{3})(\\d{5})`,`$1 $2`,[`[89]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`22|3`],`0$1`],[`(\\d{3})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`[25-7]`],`0$1`]],`0`],ME:[`382`,`00`,`(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}`,[8,9],[[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[2-9]`],`0$1`]],`0`],MF:[`590`,`00`,`(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}`,[9],0,`0`,0,0,0,0,0,[[`590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}`],[`(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}`],[`80[0-5]\\d{6}`],0,0,0,0,0,[`9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}`]]],MG:[`261`,`00`,`[23]\\d{8}`,[9],[[`(\\d{2})(\\d{2})(\\d{3})(\\d{2})`,`$1 $2 $3 $4`,[`[23]`],`0$1`]],`0`,0,`([24-9]\\d{6})$|0`,`20$1`],MH:[`692`,`011`,`329\\d{4}|(?:[256]\\d|45)\\d{5}`,[7],[[`(\\d{3})(\\d{4})`,`$1-$2`,[`[2-6]`]]],`1`],MK:[`389`,`00`,`[2-578]\\d{7}`,[8],[[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`2|34[47]|4(?:[37]7|5[47]|64)`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[347]`],`0$1`],[`(\\d{3})(\\d)(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[58]`],`0$1`]],`0`],ML:[`223`,`00`,`[24-9]\\d{7}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[24-9]`]]]],MM:[`95`,`00`,`1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}`,[6,7,8,9,10],[[`(\\d)(\\d{2})(\\d{3})`,`$1 $2 $3`,[`16|2`],`0$1`],[`(\\d{2})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]`],`0$1`],[`(\\d)(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[12]|452|678|86`,`[12]|452|6788|86`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[4-7]|8[1-35]`],`0$1`],[`(\\d)(\\d{3})(\\d{4,6})`,`$1 $2 $3`,[`9(?:2[0-4]|[35-9]|4[137-9])`],`0$1`],[`(\\d)(\\d{4})(\\d{4})`,`$1 $2 $3`,[`2`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`8`],`0$1`],[`(\\d)(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`92`],`0$1`],[`(\\d)(\\d{5})(\\d{4})`,`$1 $2 $3`,[`9`],`0$1`]],`0`],MN:[`976`,`001`,`[12]\\d{7,9}|[5-9]\\d{7}`,[8,9,10],[[`(\\d{2})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`[12]1`],`0$1`],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[5-9]`]],[`(\\d{3})(\\d{5,6})`,`$1 $2`,[`[12]2[1-3]`],`0$1`],[`(\\d{4})(\\d{5,6})`,`$1 $2`,[`[12](?:27|3[2-8]|4[2-68]|5[1-4689])`,`[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]`],`0$1`],[`(\\d{5})(\\d{4,5})`,`$1 $2`,[`[12]`],`0$1`]],`0`],MO:[`853`,`00`,`0800\\d{3}|(?:28|[68]\\d)\\d{6}`,[7,8],[[`(\\d{4})(\\d{3})`,`$1 $2`,[`0`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[268]`]]]],MP:[`1`,`011`,`[58]\\d{9}|(?:67|90)0\\d{7}`,[10],0,`1`,0,`([2-9]\\d{6})$|1`,`670$1`,0,`670`],MQ:[`596`,`00`,`(?:596\\d|7091)\\d{5}|(?:69|[89]\\d)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[5-79]|8(?:0[6-9]|[36])`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`8`],`0$1`]],`0`],MR:[`222`,`00`,`(?:[2-4]\\d\\d|800)\\d{5}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[2-48]`]]]],MS:[`1`,`011`,`(?:[58]\\d\\d|664|900)\\d{7}`,[10],0,`1`,0,`([34]\\d{6})$|1`,`664$1`,0,`664`],MT:[`356`,`00`,`3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}`,[8],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[2357-9]`]]]],MU:[`230`,`0(?:0|[24-7]0|3[03])`,`(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}`,[7,8,10],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[2-46]|8[013]`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[57]`]],[`(\\d{5})(\\d{5})`,`$1 $2`,[`8`]]],0,0,0,0,0,0,0,`020`],MV:[`960`,`0(?:0|19)`,`(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}`,[7,10],[[`(\\d{3})(\\d{4})`,`$1-$2`,[`[34679]`]],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[89]`]]],0,0,0,0,0,0,0,`00`],MW:[`265`,`00`,`(?:[1289]\\d|31|77)\\d{7}|1\\d{6}`,[7,9],[[`(\\d)(\\d{3})(\\d{3})`,`$1 $2 $3`,[`1[2-9]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`2`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[137-9]`],`0$1`]],`0`],MX:[`52`,`0[09]`,`[2-9]\\d{9}`,[10],[[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`33|5[56]|81`]],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[2-9]`]]],0,0,0,0,0,0,0,`00`],MY:[`60`,`00`,`1\\d{8,9}|(?:3\\d|[4-9])\\d{7}`,[8,9,10],[[`(\\d)(\\d{3})(\\d{4})`,`$1-$2 $3`,[`[4-79]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1-$2 $3`,[`1(?:[02469]|[378][1-9]|53)|8`,`1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8`],`0$1`],[`(\\d)(\\d{4})(\\d{4})`,`$1-$2 $3`,[`3`],`0$1`],[`(\\d)(\\d{3})(\\d{2})(\\d{4})`,`$1-$2-$3-$4`,[`1(?:[367]|80)`]],[`(\\d{3})(\\d{3})(\\d{4})`,`$1-$2 $3`,[`15`],`0$1`],[`(\\d{2})(\\d{4})(\\d{4})`,`$1-$2 $3`,[`1`],`0$1`]],`0`],MZ:[`258`,`00`,`(?:2|8\\d)\\d{7}`,[8,9],[[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`2|8[2-79]`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`8`]]]],NA:[`264`,`00`,`[68]\\d{7,8}`,[8,9],[[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`88`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`6`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`87`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`8`],`0$1`]],`0`],NC:[`687`,`00`,`(?:050|[2-57-9]\\d\\d)\\d{3}`,[6],[[`(\\d{2})(\\d{2})(\\d{2})`,`$1.$2.$3`,[`[02-57-9]`]]]],NE:[`227`,`00`,`[027-9]\\d{7}`,[8],[[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`08`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[089]|2[013]|7[0467]`]]]],NF:[`672`,`00`,`[13]\\d{5}`,[6],[[`(\\d{2})(\\d{4})`,`$1 $2`,[`1[0-3]`]],[`(\\d)(\\d{5})`,`$1 $2`,[`[13]`]]],0,0,`([0-258]\\d{4})$`,`3$1`],NG:[`234`,`009`,`(?:20|9\\d)\\d{8}|[78]\\d{9,13}`,[10,11,12,13,14],[[`(\\d{3})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[7-9]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`20[129]`],`0$1`],[`(\\d{4})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`2`],`0$1`],[`(\\d{3})(\\d{4})(\\d{4,5})`,`$1 $2 $3`,[`[78]`],`0$1`],[`(\\d{3})(\\d{5})(\\d{5,6})`,`$1 $2 $3`,[`[78]`],`0$1`]],`0`],NI:[`505`,`00`,`(?:1800|[25-8]\\d{3})\\d{4}`,[8],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[125-8]`]]]],NL:[`31`,`00`,`(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}`,[5,6,7,8,9,10,11],[[`(\\d{3})(\\d{4,7})`,`$1 $2`,[`[89]0`],`0$1`],[`(\\d{2})(\\d{7})`,`$1 $2`,[`66`],`0$1`],[`(\\d)(\\d{8})`,`$1 $2`,[`6`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`1[16-8]|2[259]|3[124]|4[17-9]|5[124679]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[1-578]|91`],`0$1`],[`(\\d{3})(\\d{3})(\\d{5})`,`$1 $2 $3`,[`9`],`0$1`]],`0`],NO:[`47`,`00`,`(?:0|[2-9]\\d{3})\\d{4}`,[5,8],[[`(\\d{3})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`8`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[2-79]`]]],0,0,0,0,0,`[02-689]|7[0-8]`],NP:[`977`,`00`,`(?:1\\d|9)\\d{9}|[1-9]\\d{7}`,[8,10,11],[[`(\\d)(\\d{7})`,`$1-$2`,[`1[2-6]`],`0$1`],[`(\\d{2})(\\d{6})`,`$1-$2`,[`1[01]|[2-8]|9(?:[1-59]|[67][2-6])`],`0$1`],[`(\\d{3})(\\d{7})`,`$1-$2`,[`9`]]],`0`],NR:[`674`,`00`,`(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[24-9]`]]]],NU:[`683`,`00`,`(?:[4-7]|888\\d)\\d{3}`,[4,7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`8`]]]],NZ:[`64`,`0(?:0|161)`,`[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}`,[5,6,7,8,9,10],[[`(\\d{2})(\\d{3,8})`,`$1 $2`,[`8[1-79]`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2,3})`,`$1 $2 $3`,[`50[036-8]|8|90`,`50(?:[0367]|88)|8|90`],`0$1`],[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`24|[346]|7[2-57-9]|9[2-9]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`2(?:10|74)|[589]`],`0$1`],[`(\\d{2})(\\d{3,4})(\\d{4})`,`$1 $2 $3`,[`1|2[028]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,5})`,`$1 $2 $3`,[`2(?:[169]|7[0-35-9])|7`],`0$1`]],`0`,0,0,0,0,0,0,`00`],OM:[`968`,`00`,`(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}`,[7,8,9],[[`(\\d{3})(\\d{4,6})`,`$1 $2`,[`[58]`]],[`(\\d{2})(\\d{6})`,`$1 $2`,[`2`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[179]`]]]],PA:[`507`,`00`,`(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}`,[7,8,10,11],[[`(\\d{3})(\\d{4})`,`$1-$2`,[`[1-57-9]`]],[`(\\d{4})(\\d{4})`,`$1-$2`,[`[68]`]],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`8`]]]],PE:[`51`,`00|19(?:1[124]|77|90)00`,`(?:[14-8]|9\\d)\\d{7}`,[8,9],[[`(\\d{3})(\\d{5})`,`$1 $2`,[`80`],`(0$1)`],[`(\\d)(\\d{7})`,`$1 $2`,[`1`],`(0$1)`],[`(\\d{2})(\\d{6})`,`$1 $2`,[`[4-8]`],`(0$1)`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`9`]]],`0`,0,0,0,0,0,0,`00`,` Anexo `],PF:[`689`,`00`,`4\\d{5}(?:\\d{2})?|8\\d{7,8}`,[6,8,9],[[`(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`44`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`4|8[7-9]`]],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`8`]]]],PG:[`675`,`00|140[1-3]`,`(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}`,[7,8],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`18|[2-69]|85`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[78]`]]],0,0,0,0,0,0,0,`00`],PH:[`63`,`00`,`(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}`,[6,8,9,10,11,12,13],[[`(\\d)(\\d{5})`,`$1 $2`,[`2`],`(0$1)`],[`(\\d{4})(\\d{4,6})`,`$1 $2`,[`3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2`,`3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))`],`(0$1)`],[`(\\d{5})(\\d{4})`,`$1 $2`,[`346|4(?:27|9[35])|883`,`3469|4(?:279|9(?:30|56))|8834`],`(0$1)`],[`(\\d)(\\d{4})(\\d{4})`,`$1 $2 $3`,[`2`],`(0$1)`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[3-7]|8[2-8]`],`(0$1)`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[89]`],`0$1`],[`(\\d{4})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1`]],[`(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})`,`$1 $2 $3 $4`,[`1`]]],`0`],PK:[`92`,`00`,`122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}`,[8,9,10,11,12],[[`(\\d{3})(\\d{3})(\\d{2,7})`,`$1 $2 $3`,[`[89]0`],`0$1`],[`(\\d{4})(\\d{5})`,`$1 $2`,[`1`]],[`(\\d{3})(\\d{6,7})`,`$1 $2`,[`2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])`,`9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]`],`(0$1)`],[`(\\d{2})(\\d{7,8})`,`$1 $2`,[`(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]`],`(0$1)`],[`(\\d{5})(\\d{5})`,`$1 $2`,[`58`],`(0$1)`],[`(\\d{3})(\\d{7})`,`$1 $2`,[`3`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91`],`(0$1)`],[`(\\d{3})(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`[24-9]`],`(0$1)`]],`0`],PL:[`48`,`00`,`(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}`,[6,7,8,9,10],[[`(\\d{5})`,`$1`,[`19`]],[`(\\d{3})(\\d{3})`,`$1 $2`,[`11|20|64`]],[`(\\d{2})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1`,`(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19`]],[`(\\d{3})(\\d{2})(\\d{2,3})`,`$1 $2 $3`,[`64`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)`]],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`1[2-8]|[2-7]|8[1-79]|9[145]`]],[`(\\d{3})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`8`]]]],PM:[`508`,`00`,`[45]\\d{5}|(?:708|8\\d\\d)\\d{6}`,[6,9],[[`(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`[45]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`7`]],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`8`],`0$1`]],`0`],PR:[`1`,`011`,`(?:[589]\\d\\d|787)\\d{7}`,[10],0,`1`,0,0,0,0,`787|939`],PS:[`970`,`00`,`[2489]2\\d{6}|(?:1\\d|5)\\d{8}`,[8,9,10],[[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[2489]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`5`],`0$1`],[`(\\d{4})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`1`]]],`0`],PT:[`351`,`00`,`1693\\d{5}|(?:[26-9]\\d|30)\\d{7}`,[9],[[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`2[12]`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`16|[236-9]`]]]],PW:[`680`,`01[12]`,`(?:[24-8]\\d\\d|345|900)\\d{4}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[2-9]`]]]],PY:[`595`,`00`,`[36-8]\\d{5,8}|4\\d{6,8}|59\\d{6}|9\\d{5,10}|(?:2\\d|5[0-8])\\d{6,7}`,[6,7,8,9,10,11],[[`(\\d{3})(\\d{3,6})`,`$1 $2`,[`[2-9]0`],`0$1`],[`(\\d{2})(\\d{5})`,`$1 $2`,[`3[289]|4[246-8]|61|7[1-3]|8[1-36]`],`(0$1)`],[`(\\d{3})(\\d{4,5})`,`$1 $2`,[`2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85`],`(0$1)`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]`],`(0$1)`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`87`]],[`(\\d{3})(\\d{6})`,`$1 $2`,[`9(?:[5-79]|8[1-7])`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[2-8]`],`0$1`],[`(\\d{4})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`9`]]],`0`],QA:[`974`,`00`,`800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}`,[7,8,9,11],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`2[136]|8`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[3-7]`]]]],RE:[`262`,`00`,`709\\d{6}|(?:26|[689]\\d)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[26-9]`],`0$1`]],`0`,0,0,0,0,0,[[`26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}`],[`(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}`],[`80\\d{7}`],[`89[1-37-9]\\d{6}`],0,0,0,0,[`9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}`],[`8(?:1[019]|2[0156]|84|90)\\d{6}`]]],RO:[`40`,`00`,`(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}`,[6,9],[[`(\\d{3})(\\d{3})`,`$1 $2`,[`2[3-6]`,`2[3-6]\\d9`],`0$1`],[`(\\d{2})(\\d{4})`,`$1 $2`,[`219|31`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[23]1`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[236-9]`],`0$1`]],`0`,0,0,0,0,0,0,0,` int `],RS:[`381`,`00`,`38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}`,[6,7,8,9,10,11,12],[[`(\\d{3})(\\d{3,9})`,`$1 $2`,[`(?:2[389]|39)0|[7-9]`],`0$1`],[`(\\d{2})(\\d{5,10})`,`$1 $2`,[`[1-36]`],`0$1`]],`0`],RU:[`7`,`810`,`8\\d{13}|[347-9]\\d{9}`,[10,14],[[`(\\d{4})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`7(?:1[0-8]|2[1-9])`,`7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))`,`7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2`],`8 ($1)`,1],[`(\\d{5})(\\d)(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`7(?:1[0-68]|2[1-9])`,`7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))`,`7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]`],`8 ($1)`,1],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`7`],`8 ($1)`,1],[`(\\d{3})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2-$3-$4`,[`[349]|8(?:[02-7]|1[1-8])`],`8 ($1)`,1],[`(\\d{4})(\\d{4})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`8`],`8 ($1)`]],`8`,0,0,0,0,0,[[`336(?:[013-9]\\d|2[013-9])\\d{5}|(?:3(?:0[12]|4[1-35-79]|5[1-3]|65|8[1-58]|9[0145])|4(?:01|1[1356]|2[13467]|7[1-5]|8[1-7]|9[1-689])|8(?:1[1-8]|2[01]|3[13-6]|4[0-8]|5[15-7]|6[0-35-79]|7[1-37-9]))\\d{7}`,[10]],[`9\\d{9}`,[10]],[`8(?:0[04]|108\\d{3})\\d{7}`],[`80[39]\\d{7}`,[10]],[`808\\d{7}`,[10]]],`8~10`],RW:[`250`,`00`,`(?:06|[27]\\d\\d|[89]00)\\d{6}`,[8,9],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`0`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`2`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[7-9]`],`0$1`]],`0`],SA:[`966`,`00`,`(?:[15]\\d|800|92)\\d{7}`,[9,10],[[`(\\d{4})(\\d{5})`,`$1 $2`,[`9`]],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`5`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`8`]]],`0`],SB:[`677`,`0[01]`,`[6-9]\\d{6}|[1-6]\\d{4}`,[5,7],[[`(\\d{2})(\\d{5})`,`$1 $2`,[`6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])`]]]],SC:[`248`,`010|0[0-2]`,`(?:[2489]\\d|64)\\d{5}`,[7],[[`(\\d)(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[246]|9[57]`]]],0,0,0,0,0,0,0,`00`],SD:[`249`,`00`,`[19]\\d{8}`,[9],[[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[19]`],`0$1`]],`0`],SE:[`46`,`00`,`(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}`,[6,7,8,9,10,12],[[`(\\d{2})(\\d{2,3})(\\d{2})`,`$1-$2 $3`,[`20`],`0$1`,0,`$1 $2 $3`],[`(\\d{3})(\\d{4})`,`$1-$2`,[`9(?:00|39|44|9)`],`0$1`,0,`$1 $2`],[`(\\d{2})(\\d{3})(\\d{2})`,`$1-$2 $3`,[`[12][136]|3[356]|4[0246]|6[03]|90[1-9]`],`0$1`,0,`$1 $2 $3`],[`(\\d)(\\d{2,3})(\\d{2})(\\d{2})`,`$1-$2 $3 $4`,[`8`],`0$1`,0,`$1 $2 $3 $4`],[`(\\d{3})(\\d{2,3})(\\d{2})`,`$1-$2 $3`,[`1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])`],`0$1`,0,`$1 $2 $3`],[`(\\d{3})(\\d{2,3})(\\d{3})`,`$1-$2 $3`,[`9(?:00|39|44)`],`0$1`,0,`$1 $2 $3`],[`(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})`,`$1-$2 $3 $4`,[`1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]`],`0$1`,0,`$1 $2 $3 $4`],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1-$2 $3 $4`,[`10|7`],`0$1`,0,`$1 $2 $3 $4`],[`(\\d)(\\d{3})(\\d{3})(\\d{2})`,`$1-$2 $3 $4`,[`8`],`0$1`,0,`$1 $2 $3 $4`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1-$2 $3 $4`,[`[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])`],`0$1`,0,`$1 $2 $3 $4`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{3})`,`$1-$2 $3 $4`,[`9`],`0$1`,0,`$1 $2 $3 $4`],[`(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1-$2 $3 $4 $5`,[`[26]`],`0$1`,0,`$1 $2 $3 $4 $5`]],`0`],SG:[`65`,`0[0-3]\\d`,`(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}`,[8,10,11],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[369]|8(?:0[1-9]|[1-9])`]],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`8`]],[`(\\d{4})(\\d{4})(\\d{3})`,`$1 $2 $3`,[`7`]],[`(\\d{4})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1`]]]],SH:[`290`,`00`,`(?:[256]\\d|8)\\d{3}`,[4,5],0,0,0,0,0,0,`[256]`],SI:[`386`,`00|10(?:22|66|88|99)`,`[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}`,[5,6,7,8],[[`(\\d{2})(\\d{3,6})`,`$1 $2`,[`8[09]|9`],`0$1`],[`(\\d{3})(\\d{5})`,`$1 $2`,[`59|8`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[37][01]|4[0139]|51|6`],`0$1`],[`(\\d)(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[1-57]`],`(0$1)`]],`0`,0,0,0,0,0,0,`00`],SJ:[`47`,`00`,`0\\d{4}|(?:[489]\\d|79)\\d{6}`,[5,8],0,0,0,0,0,0,`79`],SK:[`421`,`00`,`[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}`,[6,7,9],[[`(\\d)(\\d{2})(\\d{3,4})`,`$1 $2 $3`,[`21`],`0$1`],[`(\\d{2})(\\d{2})(\\d{2,3})`,`$1 $2 $3`,[`[3-5][1-8]1`,`[3-5][1-8]1[67]`],`0$1`],[`(\\d)(\\d{3})(\\d{3})(\\d{2})`,`$1/$2 $3 $4`,[`2`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[689]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1/$2 $3 $4`,[`[3-5]`],`0$1`]],`0`],SL:[`232`,`00`,`(?:[237-9]\\d|66)\\d{6}`,[8],[[`(\\d{2})(\\d{6})`,`$1 $2`,[`[236-9]`],`(0$1)`]],`0`],SM:[`378`,`00`,`(?:0549|[5-7]\\d)\\d{6}`,[8,10],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[5-7]`]],[`(\\d{4})(\\d{6})`,`$1 $2`,[`0`]]],0,0,`([89]\\d{5})$`,`0549$1`],SN:[`221`,`00`,`(?:[378]\\d|93)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`8`]],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[379]`]]]],SO:[`252`,`00`,`[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}`,[6,7,8,9],[[`(\\d{2})(\\d{4})`,`$1 $2`,[`8[125]`]],[`(\\d{6})`,`$1`,[`[134]`]],[`(\\d)(\\d{6})`,`$1 $2`,[`[15]|2[0-79]|3[0-46-8]|4[0-7]`]],[`(\\d)(\\d{7})`,`$1 $2`,[`(?:2|90)4|[67]`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[348]|64|79|90`]],[`(\\d{2})(\\d{5,7})`,`$1 $2`,[`1|28|6[0-35-9]|7[67]|9[2-9]`]]],`0`],SR:[`597`,`00`,`(?:[2-5]|[6-8]\\d|90)\\d{5}`,[6,7],[[`(\\d{2})(\\d{2})(\\d{2})`,`$1-$2-$3`,[`56`]],[`(\\d{3})(\\d{3})`,`$1-$2`,[`[2-5]`]],[`(\\d{3})(\\d{4})`,`$1-$2`,[`[6-9]`]]]],SS:[`211`,`00`,`[19]\\d{8}`,[9],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[19]`],`0$1`]],`0`],ST:[`239`,`00`,`(?:22|9\\d)\\d{5}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[29]`]]]],SV:[`503`,`00`,`[25-7]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?`,[7,8,11],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[89]`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[25-7]`]],[`(\\d{3})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`[89]`]]]],SX:[`1`,`011`,`7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`(5\\d{6})$|1`,`721$1`,0,`721`],SY:[`963`,`00`,`[1-359]\\d{8}|[1-5]\\d{7}`,[8,9],[[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[1-4]|5[1-3]`],`0$1`,1],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[59]`],`0$1`,1]],`0`],SZ:[`268`,`00`,`0800\\d{4}|(?:[237]\\d|900)\\d{6}`,[8,9],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[0237]`]],[`(\\d{5})(\\d{4})`,`$1 $2`,[`9`]]]],TA:[`290`,`00`,`8\\d{3}`,[4],0,0,0,0,0,0,`8`],TC:[`1`,`011`,`(?:[58]\\d\\d|649|900)\\d{7}`,[10],0,`1`,0,`([2-479]\\d{6})$|1`,`649$1`,0,`649`],TD:[`235`,`00|16`,`(?:22|30|[689]\\d|77)\\d{6}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[236-9]`]]],0,0,0,0,0,0,0,`00`],TG:[`228`,`00`,`[279]\\d{7}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[279]`]]]],TH:[`66`,`00[1-9]`,`(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}`,[8,9,10,13],[[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`2`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[13-9]`],`0$1`],[`(\\d{4})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`1`]]],`0`],TJ:[`992`,`810`,`(?:[0-57-9]\\d|66)\\d{7}`,[9],[[`(\\d{6})(\\d)(\\d{2})`,`$1 $2 $3`,[`331`,`3317`]],[`(\\d{3})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`44[02-479]|[34]7`]],[`(\\d{4})(\\d)(\\d{4})`,`$1 $2 $3`,[`3(?:[1245]|3[12])`]],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`\\d`]]],0,0,0,0,0,0,0,`8~10`],TK:[`690`,`00`,`[2-47]\\d{3,6}`,[4,5,6,7]],TL:[`670`,`00`,`7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}`,[7,8],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[2-489]|70`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`7`]]]],TM:[`993`,`810`,`(?:[1-6]\\d|71)\\d{6}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2-$3-$4`,[`12`],`(8 $1)`],[`(\\d{3})(\\d)(\\d{2})(\\d{2})`,`$1 $2-$3-$4`,[`[1-5]`],`(8 $1)`],[`(\\d{2})(\\d{6})`,`$1 $2`,[`[67]`],`8 $1`]],`8`,0,0,0,0,0,0,`8~10`],TN:[`216`,`00`,`[2-57-9]\\d{7}`,[8],[[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[2-57-9]`]]]],TO:[`676`,`00`,`(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}`,[5,7],[[`(\\d{2})(\\d{3})`,`$1-$2`,[`[2-4]|50|6[09]|7[0-24-69]|8[05]`]],[`(\\d{4})(\\d{3})`,`$1 $2`,[`0`]],[`(\\d{3})(\\d{4})`,`$1 $2`,[`[5-9]`]]]],TR:[`90`,`00`,`4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}`,[7,10,12,13],[[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`512|8[01589]|90`],`0$1`,1],[`(\\d{3})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`5(?:[0-59]|61)`,`5(?:[0-59]|61[06])`,`5(?:[0-59]|61[06]1)`],`0$1`,1],[`(\\d{3})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[24][1-8]|3[1-9]`],`(0$1)`,1],[`(\\d{3})(\\d{3})(\\d{6,7})`,`$1 $2 $3`,[`80`],`0$1`,1]],`0`],TT:[`1`,`011`,`(?:[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([2-46-8]\\d{6})$|1`,`868$1`,0,`868`],TV:[`688`,`00`,`(?:2|7\\d\\d|90)\\d{4}`,[5,6,7],[[`(\\d{2})(\\d{3})`,`$1 $2`,[`2`]],[`(\\d{2})(\\d{4})`,`$1 $2`,[`90`]],[`(\\d{2})(\\d{5})`,`$1 $2`,[`7`]]]],TW:[`886`,`0(?:0[25-79]|19)`,`[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}`,[7,8,9,10,11],[[`(\\d{2})(\\d)(\\d{4})`,`$1 $2 $3`,[`202`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[258]0`],`0$1`],[`(\\d)(\\d{3,4})(\\d{4})`,`$1 $2 $3`,[`[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]`,`[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[49]`],`0$1`],[`(\\d{2})(\\d{4})(\\d{4,5})`,`$1 $2 $3`,[`7`],`0$1`]],`0`,0,0,0,0,0,0,0,`#`],TZ:[`255`,`00[056]`,`(?:[25-8]\\d|41|90)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`[89]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[24]`],`0$1`],[`(\\d{2})(\\d{7})`,`$1 $2`,[`5`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[67]`],`0$1`]],`0`],UA:[`380`,`00`,`[89]\\d{9}|[3-9]\\d{8}`,[9,10],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]`,`6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]`],`0$1`],[`(\\d{4})(\\d{5})`,`$1 $2`,[`3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])`,`3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[3-7]|89|9[1-9]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[89]`],`0$1`]],`0`,0,0,0,0,0,0,`0~0`],UG:[`256`,`00[057]`,`800\\d{6}|(?:[29]0|[347]\\d)\\d{7}`,[9],[[`(\\d{4})(\\d{5})`,`$1 $2`,[`202`,`2024`],`0$1`],[`(\\d{3})(\\d{6})`,`$1 $2`,[`[27-9]|4(?:6[45]|[7-9])`],`0$1`],[`(\\d{2})(\\d{7})`,`$1 $2`,[`[34]`],`0$1`]],`0`],US:[`1`,`011`,`[2-9]\\d{9}|3\\d{6}`,[10],[[`(\\d{3})(\\d{4})`,`$1-$2`,[`310`],0,1],[`(\\d{3})(\\d{3})(\\d{4})`,`($1) $2-$3`,[`[2-9]`],0,1,`$1-$2-$3`]],`1`,0,0,0,0,0,[[`(?:274[27]|(?:472|983)[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-247]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}`],[``],[`8(?:00|33|44|55|66|77|88)[2-9]\\d{6}`],[`900[2-9]\\d{6}`],[`52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}`]]],UY:[`598`,`0(?:0|1[3-9]\\d)`,`0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}`,[4,5,6,7,8,9,10,11,12,13],[[`(\\d{4,5})`,`$1`,[`21`]],[`(\\d{3})(\\d{3,4})`,`$1 $2`,[`0`]],[`(\\d{3})(\\d{4})`,`$1 $2`,[`[49]0|8`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`9`],`0$1`],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[124]`]],[`(\\d{3})(\\d{3})(\\d{2,4})`,`$1 $2 $3`,[`0`]],[`(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})`,`$1 $2 $3 $4`,[`0`]]],`0`,0,0,0,0,0,0,`00`,` int. `],UZ:[`998`,`00`,`(?:20|33|[5-9]\\d)\\d{7}`,[9],[[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[235-9]`]]]],VA:[`39`,`00`,`0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}`,[6,7,8,9,10,11,12],0,0,0,0,0,0,`06698`],VC:[`1`,`011`,`(?:[58]\\d\\d|784|900)\\d{7}`,[10],0,`1`,0,`([2-7]\\d{6})$|1`,`784$1`,0,`784`],VE:[`58`,`00`,`[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}`,[10],[[`(\\d{3})(\\d{7})`,`$1-$2`,[`[24-689]`],`0$1`]],`0`],VG:[`1`,`011`,`(?:284|[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([2-578]\\d{6})$|1`,`284$1`,0,`284`],VI:[`1`,`011`,`[58]\\d{9}|(?:34|90)0\\d{7}`,[10],0,`1`,0,`([2-9]\\d{6})$|1`,`340$1`,0,`340`],VN:[`84`,`00`,`[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}`,[7,8,9,10],[[`(\\d{2})(\\d{5})`,`$1 $2`,[`80`],`0$1`,1],[`(\\d{4})(\\d{4,6})`,`$1 $2`,[`1`],0,1],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`6`],`0$1`,1],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[357-9]`],`0$1`,1],[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`2[48]`],`0$1`,1],[`(\\d{3})(\\d{4})(\\d{3})`,`$1 $2 $3`,[`2`],`0$1`,1]],`0`],VU:[`678`,`00`,`[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}`,[5,7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[57-9]`]]]],WF:[`681`,`00`,`(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}`,[6,9],[[`(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`[47-9]`]],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`8`]]]],WS:[`685`,`0`,`(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}`,[5,6,7,10],[[`(\\d{5})`,`$1`,[`[2-5]|6[1-9]`]],[`(\\d{3})(\\d{3,7})`,`$1 $2`,[`[68]`]],[`(\\d{2})(\\d{5})`,`$1 $2`,[`7`]]]],XK:[`383`,`00`,`2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}`,[8,9,10,11,12],[[`(\\d{3})(\\d{5})`,`$1 $2`,[`[89]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[2-4]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`2|39`],`0$1`],[`(\\d{2})(\\d{7,10})`,`$1 $2`,[`3`],`0$1`]],`0`],YE:[`967`,`00`,`(?:1|7\\d)\\d{7}|[1-7]\\d{6}`,[7,8,9],[[`(\\d)(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[1-6]|7(?:[24-6]|8[0-7])`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`7`],`0$1`]],`0`],YT:[`262`,`00`,`7093\\d{5}|(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}`,[9],0,`0`,0,0,0,0,0,[[`269(?:0[0-467]|15|5[0-4]|6\\d|[78]0)\\d{4}`],[`(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}`],[`80\\d{7}`],0,0,0,0,0,[`9(?:(?:39|47)8[01]|769\\d)\\d{4}`]]],ZA:[`27`,`00`,`[1-79]\\d{8}|8\\d{4,9}`,[5,6,7,8,9,10],[[`(\\d{2})(\\d{3,4})`,`$1 $2`,[`8[1-4]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{2,3})`,`$1 $2 $3`,[`8[1-4]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`860`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[1-9]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`8`],`0$1`]],`0`],ZM:[`260`,`00`,`800\\d{6}|(?:21|[579]\\d|63)\\d{7}`,[9],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[28]`],`0$1`],[`(\\d{2})(\\d{7})`,`$1 $2`,[`[579]`],`0$1`]],`0`],ZW:[`263`,`00`,`2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}`,[5,6,7,8,9,10],[[`(\\d{3})(\\d{3,5})`,`$1 $2`,[`2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]`],`0$1`],[`(\\d)(\\d{3})(\\d{2,4})`,`$1 $2 $3`,[`[49]`],`0$1`],[`(\\d{3})(\\d{4})`,`$1 $2`,[`80`],`0$1`],[`(\\d{2})(\\d{7})`,`$1 $2`,[`24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2`,`2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]`],`(0$1)`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`7`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)`,`2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)`],`0$1`],[`(\\d{4})(\\d{6})`,`$1 $2`,[`8`],`0$1`],[`(\\d{2})(\\d{3,5})`,`$1 $2`,[`1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`29[013-9]|39|54`],`0$1`],[`(\\d{4})(\\d{3,5})`,`$1 $2`,[`(?:25|54)8`,`258|5483`],`0$1`]],`0`]},nonGeographic:{800:[`800`,0,`(?:00|[1-9]\\d)\\d{6}`,[8],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`\\d`]]],0,0,0,0,0,0,[0,0,[`(?:00|[1-9]\\d)\\d{6}`]]],808:[`808`,0,`[1-9]\\d{7}`,[8],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[1-9]`]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,[`[1-9]\\d{7}`]]],870:[`870`,0,`7\\d{11}|[235-7]\\d{8}`,[9,12],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[235-7]`]]],0,0,0,0,0,0,[0,[`(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}`],0,0,0,0,0,0,[`2\\d{8}`,[9]]]],878:[`878`,0,`10\\d{10}`,[12],[[`(\\d{2})(\\d{5})(\\d{5})`,`$1 $2 $3`,[`1`]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,[`10\\d{10}`]]],881:[`881`,0,`6\\d{9}|[0-36-9]\\d{8}`,[9,10],[[`(\\d)(\\d{3})(\\d{5})`,`$1 $2 $3`,[`[0-37-9]`]],[`(\\d)(\\d{3})(\\d{5,6})`,`$1 $2 $3`,[`6`]]],0,0,0,0,0,0,[0,[`6\\d{9}|[0-36-9]\\d{8}`]]],882:[`882`,0,`[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?`,[7,8,9,10,11,12],[[`(\\d{2})(\\d{5})`,`$1 $2`,[`16|342`]],[`(\\d{2})(\\d{6})`,`$1 $2`,[`49`]],[`(\\d{2})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`1[36]|9`]],[`(\\d{2})(\\d{4})(\\d{3})`,`$1 $2 $3`,[`3[23]`]],[`(\\d{2})(\\d{3,4})(\\d{4})`,`$1 $2 $3`,[`16`]],[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`10|23|3(?:[15]|4[57])|4|51`]],[`(\\d{3})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`34`]],[`(\\d{2})(\\d{4,5})(\\d{5})`,`$1 $2 $3`,[`[1-35]`]]],0,0,0,0,0,0,[0,[`342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}`,[7,8,9,10,12]],0,0,0,[`348[57]\\d{7}`,[11]],0,0,[`1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}`]]],883:[`883`,0,`(?:[1-4]\\d|51)\\d{6,10}`,[8,9,10,11,12],[[`(\\d{3})(\\d{3})(\\d{2,8})`,`$1 $2 $3`,[`[14]|2[24-689]|3[02-689]|51[24-9]`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`510`]],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`21`]],[`(\\d{4})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`51[13]`]],[`(\\d{3})(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`[235]`]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,[`(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}`]]],888:[`888`,0,`\\d{11}`,[11],[[`(\\d{3})(\\d{3})(\\d{5})`,`$1 $2 $3`]],0,0,0,0,0,0,[0,0,0,0,0,0,[`\\d{11}`]]],979:[`979`,0,`[1359]\\d{8}`,[9],[[`(\\d)(\\d{4})(\\d{4})`,`$1 $2 $3`,[`[1359]`]]],0,0,0,0,0,0,[0,0,0,[`[1359]\\d{8}`]]]}};function pg(e,t){var n=Array.prototype.slice.call(t);return n.push(fg),e.apply(this,n)}function mg(e,t){e=e.split(`-`),t=t.split(`-`);for(var n=e[0].split(`.`),r=t[0].split(`.`),i=0;i<3;i++){var a=Number(n[i]),o=Number(r[i]);if(a>o)return 1;if(o>a)return -1;if(!isNaN(a)&&isNaN(o))return 1;if(isNaN(a)&&!isNaN(o))return -1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0}var hg={}.constructor;function gg(e){return e!=null&&e.constructor===hg}function _g(e){"@babel/helpers - typeof";return _g=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},_g(e)}function vg(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function yg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||false,r.configurable=true,`value`in r&&(r.writable=true),Object.defineProperty(e,xg(r.key),r);}}function bg(e,t,n){return t&&yg(e.prototype,t),Object.defineProperty(e,`prototype`,{writable:false}),e}function xg(e){var t=Sg(e,`string`);return _g(t)==`symbol`?t:t+``}function Sg(e,t){if(_g(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(_g(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return (String)(e)}var Cg=`1.2.0`,wg=`1.7.35`,Tg=` ext. `,Eg=/^\d+$/,Q$2=function(){function e(t){vg(this,e),Mg(t),this.metadata=t,Ig.call(this,t);}return bg(e,[{key:`getCountries`,value:function(){return Object.keys(this.metadata.countries).filter(function(e){return e!==`001`})}},{key:`getCountryMetadata`,value:function(e){return this.metadata.countries[e]}},{key:`nonGeographic`,value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:`hasCountry`,value:function(e){return this.getCountryMetadata(e)!==void 0}},{key:`hasCallingCode`,value:function(e){if(this.getCountryCodesForCallingCode(e))return true;if(this.nonGeographic()){if(this.nonGeographic()[e])return true}else {var t=this.countryCallingCodes()[e];if(t&&t.length===1&&t[0]===`001`)return true}}},{key:`isNonGeographicCallingCode`,value:function(e){return this.nonGeographic()?!!this.nonGeographic()[e]:!this.getCountryCodesForCallingCode(e)}},{key:`country`,value:function(e){return this.selectNumberingPlan(e)}},{key:`selectNumberingPlan`,value:function(e,t){if(e&&Eg.test(e)&&(t=e,e=null),e&&e!==`001`){if(!this.hasCountry(e))throw Error(`Unknown country: ${e}`);this.numberingPlan=new Dg(this.getCountryMetadata(e),this);}else if(t){if(!this.hasCallingCode(t))throw Error(`Unknown calling code: ${t}`);this.numberingPlan=new Dg(this.getNumberingPlanMetadata(t),this);}else this.numberingPlan=void 0;return this}},{key:`getCountryCodesForCallingCode`,value:function(e){var t=this.countryCallingCodes()[e];if(t)return t.length===1&&t[0].length===3?void 0:t}},{key:`getCountryCodeForCallingCode`,value:function(e){var t=this.getCountryCodesForCallingCode(e);if(t)return t[0]}},{key:`getNumberingPlanMetadata`,value:function(e){var t=this.getCountryCodeForCallingCode(e);if(t)return this.getCountryMetadata(t);if(this.nonGeographic()){var n=this.nonGeographic()[e];if(n)return n}else {var r=this.countryCallingCodes()[e];if(r&&r.length===1&&r[0]===`001`)return this.metadata.countries[`001`]}}},{key:`countryCallingCode`,value:function(){return this.numberingPlan.callingCode()}},{key:`IDDPrefix`,value:function(){return this.numberingPlan.IDDPrefix()}},{key:`defaultIDDPrefix`,value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:`nationalNumberPattern`,value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:`possibleLengths`,value:function(){return this.numberingPlan.possibleLengths()}},{key:`formats`,value:function(){return this.numberingPlan.formats()}},{key:`nationalPrefixForParsing`,value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:`nationalPrefixTransformRule`,value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:`leadingDigits`,value:function(){return this.numberingPlan.leadingDigits()}},{key:`hasTypes`,value:function(){return this.numberingPlan.hasTypes()}},{key:`type`,value:function(e){return this.numberingPlan.type(e)}},{key:`ext`,value:function(){return this.numberingPlan.ext()}},{key:`countryCallingCodes`,value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:`chooseCountryByCountryCallingCode`,value:function(e){return this.selectNumberingPlan(e)}},{key:`hasSelectedNumberingPlan`,value:function(){return this.numberingPlan!==void 0}}])}(),Dg=function(){function e(t,n){vg(this,e),this.globalMetadataObject=n,this.metadata=t,Ig.call(this,n.metadata);}return bg(e,[{key:`callingCode`,value:function(){return this.metadata[0]}},{key:`getDefaultCountryMetadataForRegion`,value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:`IDDPrefix`,value:function(){if(!(this.v1||this.v2))return this.metadata[1]}},{key:`defaultIDDPrefix`,value:function(){if(!(this.v1||this.v2))return this.metadata[12]}},{key:`nationalNumberPattern`,value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:`possibleLengths`,value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:`_getFormats`,value:function(e){return e[this.v1?2:this.v2?3:4]}},{key:`formats`,value:function(){var e=this;return (this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[]).map(function(t){return new Og(t,e)})}},{key:`nationalPrefix`,value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:`_getNationalPrefixFormattingRule`,value:function(e){return e[this.v1?4:this.v2?5:6]}},{key:`nationalPrefixFormattingRule`,value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion())}},{key:`_nationalPrefixForParsing`,value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:`nationalPrefixForParsing`,value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:`nationalPrefixTransformRule`,value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:`_getNationalPrefixIsOptionalWhenFormatting`,value:function(){return !!this.metadata[this.v1?7:this.v2?8:9]}},{key:`nationalPrefixIsOptionalWhenFormattingInNationalFormat`,value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion())}},{key:`leadingDigits`,value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:`types`,value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:`hasTypes`,value:function(){return this.types()&&this.types().length===0?false:!!this.types()}},{key:`type`,value:function(e){if(this.hasTypes()&&jg(this.types(),e))return new Ag(jg(this.types(),e),this)}},{key:`ext`,value:function(){return this.v1||this.v2?Tg:this.metadata[13]||Tg}}])}(),Og=function(){function e(t,n){vg(this,e),this._format=t,this.metadata=n;}return bg(e,[{key:`pattern`,value:function(){return this._format[0]}},{key:`format`,value:function(){return this._format[1]}},{key:`leadingDigitsPatterns`,value:function(){return this._format[2]||[]}},{key:`nationalPrefixFormattingRule`,value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:`nationalPrefixIsOptionalWhenFormattingInNationalFormat`,value:function(){return !!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:`nationalPrefixIsMandatoryWhenFormattingInNationalFormat`,value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:`usesNationalPrefix`,value:function(){return !!(this.nationalPrefixFormattingRule()&&!kg.test(this.nationalPrefixFormattingRule()))}},{key:`internationalFormat`,value:function(){return this._format[5]||this.format()}}])}(),kg=/^\(?\$1\)?$/,Ag=function(){function e(t,n){vg(this,e),this.type=t,this.metadata=n;}return bg(e,[{key:`pattern`,value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:`possibleLengths`,value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}])}();function jg(e,t){switch(t){case `FIXED_LINE`:return e[0];case `MOBILE`:return e[1];case `TOLL_FREE`:return e[2];case `PREMIUM_RATE`:return e[3];case `PERSONAL_NUMBER`:return e[4];case `VOICEMAIL`:return e[5];case `UAN`:return e[6];case `PAGER`:return e[7];case `VOIP`:return e[8];case `SHARED_COST`:return e[9]}}function Mg(e){if(!e)throw Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!gg(e)||!gg(e.countries))throw Error(`[libphonenumber-js] \`metadata\` argument was passed but it's not a valid metadata. Must be an object having \`.countries\` child object property. Got ${gg(e)?`an object of shape: { `+Object.keys(e).join(`, `)+` }`:`a `+Ng(e)+`: `+e}.`)}var Ng=function(e){return _g(e)};function Pg(e,t){if(t=new Q$2(t),t.hasCountry(e))return t.selectNumberingPlan(e).countryCallingCode();throw Error(`Unknown country: ${e}`)}function Fg(e,t){return t.countries.hasOwnProperty(e)}function Ig(e){var t=e.version;typeof t==`number`?(this.v1=t===1,this.v2=t===2,this.v3=t===3,this.v4=t===4):t?mg(t,Cg)===-1?this.v2=true:mg(t,wg)===-1?this.v3=true:this.v4=true:this.v1=true;}function Vg(e,t,n){return Hg(e,t,void 0,n)}function Hg(e,t,n,r){t&&(r=new Q$2(r.metadata),r.selectNumberingPlan(t));var i=r.type(n),a=i&&i.possibleLengths()||r.possibleLengths();if(!a)return `IS_POSSIBLE`;var s=e.length,c=a[0];return c===s?`IS_POSSIBLE`:c>s?`TOO_SHORT`:a[a.length-1]<s?`TOO_LONG`:a.indexOf(s,1)>=0?`IS_POSSIBLE`:`INVALID_LENGTH`}function Ug(e,t,n){if(t===void 0&&(t={}),n=new Q$2(n),t.v2){if(!e.countryCallingCode)throw Error(`Invalid phone number object passed`);n.selectNumberingPlan(e.countryCallingCode);}else {if(!e.phone)return false;if(e.country){if(!n.hasCountry(e.country))throw Error(`Unknown country: ${e.country}`);n.selectNumberingPlan(e.country);}else {if(!e.countryCallingCode)throw Error(`Invalid phone number object passed`);n.selectNumberingPlan(e.countryCallingCode);}}if(n.possibleLengths())return Wg(e.phone||e.nationalNumber,e.country,n);if(e.countryCallingCode&&n.isNonGeographicCallingCode(e.countryCallingCode))return true;throw Error(`Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.`)}function Wg(e,t,n){switch(Vg(e,t,n)){case `IS_POSSIBLE`:return true;default:return false}}function Gg(e,t){return e||=``,RegExp(`^(?:`+t+`)$`).test(e)}function Kg(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n)return (n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=qg(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:true}:{done:false,value:e[r++]}}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
43
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qg(e,t){if(e){if(typeof e==`string`)return Jg(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jg(e,t):void 0}}function Jg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Yg=[`MOBILE`,`PREMIUM_RATE`,`TOLL_FREE`,`SHARED_COST`,`VOIP`,`PERSONAL_NUMBER`,`PAGER`,`UAN`,`VOICEMAIL`];function Xg(e,t,n){if(t||={},!(!e.country&&!e.countryCallingCode)){n=new Q$2(n),n.selectNumberingPlan(e.country,e.countryCallingCode);var r=t.v2?e.nationalNumber:e.phone;if(Gg(r,n.nationalNumberPattern())){if(Zg(r,`FIXED_LINE`,n))return n.type(`MOBILE`)&&n.type(`MOBILE`).pattern()===``||!n.type(`MOBILE`)||Zg(r,`MOBILE`,n)?`FIXED_LINE_OR_MOBILE`:`FIXED_LINE`;for(var i=Kg(Yg),a;!(a=i()).done;){var o=a.value;if(Zg(r,o,n))return o}}}}function Zg(e,t,n){return t=n.type(t),!t||!t.pattern()||t.possibleLengths()&&t.possibleLengths().indexOf(e.length)<0?false:Gg(e,t.pattern())}function Qg(e,t,n){return t||={},n=new Q$2(n),n.selectNumberingPlan(e.country,e.countryCallingCode),n.hasTypes()?Xg(e,t,n.metadata)!==void 0:Gg(t.v2?e.nationalNumber:e.phone,n.nationalNumberPattern())}function $g(e,t,n){var r=new Q$2(n).getCountryCodesForCallingCode(e);return r?r.filter(function(e){return e_(t,e,n)}):[]}function e_(e,t,n){var r=new Q$2(n);return r.selectNumberingPlan(t),r.numberingPlan.possibleLengths().indexOf(e.length)>=0}var t_=2,n_=17,r_=3,i_=`0-90-9٠-٩۰-۹`,a_=`-‐-―−ー-//.. \xA0 ()()[]\\[\\]~⁓∼~`,o_=`++`,s_=RegExp(`([`+i_+`])`);function c_(e,t,n,r){if(t){var i=new Q$2(r);i.selectNumberingPlan(t,n);var a=new RegExp(i.IDDPrefix());if(e.search(a)===0){e=e.slice(e.match(a)[0].length);var o=e.match(s_);if(!(o&&o[1]!=null&&o[1].length>0&&o[1]===`0`))return e}}}function l_(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var n=RegExp(`^(?:`+t.numberingPlan.nationalPrefixForParsing()+`)`),r=n.exec(e);if(r){var i,a,o=r.length-1,s=o>0&&r[o];if(t.nationalPrefixTransformRule()&&s)i=e.replace(n,t.nationalPrefixTransformRule()),o>1&&(a=r[1]);else {var c=r[0];i=e.slice(c.length),s&&(a=r[1]);}var l;if(s){var u=e.indexOf(r[1]);e.slice(0,u)===t.numberingPlan.nationalPrefix()&&(l=t.numberingPlan.nationalPrefix());}else l=r[0];return {nationalNumber:i,nationalPrefix:l,carrierCode:a}}}return {nationalNumber:e}}function u_(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n)return (n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=d_(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:true}:{done:false,value:e[r++]}}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
44
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d_(e,t){if(e){if(typeof e==`string`)return f_(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f_(e,t):void 0}}function f_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function p_(e,t){var n=t.countries,r=t.metadata;r=new Q$2(r);for(var i=u_(n),a;!(a=i()).done;){var o=a.value;if(r.selectNumberingPlan(o),r.leadingDigits()){if(e&&e.search(r.leadingDigits())===0)return o}else if(Xg({phone:e,country:o},void 0,r.metadata))return o}}function h_(e,t){var n=t.nationalNumber,r=t.metadata;var i=r.getCountryCodesForCallingCode(e);if(i)return i.length===1?i[0]:p_(n,{countries:i,metadata:r.metadata})}function g_(e,t,n){var r=l_(e,n),i=r.carrierCode,a=r.nationalNumber;return a!==e&&(!__(e,a,n)||n.numberingPlan.possibleLengths()&&(t||=h_(n.numberingPlan.callingCode(),{nationalNumber:a,metadata:n}),!v_(a,t,n)))?{nationalNumber:e}:{nationalNumber:a,carrierCode:i}}function __(e,t,n){return !(Gg(e,n.nationalNumberPattern())&&!Gg(t,n.nationalNumberPattern()))}function v_(e,t,n){switch(Vg(e,t,n)){case `TOO_SHORT`:case `INVALID_LENGTH`:return false;default:return true}}function y_(e,t,n,r,i){var a=n?Pg(n,i):r;if(e.indexOf(a)===0){i=new Q$2(i),i.selectNumberingPlan(n,a);var o=e.slice(a.length),s=g_(o,t,i).nationalNumber,c=g_(e,t,i).nationalNumber;if(!Gg(c,i.nationalNumberPattern())&&Gg(s,i.nationalNumberPattern())||Vg(c,t,i)===`TOO_LONG`)return {countryCallingCode:a,number:o}}return {number:e}}function b_(e,t,n,r,i){if(!e)return {};var a;if(e[0]!==`+`){var o=c_(e,n,r,i);if(o&&o!==e)a=true,e=`+`+o;else {if(n||r){var s=y_(e,t,n,r,i),c=s.countryCallingCode,l=s.number;if(c)return {countryCallingCodeSource:`FROM_NUMBER_WITHOUT_PLUS_SIGN`,countryCallingCode:c,number:l}}return {number:e}}}if(e[1]===`0`)return {};i=new Q$2(i);for(var u=2;u-1<=r_&&u<=e.length;){var d=e.slice(1,u);if(i.hasCallingCode(d))return i.selectNumberingPlan(d),{countryCallingCodeSource:a?`FROM_NUMBER_WITH_IDD`:`FROM_NUMBER_WITH_PLUS_SIGN`,countryCallingCode:d,number:e.slice(u)};u++;}return {}}function x_(e){return e.replace(RegExp(`[${a_}]+`,`g`),` `).trim()}var S_=/(\$\d)/;function C_(e,t,n){var r=n.useInternationalFormat,i=n.withNationalPrefix;var a=e.replace(new RegExp(t.pattern()),r?t.internationalFormat():i&&t.nationalPrefixFormattingRule()?t.format().replace(S_,t.nationalPrefixFormattingRule()):t.format());return r?x_(a):a}var w_=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function T_(e,t,n){var r=new Q$2(n);if(r.selectNumberingPlan(e,t),r.defaultIDDPrefix())return r.defaultIDDPrefix();if(w_.test(r.IDDPrefix()))return r.IDDPrefix()}var E_=`;ext=`,D_=function(e){return `([${i_}]{1,${e}})`};function O_(e){var t=`20`,n=`15`,r=`9`,i=`6`,a=`[ \xA0\\t,]*`,o=`[:\\..]?[ \xA0\\t,-]*`,s=`#?`,c=`(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)`,l=`(?:[xx##~~]|int|int)`,u=`[- ]+`,d=`[ \xA0\\t]*`,f=`(?:,{2}|;)`,p=E_+D_(t),m=a+c+o+D_(t)+s,ee=a+l+o+D_(r)+s,te=u+D_(i)+`#`,ne=d+f+o+D_(n)+s,h=d+`(?:,)+`+o+D_(r)+s;return p+`|`+m+`|`+ee+`|`+te+`|`+ne+`|`+h}var k_=`[`+i_+`]{`+t_+`}`,A_=`[`+o_+`]{0,1}(?:[`+a_+`]*[`+i_+`]){3,}[`+a_+i_+`]*`,j_=RegExp(`^[`+o_+`]{0,1}(?:[`+a_+`]*[`+i_+`]){1,2}$`,`i`),M_=A_+`(?:`+O_()+`)?`,N_=RegExp(`^`+k_+`$|^`+M_+`$`,`i`);function P_(e){return e.length>=t_&&N_.test(e)}function F_(e){return j_.test(e)}function I_(e){var t=e.number,n=e.ext;if(!t)return ``;if(t[0]!==`+`)throw Error(`"formatRFC3966()" expects "number" to be in E.164 format.`);return `tel:${t}${n?`;ext=`+n:``}`}var L_={formatExtension:function(e,t,n){return `${e}${n.ext()}${t}`}};function R_(e,t,n,r){if(n=n?U_({},L_,n):L_,r=new Q$2(r),e.country&&e.country!==`001`){if(!r.hasCountry(e.country))throw Error(`Unknown country: ${e.country}`);r.selectNumberingPlan(e.country);}else if(e.countryCallingCode)r.selectNumberingPlan(e.countryCallingCode);else return e.phone||``;var i=r.countryCallingCode(),a=n.v2?e.nationalNumber:e.phone,o;switch(t){case `NATIONAL`:return a?(o=z_(a,e.carrierCode,`NATIONAL`,r,n),V_(o,e.ext,r,n.formatExtension)):``;case `INTERNATIONAL`:return a?(o=z_(a,null,`INTERNATIONAL`,r,n),o=`+${i} ${o}`,V_(o,e.ext,r,n.formatExtension)):`+${i}`;case `E.164`:return `+${i}${a}`;case `RFC3966`:return I_({number:`+${i}${a}`,ext:e.ext});case `IDD`:if(!n.fromCountry)return;var s=H_(a,e.carrierCode,i,n.fromCountry,r);return s?V_(s,e.ext,r,n.formatExtension):void 0;default:throw Error(`Unknown "format" argument passed to "formatNumber()": "${t}"`)}}function z_(e,t,n,r,i){var a=B_(r.formats(),e);return a?C_(e,a,{useInternationalFormat:n===`INTERNATIONAL`,withNationalPrefix:!(a.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&i&&i.nationalPrefix===false)}):e}function B_(e,t){return W_(e,function(e){if(e.leadingDigitsPatterns().length>0){var n=e.leadingDigitsPatterns()[e.leadingDigitsPatterns().length-1];if(t.search(n)!==0)return false}return Gg(t,e.pattern())})}function V_(e,t,n,r){return t?r(e,t,n):e}function H_(e,t,n,r,i){if(Pg(r,i.metadata)===n){var a=z_(e,t,`NATIONAL`,i);return n===`1`?n+` `+a:a}var o=T_(r,void 0,i.metadata);if(o)return `${o} ${n} ${z_(e,null,`INTERNATIONAL`,i)}`}function U_(){for(var e=1,t=[...arguments];e<t.length;){if(t[e])for(var n in t[e])t[0][n]=t[e][n];e++;}return t[0]}function W_(e,t){for(var n=0;n<e.length;){if(t(e[n]))return e[n];n++;}}function G_(e){"@babel/helpers - typeof";return G_=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},G_(e)}function K_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r);}return n}function q_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?K_(Object(n),true).forEach(function(t){J_(e,t,n[t]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t));});}return e}function J_(e,t,n){return (t=Q_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true}):e[t]=n,e}function Y_(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function X_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||false,r.configurable=true,`value`in r&&(r.writable=true),Object.defineProperty(e,Q_(r.key),r);}}function Z_(e,t,n){return t&&X_(e.prototype,t),Object.defineProperty(e,`prototype`,{writable:false}),e}function Q_(e){var t=$_(e,`string`);return G_(t)==`symbol`?t:t+``}function $_(e,t){if(G_(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(G_(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return (String)(e)}var ev=false,tv=function(){function e(t,n,r){if(Y_(this,e),!t)throw TypeError(`First argument is required`);if(typeof t!=`string`)throw TypeError(`First argument must be a string`);if(t[0]===`+`&&!n)throw TypeError("`metadata` argument not passed");if(gg(n)&&gg(n.countries)){r=n;var i=t;if(!iv.test(i))throw Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var a=b_(i,void 0,void 0,void 0,r),o=a.countryCallingCode;if(n=a.number,t=o,!n)throw Error("Invalid `number` argument passed: too short")}if(!n)throw TypeError("`nationalNumber` argument is required");if(typeof n!=`string`)throw TypeError("`nationalNumber` argument must be a string");Mg(r);var s=rv(t,r),c=s.country,l=s.countryCallingCode;this.country=c,this.countryCallingCode=l,this.nationalNumber=n,this.number=`+`+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return r};}return Z_(e,[{key:`setExt`,value:function(e){this.ext=e;}},{key:`getPossibleCountries`,value:function(){return this.country?[this.country]:$g(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:`isPossible`,value:function(){return Ug(this,{v2:true},this.getMetadata())}},{key:`isValid`,value:function(){return Qg(this,{v2:true},this.getMetadata())}},{key:`isNonGeographic`,value:function(){return new Q$2(this.getMetadata()).isNonGeographicCallingCode(this.countryCallingCode)}},{key:`isEqual`,value:function(e){return this.number===e.number&&this.ext===e.ext}},{key:`getType`,value:function(){return Xg(this,{v2:true},this.getMetadata())}},{key:`format`,value:function(e,t){return R_(this,e,t?q_(q_({},t),{},{v2:true}):{v2:true},this.getMetadata())}},{key:`formatNational`,value:function(e){return this.format(`NATIONAL`,e)}},{key:`formatInternational`,value:function(e){return this.format(`INTERNATIONAL`,e)}},{key:`getURI`,value:function(e){return this.format(`RFC3966`,e)}}])}(),nv=function(e){return /^[A-Z]{2}$/.test(e)};function rv(e,t){var n,r,i=new Q$2(t);return nv(e)?(n=e,i.selectNumberingPlan(n),r=i.countryCallingCode()):(r=e,ev),{country:n,countryCallingCode:r}}var iv=/^\+\d+$/;function av(e){"@babel/helpers - typeof";return av=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},av(e)}function sv(e,t,n){return Object.defineProperty(e,`prototype`,{writable:false}),e}function uv(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function dv(e,t,n){return t=bv(t),fv(e,_v()?Reflect.construct(t,n||[],bv(e).constructor):t.apply(e,n))}function fv(e,t){if(t&&(av(t)==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return pv(e)}function pv(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function mv(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}}),Object.defineProperty(e,`prototype`,{writable:false}),t&&yv(e,t);}function hv(e){var t=typeof Map==`function`?new Map:void 0;return hv=function(e){if(e===null||!vv(e))return e;if(typeof e!=`function`)throw TypeError(`Super expression must either be null or a function`);if(t!==void 0){if(t.has(e))return t.get(e);t.set(e,n);}function n(){return gv(e,arguments,bv(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:false,writable:true,configurable:true}}),yv(n,e)},hv(e)}function gv(e,t,n){if(_v())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&yv(i,n.prototype),i}function _v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch{}return (_v=function(){return !!e})()}function vv(e){try{return Function.toString.call(e).indexOf(`[native code]`)!==-1}catch{return typeof e==`function`}}function yv(e,t){return yv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},yv(e,t)}function bv(e){return bv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},bv(e)}var xv=function(e){function t(e){var n;return uv(this,t),n=dv(this,t,[e]),Object.setPrototypeOf(n,t.prototype),n.name=n.constructor.name,n}return mv(t,e),sv(t)}(hv(Error)),Sv=RegExp(`(?:`+O_()+`)$`,`i`);function Cv(e){var t=e.search(Sv);if(t<0)return {};for(var n=e.slice(0,t),r=e.match(Sv),i=1;i<r.length;){if(r[i])return {number:n,ext:r[i]};i++;}}var wv={0:`0`,1:`1`,2:`2`,3:`3`,4:`4`,5:`5`,6:`6`,7:`7`,8:`8`,9:`9`,"0":`0`,"1":`1`,"2":`2`,"3":`3`,"4":`4`,"5":`5`,"6":`6`,"7":`7`,"8":`8`,"9":`9`,"٠":`0`,"١":`1`,"٢":`2`,"٣":`3`,"٤":`4`,"٥":`5`,"٦":`6`,"٧":`7`,"٨":`8`,"٩":`9`,"۰":`0`,"۱":`1`,"۲":`2`,"۳":`3`,"۴":`4`,"۵":`5`,"۶":`6`,"۷":`7`,"۸":`8`,"۹":`9`};function Tv(e){return wv[e]}function Ev(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n)return (n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Dv(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:true}:{done:false,value:e[r++]}}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
45
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dv(e,t){if(e){if(typeof e==`string`)return Ov(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ov(e,t):void 0}}function Ov(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function kv(e){for(var t=``,n=Ev(e.split(``)),r;!(r=n()).done;){var i=r.value;t+=Av(i,t)||``;}return t}function Av(e,t,n){if(e===`+`){if(t){return}return `+`}return Tv(e)}var jv=`+`,Mv=`([`+i_+`]|[\\-\\.\\(\\)]?)`,Nv=`^\\`+jv+Mv+`*[`+i_+`]`+Mv+`*$`,Pv=new RegExp(Nv,`g`),Fv=i_,Iv=`[`+Fv+`]+((\\-)*[`+Fv+`])*`,Lv=`[a-zA-Z]+((\\-)*[`+Fv+`])*`,Rv=`^(`+Iv+`\\.)*`+Lv+`\\.?$`,zv=new RegExp(Rv,`g`),Bv=`tel:`,Vv=`;phone-context=`,Hv=`;isub=`;function Uv(e){var t=e.indexOf(Vv);if(t<0)return null;var n=t+Vv.length;if(n>=e.length)return ``;var r=e.indexOf(`;`,n);return r>=0?e.substring(n,r):e.substring(n)}function Wv(e){return e===null?true:e.length===0?false:Pv.test(e)||zv.test(e)}function Gv(e,t){var n=t.extractFormattedPhoneNumber,r=Uv(e);if(!Wv(r))throw new xv(`NOT_A_NUMBER`);var i;if(r===null)i=n(e)||``;else {i=``,r.charAt(0)===jv&&(i+=r);var a=e.indexOf(Bv),o=a>=0?a+Bv.length:0,s=e.indexOf(Vv);i+=e.substring(o,s);}var c=i.indexOf(Hv);if(c>0&&(i=i.substring(0,c)),i!==``)return i}var Kv=250,qv=RegExp(`[`+o_+i_+`]`),Jv=RegExp(`[^`+i_+`#]+$`),Yv=false;function Xv(e,t,n){if(t||={},n=new Q$2(n),t.defaultCountry&&!n.hasCountry(t.defaultCountry))throw t.v2?new xv(`INVALID_COUNTRY`):Error(`Unknown country: ${t.defaultCountry}`);var r=Qv(e,t.v2,t.extract),i=r.number,a=r.ext,o=r.error;if(!i){if(t.v2)throw o===`TOO_SHORT`?new xv(`TOO_SHORT`):new xv(`NOT_A_NUMBER`);return {}}var s=ey(i,t.defaultCountry,t.defaultCallingCode,n),c=s.country,l=s.nationalNumber,u=s.countryCallingCode,d=s.countryCallingCodeSource,f=s.carrierCode;if(!n.hasSelectedNumberingPlan()){if(t.v2)throw new xv(`INVALID_COUNTRY`);return {}}if(!l||l.length<t_){if(t.v2)throw new xv(`TOO_SHORT`);return {}}if(l.length>n_){if(t.v2)throw new xv(`TOO_LONG`);return {}}if(t.v2){var p=new tv(u,l,n.metadata);return c&&(p.country=c),f&&(p.carrierCode=f),a&&(p.ext=a),p.__countryCallingCodeSource=d,p}var m=(t.extended?n.hasSelectedNumberingPlan():c)?Gg(l,n.nationalNumberPattern()):false;return t.extended?{country:c,countryCallingCode:u,carrierCode:f,valid:m,possible:m?true:!!(t.extended===true&&n.possibleLengths()&&Wg(l,c,n)),phone:l,ext:a}:m?$v(c,l,a):{}}function Zv(e,t,n){if(e){if(e.length>Kv){if(n)throw new xv(`TOO_LONG`);return}if(t===false)return e;var r=e.search(qv);if(!(r<0))return e.slice(r).replace(Jv,``)}}function Qv(e,t,n){var r=Gv(e,{extractFormattedPhoneNumber:function(e){return Zv(e,n,t)}});if(!r)return {};if(!P_(r))return F_(r)?{error:`TOO_SHORT`}:{};var i=Cv(r);return i.ext?i:{number:r}}function $v(e,t,n){var r={country:e,phone:t};return n&&(r.ext=n),r}function ey(e,t,n,r){var i=b_(kv(e),void 0,t,n,r.metadata),a=i.countryCallingCodeSource,o=i.countryCallingCode,s=i.number,c;if(o)r.selectNumberingPlan(o);else if(s&&(t||n))r.selectNumberingPlan(t,n),t?c=t:Yv,o=n||Pg(t,r.metadata);else return {};if(!s)return {countryCallingCodeSource:a,countryCallingCode:o};var l=g_(kv(s),c,r),u=l.nationalNumber,d=l.carrierCode,f=h_(o,{nationalNumber:u,metadata:r});return f&&(c=f,f===`001`||r.selectNumberingPlan(c)),{country:c,countryCallingCode:o,countryCallingCodeSource:a,nationalNumber:u,carrierCode:d}}function ty(e){"@babel/helpers - typeof";return ty=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},ty(e)}function ny(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r);}return n}function ry(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ny(Object(n),true).forEach(function(t){iy(e,t,n[t]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ny(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t));});}return e}function iy(e,t,n){return (t=ay(t))in e?Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true}):e[t]=n,e}function ay(e){var t=oy(e,`string`);return ty(t)==`symbol`?t:t+``}function oy(e,t){if(ty(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ty(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return (t===`string`?String:Number)(e)}function sy(e,t,n){return Xv(e,ry(ry({},t),{},{v2:true}),n)}function cy(e){"@babel/helpers - typeof";return cy=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},cy(e)}function ly(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r);}return n}function uy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ly(Object(n),true).forEach(function(t){dy(e,t,n[t]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ly(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t));});}return e}function dy(e,t,n){return (t=fy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true}):e[t]=n,e}function fy(e){var t=py(e,`string`);return cy(t)==`symbol`?t:t+``}function py(e,t){if(cy(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(cy(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return (t===`string`?String:Number)(e)}function my(e,t){return yy(e)||vy(e,t)||gy(e,t)||hy()}function hy(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
46
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gy(e,t){if(e){if(typeof e==`string`)return _y(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_y(e,t):void 0}}function _y(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function vy(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=true,l=false;try{if(a=(n=n.call(e)).next,t===0);else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=true);}catch(e){l=true,i=e;}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function yy(e){if(Array.isArray(e))return e}function by(e){var t=my(Array.prototype.slice.call(e),4),n=t[0],r=t[1],i=t[2],a=t[3],o,s,c;if(typeof n==`string`)o=n;else throw TypeError(`A text for parsing must be a string.`);if(!r||typeof r==`string`)a?(s=i,c=a):(s=void 0,c=i),r&&(s=uy({defaultCountry:r},s));else if(gg(r))i?(s=r,c=i):c=r;else throw Error(`Invalid second argument: ${r}`);return {text:o,options:s,metadata:c}}function xy(e){"@babel/helpers - typeof";return xy=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},xy(e)}function Sy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r);}return n}function Cy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Sy(Object(n),true).forEach(function(t){wy(e,t,n[t]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sy(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t));});}return e}function wy(e,t,n){return (t=Ty(t))in e?Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true}):e[t]=n,e}function Ty(e){var t=Ey(e,`string`);return xy(t)==`symbol`?t:t+``}function Ey(e,t){if(xy(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(xy(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return (t===`string`?String:Number)(e)}function Dy(e,t,n){t&&t.defaultCountry&&!Fg(t.defaultCountry,n)&&(t=Cy(Cy({},t),{},{defaultCountry:void 0}));try{return sy(e,t,n)}catch(e){if(!(e instanceof xv))throw e}}function Oy(e){"@babel/helpers - typeof";return Oy=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Oy(e)}function ky(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r);}return n}function Ay(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ky(Object(n),true).forEach(function(t){jy(e,t,n[t]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ky(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t));});}return e}function jy(e,t,n){return (t=My(t))in e?Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true}):e[t]=n,e}function My(e){var t=Ny(e,`string`);return Oy(t)==`symbol`?t:t+``}function Ny(e,t){if(Oy(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Oy(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return (t===`string`?String:Number)(e)}function Py(){var e=by(arguments),t=e.text,n=e.options,r=e.metadata;n=Ay(Ay({},n),{},{extract:false});var i=Dy(t,n,r);return i&&i.isValid()||false}function Fy(){return pg(Py,arguments)}const Iy=Lh.omit({eventId:true,channel:true}).partial().extend({id:k$1().meta({examples:[b$1.Order.id],description:`Unique identifier of the order to update`}),signature:wl.meta({description:`HMAC signature for customer access during checkout (16 characters, base64url encoded). Required for all order updates.`}),items:P$1(Ih).min(1).optional().meta({description:`Updated list of items for the order. Requires signature. Prices will be recalculated and payment intent updated.`}),customer:F$1({firstName:k$1().meta({examples:[b$1.Customer.firstName],description:`Updated first name of the customer`}).optional(),lastName:k$1().meta({examples:[b$1.Customer.lastName],description:`Updated last name of the customer`}).optional(),email:No().meta({examples:[b$1.Customer.email],description:`Updated email address of the customer`}).optional(),phone:k$1().refine(e=>!e||Fy(e),{message:`Phone must be in E.164 format (e.g., +61412345678)`}).meta({examples:[b$1.Customer.phone],description:`Updated phone number in E.164 format (e.g., +61412345678)`}).optional(),deliveryMethod:zh.optional()}).optional().meta({description:`Updated customer information for the order. All fields are optional for partial updates.`}),marketingConsent:ch.optional().meta({description:`Marketing opt-in choices captured during checkout.`})}),Ly=F$1({id:k$1().meta({examples:[b$1.Order.id],description:`Unique identifier of the order`}),noteId:k$1().meta({examples:[`tl_1234567890_abc123`],description:`Unique identifier of the timeline note to update`}),note:k$1().min(1).max(1e3).meta({examples:[`Updated: Customer confirmed special seating arrangements`],description:`Updated note text content (1-1000 characters)`})});var Ry={create:v$1.route({method:`POST`,path:`/orders/{id}/notes`,summary:`Add note to order timeline (promoter only)`,description:`Add a user note to the order timeline. Note will be marked as editable by the author.`,tags:[`Orders`]}).input(Fh.strict()).output(dg),update:v$1.route({method:`PATCH`,path:`/orders/{id}/notes/{noteId}`,summary:`Update timeline note (author only)`,description:`Update a timeline note. Only the author can edit their own notes. System-generated entries cannot be edited.`,tags:[`Orders`]}).input(Ly.strict()).output(dg),remove:v$1.route({method:`DELETE`,path:`/orders/{id}/notes/{noteId}`,summary:`Delete timeline note (author only)`,description:`Delete a timeline note. Only the author can delete their own notes. System-generated entries cannot be deleted.`,tags:[`Orders`]}).input(Rh.strict()).output(ds())};const zy=v$1.route({method:`GET`,path:`/orders/{id}`,summary:`Get order by ID`,tags:[`Orders`]}).input(Vh.strict()).output(dg),By=v$1.route({method:`GET`,path:`/orders`,summary:`List orders with cursor-based pagination`,description:"Returns order data with cursor-based pagination, optional full-text search via `query`, and deterministic created-at sorting.",tags:[`Orders`]}).input(eg.strict()).output(tg),Vy=v$1.route({method:`POST`,path:`/orders/quote`,summary:`Create order quote`,tags:[`Orders`]}).input(rg.strict()).output(ig);var Hy={get:zy,list:By,create:v$1.route({method:`POST`,path:`/orders`,summary:`Create a new order`,tags:[`Orders`]}).input(Lh.strict()).output(dg),update:v$1.route({method:`PUT`,path:`/orders/{id}`,summary:`Update an order`,tags:[`Orders`]}).input(Iy.strict()).output(dg),reserve:v$1.route({method:`POST`,path:`/orders/{id}/reserve`,summary:`Re-reserve inventory for an abandoned order`,description:`Attempts to re-reserve inventory for an abandoned order. If inventory is available, the order status is set back to PENDING with a new reservation timer. Returns the updated order with a new reservedAt timestamp if successful.`,tags:[`Orders`]}).input(lg.strict()).output(dg),quote:Vy,resend:v$1.route({method:`POST`,path:`/orders/{id}/resend`,summary:`Resend tickets to customer`,description:`Resend order tickets to the customer's email. Optionally provide a different email address.`,tags:[`Orders`]}).input(cg.strict()).output(dg),refund:v$1.route({method:`POST`,path:`/orders/{id}/refund`,summary:`Refund order items`,description:`Process a refund for order items. Supports full or partial refunds with optional ticket cancellation.`,tags:[`Orders`]}).input(og.strict()).output(sg),note:Ry};F$1({success:N$1().meta({description:`Whether the payout approval was successful`}),message:k$1().optional().meta({description:`Optional message about the approval result`}),payoutId:k$1().meta({description:`ID of the payout that was approved`})});const Wy=F$1({payoutId:k$1().meta({examples:[b$1.Payout.id],description:`Unique identifier of the payout for which to retrieve the detailed breakdown of orders and financial calculations.`})}),Gy=F$1({id:k$1().readonly().meta({examples:[b$1.PayoutDeduction.id],description:`Unique identifier for this deduction record.`}),createdAt:D$1().readonly().meta({examples:[b$1.PayoutDeduction.createdAt],description:`Timestamp in ISO 8601 format when this deduction was created.`}),updatedAt:D$1().readonly().meta({examples:[b$1.PayoutDeduction.updatedAt],description:`Timestamp in ISO 8601 format when this deduction was last updated.`}),amount:M$1().min(0).meta({examples:[b$1.PayoutDeduction.amount],description:`Deduction amount in cents. Positive values represent money being deducted from the payout.`}),currency:R$1.meta({examples:[b$1.PayoutDeduction.currency],description:`Currency code in ISO 4217 format for the deduction amount.`}),description:k$1().meta({examples:[b$1.PayoutDeduction.description],description:`Human-readable description explaining the reason for this deduction (e.g., 'Minimum bar spend not met', 'Venue damage charge').`}),gateway:k$1().meta({examples:[b$1.PayoutDeduction.gateway],description:`Payment gateway identifier where this deduction was processed.`}),gatewayId:k$1().meta({examples:[b$1.PayoutDeduction.gatewayId],description:`Unique identifier assigned by the payment gateway for this deduction transaction.`}),beneficiary:k$1().meta({examples:[b$1.PayoutDeduction.beneficiary],description:`Human-readable name of the beneficiary account from which this deduction was taken.`}),beneficiaryId:k$1().meta({examples:[b$1.PayoutDeduction.beneficiaryId],description:`Unique identifier of the beneficiary account from which this deduction was taken.`}),transferId:k$1().optional().meta({description:`Optional reference to a transfer record when this deduction results in money being moved to a future payout.`}),transferPayoutId:k$1().optional().meta({description:`Optional reference to a future payout where the deducted amount will be applied.`})}),Ky=F$1({id:k$1().meta({examples:[b$1.Event.id],description:`Unique identifier for the event associated with this payout.`}),name:k$1().meta({examples:[b$1.Event.name],description:`Human-readable name of the event.`}),slug:k$1().meta({examples:[b$1.Event.slug],description:`URL-friendly slug identifier for the event.`}),location:k$1().optional().meta({examples:[b$1.Event.location.name],description:`Optional human-readable location name where the event takes place.`})}),qy=F$1({net:M$1().meta({examples:[b$1.Payout.price.net],description:`Total amount to pay to promoter.
|
|
47
|
+
Calculated as: total + booking + refunded + dispute + deductions`}),total:M$1().meta({examples:[b$1.Payout.price.total],description:`Total amount the collected in ticket revenue.
|
|
48
|
+
Calculated as: gross + discount`}),gross:M$1().min(0).meta({examples:[b$1.Payout.price.gross],description:`Total amount before refunds, disputes, deductions and discounts.
|
|
49
|
+
Calculated as: base + booking + shipping`}),base:M$1().min(0).meta({examples:[b$1.Payout.price.base],description:`Total value of tickets.`}),booking:M$1().min(0).meta({examples:[b$1.Payout.price.booking],description:`Total value of booking fees (non-refundable).`}),shipping:M$1().min(0).meta({examples:[b$1.Payout.price.shipping],description:`Total value of shipping.`}),sms:M$1().min(0).default(0).meta({examples:[b$1.Payout.price.sms],description:`Total SMS delivery fees collected in cents (owed to Session Services, not the event organiser).`}),refunded:M$1().max(0).meta({examples:[b$1.Payout.price.refunded],description:`Total value of refunds (negative value).`}),discount:M$1().max(0).meta({examples:[b$1.Payout.price.discount],description:`Total value of discounts (negative value).`}),gateway:M$1().max(0).meta({examples:[b$1.Payout.price.gateway],description:`Total value of absorbed payment gateway fees (negative value).`}),dispute:M$1().max(0).meta({examples:[b$1.Payout.price.dispute],description:`Total value of non-absorbed payment gateway fees (negative value).`}),deductions:M$1().max(0).meta({examples:[b$1.Payout.price.deductions],description:`Total value of deductions for when money is owed (negative value).`}),currency:R$1.meta({examples:[b$1.Payout.price.currency],description:`Currency code in ISO 4217 format.`})}),Jy=I$1([`CREATED`,`APPROVED`,`REJECTED`,`PROCESSING`,`PAID`,`FAILED`,`CANCELLED`,`NOTE`]),Yy=kh(Jy,{createdAtExamples:[b$1.Payout.createdAt],descriptionExamples:[`Payout was created after event settlement`],externalIdDescription:`External idempotency key for deduplication (e.g., Airwallex transfer events)`,externalIdExamples:[`airwallex:transfer_abc123:completed`],idDescription:`Unique identifier for this timeline entry`,idExamples:[`tl_01jgxyz123abc`],kindDescription:`Type of timeline event (CREATED, APPROVED, PROCESSING, PAID, NOTE, etc.)`,kindExamples:[`CREATED`,`APPROVED`,`PAID`]}),Xy=F$1({id:k$1().meta({examples:[b$1.PayoutTransfer.id],description:`Unique identifier for this transfer record.`}),createdAt:D$1().meta({examples:[b$1.PayoutTransfer.createdAt],description:`Timestamp in ISO 8601 format when this transfer was created.`}),kind:I$1([`TICKETS`,`TENANT`,`VENUE`,`TEAM`,`SESSIONS`,`UNKNOWN`]).meta({examples:[`TICKETS`],description:`Type of transfer. TICKETS: revenue from ticket sales, TENANT: platform fees, VENUE: venue split, TEAM: team split, SESSIONS: platform commission, UNKNOWN: unclassified transfer.`}),amount:M$1().min(0).meta({examples:[b$1.PayoutTransfer.amount],description:`Transfer amount in cents. Positive values represent money being transferred to the beneficiary.`}),currency:R$1.meta({examples:[b$1.PayoutTransfer.currency],description:`Currency code in ISO 4217 format for the transfer amount.`}),fee:M$1().min(0).meta({examples:[b$1.PayoutTransfer.fee],description:`Gateway processing fee for this transfer in cents. This fee is deducted from the transfer amount.`}),feeCurrency:R$1.meta({examples:[b$1.PayoutTransfer.feeCurrency],description:`Currency code in ISO 4217 format for the gateway fee.`}),reference:k$1().meta({examples:[b$1.PayoutTransfer.reference],description:`External reference identifier for tracking this transfer with the payment gateway.`}),gateway:I$1([`AIRWALLEX`,`STRIPE`]).meta({examples:[`AIRWALLEX`],description:`Payment gateway used to process this transfer.`}),gatewayId:k$1().meta({examples:[b$1.PayoutTransfer.gatewayId],description:`Unique identifier assigned by the payment gateway for this transfer.`}),beneficiary:k$1().meta({examples:[b$1.PayoutTransfer.beneficiary],description:`Human-readable name of the beneficiary receiving this transfer.`}),beneficiaryId:k$1().meta({examples:[b$1.PayoutTransfer.beneficiaryId],description:`Unique identifier of the beneficiary account receiving this transfer.`}),status:k$1().optional().meta({examples:[`SCHEDULED`],description:`Transfer status from the payment gateway (e.g. SCHEDULED, IN_PROGRESS, COMPLETED).`}),settlementAmount:M$1().min(0).optional().meta({examples:[3550],description:`Amount received by the beneficiary in their local currency, in cents. Present only for cross-currency transfers where the settlement currency differs from the source currency.`}),settlementCurrency:R$1.optional().meta({examples:[`USD`],description:`Currency code in ISO 4217 format for the settlement amount. Present only for cross-currency transfers.`}),deductionId:k$1().optional().meta({description:`Optional reference to a deduction record when this transfer represents money being held back from a previous negative payout.`}),deductionPayoutId:k$1().optional().meta({description:`Optional reference to the payout that originated this transfer when it represents an outstanding balance being carried forward.`})}),Zy=I$1([`UPCOMING`,`FAILED`,`PROCESSING`,`PAID`,`CANCELLED`]),$y=I$1([`AIRWALLEX`,`STRIPE`,`MANUAL`]),tb=I$1([`DAILY`,`WEEKLY`,`AFTER_EVENT`,`ON_DEMAND`]),rb=F$1({id:k$1().readonly().meta({examples:[b$1.Payout.id],description:`A unique identifier for this payout.`}),createdAt:D$1().readonly().meta({examples:[b$1.Payout.createdAt],description:`Timestamp in ISO 8601 format when this payout was created.`}),updatedAt:D$1().readonly().meta({examples:[b$1.Payout.updatedAt],description:`Timestamp in ISO 8601 format when this payout was last updated.`}),paidAt:D$1().optional().meta({examples:[b$1.Payout.paidAt],description:`Timestamp in ISO 8601 format when this payout was completed.`}),dueAt:D$1().optional().meta({examples:[b$1.Payout.createdAt],description:`Earliest timestamp in ISO 8601 format when this payout can be picked up for processing. This is not a guaranteed bank arrival time.`}),status:Zy.meta({examples:[`PAID`],description:`Current payment status of this payout.`}),method:$y.meta({examples:[`MANUAL`],description:`The payout channel used for disbursing funds.`}),approval:$s.meta({examples:[`APPROVED`],description:`Approval status for this payout.`}),frequency:tb.default(`AFTER_EVENT`).meta({examples:[`AFTER_EVENT`],description:`Schedule on which this payout is generated.`}),structure:k$1().meta({examples:[b$1.Payout.structure],description:`Data structure defining how funds are allocated in this payout.`}),transfers:P$1(Xy).meta({description:`List of individual transfer records included in this payout.`}),deductions:P$1(Gy).meta({description:`List of deductions applied before calculating the payout total.`}),price:qy.meta({description:`Summary of amounts for transfers and deductions in this payout.`}),event:Ky.meta({description:`Information about the event associated with this payout.`}),timeline:P$1(Yy).optional().meta({description:`Chronological list of status changes and notes for this payout.`}),eventId:k$1().meta({examples:[b$1.Payout.eventId],description:`Identifier of the event for which this payout was generated.`}),teamId:k$1().meta({description:`Team receiving this payout. BREAKING CHANGE: Replaced promoterId/promoterSlug.`})}).meta({description:`payout`});F$1({id:k$1().meta({examples:[b$1.Payout.id],description:`Unique identifier of the payout to approve for processing.`})});F$1({id:k$1().meta({examples:[b$1.Payout.id],description:`Unique identifier of the payout to reject.`}),reason:k$1().optional().meta({examples:[`Insufficient funds in account`],description:`Optional reason for rejecting the payout. This will be recorded for audit purposes.`})});F$1({id:k$1().meta({examples:[b$1.Payout.id],description:`Unique identifier of the payout to process and initiate transfers.`})});F$1({id:k$1().meta({examples:[b$1.Payout.id],description:`Unique identifier of the payout to retry transfer processing for.`})});const cb=F$1({id:k$1().meta({examples:[b$1.Payout.id],description:`Unique identifier of the payout to add a note to`}),note:k$1().trim().min(1).max(1e3).meta({examples:[`Transfer confirmed via bank statement`],description:`Note text content (1-1000 characters)`})}),lb=F$1({name:k$1(),gateway:I$1([`AIRWALLEX`,`STRIPE`,`FREE`]),message:k$1(),eventIds:P$1(k$1()).optional(),venues:P$1(k$1()).optional(),tenants:P$1(k$1()).optional(),teams:P$1(k$1()).optional(),ticketBeneficiaryTeamId:k$1().optional(),min:j$1().optional(),max:j$1().optional(),percent:j$1().optional(),split:F$1({tenant:j$1(),team:j$1(),venue:j$1(),sessions:j$1()})}),ub=F$1({tenant:j$1().meta({examples:[5e4],description:`Amount allocated to the tenant (platform) in cents. This represents the platform's share of the revenue.`}),venue:j$1().meta({examples:[25e3],description:`Amount allocated to the venue in cents. This represents the venue's share of the revenue from events held at their location.`}),team:j$1().meta({examples:[2e4],description:`Amount allocated to the team in cents. This represents the team's share of the revenue after fees and other deductions.`}),sessions:j$1().meta({examples:[3e3],description:`Amount allocated to Sessions platform commission in cents. This represents the platform's service fees.`}),tickets:j$1().meta({examples:[2e3],description:`Amount allocated to ticketing fees in cents. This represents fees charged for ticket processing and management.`})});F$1({payout:rb.meta({description:`Complete payout record containing all financial details and metadata for calculating beneficiary allocations.`}),feeStructure:lb.meta({description:`Fee structure configuration that defines how revenue is split between different parties (promoter, venue, platform, etc.).`}),split:ub.meta({description:`Calculated split amounts showing how the payout total is divided among the different beneficiaries in cents.`})});const fb=F$1({orders:j$1().meta({examples:[150],description:`Total number of orders included in this payout breakdown.`}),price:yh.meta({description:`Aggregated price information for all orders included in this payout, showing total revenue, fees, and deductions.`}),split:ub.meta({description:`How the total payout amount is split between different beneficiaries (tenant, venue, promoter, etc.) in cents.`}),structure:k$1().meta({examples:[`DEFAULT`],description:`Fee structure identifier that was used to calculate the payout split and allocations.`})}),pb=F$1({total:fb.meta({description:`Summary totals for all orders included in this payout breakdown, including aggregated financial calculations.`}),orders:P$1(F$1({order:Ph.meta({description:`Complete order information including customer details, items, and payment status.`}),price:yh.meta({description:`Settled price information for this specific order, showing final amounts after refunds and adjustments.`}),split:ub.meta({description:`How this individual order's revenue is split between different beneficiaries in cents.`}),structure:k$1().meta({examples:[`DEFAULT`],description:`Fee structure identifier used to calculate the split for this order.`})})).meta({description:`Detailed breakdown of individual orders included in this payout, showing how each order contributes to the total.`})});rb.pick({id:true,eventId:true}).extend({id:k$1().meta({examples:[b$1.Payout.id],description:`Unique identifier of the payout for which to retrieve the detailed breakdown.`}),eventId:k$1().meta({examples:[b$1.Event.id],description:`Unique identifier of the event associated with the payout breakdown.`})});rb.pick({eventId:true,teamId:true,method:true,frequency:true}).partial({method:true,frequency:true}).meta({description:`Schema for creating a new payout record`}).extend({eventId:k$1().meta({examples:[b$1.Event.id],description:`Unique identifier of the event for which the payout is being created`}),teamId:k$1().meta({examples:[`tem_01jqpjksnsen9vprw95et60t2m`],description:`Unique identifier of the team who will receive the payout`}),method:I$1([`AIRWALLEX`,`STRIPE`,`MANUAL`]).optional().meta({examples:[`AIRWALLEX`],description:`Optional payment method for the payout. Defaults to promoter's preferred method if not specified`}),frequency:I$1([`DAILY`,`WEEKLY`,`AFTER_EVENT`]).optional().meta({examples:[`AFTER_EVENT`],description:`Optional payout frequency. Defaults to 'AFTER_EVENT' if not specified`})});const gb=F$1({id:k$1().meta({examples:[b$1.Payout.id],description:`Unique identifier of the payout`}),noteId:k$1().meta({examples:[`tl_1234567890_abc123`],description:`Unique identifier of the timeline note to delete`})}),_b=rb.pick({id:true}).extend({id:k$1().meta({examples:[b$1.Payout.id],description:`Unique identifier of the payout to retrieve.`})}),vb=F$1({mine:N$1().optional().meta({examples:[true],description:"When true, returns payouts from teams where the authenticated user has payout access (for example, `payout.read` or `payout.write`)."}),teamId:k$1().optional().meta({description:`Filter payouts by specific team unique identifier. BREAKING CHANGE: Replaced promoterId filter.`}),eventId:k$1().optional().meta({examples:[b$1.Event.id],description:`Filter payouts by specific event unique identifier. When provided, only returns payouts for this event.`}),status:I$1([`UPCOMING`,`FAILED`,`PROCESSING`,`PAID`,`CANCELLED`]).optional().meta({examples:[`PAID`],description:`Filter payouts by payment status. UPCOMING: scheduled but not yet processed, FAILED: failed processing and will retry, PROCESSING: currently being processed, PAID: successfully completed, CANCELLED: cancelled before completion.`}),approval:$s.optional().meta({examples:[`APPROVED`],description:`Filter payouts by approval status. PENDING: awaiting approval, APPROVED: approved for processing, REJECTED: rejected and will not be processed.`}),query:k$1().optional().meta({examples:[`PAID venue:sydney`],description:`Optional search query to filter payouts by text fields. When provided, search-backed pagination is used.`}),limit:U$2(`payouts`).optional(),cursor:k$1().optional().meta({examples:[`eyJpZCI6InBheV8wMWpwczVjZ3NmdjJ3cmU2aGQwcmM0dzR0OCJ9`],description:`Pagination cursor for continuing to fetch subsequent results. Use the cursor from the previous response to continue.`})}).meta({description:`Schema for listing payouts with optional filtering, search, and cursor-based pagination`}),yb=G$2(rb,`payouts`),bb=I$1([`VALID`,`FALLBACK`,`MISSING`]),xb=F$1({status:bb.meta({examples:[`VALID`],description:`Resolution status for the beneficiary used by this split. FALLBACK indicates a non-strict match was used, MISSING means no beneficiary is configured.`}),warning:k$1().optional().meta({examples:[`Using fallback beneficiary with matching gateway only.`],description:`Optional warning message shown when fallback or missing beneficiary resolution was required.`}),beneficiary:F$1({id:k$1().optional().meta({examples:[b$1.Beneficiary.id],description:`Identifier for the beneficiary.`}),teamId:k$1().optional().meta({examples:[b$1.Team.id],description:`Team that owns this beneficiary configuration.`}),name:k$1().meta({examples:[b$1.Beneficiary.name],description:`Display name for the resolved beneficiary.`}),gateway:I$1([`AIRWALLEX`,`STRIPE`]).optional().meta({examples:[b$1.Beneficiary.gateway],description:`Payment gateway for this beneficiary when available from configuration.`}),gatewayId:k$1().meta({examples:[b$1.Beneficiary.gatewayId],description:`Gateway-specific beneficiary identifier used for transfer creation.`}),currency:R$1.meta({examples:[b$1.Beneficiary.currency],description:`Currency configured for this beneficiary.`})}).optional()}),Sb=I$1([`tickets`,`tenant`,`venue`,`team`,`sessions`]),Cb=F$1({kind:Sb.meta({examples:[`tickets`],description:`Split component represented by this row.`}),amount:j$1().int().meta({examples:[114500],description:`Amount in cents for this split component.`}),currency:R$1.meta({examples:[b$1.Payout.price.currency],description:`Currency code for this split component.`}),beneficiary:xb}),wb=I$1([`TRACKED`,`N_A`,`SKIPPED`]),Tb=F$1({orders:j$1().int().meta({examples:[12],description:`Number of orders in this settlement bucket.`}),price:yh.meta({description:`Aggregated totals for the orders in this bucket, in the bucket's native currency.`})}),Eb=F$1({state:wb.meta({examples:[`TRACKED`],description:`Whether settlement tracking applies to this payout preview. Non-Airwallex payouts return N_A.`}),settled:Tb.optional().meta({description:`Completed Airwallex orders that already have settlement data available.`}),awaitingSettlement:Tb.optional().meta({description:`Completed Airwallex orders still waiting on settlement ingestion.`})}),Db=F$1({payout:rb.pick({id:true,status:true,approval:true,method:true,frequency:true,structure:true,createdAt:true,dueAt:true,teamId:true,eventId:true,event:true,price:true}).meta({description:`Lightweight payout summary used by approvals and payout queue UIs.`}),rows:P$1(Cb).meta({description:`Non-zero split rows with beneficiary resolution status and warnings.`}),settlementSummary:Eb.meta({description:`Settlement status summary for the payout event. Airwallex payouts expose settled vs awaiting-settlement buckets.`})}),Ob=_b.extend({includeSettlementSummary:N$1().optional().meta({examples:[true],description:`When true, includes the Airwallex settlement summary for the payout preview.`})}),kb=F$1({payout:rb,breakdown:pb}),Ab=Cs(k$1(),Cs(k$1(),F$1({net:j$1(),total:j$1(),gross:j$1(),base:j$1(),booking:j$1(),shipping:j$1(),refunded:j$1(),discount:j$1(),gateway:j$1(),dispute:j$1(),deductions:j$1()}))).meta({description:`Payout statistics grouped by period (current/previous) and currency`,examples:[{current:{USD:{net:1e5,total:12e4,gross:115e3,base:11e4,booking:5e3,shipping:0,refunded:0,discount:5e3,gateway:3e3,dispute:0,deductions:2e3}},previous:{USD:{net:8e4,total:95e3,gross:9e4,base:85e3,booking:5e3,shipping:0,refunded:0,discount:5e3,gateway:2500,dispute:0,deductions:1500}}}]}),jb=F$1({teamId:k$1().optional().meta({description:`Filter stats by team ID`}),startDate:k$1().optional().meta({description:`Start date for stats period (YYYY-MM-DD)`}),endDate:k$1().optional().meta({description:`End date for stats period (YYYY-MM-DD)`})}),Mb=rb.pick({id:true}).merge(rb.pick({status:true,approval:true}).partial()).extend({id:k$1().meta({examples:[b$1.Payout.id],description:`Unique identifier of the payout to update.`}),status:I$1([`CANCELLED`]).optional().meta({examples:[`CANCELLED`],description:`Optional new payment status for the payout. Only CANCELLED is allowed for manual updates.`}),approval:$s.optional().meta({examples:[`APPROVED`],description:`Optional new approval status for the payout. PENDING: awaiting approval, APPROVED: approved for processing, REJECTED: rejected.`})}),Nb=F$1({id:k$1().meta({examples:[b$1.Payout.id],description:`Unique identifier of the payout`}),noteId:k$1().meta({examples:[`tl_1234567890_abc123`],description:`Unique identifier of the timeline note to update`}),note:k$1().trim().min(1).max(1e3).meta({examples:[`Updated: Transfer confirmed - reference #12345`],description:`Updated note text content (1-1000 characters)`})}),Pb=F$1({payout:rb});var Fb={create:v$1.route({method:`POST`,path:`/payouts/{id}/notes`,summary:"Add note to payout timeline (`payout.write` required)",description:`Add a user note to the payout timeline. Note will be marked as editable by the author.`,tags:[`Payouts`]}).input(cb.strict()).output(Pb),update:v$1.route({method:`PATCH`,path:`/payouts/{id}/notes/{noteId}`,summary:`Update timeline note (author only)`,description:`Update a timeline note. Only the author can edit their own notes. System-generated entries cannot be edited.`,tags:[`Payouts`]}).input(Nb.strict()).output(Pb),remove:v$1.route({method:`DELETE`,path:`/payouts/{id}/notes/{noteId}`,summary:`Delete timeline note (author only)`,description:`Delete a timeline note. Only the author can delete their own notes. System-generated entries cannot be deleted.`,tags:[`Payouts`]}).input(gb.strict()).output(Pb)},Ib={get:v$1.route({method:`GET`,path:`/payouts/{id}`,summary:`Get payout by ID with breakdown`,tags:[`Payouts`]}).input(_b.strict()).output(kb),list:v$1.route({method:`GET`,path:`/payouts`,summary:`List payouts with cursor-based pagination`,description:"Returns payout data with cursor-based pagination and optional full-text search via the `query` parameter.",tags:[`Payouts`]}).input(vb.strict()).output(yb),preview:v$1.route({method:`GET`,path:`/payouts/{id}/preview`,summary:`Get payout preview for approvals`,description:`Returns lightweight payout split rows and beneficiary resolution status used by approvals dropdowns.`,tags:[`Payouts`]}).input(Ob.strict()).output(Db),stats:v$1.route({method:`POST`,path:`/payouts/stats`,summary:`Get payout statistics`,tags:[`Payouts`]}).input(jb.strict()).output(Ab),breakdown:v$1.route({method:`GET`,path:`/payouts/{payoutId}/breakdown`,summary:`Get payout breakdown`,tags:[`Payouts`]}).input(Wy.strict()).output(pb),update:v$1.route({method:`PATCH`,path:`/payouts/{id}`,summary:`Update a payout`,description:`Update payout status or approval. Use approval field to approve or reject payouts.`,tags:[`Payouts`]}).input(Mb.strict()).output(rb),note:Fb};const Lb=I$1([`PROMOTER`,`VENUE`]).meta({description:`Type of permission scope. PROMOTER: applies to all events by a specific promoter. VENUE: applies to all events at a specific venue.`}),Rb=F$1({id:k$1().readonly().meta({description:`Unique identifier for the permission scope`}),createdAt:D$1().readonly().meta({description:`Timestamp in ISO 8601 format when the scope was created`}),updatedAt:D$1().readonly().meta({description:`Timestamp in ISO 8601 format when the scope was last updated`}),teamMemberId:k$1().meta({description:`Team member this scope applies to`}),teamId:k$1().meta({description:`Team the member belongs to`}),userId:k$1().meta({description:`ID of the user this permission scope applies to`}),permissions:P$1(il).meta({description:`Scoped permissions. Can be empty array to remove all access. Replaces lower-tier permissions based on kind (VENUE overrides PROMOTER overrides BASE).`}),roleIds:P$1(k$1()).optional().meta({description:`Optional role IDs applied at this scope. Role-derived permissions are merged with explicit scoped nodes.`}),tenantId:k$1().readonly().meta({description:`Tenant identifier`})}),zb=ys(`kind`,[Rb.extend({kind:Es(`PROMOTER`).meta({description:`Scope type: PROMOTER-specific permissions`}),promoterId:k$1().meta({description:`Promoter this scope applies to. Replaces base permissions for all events by this promoter.`})}).meta({description:`PROMOTER-specific permission scope. Applies to all events by the specified promoter.`}),Rb.extend({kind:Es(`VENUE`).meta({description:`Scope type: VENUE-specific permissions`}),venueId:k$1().meta({description:`Venue this scope applies to. Replaces base/promoter permissions for all events at this venue.`})}).meta({description:`VENUE-specific permission scope. Applies to all events at the specified venue.`})]).meta({description:`Permission scope for a team member. Can be PROMOTER-specific (applies to all events by that promoter) or VENUE-specific (applies to all events at that venue). Replaces lower-tier permissions using REPLACE semantics.`}),Bb=F$1({permissions:P$1(il).meta({description:`Scoped permissions. Can be empty array to remove all access. Replaces lower-tier permissions based on kind (VENUE overrides PROMOTER overrides BASE).`}),roleIds:P$1(k$1()).optional().meta({description:`Optional role IDs to apply at this scope.`})}),Vb=ys(`kind`,[Bb.extend({kind:Es(`PROMOTER`).meta({description:`Scope type: PROMOTER-specific permissions`}),promoterId:k$1().meta({description:`Promoter this scope applies to. Replaces base permissions for all events by this promoter.`})}).meta({description:`Create a PROMOTER-specific permission scope. Applies to all events by the specified promoter.`}),Bb.extend({kind:Es(`VENUE`).meta({description:`Scope type: VENUE-specific permissions`}),venueId:k$1().meta({description:`Venue this scope applies to. Replaces base/promoter permissions for all events at this venue.`})}).meta({description:`Create a VENUE-specific permission scope. Applies to all events at the specified venue.`})]).meta({description:`Schema for creating a new permission scope. Must specify kind (PROMOTER or VENUE) and corresponding ID.`}),Hb=F$1({id:wc.meta({description:`Unique identifier for the permission scope`})}).meta({description:`Schema for retrieving a single permission scope by ID`}),Ub=F$1({teamMemberId:k$1().optional().meta({description:`Filter by team member ID`}),userId:k$1().optional().meta({description:`Filter by user ID`}),kind:Lb.optional().meta({description:`Filter by scope kind (PROMOTER or VENUE)`}),promoterId:k$1().optional().meta({description:`Filter by promoter ID (only for kind=PROMOTER scopes)`}),venueId:k$1().optional().meta({description:`Filter by venue ID (only for kind=VENUE scopes)`}),limit:U$2(`permission scopes`),cursor:k$1().optional().meta({description:`Pagination cursor from previous response. Used to fetch next page of results`})}).meta({description:`Query parameters for listing permission scopes with pagination and filtering`}),Wb=G$2(zb,`items`).meta({description:`Paginated response containing permission scopes with cursor for next page`}),Gb=Bb.meta({description:`Schema for updating an existing permission scope. Only permissions array can be modified.`}),Kb=F$1({key:k$1(),memberId:k$1()}),qb=Kb.merge(Hb).strict();var Jb={get:v$1.route({method:`GET`,path:`/teams/{key}/members/{memberId}/permission-scopes/{id}`,summary:`Get permission scope by ID`,description:`Retrieve a permission scope using its unique ID`,tags:[`Permission Scopes`]}).input(qb).output(zb),list:v$1.route({method:`GET`,path:`/teams/{key}/members/{memberId}/permission-scopes`,summary:`List permission scopes with cursor-based pagination`,description:`Returns permission scopes for a specific team member with cursor pagination. Can filter by kind (PROMOTER or VENUE).`,tags:[`Permission Scopes`]}).input(Kb.merge(Ub).strict()).output(Wb),create:v$1.route({method:`POST`,path:`/teams/{key}/members/{memberId}/permission-scopes`,summary:`Create a new permission scope`,description:`Create a permission scope for a team member. Can be PROMOTER-specific (applies to all events by that promoter) or VENUE-specific (applies to all events at that venue). Replaces lower-tier permissions.`,tags:[`Permission Scopes`]}).input(Kb.and(Vb)).output(zb),update:v$1.route({method:`PATCH`,path:`/teams/{key}/members/{memberId}/permission-scopes/{id}`,summary:`Update a permission scope`,description:`Update an existing permission scope. Only the permissions array can be modified.`,tags:[`Permission Scopes`]}).input(Kb.extend({id:k$1()}).merge(Gb).strict()).output(zb),remove:v$1.route({method:`DELETE`,path:`/teams/{key}/members/{memberId}/permission-scopes/{id}`,summary:`Delete a permission scope`,description:`Remove a permission scope. Team member will revert to lower-tier permissions for the affected resource.`,tags:[`Permission Scopes`]}).input(qb).output(zb)};const Yb=F$1({id:Tc.meta({description:`Permission role ID`}),teamId:sc.meta({description:`Team that owns this role`}),name:k$1().min(1).meta({description:`Role display name`}),description:k$1().optional().meta({description:`Optional role description`}),permissions:ol.meta({description:`Permission nodes granted by this role`}),createdAt:D$1().meta({description:`Timestamp in ISO 8601 format when the role was created`}),updatedAt:D$1().meta({description:`Timestamp in ISO 8601 format when the role was last updated`})}).meta({description:`Team-scoped permission role`}),Xb=F$1({role:Yb}),Zb=F$1({roles:P$1(Yb)}),Qb=F$1({key:k$1().meta({description:`Team identifier (ID or slug)`})}),$b=F$1({key:k$1().meta({description:`Team identifier (ID or slug)`}),roleId:Tc}),ex=F$1({key:k$1().meta({description:`Team identifier (ID or slug)`}),name:k$1().min(1).meta({description:`Role display name`}),description:k$1().optional().meta({description:`Optional role description`}),permissions:ol}),tx=F$1({key:k$1().meta({description:`Team identifier (ID or slug)`}),roleId:Tc,name:k$1().min(1).meta({description:`Role display name`}),description:k$1().optional().meta({description:`Optional role description`}),permissions:ol}),nx=F$1({memberId:xc,permissions:P$1(il),updatedAt:D$1()}),rx=F$1({member:nx}),ix=F$1({key:k$1().meta({description:`Team identifier (ID or slug)`}),memberId:xc}),ax=F$1({key:k$1().meta({description:`Team identifier (ID or slug)`}),memberId:xc,permissions:P$1(il).meta({description:`Direct permission nodes for this member. Full-replace semantics; use an empty array to remove all direct grants.`})}),ox=F$1({memberId:xc,roleIds:P$1(Tc).meta({description:`Role IDs assigned to this member`}),updatedAt:D$1()}),sx=F$1({member:ox}),cx=F$1({key:k$1().meta({description:`Team identifier (ID or slug)`}),memberId:xc}),lx=F$1({key:k$1().meta({description:`Team identifier (ID or slug)`}),memberId:xc,roleIds:P$1(Tc)}),ux=F$1({direct:P$1(k$1()),fromRoles:P$1(k$1()),effective:P$1(k$1()),denied:P$1(k$1())});F$1({memberId:xc,permissions:ux});F$1({key:k$1().meta({description:`Team identifier (ID or slug)`}),memberId:xc,domain:k$1().optional().meta({description:`Optional domain filter (for example: ticket, event)`}),action:k$1().optional().meta({description:`Optional action filter (for example: read, write, scan)`}),resourceId:k$1().optional().meta({description:`Optional resource ID filter`})});const mx=v$1.route({method:`GET`,path:`/teams/{key}/roles`,summary:`List team roles`,description:`Returns all roles configured for a team.`,tags:[`Permissions`]}).input(Qb.strict()).output(Zb),hx=v$1.route({method:`POST`,path:`/teams/{key}/roles`,summary:`Create team role`,description:`Creates a team-scoped permission role.`,tags:[`Permissions`]}).input(ex.strict()).output(Xb),gx=v$1.route({method:`GET`,path:`/teams/{key}/roles/{roleId}`,summary:`Get team role`,description:`Retrieves a team role by ID.`,tags:[`Permissions`]}).input($b.strict()).output(Xb),_x=v$1.route({method:`PUT`,path:`/teams/{key}/roles/{roleId}`,summary:`Replace team role`,description:`Full-replace, idempotent update for role name, description, and permissions.`,tags:[`Permissions`]}).input(tx.strict()).output(Xb),vx=v$1.route({method:`DELETE`,path:`/teams/{key}/roles/{roleId}`,summary:`Delete team role`,description:`Deletes a team role.`,tags:[`Permissions`]}).input($b.strict()).output(Xb),yx=v$1.route({method:`GET`,path:`/teams/{key}/members/{memberId}/permissions`,summary:`Get member direct permissions`,description:`Returns direct permission nodes assigned to a member.`,tags:[`Permissions`]}).input(ix.strict()).output(rx),bx=v$1.route({method:`PUT`,path:`/teams/{key}/members/{memberId}/permissions`,summary:`Replace member direct permissions`,description:`Full-replace, idempotent update for direct permission nodes assigned to a member.`,tags:[`Permissions`]}).input(ax.strict()).output(rx),xx=v$1.route({method:`GET`,path:`/teams/{key}/members/{memberId}/roles`,summary:`Get member role assignments`,description:`Returns role IDs assigned to a member.`,tags:[`Permissions`]}).input(cx.strict()).output(sx),Sx=v$1.route({method:`PUT`,path:`/teams/{key}/members/{memberId}/roles`,summary:`Replace member role assignments`,description:`Full-replace, idempotent update for role assignments on a member.`,tags:[`Permissions`]}).input(lx.strict()).output(sx);var Cx={roles:{list:mx,create:hx,get:gx,update:_x,remove:vx},members:{permissions:{get:yx,replace:bx},roles:{get:xx,replace:Sx}}};const wx=F$1({key:k$1().min(1).meta({description:`Promoter key - either a unique ID (pmt_xxx format) or URL-friendly slug`,examples:[b$1.Promoter.id,b$1.Promoter.slug]})}).meta({description:`Request schema for retrieving a promoter by either its unique ID or slug`});Rp.pick({slug:true});const Ex=Rp.omit({id:true,createdAt:true,updatedAt:true,geohash:true,approval:true,location:true}).extend({teamId:k$1().meta({examples:[`tem_01jqpjksnsen9vprw95et60t2m`],description:`ID of the team that will own this promoter. User must be a member of this team.`}),slug:k$1().min(3).max(30).optional().meta({examples:[b$1.Promoter.slug],description:`URL-friendly slug for the promoter organization. If not provided, will be automatically generated from the name. Must be unique and between 3 and 30 characters`}),...Uh}).refine(Wh,{message:Hh}).meta({description:`Schema for creating a new promoter organization. The system automatically generates the ID, tenant association, geohash, and timestamps`}),Dx=F$1({key:k$1().min(1).meta({description:`Promoter key - either a unique ID (pmt_xxx format) or URL-friendly slug`,examples:[b$1.Promoter.id,b$1.Promoter.slug]})}).meta({description:`Schema for removing (soft deleting) a promoter organization by key (ID or slug)`});Rp.pick({id:true}).meta({description:`Schema for retrieving a specific promoter by ID`});const kx=e=>{if(e!=null)return typeof e==`string`?Ax(e):e};function Ax(e){let t=e.trim();if(t.length===0)return;let n=Number(t);return Number.isNaN(n)?e:n}const jx=F$1({teamId:k$1().optional().meta({description:`Filter promoters to only those belonging to a specific team`}),approval:$s.optional().meta({examples:[b$1.Promoter.approval],description:`Filter promoters by approval status. PENDING: awaiting review, APPROVED: can create events, REJECTED: cannot operate`}),query:k$1().optional().meta({examples:[`Session Services`],description:`Optional search query. When provided, results are fetched from search with unified cursor pagination.`}),latitude:L$1().min(-90).max(90).optional().meta({examples:[b$1.Promoter.location.latitude],description:`Latitude used with longitude and radius to filter promoters by proximity when searching.`}),longitude:L$1().min(-180).max(180).optional().meta({examples:[b$1.Promoter.location.longitude],description:`Longitude used with latitude and radius to filter promoters by proximity when searching.`}),radius:L$1().optional().meta({examples:[50],description:`Search radius in kilometers applied when latitude and longitude are provided.`}),mine:Qs().optional().meta({examples:[true],description:`When true, limits results to promoters from teams the current user belongs to. When combined with teamId, returns only that team's promoters (bypassing tenant-wide admin scope).`}),limit:(()=>Xs(kx,j$1().min(1).max(100).prefault(20)).meta({examples:[20],description:`Maximum number of promoters to return (1-100, defaults to 20)`}))().optional(),cursor:k$1().optional().meta({examples:[`eyJpZCI6InByb18wMWpxcGprc25zZW45dnBydzk1ZXQ2MHQybSJ9`],description:`Opaque cursor for pagination. Use the cursor from the previous response to continue fetching results.`})}).meta({description:`Schema for listing promoters with optional filtering by team, full-text search, and cursor pagination`}),Mx=G$2(Rp,`promoters`),Nx=F$1({promoter:Rp}),Px=Rp.omit({createdAt:true,updatedAt:true,id:true,location:true}).partial().extend({key:k$1().min(1).meta({description:`Promoter key - either a unique ID (pmt_xxx format) or URL-friendly slug`,examples:[b$1.Promoter.id,b$1.Promoter.slug]}),locationId:lc.optional().meta({examples:[`loc_01jqpjksnsen9vprw95et60t2m`],description:`ID of an existing location to update to. Either locationId or googlePlaceId can be provided.`}),googlePlaceId:k$1().optional().meta({examples:[`ChIJN1t_tDeuEmsRUsoyG83frY4`],description:`Google Place ID to update location from. Either locationId or googlePlaceId can be provided.`}),image:V$1.nullable().optional().meta({description:`Promoter image. Pass null to clear; omit to leave unchanged.`,examples:[b$1.Promoter.image,null]}),tracking:F$1({fbId:k$1().optional(),gtmId:k$1().optional(),tikTokId:k$1().optional()}).nullable().optional().meta({description:`Analytics tracking config. Pass null to clear all tracking; omit to leave unchanged.`})}).meta({description:`Schema for updating an existing promoter.`});var Fx={summary:v$1.route({method:`GET`,path:`/promoters/{promoterId}/performance/summary`,summary:`Get promoter performance summary`,description:`Overview KPIs for a single promoter based on tracking data (excludes entity-based data like payouts)`,tags:[`Promoter Performance`]}).input(xd).output(Sd),revenue:v$1.route({method:`GET`,path:`/promoters/{promoterId}/performance/revenue`,summary:`Get promoter revenue over time`,description:`Time-series data for revenue and tickets sold for a single promoter`,tags:[`Promoter Performance`]}).input(Cd).output(wd),events:v$1.route({method:`GET`,path:`/promoters/{promoterId}/performance/events`,summary:`Get promoter top events by tickets`,description:`Top events by ticket count for a single promoter`,tags:[`Promoter Performance`]}).input(Td).output(Ed)};const Ix=v$1.route({method:`GET`,path:`/promoters/{key}`,summary:`Get promoter by ID or slug`,description:`Retrieve a promoter using either its unique ID or URL-friendly slug`,tags:[`Promoters`]}).input(wx.strict()).output(Nx),Lx=v$1.route({method:`POST`,path:`/promoters`,summary:`Create a new promoter`,description:`Create a new promoter brand within a team`,tags:[`Promoters`]}).input(Ex.strict()).output(Nx),Rx=v$1.route({method:`PUT`,path:`/promoters/{key}`,summary:`Update a promoter`,description:`Update a promoter using either its unique ID or URL-friendly slug`,tags:[`Promoters`]}).input(Px.strict()).output(Nx);var zx={get:Ix,list:v$1.route({method:`GET`,path:`/promoters`,summary:`List promoters with cursor-based pagination`,description:`Returns promoters with cursor pagination. Filter by teamId to see promoters for a specific team.`,tags:[`Promoters`]}).input(jx.strict()).output(Mx),create:Lx,update:Rx,remove:v$1.route({method:`DELETE`,path:`/promoters/{key}`,summary:`Delete a promoter`,description:`Delete a promoter using either its unique ID or URL-friendly slug`,tags:[`Promoters`]}).input(Dx.strict()).output(Nx),performance:Fx};const Bx=v$1.route({method:`GET`,path:`/events/{eventId}/sections/{id}`,summary:`Get section by ID`,tags:[`Sections`]}).input(qh.strict()).output(Xh),Vx=v$1.route({method:`POST`,path:`/events/{eventId}/sections`,summary:`Create a new section`,tags:[`Sections`]}).input(Gh.strict()).output(Xh),Hx=v$1.route({method:`PUT`,path:`/events/{eventId}/sections/{id}`,summary:`Update a section`,tags:[`Sections`]}).input(Zh.strict()).output(Xh);var Ux={get:Bx,list:v$1.route({method:`GET`,path:`/events/{eventId}/sections`,summary:`List sections`,description:`Returns sections with cursor-based pagination. Automatically uses search-backed pagination when query parameter is provided for full-text search capabilities.`,tags:[`Sections`]}).input(Jh.strict()).output(Yh),create:Vx,update:Hx,remove:v$1.route({method:`DELETE`,path:`/events/{eventId}/sections/{id}`,summary:`Delete a section`,tags:[`Sections`]}).input(Kh.strict()).output(Xh)};const Wx=F$1({key:k$1().meta({description:`Team identifier (ID or slug)`}),inviteId:k$1().meta({description:`Team invite ID to accept`}),token:k$1().meta({description:`Secure token used to accept the team invite. This token must match the one sent in the invitation email.`})}),Gx=F$1({provider:I$1([`STRIPE`,`AIRWALLEX`]).meta({description:`Payment gateway provider type`}),connectedAt:D$1().meta({description:`Timestamp when the payment gateway was connected to this team`}),connectedBy:k$1().meta({description:`User ID of the team member who connected the payment gateway`}),accountId:k$1().meta({description:`Connected account ID. For Stripe: acct_xxxxx. For Airwallex: business account open ID.`})}).meta({description:`Payment gateway configuration for direct payouts to the team's connected account`}),Kx=F$1({id:sc.readonly().meta({description:`Unique identifier for the team organization`}),createdAt:D$1().readonly().meta({description:`Timestamp in ISO 8601 format when the team was created`}),updatedAt:D$1().readonly().meta({description:`Timestamp in ISO 8601 format when the team was last updated`}),name:k$1().min(3).max(30).meta({description:`Display name of the team organization. Must be between 3 and 30 characters`}),slug:k$1().min(3).max(30).meta({description:`URL-friendly slug for the team organization. Must be unique within tenant and between 3 and 30 characters`}),supportEmail:k$1().email().optional().meta({description:`Support email address for customer inquiries. Used as reply-to address in order confirmation emails`}),publicBaseUrl:Lo().optional().meta({description:`Optional public website base URL for team-owned event and order links. When present, it overrides the tenant public base URL.`,examples:[`https://sash.net.au`]}),image:V$1.optional().meta({description:`Team image with dimensions and alt text for branding across the platform`}),metadata:Mc,approval:$s.meta({description:`Approval status of the team. PENDING: awaiting review, APPROVED: can create promoters/venues/events, REJECTED: cannot operate`}),deletedAt:D$1().optional().readonly().meta({description:`Timestamp in ISO 8601 format when the team was soft deleted. Only present for deleted teams.`}),tenantId:k$1().readonly().meta({description:`Tenant ID for multi-tenant isolation`}),isAdmin:N$1().optional().meta({description:`Whether this team is the admin team for the tenant`}),gateway:Gx.optional().meta({description:`Connected payment gateway for direct payouts. When connected, funds from ticket sales go directly to the team's account with platform fees deducted.`})}).meta({description:`Team organization that owns promoters and venues. Multiple brands can exist under one team.`});Kx.extend({promoter:Rp.meta({description:`The primary promoter brand associated with this team`})}).meta({description:`Team organization with its primary promoter brand included for convenience`});const Jx=Kx.extend({member:F$1({id:xc.meta({description:`Current user's team member identifier for this team`}),permissions:al$1.meta({description:`Permissions the current user has for this team. Controls access to team resources.`,examples:[[],[`team.read`,`team.write`],[`team.member.read`,`team.member.write`],[`ticket.scan`],[`*`]]}),isOwner:N$1().meta({description:`Whether the current user is the owner of this team. Owners have full control.`})}).optional().meta({description:`Current user's membership details for this team. Present when user is a member.`})}).meta({description:`Team organization with the current user's membership details`}),Yx=F$1({key:k$1().min(1).meta({description:`Team key - either a unique ID (tem_xxx format) or URL-friendly slug`,examples:[b$1.Team.id,b$1.Team.slug]})}).meta({description:`Request schema for retrieving a team by either its unique ID or slug`}),Xx=Kx.omit({id:true,tenantId:true,createdAt:true,updatedAt:true,deletedAt:true}).extend({slug:k$1().min(3).max(30).optional().meta({description:`URL-friendly slug for the team organization. If not provided, will be automatically generated from the name. Must be unique within tenant and between 3 and 30 characters`}),approval:Kx.shape.approval.optional().meta({description:`Approval status of the team. Defaults to PENDING if not specified.`})}).meta({description:`Schema for creating a new team organization. The system automatically generates the ID, tenant association, and timestamps`});F$1({id:sc.meta({description:`Team ID to delete`})});F$1({id:sc.meta({description:`Team ID to retrieve`})});const $x=F$1({id:Sc.readonly().meta({description:`Unique identifier for the team invitation`}),createdAt:D$1().readonly().meta({description:`Timestamp in ISO 8601 format when the invitation was created`}),updatedAt:D$1().readonly().meta({description:`Timestamp in ISO 8601 format when the invitation was last updated`}),teamId:sc.meta({description:`Team this invitation is for`}),email:No().meta({description:`Email address of the invited user. Used for sending invitation.`}),permissions:P$1(il).meta({description:`Permissions the user will receive upon accepting the invitation. Can be overridden per promoter or venue.`,examples:[[],[`event.read`,`event.write`,`order.read`],[`team.member.read`,`team.member.write`],[`ticket.scan`],[`*`]]}),roleIds:P$1(k$1()).optional().meta({description:`Role IDs assigned on invite acceptance. Effective permissions are role + explicit nodes.`}),token:k$1().readonly().meta({description:`Secure token for invite acceptance. Required to accept the invitation.`}),expiresAt:j$1().int().positive().meta({description:`Unix timestamp (seconds) for DynamoDB TTL. Invitation will be automatically deleted after 7 days.`}),invitedBy:uc.meta({description:`User ID who sent the invitation`}),tenantId:k$1().readonly().meta({description:`Tenant ID for multi-tenant isolation`})}).meta({description:`Pending team invitation. Automatically deleted after 7 days via DynamoDB TTL. When accepted, creates a TeamMember record and deletes the invitation.`}),eS=F$1({key:k$1().meta({description:`Team identifier (ID or slug)`}),inviteId:k$1().meta({description:`Team invite ID to cancel`})}),tS=F$1({key:k$1().meta({description:`Team identifier (ID or slug)`}),email:No().meta({description:`Email address of the user to invite`}),roleIds:P$1(k$1()).min(1).meta({description:`Role IDs to grant to the invited user.`})}),nS=F$1({key:k$1().meta({description:`Team identifier (ID or slug)`}),inviteId:Sc.meta({description:`Team invite ID to retrieve`})}),rS=F$1({key:k$1().meta({description:`Team identifier (ID or slug)`}),query:k$1().optional().meta({description:`Search query to filter invitations by email. Case-insensitive partial match`}),limit:j$1().int().min(1).max(100).default(20).optional().meta({description:`Maximum number of invitations to return per page`}),cursor:k$1().optional().meta({description:`Pagination cursor for fetching the next page`})}),iS=G$2($x,`invites`),aS=F$1({invite:$x}),oS=F$1({userId:uc.optional().meta({description:`Filter teams by user membership. If omitted, returns all teams (tenant admin only). If provided, returns teams where the specified user is a member`}),approval:$s.optional().meta({description:`Filter teams by approval status. PENDING: awaiting review, APPROVED: can operate, REJECTED: cannot operate`}),query:k$1().optional().meta({description:`Optional search query for filtering teams by name or slug`}),limit:U$2(`teams`),cursor:k$1().optional().meta({description:`Pagination cursor from previous response. Used to fetch next page of results`})}).meta({description:`Query parameters for listing teams with pagination and filtering`}),sS=G$2(Jx,`teams`),cS=I$1([`STRIPE`,`AIRWALLEX`]),lS=F$1({key:k$1().meta({description:`Team identifier (ID or slug)`}),provider:cS.meta({description:`Payment processor to connect`,examples:[`STRIPE`,`AIRWALLEX`]})}),uS=F$1({authorizationUrl:k$1().url().meta({description:`URL to redirect the user to for OAuth authorization. Open in a new window or redirect the current page.`,examples:[`https://connect.stripe.com/oauth/authorize?response_type=code&client_id=ca_xxx&scope=read_write&redirect_uri=...`]})}),dS=F$1({key:k$1().meta({description:`Team identifier (ID or slug)`})}),fS=F$1({team:Jx.extend({isAdmin:N$1().optional().meta({description:`Whether this team is the tenant admin team`})})}),pS=F$1({id:k$1().meta({description:`Role ID`}),teamId:k$1().meta({description:`Team ID this role belongs to`}),key:k$1().meta({description:`Role key`}),name:k$1().meta({description:`Role display name`}),description:k$1().optional().meta({description:`Role description`}),permissions:P$1(k$1()).meta({description:`Permission nodes granted by this role`}),scope:Es(`TEAM`).meta({description:`Role scope`}),isPreset:N$1().meta({description:`Whether this role is a system preset role`})});F$1({roles:P$1(pS)});F$1({key:k$1().meta({description:`Team identifier (ID or slug)`})});const gS=Kx.omit({tenantId:true,createdAt:true,updatedAt:true,id:true}).partial().extend({key:k$1().min(1).meta({description:`Team key - either a unique ID (tem_xxx format) or URL-friendly slug`,examples:[b$1.Team.id,b$1.Team.slug]}),supportEmail:k$1().email().nullable().optional().meta({description:`Support email for customer inquiries. Pass null to clear, omit to leave unchanged.`}),publicBaseUrl:Lo().nullable().optional().meta({description:`Public website base URL for team-owned event and order links. Pass null to clear, omit to leave unchanged.`}),image:V$1.nullable().optional().meta({description:`Team image. Pass null to clear, omit to leave unchanged.`})}).meta({description:`Schema for updating an existing team organization. Pass null to clear optional fields.`});var _S={summary:v$1.route({method:`GET`,path:`/teams/{teamId}/performance/summary`,summary:`Get team performance summary`,description:`Overview KPIs aggregated across all promoters in the team, based on tracking data (excludes entity-based data like payouts)`,tags:[`Team Performance`]}).input(Dd).output(Od),revenue:v$1.route({method:`GET`,path:`/teams/{teamId}/performance/revenue`,summary:`Get team revenue over time`,description:`Time-series data for revenue and tickets sold aggregated across all promoters in the team`,tags:[`Team Performance`]}).input(kd).output(Ad),funnel:v$1.route({method:`GET`,path:`/teams/{teamId}/performance/funnel`,summary:`Get team conversion funnel`,description:`Conversion funnel showing drop-off rates from product view to purchase, aggregated across all events in the team`,tags:[`Team Performance`]}).input(Fd).output(Id),traffic:v$1.route({method:`GET`,path:`/teams/{teamId}/performance/traffic`,summary:`Get team traffic sources`,description:`Traffic source breakdown by campaign, medium, or source, aggregated across all events in the team`,tags:[`Team Performance`]}).input(Vd).output(Hd),events:v$1.route({method:`GET`,path:`/teams/{teamId}/performance/events`,summary:`Get team top events by tickets`,description:`Top events by ticket count, aggregated across all events in the team`,tags:[`Team Performance`]}).input(Nd).output(Pd),admissions:v$1.route({method:`GET`,path:`/teams/{teamId}/performance/admissions`,summary:`Get team top admissions by tickets`,description:`Top admission types by ticket count, aggregated across all events in the team`,tags:[`Team Performance`]}).input(zd).output(Bd),orders:v$1.route({method:`GET`,path:`/teams/{teamId}/performance/orders`,summary:`Get team orders distribution`,description:`Order counts grouped by time breakdown (hour, day of week, day, week, month)`,tags:[`Team Performance`]}).input(Ld).output(Rd),tracking:v$1.route({method:`GET`,path:`/teams/{teamId}/performance/tracking`,summary:`Get team tracking time series`,description:`Time-series tracking data (page views, add to cart, checkout, orders) aggregated at team or tenant level`,tags:[`Team Performance`]}).input(Ud).output(Wd)},vS={get:v$1.route({method:`GET`,path:`/teams/{key}`,summary:`Get team by ID or slug`,description:`Retrieve a team with membership details. User must be a member of the team.`,tags:[`Teams`]}).input(Yx.strict()).output(fS),list:v$1.route({method:`GET`,path:`/teams`,summary:`List teams with cursor-based pagination`,description:`Returns teams the current user has access to with cursor pagination`,tags:[`Teams`]}).input(oS.strict()).output(sS),create:v$1.route({method:`POST`,path:`/teams`,summary:`Create a new team`,description:`Create a new team organization`,tags:[`Teams`]}).input(Xx.strict()).output(fS),update:v$1.route({method:`PATCH`,path:`/teams/{key}`,summary:`Update a team`,description:`Update an existing team by ID or slug`,tags:[`Teams`]}).input(gS.strict()).output(fS),remove:v$1.route({method:`DELETE`,path:`/teams/{key}`,summary:`Delete a team`,description:`Soft delete a team by ID or slug`,tags:[`Teams`]}).input(Yx.strict()).output(fS),performance:_S};const yS=F$1({key:k$1()}),bS=F$1({domain:k$1().nullable()}),xS=F$1({key:k$1(),domain:k$1()}),SS=F$1({key:k$1(),domain:k$1()}),CS=F$1({key:k$1()}),wS=F$1({domain:jm}),TS=F$1({domains:P$1(jm)}),ES=F$1({domain:k$1()});var DS={list:v$1.route({method:`GET`,path:`/teams/{key}/domains`,summary:`List team domains`,tags:[`Team Domains`]}).input(CS.strict()).output(TS),create:v$1.route({method:`POST`,path:`/teams/{key}/domains`,summary:`Create team custom domain`,tags:[`Team Domains`]}).input(xS.strict()).output(wS),get:v$1.route({method:`GET`,path:`/teams/{key}/domains/{domain}`,summary:`Get team domain status`,tags:[`Team Domains`]}).input(SS.strict()).output(wS),remove:v$1.route({method:`DELETE`,path:`/teams/{key}/domains/{domain}`,summary:`Remove team custom domain`,tags:[`Team Domains`]}).input(SS.strict()).output(ES),setPrimary:v$1.route({method:`POST`,path:`/teams/{key}/domains/{domain}/primary`,summary:`Set primary team domain`,tags:[`Team Domains`]}).input(SS.strict()).output(wS),canonical:v$1.route({method:`GET`,path:`/teams/{key}/domains/canonical`,summary:`Get canonical team domain`,tags:[`Team Domains`]}).input(yS.strict()).output(bS)};const OS=F$1({id:xc.readonly().meta({description:`Unique identifier for the team member`}),createdAt:D$1().readonly().meta({description:`Timestamp in ISO 8601 format when the member was created`}),updatedAt:D$1().readonly().meta({description:`Timestamp in ISO 8601 format when the member was last updated`}),teamId:sc.meta({description:`Team this member belongs to`}),userId:uc.meta({description:`User ID of the team member`}),user:F$1({id:uc.meta({description:`Unique identifier of the user`}),email:No().meta({description:`Email address of the user`}),firstName:k$1().meta({description:`First name of the user`}),lastName:k$1().meta({description:`Last name of the user`}),imageUrl:k$1().optional().meta({description:`Profile image URL of the user`})}).meta({description:`Denormalized user details for quick access without additional queries.`}),permissions:P$1(il).optional().meta({description:`Base permissions across the team. Can be overridden per promoter or venue. Undefined means no base permissions (permissions come from PermissionScope only).`,examples:[[`event.read`,`event.write`,`order.read`],[`team.member.read`,`team.member.write`],[`ticket.scan`],[`*`]]}),roleIds:P$1(k$1()).optional().meta({description:`Role IDs assigned to this team member. Effective permissions are derived from role nodes plus explicit permission nodes.`}),isOwner:N$1().meta({description:`Whether this member is the owner of the team. Only one owner per team is allowed. Owner has full control and cannot be deleted.`}),tenantId:k$1().readonly().meta({description:`Tenant ID for multi-tenant isolation`})}).meta({description:`Active team member with base permissions. Permissions can be overridden per promoter or venue. Created when a user accepts an invitation or is directly added to a team.`}),kS=F$1({member:OS});var AS={list:v$1.route({method:`GET`,path:`/teams/{key}/invites`,summary:`List pending team invitations with cursor-based pagination`,description:`Returns pending team invitations for a specific team. Team key can be ID or slug. These are email-based invitations that have not yet been accepted.`,tags:[`Team Invites`]}).input(rS.strict()).output(iS),get:v$1.route({method:`GET`,path:`/teams/{key}/invites/{inviteId}`,summary:`Get pending invitation by ID`,description:`Retrieve a pending team invitation by its ID. Team key can be ID or slug.`,tags:[`Team Invites`]}).input(nS.strict()).output(aS),create:v$1.route({method:`POST`,path:`/teams/{key}/invites`,summary:`Create a team invitation`,description:`Invite a user to join a team by email. Team key can be ID or slug. Creates a pending invitation with a secure token that expires in 7 days. The invited user will receive an email with an acceptance link.`,tags:[`Team Invites`]}).input(tS.strict()).output(aS),accept:v$1.route({method:`PATCH`,path:`/teams/{key}/invites/{inviteId}`,summary:`Accept a team invitation`,description:`Accept a pending team invitation using the secure token. Team key can be ID or slug. This deletes the invitation and creates an active TeamMember record. Returns the newly created team member.`,tags:[`Team Invites`]}).input(Wx.strict()).output(kS),resend:v$1.route({method:`POST`,path:`/teams/{key}/invites/{inviteId}/resend`,summary:`Resend invitation email`,description:`Resend the invitation email with a new token and extended expiry. Team key can be ID or slug. Useful when the original invitation has expired or was not received.`,tags:[`Team Invites`]}).input(nS.strict()).output(aS),cancel:v$1.route({method:`DELETE`,path:`/teams/{key}/invites/{inviteId}`,summary:`Cancel a pending invitation`,description:`Cancel a pending team invitation before it is accepted. Team key can be ID or slug. Deletes the invitation record.`,tags:[`Team Invites`]}).input(eS.strict()).output(aS)},jS={connect:v$1.route({method:`POST`,path:`/teams/{key}/payment/connect`,summary:`Initiate payment processor connection`,description:`Start the OAuth flow to connect a team's payment processor account. Returns an authorization URL to redirect the user to the payment provider's OAuth page. The OAuth callback is handled directly by the payment gateway.`,tags:[`Team Payments`]}).input(lS.strict()).output(uS),disconnect:v$1.route({method:`POST`,path:`/teams/{key}/payment/disconnect`,summary:`Disconnect payment processor`,description:`Remove the payment processor connection from a team. Future ticket sales will use the platform account. Only the team owner can disconnect the payment processor.`,tags:[`Team Payments`]}).input(dS.strict()).output(Kx)};const MS=OS.omit({id:true,tenantId:true,createdAt:true,updatedAt:true,user:true,teamId:true,permissions:true}).extend({key:k$1().meta({description:`Team identifier (ID or slug)`}),roleIds:P$1(k$1()).min(1).meta({description:`Role IDs assigned to this team member.`})}).meta({description:`Schema for adding an existing user to a team. Requires userId of an existing user account.`}),NS=F$1({key:k$1().meta({description:`Team identifier (ID or slug)`}),userId:k$1().meta({description:`User ID of the team member to retrieve`})}),PS=F$1({key:k$1().meta({description:`Team identifier (ID or slug)`}),query:k$1().optional().meta({description:`Search query to filter members by name or email. Case-insensitive partial match`}),limit:U$2(`team members`),cursor:k$1().optional().meta({description:`Pagination cursor from previous response. Used to fetch next page of results`})}).meta({description:`Query parameters for listing active team members with pagination and search`}),FS=G$2(OS,`members`),IS=F$1({key:k$1().meta({description:`Team identifier (ID or slug)`}),newOwnerId:k$1().meta({description:`Team member ID of the new owner. This member must already exist with ACTIVE status.`})}).meta({description:`Schema for transferring team ownership from the current owner to another active team member.`}),LS=F$1({previousOwner:OS.meta({description:"The previous owner (now a regular member with owner-equivalent access, typically via `*`)"}),newOwner:OS.meta({description:`The new owner (now has isOwner: true)`})}).meta({description:`Response payload for team ownership transfer operation`}),RS=F$1({id:k$1().meta({description:`Team member ID to update`}),roleIds:P$1(k$1()).min(1).meta({description:`Replace role assignments for this team member with the provided role IDs.`}),isOwner:N$1().optional().meta({description:`Whether this team member is an owner of the team`})}).meta({description:`Schema for updating team member roles. Cannot update teamId, userId, or owner status.`});const BS=v$1.route({method:`GET`,path:`/teams/{key}/members/{userId}`,summary:`Get team member by user ID`,description:`Retrieve a team member using the team key (ID or slug) and user ID`,tags:[`Team Members`]}).input(NS.strict()).output(kS),VS=v$1.route({method:`GET`,path:`/teams/{key}/members`,summary:`List team members with cursor-based pagination`,description:`Returns active team members for a specific team with cursor pagination. Team key can be ID or slug. For pending invitations, use the team invites endpoint instead.`,tags:[`Team Members`]}).input(PS.strict()).output(FS),HS=v$1.route({method:`POST`,path:`/teams/{key}/members`,summary:`Add an existing user to a team`,description:`Directly add an existing user to a team. Team key can be ID or slug. Requires at least one role ID. To invite a new user by email, use the team invites endpoint instead.`,tags:[`Team Members`]}).input(MS.strict()).output(kS),US=v$1.route({method:`PATCH`,path:`/teams/{key}/members/{userId}`,summary:`Update a team member's roles`,description:`Update an existing active team member. Team key can be ID or slug. Replaces role assignments. Cannot modify isOwner (use transfer endpoint instead).`,tags:[`Team Members`]}).input(RS.extend({key:k$1(),userId:k$1()}).strict()).output(kS),WS=v$1.route({method:`DELETE`,path:`/teams/{key}/members/{userId}`,summary:`Remove a team member`,description:`Remove an active member from a team. Team key can be ID or slug. Cannot remove the team owner (transfer ownership first). To cancel pending invitations, use the team invites endpoint.`,tags:[`Team Members`]}).input(NS.strict()).output(kS),GS=v$1.route({method:`POST`,path:`/teams/{key}/transfer`,summary:`Transfer team ownership`,description:"Transfer team ownership from the current owner to another active member. Team key can be ID or slug. Only the current owner can perform this action. Previous owner retains owner-equivalent access (typically via `*`) but loses isOwner status.",tags:[`Team Members`]}).input(IS.strict()).output(LS);var KS={get:BS,list:VS,create:HS,update:US,remove:WS,transfer:GS};const qS=I$1([`ALL`,`COUNTRY`,`STATE`,`CITY`,`VENUE`]),JS=F$1({id:k$1(),name:k$1(),slug:k$1(),kind:qS,parentId:k$1().optional(),latitude:j$1().optional(),longitude:j$1().optional(),radius:j$1().optional(),enabled:N$1(),order:j$1(),zoom:j$1().optional(),heroImage:k$1().optional(),description:k$1().optional()}),YS=F$1({tenant:F$1({id:k$1(),name:k$1(),slug:k$1(),adminTeamId:k$1(),legacyTenantsToTeams:Cs(k$1(),k$1()).optional(),features:Cs(k$1(),N$1()).optional(),defaultCurrency:k$1(),logo:F$1({email:F$1({src:k$1(),width:j$1(),height:j$1()}),website:F$1({src:k$1(),width:j$1(),height:j$1()})}),baseUrl:F$1({dev:k$1().optional(),production:k$1().optional()}),publicBaseUrl:F$1({dev:k$1().optional(),sandbox:k$1().optional(),production:k$1().optional()}).optional()}),regions:P$1(JS)}),XS=F$1({regions:P$1(JS)}),ZS=F$1({teamId:k$1().optional()}),QS=F$1({counts:F$1({teams:N$1(),promoters:N$1(),venues:N$1(),events:N$1(),payouts:N$1()})}),$S=v$1.route({method:`GET`,path:`/tenant/config`,summary:`Get tenant configuration`,tags:[`Tenant`],description:`Returns tenant configuration including features and regions. Requires x-tenant-id header.`}).output(YS),eC=v$1.route({method:`GET`,path:`/tenant/regions`,summary:`Get tenant regions`,tags:[`Tenant`],description:`Returns available regions for the tenant. Requires x-tenant-id header.`}).output(XS);var tC={approvals:v$1.route({method:`GET`,path:`/tenant/approvals`,summary:`Get tenant approval badges`,tags:[`Tenant`],description:`Returns lightweight booleans for pending approvals. Requires tenant admin access.`}).input(ZS).output(QS),config:$S,regions:eC};const nC=F$1({id:k$1().meta({examples:[b$1.Admission.id],description:`Admission ID reference`}),name:k$1().meta({examples:[`VIP Access`,`General Admission`,`Early Bird`],description:`Admission type name at time of purchase`}),price:F$1({base:j$1().meta({description:`Base price in smallest currency unit (cents)`}),booking:j$1().meta({description:`Booking fee in smallest currency unit (cents)`}),currency:k$1().meta({examples:[`USD`,`EUR`,`GBP`],description:`ISO 4217 currency code`})}).meta({description:`Price snapshot at time of purchase`}),entryStartsAt:H$2.meta({description:`Wall clock time when ticket holder can enter (no timezone, displays same everywhere)`}),entryEndsAt:H$2.meta({description:`Wall clock time when entry period ends (no timezone, displays same everywhere)`})}).meta({description:`Admission details for this ticket`}),rC=F$1({firstName:k$1().trim().min(1).meta({examples:[b$1.Customer.firstName],description:`First name of the ticket attendee`}),lastName:k$1().trim().min(1).meta({examples:[b$1.Customer.lastName],description:`Last name of the ticket attendee`}),email:No().meta({examples:[b$1.Customer.email],description:`Email address of the ticket attendee`}),phone:k$1().meta({examples:[b$1.Customer.phone],description:`Phone number of the ticket attendee (optional)`}).optional()}).meta({description:`Attendee information for a ticket - can be edited by tenant admins. Defaults to the order customer details when ticket is created.`}),iC=F$1({id:k$1().meta({examples:[b$1.Event.id],description:`Event ID reference`}),name:k$1().meta({examples:[b$1.Event.name],description:`The title of the event shown to attendees`}),slug:k$1().meta({examples:[b$1.Event.slug],description:`URL-friendly identifier for the event`}),location:Ip.meta({description:`Structured location details for the event`}),entryStartsAt:H$2.meta({examples:[b$1.Event.entryStartsAt],description:`Wall clock time when event entry begins (no timezone, displays same everywhere)`}),entryEndsAt:H$2.meta({examples:[b$1.Event.entryEndsAt],description:`Wall clock time when event entry ends (no timezone, displays same everywhere)`}),images:F$1({mobile:V$1.meta({description:`Mobile-optimized image for the event`}),desktop:V$1.meta({description:`Desktop-optimized image for the event`})})}).meta({description:`Event details for this ticket`}),aC=F$1({id:k$1().meta({examples:[b$1.User.id],description:`Unique identifier of the user who performed the ticket scan`}),firstName:k$1().meta({examples:[b$1.User.firstName],description:`First name of the user who performed the scan`}),lastName:k$1().meta({examples:[b$1.User.lastName],description:`Last name of the user who performed the scan`}),email:No().meta({examples:[b$1.User.email],description:`Email address of the user who performed the scan`})}).meta({description:`Information about the user who scanned a ticket`}),oC=I$1([`CHECK_IN`,`CHECK_OUT`]),cC=F$1({id:k$1().meta({examples:[b$1.TicketScan.id],description:`Unique identifier of the ticket scan record`}),scannedAt:D$1().readonly().meta({examples:[b$1.TicketScan.scannedAt],description:`Timestamp when the ticket was scanned in ISO 8601 format`}),scannedById:k$1().meta({examples:[b$1.TicketScan.scannedById],description:`Unique identifier of the user who performed the scan`}),scannedBy:aC.meta({description:`Detailed information about the user who performed the scan`}),deviceId:k$1().meta({examples:[b$1.TicketScan.deviceId],description:`Unique identifier of the device used for scanning`}),kind:oC.meta({examples:[`CHECK_IN`],description:`Type of scan operation: CHECK_IN for entry, CHECK_OUT for exit`})}).meta({description:`Record of a ticket scan operation including when, who, and what type of scan`}),lC=F$1({id:k$1().meta({examples:[b$1.Section.id],description:`Section ID reference`}),name:k$1().meta({examples:[`Floor Section A`,`Balcony Left`,`VIP Lounge`],description:`Section name at time of purchase`}),location:F$1({name:k$1().meta({description:`Venue or location name`}),address:k$1().optional().meta({description:`Street address`}),city:k$1().optional().meta({description:`City name`}),state:k$1().optional().meta({description:`State or province`}),postcode:k$1().optional().meta({description:`Postal/ZIP code`}),country:k$1().optional().meta({description:`ISO country code`}),latitude:j$1().optional().meta({description:`Geographic latitude coordinate`}),longitude:j$1().optional().meta({description:`Geographic longitude coordinate`}),timeZone:k$1().optional().meta({examples:[`America/New_York`,`Europe/London`],description:`IANA timezone identifier`})}).meta({description:`Physical location details`})}).meta({description:`Section details for this ticket`}),uC=I$1([`ACTIVE`,`REDEEMED`,`CANCELLED`]),$$2=F$1({id:k$1().readonly().meta({examples:[b$1.Ticket.id],description:`Unique identifier for the ticket`}),createdAt:D$1().readonly().meta({examples:[b$1.Ticket.createdAt],description:`Timestamp when the ticket was created in ISO 8601 format`}),updatedAt:D$1().readonly().meta({examples:[b$1.Ticket.updatedAt],description:`Timestamp when the ticket was last updated in ISO 8601 format`}),scans:P$1(cC).meta({description:`Array of all scan records for this ticket (check-ins and check-outs)`}),status:uC.meta({examples:[`ACTIVE`],description:`Current status of the ticket: ACTIVE (can be used), REDEEMED (already used), CANCELLED (invalidated or refunded)`}),attendee:rC.meta({description:`Attendee information for this ticket - editable by tenant admins`}),customerId:gc.meta({examples:[b$1.Ticket.customerId],description:`Unique identifier of the customer who purchased this ticket (read-only)`}),eventId:B$1.meta({examples:[b$1.Ticket.eventId],description:`Unique identifier of the event this ticket grants access to`}),event:iC.meta({description:`Event details for this ticket`}),admissionId:_c.meta({examples:[b$1.Ticket.admissionId],description:`Unique identifier of the admission type/tier this ticket represents`}),admission:nC.meta({description:`Admission details for this ticket`}),section:lC.optional().meta({description:`Section details for this ticket (if assigned to a section)`}),orderId:dc.meta({examples:[b$1.Ticket.orderId],description:`Unique identifier of the order this ticket was purchased in`}),orderItemId:k$1().meta({examples:[b$1.Ticket.orderItemId],description:`Unique identifier of the specific order item this ticket represents (optional for legacy tickets)`}).optional(),teamId:sc.meta({examples:[b$1.Ticket.teamId],description:`Identifier of the team that owns this ticket`}),promoterId:pc.meta({examples:[b$1.Ticket.promoterId],description:`Unique identifier of the promoter/organizer who created this event`})}).meta({description:`A ticket represents a customer's admission to an event. It tracks the purchase, scanning history, and current status.`}),fC=F$1({kind:I$1([`CHECK_IN`,`CHECK_OUT`]).meta({description:`The most recent attendee scan action.`}),scannedAt:D$1().meta({description:`Timestamp for the most recent attendee scan.`})}),pC=I$1(`#ABCDEFGHIJKLMNOPQRSTUVWXYZ`.split(``)).meta({description:`Alpha navigation bucket key for attendee roster jumps.`}),mC=F$1({key:pC,count:L$1().int().min(0).meta({description:`Number of roster rows currently available in this bucket.`}),anchor:k$1().meta({description:`Server-issued bookmark for the first roster row in this bucket under the active filters.`})}),hC=nC.pick({id:true,name:true,entryEndsAt:true}),gC=lC.pick({id:true,name:true}),_C=F$1({id:fc.meta({examples:[b$1.Ticket.id],description:`Ticket identifier for this attendee roster row.`}),orderId:dc.meta({examples:[b$1.Ticket.orderId],description:`Order identifier used to navigate to order details.`}),status:uC.meta({description:`Current ticket status for the attendee row.`}),attendee:rC.meta({description:`Editable attendee identity fields for this ticket.`}),admission:hC.meta({description:`Admission snapshot needed for roster labels and expiry state.`}),section:gC.optional().meta({description:`Optional section label shown in the roster row.`}),lastScan:fC.optional().meta({description:`Most recent scan event for compact roster activity text.`}),lastCheckInAt:D$1().optional().meta({description:`Timestamp for the most recent check-in scan, used for checked-in labels.`})}),vC=F$1({eventId:B$1.meta({examples:[b$1.Event.id],description:`Event identifier for the attendee alpha index.`}),admissionIds:P$1(_c).optional().meta({examples:[[b$1.Admission.id]],description:`Optional admission filters used when computing available attendee buckets.`}),sectionIds:P$1(vc).optional().meta({examples:[[b$1.Section.id]],description:`Optional section filters used when computing available attendee buckets.`})}),yC=F$1({buckets:P$1(mC).meta({description:`Available attendee alpha buckets for the active filter set.`})}),bC=L$1().int().min(1).max(100).prefault(100).meta({examples:[100],description:`Maximum number of attendee roster rows to return per request (1-100, default: 100).`}),xC=F$1({eventId:B$1.meta({examples:[b$1.Event.id],description:`Event identifier for the attendee roster.`}),admissionIds:P$1(_c).optional().meta({examples:[[b$1.Admission.id]],description:`Optional admission filters. When provided, only matching ticket admissions are included.`}),sectionIds:P$1(vc).optional().meta({examples:[[b$1.Section.id]],description:`Optional section filters. When provided, only matching ticket sections are included.`}),query:k$1().optional().meta({examples:[`John`,`john@example.com`,`+61400000000`],description:`Optional attendee search query. Matches attendee name, email, and phone.`}),cursor:Nc.optional(),before:Nc.optional().meta({description:`Cursor for loading roster rows before the current window. Mutually exclusive with cursor and anchor.`}),anchor:k$1().optional().meta({description:`Server-issued bookmark used to jump to a roster bucket. Mutually exclusive with cursor and before.`}),limit:bC.optional()}),SC=G$2(_C,`tickets`),CC=$$2.pick({status:true,admissionId:true,orderItemId:true}).extend({orderId:k$1().meta({examples:[b$1.Order.id],description:`The order this ticket belongs to`}),customerId:k$1().meta({examples:[b$1.Customer.id],description:`The customer who purchased this ticket`}),attendee:rC.optional().meta({description:`Optional attendee information - defaults to order customer details if not provided`})}).meta({description:`Schema for creating a new ticket - caller provides minimal input; derived fields are populated by the service`}),wC=$$2.pick({id:true}).extend({signature:wl.optional().meta({description:`HMAC signature for public ticket access (16 characters, base64url encoded)`})}).meta({description:`Schema for retrieving a specific ticket by ID with optional signature validation`}),TC=F$1({promoterId:k$1().optional().meta({examples:[b$1.Promoter.id],description:`Filter tickets by promoter/organizer unique identifier (optional)`}),eventId:k$1().optional().meta({examples:[b$1.Event.id],description:`Filter tickets by event unique identifier (optional)`}),customerId:k$1().optional().meta({examples:[b$1.Customer.id],description:`Filter tickets by customer unique identifier (optional)`}),orderId:k$1().optional().meta({examples:[b$1.Order.id],description:`Filter tickets by order unique identifier (optional)`}),status:uC.optional().meta({examples:[`ACTIVE`],description:`Filter tickets by status: ACTIVE (can be used), REDEEMED (already used), CANCELLED (invalidated or refunded)`}),orderSignature:wl.optional().meta({description:`Order signature used to access tickets for a specific order without permissions (16 characters, base64url encoded)`}),query:k$1().optional().meta({examples:[`John Doe`],description:`Optional search query to filter tickets by customer details. When provided, search-backed pagination is used.`}),limit:U$2(`tickets`).optional(),cursor:k$1().optional().meta({examples:[`eyJpZCI6InRrdF8wMWpwczVjZ3NnMHMzMncycHI3M3ZiY2NkZSJ9`],description:`Pagination cursor for continuing to fetch subsequent results (optional)`})}).meta({description:`Schema for listing tickets with optional filtering, search, and cursor-based pagination`}),EC=G$2($$2,`tickets`),DC=F$1({ticket:$$2}),OC=$$2.pick({id:true,eventId:true}).extend({key:$$2.shape.id.meta({description:`Transition key. Supports canonical ticket IDs (tkt_*), order IDs (ord_*), and legacy Neon ticket IDs.`}),deviceId:$$2.shape.scans.element.shape.deviceId.optional().meta({description:`Unique identifier of the scanning device (optional).`}),eventId:$$2.shape.eventId.optional().meta({description:`Optional event scope guard for check-in transitions. When provided, check-in fails if the ticket/order event does not match.`}),allowPartialOrderCheckIn:N$1().optional().meta({description:`Confirms an order-level check-in when some tickets are already redeemed and some remain active.`})}).omit({id:true}).meta({description:`Schema for check-in/check-out transitions addressed by key, where key may resolve to a ticket, order, or legacy ticket identifier.`}),kC=I$1([`ticket`,`order`,`legacy`]),AC=I$1([`NOOP_TRANSITION`]),jC=I$1([`PARTIAL_ORDER_CONFIRMATION_REQUIRED`]),MC=I$1([`EVENT_MISMATCH`]),NC=F$1({id:$$2.shape.orderId,checkedInCount:j$1().int().nonnegative().optional(),items:P$1(F$1({quantity:j$1().int().positive()}))}),PC=iC.pick({id:true,name:true,slug:true,entryStartsAt:true}).extend({teamId:$$2.shape.teamId}),FC=F$1({reason:AC,kind:I$1([`CHECK_IN`,`CHECK_OUT`]),targetType:kC,order:NC.optional(),ticket:$$2.optional()}),IC=F$1({reason:MC,kind:I$1([`CHECK_IN`,`CHECK_OUT`]),targetType:kC,requestedEventId:$$2.shape.eventId.optional(),event:PC,order:NC.optional(),ticket:$$2.optional()}),LC=F$1({reason:jC,kind:Es(`CHECK_IN`),targetType:Es(`order`),order:NC,ticket:$$2.optional()}),RC=_s([FC,IC,LC]),zC=F$1({tickets:P$1($$2).meta({description:`Transition result tickets. Single-item array for ticket/legacy targets and full order tickets for order targets.`}),targetType:kC.meta({description:`Resolved target scope from the provided key.`}),order:NC.optional()}),BC=I$1([`ACTIVE`,`CANCELLED`]).describe(`Status updates allowed via PATCH: ACTIVE (reactivate), CANCELLED (void). REDEEMED is set via scan endpoint.`),VC=F$1({id:k$1().meta({examples:[b$1.Ticket.id],description:`Unique identifier of the ticket to update`}),status:BC.optional().meta({description:`Update ticket status: CANCELLED to void, ACTIVE to reactivate`}),attendee:rC.partial().nullable().optional().meta({description:`Attendee info. Pass object to set/update, null to clear, or omit to leave unchanged.`}),admissionId:k$1().optional().meta({examples:[b$1.Admission.id],description:`Change ticket type/admission (admission and section objects will be fetched from event and stored)`})}).meta({description:`Schema for updating a ticket.`}),HC=v$1.route({method:`GET`,path:`/tickets/{id}`,summary:`Get ticket by ID`,tags:[`Tickets`]}).input(wC.strict()).output(DC),UC=v$1.route({method:`POST`,path:`/tickets`,summary:`Create a new ticket`,tags:[`Tickets`]}).input(CC.strict()).output(DC),WC=v$1.route({method:`PUT`,path:`/tickets/{id}`,summary:`Update a ticket`,tags:[`Tickets`]}).input(VC.strict()).output(DC),GC=v$1.route({method:`GET`,path:`/tickets`,summary:`List tickets with cursor-based pagination`,description:"Returns ticket data with cursor-based pagination, optional full-text search via `query`, and a fixed attendee-name ascending order for non-search list paths.",tags:[`Tickets`]}).input(TC.strict()).output(EC),KC=v$1.route({method:`GET`,path:`/tickets/attendees`,summary:`List event attendees with alpha-navigation support`,description:`Returns ticket-backed attendee roster rows for an event. Supports bounded browsing, alpha jump bookmarks, and attendee search.`,tags:[`Tickets`]}).input(xC.strict()).output(SC),qC=v$1.route({method:`GET`,path:`/tickets/attendees/index`,summary:`Get attendee alpha-navigation buckets`,description:`Returns available alpha buckets and server-issued bookmarks for the ticket attendee roster.`,tags:[`Tickets`]}).input(vC.strict()).output(yC),JC=v$1.route({method:`PUT`,path:`/tickets/{key}/check-in`,summary:`Check in tickets by key`,tags:[`Tickets`]}).input(OC.strict()).errors({UNPROCESSABLE_ENTITY:{data:RC}}).output(zC),YC=v$1.route({method:`PUT`,path:`/tickets/{key}/check-out`,summary:`Check out tickets by key`,tags:[`Tickets`]}).input(OC.strict()).errors({UNPROCESSABLE_ENTITY:{data:RC}}).output(zC);var XC={get:HC,list:GC,attendees:{list:KC,index:qC},create:UC,update:WC,checkInByKey:JC,checkOutByKey:YC};const ZC={id:b$1.User.id,createdAt:b$1.User.createdAt,updatedAt:b$1.User.updatedAt,email:b$1.User.email,firstName:b$1.User.firstName,lastName:b$1.User.lastName,imageUrl:`https://assets.session.services/examples/avatar.jpg`,tenantId:b$1.User.tenantId},QC=F$1({id:k$1().readonly().meta({description:`Unique identifier for the user`,examples:[b$1.User.id]}),createdAt:D$1().readonly().meta({description:`ISO 8601 timestamp when the user account was created`,examples:[b$1.User.createdAt]}),updatedAt:D$1().readonly().meta({description:`ISO 8601 timestamp when the user account was last updated`,examples:[b$1.User.updatedAt]}),email:No().meta({description:`User's email address, used for authentication and communication`,examples:[b$1.User.email]}),firstName:k$1().min(1).meta({description:`User's first name`,examples:[b$1.User.firstName]}),lastName:k$1().min(1).meta({description:`User's last name`,examples:[b$1.User.lastName]}),imageUrl:Lo().optional().meta({description:`Optional URL to the user's profile image or avatar`,examples:[`https://assets.session.services/examples/avatar.jpg`]}),metadata:Cs(k$1(),jc).optional().meta({description:`Arbitrary key-value metadata for storing user preferences and settings`,examples:[{"widgets:team_abc123":{visibleWidgets:[`revenue`]}}]})}).meta({ref:`User`,description:`User entity containing profile and audit information scoped to a specific tenant`,examples:[ZC]}),$C=OS.meta({ref:`MeTeamMember`,description:`Team membership for the current user with denormalized user details and role-expanded team permissions.`}),ew=F$1({access:k$1().meta({description:`JWT access token with updated user data`}),refresh:k$1().meta({description:`Refresh token for obtaining new access tokens`})}).meta({ref:`Tokens`,description:`Authentication tokens for client session management`}),tw=F$1({user:QC.meta({description:`The updated user profile`}),tokens:ew.optional().meta({description:`New JWT tokens with updated user data. Present when refresh token was provided in request.`})}).meta({ref:`UserUpdateResponse`,description:`Response payload for PATCH /users/me containing the updated user profile.`}),nw=F$1({deleted:Es(true).meta({description:`Whether the current user account was deleted.`})}).meta({ref:`UserDeleteResponse`,description:`Response payload for DELETE /users/me after deleting the current account.`}),rw=F$1({user:QC.nullable().meta({description:`Current authenticated user profile, null if not authenticated`}),isAdmin:N$1().meta({description:`Whether the current user has admin privileges for the tenant`}),members:P$1($C).meta({description:`All team memberships for the current user within this tenant.`})}).meta({ref:`MeResponse`,description:`Response payload for GET /users/me providing the current user, tenant admin status, and team memberships.`,examples:[{user:{id:`usr_01k5hbpkfje048zccqmqfhjpep`,createdAt:`2025-09-19T16:07:46.418Z`,updatedAt:`2025-09-19T16:07:46.418Z`,email:`j@1f.io`,firstName:`Jay`,lastName:`McMullen`,imageUrl:`https://assets.session.services/examples/avatar.jpg`},isAdmin:true,members:[{id:`mbr_01jps5cgsec5ge0b1bxa6gzkkk`,createdAt:`2025-09-25T03:25:46.080Z`,updatedAt:`2025-09-25T03:25:46.080Z`,teamId:`tem_01jqpjksnsen9vprw95et60t2m`,userId:`usr_01k5hbpkfje048zccqmqfhjpep`,user:{id:`usr_01k5hbpkfje048zccqmqfhjpep`,email:`j@1f.io`,firstName:`Jay`,lastName:`McMullen`,imageUrl:`https://assets.session.services/examples/avatar.jpg`},permissions:[`*`],isOwner:true,tenantId:`tnt_01abc123`}]}]}),iw=v$1.route({method:`GET`,path:`/users/me`,summary:`Get the current user and their team memberships`,tags:[`Users`]}).output(rw),aw=F$1({firstName:k$1().min(1).optional(),lastName:k$1().min(1).optional(),imageUrl:Lo().optional(),metadata:Cs(k$1(),jc).optional(),refreshToken:k$1().optional().meta({description:`Current refresh token. When provided, new tokens with updated user data will be returned.`})}).meta({ref:`UpdateUserInput`,description:`Input for updating the current user's profile`}),ow=v$1.route({method:`PATCH`,path:`/users/me`,summary:`Update the current user's profile`,tags:[`Users`]}).input(aw).output(tw);var sw={me:iw,remove:v$1.route({method:`DELETE`,path:`/users/me`,summary:`Delete the current user's account`,tags:[`Users`]}).output(nw),update:ow};const cw=F$1({id:k$1().readonly().meta({description:`Unique identifier for the venue`}),createdAt:D$1().readonly().meta({description:`Timestamp in ISO 8601 format when the venue was created`}),updatedAt:D$1().readonly().meta({description:`Timestamp in ISO 8601 format when the venue was last updated`}),teamId:k$1().meta({description:`Team that manages this venue`}),locationId:lc.meta({examples:[`loc_01h2xk3j9k8m2n5p7q9r1s3t4v`],description:`Location identifier for this venue`}),googlePlaceId:k$1().optional().meta({examples:[`ChIJP3Sa8ziYEmsRUKgyFmh9AQM`],description:`Google Place ID when this venue is linked to a Google Places location`}),approval:$s.meta({examples:[`APPROVED`],description:`Approval status of the venue`}),name:k$1().min(3).max(100).meta({description:`Display name of the venue. Must be between 3 and 100 characters`}),slug:k$1().min(3).meta({description:`URL-friendly slug for the venue. Must be unique within tenant`}),description:k$1().max(500).optional().meta({description:`Short description of the venue for listings and discovery`}),image:V$1.optional().meta({description:`Venue image`}),contact:F$1({email:No().optional().meta({description:`Public contact email for venue inquiries`}),phone:k$1().optional().meta({description:`Public contact phone number`}),website:Lo().optional().meta({description:`Venue website URL`}),instagram:k$1().optional().meta({description:`Instagram profile URL`}),facebook:k$1().optional().meta({description:`Facebook page URL`}),twitter:k$1().optional().meta({description:`Twitter/X profile URL`}),tiktok:k$1().optional().meta({description:`TikTok profile URL`}),youtube:k$1().optional().meta({description:`YouTube channel URL`})}).optional().meta({description:`Public contact information and social media links`}),location:Ip.omit({venueId:true}).meta({description:`Physical location details including address, coordinates, and timezone`}),geohash:k$1().meta({description:`Geohash encoding of the venue's location for efficient spatial queries`}),capacity:j$1().int().min(1).optional().meta({description:`Maximum capacity of the venue (number of attendees)`}),metadata:Mc,deletedAt:D$1().readonly().optional().meta({description:`Timestamp in ISO 8601 format when the venue was soft-deleted. Null if not deleted`}),tenantId:k$1().readonly().meta({description:`Tenant ID for multi-tenant isolation`})}).meta({description:`Managed venue with custom branding and details. Teams can claim venues which then appear in location search results.`}),lw=cw.omit({id:true,tenantId:true,createdAt:true,updatedAt:true,geohash:true,deletedAt:true,location:true,googlePlaceId:true,approval:true}).extend({slug:k$1().min(3).optional().meta({description:`URL-friendly slug for the venue. If not provided, will be automatically generated from the name. Must be unique within tenant`})}).meta({description:`Schema for creating a new venue. The system automatically derives location details and Google Place ID from the locationId`}),uw=F$1({key:k$1().min(1).meta({description:`Venue key - either a unique ID (ven_xxx format) or URL-friendly slug`,examples:[b$1.Venue.id,b$1.Venue.slug]})}),dw=F$1({key:k$1().meta({examples:[b$1.Venue.id,b$1.Venue.slug],description:`Venue key - either a unique ID (ven_xxx format) or URL-friendly slug`})}),fw=F$1({teamId:k$1().optional().meta({description:`Filter venues by owner team ID`}),approval:$s.optional().meta({description:`Filter venues by approval status. PENDING: awaiting review, APPROVED: can be used for events, REJECTED: cannot be used`}),query:k$1().optional().meta({description:`Optional search query for filtering venues by name or slug`}),latitude:L$1().min(-90).max(90).optional().meta({description:`Latitude for location-based search. Must be used with longitude`}),longitude:L$1().min(-180).max(180).optional().meta({description:`Longitude for location-based search. Must be used with latitude`}),radius:L$1().min(1).max(2e4).optional().meta({description:`Search radius in kilometers (1-20000). Requires latitude and longitude`}),limit:U$2(`venues`),cursor:k$1().optional().meta({description:`Pagination cursor from previous response. Used to fetch next page of results`})}).meta({description:`Query parameters for listing venues with pagination, filtering, and location-based search`}),pw=G$2(cw,`venues`).meta({description:`Paginated response containing venues with cursor for next page`}),mw=F$1({venue:cw}),hw=cw.omit({id:true,tenantId:true,teamId:true,createdAt:true,updatedAt:true,deletedAt:true,geohash:true}).partial().extend({key:k$1().meta({examples:[b$1.Venue.id,b$1.Venue.slug],description:`Venue key - either a unique ID (ven_xxx format) or URL-friendly slug`}),description:k$1().max(500).nullable().optional().meta({description:`Short description of the venue. Pass null to clear, omit to leave unchanged.`}),image:V$1.nullable().optional().meta({description:`Venue image. Pass null to clear, omit to leave unchanged.`}),capacity:j$1().int().min(1).nullable().optional().meta({description:`Maximum capacity. Pass null to clear, omit to leave unchanged.`}),contact:F$1({email:No().optional(),phone:k$1().optional(),website:Lo().optional(),instagram:k$1().optional(),facebook:k$1().optional(),twitter:k$1().optional(),tiktok:k$1().optional(),youtube:k$1().optional()}).nullable().optional().meta({description:`Contact information. Pass null to clear all contact fields, omit to leave unchanged.`}),googlePlaceId:k$1().nullable().optional().meta({description:`Google Place ID. Pass null to unlink from Google Places, omit to leave unchanged.`})}).meta({description:`Schema for updating an existing venue. Cannot change teamId (owner). Pass null to clear optional fields.`}),gw={analytics:Jf,beneficiary:Zf,section:Ux,event:gm,eventCollaborator:Em,admission:qf,order:Hy,ticket:XC,internal:Bm,location:Km,coupon:Dp,payout:Ib,teams:Cx,permissionScope:Jb,promoter:zx,team:vS,teamDomain:DS,teamInvite:AS,teamPayment:jS,teamMember:KS,tenant:tC,venue:{get:v$1.route({method:`GET`,path:`/venues/{key}`,summary:`Get venue by ID or slug`,description:`Retrieve a venue using its unique ID or slug`,tags:[`Venues`]}).input(dw.strict()).output(mw),list:v$1.route({method:`GET`,path:`/venues`,summary:`List venues with cursor-based pagination`,description:`Returns venues with cursor pagination. Supports filtering by team, location-based search, and text query`,tags:[`Venues`]}).input(fw.strict()).output(pw),create:v$1.route({method:`POST`,path:`/venues`,summary:`Create a new venue`,description:`Create a new venue. Venue will be owned by the specified team but can be used by all teams for their events`,tags:[`Venues`]}).input(lw.strict()).output(mw),update:v$1.route({method:`PATCH`,path:`/venues/{key}`,summary:`Update a venue`,description:`Update an existing venue. Cannot change venue ownership (teamId)`,tags:[`Venues`]}).input(hw.strict()).output(mw),remove:v$1.route({method:`DELETE`,path:`/venues/{key}`,summary:`Delete a venue`,description:`Soft delete a venue`,tags:[`Venues`]}).input(uw.strict()).output(mw),linkLocation:v$1.route({method:`POST`,path:`/venues/{key}/locations`,summary:`Link location to venue`,description:"Link a location to this venue. Allows the venue to be discovered when users search for this location. A venue can have multiple linked locations (e.g., different addresses, branded names). Requires venue access on the owning team (for example, `venue.write`).",tags:[`Venues`]}).input(dw.extend({locationKey:k$1().meta({description:`Location ID (loc_xxx) or Google Place ID to link to this venue`,examples:[`loc_01jps5cgsm7qxvh6watsons0eq`,`ChIJP3Sa8ziYEmsRUKgyFmh9AQM`]})}).strict()).output(mw),unlinkLocation:v$1.route({method:`DELETE`,path:`/venues/{key}/locations/{locationKey}`,summary:`Unlink location from venue`,description:"Remove a location link from this venue. The location will no longer show this venue's branding. Requires venue access on the owning team (for example, `venue.write`).",tags:[`Venues`]}).input(dw.extend({locationKey:k$1().meta({description:`Location ID (loc_xxx) or Google Place ID to unlink from this venue`,examples:[`loc_01jps5cgsm7qxvh6watsons0eq`,`ChIJP3Sa8ziYEmsRUKgyFmh9AQM`]})}).strict()).output(mw)},user:sw},_w=I$1([`ORDER`]).meta({description:`Aggregate type this notification belongs to`}),vw=I$1([`ORDER_CONFIRMATION`,`ORDER_REMINDER`,`ORDER_CANCELLATION`,`ORDER_TIME_CHANGE`,`ORDER_VENUE_CHANGE`,`ORDER_TIME_AND_VENUE_CHANGE`]).meta({description:`Notification kind`}),yw=I$1([`SMS`,`EMAIL`]).meta({description:`Delivery channel`}),bw=I$1([`PENDING`,`PROCESSING`,`SENT`,`DELIVERED`,`FAILED`,`CANCELLED`]).meta({description:`Current notification status`});F$1({id:Ec.meta({examples:[b$1.Notification.id],description:`Unique notification identifier`}),createdAt:D$1().readonly().meta({examples:[b$1.Notification.createdAt],description:`Timestamp when notification was created`}),updatedAt:D$1().readonly().meta({examples:[b$1.Notification.updatedAt],description:`Timestamp when notification was last updated`}),aggregateType:_w.meta({examples:[b$1.Notification.aggregateType]}),aggregateId:dc.meta({examples:[b$1.Notification.aggregateId],description:`Aggregate identifier (order ID for ORDER notifications)`}),eventId:B$1.optional().meta({examples:[b$1.Notification.eventId],description:`Associated event identifier when applicable`}),kind:vw.meta({examples:[b$1.Notification.kind]}),channel:yw.meta({examples:[b$1.Notification.channel]}),status:bw.meta({examples:[b$1.Notification.status]}),providerMessageId:k$1().optional().meta({examples:[b$1.Notification.providerMessageId],description:`Provider message identifier`}),sentAt:D$1().optional().meta({examples:[b$1.Notification.sentAt],description:`Timestamp when provider accepted send request`}),deliveredAt:D$1().optional().meta({examples:[b$1.Notification.deliveredAt],description:`Timestamp when provider confirmed delivery`}),failedAt:D$1().optional().meta({examples:[b$1.Notification.failedAt],description:`Timestamp when notification failed`}),failureCode:k$1().optional().meta({examples:[b$1.Notification.failureCode],description:`Failure code when notification is FAILED`}),failureReason:k$1().optional().meta({examples:[b$1.Notification.failureReason],description:`Failure reason when notification is FAILED`})}).meta({description:`Notification delivery record`});F$1({id:xc.meta({description:`Team member ID to delete`})});
|
|
50
|
+
|
|
51
|
+
var qc=class extends rt$1{initRuntimeAdapter(e){for(let t of this.plugins)t.initRuntimeAdapter?.(e);}},Jc=class{fetch;toFetchRequestOptions;adapterInterceptors;constructor(e){new qc(e.plugins).initRuntimeAdapter(e),this.fetch=e.fetch??globalThis.fetch.bind(globalThis),this.toFetchRequestOptions=e,this.adapterInterceptors=r(e.adapterInterceptors);}async call(e,t,n,r){let i=tt$1(e,this.toFetchRequestOptions);return nt$1(await re$1(this.adapterInterceptors,{...t,request:i,path:n,input:r,init:{redirect:`manual`}},({request:e,path:t,input:n,init:r,...i})=>this.fetch(e,r,i,t,n)),{signal:i.signal})}},Yc=class{maxArrayIndex;constructor(e={}){this.maxArrayIndex=e.maxBracketNotationArrayIndex??9999;}serialize(e,t=[],n=[]){if(Array.isArray(e))e.forEach((e,r)=>{this.serialize(e,[...t,r],n);});else if(se$1(e))for(let r in e)this.serialize(e[r],[...t,r],n);else n.push([this.stringifyPath(t),e]);return n}deserialize(e){if(e.length===0)return {};let t=new WeakSet,n={value:[]};for(let[r,i]of e){let e=this.parsePath(r),a=n,o=`value`;e.forEach((n,r)=>{!Array.isArray(a[o])&&!se$1(a[o])&&(a[o]=[]),r===e.length-1?Array.isArray(a[o])&&(n===``?a[o].length&&!t.has(a[o])&&(a[o]=U$1(a[o])):t.has(a[o])?(t.delete(a[o]),a[o]=W$1(a[o])):H$1(n,this.maxArrayIndex)||(a[o]=U$1(a[o]))):Array.isArray(a[o])&&!H$1(n,this.maxArrayIndex)&&(t.has(a[o])?(t.delete(a[o]),a[o]=W$1(a[o])):a[o]=U$1(a[o])),a=a[o],o=n;}),Array.isArray(a)&&o===``?(t.add(a),a.push(i)):o in a?Array.isArray(a[o])?a[o].push(i):a[o]=[a[o],i]:a[o]=i;}return n.value}stringifyPath(e){return e.map(e=>e.toString().replace(/[\\[\]]/g,e=>{switch(e){case `\\`:return `\\\\`;case `[`:return `\\[`;case `]`:return `\\]`;default:return e}})).reduce((e,t,n)=>n===0?t:`${e}[${t}]`,``)}parsePath(e){let t=[],n=false,r=``,i=0;for(let a=0;a<e.length;a++){let o=e[a],s=e[a+1];n&&o===`]`&&(s===void 0||s===`[`)&&i%2==0?(s===void 0&&(n=false),t.push(r),r=``,a++):t.length===0&&o===`[`&&i%2==0?(n=true,t.push(r),r=``):o===`\\`?i++:(r+=`\\`.repeat(i/2)+o,i=0);}return n||t.length===0?[e]:t}};function H$1(e,t){return /^0$|^[1-9]\d*$/.test(e)&&Number(e)<=t}function U$1(e){let t=new ue$1;return e.forEach((e,n)=>{t[n]=e;}),t}function W$1(e){let t=new ue$1;return t[``]=e.length===1?e[0]:e,t}var Xc=class{customSerializers;constructor(e={}){this.customSerializers=e.customJsonSerializers??[];}serialize(e,t={value:false}){for(let n of this.customSerializers)if(n.condition(e))return this.serialize(n.serialize(e),t);if(e instanceof Blob)return t.value=true,[e,t.value];if(e instanceof Set)return this.serialize(Array.from(e),t);if(e instanceof Map)return this.serialize(Array.from(e.entries()),t);if(Array.isArray(e))return [e.map(e=>e===void 0?null:this.serialize(e,t)[0]),t.value];if(se$1(e)){let n={};for(let r in e)r===`toJSON`&&typeof e[r]==`function`||(n[r]=this.serialize(e[r],t)[0]);return [n,t.value]}return typeof e==`bigint`||e instanceof RegExp||e instanceof URL?[e.toString(),t.value]:e instanceof Date?[Number.isNaN(e.getTime())?null:e.toISOString(),t.value]:Number.isNaN(e)?[null,t.value]:[e,t.value]}};function G$1(e){return `/${e.replace(/\/{2,}/g,`/`).replace(/^\/|\/$/g,``)}`}function K$1(e){return e?G$1(e).match(/\/\{[^}]+\}/g)?.map(e=>({raw:e,name:e.match(/\{\+?([^}]+)\}/)[1]})):void 0}var Zc=class{constructor(e,t,n){this.contract=e,this.serializer=t,this.baseUrl=n.url,this.headers=n.headers??{},this.customErrorResponseBodyDecoder=n.customErrorResponseBodyDecoder;}baseUrl;headers;customErrorResponseBodyDecoder;async encode(e,t,n){let r=ot(await de$1(this.headers,n,e,t));n.lastEventId!==void 0&&(r=Ue$1(r,{"last-event-id":n.lastEventId}));let i=await de$1(this.baseUrl,n,e,t),a=le$1(this.contract,e);if(!ut(a))throw Error(`[StandardOpenapiLinkCodec] expect a contract procedure at ${e.join(`.`)}`);return bt(`defaultInputStructure`,a[`~orpc`].route.inputStructure)===`compact`?this.#e(a,e,t,n,i,r):this.#t(a,e,t,n,i,r)}#e(e,t,n,r,i,a){let o=G$1(e[`~orpc`].route.path??at$1(t)),s=n,c=K$1(o);if(c?.length){if(!se$1(n))throw TypeError(`[StandardOpenapiLinkCodec] Invalid input shape for "compact" structure when has dynamic params at ${t.join(`.`)}.`);let e={...n};for(let t of c){let r=n[t.name];o=o.replace(t.raw,`/${encodeURIComponent(`${this.serializer.serialize(r)}`)}`),delete e[t.name];}s=Object.keys(e).length?e:void 0;}let l=bt(`defaultMethod`,e[`~orpc`].route.method),u=new URL(i);if(u.pathname=`${u.pathname.replace(/\/$/,``)}${o}`,l===`GET`){let e=this.serializer.serialize(s,{outputFormat:`URLSearchParams`});for(let[t,n]of e)u.searchParams.append(t,n);return {url:u,method:l,headers:a,body:void 0,signal:r.signal}}return {url:u,method:l,headers:a,body:this.serializer.serialize(s),signal:r.signal}}#t(e,t,n,r,i,a){let o=G$1(e[`~orpc`].route.path??at$1(t)),s=K$1(o);if(!se$1(n)&&n!==void 0)throw TypeError(`[StandardOpenapiLinkCodec] Invalid input shape for "detailed" structure at ${t.join(`.`)}.`);if(s?.length){if(!se$1(n?.params))throw TypeError(`[StandardOpenapiLinkCodec] Invalid input.params shape for "detailed" structure when has dynamic params at ${t.join(`.`)}.`);for(let e of s){let t=n.params[e.name];o=o.replace(e.raw,`/${encodeURIComponent(`${this.serializer.serialize(t)}`)}`);}}let c=a;if(n?.headers!==void 0){if(!se$1(n.headers))throw TypeError(`[StandardOpenapiLinkCodec] Invalid input.headers shape for "detailed" structure at ${t.join(`.`)}.`);c=Ue$1(n.headers,a);}let l=bt(`defaultMethod`,e[`~orpc`].route.method),u=new URL(i);if(u.pathname=`${u.pathname.replace(/\/$/,``)}${o}`,n?.query!==void 0){let e=this.serializer.serialize(n.query,{outputFormat:`URLSearchParams`});for(let[t,n]of e)u.searchParams.append(t,n);}return l===`GET`?{url:u,method:l,headers:c,body:void 0,signal:r.signal}:{url:u,method:l,headers:c,body:this.serializer.serialize(n?.body),signal:r.signal}}async decode(e,t,n){let r=!we$1(e.status),i=await(async()=>{let t=false;try{let n=await e.body();return t=true,this.serializer.deserialize(n)}catch(e){throw t?Error(`Invalid OpenAPI response format.`,{cause:e}):Error(`Cannot parse response body, please check the response body and content-type.`,{cause:e})}})();if(!r)throw this.customErrorResponseBodyDecoder?.(i,e)??(Te$1(i)?Ee$1(i):new xe$1(st(e.status),{status:e.status,data:{...e,body:i}}));let a=le$1(this.contract,n);if(!ut(a))throw Error(`[StandardOpenapiLinkCodec] expect a contract procedure at ${n.join(`.`)}`);return bt(`defaultOutputStructure`,a[`~orpc`].route.outputStructure)===`compact`?i:{status:e.status,headers:e.headers,body:i}}},Qc=class{constructor(e,t){this.jsonSerializer=e,this.bracketNotation=t;}serialize(e,t={}){return m$1(e)&&!t.outputFormat?We$1(e,{value:async e=>this.#e(e,{outputFormat:`plain`}),error:async e=>new Oe$1({data:this.#e(Ce$1(e).toJSON(),{outputFormat:`plain`}),cause:e})}):this.#e(e,t)}#e(e,t){let[n,r]=this.jsonSerializer.serialize(e);if(t.outputFormat===`plain`)return n;if(t.outputFormat===`URLSearchParams`){let e=new URLSearchParams;for(let[t,r]of this.bracketNotation.serialize(n))(typeof r==`string`||typeof r==`number`||typeof r==`boolean`)&&e.append(t,r.toString());return e}if(n instanceof Blob||n===void 0||!r)return n;let i=new FormData;for(let[e,t]of this.bracketNotation.serialize(n))typeof t==`string`||typeof t==`number`||typeof t==`boolean`?i.append(e,t.toString()):t instanceof Blob&&i.append(e,t);return i}deserialize(e){return e instanceof URLSearchParams||e instanceof FormData?this.bracketNotation.deserialize(Array.from(e.entries())):m$1(e)?We$1(e,{value:async e=>e,error:async e=>e instanceof Oe$1&&Te$1(e.data)?Ee$1(e.data,{cause:e}):e}):e}},$c=class extends it$1{constructor(e,t,n){let r=new Zc(e,new Qc(new Xc(n),new Yc({maxBracketNotationArrayIndex:4294967294})),n);super(r,t,n);}},el=class extends $c{constructor(e,t){let n=new Jc(t);super(e,n,t);}};const Q$1={sandbox:`https://api.sandbox.session.services`,prod:`https://api.session.services`};function al(e){return e in Q$1?Q$1[e]:e}function $$1(e){let t=al(e.environment),n=e.tenantId??`tnt_01jqpj2t2kfvmstt6f6tzkbaf2`;return qe$1(new el(gw,{url:t,headers:{"x-tenant-id":n,...e.headers??{}}}))}
|
|
52
52
|
|
|
53
53
|
var dist = {};
|
|
54
54
|
|
|
@@ -23399,25 +23399,7 @@ function hasPurchasableAdmissions(event) {
|
|
|
23399
23399
|
const zone = eventTimeZone(event);
|
|
23400
23400
|
return event.admissions.some((admission) => isAdmissionPurchasable(admission, zone, sections));
|
|
23401
23401
|
}
|
|
23402
|
-
function postSaleLabel(value) {
|
|
23403
|
-
if (value === "SOLD_OUT")
|
|
23404
|
-
return "Sold out";
|
|
23405
|
-
if (value === "DOOR")
|
|
23406
|
-
return "Tickets available at the door";
|
|
23407
|
-
return "Sale ended";
|
|
23408
|
-
}
|
|
23409
|
-
function postSaleTone(value) {
|
|
23410
|
-
if (value === "DOOR")
|
|
23411
|
-
return "success";
|
|
23412
|
-
return "muted";
|
|
23413
|
-
}
|
|
23414
23402
|
function admissionSaleLabel(admission, zone) {
|
|
23415
|
-
if (isNaiveDateTimePast(admission.saleEndsAt, zone)) {
|
|
23416
|
-
return {
|
|
23417
|
-
text: postSaleLabel(admission.saleEndsBehavior),
|
|
23418
|
-
tone: postSaleTone(admission.saleEndsBehavior),
|
|
23419
|
-
};
|
|
23420
|
-
}
|
|
23421
23403
|
if (!isNaiveDateTimeFuture(admission.saleStartsAt, zone)) {
|
|
23422
23404
|
return null;
|
|
23423
23405
|
}
|
|
@@ -23426,6 +23408,16 @@ function admissionSaleLabel(admission, zone) {
|
|
|
23426
23408
|
tone: "muted",
|
|
23427
23409
|
};
|
|
23428
23410
|
}
|
|
23411
|
+
function admissionStatus(input) {
|
|
23412
|
+
if (input.value === "DOOR" && (input.soldOut || input.saleEnded)) {
|
|
23413
|
+
return { text: "Available At Door", tone: "success" };
|
|
23414
|
+
}
|
|
23415
|
+
if (input.soldOut)
|
|
23416
|
+
return { text: "Sold Out", tone: "destructive" };
|
|
23417
|
+
if (!input.saleEnded)
|
|
23418
|
+
return null;
|
|
23419
|
+
return { text: "Sale Ended", tone: "destructive" };
|
|
23420
|
+
}
|
|
23429
23421
|
function endedStatus(admissions, zone) {
|
|
23430
23422
|
const ended = admissions.filter((admission) => isNaiveDateTimePast(admission.saleEndsAt, zone));
|
|
23431
23423
|
if (ended.length === 0)
|
|
@@ -23526,12 +23518,19 @@ function getAdmissionDisplayState(input) {
|
|
|
23526
23518
|
const zone = eventTimeZone(input.event);
|
|
23527
23519
|
const saleNotStarted = isNaiveDateTimeFuture(input.admission.saleStartsAt, zone);
|
|
23528
23520
|
const saleEnded = isNaiveDateTimePast(input.admission.saleEndsAt, zone);
|
|
23521
|
+
const saleEndedSoldOut = saleEnded && input.admission.saleEndsBehavior === "SOLD_OUT";
|
|
23529
23522
|
const soldOut = Boolean(input.sectionSoldOut) ||
|
|
23523
|
+
saleEndedSoldOut ||
|
|
23530
23524
|
isAdmissionSoldOut({
|
|
23531
23525
|
admission: input.admission,
|
|
23532
23526
|
section: input.section,
|
|
23533
23527
|
});
|
|
23534
23528
|
const disabled = soldOut || saleNotStarted || saleEnded;
|
|
23529
|
+
const status = admissionStatus({
|
|
23530
|
+
saleEnded,
|
|
23531
|
+
soldOut,
|
|
23532
|
+
value: input.admission.saleEndsBehavior,
|
|
23533
|
+
});
|
|
23535
23534
|
return {
|
|
23536
23535
|
disabled,
|
|
23537
23536
|
label: admissionSaleLabel(input.admission, zone),
|
|
@@ -23539,6 +23538,8 @@ function getAdmissionDisplayState(input) {
|
|
|
23539
23538
|
postSale: saleEnded,
|
|
23540
23539
|
showScarcity: showScarcity(input.admission, soldOut, disabled),
|
|
23541
23540
|
soldOut,
|
|
23541
|
+
statusLabel: status?.text ?? null,
|
|
23542
|
+
statusTone: status?.tone ?? null,
|
|
23542
23543
|
};
|
|
23543
23544
|
}
|
|
23544
23545
|
function quoteItemUnits(item) {
|
|
@@ -23548,29 +23549,35 @@ function getAdmissionPriceDisplay(input) {
|
|
|
23548
23549
|
const item = input.quoteItem ?? input.previewItem;
|
|
23549
23550
|
if (item) {
|
|
23550
23551
|
const units = quoteItemUnits(item);
|
|
23551
|
-
const
|
|
23552
|
+
const base = Math.round(Math.max((item.price.base + item.price.discount) / units, 0));
|
|
23553
|
+
const fees = Math.round(item.price.booking / units);
|
|
23552
23554
|
if (!item.price.discount || item.price.discount >= 0) {
|
|
23553
23555
|
return {
|
|
23556
|
+
base,
|
|
23554
23557
|
discounted: false,
|
|
23555
|
-
|
|
23558
|
+
fees,
|
|
23556
23559
|
};
|
|
23557
23560
|
}
|
|
23558
23561
|
return {
|
|
23562
|
+
base,
|
|
23559
23563
|
discounted: true,
|
|
23560
|
-
|
|
23561
|
-
|
|
23564
|
+
fees,
|
|
23565
|
+
gross: Math.round(item.price.base / units),
|
|
23562
23566
|
};
|
|
23563
23567
|
}
|
|
23564
23568
|
if (input.initialPrice && input.initialPrice.discount < 0) {
|
|
23569
|
+
const fees = input.admission.price.booking ?? 0;
|
|
23565
23570
|
return {
|
|
23571
|
+
base: Math.max(input.initialPrice.total - fees, 0),
|
|
23566
23572
|
discounted: true,
|
|
23567
|
-
|
|
23568
|
-
|
|
23573
|
+
fees,
|
|
23574
|
+
gross: Math.max(input.initialPrice.gross - fees, 0),
|
|
23569
23575
|
};
|
|
23570
23576
|
}
|
|
23571
23577
|
return {
|
|
23578
|
+
base: input.admission.price.base ?? 0,
|
|
23572
23579
|
discounted: false,
|
|
23573
|
-
|
|
23580
|
+
fees: input.admission.price.booking ?? 0,
|
|
23574
23581
|
};
|
|
23575
23582
|
}
|
|
23576
23583
|
function quoteItemsBySelection(quote) {
|
|
@@ -23579,7 +23586,7 @@ function quoteItemsBySelection(quote) {
|
|
|
23579
23586
|
function admissionPriceSavings(price) {
|
|
23580
23587
|
if (!price.discounted || price.gross === undefined)
|
|
23581
23588
|
return 0;
|
|
23582
|
-
return Math.max(price.gross - price.
|
|
23589
|
+
return Math.max(price.gross - price.base, 0);
|
|
23583
23590
|
}
|
|
23584
23591
|
function previewQuoteItems(event) {
|
|
23585
23592
|
const ids = new Set(event.sections.map((section) => section.id));
|
|
@@ -23600,22 +23607,20 @@ function previewQuoteItems(event) {
|
|
|
23600
23607
|
}
|
|
23601
23608
|
|
|
23602
23609
|
const sessionServicesTicketingCss = () => `:host{--background:transparent;--foreground:oklch(0.21 0.006 285.885);--card:oklch(1 0 0);--card-foreground:oklch(0.21 0.006 285.885);--popover:oklch(1 0 0);--popover-foreground:oklch(0.21 0.006 285.885);--primary:oklch(0.537 0.1554 255);--primary-foreground:oklch(0.985 0 0);--secondary:oklch(0 0 0 / 4%);--secondary-foreground:oklch(0.21 0.006 285.885);--muted:oklch(0 0 0 / 4%);--muted-foreground:oklch(0.442 0.017 285.786);--accent:oklch(0 0 0 / 4%);--accent-foreground:oklch(0.21 0.006 285.885);--destructive:oklch(0.637 0.237 25.331);--destructive-foreground:oklch(0.505 0.213 27.518);--border:oklch(0 0 0 / 12%);--input:oklch(0 0 0 / 12%);--ring:oklch(0.705 0.015 286.067);--success:oklch(0.696 0.17 162.48);--warning:oklch(0.769 0.188 70.08);--info:oklch(0.623 0.214 259.815);--info-foreground:oklch(0.488 0.243 264.376);--backdrop:oklch(0 0 0 / 0.32);--radius:0.625rem;--spacing-xs:0.25rem;--spacing-sm:0.5rem;--spacing-md:1rem;--spacing-lg:1.5rem;--spacing-xl:2rem;--font-family:ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
|
|
23603
|
-
Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;--font-size-xs:0.75rem;--font-size-sm:0.875rem;--font-size-base:1rem;--font-size-lg:1.125rem;--font-size-xl:1.25rem;--font-size-2xl:1.5rem;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--shadow-sm:0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 1px 2px -1px hsl(0 0% 0% / 0.1);--shadow-base:0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 1px 2px -1px hsl(0 0% 0% / 0.1);--shadow-md:0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 2px 4px -1px hsl(0 0% 0% / 0.1);--shadow-lg:0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 4px 6px -1px hsl(0 0% 0% / 0.1);--shadow-xl:0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 8px 10px -1px hsl(0 0% 0% / 0.1);--shadow-edge-light:0 1px oklch(0 0 0 / 4%);--shadow-edge-dark:0 -1px oklch(1 0 0 / 8%);--transition-fast:150ms cubic-bezier(0.4, 0, 0.2, 1);--transition-base:200ms cubic-bezier(0.4, 0, 0.2, 1);--transition-slow:300ms cubic-bezier(0.4, 0, 0.2, 1);--internal-background:var(--background, transparent);--internal-foreground:var(--foreground, oklch(0.21 0.006 285.885));--internal-card:var(--card, oklch(1 0 0));--internal-popover:var(--popover, oklch(1 0 0));--internal-popover-foreground:var(--popover-foreground, oklch(0.21 0.006 285.885));--internal-primary:var(--primary, oklch(0.537 0.1554 255));--internal-primary-foreground:var(--primary-foreground, oklch(0.985 0 0));--internal-secondary:var(--secondary, oklch(0 0 0 / 4%));--internal-muted:var(--muted, oklch(0 0 0 / 4%));--internal-muted-foreground:var(--muted-foreground, oklch(0.442 0.017 285.786));--internal-accent:var(--accent, oklch(0 0 0 / 4%));--internal-accent-foreground:var(--accent-foreground, oklch(0.21 0.006 285.885));--internal-destructive:var(--destructive, oklch(0.637 0.237 25.331));--internal-border:var(--border, oklch(0 0 0 / 12%));--internal-input:var(--input, oklch(0 0 0 / 12%));--internal-ring:var(--ring, oklch(0.705 0.015 286.067));--internal-success:var(--success, oklch(0.696 0.17 162.48));--internal-warning:var(--warning, oklch(0.769 0.188 70.08));--internal-info:var(--info, oklch(0.623 0.214 259.815));--internal-info-foreground:var(--info-foreground, oklch(0.488 0.243 264.376));--internal-backdrop:var(--backdrop, oklch(0 0 0 / 0.32));--internal-radius:var(--radius, 0.625rem);--internal-spacing-xs:var(--spacing-xs, 0.25rem);--internal-spacing-sm:var(--spacing-sm, 0.5rem);--internal-spacing-md:var(--spacing-md, 1rem);--internal-spacing-lg:var(--spacing-lg, 1.5rem);--internal-spacing-xl:var(--spacing-xl, 2rem);--internal-font-family:var(--font-family, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif);--internal-font-size-xs:var(--font-size-xs, 0.75rem);--internal-font-size-sm:var(--font-size-sm, 0.875rem);--internal-font-size-base:var(--font-size-base, 1rem);--internal-font-size-lg:var(--font-size-lg, 1.125rem);--internal-font-size-xl:var(--font-size-xl, 1.25rem);--internal-font-weight-medium:var(--font-weight-medium, 500);--internal-font-weight-semibold:var(--font-weight-semibold, 600);--internal-font-weight-bold:var(--font-weight-bold, 700);--internal-shadow-lg:var(--shadow-lg, 0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 4px 6px -1px hsl(0 0% 0% / 0.1));--internal-shadow-xl:var(--shadow-xl, 0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 8px 10px -1px hsl(0 0% 0% / 0.1));--internal-shadow-edge-light:var(--shadow-edge-light, 0 1px oklch(0 0 0 / 4%));--internal-transition-fast:var(--transition-fast, 150ms cubic-bezier(0.4, 0, 0.2, 1));--internal-transition-base:var(--transition-base, 200ms cubic-bezier(0.4, 0, 0.2, 1));--internal-transition-slow:var(--transition-slow, 300ms cubic-bezier(0.4, 0, 0.2, 1));display:block;font-family:var(--internal-font-family);color:var(--internal-foreground);background:var(--internal-background)}*{box-sizing:border-box;margin:0;padding:0}*:focus{outline:none}*:focus-visible{outline:2px solid var(--internal-ring);outline-offset:2px;border-radius:calc(var(--internal-radius) - 4px)}.session-services-ticketing-container{width:100%;max-width:100%;margin:0}:host([data-theme="dark"]){--background:transparent;--foreground:oklch(0.967 0.001 286.375);--card:color-mix(
|
|
23610
|
+
Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;--font-size-xs:0.75rem;--font-size-sm:0.875rem;--font-size-base:1rem;--font-size-lg:1.125rem;--font-size-xl:1.25rem;--font-size-2xl:1.5rem;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--shadow-sm:0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 1px 2px -1px hsl(0 0% 0% / 0.1);--shadow-base:0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 1px 2px -1px hsl(0 0% 0% / 0.1);--shadow-md:0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 2px 4px -1px hsl(0 0% 0% / 0.1);--shadow-lg:0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 4px 6px -1px hsl(0 0% 0% / 0.1);--shadow-xl:0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 8px 10px -1px hsl(0 0% 0% / 0.1);--shadow-edge-light:0 1px oklch(0 0 0 / 4%);--shadow-edge-dark:0 -1px oklch(1 0 0 / 8%);--transition-fast:150ms cubic-bezier(0.4, 0, 0.2, 1);--transition-base:200ms cubic-bezier(0.4, 0, 0.2, 1);--transition-slow:300ms cubic-bezier(0.4, 0, 0.2, 1);--internal-background:var(--background, transparent);--internal-foreground:var(--foreground, oklch(0.21 0.006 285.885));--internal-card:var(--card, oklch(1 0 0));--internal-popover:var(--popover, oklch(1 0 0));--internal-popover-foreground:var(--popover-foreground, oklch(0.21 0.006 285.885));--internal-primary:var(--primary, oklch(0.537 0.1554 255));--internal-primary-foreground:var(--primary-foreground, oklch(0.985 0 0));--internal-secondary:var(--secondary, oklch(0 0 0 / 4%));--internal-muted:var(--muted, oklch(0 0 0 / 4%));--internal-muted-foreground:var(--muted-foreground, oklch(0.442 0.017 285.786));--internal-accent:var(--accent, oklch(0 0 0 / 4%));--internal-accent-foreground:var(--accent-foreground, oklch(0.21 0.006 285.885));--internal-destructive:var(--destructive, oklch(0.637 0.237 25.331));--internal-border:var(--border, oklch(0 0 0 / 12%));--internal-input:var(--input, oklch(0 0 0 / 12%));--internal-ring:var(--ring, oklch(0.705 0.015 286.067));--internal-success:var(--success, oklch(0.696 0.17 162.48));--internal-warning:var(--warning, oklch(0.769 0.188 70.08));--internal-info:var(--info, oklch(0.623 0.214 259.815));--internal-info-foreground:var(--info-foreground, oklch(0.488 0.243 264.376));--internal-backdrop:var(--backdrop, oklch(0 0 0 / 0.32));--internal-radius:var(--radius, 0.625rem);--internal-spacing-xs:var(--spacing-xs, 0.25rem);--internal-spacing-sm:var(--spacing-sm, 0.5rem);--internal-spacing-md:var(--spacing-md, 1rem);--internal-spacing-lg:var(--spacing-lg, 1.5rem);--internal-spacing-xl:var(--spacing-xl, 2rem);--internal-font-family:var(--font-family, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif);--internal-font-size-xs:var(--font-size-xs, 0.75rem);--internal-font-size-sm:var(--font-size-sm, 0.875rem);--internal-font-size-base:var(--font-size-base, 1rem);--internal-font-size-lg:var(--font-size-lg, 1.125rem);--internal-font-size-xl:var(--font-size-xl, 1.25rem);--internal-font-weight-medium:var(--font-weight-medium, 500);--internal-font-weight-semibold:var(--font-weight-semibold, 600);--internal-font-weight-bold:var(--font-weight-bold, 700);--internal-shadow-lg:var(--shadow-lg, 0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 4px 6px -1px hsl(0 0% 0% / 0.1));--internal-shadow-xl:var(--shadow-xl, 0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 8px 10px -1px hsl(0 0% 0% / 0.1));--internal-shadow-edge-light:var(--shadow-edge-light, 0 1px oklch(0 0 0 / 4%));--internal-transition-fast:var(--transition-fast, 150ms cubic-bezier(0.4, 0, 0.2, 1));--internal-transition-base:var(--transition-base, 200ms cubic-bezier(0.4, 0, 0.2, 1));--internal-transition-slow:var(--transition-slow, 300ms cubic-bezier(0.4, 0, 0.2, 1));display:block;font-family:var(--internal-font-family);color:var(--internal-foreground);background:var(--internal-background)}*{box-sizing:border-box;margin:0;padding:0}button,input,select,textarea{font:inherit}*:focus{outline:none}*:focus-visible{outline:2px solid var(--internal-ring);outline-offset:2px;border-radius:calc(var(--internal-radius) - 4px)}.session-services-ticketing-container{width:100%;max-width:100%;margin:0}:host([data-theme="dark"]){--background:transparent;--foreground:oklch(0.967 0.001 286.375);--card:color-mix(
|
|
23604
23611
|
in srgb,
|
|
23605
23612
|
oklch(0.21 0.006 285.885) 80%,
|
|
23606
23613
|
oklch(0.141 0.005 285.823)
|
|
23607
|
-
);--card-foreground:oklch(0.967 0.001 286.375);--popover:oklch(0.21 0.006 285.885);--popover-foreground:oklch(0.967 0.001 286.375);--primary:oklch(0.537 0.1554 255);--primary-foreground:oklch(0.985 0 0);--secondary:oklch(1 0 0 / 6%);--secondary-foreground:oklch(0.967 0.001 286.375);--muted:oklch(1 0 0 / 6%);--muted-foreground:oklch(0.705 0.015 286.067);--accent:oklch(1 0 0 / 6%);--accent-foreground:oklch(0.967 0.001 286.375);--destructive:oklch(0.637 0.237 25.331);--destructive-foreground:oklch(0.704 0.191 22.216);--border:oklch(1 0 0 / 12%);--input:oklch(1 0 0 / 12%);--ring:oklch(0.552 0.016 285.938);--success:oklch(0.696 0.17 162.48);--warning:oklch(0.769 0.188 70.08);--info:oklch(0.623 0.214 259.815);--info-foreground:oklch(0.707 0.165 254.624)}.tickets-wrapper{padding:0;width:100%}.tickets-heading{color:var(--internal-foreground);font-size:var(--internal-font-size-lg);font-weight:var(--internal-font-weight-semibold);margin:0 0 var(--internal-spacing-md)}.
|
|
23608
|
-
var(--internal-spacing-lg);font-size:var(--internal-font-size-base);font-weight:var(--internal-font-weight-bold);
|
|
23609
|
-
var(--internal-spacing-sm);background:var(--internal-card);color:var(--internal-foreground);border-radius:calc(var(--internal-radius) - 2px);font:inherit}.passcode-form input:disabled{opacity:0.6;cursor:not-allowed}.ticket-section{background:var(--internal-card);border-radius:var(--internal-radius);margin:0 0 var(--internal-spacing-lg) 0;overflow:hidden;width:100%;transition:all var(--internal-transition-base)}.tickets-wrapper>.ticket-section:last-child{margin-bottom:0}.ticket-section.section-sold-out{position:relative}.ticket-section.section-sold-out .section-header{padding-bottom:var(--internal-spacing-md)}.ticket-section.section-sold-out .section-name,.ticket-section.section-sold-out .section-time,.ticket-section.section-sold-out .section-venue{opacity:0.8}.ticket-section.section-sold-out .admissions-list{opacity:0.6;pointer-events:none;filter:grayscale(0.3)}.ticket-section.section-sold-out .admission-card{background:var(--internal-card)}.ticket-section.section-sold-out .quantity-controls,.ticket-section.section-sold-out .sold-out-controls{opacity:0.7}.section-header{padding:var(--internal-spacing-md) var(--internal-spacing-lg);border-bottom:1px solid var(--internal-border);background:var(--internal-card)}.section-name{color:var(--internal-foreground);font-size:var(--internal-font-size-lg);font-weight:var(--internal-font-weight-semibold);letter-spacing:-0.025em;margin:0 0 var(--internal-spacing-xs) 0;display:flex;align-items:center;gap:var(--internal-spacing-sm)}.section-time,.section-venue{color:var(--internal-muted-foreground);font-size:var(--internal-font-size-sm);display:flex;align-items:center;gap:var(--internal-spacing-xs)}.section-time,.admission-time{margin-bottom:var(--internal-spacing-xs)}.section-time svg,.section-venue svg,.admission-time svg,.admission-venue svg{width:calc(var(--internal-spacing-sm) + var(--internal-spacing-xs));height:calc(var(--internal-spacing-sm) + var(--internal-spacing-xs));flex-shrink:0;opacity:0.8}.admissions-list{padding:0}.admission-card{border-bottom:1px solid var(--internal-border);padding:var(--internal-spacing-md) var(--internal-spacing-lg);position:relative;transition:background-color var(--internal-transition-base);cursor:default}.admission-card:focus-visible{outline:2px solid var(--internal-ring);outline-offset:-2px;z-index:1}.admission-card.sold-out{background:var(--internal-card)}.admission-card.unavailable{opacity:0.72}.admission-card.sold-out .admission-price{opacity:0.5}.admission-card:last-child{border-bottom:none}.admission-content{display:flex;justify-content:space-between;align-items:center}.admission-details{flex:1}.admission-header{display:flex;justify-content:space-between;align-items:flex-start;gap:var(--internal-spacing-md);margin-bottom:var(--internal-spacing-sm)}.admission-header-text{flex:1;min-width:0}.admission-title{color:var(--internal-foreground);font-size:var(--internal-font-size-lg);font-weight:var(--internal-font-weight-semibold);margin-bottom:0;display:flex;align-items:center;gap:var(--internal-spacing-sm)}.admission-subtitle{color:var(--internal-muted-foreground);font-size:var(--internal-font-size-sm);margin-top:var(--internal-spacing-xs);line-height:1.4}.more-info-badge{display:inline-flex;align-items:center;gap:calc(var(--internal-spacing-xs) * 1.5);padding:calc(var(--internal-spacing-xs) * 1.5) var(--internal-spacing-sm);background:oklch(from var(--internal-info) l c h / 0.08);color:var(--internal-info-foreground);border-radius:calc(var(--internal-radius) - 2px);font-size:var(--internal-font-size-xs);font-weight:var(--internal-font-weight-medium);cursor:pointer;transition:all var(--internal-transition-fast);white-space:nowrap;flex-shrink:0}.more-info-badge:hover{background:oklch(from var(--internal-info) l c h / 0.16)}.more-info-badge:focus-visible{outline:2px solid var(--internal-ring);outline-offset:2px}.more-info-badge svg{flex-shrink:0}.admission-time,.admission-venue{color:var(--internal-muted-foreground);font-size:var(--internal-font-size-sm);display:flex;align-items:center;gap:var(--internal-spacing-xs)}.admission-venue{margin-bottom:var(--internal-spacing-sm)}.solo-admission .admission-content{flex-direction:column;align-items:stretch}.solo-admission .admission-details{width:100%}.solo-admission .admission-price-info{margin-top:var(--internal-spacing-md);display:flex;justify-content:space-between;align-items:center;width:100%}.solo-admission .quantity-controls{margin-left:auto;flex-shrink:0}.
|
|
23614
|
+
);--card-foreground:oklch(0.967 0.001 286.375);--popover:oklch(0.21 0.006 285.885);--popover-foreground:oklch(0.967 0.001 286.375);--primary:oklch(0.537 0.1554 255);--primary-foreground:oklch(0.985 0 0);--secondary:oklch(1 0 0 / 6%);--secondary-foreground:oklch(0.967 0.001 286.375);--muted:oklch(1 0 0 / 6%);--muted-foreground:oklch(0.705 0.015 286.067);--accent:oklch(1 0 0 / 6%);--accent-foreground:oklch(0.967 0.001 286.375);--destructive:oklch(0.637 0.237 25.331);--destructive-foreground:oklch(0.704 0.191 22.216);--border:oklch(1 0 0 / 12%);--input:oklch(1 0 0 / 12%);--ring:oklch(0.552 0.016 285.938);--success:oklch(0.696 0.17 162.48);--warning:oklch(0.769 0.188 70.08);--info:oklch(0.623 0.214 259.815);--info-foreground:oklch(0.707 0.165 254.624)}.tickets-wrapper{padding:0;width:100%}.tickets-heading{color:var(--internal-foreground);font-size:var(--internal-font-size-lg);font-weight:var(--internal-font-weight-semibold);margin:0 0 var(--internal-spacing-md)}.ticket-section.loading-ticket-section{overflow:visible;background:transparent;border:0;box-shadow:none}.loading-ticket-section .admissions-list{display:flex;flex-direction:column;gap:var(--internal-spacing-sm)}.admission-card.loading-admission{min-height:5.25rem;padding:0;background:oklch(from var(--internal-foreground) l c h / 0.07);border:0;border-radius:var(--internal-radius);box-shadow:none;pointer-events:none;animation:loading-card 1.6s ease-out infinite}@keyframes loading-card{0%,100%{opacity:0.48}50%{opacity:0.74}}.passcode-form,.passcode-form input,.ticket-section,.more-info-badge,.quantity-controls,.sold-out-controls,.coupon-row,.coupon-apply,.coupon-remove{border:1px solid var(--internal-input);box-shadow:var(--internal-shadow-edge-light)}.external-ticket-button,.checkout-btn{display:inline-flex;align-items:center;justify-content:center;background:var(--internal-primary);color:var(--internal-primary-foreground);border:1px solid oklch(from var(--internal-primary) calc(l - 0.08) c h);border-radius:calc(var(--internal-radius) - 2px);cursor:pointer;box-shadow:var(--internal-shadow-edge-light);transition:all var(--internal-transition-fast)}.external-ticket-button:hover,.checkout-btn:hover:not(:disabled){background:oklch(from var(--internal-primary) calc(l - 0.08) c h);transform:translateY(-1px)}.external-ticket-button:focus-visible{outline:2px solid var(--internal-ring);outline-offset:2px}.passcode-form{display:flex;flex-direction:column;gap:var(--internal-spacing-sm);padding:var(--internal-spacing-lg);margin-bottom:var(--internal-spacing-md);background:var(--internal-card);border-radius:var(--internal-radius)}.passcode-form h2{color:var(--internal-foreground);font-size:var(--internal-font-size-base);font-weight:var(--internal-font-weight-semibold);line-height:1.3}.passcode-form p{color:var(--internal-muted-foreground);font-size:var(--internal-font-size-sm);line-height:1.5}.door-alert,.empty-ticketing-state,.message-state{display:flex;flex-direction:column;gap:calc(var(--internal-spacing-xs) * 1.5);margin-bottom:var(--internal-spacing-md);padding:0;background:transparent;border:none;border-radius:0;box-shadow:none}.door-alert strong,.empty-ticketing-state strong,.message-state strong{color:var(--internal-foreground);font-size:var(--internal-font-size-base);font-weight:var(--internal-font-weight-semibold);line-height:1.3}.door-alert span,.empty-ticketing-state span,.message-state span{color:var(--internal-muted-foreground);font-size:var(--internal-font-size-sm);line-height:1.4}.external-ticket-button{flex-direction:column;gap:calc(var(--internal-spacing-xs) * 0.5);width:100%;padding:calc(var(--internal-spacing-sm) + var(--internal-spacing-xs))
|
|
23615
|
+
var(--internal-spacing-lg);text-decoration:none}.external-ticket-panel{display:flex;flex-direction:column;gap:var(--internal-spacing-md)}.external-ticket-warning{color:var(--internal-muted-foreground);font-size:var(--internal-font-size-sm);font-weight:var(--internal-font-weight-medium);line-height:1.35}.external-ticket-label{font-size:var(--internal-font-size-base);font-weight:var(--internal-font-weight-bold);line-height:1.2}.external-ticket-domain{font-size:var(--internal-font-size-xs);font-weight:var(--internal-font-weight-medium);line-height:1.2;opacity:0.82}.passcode-form input{width:100%;min-width:0;padding:calc(var(--internal-spacing-sm) + 0.125rem)
|
|
23616
|
+
var(--internal-spacing-sm);background:var(--internal-card);color:var(--internal-foreground);border-radius:calc(var(--internal-radius) - 2px);font:inherit}.passcode-form input:disabled{opacity:0.6;cursor:not-allowed}.ticket-section{background:var(--internal-card);border-radius:var(--internal-radius);margin:0 0 var(--internal-spacing-lg) 0;overflow:hidden;width:100%;transition:all var(--internal-transition-base)}.tickets-wrapper>.ticket-section:last-child{margin-bottom:0}.ticket-section.section-sold-out{position:relative}.ticket-section.section-sold-out .section-header{padding-bottom:var(--internal-spacing-md)}.ticket-section.section-sold-out .section-name,.ticket-section.section-sold-out .section-time,.ticket-section.section-sold-out .section-venue{opacity:0.8}.ticket-section.section-sold-out .admissions-list{opacity:0.6;pointer-events:none;filter:grayscale(0.3)}.ticket-section.section-sold-out .admission-card{background:var(--internal-card)}.ticket-section.section-sold-out .quantity-controls,.ticket-section.section-sold-out .sold-out-controls{opacity:0.7}.section-header{padding:var(--internal-spacing-md) var(--internal-spacing-lg);border-bottom:1px solid var(--internal-border);background:var(--internal-card)}.section-name{color:var(--internal-foreground);font-size:var(--internal-font-size-lg);font-weight:var(--internal-font-weight-semibold);letter-spacing:-0.025em;margin:0 0 var(--internal-spacing-xs) 0;display:flex;align-items:center;gap:var(--internal-spacing-sm)}.section-time,.section-venue{color:var(--internal-muted-foreground);font-size:var(--internal-font-size-sm);display:flex;align-items:center;gap:var(--internal-spacing-xs)}.section-time,.admission-time{margin-bottom:var(--internal-spacing-xs)}.section-time svg,.section-venue svg,.admission-time svg,.admission-venue svg{width:calc(var(--internal-spacing-sm) + var(--internal-spacing-xs));height:calc(var(--internal-spacing-sm) + var(--internal-spacing-xs));flex-shrink:0;opacity:0.8}.admissions-list{padding:0}.admission-card{border-bottom:1px solid var(--internal-border);padding:var(--internal-spacing-md) var(--internal-spacing-lg);position:relative;transition:background-color var(--internal-transition-base);cursor:default}.admission-card:focus-visible{outline:2px solid var(--internal-ring);outline-offset:-2px;z-index:1}.admission-card.sold-out{background:var(--internal-card)}.admission-card.unavailable{opacity:0.72}.admission-card.sold-out .admission-price{opacity:0.5}.admission-card:last-child{border-bottom:none}.admission-content{display:flex;justify-content:space-between;align-items:center}.admission-details{flex:1}.admission-header{display:flex;justify-content:space-between;align-items:flex-start;gap:var(--internal-spacing-md);margin-bottom:var(--internal-spacing-sm)}.admission-header-text{flex:1;min-width:0}.admission-title{color:var(--internal-foreground);font-size:var(--internal-font-size-lg);font-weight:var(--internal-font-weight-semibold);margin-bottom:0;display:flex;align-items:center;gap:var(--internal-spacing-sm)}.admission-subtitle{color:var(--internal-muted-foreground);font-size:var(--internal-font-size-sm);margin-top:var(--internal-spacing-xs);line-height:1.4}.more-info-badge{display:inline-flex;align-items:center;gap:calc(var(--internal-spacing-xs) * 1.5);padding:calc(var(--internal-spacing-xs) * 1.5) var(--internal-spacing-sm);background:oklch(from var(--internal-info) l c h / 0.08);color:var(--internal-info-foreground);border-radius:calc(var(--internal-radius) - 2px);font-size:var(--internal-font-size-xs);font-weight:var(--internal-font-weight-medium);cursor:pointer;transition:all var(--internal-transition-fast);white-space:nowrap;flex-shrink:0}.more-info-badge:hover{background:oklch(from var(--internal-info) l c h / 0.16)}.more-info-badge:focus-visible{outline:2px solid var(--internal-ring);outline-offset:2px}.more-info-badge svg{flex-shrink:0}.admission-time,.admission-venue{color:var(--internal-muted-foreground);font-size:var(--internal-font-size-sm);display:flex;align-items:center;gap:var(--internal-spacing-xs)}.admission-venue{margin-bottom:var(--internal-spacing-sm)}.solo-admission .admission-content{flex-direction:column;align-items:stretch}.solo-admission .admission-details{width:100%}.solo-admission .admission-price-info{margin-top:var(--internal-spacing-md);display:flex;justify-content:space-between;align-items:center;width:100%}.solo-admission .quantity-controls{margin-left:auto;flex-shrink:0}.admission-price-info{display:flex;align-items:center;justify-content:space-between;gap:var(--internal-spacing-sm);margin-bottom:var(--internal-spacing-sm);width:100%}.admission-price-wrapper{display:flex;flex-direction:column;row-gap:calc(var(--internal-spacing-xs) * 0.5)}.admission-price{color:var(--internal-foreground);font-size:var(--internal-font-size-xl);font-weight:var(--internal-font-weight-bold);letter-spacing:-0.025em;line-height:1.1}.admission-price-row{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--internal-spacing-sm)}.admission-price-original{color:var(--internal-muted-foreground);font-size:var(--internal-font-size-base);text-decoration:line-through}.admission-booking-fee{color:var(--internal-muted-foreground);font-size:var(--internal-font-size-xs);font-weight:var(--internal-font-weight-medium);line-height:1.2}.admission-savings,.admission-availability{font-size:var(--internal-font-size-xs);font-weight:var(--internal-font-weight-medium);line-height:1.2}.admission-savings{color:var(--internal-success)}.admission-availability{color:var(--internal-warning)}.admission-sale-label{display:block;margin-top:var(--internal-spacing-xs);color:var(--internal-muted-foreground);font-size:var(--internal-font-size-sm);font-weight:var(--internal-font-weight-medium);line-height:1.35}.admission-sale-label.success{color:var(--internal-success)}.quantity-controls{display:inline-flex;align-items:center;gap:0;background:var(--internal-secondary);border-radius:calc(var(--internal-radius) - 2px);overflow:hidden;transition:all var(--internal-transition-fast)}.quantity-controls:has(.quantity-value:focus-visible){box-shadow:0 0 0 2px var(--internal-ring)}.quantity-btn{width:calc(var(--internal-spacing-lg) * 1.5);height:calc(var(--internal-spacing-lg) * 1.5);border:none;background:transparent;color:var(--internal-muted-foreground);font-size:var(--internal-font-size-base);font-weight:var(--internal-font-weight-medium);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all var(--internal-transition-fast);position:relative}.quantity-btn:focus-visible{outline:2px solid var(--internal-ring);outline-offset:-2px;z-index:1}.quantity-btn:hover:not(:disabled){background:var(--internal-accent);color:var(--internal-accent-foreground)}.quantity-btn:active:not(:disabled){transform:scale(0.95)}.quantity-btn:disabled{opacity:0.6;cursor:not-allowed;background:var(--internal-secondary);color:var(--internal-muted-foreground);border-color:var(--internal-border)}.quantity-btn.decrease{border-right:1px solid var(--internal-input)}.quantity-btn.increase{border-left:1px solid var(--internal-input)}.quantity-value{appearance:textfield;width:2.75rem;height:calc(var(--internal-spacing-lg) * 1.5);border:none;background:transparent;min-width:2.5rem;text-align:center;font-size:var(--internal-font-size-sm);font-weight:var(--internal-font-weight-semibold);color:var(--internal-foreground);padding:0 var(--internal-spacing-xs)}.quantity-value:focus-visible{outline:none}.quantity-value::-webkit-inner-spin-button,.quantity-value::-webkit-outer-spin-button{appearance:none;margin:0}.quantity-value:disabled{opacity:0.6;cursor:not-allowed}.sold-out-controls{display:inline-flex;align-items:center;justify-content:center;min-width:calc(var(--internal-spacing-lg) * 1.5 * 2 + 2.5rem);height:calc(var(--internal-spacing-lg) * 1.5);padding:0;background:transparent;border:none;box-shadow:none}.sold-out-controls,.sold-out-text{color:var(--internal-destructive);font-size:var(--internal-font-size-xs);font-weight:var(--internal-font-weight-medium);letter-spacing:0.025em;text-transform:uppercase}.sold-out-controls.success,.sold-out-controls.success .sold-out-text{color:var(--internal-success)}.checkout-actions{margin:var(--internal-spacing-lg) 0 0 0;width:100%}.coupon-panel{margin-bottom:var(--internal-spacing-md)}.coupon-row{position:relative;display:flex;align-items:center;width:100%;min-width:0;overflow:hidden;background:var(--internal-background);background-clip:padding-box;border-radius:var(--internal-radius);transition:border-color var(--internal-transition-fast)}.coupon-row:focus-within{border-color:var(--internal-ring)}.coupon-row:has(input[aria-invalid="true"]){border-color:var(--internal-destructive)}.coupon-row:has(input:disabled){opacity:0.64}.coupon-row input{width:100%;min-width:0;padding:calc(var(--internal-spacing-sm) - 1px)
|
|
23610
23617
|
calc(var(--internal-spacing-xl) * 2.75)
|
|
23611
23618
|
calc(var(--internal-spacing-sm) - 1px)
|
|
23612
|
-
calc(var(--internal-spacing-md) - 1px);background:var(--internal-card);color:var(--internal-foreground);border:none;border-radius:inherit;font:inherit;font-size:var(--internal-font-size-sm);line-height:1.25rem;outline:none}.coupon-row input::placeholder{color:oklch(from var(--internal-muted-foreground) l c h / 0.64)}.coupon-row input:disabled{cursor:not-allowed}.coupon-apply,.coupon-remove{position:absolute;right:calc((var(--internal-spacing-xs) * 1.5) - 3px);top:50%;transform:translateY(-50%);padding:calc(var(--internal-spacing-xs) * 1.25) var(--internal-spacing-sm);background:var(--internal-secondary);color:var(--internal-foreground);border-radius:calc(var(--internal-radius) - 2px);font-size:var(--internal-font-size-
|
|
23613
|
-
var(--internal-spacing-lg);font-size:var(--internal-font-size-base);font-weight:var(--internal-font-weight-bold);line-height:1.25;position:relative;overflow:hidden}.checkout-btn:focus-visible{outline:2px solid var(--internal-ring);outline-offset:2px}.checkout-btn:active:not(:disabled){transform:translateY(0)}.checkout-btn:disabled{opacity:0.5;cursor:not-allowed}.checkout-spinner-wrapper{display:inline-flex;align-items:center;justify-content:center;height:1.25em;vertical-align:middle}.checkout-spinner{width:1.125em;height:1.125em;animation:checkout-spinner 0.8s linear infinite}@keyframes checkout-spinner{to{transform:rotate(360deg)}}.sticky-checkout-bar{position:fixed;right:0;bottom:0;left:0;z-index:40;display:none;padding:var(--internal-spacing-md);background:var(--internal-card);border-top:1px solid var(--internal-border);box-shadow:var(--internal-shadow-lg)}.sticky-checkout-btn.selection-prompt{animation:selection-prompt-shake 400ms ease-in-out}@keyframes selection-prompt-shake{0%,100%{transform:translateX(0)}25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}.
|
|
23614
|
-
from var(--internal-destructive) calc(l + 0.4) calc(c * 0.2) h / 0.05
|
|
23615
|
-
);border:1px solid oklch(from var(--internal-destructive) l c h / 0.2);border-radius:var(--internal-radius);padding:var(--internal-spacing-lg);margin:var(--internal-spacing-lg);text-align:center}.error-banner strong{display:block;color:var(--internal-destructive);font-size:var(--internal-font-size-lg);margin-bottom:var(--internal-spacing-sm)}.error-banner p{color:var(--internal-muted-foreground);margin-bottom:var(--internal-spacing-md)}.retry-button{background:var(--internal-primary);color:var(--internal-primary-foreground);border:1px solid oklch(from var(--internal-primary) calc(l - 0.08) c h);padding:calc(var(--internal-spacing-sm) + var(--internal-spacing-xs))
|
|
23619
|
+
calc(var(--internal-spacing-md) - 1px);background:var(--internal-card);color:var(--internal-foreground);border:none;border-radius:inherit;font:inherit;font-size:var(--internal-font-size-sm);line-height:1.25rem;outline:none}.coupon-row input::placeholder{color:oklch(from var(--internal-muted-foreground) l c h / 0.64)}.coupon-row input:disabled{cursor:not-allowed}.coupon-apply,.coupon-remove{position:absolute;right:calc((var(--internal-spacing-xs) * 1.5) - 3px);top:50%;transform:translateY(-50%);padding:calc(var(--internal-spacing-xs) * 1.25) var(--internal-spacing-sm);background:var(--internal-secondary);color:var(--internal-foreground);border-radius:calc(var(--internal-radius) - 2px);font-size:var(--internal-font-size-xs);font-weight:var(--internal-font-weight-medium);cursor:pointer;transition:all var(--internal-transition-fast)}.coupon-apply:hover:not(:disabled),.coupon-remove:hover:not(:disabled){background:oklch(from var(--internal-accent) l c h / 0.8)}.coupon-apply:focus-visible,.coupon-remove:focus-visible{outline:2px solid var(--internal-ring);outline-offset:-1px}.coupon-apply:disabled,.coupon-remove:disabled{opacity:0.6;cursor:not-allowed}.checkout-btn{width:100%;padding:calc(var(--internal-spacing-sm) + var(--internal-spacing-xs))
|
|
23620
|
+
var(--internal-spacing-lg);font-size:var(--internal-font-size-base);font-weight:var(--internal-font-weight-bold);line-height:1.25;position:relative;overflow:hidden}.checkout-btn:focus-visible{outline:2px solid var(--internal-ring);outline-offset:2px}.checkout-btn:active:not(:disabled){transform:translateY(0)}.checkout-btn:disabled{opacity:0.5;cursor:not-allowed}.checkout-spinner-wrapper{display:inline-flex;align-items:center;justify-content:center;height:1.25em;vertical-align:middle}.checkout-spinner{width:1.125em;height:1.125em;animation:checkout-spinner 0.8s linear infinite}@keyframes checkout-spinner{to{transform:rotate(360deg)}}.sticky-checkout-bar{position:fixed;right:0;bottom:0;left:0;z-index:40;display:none;padding:var(--internal-spacing-md);background:var(--internal-card);border-top:1px solid var(--internal-border);box-shadow:var(--internal-shadow-lg)}.sticky-checkout-btn.selection-prompt{animation:selection-prompt-shake 400ms ease-in-out}@keyframes selection-prompt-shake{0%,100%{transform:translateX(0)}25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}.retry-button{align-self:flex-start;margin-top:var(--internal-spacing-xs);background:var(--internal-primary);color:var(--internal-primary-foreground);border:1px solid oklch(from var(--internal-primary) calc(l - 0.08) c h);padding:calc(var(--internal-spacing-sm) + var(--internal-spacing-xs))
|
|
23616
23621
|
var(--internal-spacing-lg);border-radius:calc(var(--internal-radius) - 2px);font-size:var(--internal-font-size-sm);font-weight:var(--internal-font-weight-medium);cursor:pointer;transition:all var(--internal-transition-fast);box-shadow:var(--internal-shadow-edge-light)}.retry-button:focus-visible{outline:2px solid var(--internal-ring);outline-offset:2px}.retry-button:hover{background:oklch(from var(--internal-primary) calc(l - 0.08) c h);transform:translateY(-1px)}.retry-button:active{transform:translateY(0)}.error-message{background:oklch(
|
|
23617
23622
|
from var(--internal-destructive) calc(l + 0.4) calc(c * 0.2) h / 0.05
|
|
23618
|
-
);border:1px solid oklch(from var(--internal-destructive) l c h / 0.2);color:var(--internal-destructive);padding:var(--internal-spacing-sm) var(--internal-spacing-md);border-radius:var(--internal-radius);margin-bottom:var(--internal-spacing-md);font-size:var(--internal-font-size-sm)}@media (min-width: 768px){.ticket-section{border-radius:var(--internal-radius);margin:0 0 var(--internal-spacing-md) 0}}@media (max-width: 767px){:host([data-sticky-checkout="true"]) .session-services-ticketing-container{padding-bottom:calc(var(--internal-spacing-xl) * 3)}.sticky-checkout-bar{display:block}}.modal-backdrop{position:fixed;inset:0;z-index:50;display:flex;align-items:center;justify-content:center;padding:var(--internal-spacing-md);background:var(--internal-backdrop);backdrop-filter:blur(4px);animation:modal-backdrop-fade-in var(--internal-transition-base) ease-out}@keyframes modal-backdrop-fade-in{from{opacity:0}to{opacity:1}}.modal-content{position:relative;width:100%;max-width:32rem;max-height:calc(100vh - var(--internal-spacing-xl) * 2);overflow-y:auto;background:var(--internal-popover);color:var(--internal-popover-foreground);border:1px solid var(--internal-border);border-radius:var(--internal-radius);padding:var(--internal-spacing-lg);box-shadow:var(--internal-shadow-xl);animation:modal-content-scale-in var(--internal-transition-base) ease-out}@keyframes modal-content-scale-in{from{opacity:0;transform:scale(0.98)}to{opacity:1;transform:scale(1)}}.modal-close-btn{position:absolute;top:var(--internal-spacing-sm);right:var(--internal-spacing-sm);display:flex;align-items:center;justify-content:center;width:1.75rem;height:1.75rem;padding:0;background:transparent;border:1px solid transparent;border-radius:calc(var(--internal-radius) - 4px);color:var(--internal-muted-foreground);cursor:pointer;opacity:0.72;transition:all var(--internal-transition-fast)}.modal-close-btn:hover{opacity:1;background:var(--internal-accent)}.modal-close-btn:focus-visible{outline:2px solid var(--internal-ring);outline-offset:1px;opacity:1}.modal-header{margin-bottom:var(--internal-spacing-md);padding-right:var(--internal-spacing-xl)}.modal-title{font-size:var(--internal-font-size-xl);font-weight:var(--internal-font-weight-semibold);color:var(--internal-foreground);margin:0;line-height:1.2}.modal-subtitle{color:var(--internal-muted-foreground);font-size:var(--internal-font-size-sm);margin-top:var(--internal-spacing-xs);line-height:1.4}.modal-description{color:var(--internal-foreground);font-size:var(--internal-font-size-base);line-height:1.6;white-space:pre-wrap;margin:0}`;
|
|
23623
|
+
);border:1px solid oklch(from var(--internal-destructive) l c h / 0.2);color:var(--internal-destructive);padding:var(--internal-spacing-sm) var(--internal-spacing-md);border-radius:var(--internal-radius);margin-bottom:var(--internal-spacing-md);font-size:var(--internal-font-size-sm)}@media (min-width: 768px){.ticket-section{border-radius:var(--internal-radius);margin:0 0 var(--internal-spacing-md) 0}}@media (max-width: 767px){:host([data-sticky-checkout="true"]) .session-services-ticketing-container{padding-bottom:calc(var(--internal-spacing-xl) * 3)}:host([data-sticky-checkout="true"]) .checkout-actions>.checkout-btn,:host([data-sticky-checkout="true"]) .inline-external-ticket-button{display:none}.sticky-checkout-bar{display:block}}.modal-backdrop{position:fixed;inset:0;z-index:50;display:flex;align-items:center;justify-content:center;padding:var(--internal-spacing-md);background:var(--internal-backdrop);backdrop-filter:blur(4px);animation:modal-backdrop-fade-in var(--internal-transition-base) ease-out}@keyframes modal-backdrop-fade-in{from{opacity:0}to{opacity:1}}.modal-content{position:relative;width:100%;max-width:32rem;max-height:calc(100vh - var(--internal-spacing-xl) * 2);overflow-y:auto;background:var(--internal-popover);color:var(--internal-popover-foreground);border:1px solid var(--internal-border);border-radius:var(--internal-radius);padding:var(--internal-spacing-lg);box-shadow:var(--internal-shadow-xl);animation:modal-content-scale-in var(--internal-transition-base) ease-out}@keyframes modal-content-scale-in{from{opacity:0;transform:scale(0.98)}to{opacity:1;transform:scale(1)}}.modal-close-btn{position:absolute;top:var(--internal-spacing-sm);right:var(--internal-spacing-sm);display:flex;align-items:center;justify-content:center;width:1.75rem;height:1.75rem;padding:0;background:transparent;border:1px solid transparent;border-radius:calc(var(--internal-radius) - 4px);color:var(--internal-muted-foreground);cursor:pointer;opacity:0.72;transition:all var(--internal-transition-fast)}.modal-close-btn:hover{opacity:1;background:var(--internal-accent)}.modal-close-btn:focus-visible{outline:2px solid var(--internal-ring);outline-offset:1px;opacity:1}.modal-header{margin-bottom:var(--internal-spacing-md);padding-right:var(--internal-spacing-xl)}.modal-title{font-size:var(--internal-font-size-xl);font-weight:var(--internal-font-weight-semibold);color:var(--internal-foreground);margin:0;line-height:1.2}.modal-subtitle{color:var(--internal-muted-foreground);font-size:var(--internal-font-size-sm);margin-top:var(--internal-spacing-xs);line-height:1.4}.modal-description{color:var(--internal-foreground);font-size:var(--internal-font-size-base);line-height:1.6;white-space:pre-wrap;margin:0}`;
|
|
23619
23624
|
|
|
23620
23625
|
const quoteTotal = (quote) => quote.price?.total ?? 0;
|
|
23621
23626
|
const QUOTE_DEBOUNCE_MS = 150;
|
|
@@ -23654,6 +23659,16 @@ function eventVenueName(event) {
|
|
|
23654
23659
|
function optionalId(id) {
|
|
23655
23660
|
return id || undefined;
|
|
23656
23661
|
}
|
|
23662
|
+
function urlDomain(url) {
|
|
23663
|
+
if (!url)
|
|
23664
|
+
return "external site";
|
|
23665
|
+
try {
|
|
23666
|
+
return new URL(url).hostname.replace(/^www\./, "");
|
|
23667
|
+
}
|
|
23668
|
+
catch {
|
|
23669
|
+
return "external site";
|
|
23670
|
+
}
|
|
23671
|
+
}
|
|
23657
23672
|
function admissionAriaLabel(admission, section, status) {
|
|
23658
23673
|
if (section)
|
|
23659
23674
|
return `${admission.name} in ${section.name} - ${status}`;
|
|
@@ -24600,21 +24615,21 @@ const SessionsTicketing = /*@__PURE__*/ proxyCustomElement(class SessionsTicketi
|
|
|
24600
24615
|
previewItem: quoteItemsBySelection(this.previewQuote).get(key),
|
|
24601
24616
|
});
|
|
24602
24617
|
const savings = admissionPriceSavings(price);
|
|
24603
|
-
return (h$2("div", { class: "admission-price-info" }, h$2("div", { class: "admission-price-wrapper" }, this.renderAdmissionPrice(price),
|
|
24618
|
+
return (h$2("div", { class: "admission-price-info" }, h$2("div", { class: "admission-price-wrapper" }, savings > 0 && (h$2("span", { class: "admission-savings" }, "Save ", this.formatPriceValue(savings))), this.renderAdmissionPrice(price), price.fees > 0 && (h$2("span", { class: "admission-booking-fee" }, this.formatPriceValue(price.fees), " Booking Fee")), state.showScarcity && (h$2("span", { class: "admission-availability" }, admission.available, " tickets remaining")), state.label && (h$2("span", { class: `admission-sale-label ${state.label.tone}` }, state.label.text))), this.renderAdmissionControls(admission, sectionId, state, mode)));
|
|
24604
24619
|
}
|
|
24605
24620
|
renderAdmissionPrice(price) {
|
|
24606
24621
|
if (price.discounted) {
|
|
24607
|
-
return (h$2("span", { class: "admission-price-row" }, h$2("span", { class: "admission-price discounted" }, this.formatPriceValue(price.
|
|
24622
|
+
return (h$2("span", { class: "admission-price-row" }, h$2("span", { class: "admission-price discounted" }, this.formatPriceValue(price.base)), price.gross !== undefined && (h$2("span", { class: "admission-price-original" }, this.formatPriceValue(price.gross)))));
|
|
24608
24623
|
}
|
|
24609
|
-
return (h$2("span", { class: "admission-price" }, this.formatPriceValue(price.
|
|
24624
|
+
return (h$2("span", { class: "admission-price" }, this.formatPriceValue(price.base)));
|
|
24610
24625
|
}
|
|
24611
24626
|
renderAdmissionControls(admission, sectionId, state, mode) {
|
|
24612
|
-
if (
|
|
24613
|
-
return
|
|
24614
|
-
if (!state.soldOut) {
|
|
24615
|
-
return this.renderQuantityControls(admission, sectionId, state.disabled, state.maxQuantity);
|
|
24627
|
+
if (state.statusLabel) {
|
|
24628
|
+
return (h$2("div", { class: `sold-out-controls ${state.statusTone ?? ""}` }, h$2("span", { class: "sold-out-text" }, state.statusLabel)));
|
|
24616
24629
|
}
|
|
24617
|
-
|
|
24630
|
+
if (mode === "door")
|
|
24631
|
+
return null;
|
|
24632
|
+
return this.renderQuantityControls(admission, sectionId, state.disabled, state.maxQuantity);
|
|
24618
24633
|
}
|
|
24619
24634
|
renderAdmission(admission, event, section, isSectionSoldOut = false, mode = "default") {
|
|
24620
24635
|
const state = getAdmissionDisplayState({
|
|
@@ -24630,13 +24645,16 @@ const SessionsTicketing = /*@__PURE__*/ proxyCustomElement(class SessionsTicketi
|
|
|
24630
24645
|
return `admission-card ${state.soldOut ? "sold-out" : ""} ${state.disabled && !state.soldOut ? "unavailable" : ""} ${section ? "" : "solo-admission"}`;
|
|
24631
24646
|
}
|
|
24632
24647
|
getAdmissionAriaLabel(admission, section, state) {
|
|
24633
|
-
const status = this.admissionStatusText(admission, state.soldOut);
|
|
24648
|
+
const status = state.statusLabel ?? this.admissionStatusText(admission, state.soldOut);
|
|
24634
24649
|
return admissionAriaLabel(admission, section, status);
|
|
24635
24650
|
}
|
|
24636
24651
|
admissionStatusText(admission, soldOut) {
|
|
24637
24652
|
if (soldOut)
|
|
24638
24653
|
return "Sold Out";
|
|
24639
|
-
|
|
24654
|
+
if ((admission.price.booking ?? 0) <= 0) {
|
|
24655
|
+
return this.formatPriceValue(admission.price.base);
|
|
24656
|
+
}
|
|
24657
|
+
return `${this.formatPriceValue(admission.price.base)} plus ${this.formatPriceValue(admission.price.booking)} booking fee`;
|
|
24640
24658
|
}
|
|
24641
24659
|
renderAdmissionHeader(admission) {
|
|
24642
24660
|
return (h$2("div", { class: "admission-header" }, h$2("div", { class: "admission-header-text" }, h$2("h3", { class: "admission-title" }, admission.name), admission.subtitle && (h$2("p", { class: "admission-subtitle" }, admission.subtitle))), this.renderMoreInfoButton(admission)));
|
|
@@ -24652,29 +24670,29 @@ const SessionsTicketing = /*@__PURE__*/ proxyCustomElement(class SessionsTicketi
|
|
|
24652
24670
|
}
|
|
24653
24671
|
return (h$2(h$2.Fragment, null, this.renderEventTimeAndLocation(event), this.renderPriceAndControls(admission, sectionId, state, mode)));
|
|
24654
24672
|
}
|
|
24655
|
-
renderSectionHeader(section, admissions
|
|
24656
|
-
return (h$2("div", { class: "section-header" }, h$2("h2", { class: "section-name" }, section.name
|
|
24673
|
+
renderSectionHeader(section, admissions) {
|
|
24674
|
+
return (h$2("div", { class: "section-header" }, h$2("h2", { class: "section-name" }, section.name), this.renderAdmissionTime(admissions[0], "section-time"), this.renderSectionLocation(section)));
|
|
24657
24675
|
}
|
|
24658
24676
|
renderSectionWithAdmissions(section, admissions, event, mode) {
|
|
24659
24677
|
const soldOut = isSectionSoldOut({
|
|
24660
24678
|
admissions,
|
|
24661
24679
|
section,
|
|
24662
24680
|
});
|
|
24663
|
-
return (h$2("div", { class: `ticket-section ${soldOut ? "section-sold-out" : ""}`, key: section.id }, this.renderSectionHeader(section, admissions
|
|
24681
|
+
return (h$2("div", { class: `ticket-section ${soldOut ? "section-sold-out" : ""}`, key: section.id }, this.renderSectionHeader(section, admissions), h$2("div", { class: "admissions-list" }, admissions.map((admission) => this.renderAdmission(admission, event, section, soldOut, mode)))));
|
|
24664
24682
|
}
|
|
24665
24683
|
renderLoadingState() {
|
|
24666
|
-
return (h$2(Host, { "data-theme": this.currentTheme }, h$2("div", { class: "loading-
|
|
24684
|
+
return (h$2(Host, { "data-theme": this.currentTheme }, h$2("div", { class: "session-services-ticketing-container" }, h$2("div", { class: "tickets-wrapper" }, h$2("h2", { class: "tickets-heading" }, "Get Tickets"), h$2("div", { class: "ticket-section loading-ticket-section" }, h$2("div", { class: "admissions-list" }, [0, 1, 2].map((item) => (h$2("div", { "aria-hidden": "true", class: "admission-card loading-admission", key: item })))))))));
|
|
24667
24685
|
}
|
|
24668
24686
|
renderErrorState() {
|
|
24669
24687
|
if (this.passcodeDenied)
|
|
24670
24688
|
return this.renderPasscodeState();
|
|
24671
|
-
return (h$2(Host, { "data-theme": this.currentTheme }, h$2("div", { class: "session-services-ticketing-container" }, h$2("div", { class: "
|
|
24689
|
+
return (h$2(Host, { "data-theme": this.currentTheme }, h$2("div", { class: "session-services-ticketing-container" }, h$2("div", { class: "message-state" }, h$2("strong", null, "Tickets Couldn\u2019t Load"), h$2("span", null, "We couldn\u2019t load ticket details. Try again in a moment."), h$2("button", { type: "button", class: "retry-button", onClick: () => this.loadEventData() }, "Try Again")))));
|
|
24672
24690
|
}
|
|
24673
24691
|
renderPasscodeState() {
|
|
24674
24692
|
return (h$2(Host, { "data-theme": this.currentTheme }, h$2("div", { class: "session-services-ticketing-container" }, h$2("form", { class: "passcode-form", onSubmit: (e) => this.submitPasscode(e) }, h$2("h2", null, "Enter passcode"), h$2("p", null, "Enter the event passcode to view tickets and event details."), h$2("input", { type: "text", name: "passcode", value: this.passcodeInput, onInput: this.handlePasscodeInput, autocomplete: "one-time-code", placeholder: "Passcode", "aria-label": "Passcode" }), this.passcodeDenied && this.activePasscode && (h$2("span", { class: "error-message" }, "Incorrect passcode")), h$2("button", { type: "submit", class: "checkout-btn", disabled: !this.passcodeInput.trim() }, "Unlock event")))));
|
|
24675
24693
|
}
|
|
24676
24694
|
renderNotFoundState() {
|
|
24677
|
-
return (h$2(Host, { "data-theme": this.currentTheme }, h$2("div", { class: "session-services-ticketing-container" }, h$2("div", { class: "
|
|
24695
|
+
return (h$2(Host, { "data-theme": this.currentTheme }, h$2("div", { class: "session-services-ticketing-container" }, h$2("div", { class: "message-state" }, h$2("strong", null, "Event not found"), h$2("span", null, "We couldn\u2019t find this event. The link may be incorrect or expired.")))));
|
|
24678
24696
|
}
|
|
24679
24697
|
renderCouponPanel() {
|
|
24680
24698
|
const hasInput = this.couponInput.trim().length > 0;
|
|
@@ -24756,6 +24774,13 @@ const SessionsTicketing = /*@__PURE__*/ proxyCustomElement(class SessionsTicketi
|
|
|
24756
24774
|
return null;
|
|
24757
24775
|
return (h$2("div", { class: "sticky-checkout-bar" }, h$2("button", { type: "button", class: `checkout-btn sticky-checkout-btn ${this.selectionPrompt ? "selection-prompt" : ""}`, onClick: () => this.handleStickyCheckoutClick(state), disabled: this.isStickyCheckoutDisabled(state), "aria-label": this.quoteLoading ? "Updating" : undefined }, this.renderStickyCheckoutButtonContent(state))));
|
|
24758
24776
|
}
|
|
24777
|
+
renderStickyExternalTicketing(state) {
|
|
24778
|
+
if (!this.stickyCheckout)
|
|
24779
|
+
return null;
|
|
24780
|
+
if (!state.externalTicketUrl)
|
|
24781
|
+
return null;
|
|
24782
|
+
return (h$2("div", { class: "sticky-checkout-bar" }, h$2("a", { class: "external-ticket-button sticky-checkout-btn", href: state.externalTicketUrl, target: "_blank", rel: "noreferrer" }, h$2("span", { class: "external-ticket-label" }, "Get tickets"))));
|
|
24783
|
+
}
|
|
24759
24784
|
renderModal() {
|
|
24760
24785
|
if (!this.openModalAdmissionId)
|
|
24761
24786
|
return null;
|
|
@@ -24782,7 +24807,7 @@ const SessionsTicketing = /*@__PURE__*/ proxyCustomElement(class SessionsTicketi
|
|
|
24782
24807
|
if (mode !== "door")
|
|
24783
24808
|
return null;
|
|
24784
24809
|
const location = event.location?.name?.trim() || "the venue";
|
|
24785
|
-
return (h$2("div", { class: "door-alert" }, h$2("strong", null, "Tickets are available at ", location), h$2("span", null, "Online sales are closed.
|
|
24810
|
+
return (h$2("div", { class: "door-alert" }, h$2("strong", null, "Tickets are available at ", location), h$2("span", null, "Online sales are closed. Tickets are available at the venue when you arrive.")));
|
|
24786
24811
|
}
|
|
24787
24812
|
loadingView() {
|
|
24788
24813
|
return this.loading ? this.renderLoadingState() : undefined;
|
|
@@ -24802,7 +24827,7 @@ const SessionsTicketing = /*@__PURE__*/ proxyCustomElement(class SessionsTicketi
|
|
|
24802
24827
|
return this.renderNotFoundState();
|
|
24803
24828
|
const state = getTicketingState(event);
|
|
24804
24829
|
if (state.showExternalTicketing) {
|
|
24805
|
-
return this.renderExternalTicketing(state.
|
|
24830
|
+
return (h$2(Host, { "data-theme": this.currentTheme, "data-sticky-checkout": this.stickyCheckout ? "true" : undefined }, h$2("div", { class: "session-services-ticketing-container" }, this.renderExternalTicketing(state)), this.renderStickyExternalTicketing(state)));
|
|
24806
24831
|
}
|
|
24807
24832
|
return (h$2(Host, { "data-theme": this.currentTheme, "data-sticky-checkout": this.stickyCheckout ? "true" : undefined }, h$2("div", { class: "session-services-ticketing-container" }, state.showTicketing
|
|
24808
24833
|
? this.renderTicketSections(event)
|
|
@@ -24810,13 +24835,16 @@ const SessionsTicketing = /*@__PURE__*/ proxyCustomElement(class SessionsTicketi
|
|
|
24810
24835
|
state.showTicketing &&
|
|
24811
24836
|
this.renderCheckoutActions()), this.renderStickyCheckout(state), this.renderModal()));
|
|
24812
24837
|
}
|
|
24813
|
-
renderExternalTicketing(
|
|
24814
|
-
|
|
24838
|
+
renderExternalTicketing(state) {
|
|
24839
|
+
const domain = urlDomain(state.externalTicketUrl);
|
|
24840
|
+
if (!state.externalTicketUrl)
|
|
24841
|
+
return null;
|
|
24842
|
+
return (h$2("div", { class: "tickets-wrapper" }, h$2("h2", { class: "tickets-heading" }, state.ticketHeading), h$2("div", { class: "external-ticket-panel" }, h$2("p", { class: "external-ticket-warning" }, "This event sells through an external ticketing site. Checkout, tickets, and support are handled there."), h$2("a", { class: "external-ticket-button inline-external-ticket-button", href: state.externalTicketUrl, target: "_blank", rel: "noreferrer" }, h$2("span", { class: "external-ticket-label" }, "Get tickets"), h$2("span", { class: "external-ticket-domain" }, "via ", domain)))));
|
|
24815
24843
|
}
|
|
24816
24844
|
renderUnavailableState(state) {
|
|
24817
|
-
return (h$2("div", { class: "empty-ticketing-state" }, h$2("strong", null,
|
|
24818
|
-
? "
|
|
24819
|
-
: "Tickets are not
|
|
24845
|
+
return (h$2("div", { class: "empty-ticketing-state" }, h$2("strong", null, "Tickets Unavailable"), h$2("span", null, state.isEnded
|
|
24846
|
+
? "This event has ended, so tickets are no longer available."
|
|
24847
|
+
: "Tickets are not available for this event right now.")));
|
|
24820
24848
|
}
|
|
24821
24849
|
render() {
|
|
24822
24850
|
return this.pendingView() ?? this.renderReadyState();
|