@session-services/web-elements 0.1.32 → 0.1.35

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.
Files changed (26) hide show
  1. package/README.md +4 -3
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/session-services-elements.cjs.js +1 -1
  4. package/dist/cjs/session-services-ticketing.cjs.entry.js +374 -335
  5. package/dist/collection/components/session-services-ticketing/session-services-ticketing.js +82 -15
  6. package/dist/collection/components/session-services-ticketing/session-services-ticketing.logic.js +14 -375
  7. package/dist/collection/components/session-services-ticketing/session-services-ticketing.logic.test.js +5 -4
  8. package/dist/collection/components/session-services-ticketing/session-services-ticketing.test.js +23 -0
  9. package/dist/components/session-services-ticketing.js +1 -1
  10. package/dist/esm/loader.js +1 -1
  11. package/dist/esm/session-services-elements.js +1 -1
  12. package/dist/esm/session-services-ticketing.entry.js +374 -335
  13. package/dist/session-services-elements/p-2fa235a5.entry.js +1 -0
  14. package/dist/session-services-elements/session-services-elements.esm.js +1 -1
  15. package/dist/types/components/session-services-ticketing/session-services-ticketing.d.ts +10 -0
  16. package/dist/types/components/session-services-ticketing/session-services-ticketing.logic.d.ts +22 -190
  17. package/dist/types/components.d.ts +13 -0
  18. package/exports/components/formatted-text.js +1 -1
  19. package/exports/components/index.d.ts +4 -4
  20. package/exports/components/ticketing.js +1 -1
  21. package/exports/formatted-text.d.ts +3 -3
  22. package/exports/formatted-text.js +1 -1
  23. package/exports/ticketing.d.ts +5 -4
  24. package/exports/ticketing.js +1 -1
  25. package/package.json +17 -9
  26. package/dist/session-services-elements/p-7a1b9685.entry.js +0 -1
@@ -1,8 +1,8 @@
1
1
  import { r as registerInstance, c as createEvent, g as getElement, h as h$2, H as Host } from './index-DhbVMqIT.js';
2
2
 
3
- var e;function t(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 n=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);}},r=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`;}};(e=globalThis).__zod_globalConfig??(e.__zod_globalConfig={});const i$1=globalThis.__zod_globalConfig;function a$1(e){return i$1}function o$1(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 s$1(e,t){return typeof t==`bigint`?t.toString():t}function c$1(e){return {get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function l$1(e){return e==null}function u$1(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function d$1(e,t){let n=e/t,r=Math.round(n),i=2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r)<i?0:n-r}const f$1=Symbol(`evaluating`);function p$1(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==f$1)return r===void 0&&(r=f$1,r=n()),r},set(n){Object.defineProperty(e,t,{value:n});},configurable:true});}function m$1(e,t,n){Object.defineProperty(e,t,{value:n,writable:true,enumerable:true,configurable:true});}function h$1(...e){let t={};for(let n of e)Object.assign(t,Object.getOwnPropertyDescriptors(n));return Object.defineProperties({},t)}function ee$1(e){return JSON.stringify(e)}function te$1(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}const ne$1=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function g$1(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}const re$1=c$1(()=>{if(i$1.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return false;try{return Function(``),true}catch{return false}});function _$1(e){if(g$1(e)===false)return false;let t=e.constructor;if(t===void 0||typeof t!=`function`)return true;let n=t.prototype;return !(g$1(n)===false||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===false)}function ie$1(e){return _$1(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const ae$1=new Set([`string`,`number`,`symbol`]);function v$1(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function y$1(e,t,n){let r=new e._zod.constr(t??e._zod.def);return (!t||n?.parent)&&(r._zod.parent=e),r}function b$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 oe$1(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}const se$1={safeint:[-9007199254740991,2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function ce$1(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return y$1(e,h$1(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 m$1(this,`shape`,e),e},checks:[]}))}function le$2(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return y$1(e,h$1(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 m$1(this,`shape`,r),r},checks:[]}))}function ue$2(e,t){if(!_$1(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return y$1(e,h$1(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return m$1(this,`shape`,n),n}}))}function de$2(e,t){if(!_$1(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return y$1(e,h$1(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return m$1(this,`shape`,n),n}}))}function fe$2(e,t){if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);return y$1(e,h$1(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return m$1(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function pe$2(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return y$1(t,h$1(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 m$1(this,`shape`,i),i},checks:[]}))}function me$2(e,t,n){return y$1(t,h$1(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 m$1(this,`shape`,i),i}}))}function x$1(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 he$2(e,t=0){if(e.aborted===true)return true;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===false)return true;return false}function S$2(e,t){return t.map(t=>{var n;return (n=t).path??(n.path=[]),t.path.unshift(e),t})}function C$2(e){return typeof e==`string`?e:e?.message}function w$2(e,t,n){let r=e.message?e.message:C$2(e.inst?._zod.def?.error?.(e))??C$2(t?.error?.(e))??C$2(n.customError?.(e))??C$2(n.localeError?.(e))??`Invalid input`,{inst:i,continue:a,input:o,...s}=e;return s.path??=[],s.message=r,t?.reportInput&&(s.input=o),s}function ge$2(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function T$2(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}const _e$2=(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,s$1,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:false});},ve$2=t(`$ZodError`,_e$2),ye$2=t(`$ZodError`,_e$2,{Parent:Error});function be$2(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 xe$2(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else {let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else {let r=n,i=0;for(;i<e.length;){let n=e[i];i===e.length-1?(r[n]=r[n]||{_errors:[]},r[n]._errors.push(t(a))):r[n]=r[n]||{_errors:[]},r=r[n],i++;}}}};return r(e),n}const Se$2=e=>(t,r,i,o)=>{let s=i?{...i,async:false}:{async:false},c=t._zod.run({value:r,issues:[]},s);if(c instanceof Promise)throw new n;if(c.issues.length){let t=new(o?.Err??e)(c.issues.map(e=>w$2(e,s,a$1())));throw ne$1(t,o?.callee),t}return c.value},Ce$2=e=>async(t,n,r,i)=>{let o=r?{...r,async:true}:{async:true},s=t._zod.run({value:n,issues:[]},o);if(s instanceof Promise&&(s=await s),s.issues.length){let t=new(i?.Err??e)(s.issues.map(e=>w$2(e,o,a$1())));throw ne$1(t,i?.callee),t}return s.value},E$2=e=>(t,r,i)=>{let o=i?{...i,async:false}:{async:false},s=t._zod.run({value:r,issues:[]},o);if(s instanceof Promise)throw new n;return s.issues.length?{success:false,error:new(e??ve$2)(s.issues.map(e=>w$2(e,o,a$1())))}:{success:true,data:s.value}},we$2=E$2(ye$2),D$2=e=>async(t,n,r)=>{let i=r?{...r,async:true}:{async:true},o=t._zod.run({value:n,issues:[]},i);return o instanceof Promise&&(o=await o),o.issues.length?{success:false,error:new e(o.issues.map(e=>w$2(e,i,a$1())))}:{success:true,data:o.value}},Te$2=D$2(ye$2),Ee$2=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Se$2(e)(t,n,i)},De$2=e=>(t,n,r)=>Se$2(e)(t,n,r),Oe$2=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Ce$2(e)(t,n,i)},ke$2=e=>async(t,n,r)=>Ce$2(e)(t,n,r),Ae$2=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return E$2(e)(t,n,i)},je$2=e=>(t,n,r)=>E$2(e)(t,n,r),Me$2=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return D$2(e)(t,n,i)},Ne$2=e=>async(t,n,r)=>D$2(e)(t,n,r),Pe$2=/^[cC][0-9a-z]{6,}$/,Fe$2=/^[0-9a-z]+$/,Ie$2=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Le$2=/^[0-9a-vA-V]{20}$/,Re$2=/^[A-Za-z0-9]{27}$/,ze$2=/^[a-zA-Z0-9_-]{21}$/,Be$2=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Ve$2=/^([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})$/,He$2=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)$/,Ue$1=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;function We$2(){return RegExp(`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,`u`)}const Ge$2=/^(?:(?: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])$/,Ke$2=/^(([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}|:))$/,qe$2=/^((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])$/,Je$2=/^(([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])$/,Ye$2=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Xe$2=/^[A-Za-z0-9_-]*$/,Ze$2=/^https?$/,Qe$2=/^\+[1-9]\d{6,14}$/,$e$2=`(?:(?:\\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])))`,et$2=RegExp(`^${$e$2}$`);function tt$2(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 nt$2(e){return RegExp(`^${tt$2(e)}$`)}function rt$2(e){let t=tt$2({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(`^${$e$2}T(?:${r})$`)}const it$2=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},at$2=/^-?\d+$/,ot$2=/^-?\d+(?:\.\d+)?$/,st$2=/^(?:true|false)$/i,ct$2=/^null$/i,lt$2=/^undefined$/i,ut$2=/^[^A-Z]*$/,dt$2=/^[^a-z]*$/,O$2=t(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[]);}),ft$2={number:`number`,bigint:`bigint`,object:`date`},pt$2=t(`$ZodCheckLessThan`,(e,t)=>{O$2.init(e,t);let n=ft$2[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:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort});};}),mt$1=t(`$ZodCheckGreaterThan`,(e,t)=>{O$2.init(e,t);let n=ft$2[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:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort});};}),ht$2=t(`$ZodCheckMultipleOf`,(e,t)=>{O$2.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):d$1(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});};}),gt$2=t(`$ZodCheckNumberFormat`,(e,t)=>{O$2.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=se$1[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=at$2);}),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,inclusive:true,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,inclusive:true,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,inclusive:true,inst:e,continue:!t.abort});};}),_t$1=t(`$ZodCheckMaxLength`,(e,t)=>{var n;O$2.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return !l$1(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=ge$2(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:true,input:r,inst:e,continue:!t.abort});};}),vt$2=t(`$ZodCheckMinLength`,(e,t)=>{var n;O$2.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return !l$1(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=ge$2(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:true,input:r,inst:e,continue:!t.abort});};}),yt$2=t(`$ZodCheckLengthEquals`,(e,t)=>{var n;O$2.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return !l$1(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=ge$2(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});};}),k$2=t(`$ZodCheckStringFormat`,(e,t)=>{var n,r;O$2.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=()=>{});}),bt$2=t(`$ZodCheckRegex`,(e,t)=>{k$2.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});};}),xt$2=t(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=ut$2,k$2.init(e,t);}),St$2=t(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=dt$2,k$2.init(e,t);}),Ct$2=t(`$ZodCheckIncludes`,(e,t)=>{O$2.init(e,t);let n=v$1(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});};}),wt$2=t(`$ZodCheckStartsWith`,(e,t)=>{O$2.init(e,t);let n=RegExp(`^${v$1(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});};}),Tt$2=t(`$ZodCheckEndsWith`,(e,t)=>{O$2.init(e,t);let n=RegExp(`.*${v$1(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});};}),Et$2=t(`$ZodCheckOverwrite`,(e,t)=>{O$2.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value);};});var Dt$2=class Dt{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(`
3
+ var e;function t(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 n=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);}},r=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`;}};(e=globalThis).__zod_globalConfig??(e.__zod_globalConfig={});const i$1=globalThis.__zod_globalConfig;function a$1(e){return i$1}function o$1(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 s$1(e,t){return typeof t==`bigint`?t.toString():t}function c$1(e){return {get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function l$1(e){return e==null}function u$1(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function d$1(e,t){let n=e/t,r=Math.round(n),i=2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r)<i?0:n-r}const f$1=Symbol(`evaluating`);function p$1(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==f$1)return r===void 0&&(r=f$1,r=n()),r},set(n){Object.defineProperty(e,t,{value:n});},configurable:true});}function m$1(e,t,n){Object.defineProperty(e,t,{value:n,writable:true,enumerable:true,configurable:true});}function h$1(...e){let t={};for(let n of e)Object.assign(t,Object.getOwnPropertyDescriptors(n));return Object.defineProperties({},t)}function ee$1(e){return JSON.stringify(e)}function te$1(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}const ne$1=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function g$1(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}const re$1=c$1(()=>{if(i$1.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return false;try{return Function(``),true}catch{return false}});function _$1(e){if(g$1(e)===false)return false;let t=e.constructor;if(t===void 0||typeof t!=`function`)return true;let n=t.prototype;return !(g$1(n)===false||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===false)}function ie$1(e){return _$1(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const ae$1=new Set([`string`,`number`,`symbol`]);function v$1(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function y$1(e,t,n){let r=new e._zod.constr(t??e._zod.def);return (!t||n?.parent)&&(r._zod.parent=e),r}function b$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 oe$1(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}const se$1={safeint:[-9007199254740991,2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function ce$1(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return y$1(e,h$1(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 m$1(this,`shape`,e),e},checks:[]}))}function le$2(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return y$1(e,h$1(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 m$1(this,`shape`,r),r},checks:[]}))}function ue$2(e,t){if(!_$1(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return y$1(e,h$1(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return m$1(this,`shape`,n),n}}))}function de$2(e,t){if(!_$1(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return y$1(e,h$1(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return m$1(this,`shape`,n),n}}))}function fe$2(e,t){if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);return y$1(e,h$1(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return m$1(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function pe$2(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return y$1(t,h$1(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 m$1(this,`shape`,i),i},checks:[]}))}function me$2(e,t,n){return y$1(t,h$1(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 m$1(this,`shape`,i),i}}))}function x$1(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 he$2(e,t=0){if(e.aborted===true)return true;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===false)return true;return false}function S$2(e,t){return t.map(t=>{var n;return (n=t).path??(n.path=[]),t.path.unshift(e),t})}function C$2(e){return typeof e==`string`?e:e?.message}function w$2(e,t,n){let r=e.message?e.message:C$2(e.inst?._zod.def?.error?.(e))??C$2(t?.error?.(e))??C$2(n.customError?.(e))??C$2(n.localeError?.(e))??`Invalid input`,{inst:i,continue:a,input:o,...s}=e;return s.path??=[],s.message=r,t?.reportInput&&(s.input=o),s}function ge$2(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function T$2(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}const _e$2=(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,s$1,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:false});},ve$2=t(`$ZodError`,_e$2),ye$2=t(`$ZodError`,_e$2,{Parent:Error});function be$2(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 xe$2(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else {let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else {let r=n,i=0;for(;i<e.length;){let n=e[i];i===e.length-1?(r[n]=r[n]||{_errors:[]},r[n]._errors.push(t(a))):r[n]=r[n]||{_errors:[]},r=r[n],i++;}}}};return r(e),n}const Se$2=e=>(t,r,i,o)=>{let s=i?{...i,async:false}:{async:false},c=t._zod.run({value:r,issues:[]},s);if(c instanceof Promise)throw new n;if(c.issues.length){let t=new(o?.Err??e)(c.issues.map(e=>w$2(e,s,a$1())));throw ne$1(t,o?.callee),t}return c.value},Ce$2=e=>async(t,n,r,i)=>{let o=r?{...r,async:true}:{async:true},s=t._zod.run({value:n,issues:[]},o);if(s instanceof Promise&&(s=await s),s.issues.length){let t=new(i?.Err??e)(s.issues.map(e=>w$2(e,o,a$1())));throw ne$1(t,i?.callee),t}return s.value},E$2=e=>(t,r,i)=>{let o=i?{...i,async:false}:{async:false},s=t._zod.run({value:r,issues:[]},o);if(s instanceof Promise)throw new n;return s.issues.length?{success:false,error:new(e??ve$2)(s.issues.map(e=>w$2(e,o,a$1())))}:{success:true,data:s.value}},we$2=E$2(ye$2),Te$2=e=>async(t,n,r)=>{let i=r?{...r,async:true}:{async:true},o=t._zod.run({value:n,issues:[]},i);return o instanceof Promise&&(o=await o),o.issues.length?{success:false,error:new e(o.issues.map(e=>w$2(e,i,a$1())))}:{success:true,data:o.value}},Ee$2=Te$2(ye$2),De$2=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Se$2(e)(t,n,i)},Oe$2=e=>(t,n,r)=>Se$2(e)(t,n,r),ke$2=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Ce$2(e)(t,n,i)},Ae$2=e=>async(t,n,r)=>Ce$2(e)(t,n,r),je$2=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return E$2(e)(t,n,i)},Me$2=e=>(t,n,r)=>E$2(e)(t,n,r),Ne$2=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Te$2(e)(t,n,i)},Pe$2=e=>async(t,n,r)=>Te$2(e)(t,n,r),Fe$2=/^[cC][0-9a-z]{6,}$/,Ie$2=/^[0-9a-z]+$/,Le$2=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Re$2=/^[0-9a-vA-V]{20}$/,ze$2=/^[A-Za-z0-9]{27}$/,Be$2=/^[a-zA-Z0-9_-]{21}$/,Ve$2=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,He$2=/^([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})$/,Ue$1=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)$/,We$2=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;function Ge$2(){return RegExp(`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,`u`)}const Ke$2=/^(?:(?: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])$/,qe$2=/^(([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}|:))$/,Je$2=/^((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])$/,Ye$2=/^(([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])$/,Xe$2=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Ze$2=/^[A-Za-z0-9_-]*$/,Qe$2=/^https?$/,$e$2=/^\+[1-9]\d{6,14}$/,et$2=`(?:(?:\\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])))`,tt$2=RegExp(`^${et$2}$`);function nt$2(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 rt$2(e){return RegExp(`^${nt$2(e)}$`)}function it$2(e){let t=nt$2({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(`^${et$2}T(?:${r})$`)}const at$2=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},ot$2=/^-?\d+$/,st$2=/^-?\d+(?:\.\d+)?$/,ct$2=/^(?:true|false)$/i,lt$2=/^null$/i,ut$2=/^undefined$/i,dt$2=/^[^A-Z]*$/,ft$2=/^[^a-z]*$/,D$2=t(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[]);}),pt$2={number:`number`,bigint:`bigint`,object:`date`},mt$1=t(`$ZodCheckLessThan`,(e,t)=>{D$2.init(e,t);let n=pt$2[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:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort});};}),ht$2=t(`$ZodCheckGreaterThan`,(e,t)=>{D$2.init(e,t);let n=pt$2[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:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort});};}),gt$2=t(`$ZodCheckMultipleOf`,(e,t)=>{D$2.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):d$1(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});};}),_t$1=t(`$ZodCheckNumberFormat`,(e,t)=>{D$2.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=se$1[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=ot$2);}),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,inclusive:true,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,inclusive:true,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,inclusive:true,inst:e,continue:!t.abort});};}),vt$2=t(`$ZodCheckMaxLength`,(e,t)=>{var n;D$2.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return !l$1(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=ge$2(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:true,input:r,inst:e,continue:!t.abort});};}),yt$2=t(`$ZodCheckMinLength`,(e,t)=>{var n;D$2.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return !l$1(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=ge$2(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:true,input:r,inst:e,continue:!t.abort});};}),bt$2=t(`$ZodCheckLengthEquals`,(e,t)=>{var n;D$2.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return !l$1(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=ge$2(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});};}),O$2=t(`$ZodCheckStringFormat`,(e,t)=>{var n,r;D$2.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=()=>{});}),xt$2=t(`$ZodCheckRegex`,(e,t)=>{O$2.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});};}),St$2=t(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=dt$2,O$2.init(e,t);}),Ct$2=t(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=ft$2,O$2.init(e,t);}),wt$2=t(`$ZodCheckIncludes`,(e,t)=>{D$2.init(e,t);let n=v$1(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});};}),Tt$2=t(`$ZodCheckStartsWith`,(e,t)=>{D$2.init(e,t);let n=RegExp(`^${v$1(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});};}),Et$2=t(`$ZodCheckEndsWith`,(e,t)=>{D$2.init(e,t);let n=RegExp(`.*${v$1(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});};}),Dt$2=t(`$ZodCheckOverwrite`,(e,t)=>{D$2.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value);};});var Ot$2=class Ot{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(`
4
4
  `).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(`
5
- `))}};const Ot$2={major:4,minor:4,patch:3},A$2=t(`$ZodType`,(e,t)=>{var r;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Ot$2;let i=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&i.unshift(e);for(let t of i)for(let n of t._zod.onattach)n(e);if(i.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse;});else {let t=(e,t,r)=>{let i=x$1(e),a;for(let o of t){if(o._zod.def.when){if(he$2(e)||!o._zod.def.when(e))continue}else if(i)continue;let t=e.issues.length,s=o._zod.check(e);if(s instanceof Promise&&r?.async===false)throw new n;if(a||s instanceof Promise)a=(a??Promise.resolve()).then(async()=>{await s,e.issues.length!==t&&(i||=x$1(e,t));});else {if(e.issues.length===t)continue;i||=x$1(e,t);}}return a?a.then(()=>e):e},r=(r,a,o)=>{if(x$1(r))return r.aborted=true,r;let s=t(a,i,o);if(s instanceof Promise){if(o.async===false)throw new n;return s.then(t=>e._zod.parse(t,o))}return e._zod.parse(s,o)};e._zod.run=(a,o)=>{if(o.skipChecks)return e._zod.parse(a,o);if(o.direction===`backward`){let t=e._zod.parse({value:a.value,issues:[]},{...o,skipChecks:true});return t instanceof Promise?t.then(e=>r(e,a,o)):r(t,a,o)}let s=e._zod.parse(a,o);if(s instanceof Promise){if(o.async===false)throw new n;return s.then(e=>t(e,i,o))}return t(s,i,o)};}p$1(e,`~standard`,()=>({validate:t=>{try{let n=we$2(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return Te$2(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}));}),kt$2=t(`$ZodString`,(e,t)=>{A$2.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??it$2(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};}),j$2=t(`$ZodStringFormat`,(e,t)=>{k$2.init(e,t),kt$2.init(e,t);}),At$2=t(`$ZodGUID`,(e,t)=>{t.pattern??=Ve$2,j$2.init(e,t);}),jt$2=t(`$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??=He$2(e);}else t.pattern??=He$2();j$2.init(e,t);}),Mt$2=t(`$ZodEmail`,(e,t)=>{t.pattern??=Ue$1,j$2.init(e,t);}),Nt$2=t(`$ZodURL`,(e,t)=>{j$2.init(e,t),e._zod.check=n=>{try{let r=n.value.trim();if(!t.normalize&&t.protocol?.source===Ze$2.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}let 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});}};}),Pt$2=t(`$ZodEmoji`,(e,t)=>{t.pattern??=We$2(),j$2.init(e,t);}),Ft$2=t(`$ZodNanoID`,(e,t)=>{t.pattern??=ze$2,j$2.init(e,t);}),It$2=t(`$ZodCUID`,(e,t)=>{t.pattern??=Pe$2,j$2.init(e,t);}),Lt$2=t(`$ZodCUID2`,(e,t)=>{t.pattern??=Fe$2,j$2.init(e,t);}),Rt$2=t(`$ZodULID`,(e,t)=>{t.pattern??=Ie$2,j$2.init(e,t);}),zt$2=t(`$ZodXID`,(e,t)=>{t.pattern??=Le$2,j$2.init(e,t);}),Bt$2=t(`$ZodKSUID`,(e,t)=>{t.pattern??=Re$2,j$2.init(e,t);}),Vt$2=t(`$ZodISODateTime`,(e,t)=>{t.pattern??=rt$2(t),j$2.init(e,t);}),Ht$2=t(`$ZodISODate`,(e,t)=>{t.pattern??=et$2,j$2.init(e,t);}),Ut$2=t(`$ZodISOTime`,(e,t)=>{t.pattern??=nt$2(t),j$2.init(e,t);}),Wt$2=t(`$ZodISODuration`,(e,t)=>{t.pattern??=Be$2,j$2.init(e,t);}),Gt$2=t(`$ZodIPv4`,(e,t)=>{t.pattern??=Ge$2,j$2.init(e,t),e._zod.bag.format=`ipv4`;}),Kt$2=t(`$ZodIPv6`,(e,t)=>{t.pattern??=Ke$2,j$2.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});}};}),qt$2=t(`$ZodCIDRv4`,(e,t)=>{t.pattern??=qe$2,j$2.init(e,t);}),Jt$2=t(`$ZodCIDRv6`,(e,t)=>{t.pattern??=Je$2,j$2.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 Yt$2(e){if(e===``)return true;if(/\s/.test(e)||e.length%4!=0)return false;try{return atob(e),true}catch{return false}}const Xt$1=t(`$ZodBase64`,(e,t)=>{t.pattern??=Ye$2,j$2.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{Yt$2(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort});};});function Zt$2(e){if(!Xe$2.test(e))return false;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return Yt$2(t.padEnd(Math.ceil(t.length/4)*4,`=`))}const Qt$2=t(`$ZodBase64URL`,(e,t)=>{t.pattern??=Xe$2,j$2.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{Zt$2(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort});};}),$t$2=t(`$ZodE164`,(e,t)=>{t.pattern??=Qe$2,j$2.init(e,t);});function en$2(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 tn$2=t(`$ZodJWT`,(e,t)=>{j$2.init(e,t),e._zod.check=n=>{en$2(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort});};}),nn$1=t(`$ZodNumber`,(e,t)=>{A$2.init(e,t),e._zod.pattern=e._zod.bag.pattern??ot$2,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};}),rn$1=t(`$ZodNumberFormat`,(e,t)=>{gt$2.init(e,t),nn$1.init(e,t);}),an$2=t(`$ZodBoolean`,(e,t)=>{A$2.init(e,t),e._zod.pattern=st$2,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};}),on$1=t(`$ZodUndefined`,(e,t)=>{A$2.init(e,t),e._zod.pattern=lt$2,e._zod.values=new Set([void 0]),e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`undefined`,code:`invalid_type`,input:r,inst:e}),t};}),sn=t(`$ZodNull`,(e,t)=>{A$2.init(e,t),e._zod.pattern=ct$2,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};}),cn$1=t(`$ZodAny`,(e,t)=>{A$2.init(e,t),e._zod.parse=e=>e;}),ln$1=t(`$ZodUnknown`,(e,t)=>{A$2.init(e,t),e._zod.parse=e=>e;}),un$2=t(`$ZodNever`,(e,t)=>{A$2.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t);}),dn$2=t(`$ZodVoid`,(e,t)=>{A$2.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};}),fn$1=t(`$ZodDate`,(e,t)=>{A$2.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 pn(e,t,n){e.issues.length&&t.issues.push(...S$2(n,e.issues)),t.value[n]=e.value;}const mn$1=t(`$ZodArray`,(e,t)=>{A$2.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=>pn(t,n,e))):pn(s,n,e);}return a.length?Promise.all(a).then(()=>n):n};});function M$2(e,t,n,r,i,a){let o=n in r;if(e.issues.length){if(i&&a&&!o)return;t.issues.push(...S$2(n,e.issues));}if(!o&&!i){e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]});return}e.value===void 0?o&&(t.value[n]=void 0):t.value[n]=e.value;}function hn$1(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=oe$1(e.shape);return {...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function gn(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optin===`optional`,d=c.optout===`optional`;for(let i in t){if(i===`__proto__`||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=>M$2(e,n,i,t,u,d))):M$2(a,n,i,t,u,d);}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}const _n$1=t(`$ZodObject`,(e,t)=>{if(A$2.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=c$1(()=>hn$1(t));p$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=g$1,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],r=n._zod.optin===`optional`,i=n._zod.optout===`optional`,a=n._zod.run({value:s[e],issues:[]},o);a instanceof Promise?c.push(a.then(n=>M$2(n,t,e,s,r,i))):M$2(a,t,e,s,r,i);}return i?gn(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t};}),vn$1=t(`$ZodObjectJIT`,(e,t)=>{_n$1.init(e,t);let n=e._zod.parse,r=c$1(()=>hn$1(t)),a=e=>{let t=new Dt$2([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=ee$1(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 r of n.keys){let n=a[r],o=ee$1(r),s=e[r],c=s?._zod?.optin===`optional`,l=s?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),c&&l?t.write(`
5
+ `))}};const kt$2={major:4,minor:4,patch:3},k$2=t(`$ZodType`,(e,t)=>{var r;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=kt$2;let i=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&i.unshift(e);for(let t of i)for(let n of t._zod.onattach)n(e);if(i.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse;});else {let t=(e,t,r)=>{let i=x$1(e),a;for(let o of t){if(o._zod.def.when){if(he$2(e)||!o._zod.def.when(e))continue}else if(i)continue;let t=e.issues.length,s=o._zod.check(e);if(s instanceof Promise&&r?.async===false)throw new n;if(a||s instanceof Promise)a=(a??Promise.resolve()).then(async()=>{await s,e.issues.length!==t&&(i||=x$1(e,t));});else {if(e.issues.length===t)continue;i||=x$1(e,t);}}return a?a.then(()=>e):e},r=(r,a,o)=>{if(x$1(r))return r.aborted=true,r;let s=t(a,i,o);if(s instanceof Promise){if(o.async===false)throw new n;return s.then(t=>e._zod.parse(t,o))}return e._zod.parse(s,o)};e._zod.run=(a,o)=>{if(o.skipChecks)return e._zod.parse(a,o);if(o.direction===`backward`){let t=e._zod.parse({value:a.value,issues:[]},{...o,skipChecks:true});return t instanceof Promise?t.then(e=>r(e,a,o)):r(t,a,o)}let s=e._zod.parse(a,o);if(s instanceof Promise){if(o.async===false)throw new n;return s.then(e=>t(e,i,o))}return t(s,i,o)};}p$1(e,`~standard`,()=>({validate:t=>{try{let n=we$2(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return Ee$2(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}));}),At$2=t(`$ZodString`,(e,t)=>{k$2.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??at$2(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};}),A$2=t(`$ZodStringFormat`,(e,t)=>{O$2.init(e,t),At$2.init(e,t);}),jt$2=t(`$ZodGUID`,(e,t)=>{t.pattern??=He$2,A$2.init(e,t);}),Mt$2=t(`$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??=Ue$1(e);}else t.pattern??=Ue$1();A$2.init(e,t);}),Nt$2=t(`$ZodEmail`,(e,t)=>{t.pattern??=We$2,A$2.init(e,t);}),Pt$2=t(`$ZodURL`,(e,t)=>{A$2.init(e,t),e._zod.check=n=>{try{let r=n.value.trim();if(!t.normalize&&t.protocol?.source===Qe$2.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}let 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});}};}),Ft$2=t(`$ZodEmoji`,(e,t)=>{t.pattern??=Ge$2(),A$2.init(e,t);}),It$2=t(`$ZodNanoID`,(e,t)=>{t.pattern??=Be$2,A$2.init(e,t);}),Lt$2=t(`$ZodCUID`,(e,t)=>{t.pattern??=Fe$2,A$2.init(e,t);}),Rt$2=t(`$ZodCUID2`,(e,t)=>{t.pattern??=Ie$2,A$2.init(e,t);}),zt$2=t(`$ZodULID`,(e,t)=>{t.pattern??=Le$2,A$2.init(e,t);}),Bt$2=t(`$ZodXID`,(e,t)=>{t.pattern??=Re$2,A$2.init(e,t);}),Vt$2=t(`$ZodKSUID`,(e,t)=>{t.pattern??=ze$2,A$2.init(e,t);}),Ht$2=t(`$ZodISODateTime`,(e,t)=>{t.pattern??=it$2(t),A$2.init(e,t);}),Ut$2=t(`$ZodISODate`,(e,t)=>{t.pattern??=tt$2,A$2.init(e,t);}),Wt$2=t(`$ZodISOTime`,(e,t)=>{t.pattern??=rt$2(t),A$2.init(e,t);}),Gt$2=t(`$ZodISODuration`,(e,t)=>{t.pattern??=Ve$2,A$2.init(e,t);}),Kt$2=t(`$ZodIPv4`,(e,t)=>{t.pattern??=Ke$2,A$2.init(e,t),e._zod.bag.format=`ipv4`;}),qt$2=t(`$ZodIPv6`,(e,t)=>{t.pattern??=qe$2,A$2.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});}};}),Jt$2=t(`$ZodCIDRv4`,(e,t)=>{t.pattern??=Je$2,A$2.init(e,t);}),Yt$2=t(`$ZodCIDRv6`,(e,t)=>{t.pattern??=Ye$2,A$2.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 Xt$1(e){if(e===``)return true;if(/\s/.test(e)||e.length%4!=0)return false;try{return atob(e),true}catch{return false}}const Zt$2=t(`$ZodBase64`,(e,t)=>{t.pattern??=Xe$2,A$2.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{Xt$1(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort});};});function Qt$2(e){if(!Ze$2.test(e))return false;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return Xt$1(t.padEnd(Math.ceil(t.length/4)*4,`=`))}const $t$2=t(`$ZodBase64URL`,(e,t)=>{t.pattern??=Ze$2,A$2.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{Qt$2(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort});};}),en$1=t(`$ZodE164`,(e,t)=>{t.pattern??=$e$2,A$2.init(e,t);});function tn$2(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 nn$2=t(`$ZodJWT`,(e,t)=>{A$2.init(e,t),e._zod.check=n=>{tn$2(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort});};}),rn$1=t(`$ZodNumber`,(e,t)=>{k$2.init(e,t),e._zod.pattern=e._zod.bag.pattern??st$2,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};}),an$2=t(`$ZodNumberFormat`,(e,t)=>{_t$1.init(e,t),rn$1.init(e,t);}),on$2=t(`$ZodBoolean`,(e,t)=>{k$2.init(e,t),e._zod.pattern=ct$2,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};}),sn$1=t(`$ZodUndefined`,(e,t)=>{k$2.init(e,t),e._zod.pattern=ut$2,e._zod.values=new Set([void 0]),e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`undefined`,code:`invalid_type`,input:r,inst:e}),t};}),cn$1=t(`$ZodNull`,(e,t)=>{k$2.init(e,t),e._zod.pattern=lt$2,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};}),ln=t(`$ZodAny`,(e,t)=>{k$2.init(e,t),e._zod.parse=e=>e;}),un$1=t(`$ZodUnknown`,(e,t)=>{k$2.init(e,t),e._zod.parse=e=>e;}),dn$1=t(`$ZodNever`,(e,t)=>{k$2.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t);}),fn$2=t(`$ZodVoid`,(e,t)=>{k$2.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};}),pn$2=t(`$ZodDate`,(e,t)=>{k$2.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 mn$1(e,t,n){e.issues.length&&t.issues.push(...S$2(n,e.issues)),t.value[n]=e.value;}const hn$1=t(`$ZodArray`,(e,t)=>{k$2.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=>mn$1(t,n,e))):mn$1(s,n,e);}return a.length?Promise.all(a).then(()=>n):n};});function j$2(e,t,n,r,i,a){let o=n in r;if(e.issues.length){if(i&&a&&!o)return;t.issues.push(...S$2(n,e.issues));}if(!o&&!i){e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]});return}e.value===void 0?o&&(t.value[n]=void 0):t.value[n]=e.value;}function gn$1(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=oe$1(e.shape);return {...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function _n$1(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optin===`optional`,d=c.optout===`optional`;for(let i in t){if(i===`__proto__`||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=>j$2(e,n,i,t,u,d))):j$2(a,n,i,t,u,d);}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}const vn=t(`$ZodObject`,(e,t)=>{if(k$2.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=c$1(()=>gn$1(t));p$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=g$1,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],r=n._zod.optin===`optional`,i=n._zod.optout===`optional`,a=n._zod.run({value:s[e],issues:[]},o);a instanceof Promise?c.push(a.then(n=>j$2(n,t,e,s,r,i))):j$2(a,t,e,s,r,i);}return i?_n$1(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t};}),yn=t(`$ZodObjectJIT`,(e,t)=>{vn.init(e,t);let n=e._zod.parse,r=c$1(()=>gn$1(t)),a=e=>{let t=new Ot$2([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=ee$1(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 r of n.keys){let n=a[r],o=ee$1(r),s=e[r],c=s?._zod?.optin===`optional`,l=s?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),c&&l?t.write(`
6
6
  if (${n}.issues.length) {
7
7
  if (${o} in input) {
8
8
  payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
@@ -61,11 +61,11 @@ var e;function t(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,"_zod
61
61
  }
62
62
  }
63
63
 
64
- `);}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return (t,n)=>s(e,t,n)},o,s=g$1,l=!i$1.jitless,u=l&&re$1.value,d=t.catchall,f;e._zod.parse=(i,c)=>{f??=r.value;let p=i.value;return s(p)?l&&u&&c?.async===false&&c.jitless!==true?(o||=a(t.shape),i=o(i,c),d?gn([],p,i,c,f,e):i):n(i,c):(i.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),i)};});function yn$1(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=>!x$1(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=>w$2(e,r,a$1())))}),t)}const bn$1=t(`$ZodUnion`,(e,t)=>{A$2.init(e,t),p$1(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),p$1(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),p$1(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),p$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=>u$1(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=false,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=true;else {if(t.issues.length===0)return t;o.push(t);}}return a?Promise.all(o).then(t=>yn$1(t,r,e,i)):yn$1(o,r,e,i)};}),xn$1=t(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=false,bn$1.init(e,t);let n=e._zod.parse;p$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=c$1(()=>{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(!g$1(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||a.direction===`backward`?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,options:Array.from(r.value.keys()),input:o,path:[t.discriminator],inst:e}),i)};}),Sn$1=t(`$ZodIntersection`,(e,t)=>{A$2.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])=>wn$1(e,t,n)):wn$1(e,i,a)};});function Cn$1(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return {valid:true,data:e};if(_$1(e)&&_$1(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=Cn$1(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=Cn$1(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 wn$1(e,t,n){let r=new Map,i;for(let n of t.issues)if(n.code===`unrecognized_keys`){i??=n;for(let e of n.keys)r.has(e)||r.set(e,{}),r.get(e).l=true;}else e.issues.push(n);for(let t of n.issues)if(t.code===`unrecognized_keys`)for(let e of t.keys)r.has(e)||r.set(e,{}),r.get(e).r=true;else e.issues.push(t);let a=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),x$1(e))return e;let o=Cn$1(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}const Tn$1=t(`$ZodRecord`,(e,t)=>{A$2.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!_$1(i))return n.issues.push({expected:`record`,code:`invalid_type`,input:i,inst:e}),n;let o=[],s=t.keyType._zod.values;if(s){n.value={};let c=new Set;for(let l of s)if(typeof l==`string`||typeof l==`number`||typeof l==`symbol`){c.add(typeof l==`number`?l.toString():l);let s=t.keyType._zod.run({value:l,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=>w$2(e,r,a$1())),input:l,path:[l],inst:e});continue}let u=s.value,d=t.valueType._zod.run({value:i[l],issues:[]},r);d instanceof Promise?o.push(d.then(e=>{e.issues.length&&n.issues.push(...S$2(l,e.issues)),n.value[u]=e.value;})):(d.issues.length&&n.issues.push(...S$2(l,d.issues)),n.value[u]=d.value);}let l;for(let e in i)c.has(e)||(l??=[],l.push(e));l&&l.length>0&&n.issues.push({code:`unrecognized_keys`,input:i,inst:e,keys:l});}else {n.value={};for(let s of Reflect.ownKeys(i)){if(s===`__proto__`||!Object.prototype.propertyIsEnumerable.call(i,s))continue;let c=t.keyType._zod.run({value:s,issues:[]},r);if(c instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof s==`string`&&ot$2.test(s)&&c.issues.length){let e=t.keyType._zod.run({value:Number(s),issues:[]},r);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(c=e);}if(c.issues.length){t.mode===`loose`?n.value[s]=i[s]:n.issues.push({code:`invalid_key`,origin:`record`,issues:c.issues.map(e=>w$2(e,r,a$1())),input:s,path:[s],inst:e});continue}let l=t.valueType._zod.run({value:i[s],issues:[]},r);l instanceof Promise?o.push(l.then(e=>{e.issues.length&&n.issues.push(...S$2(s,e.issues)),n.value[c.value]=e.value;})):(l.issues.length&&n.issues.push(...S$2(s,l.issues)),n.value[c.value]=l.value);}}return o.length?Promise.all(o).then(()=>n):n};}),En$1=t(`$ZodEnum`,(e,t)=>{A$2.init(e,t);let n=o$1(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>ae$1.has(typeof e)).map(e=>typeof e==`string`?v$1(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};}),Dn$1=t(`$ZodLiteral`,(e,t)=>{if(A$2.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`?v$1(e):e?v$1(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};}),On$1=t(`$ZodTransform`,(e,t)=>{A$2.init(e,t),e._zod.optin=`optional`,e._zod.parse=(i,a)=>{if(a.direction===`backward`)throw new r(e.constructor.name);let o=t.transform(i.value,i);if(a.async)return (o instanceof Promise?o:Promise.resolve(o)).then(e=>(i.value=e,i.fallback=true,i));if(o instanceof Promise)throw new n;return i.value=o,i.fallback=true,i};});function kn$1(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const An$1=t(`$ZodOptional`,(e,t)=>{A$2.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,p$1(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),p$1(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${u$1(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=e.value,i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(e=>kn$1(e,r)):kn$1(i,r)}return e.value===void 0?e:t.innerType._zod.run(e,n)};}),jn$1=t(`$ZodExactOptional`,(e,t)=>{An$1.init(e,t),p$1(e._zod,`values`,()=>t.innerType._zod.values),p$1(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n);}),Mn$1=t(`$ZodNullable`,(e,t)=>{A$2.init(e,t),p$1(e._zod,`optin`,()=>t.innerType._zod.optin),p$1(e._zod,`optout`,()=>t.innerType._zod.optout),p$1(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${u$1(e.source)}|null)$`):void 0}),p$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);}),Nn$1=t(`$ZodDefault`,(e,t)=>{A$2.init(e,t),e._zod.optin=`optional`,p$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=>Pn$1(e,t)):Pn$1(r,t)};});function Pn$1(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const Fn$1=t(`$ZodPrefault`,(e,t)=>{A$2.init(e,t),e._zod.optin=`optional`,p$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));}),In$1=t(`$ZodNonOptional`,(e,t)=>{A$2.init(e,t),p$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=>Ln$1(t,e)):Ln$1(i,e)};});function Ln$1(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 Rn$1=t(`$ZodCatch`,(e,t)=>{A$2.init(e,t),e._zod.optin=`optional`,p$1(e._zod,`optout`,()=>t.innerType._zod.optout),p$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=>w$2(e,n,a$1()))},input:e.value}),e.issues=[],e.fallback=true),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>w$2(e,n,a$1()))},input:e.value}),e.issues=[],e.fallback=true),e)};}),zn$1=t(`$ZodPipe`,(e,t)=>{A$2.init(e,t),p$1(e._zod,`values`,()=>t.in._zod.values),p$1(e._zod,`optin`,()=>t.in._zod.optin),p$1(e._zod,`optout`,()=>t.out._zod.optout),p$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=>N$2(e,t.in,n)):N$2(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>N$2(e,t.out,n)):N$2(r,t.out,n)};});function N$2(e,t,n){return e.issues.length?(e.aborted=true,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}const Bn$1=t(`$ZodPreprocess`,(e,t)=>{zn$1.init(e,t);}),Vn$1=t(`$ZodReadonly`,(e,t)=>{A$2.init(e,t),p$1(e._zod,`propValues`,()=>t.innerType._zod.propValues),p$1(e._zod,`values`,()=>t.innerType._zod.values),p$1(e._zod,`optin`,()=>t.innerType?._zod?.optin),p$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(Hn$1):Hn$1(r)};});function Hn$1(e){return e.value=Object.freeze(e.value),e}const Un$1=t(`$ZodLazy`,(e,t)=>{A$2.init(e,t),p$1(e._zod,`innerType`,()=>{let e=t;return e._cachedInner||=t.getter(),e._cachedInner}),p$1(e._zod,`pattern`,()=>e._zod.innerType?._zod?.pattern),p$1(e._zod,`propValues`,()=>e._zod.innerType?._zod?.propValues),p$1(e._zod,`optin`,()=>e._zod.innerType?._zod?.optin??void 0),p$1(e._zod,`optout`,()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n);}),Wn$1=t(`$ZodCustom`,(e,t)=>{O$2.init(e,t),A$2.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=>Gn$1(t,n,r,e));Gn$1(i,n,r,e);};});function Gn$1(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(T$2(e));}}var Kn$1,qn$1=class qn{constructor(){this._map=new WeakMap,this._idmap=new Map;}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),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 Jn$1(){return new qn$1}(Kn$1=globalThis).__zod_globalRegistry??(Kn$1.__zod_globalRegistry=Jn$1());const P$2=globalThis.__zod_globalRegistry;function Yn$1(e,t){return new e({type:`string`,...b$1(t)})}function Xn$1(e,t){return new e({type:`string`,coerce:true,...b$1(t)})}function Zn$1(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:false,...b$1(t)})}function Qn$1(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:false,...b$1(t)})}function $n$1(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:false,...b$1(t)})}function er$1(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:false,version:`v4`,...b$1(t)})}function tr(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:false,version:`v6`,...b$1(t)})}function nr(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:false,version:`v7`,...b$1(t)})}function rr(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:false,...b$1(t)})}function ir(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:false,...b$1(t)})}function ar(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:false,...b$1(t)})}function or(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:false,...b$1(t)})}function sr(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:false,...b$1(t)})}function cr(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:false,...b$1(t)})}function lr(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:false,...b$1(t)})}function ur(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:false,...b$1(t)})}function dr(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:false,...b$1(t)})}function fr(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:false,...b$1(t)})}function pr(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:false,...b$1(t)})}function mr(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:false,...b$1(t)})}function hr(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:false,...b$1(t)})}function gr(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:false,...b$1(t)})}function _r(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:false,...b$1(t)})}function vr$1(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:false,...b$1(t)})}function yr$1(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:false,local:false,precision:null,...b$1(t)})}function br$1(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...b$1(t)})}function xr$1(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...b$1(t)})}function Sr(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...b$1(t)})}function Cr$1(e,t){return new e({type:`number`,checks:[],...b$1(t)})}function wr$1(e,t){return new e({type:`number`,coerce:true,checks:[],...b$1(t)})}function Tr$1(e,t){return new e({type:`number`,check:`number_format`,abort:false,format:`safeint`,...b$1(t)})}function Er$1(e,t){return new e({type:`boolean`,...b$1(t)})}function Dr$1(e,t){return new e({type:`boolean`,coerce:true,...b$1(t)})}function Or$1(e,t){return new e({type:`undefined`,...b$1(t)})}function kr$1(e,t){return new e({type:`null`,...b$1(t)})}function Ar$1(e){return new e({type:`any`})}function jr$1(e){return new e({type:`unknown`})}function Mr$1(e,t){return new e({type:`never`,...b$1(t)})}function Nr$1(e,t){return new e({type:`void`,...b$1(t)})}function Pr$1(e,t){return new e({type:`date`,...b$1(t)})}function Fr$1(e,t){return new pt$2({check:`less_than`,...b$1(t),value:e,inclusive:false})}function F$2(e,t){return new pt$2({check:`less_than`,...b$1(t),value:e,inclusive:true})}function Ir$1(e,t){return new mt$1({check:`greater_than`,...b$1(t),value:e,inclusive:false})}function I$2(e,t){return new mt$1({check:`greater_than`,...b$1(t),value:e,inclusive:true})}function Lr$1(e,t){return new ht$2({check:`multiple_of`,...b$1(t),value:e})}function Rr$1(e,t){return new _t$1({check:`max_length`,...b$1(t),maximum:e})}function L$2(e,t){return new vt$2({check:`min_length`,...b$1(t),minimum:e})}function zr$1(e,t){return new yt$2({check:`length_equals`,...b$1(t),length:e})}function Br(e,t){return new bt$2({check:`string_format`,format:`regex`,...b$1(t),pattern:e})}function Vr$1(e){return new xt$2({check:`string_format`,format:`lowercase`,...b$1(e)})}function Hr$1(e){return new St$2({check:`string_format`,format:`uppercase`,...b$1(e)})}function Ur$1(e,t){return new Ct$2({check:`string_format`,format:`includes`,...b$1(t),includes:e})}function Wr$1(e,t){return new wt$2({check:`string_format`,format:`starts_with`,...b$1(t),prefix:e})}function Gr$1(e,t){return new Tt$2({check:`string_format`,format:`ends_with`,...b$1(t),suffix:e})}function R$2(e){return new Et$2({check:`overwrite`,tx:e})}function Kr$1(e){return R$2(t=>t.normalize(e))}function qr$1(){return R$2(e=>e.trim())}function Jr$1(){return R$2(e=>e.toLowerCase())}function Yr$1(){return R$2(e=>e.toUpperCase())}function Xr$1(){return R$2(e=>te$1(e))}function Zr$1(e,t,n){return new e({type:`array`,element:t,...b$1(n)})}function Qr$1(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...b$1(n)})}function $r$1(e,t){let n=ei$1(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(T$2(e,t.value,n._zod.def));else {let r=e;r.fatal&&(r.continue=false),r.code??=`custom`,r.input??=t.value,r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(T$2(r));}},e(t.value,t)),t);return n}function ei$1(e,t){let n=new O$2({check:`custom`,...b$1(t)});return n._zod.check=e,n}function ti$1(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??P$2,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function z$2(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else {let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else {let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r);}let a=e._zod.parent;a&&(o.ref||=a,z$2(a,t,r),t.seen.get(a).isParent=true);}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&B$2(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function ni$1(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0]);}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return {ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return {ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return {defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n;};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>
64
+ `);}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return (t,n)=>s(e,t,n)},o,s=g$1,l=!i$1.jitless,u=l&&re$1.value,d=t.catchall,f;e._zod.parse=(i,c)=>{f??=r.value;let p=i.value;return s(p)?l&&u&&c?.async===false&&c.jitless!==true?(o||=a(t.shape),i=o(i,c),d?_n$1([],p,i,c,f,e):i):n(i,c):(i.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),i)};});function bn$1(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=>!x$1(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=>w$2(e,r,a$1())))}),t)}const xn$1=t(`$ZodUnion`,(e,t)=>{k$2.init(e,t),p$1(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),p$1(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),p$1(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),p$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=>u$1(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=false,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=true;else {if(t.issues.length===0)return t;o.push(t);}}return a?Promise.all(o).then(t=>bn$1(t,r,e,i)):bn$1(o,r,e,i)};}),Sn=t(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=false,xn$1.init(e,t);let n=e._zod.parse;p$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=c$1(()=>{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(!g$1(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||a.direction===`backward`?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,options:Array.from(r.value.keys()),input:o,path:[t.discriminator],inst:e}),i)};}),Cn$1=t(`$ZodIntersection`,(e,t)=>{k$2.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])=>Tn$1(e,t,n)):Tn$1(e,i,a)};});function wn$1(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return {valid:true,data:e};if(_$1(e)&&_$1(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=wn$1(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=wn$1(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 Tn$1(e,t,n){let r=new Map,i;for(let n of t.issues)if(n.code===`unrecognized_keys`){i??=n;for(let e of n.keys)r.has(e)||r.set(e,{}),r.get(e).l=true;}else e.issues.push(n);for(let t of n.issues)if(t.code===`unrecognized_keys`)for(let e of t.keys)r.has(e)||r.set(e,{}),r.get(e).r=true;else e.issues.push(t);let a=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),x$1(e))return e;let o=wn$1(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}const En$1=t(`$ZodRecord`,(e,t)=>{k$2.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!_$1(i))return n.issues.push({expected:`record`,code:`invalid_type`,input:i,inst:e}),n;let o=[],s=t.keyType._zod.values;if(s){n.value={};let c=new Set;for(let l of s)if(typeof l==`string`||typeof l==`number`||typeof l==`symbol`){c.add(typeof l==`number`?l.toString():l);let s=t.keyType._zod.run({value:l,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=>w$2(e,r,a$1())),input:l,path:[l],inst:e});continue}let u=s.value,d=t.valueType._zod.run({value:i[l],issues:[]},r);d instanceof Promise?o.push(d.then(e=>{e.issues.length&&n.issues.push(...S$2(l,e.issues)),n.value[u]=e.value;})):(d.issues.length&&n.issues.push(...S$2(l,d.issues)),n.value[u]=d.value);}let l;for(let e in i)c.has(e)||(l??=[],l.push(e));l&&l.length>0&&n.issues.push({code:`unrecognized_keys`,input:i,inst:e,keys:l});}else {n.value={};for(let s of Reflect.ownKeys(i)){if(s===`__proto__`||!Object.prototype.propertyIsEnumerable.call(i,s))continue;let c=t.keyType._zod.run({value:s,issues:[]},r);if(c instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof s==`string`&&st$2.test(s)&&c.issues.length){let e=t.keyType._zod.run({value:Number(s),issues:[]},r);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(c=e);}if(c.issues.length){t.mode===`loose`?n.value[s]=i[s]:n.issues.push({code:`invalid_key`,origin:`record`,issues:c.issues.map(e=>w$2(e,r,a$1())),input:s,path:[s],inst:e});continue}let l=t.valueType._zod.run({value:i[s],issues:[]},r);l instanceof Promise?o.push(l.then(e=>{e.issues.length&&n.issues.push(...S$2(s,e.issues)),n.value[c.value]=e.value;})):(l.issues.length&&n.issues.push(...S$2(s,l.issues)),n.value[c.value]=l.value);}}return o.length?Promise.all(o).then(()=>n):n};}),Dn$1=t(`$ZodEnum`,(e,t)=>{k$2.init(e,t);let n=o$1(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>ae$1.has(typeof e)).map(e=>typeof e==`string`?v$1(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};}),On$1=t(`$ZodLiteral`,(e,t)=>{if(k$2.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`?v$1(e):e?v$1(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};}),kn$1=t(`$ZodTransform`,(e,t)=>{k$2.init(e,t),e._zod.optin=`optional`,e._zod.parse=(i,a)=>{if(a.direction===`backward`)throw new r(e.constructor.name);let o=t.transform(i.value,i);if(a.async)return (o instanceof Promise?o:Promise.resolve(o)).then(e=>(i.value=e,i.fallback=true,i));if(o instanceof Promise)throw new n;return i.value=o,i.fallback=true,i};});function An$1(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const jn$1=t(`$ZodOptional`,(e,t)=>{k$2.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,p$1(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),p$1(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${u$1(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=e.value,i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(e=>An$1(e,r)):An$1(i,r)}return e.value===void 0?e:t.innerType._zod.run(e,n)};}),Mn$1=t(`$ZodExactOptional`,(e,t)=>{jn$1.init(e,t),p$1(e._zod,`values`,()=>t.innerType._zod.values),p$1(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n);}),Nn$1=t(`$ZodNullable`,(e,t)=>{k$2.init(e,t),p$1(e._zod,`optin`,()=>t.innerType._zod.optin),p$1(e._zod,`optout`,()=>t.innerType._zod.optout),p$1(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${u$1(e.source)}|null)$`):void 0}),p$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);}),Pn$1=t(`$ZodDefault`,(e,t)=>{k$2.init(e,t),e._zod.optin=`optional`,p$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=>Fn$1(e,t)):Fn$1(r,t)};});function Fn$1(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const In$1=t(`$ZodPrefault`,(e,t)=>{k$2.init(e,t),e._zod.optin=`optional`,p$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));}),Ln$1=t(`$ZodNonOptional`,(e,t)=>{k$2.init(e,t),p$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=>Rn$1(t,e)):Rn$1(i,e)};});function Rn$1(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 zn$1=t(`$ZodCatch`,(e,t)=>{k$2.init(e,t),e._zod.optin=`optional`,p$1(e._zod,`optout`,()=>t.innerType._zod.optout),p$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=>w$2(e,n,a$1()))},input:e.value}),e.issues=[],e.fallback=true),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>w$2(e,n,a$1()))},input:e.value}),e.issues=[],e.fallback=true),e)};}),Bn$1=t(`$ZodPipe`,(e,t)=>{k$2.init(e,t),p$1(e._zod,`values`,()=>t.in._zod.values),p$1(e._zod,`optin`,()=>t.in._zod.optin),p$1(e._zod,`optout`,()=>t.out._zod.optout),p$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=>M$2(e,t.in,n)):M$2(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>M$2(e,t.out,n)):M$2(r,t.out,n)};});function M$2(e,t,n){return e.issues.length?(e.aborted=true,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}const Vn$1=t(`$ZodPreprocess`,(e,t)=>{Bn$1.init(e,t);}),Hn$1=t(`$ZodReadonly`,(e,t)=>{k$2.init(e,t),p$1(e._zod,`propValues`,()=>t.innerType._zod.propValues),p$1(e._zod,`values`,()=>t.innerType._zod.values),p$1(e._zod,`optin`,()=>t.innerType?._zod?.optin),p$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(Un$1):Un$1(r)};});function Un$1(e){return e.value=Object.freeze(e.value),e}const Wn$1=t(`$ZodLazy`,(e,t)=>{k$2.init(e,t),p$1(e._zod,`innerType`,()=>{let e=t;return e._cachedInner||=t.getter(),e._cachedInner}),p$1(e._zod,`pattern`,()=>e._zod.innerType?._zod?.pattern),p$1(e._zod,`propValues`,()=>e._zod.innerType?._zod?.propValues),p$1(e._zod,`optin`,()=>e._zod.innerType?._zod?.optin??void 0),p$1(e._zod,`optout`,()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n);}),Gn$1=t(`$ZodCustom`,(e,t)=>{D$2.init(e,t),k$2.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=>Kn$1(t,n,r,e));Kn$1(i,n,r,e);};});function Kn$1(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(T$2(e));}}var qn$1,Jn$1=class Jn{constructor(){this._map=new WeakMap,this._idmap=new Map;}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),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 Yn$1(){return new Jn$1}(qn$1=globalThis).__zod_globalRegistry??(qn$1.__zod_globalRegistry=Yn$1());const N$2=globalThis.__zod_globalRegistry;function Xn$1(e,t){return new e({type:`string`,...b$1(t)})}function Zn$1(e,t){return new e({type:`string`,coerce:true,...b$1(t)})}function Qn$1(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:false,...b$1(t)})}function $n$1(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:false,...b$1(t)})}function er$1(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:false,...b$1(t)})}function tr$1(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:false,version:`v4`,...b$1(t)})}function nr$1(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:false,version:`v6`,...b$1(t)})}function rr$1(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:false,version:`v7`,...b$1(t)})}function ir$1(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:false,...b$1(t)})}function ar$1(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:false,...b$1(t)})}function or$1(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:false,...b$1(t)})}function sr$1(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:false,...b$1(t)})}function cr$1(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:false,...b$1(t)})}function lr(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:false,...b$1(t)})}function ur(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:false,...b$1(t)})}function dr(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:false,...b$1(t)})}function fr(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:false,...b$1(t)})}function pr(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:false,...b$1(t)})}function mr(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:false,...b$1(t)})}function hr(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:false,...b$1(t)})}function gr(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:false,...b$1(t)})}function _r(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:false,...b$1(t)})}function vr(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:false,...b$1(t)})}function yr(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:false,...b$1(t)})}function br(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:false,local:false,precision:null,...b$1(t)})}function xr(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...b$1(t)})}function Sr(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...b$1(t)})}function Cr(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...b$1(t)})}function wr(e,t){return new e({type:`number`,checks:[],...b$1(t)})}function Tr(e,t){return new e({type:`number`,coerce:true,checks:[],...b$1(t)})}function Er(e,t){return new e({type:`number`,check:`number_format`,abort:false,format:`safeint`,...b$1(t)})}function Dr(e,t){return new e({type:`boolean`,...b$1(t)})}function Or$1(e,t){return new e({type:`boolean`,coerce:true,...b$1(t)})}function kr$1(e,t){return new e({type:`undefined`,...b$1(t)})}function Ar$1(e,t){return new e({type:`null`,...b$1(t)})}function jr$1(e){return new e({type:`any`})}function Mr$1(e){return new e({type:`unknown`})}function Nr$1(e,t){return new e({type:`never`,...b$1(t)})}function Pr(e,t){return new e({type:`void`,...b$1(t)})}function Fr$1(e,t){return new e({type:`date`,...b$1(t)})}function Ir$1(e,t){return new mt$1({check:`less_than`,...b$1(t),value:e,inclusive:false})}function P$2(e,t){return new mt$1({check:`less_than`,...b$1(t),value:e,inclusive:true})}function Lr$1(e,t){return new ht$2({check:`greater_than`,...b$1(t),value:e,inclusive:false})}function F$2(e,t){return new ht$2({check:`greater_than`,...b$1(t),value:e,inclusive:true})}function Rr$1(e,t){return new gt$2({check:`multiple_of`,...b$1(t),value:e})}function zr$1(e,t){return new vt$2({check:`max_length`,...b$1(t),maximum:e})}function I$2(e,t){return new yt$2({check:`min_length`,...b$1(t),minimum:e})}function Br$1(e,t){return new bt$2({check:`length_equals`,...b$1(t),length:e})}function Vr$1(e,t){return new xt$2({check:`string_format`,format:`regex`,...b$1(t),pattern:e})}function Hr$1(e){return new St$2({check:`string_format`,format:`lowercase`,...b$1(e)})}function Ur$1(e){return new Ct$2({check:`string_format`,format:`uppercase`,...b$1(e)})}function Wr$1(e,t){return new wt$2({check:`string_format`,format:`includes`,...b$1(t),includes:e})}function Gr$1(e,t){return new Tt$2({check:`string_format`,format:`starts_with`,...b$1(t),prefix:e})}function Kr$1(e,t){return new Et$2({check:`string_format`,format:`ends_with`,...b$1(t),suffix:e})}function L$2(e){return new Dt$2({check:`overwrite`,tx:e})}function qr$1(e){return L$2(t=>t.normalize(e))}function Jr$1(){return L$2(e=>e.trim())}function Yr$1(){return L$2(e=>e.toLowerCase())}function Xr$1(){return L$2(e=>e.toUpperCase())}function Zr$1(){return L$2(e=>te$1(e))}function Qr$1(e,t,n){return new e({type:`array`,element:t,...b$1(n)})}function $r$1(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...b$1(n)})}function ei$1(e,t){let n=ti(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(T$2(e,t.value,n._zod.def));else {let r=e;r.fatal&&(r.continue=false),r.code??=`custom`,r.input??=t.value,r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(T$2(r));}},e(t.value,t)),t);return n}function ti(e,t){let n=new D$2({check:`custom`,...b$1(t)});return n._zod.check=e,n}function ni$1(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??N$2,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function R$2(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else {let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else {let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r);}let a=e._zod.parent;a&&(o.ref||=a,R$2(a,t,r),t.seen.get(a).isParent=true);}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&z$2(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function ri$1(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0]);}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return {ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return {ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return {defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n;};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>
65
65
 
66
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function ri$1(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref&&n.def)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e];}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e];}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]});};for(let t of [...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n);}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def);}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:V$2(t,`input`,e.processors),output:V$2(t,`output`,e.processors)}},enumerable:false,writable:false}),n}catch{throw Error(`Error converting schema to JSON.`)}}function B$2(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return false;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return true;if(r.type===`array`)return B$2(r.element,n);if(r.type===`set`)return B$2(r.valueType,n);if(r.type===`lazy`)return B$2(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`)return B$2(r.innerType,n);if(r.type===`intersection`)return B$2(r.left,n)||B$2(r.right,n);if(r.type===`record`||r.type===`map`)return B$2(r.keyType,n)||B$2(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?true:B$2(r.in,n)||B$2(r.out,n);if(r.type===`object`){for(let e in r.shape)if(B$2(r.shape[e],n))return true;return false}if(r.type===`union`){for(let e of r.options)if(B$2(e,n))return true;return false}if(r.type===`tuple`){for(let e of r.items)if(B$2(e,n))return true;return !!(r.rest&&B$2(r.rest,n))}return false}const ii$1=(e,t={})=>n=>{let r=ti$1({...n,processors:t});return z$2(e,r),ni$1(r,e),ri$1(r,e)},V$2=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=ti$1({...i??{},target:a,io:t,processors:n});return z$2(e,o),ni$1(o,e),ri$1(o,e)},ai$1={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},oi$1=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=ai$1[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))]);}},si$1=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;typeof s==`string`&&s.includes(`int`)?i.type=`integer`:i.type=`number`;let d=typeof u==`number`&&u>=(a??-1/0),f=typeof l==`number`&&l<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;d?p?(i.minimum=u,i.exclusiveMinimum=true):i.exclusiveMinimum=u:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=l,i.exclusiveMaximum=true):i.exclusiveMaximum=l:typeof o==`number`&&(i.maximum=o),typeof c==`number`&&(i.multipleOf=c);},ci$1=(e,t,n,r)=>{n.type=`boolean`;},li$1=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=true,n.enum=[null]):n.type=`null`;},ui$1=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Undefined cannot be represented in JSON Schema`)},di=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Void cannot be represented in JSON Schema`)},fi$1=(e,t,n,r)=>{n.not={};},pi$1=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Date cannot be represented in JSON Schema`)},mi$1=(e,t,n,r)=>{let i=e._zod.def,a=o$1(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a;},hi$1=(e,t,n,r)=>{let i=e._zod.def,a=[];for(let e of i.values)if(e===void 0){if(t.unrepresentable===`throw`)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof e==`bigint`){if(t.unrepresentable===`throw`)throw Error(`BigInt literals cannot be represented in JSON Schema`);a.push(Number(e));}else a.push(e);if(a.length!==0)if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e;}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a;},gi$1=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},_i=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},vi=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=z$2(a.element,t,{...r,path:[...r.path,`items`]});},yi$1=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=z$2(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=false:a.catchall?a.catchall&&(i.additionalProperties=z$2(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=false);},bi$1=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===false,o=i.options.map((e,n)=>z$2(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o;},xi$1=(e,t,n,r)=>{let i=e._zod.def,a=z$2(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=z$2(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]];},Si$1=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=o._zod.bag?.patterns;if(a.mode===`loose`&&s&&s.size>0){let e=z$2(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)i.patternProperties[t.source]=e;}else (t.target===`draft-07`||t.target===`draft-2020-12`)&&(i.propertyNames=z$2(a.keyType,t,{...r,path:[...r.path,`propertyNames`]})),i.additionalProperties=z$2(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]});let c=o._zod.values;if(c){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e);}},Ci$1=(e,t,n,r)=>{let i=e._zod.def,a=z$2(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=true):n.anyOf=[a,{type:`null`}];},wi$1=(e,t,n,r)=>{let i=e._zod.def;z$2(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;},Ti$1=(e,t,n,r)=>{let i=e._zod.def;z$2(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue));},Ei$1=(e,t,n,r)=>{let i=e._zod.def;z$2(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)));},Di$1=(e,t,n,r)=>{let i=e._zod.def;z$2(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0);}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o;},Oi$1=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;z$2(o,t,r);let s=t.seen.get(e);s.ref=o;},ki$1=(e,t,n,r)=>{let i=e._zod.def;z$2(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=true;},Ai$1=(e,t,n,r)=>{let i=e._zod.def;z$2(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;},ji$1=(e,t,n,r)=>{let i=e._zod.innerType;z$2(i,t,r);let a=t.seen.get(e);a.ref=i;},Mi$1=t(`ZodISODateTime`,(e,t)=>{Vt$2.init(e,t),G$2.init(e,t);});function Ni$1(e){return yr$1(Mi$1,e)}const Pi$1=t(`ZodISODate`,(e,t)=>{Ht$2.init(e,t),G$2.init(e,t);});function Fi$1(e){return br$1(Pi$1,e)}const Ii$1=t(`ZodISOTime`,(e,t)=>{Ut$2.init(e,t),G$2.init(e,t);});function Li$1(e){return xr$1(Ii$1,e)}const Ri$1=t(`ZodISODuration`,(e,t)=>{Wt$2.init(e,t),G$2.init(e,t);});function zi$1(e){return Sr(Ri$1,e)}const H$2=t(`ZodError`,(e,t)=>{ve$2.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>xe$2(e,t)},flatten:{value:t=>be$2(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,s$1,2);}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,s$1,2);}},isEmpty:{get(){return e.issues.length===0}}});},{Parent:Error}),Bi$1=Se$2(H$2),Vi$1=Ce$2(H$2),Hi$1=E$2(H$2),Ui$1=D$2(H$2),Wi$1=Ee$2(H$2),Gi$1=De$2(H$2),Ki$1=Oe$2(H$2),qi$1=ke$2(H$2),Ji$1=Ae$2(H$2),Yi$1=je$2(H$2),Xi$1=Me$2(H$2),Zi$1=Ne$2(H$2),Qi$1=new WeakMap;function U$2(e,t,n){let r=Object.getPrototypeOf(e),i=Qi$1.get(r);if(i||(i=new Set,Qi$1.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:true,enumerable:false,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:true,writable:true,enumerable:true,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:true,writable:true,enumerable:true,value:t});}});}}}const W$2=t(`ZodType`,(e,t)=>(A$2.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:V$2(e,`input`),output:V$2(e,`output`)}}),e.toJSONSchema=ii$1(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(t,n)=>Bi$1(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>Hi$1(e,t,n),e.parseAsync=async(t,n)=>Vi$1(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>Ui$1(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>Wi$1(e,t,n),e.decode=(t,n)=>Gi$1(e,t,n),e.encodeAsync=async(t,n)=>Ki$1(e,t,n),e.decodeAsync=async(t,n)=>qi$1(e,t,n),e.safeEncode=(t,n)=>Ji$1(e,t,n),e.safeDecode=(t,n)=>Yi$1(e,t,n),e.safeEncodeAsync=async(t,n)=>Xi$1(e,t,n),e.safeDecodeAsync=async(t,n)=>Zi$1(e,t,n),U$2(e,`ZodType`,{check(...e){let t=this.def;return this.clone(h$1(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:true})},with(...e){return this.check(...e)},clone(e,t){return y$1(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(Ao$1(e,t))},superRefine(e,t){return this.check(jo$1(e,t))},overwrite(e){return this.check(R$2(e))},optional(){return co$1(this)},exactOptional(){return uo$1(this)},nullable(){return po$1(this)},nullish(){return co$1(po$1(this))},nonoptional(e){return yo(this,e)},array(){return Ua$1(this)},or(e){return Ja$1([this,e])},and(e){return Qa$1(this,e)},transform(e){return Co$1(this,oo$1(e))},default(e){return ho$1(this,e)},prefault(e){return _o$1(this,e)},catch(e){return xo(this,e)},pipe(e){return Co$1(this,e)},readonly(){return Eo$1(this)},describe(e){let t=this.clone();return P$2.add(t,{description:e}),t},meta(...e){if(e.length===0)return P$2.get(this);let t=this.clone();return P$2.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,"description",{get(){return P$2.get(e)?.description},configurable:true}),e)),$i$1=t(`_ZodString`,(e,t)=>{kt$2.init(e,t),W$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>oi$1(e,t,n);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,U$2(e,`_ZodString`,{regex(...e){return this.check(Br(...e))},includes(...e){return this.check(Ur$1(...e))},startsWith(...e){return this.check(Wr$1(...e))},endsWith(...e){return this.check(Gr$1(...e))},min(...e){return this.check(L$2(...e))},max(...e){return this.check(Rr$1(...e))},length(...e){return this.check(zr$1(...e))},nonempty(...e){return this.check(L$2(1,...e))},lowercase(e){return this.check(Vr$1(e))},uppercase(e){return this.check(Hr$1(e))},trim(){return this.check(qr$1())},normalize(...e){return this.check(Kr$1(...e))},toLowerCase(){return this.check(Jr$1())},toUpperCase(){return this.check(Yr$1())},slugify(){return this.check(Xr$1())}});}),ea$1=t(`ZodString`,(e,t)=>{kt$2.init(e,t),$i$1.init(e,t),e.email=t=>e.check(Zn$1(na$1,t)),e.url=t=>e.check(rr(aa$1,t)),e.jwt=t=>e.check(vr$1(xa$1,t)),e.emoji=t=>e.check(ir(sa$1,t)),e.guid=t=>e.check(Qn$1(ia,t)),e.uuid=t=>e.check($n$1(K$2,t)),e.uuidv4=t=>e.check(er$1(K$2,t)),e.uuidv6=t=>e.check(tr(K$2,t)),e.uuidv7=t=>e.check(nr(K$2,t)),e.nanoid=t=>e.check(ar(ca$1,t)),e.guid=t=>e.check(Qn$1(ia,t)),e.cuid=t=>e.check(or(la$1,t)),e.cuid2=t=>e.check(sr(ua$1,t)),e.ulid=t=>e.check(cr(da$1,t)),e.base64=t=>e.check(hr(va$1,t)),e.base64url=t=>e.check(gr(ya$1,t)),e.xid=t=>e.check(lr(fa$1,t)),e.ksuid=t=>e.check(ur(pa$1,t)),e.ipv4=t=>e.check(dr(ma$1,t)),e.ipv6=t=>e.check(fr(ha$1,t)),e.cidrv4=t=>e.check(pr(ga$1,t)),e.cidrv6=t=>e.check(mr(_a$1,t)),e.e164=t=>e.check(_r(ba$1,t)),e.datetime=t=>e.check(Ni$1(t)),e.date=t=>e.check(Fi$1(t)),e.time=t=>e.check(Li$1(t)),e.duration=t=>e.check(zi$1(t));});function ta$1(e){return Yn$1(ea$1,e)}const G$2=t(`ZodStringFormat`,(e,t)=>{j$2.init(e,t),$i$1.init(e,t);}),na$1=t(`ZodEmail`,(e,t)=>{Mt$2.init(e,t),G$2.init(e,t);});function ra(e){return Zn$1(na$1,e)}const ia=t(`ZodGUID`,(e,t)=>{At$2.init(e,t),G$2.init(e,t);}),K$2=t(`ZodUUID`,(e,t)=>{jt$2.init(e,t),G$2.init(e,t);}),aa$1=t(`ZodURL`,(e,t)=>{Nt$2.init(e,t),G$2.init(e,t);});function oa$1(e){return rr(aa$1,e)}const sa$1=t(`ZodEmoji`,(e,t)=>{Pt$2.init(e,t),G$2.init(e,t);}),ca$1=t(`ZodNanoID`,(e,t)=>{Ft$2.init(e,t),G$2.init(e,t);}),la$1=t(`ZodCUID`,(e,t)=>{It$2.init(e,t),G$2.init(e,t);}),ua$1=t(`ZodCUID2`,(e,t)=>{Lt$2.init(e,t),G$2.init(e,t);}),da$1=t(`ZodULID`,(e,t)=>{Rt$2.init(e,t),G$2.init(e,t);}),fa$1=t(`ZodXID`,(e,t)=>{zt$2.init(e,t),G$2.init(e,t);}),pa$1=t(`ZodKSUID`,(e,t)=>{Bt$2.init(e,t),G$2.init(e,t);}),ma$1=t(`ZodIPv4`,(e,t)=>{Gt$2.init(e,t),G$2.init(e,t);}),ha$1=t(`ZodIPv6`,(e,t)=>{Kt$2.init(e,t),G$2.init(e,t);}),ga$1=t(`ZodCIDRv4`,(e,t)=>{qt$2.init(e,t),G$2.init(e,t);}),_a$1=t(`ZodCIDRv6`,(e,t)=>{Jt$2.init(e,t),G$2.init(e,t);}),va$1=t(`ZodBase64`,(e,t)=>{Xt$1.init(e,t),G$2.init(e,t);}),ya$1=t(`ZodBase64URL`,(e,t)=>{Qt$2.init(e,t),G$2.init(e,t);}),ba$1=t(`ZodE164`,(e,t)=>{$t$2.init(e,t),G$2.init(e,t);}),xa$1=t(`ZodJWT`,(e,t)=>{tn$2.init(e,t),G$2.init(e,t);}),Sa$1=t(`ZodNumber`,(e,t)=>{nn$1.init(e,t),W$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>si$1(e,t,n),U$2(e,`ZodNumber`,{gt(e,t){return this.check(Ir$1(e,t))},gte(e,t){return this.check(I$2(e,t))},min(e,t){return this.check(I$2(e,t))},lt(e,t){return this.check(Fr$1(e,t))},lte(e,t){return this.check(F$2(e,t))},max(e,t){return this.check(F$2(e,t))},int(e){return this.check(Ta$1(e))},safe(e){return this.check(Ta$1(e))},positive(e){return this.check(Ir$1(0,e))},nonnegative(e){return this.check(I$2(0,e))},negative(e){return this.check(Fr$1(0,e))},nonpositive(e){return this.check(F$2(0,e))},multipleOf(e,t){return this.check(Lr$1(e,t))},step(e,t){return this.check(Lr$1(e,t))},finite(){return this}});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 Ca$1(e){return Cr$1(Sa$1,e)}const wa$1=t(`ZodNumberFormat`,(e,t)=>{rn$1.init(e,t),Sa$1.init(e,t);});function Ta$1(e){return Tr$1(wa$1,e)}const Ea$1=t(`ZodBoolean`,(e,t)=>{an$2.init(e,t),W$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ci$1(e,t,n);});function Da$1(e){return Er$1(Ea$1,e)}const Oa$1=t(`ZodUndefined`,(e,t)=>{on$1.init(e,t),W$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ui$1(e,t);});function ka$1(e){return Or$1(Oa$1,e)}const Aa$1=t(`ZodNull`,(e,t)=>{sn.init(e,t),W$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>li$1(e,t,n);});function ja$1(e){return kr$1(Aa$1,e)}const Ma$1=t(`ZodAny`,(e,t)=>{cn$1.init(e,t),W$2.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0;});function Na$1(){return Ar$1(Ma$1)}const Pa$1=t(`ZodUnknown`,(e,t)=>{ln$1.init(e,t),W$2.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0;});function Fa$1(){return jr$1(Pa$1)}const Ia$1=t(`ZodNever`,(e,t)=>{un$2.init(e,t),W$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>fi$1(e,t,n);});function La$1(e){return Mr$1(Ia$1,e)}const Ra$1=t(`ZodVoid`,(e,t)=>{dn$2.init(e,t),W$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>di(e,t);});function za$1(e){return Nr$1(Ra$1,e)}const Ba$1=t(`ZodDate`,(e,t)=>{fn$1.init(e,t),W$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>pi$1(e,t),e.min=(t,n)=>e.check(I$2(t,n)),e.max=(t,n)=>e.check(F$2(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 Va$1(e){return Pr$1(Ba$1,e)}const Ha$1=t(`ZodArray`,(e,t)=>{mn$1.init(e,t),W$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>vi(e,t,n,r),e.element=t.element,U$2(e,`ZodArray`,{min(e,t){return this.check(L$2(e,t))},nonempty(e){return this.check(L$2(1,e))},max(e,t){return this.check(Rr$1(e,t))},length(e,t){return this.check(zr$1(e,t))},unwrap(){return this.element}});});function Ua$1(e,t){return Zr$1(Ha$1,e,t)}const Wa=t(`ZodObject`,(e,t)=>{vn$1.init(e,t),W$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>yi$1(e,t,n,r),p$1(e,`shape`,()=>t.shape),U$2(e,`ZodObject`,{keyof(){return no$1(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:Fa$1()})},loose(){return this.clone({...this._zod.def,catchall:Fa$1()})},strict(){return this.clone({...this._zod.def,catchall:La$1()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return ue$2(this,e)},safeExtend(e){return de$2(this,e)},merge(e){return fe$2(this,e)},pick(e){return ce$1(this,e)},omit(e){return le$2(this,e)},partial(...e){return pe$2(so$1,this,e[0])},required(...e){return me$2(vo$1,this,e[0])}});});function Ga$1(e,t){return new Wa({type:`object`,shape:e??{},...b$1(t)})}function Ka(e,t){return new Wa({type:`object`,shape:e,catchall:La$1(),...b$1(t)})}const qa$1=t(`ZodUnion`,(e,t)=>{bn$1.init(e,t),W$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>bi$1(e,t,n,r),e.options=t.options;});function Ja$1(e,t){return new qa$1({type:`union`,options:e,...b$1(t)})}const Ya$1=t(`ZodDiscriminatedUnion`,(e,t)=>{qa$1.init(e,t),xn$1.init(e,t);});function Xa$1(e,t,n){return new Ya$1({type:`union`,options:t,discriminator:e,...b$1(n)})}const Za$1=t(`ZodIntersection`,(e,t)=>{Sn$1.init(e,t),W$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>xi$1(e,t,n,r);});function Qa$1(e,t){return new Za$1({type:`intersection`,left:e,right:t})}const $a$1=t(`ZodRecord`,(e,t)=>{Tn$1.init(e,t),W$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Si$1(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType;});function eo$1(e,t,n){return !t||!t._zod?new $a$1({type:`record`,keyType:ta$1(),valueType:e,...b$1(t)}):new $a$1({type:`record`,keyType:e,valueType:t,...b$1(n)})}const to$1=t(`ZodEnum`,(e,t)=>{En$1.init(e,t),W$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>mi$1(e,t,n),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 to$1({...t,checks:[],...b$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 to$1({...t,checks:[],...b$1(r),entries:i})};});function no$1(e,t){return new to$1({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...b$1(t)})}const ro$1=t(`ZodLiteral`,(e,t)=>{Dn$1.init(e,t),W$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>hi$1(e,t,n),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 io$1(e,t){return new ro$1({type:`literal`,values:Array.isArray(e)?e:[e],...b$1(t)})}const ao$1=t(`ZodTransform`,(e,t)=>{On$1.init(e,t),W$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>_i(e,t),e._zod.parse=(n,i)=>{if(i.direction===`backward`)throw new r(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(T$2(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(T$2(t));}};let a=t.transform(n.value,n);return a instanceof Promise?a.then(e=>(n.value=e,n.fallback=true,n)):(n.value=a,n.fallback=true,n)};});function oo$1(e){return new ao$1({type:`transform`,transform:e})}const so$1=t(`ZodOptional`,(e,t)=>{An$1.init(e,t),W$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ai$1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType;});function co$1(e){return new so$1({type:`optional`,innerType:e})}const lo$1=t(`ZodExactOptional`,(e,t)=>{jn$1.init(e,t),W$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ai$1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType;});function uo$1(e){return new lo$1({type:`optional`,innerType:e})}const fo$1=t(`ZodNullable`,(e,t)=>{Mn$1.init(e,t),W$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ci$1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType;});function po$1(e){return new fo$1({type:`nullable`,innerType:e})}const mo$1=t(`ZodDefault`,(e,t)=>{Nn$1.init(e,t),W$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ti$1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap;});function ho$1(e,t){return new mo$1({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():ie$1(t)}})}const go$1=t(`ZodPrefault`,(e,t)=>{Fn$1.init(e,t),W$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ei$1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType;});function _o$1(e,t){return new go$1({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():ie$1(t)}})}const vo$1=t(`ZodNonOptional`,(e,t)=>{In$1.init(e,t),W$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>wi$1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType;});function yo(e,t){return new vo$1({type:`nonoptional`,innerType:e,...b$1(t)})}const bo$1=t(`ZodCatch`,(e,t)=>{Rn$1.init(e,t),W$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Di$1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap;});function xo(e,t){return new bo$1({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}const So$1=t(`ZodPipe`,(e,t)=>{zn$1.init(e,t),W$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Oi$1(e,t,n,r),e.in=t.in,e.out=t.out;});function Co$1(e,t){return new So$1({type:`pipe`,in:e,out:t})}const wo=t(`ZodPreprocess`,(e,t)=>{So$1.init(e,t),Bn$1.init(e,t);}),To=t(`ZodReadonly`,(e,t)=>{Vn$1.init(e,t),W$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ki$1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType;});function Eo$1(e){return new To({type:`readonly`,innerType:e})}const Do$1=t(`ZodLazy`,(e,t)=>{Un$1.init(e,t),W$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ji$1(e,t,n,r),e.unwrap=()=>e._zod.def.getter();});function Oo$1(e){return new Do$1({type:`lazy`,getter:e})}const ko$1=t(`ZodCustom`,(e,t)=>{Wn$1.init(e,t),W$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>gi$1(e,t);});function Ao$1(e,t={}){return Qr$1(ko$1,e,t)}function jo$1(e,t){return $r$1(e,t)}function Mo$1(e,t){return new wo({type:`pipe`,in:oo$1(e),out:t})}var No$1=/^(?:[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 Po$1(e){return typeof e==`string`&&No$1.test(e)}for(var q$2=[],Fo$1=0;Fo$1<256;++Fo$1)q$2.push((Fo$1+256).toString(16).slice(1));function Io$1(e,t=0){return (q$2[e[t+0]]+q$2[e[t+1]]+q$2[e[t+2]]+q$2[e[t+3]]+`-`+q$2[e[t+4]]+q$2[e[t+5]]+`-`+q$2[e[t+6]]+q$2[e[t+7]]+`-`+q$2[e[t+8]]+q$2[e[t+9]]+`-`+q$2[e[t+10]]+q$2[e[t+11]]+q$2[e[t+12]]+q$2[e[t+13]]+q$2[e[t+14]]+q$2[e[t+15]]).toLowerCase()}function Lo$1(e,t=0){var n=Io$1(e,t);if(!Po$1(n))throw TypeError(`Stringified UUID is invalid`);return n}var Ro$1,zo$1=new Uint8Array(16);function Bo$1(){if(!Ro$1&&(Ro$1=typeof crypto<`u`&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ro$1))throw Error(`crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported`);return Ro$1(zo$1)}var Vo$1=null,Ho=null,J$2=0;function Uo$1(e,t,n){e||={};var r=0,i=t||new Uint8Array(16),a=e.random||(e.rng||Bo$1)(),o=e.msecs===void 0?Date.now():e.msecs,s=e.seq===void 0?null:e.seq,c=Ho,l=Vo$1;return o>J$2&&e.msecs===void 0&&(J$2=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>J$2&&s===null?++l>524287&&(l=0,++c>4095&&(c=0,J$2++)):J$2=o,Ho=c,Vo$1=l,i[r++]=J$2/1099511627776&255,i[r++]=J$2/4294967296&255,i[r++]=J$2/16777216&255,i[r++]=J$2/65536&255,i[r++]=J$2/256&255,i[r++]=J$2&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||Io$1(i)}function Wo$1(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 Y$2=`0123456789abcdefghjkmnpqrstvwxyz`,X$2=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 Go$1(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]=Y$2[(e[0]&224)>>5],t[1]=Y$2[e[0]&31],t[2]=Y$2[(e[1]&248)>>3],t[3]=Y$2[(e[1]&7)<<2|(e[2]&192)>>6],t[4]=Y$2[(e[2]&62)>>1],t[5]=Y$2[(e[2]&1)<<4|(e[3]&240)>>4],t[6]=Y$2[(e[3]&15)<<1|(e[4]&128)>>7],t[7]=Y$2[(e[4]&124)>>2],t[8]=Y$2[(e[4]&3)<<3|(e[5]&224)>>5],t[9]=Y$2[e[5]&31],t[10]=Y$2[(e[6]&248)>>3],t[11]=Y$2[(e[6]&7)<<2|(e[7]&192)>>6],t[12]=Y$2[(e[7]&62)>>1],t[13]=Y$2[(e[7]&1)<<4|(e[8]&240)>>4],t[14]=Y$2[(e[8]&15)<<1|(e[9]&128)>>7],t[15]=Y$2[(e[9]&124)>>2],t[16]=Y$2[(e[9]&3)<<3|(e[10]&224)>>5],t[17]=Y$2[e[10]&31],t[18]=Y$2[(e[11]&248)>>3],t[19]=Y$2[(e[11]&7)<<2|(e[12]&192)>>6],t[20]=Y$2[(e[12]&62)>>1],t[21]=Y$2[(e[12]&1)<<4|(e[13]&240)>>4],t[22]=Y$2[(e[13]&15)<<1|(e[14]&128)>>7],t[23]=Y$2[(e[14]&124)>>2],t[24]=Y$2[(e[14]&3)<<3|(e[15]&224)>>5],t[25]=Y$2[e[15]&31],t.join(``)}function Ko$1(e){if(e.length!==26)throw Error(`Invalid length. Expected 26 bytes, got ${e.length}. Input: ${e}`);let t=new TextEncoder().encode(e);if(X$2[t[0]]===255||X$2[t[1]]===255||X$2[t[2]]===255||X$2[t[3]]===255||X$2[t[4]]===255||X$2[t[5]]===255||X$2[t[6]]===255||X$2[t[7]]===255||X$2[t[8]]===255||X$2[t[9]]===255||X$2[t[10]]===255||X$2[t[11]]===255||X$2[t[12]]===255||X$2[t[13]]===255||X$2[t[14]]===255||X$2[t[15]]===255||X$2[t[16]]===255||X$2[t[17]]===255||X$2[t[18]]===255||X$2[t[19]]===255||X$2[t[20]]===255||X$2[t[21]]===255||X$2[t[22]]===255||X$2[t[23]]===255||X$2[t[24]]===255||X$2[t[25]]===255)throw Error(`Invalid base32 character`);let n=new Uint8Array(16);return n[0]=X$2[t[0]]<<5|X$2[t[1]],n[1]=X$2[t[2]]<<3|X$2[t[3]]>>2,n[2]=(X$2[t[3]]&3)<<6|X$2[t[4]]<<1|X$2[t[5]]>>4,n[3]=(X$2[t[5]]&15)<<4|X$2[t[6]]>>1,n[4]=(X$2[t[6]]&1)<<7|X$2[t[7]]<<2|X$2[t[8]]>>3,n[5]=(X$2[t[8]]&7)<<5|X$2[t[9]],n[6]=X$2[t[10]]<<3|X$2[t[11]]>>2,n[7]=(X$2[t[11]]&3)<<6|X$2[t[12]]<<1|X$2[t[13]]>>4,n[8]=(X$2[t[13]]&15)<<4|X$2[t[14]]>>1,n[9]=(X$2[t[14]]&1)<<7|X$2[t[15]]<<2|X$2[t[16]]>>3,n[10]=(X$2[t[16]]&7)<<5|X$2[t[17]],n[11]=X$2[t[18]]<<3|X$2[t[19]]>>2,n[12]=(X$2[t[19]]&3)<<6|X$2[t[20]]<<1|X$2[t[21]]>>4,n[13]=(X$2[t[21]]&15)<<4|X$2[t[22]]>>1,n[14]=(X$2[t[22]]&1)<<7|X$2[t[23]]<<2|X$2[t[24]]>>3,n[15]=(X$2[t[24]]&7)<<5|X$2[t[25]],n}function qo$1(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 Jo=class extends Error{constructor(e){super(`Invalid prefix "${e}". Must be at most 63 ASCII letters [a-z_]`),this.name=`InvalidPrefixError`;}},Yo$1=class Yo extends Error{constructor(e,t){super(`Invalid TypeId. Prefix mismatch. Expected ${e}, got ${t}`),this.name=`PrefixMismatchError`;}},Xo=class extends Error{constructor(e){super(`Invalid TypeId. Prefix cannot be empty when there's a separator: ${e}`),this.name=`EmptyPrefixError`;}},Zo$1=class Zo extends Error{constructor(e){super(`Invalid length. Suffix should have 26 characters, got ${e}`),this.name=`InvalidSuffixLengthError`;}},Qo=class extends Error{constructor(e){super(`Invalid suffix. First character "${e}" must be in the range [0-7]`),this.name=`InvalidSuffixCharacterError`;}},$o$1=class $o extends Error{constructor(e,t){super(`Cannot convert TypeID of type ${e} to type ${t}`),this.name=`TypeIDConversionError`;}};function es(e=``,t=``){if(!qo$1(e))throw new Jo(e);let n;if(t)n=t;else {let e=new Uint8Array(16);Uo$1(void 0,e),n=Go$1(e);}if(n.length!==26)throw new Zo$1(n.length);if(n[0]>`7`)throw new Qo(n[0]);return Ko$1(n),e===``?n:`${e}_${n}`}function ts$1(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 Xo(e);if(!r)throw new Zo$1(0);if(t&&n!==t)throw new Yo$1(t,n);return es(n,r)}function ns$1(e){let t=e.lastIndexOf(`_`);return t===-1?``:e.substring(0,t)}function rs$1(e){let t=e.lastIndexOf(`_`);return t===-1?e:e.substring(t+1)}var Z$1=class Z{constructor(e,t=``){this.prefix=e,this.suffix=t;let n=es(e,t);this.prefix=ns$1(n),this.suffix=rs$1(n);}getType(){return this.prefix}getSuffix(){return this.suffix}asType(e){let t=this;if(t.prefix!==e)throw new $o$1(t.prefix,e);return t}toUUIDBytes(){return Ko$1(this.suffix)}toUUID(){return Lo$1(this.toUUIDBytes())}toString(){return this.prefix===``?this.suffix:`${this.prefix}_${this.suffix}`}static fromString(e,t){let n=ts$1(e,t);return new Z$1(ns$1(n),rs$1(n))}static fromUUIDBytes(e,t){return new Z$1(e,Go$1(t))}static fromUUID(e,t){return new Z$1(e,Go$1(Wo$1(t)))}};function is$1(e=``,t=``){return new Z$1(e,t)}const as$1={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`,paymentDispute:`pds`,webhookInboxEvent:`wih`,payoutAdjustmentApplication:`paa`,payoutAdjustment:`adj`,platformFunding:`pfu`,payoutTransfer:`xfr`,promoter:`pmt`,refund:`rfd`,section:`sct`,scan:`scn`,team:`tem`,teamMember:`mbr`,teamInvite:`inv`,teamGateway:`tgw`,teamGatewayAccount:`tga`,tenant:`tnt`,ticket:`tkt`,user:`usr`,venue:`ven`,location:`loc`,request:`req`,report:`rpt`,walletDevice:`wdv`,schedule:`sch`,session:`ssn`,trackingEvent:`tev`,trackingStats:`sta`,hllShard:`shr`,timeline:`tln`,notification:`ntf`};function os$1(e){return is$1(as$1[e])}const Q$3=`ses_sid`,$$3=`ses_aid`;function ss$1(){return os$1(`session`).toString()}function cs(){return os$1(`anonymous`).toString()}function ls$1(e){let t=e.getCookie(Q$3);if(t)return t;let n=ss$1();return e.setCookie(Q$3,n),n}function us$1(e){let t=e.getItem($$3);if(t)return t;let n=cs();return e.setItem($$3,n),n}function ds$1(e){let t=ss$1(),n=cs();return e.setCookie(Q$3,t),e.setItem($$3,n),{sessionId:t,anonymousId:n}}const ps$1=no$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(`.`)),ms$1=ps$1.enum;
66
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function ii$1(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref&&n.def)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e];}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e];}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]});};for(let t of [...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n);}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def);}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:B$2(t,`input`,e.processors),output:B$2(t,`output`,e.processors)}},enumerable:false,writable:false}),n}catch{throw Error(`Error converting schema to JSON.`)}}function z$2(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return false;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return true;if(r.type===`array`)return z$2(r.element,n);if(r.type===`set`)return z$2(r.valueType,n);if(r.type===`lazy`)return z$2(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`)return z$2(r.innerType,n);if(r.type===`intersection`)return z$2(r.left,n)||z$2(r.right,n);if(r.type===`record`||r.type===`map`)return z$2(r.keyType,n)||z$2(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?true:z$2(r.in,n)||z$2(r.out,n);if(r.type===`object`){for(let e in r.shape)if(z$2(r.shape[e],n))return true;return false}if(r.type===`union`){for(let e of r.options)if(z$2(e,n))return true;return false}if(r.type===`tuple`){for(let e of r.items)if(z$2(e,n))return true;return !!(r.rest&&z$2(r.rest,n))}return false}const ai$1=(e,t={})=>n=>{let r=ni$1({...n,processors:t});return R$2(e,r),ri$1(r,e),ii$1(r,e)},B$2=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=ni$1({...i??{},target:a,io:t,processors:n});return R$2(e,o),ri$1(o,e),ii$1(o,e)},oi$1={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},si$1=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=oi$1[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))]);}},ci$1=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;typeof s==`string`&&s.includes(`int`)?i.type=`integer`:i.type=`number`;let d=typeof u==`number`&&u>=(a??-1/0),f=typeof l==`number`&&l<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;d?p?(i.minimum=u,i.exclusiveMinimum=true):i.exclusiveMinimum=u:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=l,i.exclusiveMaximum=true):i.exclusiveMaximum=l:typeof o==`number`&&(i.maximum=o),typeof c==`number`&&(i.multipleOf=c);},li$1=(e,t,n,r)=>{n.type=`boolean`;},ui$1=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=true,n.enum=[null]):n.type=`null`;},di$1=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Undefined cannot be represented in JSON Schema`)},fi$1=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Void cannot be represented in JSON Schema`)},pi$1=(e,t,n,r)=>{n.not={};},mi$1=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Date cannot be represented in JSON Schema`)},hi$1=(e,t,n,r)=>{let i=e._zod.def,a=o$1(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a;},gi$1=(e,t,n,r)=>{let i=e._zod.def,a=[];for(let e of i.values)if(e===void 0){if(t.unrepresentable===`throw`)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof e==`bigint`){if(t.unrepresentable===`throw`)throw Error(`BigInt literals cannot be represented in JSON Schema`);a.push(Number(e));}else a.push(e);if(a.length!==0)if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e;}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a;},_i$1=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},vi$1=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},yi$1=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=R$2(a.element,t,{...r,path:[...r.path,`items`]});},bi$1=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=R$2(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=false:a.catchall?a.catchall&&(i.additionalProperties=R$2(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=false);},xi$1=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===false,o=i.options.map((e,n)=>R$2(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o;},Si$1=(e,t,n,r)=>{let i=e._zod.def,a=R$2(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=R$2(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]];},Ci$1=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=o._zod.bag?.patterns;if(a.mode===`loose`&&s&&s.size>0){let e=R$2(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)i.patternProperties[t.source]=e;}else (t.target===`draft-07`||t.target===`draft-2020-12`)&&(i.propertyNames=R$2(a.keyType,t,{...r,path:[...r.path,`propertyNames`]})),i.additionalProperties=R$2(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]});let c=o._zod.values;if(c){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e);}},wi$1=(e,t,n,r)=>{let i=e._zod.def,a=R$2(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=true):n.anyOf=[a,{type:`null`}];},Ti$1=(e,t,n,r)=>{let i=e._zod.def;R$2(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;},Ei=(e,t,n,r)=>{let i=e._zod.def;R$2(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue));},Di$1=(e,t,n,r)=>{let i=e._zod.def;R$2(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)));},Oi$1=(e,t,n,r)=>{let i=e._zod.def;R$2(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0);}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o;},ki$1=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;R$2(o,t,r);let s=t.seen.get(e);s.ref=o;},Ai$1=(e,t,n,r)=>{let i=e._zod.def;R$2(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=true;},ji$1=(e,t,n,r)=>{let i=e._zod.def;R$2(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;},Mi=(e,t,n,r)=>{let i=e._zod.innerType;R$2(i,t,r);let a=t.seen.get(e);a.ref=i;},Ni=t(`ZodISODateTime`,(e,t)=>{Ht$2.init(e,t),W$2.init(e,t);});function Pi$1(e){return br(Ni,e)}const Fi$1=t(`ZodISODate`,(e,t)=>{Ut$2.init(e,t),W$2.init(e,t);});function Ii$1(e){return xr(Fi$1,e)}const Li$1=t(`ZodISOTime`,(e,t)=>{Wt$2.init(e,t),W$2.init(e,t);});function Ri$1(e){return Sr(Li$1,e)}const zi$1=t(`ZodISODuration`,(e,t)=>{Gt$2.init(e,t),W$2.init(e,t);});function Bi$1(e){return Cr(zi$1,e)}const V$2=t(`ZodError`,(e,t)=>{ve$2.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>xe$2(e,t)},flatten:{value:t=>be$2(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,s$1,2);}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,s$1,2);}},isEmpty:{get(){return e.issues.length===0}}});},{Parent:Error}),Vi$1=Se$2(V$2),Hi$1=Ce$2(V$2),Ui$1=E$2(V$2),Wi$1=Te$2(V$2),Gi$1=De$2(V$2),Ki$1=Oe$2(V$2),qi$1=ke$2(V$2),Ji$1=Ae$2(V$2),Yi$1=je$2(V$2),Xi$1=Me$2(V$2),Zi$1=Ne$2(V$2),Qi$1=Pe$2(V$2),$i$1=new WeakMap;function H$2(e,t,n){let r=Object.getPrototypeOf(e),i=$i$1.get(r);if(i||(i=new Set,$i$1.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:true,enumerable:false,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:true,writable:true,enumerable:true,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:true,writable:true,enumerable:true,value:t});}});}}}const U$2=t(`ZodType`,(e,t)=>(k$2.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:B$2(e,`input`),output:B$2(e,`output`)}}),e.toJSONSchema=ai$1(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(t,n)=>Vi$1(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>Ui$1(e,t,n),e.parseAsync=async(t,n)=>Hi$1(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>Wi$1(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>Gi$1(e,t,n),e.decode=(t,n)=>Ki$1(e,t,n),e.encodeAsync=async(t,n)=>qi$1(e,t,n),e.decodeAsync=async(t,n)=>Ji$1(e,t,n),e.safeEncode=(t,n)=>Yi$1(e,t,n),e.safeDecode=(t,n)=>Xi$1(e,t,n),e.safeEncodeAsync=async(t,n)=>Zi$1(e,t,n),e.safeDecodeAsync=async(t,n)=>Qi$1(e,t,n),H$2(e,`ZodType`,{check(...e){let t=this.def;return this.clone(h$1(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:true})},with(...e){return this.check(...e)},clone(e,t){return y$1(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(Mo$1(e,t))},superRefine(e,t){return this.check(No$1(e,t))},overwrite(e){return this.check(L$2(e))},optional(){return uo$1(this)},exactOptional(){return po$1(this)},nullable(){return ho$1(this)},nullish(){return uo$1(ho$1(this))},nonoptional(e){return xo$1(this,e)},array(){return Ga$1(this)},or(e){return Xa$1([this,e])},and(e){return eo$1(this,e)},transform(e){return To$1(this,co$1(e))},default(e){return _o$1(this,e)},prefault(e){return yo$1(this,e)},catch(e){return Co$1(this,e)},pipe(e){return To$1(this,e)},readonly(){return Oo$1(this)},describe(e){let t=this.clone();return N$2.add(t,{description:e}),t},meta(...e){if(e.length===0)return N$2.get(this);let t=this.clone();return N$2.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,"description",{get(){return N$2.get(e)?.description},configurable:true}),e)),ea$1=t(`_ZodString`,(e,t)=>{At$2.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>si$1(e,t,n);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,H$2(e,`_ZodString`,{regex(...e){return this.check(Vr$1(...e))},includes(...e){return this.check(Wr$1(...e))},startsWith(...e){return this.check(Gr$1(...e))},endsWith(...e){return this.check(Kr$1(...e))},min(...e){return this.check(I$2(...e))},max(...e){return this.check(zr$1(...e))},length(...e){return this.check(Br$1(...e))},nonempty(...e){return this.check(I$2(1,...e))},lowercase(e){return this.check(Hr$1(e))},uppercase(e){return this.check(Ur$1(e))},trim(){return this.check(Jr$1())},normalize(...e){return this.check(qr$1(...e))},toLowerCase(){return this.check(Yr$1())},toUpperCase(){return this.check(Xr$1())},slugify(){return this.check(Zr$1())}});}),ta$1=t(`ZodString`,(e,t)=>{At$2.init(e,t),ea$1.init(e,t),e.email=t=>e.check(Qn$1(ra$1,t)),e.url=t=>e.check(ir$1(sa$1,t)),e.jwt=t=>e.check(yr(Ca$1,t)),e.emoji=t=>e.check(ar$1(la$1,t)),e.guid=t=>e.check($n$1(aa$1,t)),e.uuid=t=>e.check(er$1(G$2,t)),e.uuidv4=t=>e.check(tr$1(G$2,t)),e.uuidv6=t=>e.check(nr$1(G$2,t)),e.uuidv7=t=>e.check(rr$1(G$2,t)),e.nanoid=t=>e.check(or$1(ua$1,t)),e.guid=t=>e.check($n$1(aa$1,t)),e.cuid=t=>e.check(sr$1(da$1,t)),e.cuid2=t=>e.check(cr$1(fa$1,t)),e.ulid=t=>e.check(lr(pa$1,t)),e.base64=t=>e.check(gr(ba$1,t)),e.base64url=t=>e.check(_r(xa$1,t)),e.xid=t=>e.check(ur(ma$1,t)),e.ksuid=t=>e.check(dr(ha$1,t)),e.ipv4=t=>e.check(fr(ga$1,t)),e.ipv6=t=>e.check(pr(_a$1,t)),e.cidrv4=t=>e.check(mr(va,t)),e.cidrv6=t=>e.check(hr(ya,t)),e.e164=t=>e.check(vr(Sa$1,t)),e.datetime=t=>e.check(Pi$1(t)),e.date=t=>e.check(Ii$1(t)),e.time=t=>e.check(Ri$1(t)),e.duration=t=>e.check(Bi$1(t));});function na$1(e){return Xn$1(ta$1,e)}const W$2=t(`ZodStringFormat`,(e,t)=>{A$2.init(e,t),ea$1.init(e,t);}),ra$1=t(`ZodEmail`,(e,t)=>{Nt$2.init(e,t),W$2.init(e,t);});function ia$1(e){return Qn$1(ra$1,e)}const aa$1=t(`ZodGUID`,(e,t)=>{jt$2.init(e,t),W$2.init(e,t);}),G$2=t(`ZodUUID`,(e,t)=>{Mt$2.init(e,t),W$2.init(e,t);});function oa$1(e){return er$1(G$2,e)}const sa$1=t(`ZodURL`,(e,t)=>{Pt$2.init(e,t),W$2.init(e,t);});function ca$1(e){return ir$1(sa$1,e)}const la$1=t(`ZodEmoji`,(e,t)=>{Ft$2.init(e,t),W$2.init(e,t);}),ua$1=t(`ZodNanoID`,(e,t)=>{It$2.init(e,t),W$2.init(e,t);}),da$1=t(`ZodCUID`,(e,t)=>{Lt$2.init(e,t),W$2.init(e,t);}),fa$1=t(`ZodCUID2`,(e,t)=>{Rt$2.init(e,t),W$2.init(e,t);}),pa$1=t(`ZodULID`,(e,t)=>{zt$2.init(e,t),W$2.init(e,t);}),ma$1=t(`ZodXID`,(e,t)=>{Bt$2.init(e,t),W$2.init(e,t);}),ha$1=t(`ZodKSUID`,(e,t)=>{Vt$2.init(e,t),W$2.init(e,t);}),ga$1=t(`ZodIPv4`,(e,t)=>{Kt$2.init(e,t),W$2.init(e,t);}),_a$1=t(`ZodIPv6`,(e,t)=>{qt$2.init(e,t),W$2.init(e,t);}),va=t(`ZodCIDRv4`,(e,t)=>{Jt$2.init(e,t),W$2.init(e,t);}),ya=t(`ZodCIDRv6`,(e,t)=>{Yt$2.init(e,t),W$2.init(e,t);}),ba$1=t(`ZodBase64`,(e,t)=>{Zt$2.init(e,t),W$2.init(e,t);}),xa$1=t(`ZodBase64URL`,(e,t)=>{$t$2.init(e,t),W$2.init(e,t);}),Sa$1=t(`ZodE164`,(e,t)=>{en$1.init(e,t),W$2.init(e,t);}),Ca$1=t(`ZodJWT`,(e,t)=>{nn$2.init(e,t),W$2.init(e,t);}),wa$1=t(`ZodNumber`,(e,t)=>{rn$1.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ci$1(e,t,n),H$2(e,`ZodNumber`,{gt(e,t){return this.check(Lr$1(e,t))},gte(e,t){return this.check(F$2(e,t))},min(e,t){return this.check(F$2(e,t))},lt(e,t){return this.check(Ir$1(e,t))},lte(e,t){return this.check(P$2(e,t))},max(e,t){return this.check(P$2(e,t))},int(e){return this.check(Da$1(e))},safe(e){return this.check(Da$1(e))},positive(e){return this.check(Lr$1(0,e))},nonnegative(e){return this.check(F$2(0,e))},negative(e){return this.check(Ir$1(0,e))},nonpositive(e){return this.check(P$2(0,e))},multipleOf(e,t){return this.check(Rr$1(e,t))},step(e,t){return this.check(Rr$1(e,t))},finite(){return this}});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 Ta$1(e){return wr(wa$1,e)}const Ea$1=t(`ZodNumberFormat`,(e,t)=>{an$2.init(e,t),wa$1.init(e,t);});function Da$1(e){return Er(Ea$1,e)}const Oa$1=t(`ZodBoolean`,(e,t)=>{on$2.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>li$1(e,t,n);});function ka$1(e){return Dr(Oa$1,e)}const Aa$1=t(`ZodUndefined`,(e,t)=>{sn$1.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>di$1(e,t);});function ja$1(e){return kr$1(Aa$1,e)}const Ma$1=t(`ZodNull`,(e,t)=>{cn$1.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ui$1(e,t,n);});function Na$1(e){return Ar$1(Ma$1,e)}const Pa$1=t(`ZodAny`,(e,t)=>{ln.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0;});function Fa$1(){return jr$1(Pa$1)}const Ia$1=t(`ZodUnknown`,(e,t)=>{un$1.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0;});function La$1(){return Mr$1(Ia$1)}const Ra$1=t(`ZodNever`,(e,t)=>{dn$1.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>pi$1(e,t,n);});function za$1(e){return Nr$1(Ra$1,e)}const Ba$1=t(`ZodVoid`,(e,t)=>{fn$2.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>fi$1(e,t);});function Va$1(e){return Pr(Ba$1,e)}const Ha$1=t(`ZodDate`,(e,t)=>{pn$2.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>mi$1(e,t),e.min=(t,n)=>e.check(F$2(t,n)),e.max=(t,n)=>e.check(P$2(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 Ua$1(e){return Fr$1(Ha$1,e)}const Wa$1=t(`ZodArray`,(e,t)=>{hn$1.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>yi$1(e,t,n,r),e.element=t.element,H$2(e,`ZodArray`,{min(e,t){return this.check(I$2(e,t))},nonempty(e){return this.check(I$2(1,e))},max(e,t){return this.check(zr$1(e,t))},length(e,t){return this.check(Br$1(e,t))},unwrap(){return this.element}});});function Ga$1(e,t){return Qr$1(Wa$1,e,t)}const Ka$1=t(`ZodObject`,(e,t)=>{yn.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>bi$1(e,t,n,r),p$1(e,`shape`,()=>t.shape),H$2(e,`ZodObject`,{keyof(){return io$1(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:La$1()})},loose(){return this.clone({...this._zod.def,catchall:La$1()})},strict(){return this.clone({...this._zod.def,catchall:za$1()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return ue$2(this,e)},safeExtend(e){return de$2(this,e)},merge(e){return fe$2(this,e)},pick(e){return ce$1(this,e)},omit(e){return le$2(this,e)},partial(...e){return pe$2(lo$1,this,e[0])},required(...e){return me$2(bo$1,this,e[0])}});});function qa$1(e,t){return new Ka$1({type:`object`,shape:e??{},...b$1(t)})}function Ja$1(e,t){return new Ka$1({type:`object`,shape:e,catchall:za$1(),...b$1(t)})}const Ya$1=t(`ZodUnion`,(e,t)=>{xn$1.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>xi$1(e,t,n,r),e.options=t.options;});function Xa$1(e,t){return new Ya$1({type:`union`,options:e,...b$1(t)})}const Za$1=t(`ZodDiscriminatedUnion`,(e,t)=>{Ya$1.init(e,t),Sn.init(e,t);});function Qa$1(e,t,n){return new Za$1({type:`union`,options:t,discriminator:e,...b$1(n)})}const $a$1=t(`ZodIntersection`,(e,t)=>{Cn$1.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Si$1(e,t,n,r);});function eo$1(e,t){return new $a$1({type:`intersection`,left:e,right:t})}const to$1=t(`ZodRecord`,(e,t)=>{En$1.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ci$1(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType;});function no$1(e,t,n){return !t||!t._zod?new to$1({type:`record`,keyType:na$1(),valueType:e,...b$1(t)}):new to$1({type:`record`,keyType:e,valueType:t,...b$1(n)})}const ro$1=t(`ZodEnum`,(e,t)=>{Dn$1.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>hi$1(e,t,n),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 ro$1({...t,checks:[],...b$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 ro$1({...t,checks:[],...b$1(r),entries:i})};});function io$1(e,t){return new ro$1({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...b$1(t)})}const ao=t(`ZodLiteral`,(e,t)=>{On$1.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>gi$1(e,t,n),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 oo$1(e,t){return new ao({type:`literal`,values:Array.isArray(e)?e:[e],...b$1(t)})}const so=t(`ZodTransform`,(e,t)=>{kn$1.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>vi$1(e,t),e._zod.parse=(n,i)=>{if(i.direction===`backward`)throw new r(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(T$2(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(T$2(t));}};let a=t.transform(n.value,n);return a instanceof Promise?a.then(e=>(n.value=e,n.fallback=true,n)):(n.value=a,n.fallback=true,n)};});function co$1(e){return new so({type:`transform`,transform:e})}const lo$1=t(`ZodOptional`,(e,t)=>{jn$1.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ji$1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType;});function uo$1(e){return new lo$1({type:`optional`,innerType:e})}const fo$1=t(`ZodExactOptional`,(e,t)=>{Mn$1.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ji$1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType;});function po$1(e){return new fo$1({type:`optional`,innerType:e})}const mo$1=t(`ZodNullable`,(e,t)=>{Nn$1.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>wi$1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType;});function ho$1(e){return new mo$1({type:`nullable`,innerType:e})}const go$1=t(`ZodDefault`,(e,t)=>{Pn$1.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ei(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap;});function _o$1(e,t){return new go$1({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():ie$1(t)}})}const vo$1=t(`ZodPrefault`,(e,t)=>{In$1.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Di$1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType;});function yo$1(e,t){return new vo$1({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():ie$1(t)}})}const bo$1=t(`ZodNonOptional`,(e,t)=>{Ln$1.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ti$1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType;});function xo$1(e,t){return new bo$1({type:`nonoptional`,innerType:e,...b$1(t)})}const So$1=t(`ZodCatch`,(e,t)=>{zn$1.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Oi$1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap;});function Co$1(e,t){return new So$1({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}const wo$1=t(`ZodPipe`,(e,t)=>{Bn$1.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ki$1(e,t,n,r),e.in=t.in,e.out=t.out;});function To$1(e,t){return new wo$1({type:`pipe`,in:e,out:t})}const Eo$1=t(`ZodPreprocess`,(e,t)=>{wo$1.init(e,t),Vn$1.init(e,t);}),Do$1=t(`ZodReadonly`,(e,t)=>{Hn$1.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ai$1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType;});function Oo$1(e){return new Do$1({type:`readonly`,innerType:e})}const ko$1=t(`ZodLazy`,(e,t)=>{Wn$1.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Mi(e,t,n,r),e.unwrap=()=>e._zod.def.getter();});function Ao$1(e){return new ko$1({type:`lazy`,getter:e})}const jo$1=t(`ZodCustom`,(e,t)=>{Gn$1.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>_i$1(e,t);});function Mo$1(e,t={}){return $r$1(jo$1,e,t)}function No$1(e,t){return ei$1(e,t)}function Po(e,t){return new Eo$1({type:`pipe`,in:co$1(e),out:t})}var Fo$1=/^(?:[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 Io(e){return typeof e==`string`&&Fo$1.test(e)}for(var K$2=[],Lo$1=0;Lo$1<256;++Lo$1)K$2.push((Lo$1+256).toString(16).slice(1));function Ro$1(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 zo$1(e,t=0){var n=Ro$1(e,t);if(!Io(n))throw TypeError(`Stringified UUID is invalid`);return n}var q$2,Bo=new Uint8Array(16);function Vo(){if(!q$2&&(q$2=typeof crypto<`u`&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!q$2))throw Error(`crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported`);return q$2(Bo)}var Ho$1=null,Uo$1=null,J$2=0;function Wo$1(e,t,n){e||={};var r=0,i=t||new Uint8Array(16),a=e.random||(e.rng||Vo)(),o=e.msecs===void 0?Date.now():e.msecs,s=e.seq===void 0?null:e.seq,c=Uo$1,l=Ho$1;return o>J$2&&e.msecs===void 0&&(J$2=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>J$2&&s===null?++l>524287&&(l=0,++c>4095&&(c=0,J$2++)):J$2=o,Uo$1=c,Ho$1=l,i[r++]=J$2/1099511627776&255,i[r++]=J$2/4294967296&255,i[r++]=J$2/16777216&255,i[r++]=J$2/65536&255,i[r++]=J$2/256&255,i[r++]=J$2&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||Ro$1(i)}function Go$1(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 Y$2=`0123456789abcdefghjkmnpqrstvwxyz`,X$3=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 Ko$1(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]=Y$2[(e[0]&224)>>5],t[1]=Y$2[e[0]&31],t[2]=Y$2[(e[1]&248)>>3],t[3]=Y$2[(e[1]&7)<<2|(e[2]&192)>>6],t[4]=Y$2[(e[2]&62)>>1],t[5]=Y$2[(e[2]&1)<<4|(e[3]&240)>>4],t[6]=Y$2[(e[3]&15)<<1|(e[4]&128)>>7],t[7]=Y$2[(e[4]&124)>>2],t[8]=Y$2[(e[4]&3)<<3|(e[5]&224)>>5],t[9]=Y$2[e[5]&31],t[10]=Y$2[(e[6]&248)>>3],t[11]=Y$2[(e[6]&7)<<2|(e[7]&192)>>6],t[12]=Y$2[(e[7]&62)>>1],t[13]=Y$2[(e[7]&1)<<4|(e[8]&240)>>4],t[14]=Y$2[(e[8]&15)<<1|(e[9]&128)>>7],t[15]=Y$2[(e[9]&124)>>2],t[16]=Y$2[(e[9]&3)<<3|(e[10]&224)>>5],t[17]=Y$2[e[10]&31],t[18]=Y$2[(e[11]&248)>>3],t[19]=Y$2[(e[11]&7)<<2|(e[12]&192)>>6],t[20]=Y$2[(e[12]&62)>>1],t[21]=Y$2[(e[12]&1)<<4|(e[13]&240)>>4],t[22]=Y$2[(e[13]&15)<<1|(e[14]&128)>>7],t[23]=Y$2[(e[14]&124)>>2],t[24]=Y$2[(e[14]&3)<<3|(e[15]&224)>>5],t[25]=Y$2[e[15]&31],t.join(``)}function qo$1(e){if(e.length!==26)throw Error(`Invalid length. Expected 26 bytes, got ${e.length}. Input: ${e}`);let t=new TextEncoder().encode(e);if(X$3[t[0]]===255||X$3[t[1]]===255||X$3[t[2]]===255||X$3[t[3]]===255||X$3[t[4]]===255||X$3[t[5]]===255||X$3[t[6]]===255||X$3[t[7]]===255||X$3[t[8]]===255||X$3[t[9]]===255||X$3[t[10]]===255||X$3[t[11]]===255||X$3[t[12]]===255||X$3[t[13]]===255||X$3[t[14]]===255||X$3[t[15]]===255||X$3[t[16]]===255||X$3[t[17]]===255||X$3[t[18]]===255||X$3[t[19]]===255||X$3[t[20]]===255||X$3[t[21]]===255||X$3[t[22]]===255||X$3[t[23]]===255||X$3[t[24]]===255||X$3[t[25]]===255)throw Error(`Invalid base32 character`);let n=new Uint8Array(16);return n[0]=X$3[t[0]]<<5|X$3[t[1]],n[1]=X$3[t[2]]<<3|X$3[t[3]]>>2,n[2]=(X$3[t[3]]&3)<<6|X$3[t[4]]<<1|X$3[t[5]]>>4,n[3]=(X$3[t[5]]&15)<<4|X$3[t[6]]>>1,n[4]=(X$3[t[6]]&1)<<7|X$3[t[7]]<<2|X$3[t[8]]>>3,n[5]=(X$3[t[8]]&7)<<5|X$3[t[9]],n[6]=X$3[t[10]]<<3|X$3[t[11]]>>2,n[7]=(X$3[t[11]]&3)<<6|X$3[t[12]]<<1|X$3[t[13]]>>4,n[8]=(X$3[t[13]]&15)<<4|X$3[t[14]]>>1,n[9]=(X$3[t[14]]&1)<<7|X$3[t[15]]<<2|X$3[t[16]]>>3,n[10]=(X$3[t[16]]&7)<<5|X$3[t[17]],n[11]=X$3[t[18]]<<3|X$3[t[19]]>>2,n[12]=(X$3[t[19]]&3)<<6|X$3[t[20]]<<1|X$3[t[21]]>>4,n[13]=(X$3[t[21]]&15)<<4|X$3[t[22]]>>1,n[14]=(X$3[t[22]]&1)<<7|X$3[t[23]]<<2|X$3[t[24]]>>3,n[15]=(X$3[t[24]]&7)<<5|X$3[t[25]],n}function Jo$1(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 Yo$1=class Yo extends Error{constructor(e){super(`Invalid prefix "${e}". Must be at most 63 ASCII letters [a-z_]`),this.name=`InvalidPrefixError`;}},Xo$1=class Xo extends Error{constructor(e,t){super(`Invalid TypeId. Prefix mismatch. Expected ${e}, got ${t}`),this.name=`PrefixMismatchError`;}},Zo$1=class Zo extends Error{constructor(e){super(`Invalid TypeId. Prefix cannot be empty when there's a separator: ${e}`),this.name=`EmptyPrefixError`;}},Qo$1=class Qo extends Error{constructor(e){super(`Invalid length. Suffix should have 26 characters, got ${e}`),this.name=`InvalidSuffixLengthError`;}},$o$1=class $o extends Error{constructor(e){super(`Invalid suffix. First character "${e}" must be in the range [0-7]`),this.name=`InvalidSuffixCharacterError`;}},es$1=class es extends Error{constructor(e,t){super(`Cannot convert TypeID of type ${e} to type ${t}`),this.name=`TypeIDConversionError`;}};function ts$1(e=``,t=``){if(!Jo$1(e))throw new Yo$1(e);let n;if(t)n=t;else {let e=new Uint8Array(16);Wo$1(void 0,e),n=Ko$1(e);}if(n.length!==26)throw new Qo$1(n.length);if(n[0]>`7`)throw new $o$1(n[0]);return qo$1(n),e===``?n:`${e}_${n}`}function ns$1(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 Zo$1(e);if(!r)throw new Qo$1(0);if(t&&n!==t)throw new Xo$1(t,n);return ts$1(n,r)}function rs$1(e){let t=e.lastIndexOf(`_`);return t===-1?``:e.substring(0,t)}function is$1(e){let t=e.lastIndexOf(`_`);return t===-1?e:e.substring(t+1)}var Z$2=class Z{constructor(e,t=``){this.prefix=e,this.suffix=t;let n=ts$1(e,t);this.prefix=rs$1(n),this.suffix=is$1(n);}getType(){return this.prefix}getSuffix(){return this.suffix}asType(e){let t=this;if(t.prefix!==e)throw new es$1(t.prefix,e);return t}toUUIDBytes(){return qo$1(this.suffix)}toUUID(){return zo$1(this.toUUIDBytes())}toString(){return this.prefix===``?this.suffix:`${this.prefix}_${this.suffix}`}static fromString(e,t){let n=ns$1(e,t);return new Z$2(rs$1(n),is$1(n))}static fromUUIDBytes(e,t){return new Z$2(e,Ko$1(t))}static fromUUID(e,t){return new Z$2(e,Ko$1(Go$1(t)))}};function as(e=``,t=``){return new Z$2(e,t)}const os$1={admission:`adm`,integration:`int`,integrationBackfill:`ibf`,anonymous:`anon`,beneficiary:`ben`,coupon:`cpn`,couponCode:`cod`,customer:`cus`,event:`evt`,eventCollaborator:`ecl`,eventCollaboratorInvite:`evi`,membership:`mem`,membershipBenefitClaim:`mbc`,membershipCharge:`mch`,membershipFob:`fob`,membershipProgram:`mpg`,membershipPurchase:`mpu`,membershipSubscription:`msb`,membershipTerm:`mtm`,order:`ord`,orderItem:`itm`,orderFee:`fee`,permissionScope:`psc`,permissionRole:`prl`,permissionSnapshot:`pss`,payout:`pyt`,paymentDispute:`pds`,webhookInboxEvent:`wih`,payoutAdjustmentApplication:`paa`,payoutAdjustment:`adj`,platformFunding:`pfu`,payoutTransfer:`xfr`,promoter:`pmt`,refund:`rfd`,cancellation:`cnl`,section:`sct`,scan:`scn`,team:`tem`,teamDeletion:`tdl`,teamMember:`mbr`,teamInvite:`inv`,teamGateway:`tgw`,teamGatewayAccount:`tga`,taxProfile:`txp`,tenant:`tnt`,ticket:`tkt`,user:`usr`,venue:`ven`,location:`loc`,request:`req`,report:`rpt`,walletDevice:`wdv`,schedule:`sch`,session:`ssn`,trackingEvent:`tev`,trackingStats:`sta`,hllShard:`shr`,timeline:`tln`,notification:`ntf`};function ss$1(e){return as(os$1[e])}const Q$3=`ses_sid`,$$3=`ses_aid`;function cs$1(){return ss$1(`session`).toString()}function ls$1(){return ss$1(`anonymous`).toString()}function us$1(e){let t=e.getCookie(Q$3);if(t)return t;let n=cs$1();return e.setCookie(Q$3,n),n}function ds(e){let t=e.getItem($$3);if(t)return t;let n=ls$1();return e.setItem($$3,n),n}function fs$1(e){let t=cs$1(),n=ls$1();return e.setCookie(Q$3,t),e.setItem($$3,n),{sessionId:t,anonymousId:n}}const ms$1=io$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(`.`)),hs=ms$1.enum;
67
67
 
68
- function le$1(e){return e[0]??{}}function ue$1(e){return Array.isArray(e)?e:e==null?[]:[e]}const de$1=`orpc`;var fe$1=class fe extends Error{constructor(...e){super(...e),this.name=`AbortError`;}};function pe$1(e){let t;return ()=>{if(t)return t.result;let n=e();return t={result:n},n}}function me$1(e){let t=Promise.resolve();return (...n)=>t=t.catch(()=>{}).then(()=>e(...n))}function he$1(){return globalThis[`__@orpc/shared@1.14.5/otel/config__`]}function ge$1(e,t={},n){return (he$1()?.tracer)?.startSpan(e,t,n)}function _e$1(e,t,n={}){if(!e)return;let r=ve$1(t);e.recordException(r),(!n.signal?.aborted||n.signal.reason!==t)&&e.setStatus({code:2,message:r.message});}function ve$1(e){if(e instanceof Error){let t={message:e.message,name:e.name,stack:e.stack};return `code`in e&&(typeof e.code==`string`||typeof e.code==`number`)&&(t.code=e.code),t}return {message:String(e)}}async function ye$1({name:e,context:t,...n},r){let i=he$1()?.tracer;if(!i)return r();let a=async e=>{try{return await r(e)}catch(t){throw _e$1(e,t,n),t}finally{e.end();}};return t?i.startActiveSpan(e,n,t,a):i.startActiveSpan(e,n,a)}async function be$1(e,t){let n=he$1();if(!e||!n)return t();let r=n.trace.setSpan(n.context.active(),e);return n.context.with(r,t)}function xe$1(e){return !e||typeof e!=`object`?false:`next`in e&&typeof e.next==`function`&&Symbol.asyncIterator in e&&typeof e[Symbol.asyncIterator]==`function`}const Se$1=Symbol.asyncDispose??Symbol.for(`asyncDispose`);var Ce$1=class Ce{#e=false;#t=false;#n;#r;constructor(e,t){this.#n=t,this.#r=me$1(async()=>{if(this.#e)return {done:true,value:void 0};try{let t=await e();return t.done&&(this.#e=true),t}catch(e){throw this.#e=true,e}finally{this.#e&&!this.#t&&(this.#t=true,await this.#n(`next`));}});}next(){return this.#r()}async return(e){return this.#e=true,this.#t||(this.#t=true,await this.#n(`return`)),{done:true,value:e}}async throw(e){throw this.#e=true,this.#t||(this.#t=true,await this.#n(`throw`)),e}async[Se$1](){this.#e=true,this.#t||(this.#t=true,await this.#n(`dispose`));}[Symbol.asyncIterator](){return this}};function we$1({name:e,...t},n){let r;return new Ce$1(async()=>{r??=ge$1(e);try{let e=await be$1(r,()=>n.next());return r?.addEvent(e.done?`completed`:`yielded`),e}catch(e){throw _e$1(r,e,t),e}},async e=>{try{e!==`next`&&await be$1(r,()=>n.return?.());}catch(e){throw _e$1(r,e,t),e}finally{r?.end();}})}function Te$1(e,t,n){let r=(t,i)=>{let a=e[i];return a?a({...t,next:(e=t)=>r(e,i+1)}):n(t)};return r(t,0)}function Ee$1(e){if(e)return JSON.parse(e)}function De$1(e){return JSON.stringify(e)}function Oe$1(e){return Ae$1(e)?Object.getPrototypeOf(e)?.constructor:null}function ke$1(e){if(!e||typeof e!=`object`)return false;let t=Object.getPrototypeOf(e);return t===Object.prototype||!t||!t.constructor}function Ae$1(e){return !!e&&(typeof e==`object`||typeof e==`function`)}function je$1(e,t){let n=e;for(let e of t){if(!Ae$1(n))return;n=n[e];}return n}const Me$1=(()=>{let e=function(){};return e.prototype=Object.create(null),Object.freeze(e.prototype),e})();function Ne$1(e,...t){return typeof e==`function`?e(...t):e}function Pe$1(e){return new Proxy(e,{get(e,t,n){let r=Reflect.get(e,t,n);return t!==`then`||typeof r!=`function`?r:new Proxy(r,{apply(t,n,r){if(r.length!==2||r.some(e=>!Ie$1(e)))return Reflect.apply(t,n,r);let i=true;r[0].call(n,Pe$1(new Proxy(e,{get:(e,t,n)=>{if(i&&t===`then`){i=false;return}return Reflect.get(e,t,n)}})));}})}})}const Fe$1=/^\s*function\s*\(\)\s*\{\s*\[native code\]\s*\}\s*$/;function Ie$1(e){return typeof e==`function`&&Fe$1.test(e.toString())}function Le$1(e){try{return decodeURIComponent(e)}catch{return e}}const Re$1={BAD_REQUEST:{status:400,message:`Bad Request`},UNAUTHORIZED:{status:401,message:`Unauthorized`},FORBIDDEN:{status:403,message:`Forbidden`},NOT_FOUND:{status:404,message:`Not Found`},METHOD_NOT_SUPPORTED:{status:405,message:`Method Not Supported`},NOT_ACCEPTABLE:{status:406,message:`Not Acceptable`},TIMEOUT:{status:408,message:`Request Timeout`},CONFLICT:{status:409,message:`Conflict`},PRECONDITION_FAILED:{status:412,message:`Precondition Failed`},PAYLOAD_TOO_LARGE:{status:413,message:`Payload Too Large`},UNSUPPORTED_MEDIA_TYPE:{status:415,message:`Unsupported Media Type`},UNPROCESSABLE_CONTENT:{status:422,message:`Unprocessable Content`},TOO_MANY_REQUESTS:{status:429,message:`Too Many Requests`},CLIENT_CLOSED_REQUEST:{status:499,message:`Client Closed Request`},INTERNAL_SERVER_ERROR:{status:500,message:`Internal Server Error`},NOT_IMPLEMENTED:{status:501,message:`Not Implemented`},BAD_GATEWAY:{status:502,message:`Bad Gateway`},SERVICE_UNAVAILABLE:{status:503,message:`Service Unavailable`},GATEWAY_TIMEOUT:{status:504,message:`Gateway Timeout`}};function ze$1(e,t){return t??Re$1[e]?.status??500}function Be$1(e,t){return t||Re$1[e]?.message||e}let Ve$1;var He$1=class e extends Error{defined;code;status;data;static{let t=Symbol.for(`__@orpc/client@1.14.5/error/ORPC_ERROR_CONSTRUCTORS__`);globalThis[t]??=new WeakSet,Ve$1=globalThis[t],Ve$1.add(e);}constructor(e,...t){let n=le$1(t);if(n.status!==void 0&&!Ge$1(n.status))throw Error(`[ORPCError] Invalid error status code.`);let r=Be$1(e,n.message);super(r,n),this.code=e,this.status=ze$1(e,n.status),this.defined=n.defined??false,this.data=n.data;}toJSON(){return {defined:this.defined,code:this.code,status:this.status,message:this.message,data:this.data}}static[Symbol.hasInstance](e){if(Ve$1.has(this)){let t=Oe$1(e);if(t&&Ve$1.has(t))return true}return super[Symbol.hasInstance](e)}};function We$1(e){return e instanceof He$1?e:new He$1(`INTERNAL_SERVER_ERROR`,{message:`Internal server error`,cause:e})}function Ge$1(e){return e<200||e>=400}function Ke$1(e){if(!ke$1(e))return false;let t=[`defined`,`code`,`status`,`message`,`data`];return Object.keys(e).some(e=>!t.includes(e))?false:`defined`in e&&typeof e.defined==`boolean`&&`code`in e&&typeof e.code==`string`&&`status`in e&&typeof e.status==`number`&&Ge$1(e.status)&&`message`in e&&typeof e.message==`string`}function qe$1(e,t={}){return new He$1(e.code,{...t,...e})}var Je$1=class Je extends TypeError{},Ye$1=class Ye extends TypeError{},Xe$1=class Xe extends Error{data;constructor(e){super(e?.message??`An error event was received`,e),this.data=e?.data;}};function Ze$1(e){let t=e.replace(/\n+$/,``).split(/\n/),n={data:void 0,event:void 0,id:void 0,retry:void 0,comments:[]};for(let e of t){let t=e.indexOf(`:`),r=t===-1?e:e.slice(0,t),i=t===-1?``:e.slice(t+1).replace(/^\s/,``);if(t===0)n.comments.push(i);else if(r===`data`)n.data??=``,n.data+=`${i}
68
+ function le$1(e){return e[0]??{}}function ue$1(e){return Array.isArray(e)?e:e==null?[]:[e]}const de$1=`orpc`;var fe$1=class fe extends Error{constructor(...e){super(...e),this.name=`AbortError`;}};function pe$1(e){let t;return ()=>{if(t)return t.result;let n=e();return t={result:n},n}}function me$1(e){let t=Promise.resolve();return (...n)=>t=t.catch(()=>{}).then(()=>e(...n))}function he$1(){return globalThis[`__@orpc/shared@1.14.10/otel/config__`]}function ge$1(e,t={},n){return (he$1()?.tracer)?.startSpan(e,t,n)}function _e$1(e,t,n={}){if(!e)return;let r=ve$1(t);e.recordException(r),(!n.signal?.aborted||n.signal.reason!==t)&&e.setStatus({code:2,message:r.message});}function ve$1(e){if(e instanceof Error){let t={message:e.message,name:e.name,stack:e.stack};return `code`in e&&(typeof e.code==`string`||typeof e.code==`number`)&&(t.code=e.code),t}return {message:String(e)}}async function ye$1({name:e,context:t,...n},r){let i=he$1()?.tracer;if(!i)return r();let a=async e=>{try{return await r(e)}catch(t){throw _e$1(e,t,n),t}finally{e.end();}};return t?i.startActiveSpan(e,n,t,a):i.startActiveSpan(e,n,a)}async function be$1(e,t){let n=he$1();if(!e||!n)return t();let r=n.trace.setSpan(n.context.active(),e);return n.context.with(r,t)}function xe$1(e){return !e||typeof e!=`object`?false:`next`in e&&typeof e.next==`function`&&Symbol.asyncIterator in e&&typeof e[Symbol.asyncIterator]==`function`}const Se$1=Symbol.asyncDispose??Symbol.for(`asyncDispose`);var Ce$1=class Ce{#e=false;#t=false;#n;#r;constructor(e,t){this.#n=t,this.#r=me$1(async()=>{if(this.#e)return {done:true,value:void 0};try{let t=await e();return t.done&&(this.#e=true),t}catch(e){throw this.#e=true,e}finally{this.#e&&!this.#t&&(this.#t=true,await this.#n(`next`));}});}next(){return this.#r()}async return(e){return this.#e=true,this.#t||(this.#t=true,await this.#n(`return`)),{done:true,value:e}}async throw(e){throw this.#e=true,this.#t||(this.#t=true,await this.#n(`throw`)),e}async[Se$1](){this.#e=true,this.#t||(this.#t=true,await this.#n(`dispose`));}[Symbol.asyncIterator](){return this}};function we$1({name:e,...t},n){let r;return new Ce$1(async()=>{r??=ge$1(e);try{let e=await be$1(r,()=>n.next());return r?.addEvent(e.done?`completed`:`yielded`),e}catch(e){throw _e$1(r,e,t),e}},async e=>{try{e!==`next`&&await be$1(r,()=>n.return?.());}catch(e){throw _e$1(r,e,t),e}finally{r?.end();}})}function Te$1(e,t,n){let r=(t,i)=>{let a=e[i];return a?a({...t,next:(e=t)=>r(e,i+1)}):n(t)};return r(t,0)}function Ee$1(e){if(e)return JSON.parse(e)}function De$1(e){return JSON.stringify(e)}function Oe$1(e){return Ae$1(e)?Object.getPrototypeOf(e)?.constructor:null}function ke$1(e){if(!e||typeof e!=`object`)return false;let t=Object.getPrototypeOf(e);return t===Object.prototype||!t||!t.constructor}function Ae$1(e){return !!e&&(typeof e==`object`||typeof e==`function`)}function je$1(e,t){let n=e;for(let e of t){if(!Ae$1(n))return;n=n[e];}return n}const Me$1=(()=>{let e=function(){};return e.prototype=Object.create(null),Object.freeze(e.prototype),e})();function Ne$1(e,...t){return typeof e==`function`?e(...t):e}function Pe$1(e){return new Proxy(e,{get(e,t,n){let r=Reflect.get(e,t,n);return t!==`then`||typeof r!=`function`?r:new Proxy(r,{apply(t,n,r){if(r.length!==2||r.some(e=>!Ie$1(e)))return Reflect.apply(t,n,r);let i=true;r[0].call(n,Pe$1(new Proxy(e,{get:(e,t,n)=>{if(i&&t===`then`){i=false;return}return Reflect.get(e,t,n)}})));}})}})}const Fe$1=/^\s*function\s*\(\)\s*\{\s*\[native code\]\s*\}\s*$/;function Ie$1(e){return typeof e==`function`&&Fe$1.test(e.toString())}function Le$1(e){try{return decodeURIComponent(e)}catch{return e}}const Re$1={BAD_REQUEST:{status:400,message:`Bad Request`},UNAUTHORIZED:{status:401,message:`Unauthorized`},FORBIDDEN:{status:403,message:`Forbidden`},NOT_FOUND:{status:404,message:`Not Found`},METHOD_NOT_SUPPORTED:{status:405,message:`Method Not Supported`},NOT_ACCEPTABLE:{status:406,message:`Not Acceptable`},TIMEOUT:{status:408,message:`Request Timeout`},CONFLICT:{status:409,message:`Conflict`},PRECONDITION_FAILED:{status:412,message:`Precondition Failed`},PAYLOAD_TOO_LARGE:{status:413,message:`Payload Too Large`},UNSUPPORTED_MEDIA_TYPE:{status:415,message:`Unsupported Media Type`},UNPROCESSABLE_CONTENT:{status:422,message:`Unprocessable Content`},TOO_MANY_REQUESTS:{status:429,message:`Too Many Requests`},CLIENT_CLOSED_REQUEST:{status:499,message:`Client Closed Request`},INTERNAL_SERVER_ERROR:{status:500,message:`Internal Server Error`},NOT_IMPLEMENTED:{status:501,message:`Not Implemented`},BAD_GATEWAY:{status:502,message:`Bad Gateway`},SERVICE_UNAVAILABLE:{status:503,message:`Service Unavailable`},GATEWAY_TIMEOUT:{status:504,message:`Gateway Timeout`}};function ze$1(e,t){return t??Re$1[e]?.status??500}function Be$1(e,t){return t||Re$1[e]?.message||e}let Ve$1;var He$1=class e extends Error{defined;code;status;data;static{let t=Symbol.for(`__@orpc/client@1.14.10/error/ORPC_ERROR_CONSTRUCTORS__`);globalThis[t]??=new WeakSet,Ve$1=globalThis[t],Ve$1.add(e);}constructor(e,...t){let n=le$1(t);if(n.status!==void 0&&!Ge$1(n.status))throw Error(`[ORPCError] Invalid error status code.`);let r=Be$1(e,n.message);super(r,n),this.code=e,this.status=ze$1(e,n.status),this.defined=n.defined??false,this.data=n.data;}toJSON(){return {defined:this.defined,code:this.code,status:this.status,message:this.message,data:this.data}}static[Symbol.hasInstance](e){if(Ve$1.has(this)){let t=Oe$1(e);if(t&&Ve$1.has(t))return true}return super[Symbol.hasInstance](e)}};function We$1(e){return e instanceof He$1?e:new He$1(`INTERNAL_SERVER_ERROR`,{message:`Internal server error`,cause:e})}function Ge$1(e){return e<200||e>=400}function Ke$1(e){if(!ke$1(e))return false;let t=[`defined`,`code`,`status`,`message`,`data`];return Object.keys(e).some(e=>!t.includes(e))?false:`defined`in e&&typeof e.defined==`boolean`&&`code`in e&&typeof e.code==`string`&&`status`in e&&typeof e.status==`number`&&Ge$1(e.status)&&`message`in e&&typeof e.message==`string`}function qe$1(e,t={}){return new He$1(e.code,{...t,...e})}var Je$1=class Je extends TypeError{},Ye$1=class Ye extends TypeError{},Xe$1=class Xe extends Error{data;constructor(e){super(e?.message??`An error event was received`,e),this.data=e?.data;}};function Ze$1(e){let t=e.replace(/\n+$/,``).split(/\n/),n={data:void 0,event:void 0,id:void 0,retry:void 0,comments:[]};for(let e of t){let t=e.indexOf(`:`),r=t===-1?e:e.slice(0,t),i=t===-1?``:e.slice(t+1).replace(/^\s/,``);if(t===0)n.comments.push(i);else if(r===`data`)n.data??=``,n.data+=`${i}
69
69
  `;else if(r===`event`)n.event=i;else if(r===`id`)n.id=i;else if(r===`retry`){let e=Number.parseInt(i);Number.isInteger(e)&&e>=0&&e.toString()===i&&(n.retry=e);}}return n.data=n.data?.replace(/\n$/,``),n}var Qe$1=class Qe{constructor(e={}){this.options=e;}incomplete=``;feed(e){this.incomplete+=e;let t=this.incomplete.lastIndexOf(`
70
70
 
71
71
  `);if(t===-1)return;let n=this.incomplete.slice(0,t).split(/\n\n/);this.incomplete=this.incomplete.slice(t+2);for(let e of n){let t=Ze$1(`${e}
@@ -79,24 +79,24 @@ function le$1(e){return e[0]??{}}function ue$1(e){return Array.isArray(e)?e:e==n
79
79
  `),e.retry!==void 0&&(nt$1(e.retry),t+=`retry: ${e.retry}
80
80
  `),e.id!==void 0&&(et$1(e.id),t+=`id: ${e.id}
81
81
  `),t+=it$1(e.data),t+=`
82
- `,t}const st$1=Symbol(`ORPC_EVENT_SOURCE_META`);function ct$1(e,t){if(t.id===void 0&&t.retry===void 0&&!t.comments?.length)return e;if(t.id!==void 0&&et$1(t.id),t.retry!==void 0&&nt$1(t.retry),t.comments!==void 0)for(let e of t.comments)rt$1(e);return new Proxy(e,{get(e,n,r){return n===st$1?t:Reflect.get(e,n,r)}})}function lt$1(e){return Ae$1(e)?Reflect.get(e,st$1):void 0}function ut$1(e,t=`inline`){return `${t}; filename="${e.replace(/[^\x20-\x7E]/g,`_`).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 dt$1(e){let t=e.match(/filename\*=(UTF-8'')?([^;]*)/i);if(t&&typeof t[2]==`string`)return Le$1(t[2]);let n=e.match(/filename="((?:\\"|[^"])*)"/i);if(n&&typeof n[1]==`string`)return n[1].replace(/\\"/g,`"`)}function ft$1(e,t){let n={...e};for(let e in t)Array.isArray(t[e])?n[e]=[...ue$1(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 pt$1(e,t){let n=async e=>{let n=await t.error(e);if(n!==e){let t=lt$1(e);t&&Ae$1(n)&&(n=ct$1(n,t));}return n};return new Ce$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=lt$1(i);e&&Ae$1(a)&&(a=ct$1(a,e));}return {done:r,value:a}},async()=>{try{await e.return?.();}catch(e){throw await n(e)}})}function ht$1(e){return {...e,context:e.context??{}}}function gt$1(e,t={}){let n=t.path??[];return Pe$1(new Proxy(async(...[t,r={}])=>await e.call(n,t,ht$1(r)),{get(r,i){return typeof i==`string`?gt$1(e,{path:[...n,i]}):Reflect.get(r,i)}}))}function vt$1(e,t){return {...e,...t}}var yt$1=class yt{"~orpc";constructor(e){if(e.route?.successStatus&&Ge$1(e.route.successStatus))throw Error(`[ContractProcedure] Invalid successStatus.`);if(Object.values(e.errorMap).some(e=>e&&e.status&&!Ge$1(e.status)))throw Error(`[ContractProcedure] Invalid error status code.`);this[`~orpc`]=e;}};function bt$1(e){return e instanceof yt$1?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 xt$1(e,t){return {...e,...t}}function St$1(e,t){return {...e,...t}}function Ct$1(e,t){return e.path?{...e,path:`${t}${e.path}`}:e}function wt$1(e,t){return {...e,tags:[...t,...e.tags??[]]}}function Tt$1(e,t){return e?`${e}${t}`:t}function Et$1(e,t){return e?[...e,...t]:t}function Dt$1(e,t){let n=e;return t.prefix&&(n=Ct$1(n,t.prefix)),t.tags?.length&&(n=wt$1(n,t.tags)),n}function Ot$1(e,t){if(bt$1(e))return new yt$1({...e[`~orpc`],errorMap:vt$1(t.errorMap,e[`~orpc`].errorMap),route:Dt$1(e[`~orpc`].route,t)});if(typeof e!=`object`||!e)return e;let n={};for(let r in e)n[r]=Ot$1(e[r],t);return n}const S$1=new class e extends yt$1{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:vt$1(this[`~orpc`].errorMap,t)})}meta(t){return new e({...this[`~orpc`],meta:xt$1(this[`~orpc`].meta,t)})}route(t){return new e({...this[`~orpc`],route:St$1(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:Tt$1(this[`~orpc`].prefix,t)})}tag(...t){return new e({...this[`~orpc`],tags:Et$1(this[`~orpc`].tags,t)})}router(e){return Ot$1(e,this[`~orpc`])}}({errorMap:{},route:{},meta:{}}),kt$1={defaultMethod:`POST`,defaultSuccessStatus:200,defaultSuccessDescription:`OK`,defaultInputStructure:`compact`,defaultOutputStructure:`compact`};function At$1(e,t){return t===void 0?kt$1[e]:t}const jt$1=Symbol.for(`constructDateFrom`);function Mt$1(e,t){return typeof e==`function`?e(t):e&&typeof e==`object`&&jt$1 in e?e[jt$1](t):e instanceof Date?new e.constructor(t):new Date(t)}function Nt$1(e,t){return Mt$1(e,e)}function Pt$1(e,t,n){let r=Nt$1(e);return isNaN(t)?Mt$1(e,NaN):(t&&r.setDate(r.getDate()+t),r)}const Ft$1={},It$1={};function C$1(e,t){try{let n=(Ft$1[e]||=new Intl.DateTimeFormat(`en-US`,{timeZone:e,timeZoneName:`longOffset`}).format)(t).split(`GMT`)[1];return n in It$1?It$1[n]:Rt$1(n,n.split(`:`))}catch{if(e in It$1)return It$1[e];let t=e?.match(Lt$1);return t?Rt$1(e,t.slice(1)):NaN}}const Lt$1=/([+-]\d\d):?(\d\d)?/;function Rt$1(e,t){let n=+(t[0]||0),r=+(t[1]||0),i=(t[2]||0)/60;return It$1[e]=n*60+r>0?n*60+r+i:n*60-r-i}var zt$1=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(C$1(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)),Ut$1(this,e)):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=-C$1(this.timeZone,this);return e>0?Math.floor(e):Math.ceil(e)}setTime(e){return Date.prototype.setTime.apply(this,arguments),Vt$1(this),+this}[Symbol.for(`constructDateFrom`)](t){return new e(+new Date(t),this.timeZone)}};const Bt$1=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!Bt$1.test(e))return;let t=e.replace(Bt$1,`$1UTC`);zt$1.prototype[t]&&(e.startsWith(`get`)?zt$1.prototype[e]=function(){return this.internal[t]()}:(zt$1.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),Ht$1(this),+this},zt$1.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),Vt$1(this),+this}));});function Vt$1(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-C$1(e.timeZone,e)*60));}function Ht$1(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()),Ut$1(e);}function Ut$1(e,t){let n=Array.isArray(t)?Wt$1(t):+e.internal,r=C$1(e.timeZone,e),i=r>0?Math.floor(r):Math.ceil(r),a=new Date(+e);a.setUTCHours(a.getUTCHours()-1);let o=-new Date(+e).getTimezoneOffset(),s=-new Date(+a).getTimezoneOffset(),c=o-s,l=o;if(c&&o!==i&&Date.prototype.getHours.apply(e)!==(Array.isArray(t)?t[3]||0:e.internal.getUTCHours())){let t=new Date(+e),n=o-i;n&&t.setUTCMinutes(t.getUTCMinutes()+n);let r=C$1(e.timeZone,t);(r>0?Math.floor(r):Math.ceil(r))===i&&(l=s);}let u=l-i;u&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+u);let d=new Date(+e);d.setUTCSeconds(0);let f=o>0?d.getSeconds():(d.getSeconds()-60)%60,p=Math.round(-(C$1(e.timeZone,e)*60))%60;(p||f)&&Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+p+f);let m=C$1(e.timeZone,e),h=m>0?Math.floor(m):Math.ceil(m),ee=-new Date(+e).getTimezoneOffset()-h,g=h!==i,_=ee-u,v=h-i,te=n-h*60*1e3,ne=v>0&&Gt$1(e)-n===v*60*1e3&&Gt$1(e,te)!==n;if(g&&_&&!ne){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+_);let t=C$1(e.timeZone,e),n=h-(t>0?Math.floor(t):Math.ceil(t));n&&_<0&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+n);}Vt$1(e);let re=(t?n:n+p*1e3)-+e.internal;re&&Math.abs(re)<1800*1e3&&(Date.prototype.setTime.call(e,+e+re),Vt$1(e));}function Wt$1(e){return Date.UTC(e[0],e.length>1?e[1]:0,e.length>2?e[2]:1,...e.slice(3))}function Gt$1(e,t){let n=new Date(t??+e);return n.setUTCSeconds(n.getUTCSeconds()-Math.round(-C$1(e.timeZone,n)*60)),+n}function Kt$1(e){return (typeof e==`string`?new Date(e):e).toISOString().replace(/\.\d{3}Z$/,``)}let w$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`,gaId:`G-PSW1MY7HB4`,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(Pt$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:Pt$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:Pt$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:Kt$1(Pt$1(new Date,1)),entryEndsAt:Kt$1(Pt$1(new Date,2)),publishAt:Kt$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,visibility:`ALWAYS`,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:Kt$1(Pt$1(new Date,1)),entryEndsAt:Kt$1(Pt$1(new Date,2)),saleStartsAt:Kt$1(new Date),saleEndsAt:Kt$1(Pt$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},h=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};e.PayoutDeduction={id:`pdn_01jq8s6c38f97w9yfrfcdhf47v`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),amount:-1e3,currency:`AUD`,description:`Legacy payout deduction`,gateway:`AIRWALLEX`,gatewayId:`fe33fb0f-d9d8-47cd-8eef-6a19bd6223eb`,beneficiary:u.name,beneficiaryId:u.id};let ee=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:[h],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,deductions:0,shipping:0,sms:0,currency:`AUD`},eventId:s.id,teamId:r.id,promoterId:i.id,promoterSlug:i.slug,tenantId:t.id},g=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 _=e.OrderOffer={kind:`SMS_DELIVERY`,label:`SMS ticket delivery`,price:{amount:200,currency:`AUD`}},v=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:[g],customer:w$1.Customer,customerId:w$1.Customer.id,teamId:w$1.Team.id,promoterId:w$1.Promoter.id,promoterSlug:w$1.Promoter.slug,eventId:w$1.Event.id,eventSlug:w$1.Event.slug,payment:{method:`AIRWALLEX`,source:`CARD`},payoutIds:[ee.id],refunds:[],offers:[_],tenantId:w$1.Tenant.id,checkoutUrl:`${t.baseUrl.dev}/checkout/ord_01jps5cgsfgve5b5g2666kyryh`,signature:`Q2hXbG9uZ1NpZzE2`},te=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`,request:{idempotencyKey:`refund_12345_customer_request`},status:`SUCCEEDED`,acceptedAt:new Date().toISOString(),failedAt:new Date().toISOString(),price:{currency:`AUD`,total:1200,items:1200,shipping:0,fees:0},reason:`CUSTOMER_REQUEST`,note:`Customer requested refund due to schedule conflict`,tickets:{cancelRequested:true,cancelled:true,cancelledCount:2},gateway:{provider:`STRIPE`,refundId:`re_1234567890abcdef`,idempotencyKey:`rfd_01jps5cgsfgve5b5g2666kyryh`},actor:{type:`USER`,userId:n.id},notification:{requested:true,sentAt:new Date().toISOString()},createdAt:new Date().toISOString()},e.OrderRefundItem={orderItemId:g.id,quantity:2,amount:1200,ticketIds:[`tkt_01jps5cgsg0s32w2pr73vbccde`]},e.Notification={id:`ntf_01jps5cgsfgve5b5g2666kyryh`,aggregateType:`ORDER`,aggregateId:v.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:[te],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:v.id,orderItemId:g.id,teamId:r.id,promoterId:i.id,promoterSlug:i.slug,tenantId:t.id};})(w$1||={});const qt$1=[`ALWAYS`,`HIDDEN`,`AFTER_ADMISSION`];function Jt$1(e){return Xn$1(ea$1,e)}function T$1(e){return wr$1(Sa$1,e)}function Yt$1(e){return Dr$1(Ea$1,e)}const E$1=no$1([`PENDING`,`APPROVED`,`REJECTED`]).meta({description:`Approval status. PENDING: awaiting review, APPROVED: approved for operation, REJECTED: rejected and cannot operate`}),Zt$1=`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(`.`),D$1=no$1(Zt$1).meta({examples:[`AUD`],description:`Three-letter ISO 4217 currency code for transactions and payouts`}),Qt$1=no$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:`Club Night`,group:`Event Type`,priority:`core`,notes:`DJ-led nightclub or club-room event, usually late-night and dancefloor-focused; match "club night", "nightclub", "club room", "resident DJ", "guest DJ", "DJ sets", "all night" or explicitly club-focused programming. Do not use for every electronic event or DJ set without a club/nightclub context.`},{category:`Concert`,group:`Event Type`,priority:`high`,notes:`Headline live music event in a concert, gig, theatre, arena or show format; match "concert", "gig", "headline show", "live show", "tour date", "arena", "theatre" or "standing room". Use alongside "Live Performance" when live performers are explicit.`},{category:`Listening Party`,group:`Event Type`,priority:`medium`,notes:`Playback, album launch or listening-focused event centred on hearing recorded music together; match "listening party", "album playback", "record launch", "listening session", "label preview" or "listening bar".`},{category:`Workshop`,group:`Event Type`,priority:`medium`,notes:`Educational, participatory or skills-focused event; match "workshop", "masterclass", "clinic", "class", "seminar", "producer workshop", "DJ workshop" or "hands-on session".`},{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:`Nightclub`,group:`Venue Type`,priority:`core`,notes:`Purpose-built nightlife or dance venue, club room or nightclub setting; match "nightclub", "night club", "club room", "dance club" or venues explicitly described as clubs. This describes the venue, not the event programme.`},{category:`Bar`,group:`Venue Type`,priority:`core`,notes:`Event held at a bar, pub, tavern or cocktail bar; match "bar", "pub", "tavern", "cocktail bar", "wine bar" or "hotel bar". Do not use for every venue with a bar service.`},{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:`Arena`,group:`Venue Type`,priority:`high`,notes:`Large indoor arena, stadium or major venue built for high-capacity concerts, sports or touring shows; match "arena", "stadium", "entertainment centre", "exhibition centre" or "convention centre".`},{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)),$t$1=Ua$1(Qt$1).max(10).optional().meta({description:`Event characteristics like vibe, venue type, and amenities (up to 10 categories)`,examples:[[`Day Party`,`Open Air`,`Free Entry`]]}),en$1=no$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)),tn$1=Ua$1(en$1).min(1).max(5).meta({description:`Music genres for the event (1-5 genres)`,examples:[[`Tech House`,`Melodic Techno`]]});Ua$1(en$1).max(5).optional().meta({description:`Music genres for the event (up to 5 genres)`,examples:[[`Tech House`,`Melodic Techno`]]});const an$1=Ga$1({formErrors:Ua$1(ta$1()),fieldErrors:eo$1(ta$1(),Ua$1(ta$1()))}),on={BAD_REQUEST:{status:400},INPUT_VALIDATION_FAILED:{status:422,data:an$1},UNAUTHORIZED:{status:401},FORBIDDEN:{status:403},NOT_FOUND:{status:404},CONFLICT:{status:409},TOO_MANY_REQUESTS:{status:429},INTERNAL_SERVER_ERROR:{status:500},NOT_IMPLEMENTED:{status:501},SERVICE_UNAVAILABLE:{status:503}};function O$1(t,n){return ta$1().regex(RegExp(`^${t}_[0-9a-z]{26}$`),`Must be a valid ${n} ID`).describe(`Unique ${n} identifier`)}const k$1=O$1(`tem`,`team`),A$1=O$1(`evt`,`event`),cn=O$1(`ven`,`venue`),j$1=O$1(`loc`,`location`),ln=O$1(`usr`,`user`),un$1=O$1(`ord`,`order`),dn$1=O$1(`tkt`,`ticket`),M$1=O$1(`pmt`,`promoter`);O$1(`cpn`,`coupon`);O$1(`cod`,`coupon code`);const mn=O$1(`cus`,`customer`),N$1=O$1(`adm`,`admission`),hn=O$1(`sct`,`section`);O$1(`ben`,`beneficiary`);const _n=O$1(`pyt`,`payout`),P$1=O$1(`mbr`,`team member`),vn=O$1(`inv`,`team invite`),yn=O$1(`ecl`,`event collaborator`),bn=O$1(`psc`,`permission scope`),xn=O$1(`prl`,`permission role`),Sn=O$1(`ntf`,`notification`),F$1=Ga$1({src:oa$1().meta({examples:[`https://assets.session.services/my-image.jpg`]}),alt:ta$1().meta({examples:[`My Image`]}),width:Ca$1().meta({examples:[1080]}),height:Ca$1().meta({examples:[1080]})}),Cn=`Limit cannot be 0. Use -1 for unlimited or a positive number for a specific limit`;function wn(){return Ca$1().min(-1)}function Tn(){return Ca$1().min(-1).refine(e=>e!==0,{message:Cn})}const En=Ja$1([ta$1(),Ca$1(),Da$1(),ja$1()]),Dn=Oo$1(()=>Ja$1([En,Ua$1(Dn),eo$1(ta$1(),Dn)])),On=eo$1(ta$1().min(1).max(40).meta({description:`Metadata key. Must be 1-40 characters`}),ta$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.`}),I$1=ta$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 L$1(e){return T$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 kn=ta$1().meta({description:`Opaque cursor for pagination. Use the cursor from the previous response to continue fetching results.`}),An=`[a-z][a-z0-9-]*`,jn=RegExp(`^-?(?:\\*|${`(?:${An})(?:\\.${An})*`}(?:\\.\\*|\\.bypass|\\.[a-z]{3}_[0-9a-z]{26})?)$`),Mn=/^[a-z]{3}_[0-9a-z]{26}$/,Nn=[`tem`,`pmt`,`ven`,`evt`,`ord`,`tkt`,`cpn`],Pn=`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(`,`),Fn=[`tenant`,`team`,`team.member`,`team.invite`,`team.gateway`,`team.performance`,`cms`,`role`,`event`,`event.performance`,`promoter`,`promoter.performance`,`venue`,`order`,`ticket`,`coupon`,`beneficiary`,`payout`],In=new Set(Pn),Ln=new Set(Fn),Rn={"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`,`ven`,`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`,`ven`],"payout.write":[`tem`,`pmt`],"*":[]};function zn(e){let[t]=e.split(`_`);return t?Nn.includes(t):false}function Bn(e){let[t]=e.split(`_`);return !t||!zn(e)?null:t}function Vn(e){return Mn.test(e)&&zn(e)}function Hn(e,t){let n=Bn(t);return n?(Rn[e]??[]).includes(n):false}function Un(e,t){return !In.has(e)||!Vn(t)?false:Hn(e,t)}function Wn(e){return e.startsWith(`-`)?e.slice(1):e}function Gn(e){return In.has(e)}function Kn(e){return e.endsWith(`.bypass`)?In.has(e.slice(0,-7)):false}function qn(e){let t=e.match(/^((?:[a-z][a-z0-9-]*)(?:\.[a-z][a-z0-9-]*)*)\.([a-z]{3}_[0-9a-z]{26})$/);return t?Jn(t):null}function Jn(e){let t=e[1],n=e[2];return !t||!n?null:{base:t,resourceId:n}}function Yn(e){let t=qn(e);return t?Un(t.base,t.resourceId):false}function Xn(e){if(!e.endsWith(`.*`))return false;let t=e.slice(0,-2);return Ln.has(t)||In.has(t)}const Zn=[Gn,Kn,Yn,Xn];function Qn(e){let t=Wn(e);return Zn.some(e=>e(t))}const R$1=ta$1().regex(jn,`Invalid permission node. Use lowercase dot notation with optional wildcard, resource target, bypass target, and deny prefix.`).refine(Qn,{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`]}),$n=Ua$1(R$1).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`]]}),er=$n.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 vr=ta$1().length(16).meta({examples:[w$1.signature],description:`HMAC signature for secure access (16 characters, base64url encoded)`}),yr=Ga$1({promoterIds:Ua$1(M$1).nullable().meta({description:`Null means team-wide promoter access. An array means access is restricted to those promoters.`})}).meta({description:`Promoter access assigned to a team member or invite.`}),br=Ga$1({promoterIds:Ua$1(M$1).min(1).nullable().meta({description:`Null grants team-wide promoter access. A non-empty array restricts access to those promoters.`})}).meta({description:`Promoter access assignment input.`}),xr=no$1([`SALE_ENDED`,`SOLD_OUT`,`DOOR`]),Cr=Ga$1({booking:Ca$1().min(4).max(10).meta({examples:[7.5],description:`Booking fee percentage used to calculate the booking fee.`})}).meta({description:`Admission-level pricing override used to calculate derived fee amounts.`});function wr(e){return Ga$1({base:Ta$1().min(0).meta({examples:[w$1.Admission.price.base],description:`Base cost of a ticket for this admission type before fees, in cents`}),booking:Ta$1().min(0).meta({examples:[w$1.Admission.price.booking],description:e.booking}),currency:D$1.meta({examples:[w$1.Admission.price.currency],description:e.currency}),override:Cr.optional().meta({description:`Optional pricing override used to calculate derived fee amounts.`})}).meta({examples:[w$1.Admission.price],description:e.price})}const z$1=Ga$1({id:N$1.readonly().meta({description:`A unique identifier for this admission`,examples:[w$1.Admission.id]}),name:ta$1().meta({description:`The display name of the admission type shown to customers`,examples:[w$1.Admission.name]}),subtitle:ta$1().max(100).optional().meta({description:`Short supporting text shown below the admission name`,examples:[w$1.Admission.subtitle]}),description:ta$1().max(500).optional().meta({description:`Detailed information shown when customers expand 'More info'`,examples:[w$1.Admission.description]}),capacity:wn().prefault(-1).meta({examples:[w$1.Admission.capacity],description:`Maximum number of tickets that can be sold for this admission type. A value of -1 indicates unlimited`}),limit:Tn().prefault(-1).meta({examples:[w$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:Ca$1().min(-1).readonly().meta({examples:[w$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:Ca$1().min(0).readonly().meta({examples:[w$1.Admission.sold],description:`Total number of tickets of this admission type that have been purchased`}),reserved:Ca$1().min(0).readonly().meta({examples:[w$1.Admission.reserved],description:`Number of tickets held for customers during checkout and not available to others`}),order:Ca$1().min(0).meta({examples:[w$1.Admission.order],description:`Determines the position in which this admission type appears when listed. Lower values appear first`}),createdAt:Ni$1().readonly().meta({examples:[w$1.Admission.createdAt],description:`Timestamp in ISO 8601 format when this admission type was created`}),updatedAt:Ni$1().readonly().meta({examples:[w$1.Admission.updatedAt],description:`Timestamp in ISO 8601 format when this admission type was last updated`}),entryStartsAt:I$1.meta({examples:[w$1.Admission.entryStartsAt],description:`Wall clock time from which tickets of this type are valid for entry (no timezone)`}),entryEndsAt:I$1.meta({examples:[w$1.Admission.entryEndsAt],description:`Wall clock time until which tickets of this type are valid for entry (no timezone)`}),saleStartsAt:I$1.meta({examples:[w$1.Admission.saleStartsAt],description:`Wall clock time when ticket sales for this admission type begin (no timezone)`}),saleEndsAt:I$1.meta({examples:[w$1.Admission.saleEndsAt],description:`Wall clock time when ticket sales for this admission type end (no timezone)`}),saleEndsBehavior:xr.default(`SALE_ENDED`).meta({examples:[w$1.Admission.saleEndsBehavior],description:`Label to display for this admission after ticket sales have ended`}),price:wr({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:no$1(qt$1).prefault(`ALWAYS`).meta({examples:[`ALWAYS`],description:`Controls whether this admission type is shown publicly, revealed by a scoped coupon, or unlocked after another admission.`}),visibleAfterAdmissionId:N$1.nullable().optional().meta({description:`Admission that must sell out or close before this admission can be purchased.`}),sectionId:hn.nullable().optional().meta({examples:[w$1.Admission.sectionId],description:`Identifier of the section this admission type belongs to, if any`}),teamId:k$1.meta({description:`Team that owns this admission. Denormalized for efficient queries.`}),promoterId:M$1.meta({examples:[w$1.Admission.promoterId],description:`Identifier of the promoter responsible for this admission type`}),eventId:A$1.meta({examples:[w$1.Admission.eventId],description:`Identifier of the event to which this admission type is linked`}),eventSlug:ta$1().meta({examples:[w$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:[w$1.Admission]}),Tr=z$1.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`}),Er=z$1.pick({id:true}).extend({eventId:z$1.shape.eventId.meta({examples:[w$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`}),Dr=z$1.pick({id:true}).extend({eventId:A$1.meta({examples:[w$1.Admission.eventId],description:`Identifier of the event to which this admission type belongs`})}).meta({description:`Schema for retrieving a specific admission type`}),Or=Ka({eventId:ta$1().max(128).meta({examples:[w$1.Admission.eventId],description:`Identifier of the event to list admission types for`}),sectionId:ta$1().max(128).optional().meta({examples:[w$1.Admission.sectionId],description:`Filter admission types by section identifier. If provided, only admissions for this section are returned`}),query:ta$1().max(120).optional().meta({examples:[`Early Bird`],description:`Optional search query to filter admissions by name. When provided, search-backed pagination is used.`}),limit:L$1(`admission types`).optional(),cursor:ta$1().max(768).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 B$1(t,n){let i={[n]:Ua$1(t).meta({description:`Array of ${n} for the current result set`})},a=ta$1().nullish().meta({examples:[`eyJ2ZXJzaW9uIjoxLCJpbnRlbnQiOnsic291cmNlIjoiZGVtbyJ9LCJwb3MiOnsicHJpbWFyeUtleSI6InBybV8wMXM4NTNqIn19`],description:`Cursor for navigating backward in the result set. Omitted when there are no prior results.`}),o=ta$1().nullish().meta({examples:[`eyJ2ZXJzaW9uIjoxLCJpbnRlbnQiOnsic291cmNlIjoiZGVtbyJ9LCJwb3MiOnsicHJpbWFyeUtleSI6InBybV8wMXM4NTNkIn19`],description:`Cursor for navigating forward in the result set. Omitted when there are no subsequent results.`});return Ga$1({...i,before:a,after:o,limit:T$1().min(1).meta({examples:[20],description:`Maximum number of items to return in each result set`})})}const kr=B$1(z$1,`admissions`),Ar=Ga$1({min:Ta$1().min(0).meta({description:`Minimum booking fee in the quote currency's minor units`}).optional(),max:Ta$1().min(0).meta({description:`Maximum booking fee in the quote currency's minor units`}).optional(),percent:Ca$1().min(0).meta({description:`Percentage applied when calculating the booking fee`}).optional()}),jr=z$1.pick({eventId:true}).extend({message:ta$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`}),source:no$1([`EVENT`,`CUSTOM`]).meta({description:`Whether the quote uses the resolved event fee or an admission-level custom percentage.`}),rule:Ar.meta({description:`Effective booking fee rule in the quote currency after conversion.`}),price:wr({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`}),Mr=z$1.pick({eventId:true}).extend({base:Ta$1().min(0).meta({examples:[w$1.Admission.price.base],description:`Base cost of a ticket for this admission type before fees, in cents`}),currency:D$1.meta({examples:[w$1.Admission.price.currency],description:`Three-letter ISO 4217 currency code for the ticket price`}),override:Cr.optional().meta({description:`Optional admission-level booking fee percentage to preview instead of the event fee formula.`})}).meta({description:`Request schema for generating a pricing quote for an admission type, including booking fee calculations`}),Nr=Ga$1({quote:jr}),Pr=Ga$1({admission:z$1}),Fr=Ga$1({id:z$1.shape.id,eventId:z$1.shape.eventId,name:z$1.shape.name.optional(),subtitle:z$1.shape.subtitle,description:z$1.shape.description,capacity:wn().optional(),limit:Tn().optional(),order:z$1.shape.order.optional(),entryStartsAt:z$1.shape.entryStartsAt.optional(),entryEndsAt:z$1.shape.entryEndsAt.optional(),saleStartsAt:z$1.shape.saleStartsAt.optional(),saleEndsAt:z$1.shape.saleEndsAt.optional(),saleEndsBehavior:xr.optional(),price:z$1.shape.price.extend({override:Cr.nullable().optional().meta({description:`Admission pricing override. Pass null to clear it; omit to leave it unchanged.`})}).optional(),visibility:no$1(qt$1).optional(),visibleAfterAdmissionId:N$1.nullable().optional(),sectionId:hn.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.`}),V$1=Fi$1().describe(`Date (YYYY-MM-DD)`),Ir=ta$1().min(1).max(128).optional().describe(`IANA time zone for interpreting date ranges`),Lr=Ga$1({startDate:V$1.describe(`Start date (YYYY-MM-DD)`),endDate:V$1.describe(`End date (YYYY-MM-DD)`),timeZone:Ir}),Rr={startDate:V$1.optional().describe(`Start date (YYYY-MM-DD)`),endDate:V$1.optional().describe(`End date (YYYY-MM-DD)`),timeZone:Ir},zr=e=>!e.startDate&&!e.endDate||!!(e.startDate&&e.endDate);Ga$1(Rr).refine(zr,{message:`Both startDate and endDate must be provided together, or omit both for all-time data`});function H$1(e){return Ga$1(e).extend(Lr.shape)}function Vr(e){return Ga$1({...e,...Rr}).refine(zr,{message:`Both startDate and endDate must be provided together, or omit both for all-time data`})}const U$1=Ga$1({value:Ca$1().describe(`Current period value`),previous:Ca$1().describe(`Comparison period value`),change:Ca$1().describe(`Percentage change from previous period`),changeType:no$1([`increase`,`decrease`,`unchanged`]).describe(`Direction of change`)}),Hr=Ga$1({eventId:ta$1().describe(`Event identifier`),eventName:ta$1().describe(`Event name`),ticketCount:Ca$1().describe(`Number of tickets sold`),sharePercent:Ca$1().describe(`Percentage of total tickets`)}),W$1=Ga$1({start:ta$1().describe(`Period start date`),end:ta$1().describe(`Period end date`)}),Ur=Ga$1({start:ta$1().describe(`Comparison period start date`),end:ta$1().describe(`Comparison period end date`)}),Wr=no$1([`HOUR`,`DAY`,`WEEK`,`MONTH`]),Gr=Ga$1({date:ta$1().describe(`Date (YYYY-MM-DD)`),revenue:Ca$1().describe(`Revenue in cents`),tickets:Ca$1().describe(`Tickets sold`)}),Kr=Gr.extend({orders:Ca$1().describe(`Orders placed`)}),qr=Ga$1({revenue:Ca$1().describe(`Total revenue for period in cents`),tickets:Ca$1().describe(`Total tickets for period`)}),Jr=qr.extend({orders:Ca$1().describe(`Total orders for period`)}),Yr=Ga$1({revenue:U$1.describe(`Total revenue in cents`),ticketsSold:U$1.describe(`Number of tickets sold`),averageOrderValue:U$1.describe(`Average order value in cents`),conversionRate:U$1.describe(`Overall conversion rate (%)`),activeEvents:U$1.describe(`Number of active events in period`),uniqueCustomers:U$1.describe(`Unique customers (estimated)`),orderCount:U$1.describe(`Number of orders placed`),pageViews:U$1.describe(`Total page views from tracking`)}),Xr=Ga$1({events:Ua$1(Hr),totalTickets:Ca$1().describe(`Total tickets across all events`)});function Zr(t,n){return H$1({...ti(t,n),currency:ta$1().optional().describe(`Currency code for revenue metrics`)})}function Qr(t){return Ga$1({meta:Ga$1({...t,currency:ta$1().describe(`Primary currency code`),currencies:Ua$1(ta$1()).describe(`All currencies with transactions`),dateRange:W$1,comparisonRange:Ur}),metrics:Yr})}function $r(t,n){return H$1({...ti(t,n),granularity:Wr.optional().default(`DAY`).describe(`Time granularity`),currency:ta$1().optional().describe(`Currency filter`)})}function ei(e,t){return H$1({...ti(e,t),limit:Ca$1().optional().default(5).describe(`Maximum number of events to return`)})}function ti(t,n){return {[t]:ta$1().describe(n)}}const ni=Vr({eventId:ta$1().describe(`Event identifier`)}).meta({description:`Event performance summary request`}),ri=Ga$1({meta:Ga$1({eventId:ta$1().describe(`Event identifier`),eventName:ta$1().describe(`Event name`),currency:ta$1().describe(`Currency code (e.g., USD, EUR)`),dateRange:W$1.optional().describe(`Present only when startDate/endDate are provided`),comparisonRange:Ur.optional().describe(`Present only when startDate/endDate are provided`)}),metrics:Ga$1({revenue:U$1.describe(`Total revenue in cents`),ticketsSold:U$1.describe(`Number of tickets sold`),orderCount:U$1.describe(`Number of orders placed`),averageOrderValue:U$1.describe(`Average order value in cents`),conversionRate:U$1.describe(`Conversion rate as percentage`),pageViews:U$1.describe(`Total page/product views`),uniqueVisitors:U$1.describe(`Unique visitors (estimated)`),checkoutStarted:U$1.describe(`Number of checkout started events (external link clicks for external events)`)})}),ii=H$1({eventId:ta$1().describe(`Event identifier`),granularity:Wr.optional().default(`DAY`).describe(`Time granularity for aggregation`),breakdown:no$1([`TOTAL`]).optional().default(`TOTAL`).describe(`Breakdown type (always TOTAL for performance)`),includeBreakdowns:Da$1().optional().default(true).describe(`Whether to include admission and section breakdowns in each time bucket`)}),ai=Ga$1({meta:Ga$1({eventId:ta$1(),eventName:ta$1().describe(`Event name`),currency:ta$1().describe(`Currency code`),dateRange:W$1,granularity:Wr}),series:Ua$1(Ga$1({date:ta$1().describe(`Date or timestamp`),tickets:Ca$1().describe(`Tickets sold in period`),revenue:Ca$1().describe(`Revenue in period (cents)`),admissions:Ua$1(Ga$1({id:ta$1(),name:ta$1(),quantity:Ca$1()})),sections:Ua$1(Ga$1({id:ta$1(),name:ta$1(),quantity:Ca$1()}))}))}),oi=no$1([`HOUR`,`DAY`,`WEEK`,`MONTH`]).describe(`Time granularity for aggregation`),si=H$1({eventId:ta$1().describe(`Event identifier`),granularity:oi.optional().default(`DAY`)}).meta({description:`Event performance time series request`}),ci=Ga$1({meta:Ga$1({eventId:ta$1(),eventName:ta$1().describe(`Event name`),currency:ta$1().describe(`Currency code`),dateRange:W$1,granularity:oi}),series:Ua$1(Ga$1({date:ta$1().describe(`Date or timestamp`),revenue:Ca$1().describe(`Net revenue in period (cents)`),tickets:Ca$1().describe(`Tickets sold in period`),orders:Ca$1().describe(`Completed orders in period`),pageViews:Ca$1().describe(`Product/page views in period`),visitors:Ca$1().describe(`Unique visitors in period (estimated)`),checkoutStarted:Ca$1().describe(`Checkout started events in period`),convertedVisitors:Ca$1().describe(`Unique visitors who completed an order in period`),eligibleVisitors:Ca$1().describe(`Unique visitors eligible for conversion in period`),conversionRate:Ca$1().describe(`Converted visitors divided by eligible visitors in period (%)`)}))}),li=H$1({eventId:ta$1().describe(`Event identifier`)}),ui=Ga$1({meta:Ga$1({eventId:ta$1(),eventName:ta$1().describe(`Event name`),currency:ta$1().describe(`Currency code`),dateRange:W$1}),totals:Ga$1({entered:Ca$1().describe(`Total entered funnel (product viewed)`),completed:Ca$1().describe(`Total completed (orders)`),overallConversionRate:Ca$1().describe(`Overall conversion rate (%)`),totalDropped:Ca$1().describe(`Total dropped off`)}),stages:Ua$1(Ga$1({id:ta$1().describe(`Funnel stage identifier`),name:ta$1().describe(`Human-readable stage name`),count:Ca$1().describe(`Number of events at this stage`),conversionRate:Ca$1().describe(`Conversion rate from first stage (%)`),dropoffRate:Ca$1().describe(`Dropoff rate from previous stage (%)`)}))});Ga$1({meta:Ga$1({eventId:ta$1(),dimension:ta$1().describe(`Dimension type`),dateRange:W$1,limit:Ca$1().optional()}),data:Ua$1(Ga$1({name:ta$1().describe(`Dimension value (e.g., campaign name)`),views:Ca$1().describe(`Page/product views`),clicks:Ca$1().describe(`Ticket link clicks`).optional(),conversions:Ca$1().describe(`Completed orders`),revenue:Ca$1().describe(`Total revenue in cents`),conversionRate:Ca$1().describe(`Conversion rate (%)`),share:Ca$1().describe(`Percentage share of total`).optional()})),totals:Ga$1({views:Ca$1(),conversions:Ca$1(),revenue:Ca$1()}).optional()});const fi=no$1([`HOUR`,`DAY`,`WEEK`,`MONTH`]),pi=Ga$1({eventId:ta$1().describe(`Event identifier`),eventName:ta$1().describe(`Event name`),currency:ta$1().describe(`Currency code (e.g., USD, EUR)`),dateRange:W$1}),mi=pi.extend({limit:Ca$1().describe(`Maximum number of results returned`)}),hi=no$1([`MOBILE`,`DESKTOP`,`TABLET`,`Unknown`]),gi=no$1([`revenue`,`tickets`,`orders`,`pageViews`,`visitors`,`conversion`,`clicks`,`clickRate`]).describe(`Metric used to sort breakdown rows before limiting results`);H$1({eventId:ta$1(),granularity:fi.optional()});Ga$1({granularity:fi,data:Ua$1(Ga$1({date:ta$1(),revenue:Ca$1(),ticketsSold:Ca$1()}))});const yi=H$1({eventId:ta$1(),limit:Ca$1().min(1).max(100).optional().default(10)}),bi=Ga$1({meta:mi,totals:Ga$1({uses:Ca$1().describe(`Total coupon uses across all coupons`),revenue:Ca$1().describe(`Total revenue from coupon-discounted orders (cents)`)}),coupons:Ua$1(Ga$1({id:ta$1().describe(`Coupon code identifier`),code:ta$1().describe(`Coupon code`),uses:Ca$1().describe(`Number of times this coupon was used`),revenue:Ca$1().describe(`Revenue from this coupon (cents)`),discount:ta$1().describe(`Discount amount or percentage`),share:Ca$1().describe(`Share of total coupon uses (%)`)})).describe(`Coupons sorted by uses descending`)}),xi=H$1({eventId:ta$1(),limit:Ca$1().min(1).max(100).optional().default(10),sortBy:gi.optional().default(`orders`)}),Si=Ga$1({data:Ua$1(Ga$1({campaign:ta$1(),views:Ca$1(),visitors:Ca$1(),clicks:Ca$1().optional(),orders:Ca$1(),tickets:Ca$1(),revenue:Ca$1(),conversionRate:Ca$1(),sharePercent:Ca$1()})),totalOrders:Ca$1(),totalTickets:Ca$1(),totalRevenue:Ca$1()}),Ci=H$1({eventId:ta$1(),limit:Ca$1().min(1).max(100).optional().default(10),sortBy:gi.optional().default(`orders`)}),wi=Ga$1({meta:mi,totals:Ga$1({views:Ca$1().describe(`Total views across all mediums`),visitors:Ca$1().describe(`Total unique visitors across all mediums`),orders:Ca$1().describe(`Total orders across all mediums`),tickets:Ca$1().describe(`Total tickets across all mediums`),revenue:Ca$1().describe(`Total revenue across all mediums (cents)`)}),mediums:Ua$1(Ga$1({id:ta$1().describe(`Medium identifier (e.g., 'social', 'email')`),name:ta$1().describe(`Medium name`),views:Ca$1().describe(`Views from this medium`),visitors:Ca$1().describe(`Unique visitors from this medium`),clicks:Ca$1().optional().describe(`Ticket link clicks`),orders:Ca$1().describe(`Orders from this medium`),tickets:Ca$1().describe(`Tickets from this medium`),revenue:Ca$1().describe(`Revenue from this medium (cents)`),conversionRate:Ca$1().describe(`Conversion rate (%)`),share:Ca$1().describe(`Share of total orders (%)`)})).describe(`Mediums sorted by orders descending`)}),Ti=H$1({eventId:ta$1(),limit:Ca$1().min(1).max(100).optional().default(10),sortBy:gi.optional().default(`orders`)}),Ei=Ga$1({meta:pi,totals:Ga$1({views:Ca$1().describe(`Total views across all devices`),visitors:Ca$1().describe(`Total unique visitors across all devices`),revenue:Ca$1().describe(`Total revenue across all devices (cents)`),orders:Ca$1().describe(`Total orders across all devices`),tickets:Ca$1().describe(`Total tickets across all devices`)}),devices:Ua$1(Ga$1({id:hi.describe(`Device type`),name:ta$1().describe(`Human-readable device name`),views:Ca$1().optional().describe(`Page views from this device`),visitors:Ca$1().describe(`Unique visitors from this device`),revenue:Ca$1().describe(`Revenue from this device (cents)`),clicks:Ca$1().optional().describe(`Ticket link clicks`),orders:Ca$1().describe(`Orders from this device`),tickets:Ca$1().describe(`Tickets from this device`),conversionRate:Ca$1().describe(`Conversion rate (%)`),share:Ca$1().describe(`Share of total orders (%)`)})).describe(`Devices sorted by orders descending`)}),Di=H$1({eventId:ta$1(),limit:Ca$1().min(1).max(100).optional().default(10),sortBy:gi.optional().default(`visitors`)}),Oi=Ga$1({meta:mi,totals:Ga$1({views:Ca$1().describe(`Total views across all browsers`),visitors:Ca$1().describe(`Total unique visitors across all browsers`),orders:Ca$1().describe(`Total orders across all browsers`),tickets:Ca$1().describe(`Total tickets across all browsers`),revenue:Ca$1().describe(`Total revenue across all browsers (cents)`)}),browsers:Ua$1(Ga$1({id:ta$1().describe(`Browser identifier`),name:ta$1().describe(`Human-readable browser name`),views:Ca$1().describe(`Page views from this browser`),clicks:Ca$1().optional().describe(`Ticket link clicks`),visitors:Ca$1().describe(`Unique visitors from this browser`),orders:Ca$1().describe(`Orders from this browser`),tickets:Ca$1().describe(`Tickets from this browser`),revenue:Ca$1().describe(`Revenue from this browser (cents)`),conversionRate:Ca$1().describe(`Conversion rate (%)`),share:Ca$1().describe(`Share of total visitors (%)`)})).describe(`Browsers sorted by visitors descending`)}),ki=H$1({eventId:ta$1(),limit:Ca$1().min(1).max(100).optional().default(10),sortBy:gi.optional().default(`pageViews`)}),Ai=Ga$1({meta:mi,totals:Ga$1({views:Ca$1().describe(`Total views across all locations`),visitors:Ca$1().describe(`Total unique visitors across all locations`),orders:Ca$1().describe(`Total orders across all locations`),tickets:Ca$1().describe(`Total tickets across all locations`),revenue:Ca$1().describe(`Total revenue across all locations (cents)`)}),locations:Ua$1(Ga$1({id:ta$1().describe(`Location/region code (e.g., 'US-CA', 'GB')`),name:ta$1().describe(`Human-readable location name`),views:Ca$1().describe(`Page views from this location`),visitors:Ca$1().describe(`Unique visitors from this location`),clicks:Ca$1().optional().describe(`Ticket link clicks`),orders:Ca$1().describe(`Orders from this location`),tickets:Ca$1().describe(`Tickets from this location`),revenue:Ca$1().describe(`Revenue from this location (cents)`),conversionRate:Ca$1().describe(`Conversion rate (%)`),share:Ca$1().describe(`Share of total views (%)`)})).describe(`Locations sorted by views descending`)}),ji=H$1({eventId:ta$1(),limit:Ca$1().min(1).max(100).optional().default(10),sortBy:gi.optional().default(`pageViews`)}),Mi=Ga$1({meta:mi,totals:Ga$1({sessions:Ca$1().describe(`Total sessions across all sources`),visitors:Ca$1().describe(`Total unique visitors across all sources`),orders:Ca$1().describe(`Total orders across all sources`),tickets:Ca$1().describe(`Total tickets across all sources`),revenue:Ca$1().describe(`Total revenue across all sources (cents)`)}),sources:Ua$1(Ga$1({id:ta$1().describe(`Traffic source identifier`),name:ta$1().describe(`Traffic source name`),referrer:ta$1().describe(`Referrer URL or domain`),sessions:Ca$1().describe(`Sessions from this source`),visitors:Ca$1().describe(`Unique visitors from this source`),clicks:Ca$1().optional().describe(`Ticket link clicks`),orders:Ca$1().describe(`Orders from this source`),tickets:Ca$1().describe(`Tickets from this source`),conversionRate:Ca$1().describe(`Conversion rate (%)`),revenue:Ca$1().describe(`Revenue from this source (cents)`),share:Ca$1().describe(`Share of total sessions (%)`)})).describe(`Traffic sources sorted by sessions descending`)}),Ni=Ga$1({eventId:ta$1(),includeAdmission:Da$1().optional().default(true),includeSection:Da$1().optional().default(true),granularity:no$1([`HOUR`,`MINUTE`]).optional()}),Pi=Ga$1({totalTickets:Ca$1(),checkedIn:Ca$1(),notCheckedIn:Ca$1(),checkinRate:Ca$1()}),Fi=Pi.extend({admissionId:ta$1(),admissionName:ta$1()}),Ii=Pi.extend({sectionId:ta$1(),sectionName:ta$1()}),Li=Ja$1([Pi.extend({byAdmission:Ua$1(Fi),bySection:Ua$1(Ii)}),Ga$1({granularity:no$1([`HOUR`,`MINUTE`]),totalTickets:Ca$1(),data:Ua$1(Ga$1({timestamp:ta$1(),checkedIn:Ca$1(),rate:Ca$1(),checkinsThisPeriod:Ca$1()})),byAdmission:Ua$1(Ga$1({admissionId:ta$1(),admissionName:ta$1(),data:Ua$1(Ga$1({timestamp:ta$1(),checkedIn:Ca$1(),rate:Ca$1()}))})).optional(),bySection:Ua$1(Ga$1({sectionId:ta$1(),sectionName:ta$1(),data:Ua$1(Ga$1({timestamp:ta$1(),checkedIn:Ca$1(),rate:Ca$1()}))})).optional()})]),Ri=Ga$1({eventId:ta$1(),limit:Ca$1().min(1).max(50).optional().default(10)}),zi=Ga$1({totalCheckIns:Ca$1(),scanners:Ua$1(Ga$1({userId:ta$1(),name:ta$1(),email:ta$1(),checkIns:Ca$1(),sharePercent:Ca$1(),firstScanAt:ta$1().nullable(),lastScanAt:ta$1().nullable(),activeMinutes:Ca$1(),scansPerHour:Ca$1(),devices:Ua$1(Ga$1({deviceId:ta$1(),checkIns:Ca$1()}))})).describe(`Door staff sorted by check-ins descending`)}),Bi=Ga$1({eventId:ta$1(),includeAdmission:Da$1().optional().default(true),includeSection:Da$1().optional().default(true)}),Vi=Ga$1({totalTickets:Ca$1(),checkedIn:Ca$1(),noShows:Ca$1(),checkInRate:Ca$1(),noShowRate:Ca$1()}),Hi=Vi.extend({admissionId:ta$1(),admissionName:ta$1()}),Ui=Vi.extend({sectionId:ta$1(),sectionName:ta$1()}),Wi=Vi.extend({byAdmission:Ua$1(Hi),bySection:Ua$1(Ui)}),Gi=Ga$1({eventId:ta$1(),granularity:no$1([`MINUTE`,`FIFTEEN_MINUTE`,`HOUR`]).optional().default(`FIFTEEN_MINUTE`)}),Ki=Ga$1({granularity:no$1([`MINUTE`,`FIFTEEN_MINUTE`,`HOUR`]),totalCheckIns:Ca$1(),peakWindow:Ga$1({start:ta$1().nullable(),end:ta$1().nullable(),checkIns:Ca$1()}),data:Ua$1(Ga$1({timestamp:ta$1(),checkIns:Ca$1(),cumulativeCheckIns:Ca$1(),cumulativeRate:Ca$1()}))}),qi=Zr(`promoterId`,`Promoter identifier`),Ji=Qr({promoterId:ta$1().describe(`Promoter identifier`),promoterName:ta$1().describe(`Promoter name`),teamId:ta$1().describe(`Team identifier`),teamName:ta$1().describe(`Team name`)}),Yi=$r(`promoterId`,`Promoter identifier`),Xi=Ga$1({meta:Ga$1({promoterId:ta$1(),dateRange:W$1,granularity:Wr}),currencies:Ua$1(Ga$1({currency:ta$1().describe(`Currency code (e.g., USD, EUR)`),series:Ua$1(Gr),totals:qr})).describe(`Time-series data grouped by currency`)}),Zi=ei(`promoterId`,`Promoter identifier`),Qi=Xr,$i=Zr(`teamId`,`Team identifier`),ea=Qr({teamId:ta$1().describe(`Team identifier`),teamName:ta$1().describe(`Team name`)}),ta=$r(`teamId`,`Team identifier`),na=Ga$1({meta:Ga$1({teamId:ta$1(),dateRange:W$1,granularity:Wr}),currencies:Ua$1(Ga$1({currency:ta$1().describe(`Currency code (e.g., USD, EUR)`),series:Ua$1(Kr),totals:Jr})).describe(`Time-series data grouped by currency`)});H$1({teamId:ta$1().describe(`Team identifier`),limit:Ca$1().optional().default(10).describe(`Number of events to return`),sortBy:no$1([`revenue`,`tickets`,`conversion`]).optional().default(`revenue`).describe(`Sort metric`)});Ga$1({meta:Ga$1({teamId:ta$1(),dateRange:Ga$1({start:ta$1(),end:ta$1()}),limit:Ca$1(),sortBy:ta$1()}),data:Ua$1(Ga$1({eventId:ta$1().describe(`Event identifier`),eventName:ta$1().describe(`Event name`),eventDate:ta$1().describe(`Event date`).optional(),status:ta$1().describe(`Event status`),revenue:Ca$1().describe(`Total revenue in cents`),tickets:Ca$1().describe(`Tickets sold`),views:Ca$1().describe(`Page views`),conversionRate:Ca$1().describe(`Conversion rate (%)`),contribution:Ca$1().describe(`% of promoter's total revenue`)})),totals:Ga$1({events:Ca$1().describe(`Total events in period`),revenue:Ca$1().describe(`Combined revenue`),tickets:Ca$1().describe(`Combined tickets`)})});const aa=ei(`teamId`,`Team identifier`),oa=Xr,sa=H$1({teamId:ta$1().describe(`Team identifier`)}),ca=Ga$1({stages:Ua$1(Ga$1({stageId:ta$1().describe(`Funnel stage identifier`),stageLabel:ta$1().describe(`Human-readable stage name`),count:Ca$1().describe(`Number of events at this stage`),conversionRate:Ca$1().describe(`Conversion rate from first stage (%)`),dropoffPercent:Ca$1().describe(`Dropoff rate from previous stage (%)`)}))}),la=H$1({teamId:ta$1().describe(`Team identifier`),groupBy:no$1([`HOUR`,`DAY_OF_WEEK`,`DAY`,`WEEK`,`MONTH`]).optional().default(`HOUR`).describe(`Time breakdown for aggregation`),timeZone:ta$1().optional().default(`UTC`).describe(`IANA timezone for hour/day aggregation (e.g., 'America/New_York')`)}),ua=Ga$1({groupBy:no$1([`HOUR`,`DAY_OF_WEEK`,`DAY`,`WEEK`,`MONTH`]).describe(`The grouping used for aggregation`),buckets:Ua$1(Ga$1({key:Ja$1([Ca$1(),ta$1()]).describe(`Bucket key (hour 0-23, day 0-6, or date string)`),label:ta$1().describe(`Human-readable label`),orderCount:Ca$1().describe(`Number of orders`),sharePercent:Ca$1().describe(`Percentage of total orders`)})),totalOrders:Ca$1().describe(`Total orders across all buckets`)}),da=H$1({teamId:ta$1().describe(`Team identifier`),limit:Ca$1().optional().default(10).describe(`Maximum number of admissions to return`)}),fa=Ga$1({admissions:Ua$1(Ga$1({admissionId:ta$1().describe(`Admission identifier`),admissionName:ta$1().describe(`Admission name`),ticketCount:Ca$1().describe(`Number of tickets sold`),sharePercent:Ca$1().describe(`Percentage of total tickets`)})),totalTickets:Ca$1().describe(`Total tickets across all admissions`)}),pa=H$1({teamId:ta$1().describe(`Team identifier`),type:no$1([`campaign`,`medium`,`source`]).describe(`Dimension type to analyze`),limit:Ca$1().optional().default(20).describe(`Maximum number of results to return`)}),ma=Ga$1({dimensionType:no$1([`campaign`,`medium`,`source`]).describe(`The dimension type analyzed`),data:Ua$1(Ga$1({dimensionValue:ta$1().describe(`The dimension value (e.g., campaign name)`),dimensionLabel:ta$1().describe(`Human-readable label`),views:Ca$1().describe(`Total page views`),conversions:Ca$1().describe(`Total conversions (orders)`),conversionRate:Ca$1().describe(`Conversion rate (%)`),sharePercent:Ca$1().describe(`Share of total conversions (%)`)})),totalConversions:Ca$1().describe(`Total conversions across all dimensions`)}),ha=Ga$1({teamId:ta$1().describe(`Team identifier`),startAt:Ni$1().describe(`Inclusive period start timestamp`),endAt:Ni$1().describe(`Exclusive period end timestamp`)}),ga=Ga$1({currency:ta$1().describe(`Currency code`),disputedOrders:Ca$1().describe(`Orders currently marked as disputed`),orderCount:Ca$1().describe(`Successful orders`),refunded:Ca$1().describe(`Refunded amount in cents`),refundCount:Ca$1().describe(`Orders with refunded value`),refundRate:Ca$1().describe(`Refunded order rate as a percentage`),revenue:Ca$1().describe(`Total order value in cents`),ticketsSold:Ca$1().describe(`Tickets sold`)}),_a=ga.omit({currency:true}),va=Ga$1({currencies:Ua$1(ga),comparison:Ga$1({totals:_a}),meta:Ga$1({endAt:ta$1().describe(`Exclusive period end timestamp`),startAt:ta$1().describe(`Inclusive period start timestamp`),teamId:ta$1().describe(`Team identifier`)}),totals:_a}),ya=Ga$1({teamId:ta$1().describe(`Team identifier`)}),ba=Ja$1([ya.extend({startDate:V$1.describe(`Start date (YYYY-MM-DD)`),endDate:V$1.describe(`End date (YYYY-MM-DD)`)}),ya.extend({startDate:ka$1().optional(),endDate:ka$1().optional()})]),xa=Ga$1({amount:Ca$1().describe(`Payout net amount in cents`),count:Ca$1().describe(`Number of payouts in this currency`),currency:ta$1().describe(`Currency code`)}),Sa=Ga$1({amount:Ca$1().describe(`Payout net amount in cents`),currency:ta$1().nullable().describe(`Currency code`),dueAt:ta$1().nullable().describe(`Payout due timestamp`),payoutId:ta$1().nullable().describe(`Payout identifier`)}),Ca=Ga$1({amount:Ca$1().describe(`Payout net amount in cents`),currency:ta$1().nullable().describe(`Currency code`),paidAt:ta$1().nullable().describe(`Payout paid timestamp`),payoutId:ta$1().nullable().describe(`Payout identifier`)}),wa=Ga$1({upcoming:Ga$1({count:Ca$1().describe(`Upcoming payouts matching the request`),pendingApproval:Ca$1().describe(`Upcoming payouts still awaiting approval`),totals:Ua$1(xa).describe(`Upcoming payout totals by currency`),next:Sa}),lastPaid:Ca}),Ta=Ga$1({teamId:ta$1().describe(`Team identifier`),startDate:V$1.describe(`Start date (YYYY-MM-DD)`),endDate:V$1.describe(`End date (YYYY-MM-DD)`),granularity:Wr.optional().default(`DAY`).describe(`Time granularity`),currency:ta$1().optional().describe(`Currency filter`)}),Ea=no$1([`revenue`,`credits`,`refunds`,`disputes`,`payouts`]),Da=Ga$1({id:ta$1().optional().describe(`Source identifier`),label:ta$1().describe(`Human-readable source label`),kind:Ea,amount:Ca$1().describe(`Signed movement amount in cents`),eventId:ta$1().optional().describe(`Related event identifier`),eventName:ta$1().optional().describe(`Related event name`)}),Oa=Ga$1({date:ta$1().describe(`Bucket date`),label:ta$1().describe(`Human-readable bucket label`),revenue:Ca$1().describe(`Successful order total after discounts in cents`),credits:Ca$1().describe(`Positive credit amount in cents`),refunds:Ca$1().describe(`Signed refund adjustment amount in cents`),disputes:Ca$1().describe(`Signed dispute principal and fee adjustment amount in cents`),payouts:Ca$1().describe(`Signed paid payout amount in cents`),movements:Ua$1(Da)}),ka=Ga$1({revenue:Ca$1().describe(`Successful order total after discounts in cents`),credits:Ca$1().describe(`Positive credit amount in cents`),refunds:Ca$1().describe(`Signed refund adjustment amount in cents`),disputes:Ca$1().describe(`Signed dispute principal and fee adjustment amount in cents`),payouts:Ca$1().describe(`Signed paid payout amount in cents`),net:Ca$1().describe(`Net signed money movement in cents`)}),Aa=Ga$1({amount:Ca$1().describe(`Outstanding adjustment amount in cents`),count:Ca$1().describe(`Outstanding adjustment count`),currency:ta$1().describe(`Currency code`)}),ja=Ga$1({meta:Ga$1({teamId:ta$1(),dateRange:W$1,granularity:Wr}),cards:Ga$1({upcomingPayouts:Ga$1({count:Ca$1(),pendingApproval:Ca$1(),totals:Ua$1(xa)}),adjustments:Ga$1({count:Ca$1(),totals:Ua$1(Aa)}),nextPayout:Sa,lastPaid:Ca}),currencies:Ua$1(Ga$1({currency:ta$1().describe(`Currency code`),series:Ua$1(Oa),totals:ka}))}),Ma=H$1({teamId:ta$1().describe(`Team identifier`),granularity:no$1([`DAY`,`WEEK`,`MONTH`]).optional().default(`DAY`).describe(`Time granularity for aggregation`)}),Na=Ga$1({granularity:no$1([`DAY`,`WEEK`,`MONTH`]).describe(`The granularity used`),series:Ua$1(Ga$1({date:ta$1().describe(`Date key (YYYY-MM-DD, YYYY-Www, or YYYY-MM)`),label:ta$1().describe(`Human-readable label`),productViewed:Ca$1().describe(`Page views`),productAdded:Ca$1().describe(`Add to cart events`),checkoutStarted:Ca$1().describe(`Checkout started events`),orderCompleted:Ca$1().describe(`Completed orders`)})),totals:Ga$1({productViewed:Ca$1().describe(`Total page views`),productAdded:Ca$1().describe(`Total add to cart`),checkoutStarted:Ca$1().describe(`Total checkouts started`),orderCompleted:Ca$1().describe(`Total orders completed`),uniqueVisitors:Ca$1().describe(`Unique visitors (estimated via HyperLogLog, ~0.8% error)`)})}),Pa=Ga$1({product_id:ta$1().optional().describe(`admission_id in ticketing context`),sku:ta$1().optional().describe(`admission_id or admission_name`),category:ta$1().optional().describe(`event_name or "Admission"`),name:ta$1().optional().describe(`admission_name`),brand:ta$1().optional().describe(`promoter_name`),variant:ta$1().optional().describe(`section_name`),price:Ca$1().optional().describe(`admission price (base + booking fee) in major currency units`),quantity:Ca$1().optional().describe(`number of tickets`),coupon:ta$1().optional().describe(`coupon code applied`),position:Ca$1().optional().describe(`position in list`),url:ta$1().optional().describe(`URL to event/admission page`),image_url:ta$1().optional().describe(`event image`),admission_id:ta$1().optional().describe(`Explicit admission ID`),section_id:ta$1().optional().describe(`Section ID if applicable`),event_id:ta$1().optional().describe(`Event ID for this admission`),promoter_id:ta$1().optional().describe(`Promoter ID`),price_base:Ca$1().nullish().describe(`Base price before fees in minor currency units`),price_booking_fee:Ca$1().nullish().describe(`Booking fee in minor currency units`),capacity:Ca$1().optional().describe(`Total capacity for this admission`),available:Ca$1().optional().describe(`Remaining tickets available`),sold:Ca$1().optional().describe(`Tickets already sold`)}),Fa=Ga$1({type:ta$1(),value:ta$1()}),Ia=Ga$1({type:ta$1(),value:ta$1()}),La=Ga$1({query:Ja$1([ta$1(),eo$1(ta$1(),Fa$1())]).optional(),list_id:ta$1().optional(),category:ta$1().optional(),filters:Ua$1(Fa).optional(),sorts:Ua$1(Ia).optional(),promotion_id:ta$1().optional(),creative:ta$1().optional(),name:ta$1().optional(),position:Ja$1([ta$1(),Ca$1()]).optional(),product_id:ta$1().optional(),sku:ta$1().optional(),brand:ta$1().optional(),variant:ta$1().optional(),price:Ca$1().optional().describe(`Product price in major currency units`),quantity:Ca$1().optional(),coupon:ta$1().optional(),currency:ta$1().optional().describe(`ISO 4217 currency code`),value:Ca$1().optional().describe(`Event value in major currency units`),url:ta$1().optional(),image_url:ta$1().optional(),cart_id:ta$1().optional(),step:Ca$1().optional(),shipping_method:ta$1().optional(),payment_method:ta$1().optional(),ticketing_mode:no$1([`internal`,`external`]).optional(),external_ticket_url:ta$1().optional(),external_ticket_domain:ta$1().optional(),cta_surface:ta$1().optional(),order_id:ta$1().optional(),affiliation:ta$1().optional(),subtotal:Ca$1().optional().describe(`Order subtotal in major currency units`),total:Ca$1().optional().describe(`Order total in major currency units`),revenue:Ca$1().optional().describe(`Order revenue in major currency units`),shipping:Ca$1().optional().describe(`Shipping amount in major currency units`),tax:Ca$1().optional().describe(`Tax amount in major currency units`),discount:Ca$1().optional().describe(`Discount amount in major currency units`),coupon_id:ta$1().optional(),coupon_name:ta$1().optional(),reason:ta$1().optional(),wishlist_id:ta$1().optional(),wishlist_name:ta$1().optional(),share_via:ta$1().optional(),share_message:ta$1().optional(),recipient:ta$1().optional(),review_id:ta$1().optional(),review_body:ta$1().optional(),rating:ta$1().optional(),products:Ua$1(Pa).optional(),event_id:ta$1().optional().describe(`ID of the ticketed event (evt_xxx)`),event_name:ta$1().optional().describe(`Name of the ticketed event`),event_slug:ta$1().optional().describe(`URL slug of event`),event_starts_at:I$1.optional().describe(`When the event starts (naive datetime, no timezone)`),event_ends_at:I$1.optional().describe(`When the event ends (naive datetime, no timezone)`),event_status:no$1([`UPCOMING`,`LIVE`,`ENDED`,`CANCELLED`]).optional(),event_visibility:no$1([`PUBLIC`,`PRIVATE`]).optional(),event_location:ta$1().optional().describe(`Venue name`),event_city:ta$1().optional().describe(`Venue city`),event_country:ta$1().optional().describe(`Venue country`),promoter_id:ta$1().optional().describe(`ID of the promoter (pmt_xxx)`),promoter_name:ta$1().optional().describe(`Name of the promoter`),promoter_slug:ta$1().optional().describe(`URL slug of promoter`),admission_id:ta$1().optional().describe(`ID of admission type (adm_xxx)`),admission_name:ta$1().optional().describe(`Name of admission (e.g., "General Admission")`),admission_capacity:Ca$1().optional().describe(`Total capacity for this admission`),admission_available:Ca$1().optional().describe(`Tickets still available`),admission_sold:Ca$1().optional().describe(`Tickets already sold`),section_id:ta$1().optional().describe(`ID of section (sct_xxx)`),section_name:ta$1().optional().describe(`Name of section (e.g., "VIP", "General")`),section_capacity:Ca$1().optional().describe(`Total capacity for this section`),section_available:Ca$1().optional().describe(`Spots still available in section`),ticket_id:ta$1().optional().describe(`Individual ticket ID (tkt_xxx)`),ticket_status:no$1([`VALID`,`REDEEMED`,`CANCELLED`]).optional(),tickets_quantity:Ca$1().optional().describe(`Number of tickets in transaction`),customer_id:ta$1().optional().describe(`Customer ID (cus_xxx)`),customer_email:ta$1().optional().describe(`Customer email`),customer_first_name:ta$1().optional(),customer_last_name:ta$1().optional(),price_base:Ca$1().nullish().describe(`Base price before fees in minor currency units`),price_booking_fee:Ca$1().nullish().describe(`Booking fee amount in minor currency units`),price_discount_amount:Ca$1().nullish().describe(`Discount amount applied in minor currency units`),sale_starts_at:I$1.optional().describe(`When tickets go on sale (naive datetime, no timezone)`),sale_ends_at:I$1.optional().describe(`When ticket sales end (naive datetime, no timezone)`),entry_starts_at:I$1.optional().describe(`When entry to event begins (naive datetime, no timezone)`),entry_ends_at:I$1.optional().describe(`When entry to event ends (naive datetime, no timezone)`),funnel_step:ta$1().optional().describe(`Current funnel step (e.g., "browse", "cart", "checkout")`),time_to_purchase:Ca$1().optional().describe(`Seconds from first view to purchase`),session_duration:Ca$1().optional().describe(`Total session duration in seconds`),referrer_type:no$1([`DIRECT`,`SOCIAL`,`EMAIL`,`SEARCH`,`REFERRAL`,`AD`]).optional(),campaign_id:ta$1().optional().describe(`Marketing campaign ID`),affiliate_id:ta$1().optional().describe(`Affiliate partner ID`),promo_code_used:ta$1().optional().describe(`Promotional code applied`),platform:no$1([`WEB`,`MOBILE_WEB`,`IOS`,`ANDROID`]).optional(),app_version:ta$1().optional(),device_type:no$1([`MOBILE`,`TABLET`,`DESKTOP`]).optional(),anonymous_id:ta$1().optional(),browser:ta$1().optional(),browser_session_id:ta$1().optional(),country:ta$1().optional(),page_path:ta$1().optional(),page_title:ta$1().optional(),page_url:ta$1().optional(),referrer:ta$1().optional(),region:ta$1().optional(),user_agent:ta$1().optional(),utm_source:ta$1().optional(),utm_medium:ta$1().optional(),utm_campaign:ta$1().optional(),utm_term:ta$1().optional(),utm_content:ta$1().optional()}),Ra=Ga$1({session_id:ta$1(),user_id:ta$1().optional(),anonymous_id:ta$1().optional(),utm_source:ta$1().optional(),utm_medium:ta$1().optional(),utm_campaign:ta$1().optional(),utm_term:ta$1().optional(),utm_content:ta$1().optional(),page:Ga$1({url:ta$1(),path:ta$1(),title:ta$1()}),referrer:ta$1().optional(),user_agent:ta$1().optional(),ip:ta$1().optional(),geo:Ga$1({country:ta$1().optional().describe(`Country code (e.g., "AU")`),countryName:ta$1().optional().describe(`Country name (e.g., "Australia")`),region:ta$1().optional().describe(`State/province code`),regionName:ta$1().optional().describe(`State/province name (e.g., "New South Wales")`),city:ta$1().optional().describe(`City name`),latitude:ta$1().optional().describe(`Latitude`),longitude:ta$1().optional().describe(`Longitude`)}).optional(),fbc:ta$1().optional().describe(`Facebook click ID`),fbp:ta$1().optional().describe(`Facebook browser ID`),ttclid:ta$1().optional().describe(`TikTok click ID`)}),za=Ga$1({id:ta$1(),eventId:ta$1().min(1).describe(`Event being tracked (evt_123)`),teamId:ta$1().min(1).describe(`Team ID (team_123)`),promoterId:ta$1().min(1).describe(`Promoter ID (pmt_123)`),eventType:ps$1,timestamp:ta$1(),date:ta$1().describe(`YYYY-MM-DD`),hour:Ca$1().int().min(0).max(23),properties:La,context:Ra,productId:ta$1().optional(),createdAt:ta$1(),updatedAt:ta$1()}),Ba=za.omit({id:true,timestamp:true,date:true,hour:true,createdAt:true,updatedAt:true}).extend({messageId:ta$1().min(1).optional().meta({description:`Analytics message id for retry-safe event delivery and linking.`}),occurredAt:Ni$1().optional().meta({description:`Client-observed event time. Server ingest time remains authoritative for writes.`})}).meta({description:`Schema for tracking an analytics event. Excludes system-generated fields`}),Va=Ga$1({legacyOrgId:ta$1().min(1),legacyEventId:ta$1().min(1),legacyTeamId:ta$1().min(1),legacyEventName:ta$1().optional(),legacyEventSlug:ta$1().optional(),legacyEventCreatedAt:Ja$1([ta$1(),Va$1(),ja$1()]).optional(),legacyTeamCreatedAt:Ja$1([ta$1(),Va$1(),ja$1()]).optional()}),Ha=Ga$1({eventName:ta$1().min(1).optional(),eventType:ps$1.optional(),eventId:ta$1().min(1).optional(),teamId:ta$1().min(1).optional(),promoterId:ta$1().min(1).optional(),properties:eo$1(ta$1(),Fa$1()).optional(),context:Ra.partial().optional(),legacyContext:Va.optional()}).passthrough().meta({description:`Compatibility schema for legacy Sash analytics payloads that require server-side ID normalization`}),Ua=Ja$1([Ba,Ha]).meta({description:`Analytics ingress schema accepting both canonical payloads and legacy Sash-compatible payloads`});Vr({eventId:ta$1().meta({description:`Event ID to get tracking events for`}),limit:T$1().int().positive().optional().meta({description:`Maximum number of events to return`})}).meta({description:`Schema for retrieving tracking events for an event`});const Ga=no$1([`AIRWALLEX`,`STRIPE`]),qa=Ga$1({id:ta$1().readonly().meta({examples:[w$1.Beneficiary.id],description:`A unique identifier for this beneficiary.`}),createdAt:Ni$1().readonly().meta({examples:[w$1.Beneficiary.createdAt],description:`Timestamp in ISO 8601 format when this beneficiary was created.`}),updatedAt:Ni$1().readonly().meta({examples:[w$1.Beneficiary.updatedAt],description:`Timestamp in ISO 8601 format when this beneficiary was last updated.`}),name:ta$1().meta({examples:[w$1.Beneficiary.name],description:`The account name for this beneficiary.`}),currency:D$1.meta({examples:[w$1.Beneficiary.currency],description:`Three-letter ISO 4217 currency code for payouts.`}),gateway:Ga.meta({examples:[`STRIPE`],description:`The payment gateway used for processing payouts.`}),gatewayId:ta$1().meta({examples:[w$1.Beneficiary.gatewayId],description:`The identifier assigned by the payment gateway to this account.`}),teamId:ta$1().meta({description:`Team that owns this beneficiary account.`}),teamIds:Ua$1(ta$1()).meta({examples:[[]],description:`List of team IDs this beneficiary is assigned to. Empty array means available to all teams.`}),venueIds:Ua$1(ta$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`}),Ja=Ga$1({city:ta$1().optional(),country_code:ta$1(),postcode:ta$1().optional(),state:ta$1().optional(),street_address:ta$1().optional()}),Ya=Ga$1({account_currency:ta$1(),account_name:ta$1(),account_number:ta$1().optional(),account_routing_type1:ta$1().optional(),account_routing_value1:ta$1().optional(),account_routing_type2:ta$1().optional(),account_routing_value2:ta$1().optional(),bank_account_category:ta$1().optional(),bank_branch:ta$1().optional(),bank_country_code:ta$1(),bank_name:ta$1().optional(),bank_street_address:ta$1().optional(),binding_mobile_number:ta$1().optional(),fingerprint:ta$1().optional(),iban:ta$1().optional(),local_clearing_system:ta$1().optional(),swift_code:ta$1().optional(),transaction_reference:ta$1().optional(),account_identifier_type:ta$1().optional(),account_identifier_value:ta$1().optional()}),Xa=Ga$1({transfer_methods:Ua$1(no$1([`SWIFT`,`LOCAL`])).meta({examples:[[`LOCAL`]],description:`Transfer methods supported for this beneficiary`}),beneficiary:Ga$1({company_name:ta$1().optional(),date_of_birth:ta$1().optional(),entity_type:ta$1().meta({examples:[`COMPANY`],description:`Whether the beneficiary is PERSONAL or COMPANY`}),first_name:ta$1().optional(),last_name:ta$1().optional(),address:Ja,bank_details:Ya,additional_info:Ga$1({personal_email:ra().optional()}).optional()}).meta({description:`Beneficiary details including personal/company info, address, and bank details`})}).meta({description:`Complete beneficiary request structure for Airwallex validation`}),Za=Xa.extend({id:ta$1().optional()}),Qa=qa.omit({id:true,createdAt:true,updatedAt:true,currency:true}).extend({currency:D$1.meta({examples:[w$1.Beneficiary.currency],description:`Three-letter ISO 4217 currency code for payouts to this beneficiary account`}),airwallex:Za.optional().meta({examples:[w$1.AirwallexBeneficiary],description:`Airwallex-specific beneficiary details including bank account information and address (required when gateway is AIRWALLEX)`}),teamIds:Ua$1(ta$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:Ua$1(ta$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`}),$a=qa.pick({id:true}).meta({description:`Schema for retrieving a single beneficiary by its unique identifier`}),eo=$a.meta({description:`Schema for deleting a beneficiary account - requires the beneficiary ID`}),to=Ga$1({teamId:ta$1().optional().meta({examples:[w$1.Team.id],description:`Optional identifier of the team whose beneficiaries to list. When provided, only beneficiaries for that team are returned.`}),gateway:no$1([`AIRWALLEX`,`STRIPE`]).optional().meta({examples:[w$1.Beneficiary.gateway],description:`Filter beneficiaries by payment gateway provider (optional)`}),currency:D$1.optional().meta({examples:[w$1.Beneficiary.currency],description:`Filter beneficiaries by currency code (optional)`}),query:ta$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:L$1(`beneficiaries`).optional(),cursor:ta$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`}),no=B$1(qa,`beneficiaries`),ro=Ga$1({beneficiary:qa}),io=Ga$1({min:Ca$1().optional().meta({description:`Minimum number of time units for the transfer`}),max:Ca$1().optional().meta({description:`Maximum number of time units for the transfer`}),unit:ta$1().optional().meta({examples:[`day`],description:`Time unit (e.g., 'day', 'hour')`})}).meta({description:`Expected transfer completion time range`}),ao=Ga$1({min:Ca$1().optional().meta({description:`Minimum transfer amount`}),max:Ca$1().optional().meta({description:`Maximum transfer amount`})}).meta({description:`Transfer amount limits`}),oo=Ga$1({label:ta$1().meta({description:`Display label for the option`}),value:ta$1().meta({description:`Value to submit when selected`}),flightTime:io.optional().meta({description:`Expected transfer time for TRANSFER_METHOD options`}),transferLimit:ao.optional().meta({description:`Transfer amount limits for TRANSFER_METHOD options`}),processingTime:ta$1().optional().meta({description:`Human-readable processing time description`})}).meta({description:`A selectable option in a form field`}),so=Ga$1({type:no$1([`INPUT`,`SELECT`,`RADIO`,`TRANSFER_METHOD`,`DYNAMIC_SELECT`]).meta({examples:[`INPUT`],description:`The type of form input to render`}),label:ta$1().optional().meta({description:`Display label for the field`}),placeholder:ta$1().optional().meta({description:`Placeholder text for input fields`}),description:ta$1().optional().meta({description:`Detailed description of the field`}),tip:ta$1().optional().meta({description:`Tooltip information shown on hover`}),example:ta$1().optional().meta({description:`Example value for the field`}),default:ta$1().optional().meta({description:`Default value to pre-populate the field`}),key:ta$1().optional().meta({description:`Unique key identifier for the field`}),options:Ua$1(oo).optional().meta({description:`Available options for SELECT and RADIO field types`}),refresh:Da$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`}),co=Ga$1({pattern:ta$1().optional().meta({description:`Regex pattern for field validation`}),type:ta$1().optional().meta({description:`Validation type identifier`})}).meta({description:`Validation rules for a form field`}),lo=Ga$1({path:ta$1().meta({examples:[`beneficiary.bank_details.account_number`],description:`Dot-notation path to the field in the beneficiary request object`}),enabled:Da$1().meta({examples:[true],description:`Whether this field should be displayed`}),required:Da$1().meta({examples:[true],description:`Whether this field is required for submission`}),field:so.optional().meta({description:`Field definition with type, label, and options`}),rule:co.optional().meta({description:`Validation rules for the field`})}).meta({description:`A single field in the beneficiary form schema with display and validation rules`}),uo=Ga$1({bankCountryCode:ta$1().regex(/^[A-Z]{2}$/).meta({examples:[`AU`],description:`Two-letter ISO 3166-1 alpha-2 country code for the bank location`}),accountCurrency:D$1.meta({examples:[`AUD`],description:`Three-letter ISO 4217 currency code for the beneficiary account`}),entityType:no$1([`PERSONAL`,`COMPANY`]).meta({examples:[`COMPANY`],description:`Whether the beneficiary is an individual or a company`}),transferMethod:no$1([`LOCAL`,`SWIFT`]).optional().meta({examples:[`LOCAL`],description:`Transfer method: SWIFT for international wire transfers, LOCAL for domestic transfers`}),localClearingSystem:ta$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:eo$1(ta$1(),ta$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.`}),fo=Ga$1({fields:Ua$1(lo).meta({description:`Array of form fields with their display and validation configuration`}),selectedTransferMethod:no$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:ta$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`}),po=S$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(uo.strict()).output(fo),mo=Ga$1({source:ta$1().meta({examples:[`beneficiary.bank_details.account_number`],description:`Dot-notation path to the field that failed validation`}),code:ta$1().meta({examples:[`001`],description:`Airwallex validation error code`}),message:ta$1().meta({examples:[`This field is required`],description:`Human-readable error message`})}).meta({description:`Details about a single validation error for a field`}),ho=Xa.meta({description:`Beneficiary request data to validate against Airwallex rules before creating`}),go=Ga$1({valid:Da$1().meta({examples:[true],description:`Whether the beneficiary request passed all validation rules`}),errors:Ua$1(mo).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`}),_o=S$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(ho.strict()).output(go),vo=no$1([`AMOUNT`,`PERCENT`]),bo=no$1([`TEAM`,`PROMOTER`,`EVENTS`,`SECTIONS`,`ADMISSIONS`]),So=Ga$1({id:ta$1().readonly().meta({examples:[w$1.Coupon.id],description:`A unique identifier for this coupon.`}),couponId:ta$1().optional().readonly().meta({examples:[w$1.Coupon.couponId],description:`Duplicate of id field for GSI queries.`}),createdAt:Ni$1().readonly().meta({examples:[w$1.Coupon.createdAt],description:`Timestamp in ISO 8601 format when this coupon was created.`}),updatedAt:Ni$1().readonly().meta({examples:[w$1.Coupon.updatedAt],description:`Timestamp in ISO 8601 format when this coupon was last updated.`}),name:ta$1().meta({examples:[w$1.Coupon.name],description:`Internal label for the coupon, visible to event organisers.`}),active:Da$1().optional().meta({examples:[w$1.Coupon.active],description:`Whether this coupon is currently active.`}),showHidden:Da$1().optional().meta({examples:[false],description:`Whether this coupon reveals hidden admissions and sections within its scope.`}),kind:vo.meta({examples:[`PERCENT`],description:`Type of discount this coupon gives: a fixed amount or a percentage.`}),filter:bo.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:D$1.optional().meta({examples:[w$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:Ca$1().min(0).meta({examples:[w$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:Ca$1().meta({examples:[w$1.Coupon.limit],description:`Maximum number of times the coupon can be redeemed across all customers.`}),uses:Ca$1().optional().meta({examples:[w$1.Coupon.uses],description:`Number of times this coupon has been redeemed so far.`}),promoters:Ua$1(Ga$1({id:ta$1().meta({description:`Identifier of a promoter this coupon applies to.`}),name:ta$1().meta({description:`Name of a promoter this coupon applies to.`}),slug:ta$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:Ua$1(Ga$1({id:ta$1().meta({description:`Identifier of an event this coupon applies to.`}),name:ta$1().meta({description:`Name of an event this coupon applies to.`}),slug:ta$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:Ua$1(Ga$1({id:ta$1().meta({description:`Identifier of a section this coupon applies to.`}),name:ta$1().meta({description:`Name of a section this coupon applies to.`}),eventId:ta$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:Ua$1(Ga$1({id:ta$1().meta({description:`Identifier of an admission this coupon applies to.`}),name:ta$1().meta({description:`Name of an admission this coupon applies to.`}),eventId:ta$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:I$1.meta({examples:[w$1.Coupon.saleStartsAt],description:`Wall clock time when this coupon becomes valid (no timezone, ISO 8601 format: YYYY-MM-DDTHH:mm:ss)`}),saleEndsAt:I$1.optional().meta({examples:[w$1.Coupon.saleEndsAt],description:`Wall clock time when this coupon expires (no timezone, ISO 8601 format: YYYY-MM-DDTHH:mm:ss)`}),teamId:ta$1().meta({description:`Team that created this coupon.`})}).meta({description:`coupon`}),G$1=Ga$1({id:ta$1().readonly().meta({examples:[w$1.CouponCode.id],description:`A unique identifier for this coupon code.`}),createdAt:Ni$1().readonly().meta({examples:[w$1.CouponCode.createdAt],description:`Timestamp in ISO 8601 format when this coupon code was created.`}),updatedAt:Ni$1().readonly().meta({examples:[w$1.CouponCode.updatedAt],description:`Timestamp in ISO 8601 format when this coupon code was last updated.`}),name:ta$1().meta({examples:[w$1.CouponCode.name],description:`The code string that customers enter to redeem the coupon.`}),active:Da$1().meta({examples:[w$1.CouponCode.active],description:`Whether this coupon code is currently enabled for use.`}),couponId:ta$1().meta({examples:[w$1.Coupon.id],description:`Identifier of the coupon to which this code belongs.`}),teamId:ta$1().meta({description:`Team that created this coupon code.`}),uses:Ca$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`}),Co=G$1.pick({id:true});Ga$1({couponId:ta$1().meta({examples:[w$1.Coupon.id]})});Ga$1({name:ta$1(),couponId:ta$1().optional().meta({examples:[w$1.Coupon.id]})});const Eo=G$1.omit({id:true,createdAt:true,updatedAt:true,uses:true}),Do=G$1.omit({createdAt:true,updatedAt:true,couponId:true,teamId:true,uses:true}).partial().extend({id:G$1.shape.id}),Oo=Co,ko=Ga$1({couponId:ta$1().optional().meta({examples:[w$1.Coupon.id],description:`Optional filter to retrieve coupon codes for a specific coupon`}),teamId:ta$1().optional().meta({examples:[`tem_01jqpjksnsen9vprw95et60t2m`],description:`Optional filter to retrieve coupon codes created by a specific team`}),active:Yt$1().optional().meta({examples:[true],description:`Optional filter to retrieve only active or inactive coupon codes`}),query:ta$1().optional().meta({examples:[`SUMMER`],description:`Optional search query to filter coupon codes by name. When provided, search-backed pagination is used.`}),limit:L$1(`coupon codes`).optional(),cursor:ta$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`}),Ao=B$1(G$1,`codes`),jo=Ga$1({couponCode:G$1}),Mo=So.omit({id:true,createdAt:true,updatedAt:true}).strict().refine(e=>e.kind!==`PERCENT`||e.discount<=100,{path:[`discount`],message:`Discount must be 100 or less for PERCENT coupons`}).meta({description:`Schema for creating a new coupon without system-generated fields`}),No=So.pick({id:true}).meta({description:`Schema for retrieving a single coupon by ID`}),Po=No.meta({description:`Schema for deleting a coupon by ID with optional soft-delete filtering`}),Fo=Ga$1({teamId:ta$1().meta({examples:[w$1.Team.id],description:`Unique identifier of the team whose coupons to retrieve`}),active:Yt$1().optional().meta({examples:[true],description:`Optional filter to retrieve only active or inactive coupons`}),query:ta$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:L$1(`coupons`).optional(),cursor:ta$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`}),Io=B$1(So,`coupons`),Lo=Ga$1({coupon:So}),Ro=So.omit({createdAt:true,updatedAt:true,teamId:true}).partial().extend({id:So.shape.id.meta({examples:[w$1.Coupon.id],description:`Unique identifier of the coupon to update`}),saleEndsAt:I$1.nullable().optional().meta({examples:[w$1.Coupon.saleEndsAt],description:`Expiry time. Pass null to remove end date; omit to leave unchanged.`}),currency:D$1.nullable().optional().meta({examples:[`AUD`,`USD`,`GBP`],description:`Three-letter ISO 4217 currency code. Pass null to clear; omit to leave unchanged.`})}).strict().refine(e=>e.kind!==`PERCENT`||e.discount===void 0||e.discount<=100,{path:[`discount`],message:`Discount must be 100 or less for PERCENT coupons`}).meta({description:`Schema for updating an existing coupon.`}),zo=Ga$1({id:j$1.readonly().meta({examples:[w$1.Location.id],description:`Location identifier`}),googlePlaceId:ta$1().optional().meta({examples:[`ChIJP3Sa8ziYEmsRUKgyFmh9AQM`],description:`Google Place ID for this location`}),createdAt:Ni$1().meta({examples:[w$1.Location.createdAt],description:`Timestamp in ISO 8601 format when the location was created`}),updatedAt:Ni$1().meta({examples:[w$1.Location.updatedAt],description:`Timestamp in ISO 8601 format when the location was last updated`}),name:ta$1().meta({examples:[w$1.Location.name],description:`Location name`}),address:ta$1().meta({examples:[w$1.Location.address],description:`Formatted address`}),city:ta$1().optional().meta({examples:[w$1.Location.city],description:`City name`}),state:ta$1().optional().meta({examples:[w$1.Location.state],description:`State or region`}),postcode:ta$1().optional().meta({examples:[w$1.Location.postcode],description:`Postal code`}),country:ta$1().meta({examples:[w$1.Location.country],description:`Country name`}),latitude:Ca$1().min(-90).max(90).meta({examples:[w$1.Location.latitude],description:`Latitude coordinate`}),longitude:Ca$1().min(-180).max(180).meta({examples:[w$1.Location.longitude],description:`Longitude coordinate`}),timeZone:ta$1().min(1).regex(/^[A-Za-z0-9_+-]+(\/[A-Za-z0-9_+-]+)*$/,{message:`Must be a valid IANA timezone identifier format`}).meta({examples:[w$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:Ua$1(ta$1()).optional().meta({examples:[[`establishment`,`point_of_interest`,`stadium`]],description:`Google Place types indicating the category and nature of this location`}),description:ta$1().optional().meta({examples:[`Historic outdoor amphitheater known for summer concerts`],description:`AI-generated description of the place, when available`}),image:F$1.optional().meta({description:`Primary location photo`}),venueId:cn.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`}),Bo=zo.omit({venueId:true}).extend({venue:Ga$1({id:cn.meta({description:`Venue identifier`}),name:ta$1().meta({description:`Venue name`}),slug:ta$1().meta({description:`URL-friendly venue slug`}),teamId:ta$1().meta({description:`Team that owns this venue`}),approval:E$1.meta({description:`Venue approval status`}),image:F$1.optional().meta({description:`Venue image`}),description:ta$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.`})}),Vo=ta$1().regex(/^G-[A-Z0-9]+$/,`Google Analytics Measurement ID must start with G-`),K$1=Ga$1({id:M$1.readonly().meta({examples:[w$1.Promoter.id],description:`Unique identifier for the promoter organization`}),createdAt:Ni$1().readonly().meta({examples:[w$1.Promoter.createdAt],description:`Timestamp in ISO 8601 format when the promoter was created`}),updatedAt:Ni$1().readonly().meta({examples:[w$1.Promoter.updatedAt],description:`Timestamp in ISO 8601 format when the promoter was last updated`}),name:ta$1().min(3).max(30).meta({examples:[w$1.Promoter.name],description:`Display name of the promoter organization. Must be between 3 and 30 characters`}),slug:ta$1().min(3).max(30).meta({examples:[w$1.Promoter.slug],description:`URL-friendly slug for the promoter organization. Must be unique and between 3 and 30 characters`}),teamId:k$1.meta({examples:[`tem_01jqpjksnsen9vprw95et60t2m`],description:`ID of the team that owns this promoter. Establishes team-based organization and permissions.`}),description:ta$1().meta({examples:[w$1.Promoter.description],description:`Detailed description of the promoter organization and their events`}),approval:E$1.meta({examples:[w$1.Promoter.approval],description:`Approval status of the promoter. PENDING: awaiting review, APPROVED: can create events, REJECTED: cannot operate`}),image:F$1.optional().meta({description:`Optional promotional image for the promoter organization with dimensions and alt text`}),location:Bo.meta({description:`Primary location details for the promoter including address, coordinates, and timezone`}),geohash:ta$1().meta({examples:[w$1.Promoter.geohash],description:`Geohash encoding of the promoter's location for efficient spatial queries`}),tracking:Ga$1({fbId:ta$1().optional().meta({examples:[w$1.Promoter.tracking.fbId],description:`Facebook pixel ID for tracking conversions and analytics`}),gaId:Vo.optional().meta({examples:[w$1.Promoter.tracking.gaId],description:`Google Analytics 4 Measurement ID for web analytics`}),tikTokId:ta$1().optional().meta({examples:[w$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:On}).meta({description:`Promoter organization with location and approval status`}),q$1=Ga$1({id:ta$1().readonly().meta({examples:[w$1.Section.id],description:`Unique identifier for the section`}),createdAt:Ni$1().readonly().meta({examples:[w$1.Section.createdAt],description:`Timestamp when the section was created in ISO 8601 format`}),updatedAt:Ni$1().readonly().meta({examples:[w$1.Section.updatedAt],description:`Timestamp when the section was last updated in ISO 8601 format`}),name:ta$1().meta({examples:[w$1.Section.name],description:`Display name of the section (e.g., 'VIP Area', 'General Admission')`}),capacity:wn().prefault(-1).meta({examples:[w$1.Section.capacity],description:`Maximum number of attendees for this section. Use -1 for unlimited capacity`}),limit:Tn().prefault(-1).meta({examples:[w$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:Ca$1().min(-1).readonly().meta({examples:[w$1.Section.available],description:`Number of tickets currently available for purchase in this section. Use -1 when capacity is unlimited`}),sold:Ca$1().min(0).readonly().meta({examples:[w$1.Section.sold],description:`Number of tickets sold for this section`}),reserved:Ca$1().readonly().meta({examples:[w$1.Section.reserved],description:`Number of tickets currently reserved (in pending orders) for this section`}),order:Ca$1().min(0).meta({examples:[w$1.Section.order],description:`Display order of the section. Lower numbers appear first in listings`}),visibility:no$1([`ALWAYS`,`STACKED`,`HIDDEN`]).prefault(`ALWAYS`).meta({examples:[`ALWAYS`],description:`Controls how this section is shown: always list all visible admissions, stack to show the cheapest available admission, or hide until a scoped coupon reveals it.`}),location:zo.meta({description:`Physical location details for the section`}),teamId:ta$1().meta({description:`Team that owns this section. Denormalized for efficient queries.`}),promoterId:ta$1().meta({examples:[w$1.Section.promoterId],description:`Unique identifier of the promoter who owns this section`}),eventId:ta$1().meta({examples:[w$1.Section.eventId],description:`Unique identifier of the event this section belongs to`}),eventSlug:ta$1().meta({examples:[w$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`}),Uo=[`AUD`,`NZD`,`USD`],Wo=no$1(Uo),Go=no$1([`FEATURE_DISABLED`,`UNSUPPORTED_CURRENCY`,`NOT_ROUTED`,`NO_CONNECTED_GATEWAY`,`CHARGES_DISABLED`,`INCOMPATIBLE_FEE_STRUCTURE`]),Ko=Ga$1({available:Da$1().meta({description:`Whether Stripe Connect can be used for the selected team, event, and currency.`}),reasons:Ua$1(Go).meta({description:`Machine-readable reasons Stripe Connect is unavailable. Empty when available is true.`}),supportedCurrencies:Ua$1(Wo).meta({description:`Currencies currently supported for Stripe Connect routing in this tenant flow.`})}),qo=`STRIPE_CONNECT_UNAVAILABLE`;Ga$1({code:io$1(qo).meta({description:`Stable error code returned when Stripe Connect is unavailable.`}),availability:Ko.meta({description:`Detailed Stripe Connect availability result for UI filtering and recovery.`})});const Yo=no$1([`UPCOMING`,`ENDED`]),Zo=no$1([`PUBLIC`,`PRIVATE`,`SCHEDULED`,`PASSCODE`,`CANCELLED`]),$o=no$1([`HIDDEN`,`SCHEDULED`,`PUBLIC`]),ts=Ga$1({visibility:$o.optional().meta({description:`Whether public event surfaces show the full location address. Missing values are treated as PUBLIC unless legacy location reveal data says otherwise.`}),publishAt:I$1.optional().meta({description:`Wall clock time when the location address becomes public. Required when location visibility is SCHEDULED.`}),sendAt:I$1.optional().meta({description:`Wall clock time when customers with successful orders can see the full location address and receive the notification.`}),instructions:ta$1().max(2e3).optional().meta({description:`Arrival instructions shown to customers once the location address has been sent.`})}),ns=Bo.extend(ts.shape),rs=Ga$1({id:A$1.readonly().meta({examples:[w$1.Event.id],description:`A unique identifier for this event`}),createdAt:Ni$1().readonly().meta({examples:[w$1.Event.createdAt],description:`Timestamp in ISO 8601 format when this event was created`}),updatedAt:Ni$1().readonly().meta({examples:[w$1.Event.updatedAt],description:`Timestamp in ISO 8601 format when this event was last updated`}),name:ta$1().meta({examples:[w$1.Event.name],description:`The title of the event shown to attendees`}),slug:ta$1().meta({examples:[w$1.Event.slug],description:`URL-friendly identifier for the event`}),description:ta$1().meta({examples:[w$1.Event.description],description:`Detailed description of the event`}),approval:E$1.meta({examples:[`APPROVED`],description:`Approval status of the event`}),status:Yo.meta({examples:[`UPCOMING`,`ENDED`],description:`Current stage of the event lifecycle`}),visibility:Zo.meta({examples:[`PUBLIC`],description:`Who can see the event`}),currency:D$1.meta({examples:[`AUD`],description:`Three-letter ISO 4217 currency code used for ticket prices`}),url:oa$1().optional().meta({examples:[`https://example.com`],description:`External URL for the event website or ticket page`}),entryStartsAt:I$1.meta({examples:[w$1.Event.entryStartsAt],description:`Wall clock time when event entry begins (no timezone, displays same everywhere)`}),entryEndsAt:I$1.meta({examples:[w$1.Event.entryEndsAt],description:`Wall clock time when event entry ends (no timezone, displays same everywhere)`}),publishAt:I$1.meta({examples:[w$1.Event.publishAt],description:`Wall clock time when the event becomes publicly visible (no timezone)`}),locationRevealAt:I$1.optional().meta({description:`Deprecated. Use location.sendAt for customer access and location.publishAt for scheduled public address visibility.`}),entryInstructions:ta$1().max(2e3).optional().meta({description:`Deprecated. Use location.instructions for customer-facing arrival instructions.`}),images:Ga$1({mobile:F$1.meta({description:`Mobile-optimized image for the event`}),desktop:F$1.meta({description:`Desktop-optimized image for the event`})}),geohash:ta$1().meta({examples:[w$1.Event.geohash],description:`Geohash representing the event location`}),location:ns.meta({description:`Structured location details for the event`}),teamId:k$1.meta({description:`Team that owns this event. Denormalized for efficient queries.`}),promoterId:M$1.meta({examples:[w$1.Promoter.id],description:`Promoter organizing the event. Must belong to the team.`}),metadata:On,genres:Ua$1(ta$1()).optional().meta({description:`Music genres for the event (1-5 genres)`,examples:[[`Tech House`,`Melodic Techno`]]}),categories:Ua$1(ta$1()).optional().meta({description:`Event characteristics like vibe, venue type, and amenities (up to 10)`,examples:[[`Day Party`,`Open Air`,`Free Entry`]]}),featured:Da$1().optional().meta({description:`Whether this event is an editorial pick`,examples:[true]}),likes:Ca$1().int().min(0).optional().meta({description:`Number of users who liked this event`,examples:[42]}),stripeConnectAvailability:Ko.optional().meta({description:`Stripe Connect availability metadata for tenant event UI.`})}).meta({description:`event`}),is=K$1.pick({id:true,name:true,slug:true,description:true,image:true}),as=rs.extend({passcode:ta$1().optional().meta({description:`Plain-text event passcode. Included only on internal event detail responses for users with event.read access.`}),sections:Ua$1(q$1),admissions:Ua$1(z$1),promoter:is.optional().meta({description:`Public summary of the promoter organizing this event. Included on event detail responses only.`}),liked:Da$1().optional().meta({description:`Whether the current user has liked this event`,examples:[true,false]})}),os=Ga$1({event:as}),ss=no$1([`APPROVED`,`REJECTED`]);no$1([`CREATED`,`UPDATED`,`MANUAL`]);const ls=Ga$1({key:ta$1().meta({examples:[w$1.Event.id,w$1.Event.slug],description:`Event key - either a unique ID (evt_xxx format) or URL-friendly slug`}),teamId:k$1.optional().meta({description:`Optional team scope. When provided, event must belong to this team.`})}).meta({description:`Schema for retrieving internal event approval state.`}),us=Ga$1({eventId:A$1,teamId:k$1,approval:E$1,reason:ta$1().max(2e3).nullable(),requestedAt:Ni$1().nullable(),changedAt:Ni$1().nullable(),changedByUserId:ta$1().nullable(),submittedByUserId:ta$1().nullable()}).meta({description:`Internal approval workflow state for an event.`}),ds=Ga$1({approval:us}),fs=ls.meta({description:`Schema for requesting or resubmitting event approval.`}),ps=Ga$1({key:ta$1().meta({examples:[w$1.Event.id,w$1.Event.slug],description:`Event key - either a unique ID (evt_xxx format) or URL-friendly slug`}),approval:ss.meta({examples:[`APPROVED`],description:`Approval decision for the event`}),reason:ta$1().max(2e3).optional().meta({description:`Optional reason shown to the event submitter when rejecting the event`}),requestedAt:Ni$1().optional().meta({description:`Approval request timestamp from an email action. When provided, the event must still be pending for that request.`})}).meta({description:`Schema for approving or rejecting an event.`}),ms=rs.omit({id:true,teamId:true,createdAt:true,updatedAt:true,status:true,approval:true,geohash:true,location:true,likes:true,stripeConnectAvailability:true}).extend({slug:ta$1().min(3).max(100).optional().meta({examples:[w$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:ta$1().optional().meta({description:`Passcode for protected access to the event`}),locationId:j$1.optional().meta({examples:[`loc_01jqpjksnsen9vprw95et60t2m`],description:`ID of an existing location. Either locationId or googlePlaceId must be provided.`}),googlePlaceId:ta$1().optional().meta({examples:[`ChIJN1t_tDeuEmsRUsoyG83frY4`],description:`Google Place ID to create a new location from. Either locationId or googlePlaceId must be provided.`}),location:ts.optional().meta({description:`Event-specific location visibility, customer send time, and arrival instructions.`}),genres:tn$1.optional().meta({description:`Music genres for the event (1-5 genres)`,examples:[[`Tech House`,`Melodic Techno`]]}),categories:$t$1.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`}),hs=Ga$1({key:ta$1().min(1).meta({description:`Event key - either a unique ID (evt_xxx format) or URL-friendly slug`,examples:[w$1.Event.id,w$1.Event.slug]})}),gs=Ga$1({key:ta$1().min(1).meta({description:`Event key - either a unique ID (evt_xxx format) or URL-friendly slug`,examples:[w$1.Event.id,w$1.Event.slug]}),name:ta$1().min(1).meta({description:`Name for the duplicated event`,examples:[`${w$1.Event.name} (Copy)`]}),entryStartsAt:I$1.meta({description:`New event entry start time. Other copied event and admission datetimes are shifted by the same offset.`,examples:[w$1.Event.entryStartsAt]}),url:oa$1().nullable().optional().meta({description:`External ticketing URL for the duplicated event. Pass null to create the copy without an external URL; omit to copy the source URL.`,examples:[`https://example.com/events/summer-festival-2025`]})}),_s=Ga$1({key:ta$1().min(1).meta({description:`Event key - either a unique ID (evt_xxx format) or URL-friendly slug`,examples:[w$1.Event.id,w$1.Event.slug]}),featured:Da$1().meta({description:`Whether the event should be featured (editorial pick)`,examples:[true,false]})}),vs=Ga$1({key:ta$1().min(1).meta({description:`Event key - either a unique ID (evt_xxx format) or URL-friendly slug`,examples:[w$1.Event.id,w$1.Event.slug]}),passcode:ta$1().optional().meta({description:`Passcode for accessing protected events`}),couponCode:ta$1().optional().meta({description:`Coupon code used to reveal hidden admissions and sections when eligible.`}),teamId:ta$1().optional().meta({description:`Optional team scope. When provided, event must belong to this team.`})}),ys=Ga$1({sold:Ca$1().min(0).meta({description:`Number of tickets sold (net of refunds)`}),reserved:Ca$1().min(0).meta({description:`Number of tickets reserved`}),available:Ca$1().min(-1).meta({description:`Number of tickets available (-1 for unlimited)`}),capacity:Ca$1().min(-1).meta({description:`Total capacity (-1 for unlimited)`})}),bs=no$1([`entryStartsAt`,`createdAt`]),xs=no$1([`asc`,`desc`]),Ss=Ka({status:no$1([`UPCOMING`,`ENDED`]).optional().meta({examples:[`UPCOMING`],description:`Filter events by their current lifecycle status`}),approval:E$1.optional().meta({examples:[`APPROVED`],description:`Filter events by their approval status`}),visibility:no$1([`PUBLIC`,`PRIVATE`,`SCHEDULED`,`PASSCODE`]).optional().meta({examples:[`PUBLIC`],description:`Filter events by their visibility setting`}),promoterId:ta$1().max(128).optional().meta({examples:[w$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:ta$1().max(128).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:ta$1().max(128).optional().meta({description:`Filter events to only those at a specific venue. If not provided, returns events at all venues`}),limit:T$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:ta$1().max(768).optional().meta({examples:[`evt_01jps5cgsenjrazw6wswmyspa3`],description:`Cursor token for pagination. Provide the cursor from the previous response to continue fetching results`}),query:Jt$1().max(120).optional().meta({examples:[`Test Event`],description:`Search term to filter events by name, description, or location. Triggers full‑text search when provided`}),latitude:T$1().min(-90).max(90).optional().meta({examples:[w$1.Event.location.latitude],description:`Latitude coordinate for geographic search. Provide with longitude (and optional radius)`}),longitude:T$1().min(-180).max(180).optional().meta({examples:[w$1.Event.location.longitude],description:`Longitude coordinate for geographic search. Provide with latitude (and optional radius)`}),radius:T$1().positive().max(2e4).optional().meta({examples:[20],description:`Search radius in kilometers from the provided coordinates. Defaults to 20km`}),country:ta$1().max(120).optional().meta({examples:[`australia`],description:`Filter by country region slug. Matches events where location.country equals the region name`}),state:ta$1().max(120).optional().meta({examples:[`nsw`],description:`Filter by state/province region slug. Matches events where location.state equals the region name`}),city:ta$1().max(120).optional().meta({examples:[`sydney`],description:`Filter by city region slug. Matches events where location.city equals the region name`}),from:ta$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:ta$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`}),sort:bs.optional().meta({examples:[`createdAt`],description:"Optional list sort field. Defaults to event start time. Use `createdAt` to return newest or oldest events first."}),direction:xs.optional().meta({examples:[`desc`],description:"Sort direction for event lists. Defaults to lifecycle-aware event start order unless `sort` is provided."}),genres:Ua$1(en$1).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:Ua$1(Qt$1).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:Da$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`}),Cs=Ss,ws=wr({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`}),Ts=B$1(rs.extend({inventory:ys.optional(),liked:Da$1().optional().meta({description:`Whether the current user has liked this event`,examples:[true,false]}),price:ws.nullable().meta({description:`Cheapest publicly purchasable admission price, or null when no public admission is currently available`})}),`events`),Es=Ga$1({event:rs});no$1([`ONLINE`,`DOOR`,`SALE_ENDED`,`SOLD_OUT`]);const ks=Ss.omit({cursor:true,limit:true}).extend({limit:T$1().int().min(1).max(1e3).prefault(1e3).meta({examples:[1e3],description:`Maximum number of event slugs to return. Must be between 1 and 1000, defaults to 1000`}),skip:T$1().int().min(0).max(1e4).prefault(0).meta({examples:[0],description:`Number of matching event slugs to skip before returning results`})}),As=Ga$1({slugs:Ua$1(ta$1()).meta({description:`Current event slugs for the matching event list`}),skip:T$1().int().min(0).meta({examples:[0],description:`Number of matching event slugs skipped`}),limit:T$1().int().min(1).max(1e3).meta({examples:[1e3],description:`Maximum number of event slugs returned`})}),js=Ga$1({visibility:$o.optional().meta({description:`Whether public event surfaces show the full location address. Omit to leave unchanged.`}),publishAt:ts.shape.publishAt.nullable().optional().meta({description:`Public location address publish time. Pass null to clear; omit to leave unchanged.`}),sendAt:ts.shape.sendAt.nullable().optional().meta({description:`Customer location address send time. Pass null to clear; omit to leave unchanged.`}),instructions:ts.shape.instructions.nullable().optional().meta({description:`Arrival instructions for customers. Pass null to clear; omit to leave unchanged.`})}),Ms=rs.omit({createdAt:true,updatedAt:true,geohash:true,status:true,approval:true,location:true,likes:true,stripeConnectAvailability:true}).partial().extend({key:ta$1().meta({examples:[w$1.Event.id,w$1.Event.slug],description:`Event key - either a unique ID (evt_xxx format) or URL-friendly slug`}),slug:ta$1().min(3).max(100).optional().meta({examples:[w$1.Event.slug],description:`URL-friendly slug for the event. Omit to leave unchanged. Must be unique and between 3 and 100 characters`}),passcode:ta$1().nullable().optional().meta({description:`Passcode for protected access. Pass null to clear; omit to leave unchanged.`}),url:oa$1().nullable().optional().meta({examples:[`https://example.com/events/summer-festival-2025`],description:`External event URL. Pass null to clear; omit to leave unchanged.`}),locationRevealAt:rs.shape.locationRevealAt.nullable().optional().meta({description:`Wall clock time when the venue address becomes visible. Pass null to clear before reveal; omit to leave unchanged.`}),entryInstructions:rs.shape.entryInstructions.nullable().optional().meta({description:`Entrance instructions sent when the location is revealed. Pass null to clear; omit to leave unchanged.`}),locationId:j$1.optional().meta({examples:[`loc_01jqpjksnsen9vprw95et60t2m`],description:`ID of an existing location to update to. Either locationId or googlePlaceId can be provided.`}),googlePlaceId:ta$1().optional().meta({examples:[`ChIJN1t_tDeuEmsRUsoyG83frY4`],description:`Google Place ID to update location from. Either locationId or googlePlaceId can be provided.`}),location:js.optional().meta({description:`Event-specific location visibility, public publish time, customer send time, and arrival instructions.`}),genres:tn$1.optional().meta({description:`Music genres for the event (1-5 genres)`,examples:[[`Tech House`,`Melodic Techno`]]}),categories:$t$1.meta({description:`Event characteristics like vibe, venue type, and amenities (up to 10)`,examples:[[`Day Party`,`Open Air`,`Free Entry`]]}),notify:Da$1().optional().meta({description:`Whether attendees should be notified about this event update.`,examples:[true]})}).meta({description:`Schema for updating an existing event.`}),Ns=Ga$1({id:yn.readonly().meta({description:`Unique identifier for the event collaborator`}),createdAt:Ni$1().readonly().meta({description:`Timestamp in ISO 8601 format when the collaborator was added`}),updatedAt:Ni$1().readonly().meta({description:`Timestamp in ISO 8601 format when the collaborator was last updated`}),eventId:A$1.meta({description:`Event this collaboration applies to`}),promoterId:M$1.meta({description:`Promoter collaborating on the event`}),acceptedBy:ln.meta({description:`User ID who accepted the invitation to collaborate`}),promoter:Ga$1({id:M$1.meta({description:`Unique identifier of the promoter`}),name:ta$1().meta({description:`Name of the promoter`}),teamId:k$1.meta({description:`Team ID of the promoter`})}).optional().meta({description:`Populated promoter details. Only included when explicitly requested.`}),permissions:$n.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:ta$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.`}),Ps=Ns.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.`}),Fs=Ga$1({id:yn.readonly().meta({description:`Unique identifier for the event collaboration invitation`}),createdAt:Ni$1().readonly().meta({description:`Timestamp in ISO 8601 format when the invitation was created`}),updatedAt:Ni$1().readonly().meta({description:`Timestamp in ISO 8601 format when the invitation was last updated`}),eventId:A$1.meta({description:`Event this invitation applies to`}),promoterId:M$1.meta({description:`Promoter being invited to collaborate on the event.`}),invitedByPromoterId:M$1.meta({description:`Promoter who sent this invitation (event owner or collaborator with permission).`}),permissions:$n.meta({description:`Permissions the promoter will receive upon accepting the invitation.`,examples:[[],[`event.read`,`event.write`],[`order.read`],[`ticket.scan`],[`*`]]}),token:ta$1().readonly().meta({description:`Secure token for invite acceptance. Required to accept the invitation.`}),invitedBy:ln.meta({description:`User ID who sent the invitation`}),expiresAt:Ca$1().int().positive().meta({description:`Unix timestamp (seconds) for DynamoDB TTL. Invitation will be automatically deleted after 7 days.`}),tenantId:ta$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.`}),Is=Fs.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.`}),Ls=Ga$1({eventId:A$1.meta({description:`Event ID that the collaboration belongs to`}),id:yn.meta({description:`Event team access grant ID to retrieve`})}),Rs=Ga$1({invite:Fs}),zs=Ga$1({eventId:ta$1().meta({description:`Event ID to list collaborators for`}),accessPromoterId:ta$1().optional().meta({description:`DEPRECATED: Use 'promoterId' instead. Filter by collaborating promoter ID (what events can this promoter access). Maintained for backward compatibility.`}),ownerPromoterId:ta$1().optional().meta({description:`DEPRECATED: No longer used. Maintained for backward compatibility only.`}),limit:L$1(`event collaborators`),cursor:ta$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.`}),Bs=B$1(Ns,`grants`),Vs=Ga$1({collaborator:Ns}),Hs=Ga$1({key:ta$1().min(1).meta({description:`Location key - either a location ID (loc_xxx format) or provider-specific identifier (e.g., Google Place ID)`,examples:[w$1.Location.id,`ChIJP3Sa8ziYEmsRUKgyFmh9AQM`]})}),Us=Ga$1({query:ta$1().min(1).meta({examples:[`sydney opera`],description:`Search query for location search`}),latitude:T$1().min(-90).max(90).optional().meta({examples:[w$1.Location.latitude],description:`User's latitude for proximity-based results (optional for better relevance)`}),longitude:T$1().min(-180).max(180).optional().meta({examples:[w$1.Location.longitude],description:`User's longitude for proximity-based results (optional for better relevance)`}),types:Ua$1(ta$1()).optional().meta({examples:[[`establishment`]],description:`Filter results by Google Place types (e.g., 'establishment', 'night_club', 'bar')`})}).meta({description:`Parameters for searching locations`}),Ws=Ga$1({googlePlaceId:ta$1().meta({examples:[`ChIJP3Sa8ziYEmsRUKgyFmh9AQM`],description:`Google Place ID for this location`}),name:ta$1().meta({examples:[w$1.Location.name],description:`Primary name of the location`}),description:ta$1().meta({examples:[w$1.Location.address],description:`Full formatted address`}),venue:Ga$1({id:cn.meta({examples:[w$1.Venue.id],description:`Venue ID if this location is a managed venue`}),name:ta$1().meta({examples:[w$1.Venue.name],description:`Venue name`}),teamId:ta$1().meta({description:`Team that manages this venue`}),image:F$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`}),Gs=Ga$1({predictions:Ua$1(Ws).meta({description:`Array of location predictions`})}).meta({description:`Response containing location search results`}),Ks=Ga$1({location:Bo}),qs=Ga$1({name:ta$1().meta({examples:[`tenant-web`,`team-web`,`api`,`partner`],description:`Free-form channel identifier describing where the order originated.`}),referrer:ta$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:ta$1().optional().meta({examples:[`instagram`],description:`Optional UTM source captured from the originating URL.`}),utmMedium:ta$1().optional().meta({examples:[`social`],description:`Optional UTM medium captured from the originating URL.`}),utmCampaign:ta$1().optional().meta({examples:[`summer-launch`],description:`Optional UTM campaign captured from the originating URL.`}),deviceType:no$1([`MOBILE`,`TABLET`,`DESKTOP`]).optional().meta({examples:[`MOBILE`],description:`Optional analytics device classification captured at order creation.`}),browser:ta$1().optional().meta({examples:[`Chrome`],description:`Optional analytics browser classification captured at order creation.`}),country:ta$1().optional().meta({examples:[`Australia`],description:`Optional viewer country captured at order creation for analytics attribution.`}),region:ta$1().optional().meta({examples:[`Australia - New South Wales`],description:`Optional viewer region captured at order creation for analytics attribution.`}),sessionId:ta$1().optional().meta({examples:[`ses_01HX...`],description:`Session ID captured at order creation for client/server analytics linking.`}),anonymousId:ta$1().optional().meta({examples:[`aid_01HX...`],description:`Browser anonymous ID captured at order creation for attribution linking.`})}),Js=Ga$1({id:ta$1().meta({examples:[w$1.CouponCode.id],description:`Unique identifier of the coupon code used in the order`}),name:ta$1().meta({examples:[w$1.CouponCode.name],description:`The coupon code string that was entered by the customer`}),couponId:ta$1().meta({examples:[w$1.CouponCode.couponId],description:`Unique identifier of the parent coupon configuration`})}),Ys=Ga$1({id:ta$1().meta({examples:[w$1.Customer.id],description:`Unique identifier of the customer who placed the order`}),firstName:ta$1().meta({examples:[w$1.Customer.firstName],description:`First name of the customer`}),lastName:ta$1().meta({examples:[w$1.Customer.lastName],description:`Last name of the customer`}),email:ra().meta({examples:[w$1.Customer.email],description:`Email address of the customer`}),phone:ta$1().meta({examples:[w$1.Customer.phone],description:`Customer phone number in E.164 format for SMS delivery`}).optional()}),Xs=Ga$1({id:ta$1().meta({examples:[w$1.Event.id],description:`Unique identifier of the event associated with the order`}),name:ta$1().meta({examples:[w$1.Event.name],description:`Display name of the event`}),slug:ta$1().meta({examples:[w$1.Event.slug],description:`URL-friendly slug of the event`}),location:ta$1().meta({examples:[w$1.Event.location.name],description:`Name of the venue or location where the event takes place`}).optional(),locationAddress:ta$1().optional().meta({examples:[w$1.Event.location.address],description:`Full venue address, available once the event location is revealed.`}),locationLatitude:Ca$1().optional().meta({examples:[w$1.Event.location.latitude],description:`Venue latitude, available once the event location is revealed.`}),locationLongitude:Ca$1().optional().meta({examples:[w$1.Event.location.longitude],description:`Venue longitude, available once the event location is revealed.`}),entryInstructions:ta$1().max(2e3).optional().meta({description:`Latest entry instructions for customers once the event location is revealed.`})}),Zs=no$1([`GATEWAY`,`SHIPPING`,`SMS_DELIVERY`]).meta({description:`Type of fee applied to an order`}),Qs=Ga$1({id:ta$1().meta({examples:[w$1.OrderFee.id],description:`Unique identifier for this order fee`}),createdAt:Ni$1().readonly().meta({examples:[w$1.OrderFee.createdAt],description:`Timestamp in ISO 8601 format when this fee was created`}),reason:ta$1().meta({examples:[w$1.OrderFee.reason],description:`Description explaining why this fee was applied to the order`}),amount:Ca$1().finite(`Amount must be a valid number`).meta({examples:[w$1.OrderFee.amount],description:`Fee amount in cents (positive value indicates charge to customer, negative value indicates credit or discount)`}),currency:D$1.meta({examples:[w$1.OrderFee.currency],description:`Currency code in ISO 4217 format`}),requestId:ta$1().meta({examples:[w$1.OrderFee.requestId],description:`External payment processor request identifier for tracking this fee`}),kind:Zs.optional().meta({examples:[`GATEWAY`],description:`Type of fee for categorization and reporting`})}),$s=Ga$1({net:Ta$1().min(0).meta({examples:[w$1.OrderItem.price.net],description:`Total amount to pay to promoter in cents.
83
- Calculated as: total - booking - refunded`}),total:Ta$1().min(0).meta({examples:[w$1.OrderItem.price.total],description:`Total amount the customer should pay in cents.
84
- Calculated as: gross - discount`}),gross:Ta$1().min(0).meta({examples:[w$1.OrderItem.price.gross],description:`Total amount before refunds and discounts in cents.
85
- Calculated as: base + booking`}),base:Ta$1().min(0).meta({examples:[w$1.OrderItem.price.base],description:`Total ticket price in cents`}),booking:Ta$1().min(0).meta({examples:[w$1.OrderItem.price.booking],description:`Total booking fees in cents (non-refundable)`}),refunded:Ta$1().max(0).meta({examples:[w$1.OrderItem.price.refunded],description:`Total amount refunded in cents`}),discount:Ta$1().max(0).meta({examples:[w$1.OrderItem.price.discount],description:`Total amount discounted in cents`}),currency:D$1.meta({examples:[w$1.OrderItem.price.currency],description:`Currency code in ISO 4217 format.`})}),ec=no$1([`ADMISSION`,`ADDON`]),nc=Ga$1({id:ta$1().meta({examples:[w$1.OrderItem.id],description:`Unique identifier for this order item`}),kind:ec.meta({examples:[w$1.OrderItem.kind],description:`Type of item: ADMISSION for tickets, ADDON for additional products or services`}),quantity:Ta$1().min(1).meta({examples:[w$1.OrderItem.quantity],description:`Number of items purchased (minimum 1)`}),admissionId:ta$1().optional().meta({examples:[w$1.OrderItem.admissionId],description:`Unique identifier of the admission ticket type, required for ADMISSION items`}),sectionId:ta$1().optional().meta({examples:[w$1.OrderItem.sectionId],description:`Unique identifier of the venue section for this admission`}),admission:z$1.optional().meta({examples:[w$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:q$1.optional().meta({examples:[w$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:$s.meta({description:`Pricing breakdown for this order item including all fees and discounts`})}),rc=Ga$1({promoter:Da$1(),tenant:Da$1()}),ic=no$1([`SMS_DELIVERY`]).meta({description:`Type of pre-computed offer available for this order`}),ac=Ga$1({amount:Ta$1().min(0).meta({examples:[200],description:`Offer price in the smallest currency unit (e.g. cents)`}),currency:D$1.meta({examples:[`AUD`],description:`Three-letter ISO 4217 currency code`})}),oc=Ga$1({kind:ic.meta({examples:[`SMS_DELIVERY`],description:`Discriminator identifying the type of offer`}),label:ta$1().meta({examples:[`SMS ticket delivery`],description:`Human-readable label for the offer`}),price:ac.meta({description:`Pre-computed price for this offer`})}),sc=no$1([`FREE`,`AIRWALLEX`,`STRIPE`]),lc=no$1([`AMERICAN_EXPRESS`,`CARTES_BANCAIRES`,`CHINA_UNION_PAY`,`DINERS_CLUB_INTERNATIONAL`,`DISCOVER`,`EFTPOS_AUSTRALIA`,`INTERAC`,`JCB`,`LINK`,`MAESTRO`,`MASTERCARD`,`OTHER`,`UNKNOWN`,`UNION_PAY`,`VISA`]),dc=no$1(`ACH_DIRECT_DEBIT.ACSS_DEBIT.AFFIRM.AFTERPAY.ALFAMART.ALIPAY.ALIPAYCN.ALIPAYHK.ALMA.AMEX_EXPRESS_CHECKOUT.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.MASTERPASS.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.VISA_CHECKOUT.WECHATPAY.ZIP`.split(`.`)),pc=Ga$1({method:sc.meta({examples:[`FREE`],description:`Payment gateway used to process this order: FREE for no-cost orders, AIRWALLEX or STRIPE for paid orders`}),source:dc.optional().meta({examples:[`APPLEPAY`,`GOOGLEPAY`,`CARD`],description:`Payment method used by the customer such as ApplePay, GooglePay, or card-based payments`}),brand:lc.optional().meta({examples:[`VISA`,`MASTERCARD`,`AMERICAN_EXPRESS`],description:`Card brand when source is CARD (Visa, Mastercard, American Express, etc.)`}),last4:ta$1().optional().meta({examples:[`4242`],description:`Last 4 digits of the card number when source is CARD`}),stripeId:ta$1().optional().meta({examples:[`pi_1234567890abcdef`],description:`Stripe payment intent identifier when using Stripe gateway`}),stripeClientSecret:ta$1().optional().meta({examples:[`pi_1234567890abcdef_secret_xyz`],description:`Stripe PaymentIntent client secret associated with the order, used to complete the payment flow`}),stripeCustomerSessionClientSecret:ta$1().optional().meta({examples:[`cuss_1234567890abcdef_secret_xyz`],description:`Stripe CustomerSession client secret used by the Payment Element to offer and redisplay saved payment methods`}),stripeAccountId:ta$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:ta$1().optional().meta({examples:[`int_hkdmr7v9rg1j8donpkmv96`],description:`Airwallex payment intent identifier when using Airwallex gateway`}),airwallexClientSecret:ta$1().optional().meta({examples:[`eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3MDAwMDAwMDAsImV4cCI6MTcwMDAwMzYwMCwiaW50ZW50X2lkIjoiaW50X2hrZG1yN3Y5cmcxajhkb25wa212OTYifQ.K8vLx2nPzQHdR5mT1wYcBfJkLmNpS3xG7aE9dH4qZvM`],description:`Airwallex client secret used to authenticate requests for payment initialization`}),airwallexCustomerId:ta$1().optional().meta({examples:[`cus_hkdmrhkh8he4j3kvela`],description:`Airwallex customer ID attached to the PaymentIntent for saved cards functionality`}),airwallexCustomerClientSecret:ta$1().optional().meta({examples:[`eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3MDAwMDAwMDAsImV4cCI6MTcwMDAwMzYwMCwiY3VzdG9tZXJfaWQiOiJjdXNfaGtkbXJoa2g4aGU0ajNrdmVsYSJ9.abc123`],description:`Airwallex customer client secret for accessing saved payment methods in the Drop-in Element`})}),mc=Ga$1({net:Ta$1().meta({examples:[w$1.Order.price.net],description:`Total amount to pay to promoter in cents.
86
- Calculated as: total + booking + refunded + dispute`}),total:Ta$1().meta({examples:[w$1.Order.price.total],description:`Total amount the customer should pay in cents.
87
- Calculated as: gross + discount`}),gross:Ta$1().min(0).meta({examples:[w$1.Order.price.gross],description:`Total amount before refunds and discounts in cents.
88
- Calculated as: base + booking + shipping`}),base:Ta$1().min(0).meta({examples:[w$1.Order.price.base],description:`Total ticket price in cents`}),booking:Ta$1().min(0).meta({examples:[w$1.Order.price.booking],description:`Total booking fees in cents (non-refundable)`}),shipping:Ta$1().min(0).meta({examples:[w$1.Order.price.shipping],description:`Total shipping amount in cents`}),sms:Ta$1().min(0).default(0).meta({examples:[w$1.Order.price.sms],description:`SMS delivery fee in cents (customer-facing price in event currency)`}),refunded:Ta$1().max(0).meta({examples:[w$1.Order.price.refunded],description:`Total amount refunded in cents (negative value)`}),discount:Ta$1().max(0).meta({examples:[w$1.Order.price.discount],description:`Total amount discounted in cents (negative value)`}),gateway:Ta$1().max(0).meta({examples:[w$1.Order.price.gateway],description:`Total absorbed payment gateway fees in cents (negative value)`}),dispute:Ta$1().max(0).meta({examples:[w$1.Order.price.dispute],description:`Total non-absorbed payment gateway fees in cents (negative value)`}),currency:D$1.meta({examples:[w$1.Order.price.currency],description:`Currency code in ISO 4217 format`})}),hc=no$1([`PENDING`,`PROCESSING`,`SUCCEEDED`,`FAILED`]),_c=no$1([`CUSTOMER_REQUEST`,`DUPLICATE`,`EVENT_CANCELLED`,`OTHER`]),yc=no$1([`USER`,`GATEWAY`,`SYSTEM`]),xc=Ga$1({orderItemId:ta$1().meta({examples:[w$1.OrderRefundItem.orderItemId],description:`Identifier of the order item being refunded`}),quantity:Ta$1().min(1).meta({examples:[w$1.OrderRefundItem.quantity],description:`Number of units refunded for this item`}),amount:Ta$1().min(0).meta({examples:[w$1.OrderRefundItem.amount],description:`Refund amount for this item in cents (base price only, excludes booking fee)`}),ticketIds:Ua$1(ta$1()).meta({examples:[w$1.OrderRefundItem.ticketIds],description:`Specific ticket identifiers that were refunded (selected via FIFO)`})}),Sc=Ga$1({idempotencyKey:ta$1().optional().meta({examples:[w$1.OrderRefund.request.idempotencyKey],description:`Client-provided key to prevent duplicate refund processing`})}),Cc=Ga$1({currency:ta$1().meta({examples:[`AUD`],description:`Currency used for all refund amounts`}),total:Ta$1().min(1).meta({examples:[w$1.OrderRefund.price.total],description:`Total refund amount in cents, including ticket, shipping, and fee portions.`}),items:Ta$1().min(0).meta({examples:[w$1.OrderRefund.price.items],description:`Ticket item portion of the refund in cents`}),shipping:Ta$1().min(0).meta({examples:[w$1.OrderRefund.price.shipping],description:`Shipping portion of the refund in cents`}),fees:Ta$1().min(0).meta({examples:[w$1.OrderRefund.price.fees],description:`Fee portion of the refund in cents`})}),wc=Ga$1({cancelRequested:Da$1().meta({examples:[w$1.OrderRefund.tickets.cancelRequested],description:`Whether ticket cancellation was requested for the refund`}),cancelled:Da$1().meta({examples:[w$1.OrderRefund.tickets.cancelled],description:`Whether tickets were cancelled as part of this refund`}),cancelledCount:Ta$1().min(0).meta({examples:[w$1.OrderRefund.tickets.cancelledCount],description:`Number of tickets that were cancelled`})}),Tc=Ga$1({provider:sc.meta({examples:[`STRIPE`,`AIRWALLEX`],description:`Payment gateway used to process the refund`}),refundId:ta$1().optional().meta({examples:[w$1.OrderRefund.gateway.refundId],description:`Refund identifier from the payment gateway`}),idempotencyKey:ta$1().optional().meta({examples:[w$1.OrderRefund.gateway.idempotencyKey],description:`Idempotency key sent to the payment gateway`})}),Ec=Ga$1({type:yc.meta({examples:[`USER`,`GATEWAY`],description:`Who initiated the refund`}),userId:ta$1().optional().meta({examples:[w$1.OrderRefund.actor.userId],description:`Identifier of the user who initiated the refund`})}),Dc=Ga$1({requested:Da$1().meta({examples:[w$1.OrderRefund.notification.requested],description:`Whether a customer refund confirmation email was requested.`}),sentAt:Ni$1().optional().meta({examples:[w$1.OrderRefund.notification.sentAt],description:`Timestamp when the refund confirmation email was sent.`})}),Oc=Ga$1({reason:ta$1().meta({examples:[`Insufficient funds for refund`],description:`Gateway or system failure reason`}),message:ta$1().optional().meta({examples:[`The refund could not be processed.`],description:`User-facing failure message when available`})}),kc=Ga$1({id:ta$1().meta({examples:[w$1.OrderRefund.id],description:`Unique identifier for this refund`}),request:Sc.optional().meta({description:`Request metadata supplied by Sessions or API callers`}),status:hc.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.`}),acceptedAt:Ni$1().optional().meta({examples:[w$1.OrderRefund.acceptedAt],description:`Timestamp when the payment gateway accepted the refund`}),failedAt:Ni$1().optional().meta({examples:[w$1.OrderRefund.failedAt],description:`Timestamp when the refund failed`}),failure:Oc.optional().meta({description:`Failure details when the refund failed`}),price:Cc.meta({description:`Refund amount breakdown`}),reason:_c.meta({examples:[`CUSTOMER_REQUEST`,`DUPLICATE`,`EVENT_CANCELLED`],description:`Categorized reason for the refund used for analytics`}),note:ta$1().optional().meta({examples:[w$1.OrderRefund.note],description:`Free-form notes explaining the refund`}),items:Ua$1(xc).meta({description:`Line items included in this refund with quantities and amounts`}),tickets:wc.meta({description:`Ticket cancellation state for the refund`}),gateway:Tc.meta({description:`Gateway refund identifiers`}),actor:Ec.meta({description:`Refund initiator`}),metadata:eo$1(ta$1(),ta$1()).optional().meta({examples:[{supportTicket:`#12345`}],description:`Custom key-value pairs passed through to the payment gateway`}),notification:Dc.meta({description:`Refund confirmation notification state`}),createdAt:Ni$1().meta({examples:[w$1.OrderRefund.createdAt],description:`Timestamp when the refund was created`})}),Ac=mc.extend({exchangeRate:Ca$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 jc(t,n,a={}){return Ga$1({id:ta$1().meta({examples:n.idExamples,description:n.idDescription}),createdAt:Ni$1().readonly().meta({examples:n.createdAtExamples,description:`Timestamp in ISO 8601 format when this timeline entry was created`}),...a,kind:t.meta({examples:n.kindExamples,description:n.kindDescription}),editable:Da$1().meta({examples:[false],description:`Whether this timeline entry can be edited by users`}),pinned:Da$1().meta({examples:[false],description:`Whether this timeline entry is pinned to the top of the timeline`}),description:ta$1().meta({examples:n.descriptionExamples,description:`Human-readable description of what happened in this timeline event`}),author:ta$1().meta({examples:[`System`],description:`Name of the user or system that created this timeline entry`}),userId:ta$1().optional().meta({examples:[w$1.User.id],description:n.userIdDescription??`Identifier of the user who created this timeline entry, when available`}),externalId:ta$1().optional().meta({examples:n.externalIdExamples,description:n.externalIdDescription})})}const Mc=no$1(`ORDER_STATUS_UPDATED.ORDER_EXPIRED.ORDER_COMPLETED.PAYMENT_INITIATED.PAYMENT_PROCESSING.PAYMENT_FAILED.PAYMENT_SUCCEEDED.REFUND_INITIATED.REFUND_PROCESSING.REFUND_SUCCEEDED.REFUND_SETTLED.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(`.`)),Nc=jc(Mc,{createdAtExamples:[w$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:[w$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:ta$1().optional().meta({examples:[`SUCCESSFUL`],description:`Order status associated with this timeline entry, when applicable.`})}),Pc=no$1([`PENDING`,`PROCESSING`,`SUCCESSFUL`,`DISPUTED`,`ABANDONED`]),Ic=Ga$1({id:un$1.readonly().meta({examples:[w$1.Order.id],description:`A unique identifier for this order.`}),createdAt:Ni$1().readonly().meta({examples:[w$1.Order.createdAt],description:`Timestamp in ISO 8601 format when this order was created.`}),updatedAt:Ni$1().readonly().meta({examples:[w$1.Order.updatedAt],description:`Timestamp in ISO 8601 format when this order was last updated.`}),status:Pc.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:pc.optional().meta({description:`Payment gateway details including method, card brand, and transaction identifiers. Absent for free orders.`}),items:Ua$1(nc).meta({description:`Line items in this order, each with a ticket type, quantity, and price breakdown.`}),fees:Ua$1(Qs).meta({description:`Gateway fees recorded against this order from settlement processing (e.g. payment processing fees, dispute fees).`}),price:mc.meta({description:`Price breakdown in the event currency. This reflects what the customer was charged.`}),settlement:Ac.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:Js.optional().meta({description:`Coupon code applied to this order for discount calculation.`}),customer:Ys.optional().meta({description:`Customer who placed this order. Absent for guest checkouts before customer details are captured.`}),marketingConsent:rc.optional().meta({description:`Marketing opt-in choices captured during checkout.`}),timeline:Ua$1(Nc).optional().meta({description:`Chronological audit trail of events for this order (payments, refunds, emails, scans).`}),refunds:Ua$1(kc).default([]).meta({description:`Refunds processed for this order including pending, succeeded, and failed attempts.`}),offers:Ua$1(oc).default([]).meta({description:`Pre-computed add-on offers available during checkout (e.g. SMS ticket delivery).`}),customerId:mn.optional().meta({examples:[w$1.Customer.id],description:`Identifier of the customer who placed this order.`}),createdBy:Ys.optional().meta({description:`Admin user who created this order on behalf of the customer.`}),teamId:k$1.meta({description:`Team that owns this order.`}),promoterId:M$1.meta({examples:[w$1.Promoter.id],description:`Promoter managing this order.`}),event:Xs.meta({description:`Snapshot of the event at time of purchase (name, slug, location).`}),payoutIds:Ua$1(_n.meta({examples:[`pay_01HQXYZ`],description:`Payout identifier.`})).meta({description:`Payout identifiers for settlements that included this order.`}),eventId:A$1.meta({examples:[w$1.Event.id],description:`Identifier of the event this order belongs to.`}),checkoutUrl:ta$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:ta$1().optional().meta({examples:[`https://example.com/event/success`],description:`URL to redirect to after successful payment completion.`}),channel:qs.optional().meta({description:`Channel metadata captured at order creation to identify origin and redirect context.`}),reservedAt:Ni$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.`}),Lc=Ga$1({id:ta$1().meta({examples:[w$1.Order.id],description:`Unique identifier of the order to add a note to`}),note:ta$1().min(1).max(1e3).meta({examples:[`Customer requested special seating arrangements`],description:`Note text content (1-1000 characters)`})}),Rc=nc.omit({id:true,price:true,kind:true}).extend({id:ta$1().optional().meta({examples:[`itm_01jps5cgsfwyxj0516571eaf17`],description:`Unique identifier for this order item. When omitted, the server assigns an id during processing`})}),zc=Ga$1({eventId:ta$1().meta({description:`Unique identifier of the event for which to create a complimentary order`}),items:Ua$1(Rc).min(1).meta({description:`Admission items to include in the complimentary order`}),customer:Ga$1({firstName:ta$1().min(1),lastName:ta$1().min(1),email:ra()}),notifyCustomer:Da$1().default(true).meta({description:`Whether to send the standard order confirmation email after tickets are generated`}),reason:ta$1().min(1),idempotencyKey:ta$1().trim().min(1).max(255).optional()}),Bc=Ga$1({postHogDistinctId:ta$1().min(1).max(256).optional()}),Vc=Ga$1({eventId:ta$1().meta({examples:[`evt_01jps5cgsenjrazw6wswmyspa3`],description:`Unique identifier of the event for which to create the order`}),items:Ua$1(Rc).meta({description:`List of items to include in the new order`}),couponCode:ta$1().optional().meta({examples:[`TEST50`],description:`Optional coupon code to apply discount to the order`}),returnUrl:ta$1().optional().meta({examples:[`https://example.com/event/success`],description:`Optional URL to redirect to after successful payment`}),channel:qs.optional().meta({description:`Optional channel metadata for where the order originated (for attribution and redirect routing).`}),analytics:Bc.optional().meta({description:`Optional browser analytics metadata used for cross-domain checkout attribution.`}),idempotencyKey:ta$1().trim().min(1).max(255).optional().meta({description:`Optional key that makes repeated order creation requests return the same order.`})}),Hc=Ga$1({id:ta$1().meta({examples:[w$1.Order.id],description:`Unique identifier of the order`}),noteId:ta$1().meta({examples:[`tl_1234567890_abc123`],description:`Unique identifier of the timeline note to delete`})}),Uc=no$1([`EMAIL`,`SMS`]).meta({examples:[`EMAIL`],description:`Method used to deliver tickets to the customer: EMAIL or SMS`});Ga$1({id:ta$1().meta({examples:[w$1.Order.id],description:`Unique identifier of the order to edit`}),signature:vr.meta({description:`HMAC signature for customer access during checkout (16 characters, base64url encoded). Required for editing order items.`}),items:Ua$1(Rc).min(1).meta({description:`Updated list of items for the order (replaces existing items). Prices will be recalculated and payment intent updated.`})});const Gc=no$1([`STATUS`,`DELIVERY_METHOD`,`CUSTOMER_EMAIL`,`CUSTOMER_PHONE`,`COUPON_CODE`,`PAYMENT_SOURCE`,`PAYMENT_METHOD`,`CURRENCY`,`CREATED_AT`,`UPDATED_AT`,`RESERVED_AT`,`TOTAL`,`TICKETS`,`ORDER_ID`,`CUSTOMER_ID`,`EVENT_ID`,`PROMOTER_ID`,`PAYOUT_ID`]),Kc=no$1([`IS`,`IS_NOT`,`IS_ANY_OF`,`CONTAINS`,`IS_EMPTY`,`IS_NOT_EMPTY`,`BETWEEN`,`GTE`,`LTE`]),qc=new Set([`IS_EMPTY`,`IS_NOT_EMPTY`]),Jc=new Set([`IS_ANY_OF`]),Yc=new Set([`IS`,`IS_NOT`,`CONTAINS`,`GTE`,`LTE`]),Xc=new Set([`BETWEEN`]),Zc={STATUS:new Set([`IS`,`IS_NOT`,`IS_ANY_OF`]),DELIVERY_METHOD:new Set([`IS`,`IS_NOT`,`IS_ANY_OF`]),CUSTOMER_EMAIL:new Set([`IS`,`IS_NOT`,`CONTAINS`,`IS_EMPTY`,`IS_NOT_EMPTY`]),CUSTOMER_PHONE:new Set([`IS`,`IS_NOT`,`CONTAINS`,`IS_EMPTY`,`IS_NOT_EMPTY`]),COUPON_CODE:new Set([`IS`,`IS_NOT`,`CONTAINS`,`IS_EMPTY`,`IS_NOT_EMPTY`]),PAYMENT_SOURCE:new Set([`IS`,`IS_NOT`,`IS_ANY_OF`,`IS_EMPTY`]),PAYMENT_METHOD:new Set([`IS`,`IS_NOT`,`IS_ANY_OF`,`IS_EMPTY`]),CURRENCY:new Set([`IS`,`IS_NOT`,`IS_ANY_OF`]),CREATED_AT:new Set([`BETWEEN`,`GTE`,`LTE`]),UPDATED_AT:new Set([`BETWEEN`,`GTE`,`LTE`]),RESERVED_AT:new Set([`BETWEEN`,`GTE`,`LTE`,`IS_EMPTY`,`IS_NOT_EMPTY`]),TOTAL:new Set([`BETWEEN`,`GTE`,`LTE`]),TICKETS:new Set([`BETWEEN`,`GTE`,`LTE`]),ORDER_ID:new Set([`IS`,`IS_NOT`,`CONTAINS`]),CUSTOMER_ID:new Set([`IS`,`IS_NOT`,`IS_EMPTY`,`IS_NOT_EMPTY`]),EVENT_ID:new Set([`IS`,`IS_NOT`]),PROMOTER_ID:new Set([`IS`,`IS_NOT`]),PAYOUT_ID:new Set([`IS`,`IS_NOT`,`IS_ANY_OF`,`IS_EMPTY`])},Qc={STATUS:Pc,DELIVERY_METHOD:Uc,PAYMENT_SOURCE:dc,PAYMENT_METHOD:sc},$c=new Set([`CREATED_AT`,`UPDATED_AT`,`RESERVED_AT`]),el=new Set([`TOTAL`,`TICKETS`]),tl=Ga$1({field:Gc,operator:Kc,values:Ua$1(ta$1()).max(20)}).superRefine((e,t)=>{Zc[e.field].has(e.operator)||t.addIssue({code:`custom`,path:[`operator`],message:`${e.operator} is not supported for ${e.field}`}),nl(e,t),rl(e,t),il(e,t),al(e,t);});function nl(e,t){let n=e.values.length;qc.has(e.operator)&&n!==0&&t.addIssue({code:`custom`,path:[`values`],message:`${e.operator} does not accept values`}),Yc.has(e.operator)&&n!==1&&t.addIssue({code:`custom`,path:[`values`],message:`${e.operator} requires exactly one value`}),Jc.has(e.operator)&&n<1&&t.addIssue({code:`custom`,path:[`values`],message:`${e.operator} requires at least one value`}),Xc.has(e.operator)&&n!==2&&t.addIssue({code:`custom`,path:[`values`],message:`${e.operator} requires exactly two values`});}function rl(e,t){let n=Qc[e.field];n&&e.values.forEach((r,i)=>{n.safeParse(r).success||t.addIssue({code:`custom`,path:[`values`,i],message:`${r} is not valid for ${e.field}`});});}function il(e,t){$c.has(e.field)&&e.values.forEach((e,n)=>{Number.isNaN(Date.parse(e))&&t.addIssue({code:`custom`,path:[`values`,n],message:`${e} is not a valid date`});});}function al(e,t){el.has(e.field)&&e.values.forEach((e,n)=>{/^-?\d+$/.test(e)||t.addIssue({code:`custom`,path:[`values`,n],message:`${e} is not a valid integer`});});}const ol=Ga$1({id:ta$1().meta({examples:[w$1.Order.id],description:`Unique identifier of the order to retrieve`}),signature:vr.optional().meta({description:`HMAC signature for public order access (16 characters, base64url encoded)`})}),sl=`Either locationId or googlePlaceId must be provided`,cl={locationId:j$1.optional().meta({examples:[`loc_01jqpjksnsen9vprw95et60t2m`],description:`ID of an existing location. Either locationId or googlePlaceId must be provided.`}),googlePlaceId:ta$1().optional().meta({examples:[`ChIJN1t_tDeuEmsRUsoyG83frY4`],description:`Google Place ID to create a new location from. Either locationId or googlePlaceId must be provided.`})};function ll(e){return !!(e.locationId||e.googlePlaceId)}const ul=q$1.omit({id:true,createdAt:true,updatedAt:true,order:true,available:true,sold:true,reserved:true,visibility:true,promoterId:true,eventSlug:true,location:true}).extend({order:Ca$1().optional().meta({examples:[w$1.Section.order],description:`Display order of the section. Lower numbers appear first in listings. Defaults to 0 if not specified`}),visibility:q$1.shape.visibility.optional(),...cl}).refine(ll,{message:sl}).meta({description:`Schema for creating a new section within an event venue. Excludes system-generated fields and fields derived from the event`}),dl=q$1.pick({id:true}).extend({eventId:ta$1().meta({examples:[w$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`}),fl=q$1.pick({id:true}).extend({eventId:ta$1().meta({examples:[w$1.Section.eventId],description:`Unique identifier of the event to verify section belongs to`})}).meta({description:`Schema for retrieving a specific section by ID`}),pl=Ka({eventId:q$1.shape.eventId,query:ta$1().max(120).optional().meta({examples:[`VIP`],description:`Optional search query. When provided, automatically uses search-backed pagination for full-text search capabilities`}),limit:T$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:ta$1().max(768).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`}),ml=B$1(q$1,`sections`),hl=Ga$1({section:q$1}),gl=q$1.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}).extend({id:ta$1().meta({examples:[w$1.Section.id],description:`Unique identifier of the section to update`}),eventId:ta$1().meta({examples:[w$1.Section.eventId],description:`Unique identifier of the event to verify section belongs to`}),name:q$1.shape.name.optional(),capacity:wn().optional(),limit:Tn().optional(),order:q$1.shape.order.optional(),visibility:no$1([`ALWAYS`,`STACKED`,`HIDDEN`]).optional(),locationId:j$1.optional().meta({examples:[`loc_01jqpjksnsen9vprw95et60t2m`],description:`ID of an existing location to update to. Either locationId or googlePlaceId can be provided.`}),googlePlaceId:ta$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.`}),_l=nc.extend({admission:z$1.optional().meta({description:`Complete admission details for this order item when available`}),section:q$1.optional().meta({description:`Complete section details for this order item when applicable`})}),vl=no$1([`UPDATED_AT`,`CREATED_AT`,`EVENT_NAME`,`TOTAL`,`STATUS`,`CUSTOMER_NAME`,`PAYMENT_SOURCE`,`COUPON_CODE`,`TICKETS`,`DELIVERY_METHOD`,`CUSTOMER_EMAIL`,`CUSTOMER_PHONE`,`ORDER_ID`]),yl=no$1([`asc`,`desc`]),bl=Ga$1({mine:Da$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:ta$1().optional().meta({description:`Filter orders by team unique identifier`}),eventId:ta$1().optional().meta({examples:[`evt_01jps5cgsenjrazw6wswmyspa3`],description:`Filter orders by event unique identifier`}),status:Pc.optional().meta({examples:[`SUCCESSFUL`],description:`Filter orders by payment status`}),query:ta$1().optional().meta({examples:[`John Doe`],description:`Optional search query to filter orders by customer details. When provided, search-backed pagination is used.`}),includeEventTerms:Da$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.`}),filters:Ua$1(tl).max(10).optional().meta({description:`Optional advanced filters for order lists.`}),sort:vl.optional().meta({examples:[`UPDATED_AT`,`CREATED_AT`,`CUSTOMER_NAME`],description:`Field to sort order lists by.`}),direction:yl.optional().meta({examples:[`asc`,`desc`],description:"Sort direction for order lists. Defaults to `desc` when omitted."}),from:ta$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:ta$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:L$1(`orders`),cursor:ta$1().optional().meta({examples:[`eyJpZCI6Im9yZF8wMWpwczVjZ3NmZ3ZlNWI1ZzI2NjZreXJ5aCJ9`],description:`Pagination cursor for continuing to fetch subsequent results`})}),xl=B$1(Ic,`orders`),Sl=Ga$1({items:Ua$1(_l).meta({description:`List of order items with complete pricing and admission details`}),price:mc.meta({description:`Total pricing breakdown for the entire order quote`}),couponCode:G$1.optional().meta({description:`Applied coupon code details if a discount was used in this quote`}),stripeConnectAvailability:Ko.optional().meta({description:`Stripe Connect availability metadata for tenant checkout UI.`})}),Cl=Ga$1({eventId:ta$1().meta({examples:[`evt_01jps5cgsenjrazw6wswmyspa3`],description:`Unique identifier of the event for which to generate a price quote`}),items:Ua$1(Rc).meta({description:`List of items to include in the price quote calculation`}),couponCode:ta$1().optional().meta({examples:[`TEST50`],description:`Optional coupon code to apply discount to the quote`})}),wl=Ga$1({quote:Sl}),Tl=Ga$1({orderItemId:ta$1().meta({examples:[w$1.OrderRefundItem.orderItemId],description:`Identifier of the order item to refund`}),quantity:Ta$1().min(1).meta({examples:[w$1.OrderRefundItem.quantity],description:`Number of units to refund for this item`})}),El=Ga$1({id:un$1.meta({examples:[w$1.Order.id],description:`Identifier of the order to refund`}),fullRefund:Da$1().default(false).meta({examples:[false],description:`When true, refunds all remaining refundable items. Mutually exclusive with items.`}),items:Ua$1(Tl).optional().meta({description:`Specific items and quantities to refund. Required if fullRefund is false.`}),shippingAmount:Ta$1().min(0).optional().meta({examples:[500],description:`Amount of shipping to refund in cents. Cannot exceed remaining refundable shipping.`}),cancelTickets:Da$1().default(true).meta({examples:[true],description:`Whether to cancel tickets associated with refunded items. Defaults to true.`}),notify:Da$1().default(true).meta({examples:[true],description:`Whether to send a refund confirmation email to the customer. Defaults to true.`}),reason:_c.meta({examples:[`CUSTOMER_REQUEST`,`DUPLICATE`,`EVENT_CANCELLED`],description:`Categorized reason for the refund`}),note:ta$1().optional().meta({examples:[`Customer requested refund due to schedule conflict`],description:`Free-form notes explaining the refund`}),idempotencyKey:ta$1().optional().meta({examples:[`refund_12345_customer_request`],description:`Client-provided key to prevent duplicate refund processing. Recommended for programmatic refunds.`}),metadata:eo$1(ta$1(),ta$1()).optional().meta({examples:[{supportTicket:`#12345`}],description:`Custom key-value pairs passed through to the payment gateway`})}),Dl=Ga$1({refund:kc}),Ol=Ga$1({id:ta$1().meta({examples:[w$1.Order.id],description:`Order ID to resend tickets for`}),email:ta$1().email().optional().meta({examples:[`customer@example.com`],description:`Email address to send tickets to. If not provided, uses order.customer.email`})}),kl=Ga$1({id:ta$1().meta({examples:[w$1.Order.id],description:`Unique identifier of the order to reserve inventory for`}),signature:vr.meta({description:`HMAC signature for customer access during checkout (16 characters, base64url encoded).`})}),Al=`ORDER_NOT_RESERVABLE`,jl=Ga$1({code:io$1(Al)}),Ml=Ga$1({order:Ic});var Nl={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`,`[024-7]\\d{7}`,[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`,`7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}`,[9],0,`0`,0,0,0,0,0,[[`(?:59(?:0(?:2[7-9]|3[3-7]|5[12]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}`],[`(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}`],[`80[0-5]\\d{6}`],[`8[129]\\d{7}`],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)?`,`(?:[2-7]\\d\\d|8001)\\d{5}`,[8,9],[[`(\\d)(\\d{7})`,`$1 $2`,[`[23]|4[46]|50`]],[`(\\d{8})`,`$1`,[`[5-7]`]],[`(\\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`,`8776\\d{4}|(?:[27]\\d|61)\\d{6}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[26-8]`]]]],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-57-9]\\d)\\d{7}`,[9],[[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[1-57-9]`],`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`,`(?:694\\d|7093)\\d{5}|(?:59|[89]\\d)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[5-7]|80[6-9]|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{8}|800\\d{5,6}`,[8,9],[[`(\\d{3})(\\d{5})`,`$1 $2`,[`8`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[2358]`],`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`,`7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[5-79]|80[6-9]`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`8`],`0$1`]],`0`,0,0,0,0,0,[[`(?:59(?:0(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)|87\\d)|80[6-9]\\d\\d)\\d{4}`],[`(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}`],[`80[0-5]\\d{6}`],[`8[129]\\d{7}`],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]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67)[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(?:(?: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)|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(?:3171|5[15][2-6]|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|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]|3[129]|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(?:[23569]|8[0-57-9])|8[1-6])|7(?:1(?:[013-8]|9[6-9])|3(?:17|2[0-49]|9[2-57])|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])\\d|7(?:[23569]\\d|8[0-57-9])|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|3(?:2[0-49]|9[2-57])|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`,`8\\d{13}|[78]\\d{9}`,[10,14],0,`8`,0,0,0,0,`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`,[`20`]],[`(\\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]`]],[`(\\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`,[`20`]]],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`,`7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}`,[9],0,`0`,0,0,0,0,0,[[`(?:59(?:0(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}`],[`(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}`],[`80[0-5]\\d{6}`],[`8[129]\\d{7}`],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`,[`11|2[16]`],`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`,`7091\\d{5}|(?:[56]9|[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`,[`30|(?: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`,`30|(?: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`,`[78]\\d{8}|[2-9]\\d{5}`,[6,9],[[`(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`[2-9]`],`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,[[`2631[0-6]\\d{4}|26(?:2\\d|30|88)\\d{5}`],[`(?: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,`[3489]`,0,`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{2})(\\d{5,7})`,`$1 $2`,[`1|28|9[2-9]`]],[`(\\d)(\\d{7})`,`$1 $2`,[`[267]|904`]],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[346-9]`]]],`0`],SR:[`597`,`00`,`(?:[2-5]|[6-9]\\d)\\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|[3689]\\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-79]`],`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{3})(\\d{5})`,`$1 $2`,[`826`],`0$1`],[`(\\d{3})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`83`],`0$1`],[`(\\d{2})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`82`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[25]0|37|49|8[09]`],`0$1`],[`(\\d)(\\d{3,4})(\\d{4})`,`$1 $2 $3`,[`[23568]|4(?:0[02-48]|[1-478])|7[1-9]`,`[23568]|4(?:0[2-48]|[1-478])|(?: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-2478]|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(?:2[02]|[89])`],0,1],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`1[26]|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`,`(?:639\\d|7093)\\d{5}|(?:26|80|9\\d)\\d{7}`,[9],0,`0`,0,0,0,0,0,[[`26(?:89\\d|9(?: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|5[12]`]],[`(\\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})|5(?:0\\d{3}|2[0-2]))\\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 Pl(e,t){var n=Array.prototype.slice.call(t);return n.push(Nl),e.apply(this,n)}var Fl={}.constructor;function Il(e){return e!=null&&e.constructor===Fl}function Ll(e){"@babel/helpers - typeof";return Ll=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},Ll(e)}function Rl(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 zl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Rl(Object(n),true).forEach(function(t){Bl(e,t,n[t]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t));});}return e}function Bl(e,t,n){return (t=Vl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true}):e[t]=n,e}function Vl(e){var t=Hl(e,`string`);return Ll(t)==`symbol`?t:t+``}function Hl(e,t){if(Ll(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ll(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return (t===`string`?String:Number)(e)}function Ul(e,t){return Jl(e)||ql(e,t)||Gl(e,t)||Wl()}function Wl(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
89
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gl(e,t){if(e){if(typeof e==`string`)return Kl(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)?Kl(e,t):void 0}}function Kl(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 ql(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 Jl(e){if(Array.isArray(e))return e}function Yl(e){var t=Ul(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=zl({defaultCountry:r},s));else if(Il(r))i?(s=r,c=i):c=r;else throw Error(`Invalid second argument: ${r}`);return {text:o,options:s,metadata:c}}var J$1=`0-90-9٠-٩۰-۹`,Xl=`-‐-―−ー-//.. \xA0­​⁠ ()()[]\\[\\]~⁓∼~`,Zl=`++`;function Ql(e){"@babel/helpers - typeof";return Ql=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},Ql(e)}function eu(e,t,n){return Object.defineProperty(e,"prototype",{writable:false}),e}function ru(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function iu(e,t,n){return t=pu(t),au(e,uu()?Reflect.construct(t,n||[],pu(e).constructor):t.apply(e,n))}function au(e,t){if(t&&(Ql(t)==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return ou(e)}function ou(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function su(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&&fu(e,t);}function cu(e){var t=typeof Map==`function`?new Map:void 0;return cu=function(e){if(e===null||!du(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 lu(e,arguments,pu(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:false,writable:true,configurable:true}}),fu(n,e)},cu(e)}function lu(e,t,n){if(uu())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&fu(i,n.prototype),i}function uu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch{}return (uu=function(){return !!e})()}function du(e){try{return Function.toString.call(e).indexOf(`[native code]`)!==-1}catch{return typeof e==`function`}}function fu(e,t){return fu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fu(e,t)}function pu(e){return pu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},pu(e)}var Y$1=function(e){function t(e){var n;return ru(this,t),n=iu(this,t,[e]),Object.setPrototypeOf(n,t.prototype),n.name=n.constructor.name,n}return su(t,e),eu(t)}(cu(Error));function mu(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 hu=/^\d+$/;function gu(e){return hu.test(e)}function _u(e){"@babel/helpers - typeof";return _u=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},_u(e)}function vu(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function yu(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,xu(r.key),r);}}function bu(e,t,n){return t&&yu(e.prototype,t),Object.defineProperty(e,"prototype",{writable:false}),e}function xu(e){var t=Su(e,`string`);return _u(t)==`symbol`?t:t+``}function Su(e,t){if(_u(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(_u(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return (String)(e)}var Cu=`1.2.0`,wu=`1.7.35`,Tu=` ext. `,X$1=function(){function e(t){vu(this,e),ju(t),this.metadata=t,Fu.call(this,t);}return bu(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){var n,r;if(e&&(gu(e)?r=e:n=e),t&&(r=t),n&&n!==`001`){var i=this.getCountryMetadata(n);if(!i)throw Error(`Unknown country: ${n}`);this.numberingPlan=new Eu(i,this);}else if(r){if(!this.hasCallingCode(r))throw Error(`Unknown calling code: ${r}`);this.numberingPlan=new Eu(this.getNumberingPlanMetadata(r),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}}])}(),Eu=function(){function e(t,n){vu(this,e),this.globalMetadataObject=n,this.metadata=t,Fu.call(this,n.metadata);}return bu(e,[{key:`callingCode`,value:function(){return this.metadata[0]}},{key:`_getDefaultCountryMetadataForThisCallingCode`,value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:`getDefaultCountryMetadataForRegion`,value:function(){return this._getDefaultCountryMetadataForThisCallingCode()}},{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._getDefaultCountryMetadataForThisCallingCode())||[]).map(function(t){return new Du(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._getDefaultCountryMetadataForThisCallingCode())}},{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._getDefaultCountryMetadataForThisCallingCode())}},{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()&&Au(this.types(),e))return new ku(Au(this.types(),e),this)}},{key:`ext`,value:function(){return this.v1||this.v2?Tu:this.metadata[13]||Tu}}])}(),Du=function(){function e(t,n){vu(this,e),this._format=t,this.metadata=n;}return bu(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()&&!Ou.test(this.nationalPrefixFormattingRule()))}},{key:`internationalFormat`,value:function(){return this._format[5]||this.format()}}])}(),Ou=/^\(?\$1\)?$/,ku=function(){function e(t,n){vu(this,e),this.type=t,this.metadata=n;}return bu(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 Au(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 ju(e){if(!e)throw Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!Il(e)||!Il(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 ${Il(e)?`an object of shape: { `+Object.keys(e).join(`, `)+` }`:`a `+Mu(e)+`: `+e}.`)}var Mu=function(e){return _u(e)};function Nu(e,t){var n=new X$1(t);if(n.hasCountry(e))return n.selectNumberingPlan(e).countryCallingCode();throw Error(`Unknown country: ${e}`)}function Pu(e,t){return t.countries.hasOwnProperty(e)}function Fu(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?mu(t,Cu)===-1?this.v2=true:mu(t,wu)===-1?this.v3=true:this.v4=true:this.v1=true;}var Iu=`;ext=`,Lu=function(e){return `([${J$1}]{1,${e}})`};function Ru(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=Iu+Lu(t),m=a+c+o+Lu(t)+s,h=a+l+o+Lu(r)+s,ee=u+Lu(i)+`#`,g=d+f+o+Lu(n)+s,_=d+`(?:,)+`+o+Lu(r)+s;return p+`|`+m+`|`+h+`|`+ee+`|`+g+`|`+_}var zu=`[`+J$1+`]{2}`,Bu=`[`+Zl+`]{0,1}(?:[`+Xl+`]*[`+J$1+`]){3,}[`+Xl+J$1+`]*`,Vu=RegExp(`^[`+Zl+`]{0,1}(?:[`+Xl+`]*[`+J$1+`]){1,2}$`,`i`),Hu=Bu+`(?:`+Ru()+`)?`,Uu=RegExp(`^`+zu+`$|^`+Hu+`$`,`i`);function Wu(e){return e.length>=2&&Uu.test(e)}function Gu(e){return Vu.test(e)}var Ku=RegExp(`(?:`+Ru()+`)$`,`i`);function qu(e){var t=e.search(Ku);if(t<0)return {};for(var n=e.slice(0,t),r=e.match(Ku),i=1;i<r.length;){if(r[i])return {number:n,ext:r[i]};i++;}}var Ju={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 Yu(e){return Ju[e]}function Xu$1(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=Zu$1(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.
90
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zu$1(e,t){if(e){if(typeof e==`string`)return Qu$1(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)?Qu$1(e,t):void 0}}function Qu$1(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$1(e){for(var t=``,n=Xu$1(e.split(``)),r;!(r=n()).done;){var i=r.value;t+=ed$1(i,t)||``;}return t}function ed$1(e,t,n){if(e===`+`){if(t){return}return `+`}return Yu(e)}function ad$1(e,t,n){return od$1(e,void 0,t,n)}function od$1(e,t,n,r){n&&(r=new X$1(r.metadata),r.selectNumberingPlan(n));var i=r.type(t),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 sd$1(e,t,n){t===void 0&&(t={});var r=new X$1(n);if(t.v2){if(!e.countryCallingCode)throw Error(`Invalid phone number object passed`);r.selectNumberingPlan(e.country||e.countryCallingCode);}else {if(!e.phone)return false;if(e.country){if(!r.hasCountry(e.country))throw Error(`Unknown country: ${e.country}`);r.selectNumberingPlan(e.country);}else {if(!e.countryCallingCode)throw Error(`Invalid phone number object passed`);r.selectNumberingPlan(e.countryCallingCode);}}if(r.possibleLengths())return cd$1(e.phone||e.nationalNumber,r);if(e.countryCallingCode&&r.isNonGeographicCallingCode(e.countryCallingCode))return true;throw Error(`Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.`)}function cd$1(e,t){switch(ad$1(e,void 0,t)){case `IS_POSSIBLE`:return true;default:return false}}function Z(e,t){return e||=``,RegExp(`^(?:`+t+`)$`).test(e)}function ld$1(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=ud$1(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.
91
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ud$1(e,t){if(e){if(typeof e==`string`)return dd$1(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)?dd$1(e,t):void 0}}function dd$1(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 fd$1=[`MOBILE`,`PREMIUM_RATE`,`TOLL_FREE`,`SHARED_COST`,`VOIP`,`PERSONAL_NUMBER`,`PAGER`,`UAN`,`VOICEMAIL`];function pd$1(e,t,n){if(t||={},!(!e.country&&!e.countryCallingCode)){var r=new X$1(n);r.selectNumberingPlan(e.country||e.countryCallingCode);var i=t.v2?e.nationalNumber:e.phone;if(Z(i,r.nationalNumberPattern())){if(md$1(i,`FIXED_LINE`,r))return r.type(`MOBILE`)&&r.type(`MOBILE`).pattern()===``||!r.type(`MOBILE`)||md$1(i,`MOBILE`,r)?`FIXED_LINE_OR_MOBILE`:`FIXED_LINE`;for(var a=ld$1(fd$1),o;!(o=a()).done;){var s=o.value;if(md$1(i,s,r))return s}}}}function md$1(e,t,n){var r=n.type(t);return !r||!r.pattern()||r.possibleLengths()&&r.possibleLengths().indexOf(e.length)<0?false:Z(e,r.pattern())}function hd$1(e,t,n){t||={};var r=new X$1(n);return r.selectNumberingPlan(e.country||e.countryCallingCode),r.hasTypes()?pd$1(e,t,r.metadata)!==void 0:Z(t.v2?e.nationalNumber:e.phone,r.nationalNumberPattern())}var gd$1=/^[A-Z]{2}$/;function _d$1(e){return gd$1.test(e)}var vd$1=false;function yd$1(e,t){var n,r,i=new X$1(t);return _d$1(e)?(n=e,i.selectNumberingPlan(n),r=i.countryCallingCode()):(r=e,vd$1),{country:n,callingCode:r}}function bd$1(e,t,n){var r=new X$1(n).getCountryCodesForCallingCode(e);return r?r.filter(function(e){return xd$1(t,e,n)}):[]}function xd$1(e,t,n){var r=new X$1(n);return r.selectNumberingPlan(t),r.numberingPlan.possibleLengths().indexOf(e.length)>=0}var Sd=RegExp(`([`+J$1+`])`);function Cd(e,t,n,r){if(t){var i=new X$1(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(Sd);if(!(o&&o[1]!=null&&o[1].length>0&&o[1]===`0`))return e}}}function wd(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 Td(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=Ed(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.
92
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ed(e,t){if(e){if(typeof e==`string`)return Dd$1(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)?Dd$1(e,t):void 0}}function Dd$1(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 Od$1(e,t,n){for(var r=new X$1(n),i=Td(t),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(pd$1({phone:e,country:o},void 0,r.metadata))return o}}function Ad$1(e,t){var n=t.nationalNumber,r=t.metadata;var i=r.getCountryCodesForCallingCode(e);if(i)return i.length===1?i[0]:Od$1(n,i,r.metadata)}function jd$1(e,t,n){var r=wd(e,n),i=r.carrierCode,a=r.nationalNumber;return a!==e&&(!Md$1(e,a,n)||n.numberingPlan.possibleLengths()&&(t||=Ad$1(n.numberingPlan.callingCode(),{nationalNumber:a,metadata:n}),!Nd$1(a,t,n)))?{nationalNumber:e}:{nationalNumber:a,carrierCode:i}}function Md$1(e,t,n){return !(Z(e,n.nationalNumberPattern())&&!Z(t,n.nationalNumberPattern()))}function Nd$1(e,t,n){switch(ad$1(e,t,n)){case `TOO_SHORT`:case `INVALID_LENGTH`:return false;default:return true}}function Pd$1(e,t,n,r,i){if(!(n||r))return {number:e};var a=n?Nu(n,i):r;if(e.indexOf(a)===0){var o=new X$1(i);o.selectNumberingPlan(n||r);var s=e.slice(a.length),c=jd$1(s,void 0,o).nationalNumber,l=jd$1(e,void 0,o).nationalNumber;if(!Z(l,o.nationalNumberPattern())&&Z(c,o.nationalNumberPattern())||ad$1(l,void 0,o)===`TOO_LONG`)return {countryCallingCode:a,number:s}}return {number:e}}function Fd$1(e,t,n,r,i){if(!e)return {};var a;if(e[0]!==`+`){var o=Cd(e,n,r,i);if(o&&o!==e)a=true,e=`+`+o;else {if(n||r){var s=Pd$1(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 {};for(var u=new X$1(i),d=2;d-1<=3&&d<=e.length;){var f=e.slice(1,d);if(u.hasCallingCode(f))return u.selectNumberingPlan(f),{countryCallingCodeSource:a?`FROM_NUMBER_WITH_IDD`:`FROM_NUMBER_WITH_PLUS_SIGN`,countryCallingCode:f,number:e.slice(d)};d++;}return {}}function Id$1(e){return e.replace(RegExp(`[${Xl}]+`,`g`),` `).trim()}var Ld$1=/(\$\d)/;function Rd$1(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(Ld$1,t.nationalPrefixFormattingRule()):t.format());return r?Id$1(a):a}var zd$1=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function Bd$1(e,t,n){var r=new X$1(n);if(r.selectNumberingPlan(e||t),r.defaultIDDPrefix())return r.defaultIDDPrefix();if(zd$1.test(r.IDDPrefix()))return r.IDDPrefix()}function Vd$1(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 Hd$1={formatExtension:function(e,t,n){return `${e}${n.ext()}${t}`}};function Ud$1(e,t,n,r){n=n?Jd$1({},Hd$1,n):Hd$1;var i=new X$1(r);if(e.country&&e.country!==`001`){if(!i.hasCountry(e.country))throw Error(`Unknown country: ${e.country}`);i.selectNumberingPlan(e.country);}else if(e.countryCallingCode)i.selectNumberingPlan(e.countryCallingCode);else return e.phone||``;var a=i.countryCallingCode(),o=n.v2?e.nationalNumber:e.phone,s;switch(t){case `NATIONAL`:return o?(s=Wd$1(o,e.carrierCode,`NATIONAL`,i,n),Kd$1(s,e.ext,i,n.formatExtension)):``;case `INTERNATIONAL`:return o?(s=Wd$1(o,null,`INTERNATIONAL`,i,n),s=`+${a} ${s}`,Kd$1(s,e.ext,i,n.formatExtension)):`+${a}`;case `E.164`:return `+${a}${o}`;case `RFC3966`:return Vd$1({number:`+${a}${o}`,ext:e.ext});case `IDD`:if(!n.fromCountry)return;var c=qd$1(o,e.carrierCode,a,n.fromCountry,i);return c?Kd$1(c,e.ext,i,n.formatExtension):void 0;default:throw Error(`Unknown "format" argument passed to "formatNumber()": "${t}"`)}}function Wd$1(e,t,n,r,i){var a=Gd$1(r.formats(),e);return a?Rd$1(e,a,{useInternationalFormat:n===`INTERNATIONAL`,withNationalPrefix:!(a.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&i&&i.nationalPrefix===false)}):e}function Gd$1(e,t){return Yd$1(e,function(e){if(e.leadingDigitsPatterns().length>0){var n=e.leadingDigitsPatterns()[e.leadingDigitsPatterns().length-1];if(t.search(n)!==0)return false}return Z(t,e.pattern())})}function Kd$1(e,t,n,r){return t?r(e,t,n):e}function qd$1(e,t,n,r,i){if(Nu(r,i.metadata)===n){var a=Wd$1(e,t,`NATIONAL`,i);return n===`1`?n+` `+a:a}var o=Bd$1(r,void 0,i.metadata);if(o)return `${o} ${n} ${Wd$1(e,null,`INTERNATIONAL`,i)}`}function Jd$1(){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 Yd$1(e,t){for(var n=0;n<e.length;){if(t(e[n]))return e[n];n++;}}function Xd$1(e){"@babel/helpers - typeof";return Xd$1=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},Xd$1(e)}function Zd$1(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 Qd$1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Zd$1(Object(n),true).forEach(function(t){$d$1(e,t,n[t]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zd$1(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t));});}return e}function $d$1(e,t,n){return (t=rf$1(t))in e?Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true}):e[t]=n,e}function ef$1(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function tf$1(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,rf$1(r.key),r);}}function nf$1(e,t,n){return t&&tf$1(e.prototype,t),Object.defineProperty(e,"prototype",{writable:false}),e}function rf$1(e){var t=af$1(e,`string`);return Xd$1(t)==`symbol`?t:t+``}function af$1(e,t){if(Xd$1(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Xd$1(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return (String)(e)}var of$1=function(){function e(t,n,r){if(ef$1(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(Il(n)&&Il(n.countries)){r=n;var i=t;if(!sf$1.test(i))throw Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var a=Fd$1(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");ju(r);var s=yd$1(t,r),c=s.country,l=s.callingCode;this.country=c,this.countryCallingCode=l,this.nationalNumber=n,this.number=`+`+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return r};}return nf$1(e,[{key:`setExt`,value:function(e){this.ext=e;}},{key:`getPossibleCountries`,value:function(){return this.country?[this.country]:bd$1(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:`isPossible`,value:function(){return sd$1(this,{v2:true},this.getMetadata())}},{key:`isValid`,value:function(){return hd$1(this,{v2:true},this.getMetadata())}},{key:`isNonGeographic`,value:function(){return new X$1(this.getMetadata()).isNonGeographicCallingCode(this.countryCallingCode)}},{key:`isEqual`,value:function(e){return this.number===e.number&&this.ext===e.ext}},{key:`getType`,value:function(){return pd$1(this,{v2:true},this.getMetadata())}},{key:`format`,value:function(e,t){return Ud$1(this,e,t?Qd$1(Qd$1({},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)}}])}(),sf$1=/^\+\d+$/,cf$1=`([`+J$1+`]|[\\-\\.\\(\\)]?)`,lf$1=`^\\+`+cf$1+`*[`+J$1+`]`+cf$1+`*$`,uf$1=new RegExp(lf$1,`g`),df$1=J$1,ff$1=`[`+df$1+`]+((\\-)*[`+df$1+`])*`,pf$1=`[a-zA-Z]+((\\-)*[`+df$1+`])*`,mf$1=`^(`+ff$1+`\\.)*`+pf$1+`\\.?$`,hf$1=new RegExp(mf$1,`g`),gf$1=`tel:`,_f$1=`;phone-context=`,vf$1=`;isub=`;function yf$1(e){var t=e.indexOf(_f$1);if(t<0)return null;var n=t+_f$1.length;if(n>=e.length)return ``;var r=e.indexOf(`;`,n);return r>=0?e.substring(n,r):e.substring(n)}function bf$1(e){return e===null?true:e.length===0?false:uf$1.test(e)||hf$1.test(e)}function xf$1(e,t){var n=t.extractFormattedPhoneNumber,r=yf$1(e);if(!bf$1(r))throw new Y$1(`NOT_A_NUMBER`);var i;if(r===null)i=n(e)||``;else {i=``,r.charAt(0)===`+`&&(i+=r);var a=e.indexOf(gf$1),o=a>=0?a+gf$1.length:0,s=e.indexOf(_f$1);i+=e.substring(o,s);}var c=i.indexOf(vf$1);if(c>0&&(i=i.substring(0,c)),i!==``)return i}var Sf$1=250,Cf$1=RegExp(`[`+Zl+J$1+`]`),wf$1=RegExp(`[^`+J$1+`#]+$`),Tf$1=false;function Ef$1(e,t,n){t||={};var r=new X$1(n);if(t.defaultCountry&&!r.hasCountry(t.defaultCountry))throw t.v2?new Y$1(`INVALID_COUNTRY`):Error(`Unknown country: ${t.defaultCountry}`);var i=Of$1(e,t.v2,t.extract),a=i.number,o=i.ext,s=i.error;if(!a){if(t.v2)throw s===`TOO_SHORT`?new Y$1(`TOO_SHORT`):new Y$1(`NOT_A_NUMBER`);return {}}var c=Af$1(a,t.defaultCountry,t.defaultCallingCode,r),l=c.country,u=c.nationalNumber,d=c.countryCallingCode,f=c.countryCallingCodeSource,p=c.carrierCode;if(!r.hasSelectedNumberingPlan()){if(t.v2)throw new Y$1(`INVALID_COUNTRY`);return {}}if(!u||u.length<2){if(t.v2)throw new Y$1(`TOO_SHORT`);return {}}if(u.length>17){if(t.v2)throw new Y$1(`TOO_LONG`);return {}}if(t.v2){var m=new of$1(d,u,r.metadata);return l&&(m.country=l),p&&(m.carrierCode=p),o&&(m.ext=o),m.__countryCallingCodeSource=f,m}var h=(t.extended?r.hasSelectedNumberingPlan():l)?Z(u,r.nationalNumberPattern()):false;return t.extended?{country:l,countryCallingCode:d,carrierCode:p,valid:h,possible:h?true:!!(t.extended===true&&r.possibleLengths()&&cd$1(u,r)),phone:u,ext:o}:h?kf$1(l,u,o):{}}function Df$1(e,t,n){if(e){if(e.length>Sf$1){if(n)throw new Y$1(`TOO_LONG`);return}if(t===false)return e;var r=e.search(Cf$1);if(!(r<0))return e.slice(r).replace(wf$1,``)}}function Of$1(e,t,n){var r=xf$1(e,{extractFormattedPhoneNumber:function(e){return Df$1(e,n,t)}});if(!r)return {};if(!Wu(r))return Gu(r)?{error:`TOO_SHORT`}:{};var i=qu(r);return i.ext?i:{number:r}}function kf$1(e,t,n){var r={country:e,phone:t};return n&&(r.ext=n),r}function Af$1(e,t,n,r){var i=Fd$1($u$1(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))t?(c=t,r.selectNumberingPlan(t),o=r.numberingPlan.callingCode()):(r.selectNumberingPlan(n),o=n,Tf$1);else return {};if(!s)return {countryCallingCodeSource:a,countryCallingCode:o};var l=jd$1($u$1(s),void 0,r),u=l.nationalNumber,d=l.carrierCode,f=Ad$1(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 jf$1(e){"@babel/helpers - typeof";return jf$1=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},jf$1(e)}function Mf$1(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 Nf$1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Mf$1(Object(n),true).forEach(function(t){Pf$1(e,t,n[t]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mf$1(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t));});}return e}function Pf$1(e,t,n){return (t=Ff$1(t))in e?Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true}):e[t]=n,e}function Ff$1(e){var t=If$1(e,`string`);return jf$1(t)==`symbol`?t:t+``}function If$1(e,t){if(jf$1(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(jf$1(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return (t===`string`?String:Number)(e)}function Lf$1(e,t,n){return Ef$1(e,Nf$1(Nf$1({},t),{},{v2:true}),n)}function Rf$1(e){"@babel/helpers - typeof";return Rf$1=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},Rf$1(e)}function zf$1(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 Bf$1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?zf$1(Object(n),true).forEach(function(t){Vf$1(e,t,n[t]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zf$1(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t));});}return e}function Vf$1(e,t,n){return (t=Hf$1(t))in e?Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true}):e[t]=n,e}function Hf$1(e){var t=Uf$1(e,`string`);return Rf$1(t)==`symbol`?t:t+``}function Uf$1(e,t){if(Rf$1(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Rf$1(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return (t===`string`?String:Number)(e)}function Wf$1(e,t,n){t&&t.defaultCountry&&!Pu(t.defaultCountry,n)&&(t=Bf$1(Bf$1({},t),{},{defaultCountry:void 0}));try{return Lf$1(e,t,n)}catch(e){if(!(e instanceof Y$1))throw e}}function Gf$1(e){"@babel/helpers - typeof";return Gf$1=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},Gf$1(e)}function Kf$1(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 qf$1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Kf$1(Object(n),true).forEach(function(t){Jf$1(e,t,n[t]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kf$1(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t));});}return e}function Jf$1(e,t,n){return (t=Yf$1(t))in e?Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true}):e[t]=n,e}function Yf$1(e){var t=Xf$1(e,`string`);return Gf$1(t)==`symbol`?t:t+``}function Xf$1(e,t){if(Gf$1(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Gf$1(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return (t===`string`?String:Number)(e)}function Zf$1(){var e=Yl(arguments),t=e.text,n=e.options,r=e.metadata;n=qf$1(qf$1({},n),{},{extract:false});var i=Wf$1(t,n,r);return i&&i.isValid()||false}function Qf$1(){return Pl(Zf$1,arguments)}const $f$1=Vc.omit({eventId:true,channel:true,analytics:true}).partial().extend({id:ta$1().meta({examples:[w$1.Order.id],description:`Unique identifier of the order to update`}),signature:vr.meta({description:`HMAC signature for customer access during checkout (16 characters, base64url encoded). Required for all order updates.`}),items:Ua$1(Rc).min(1).optional().meta({description:`Updated list of items for the order. Requires signature. Prices will be recalculated and payment intent updated.`}),customer:Ga$1({firstName:ta$1().meta({examples:[w$1.Customer.firstName],description:`Updated first name of the customer`}).optional(),lastName:ta$1().meta({examples:[w$1.Customer.lastName],description:`Updated last name of the customer`}).optional(),email:ra().meta({examples:[w$1.Customer.email],description:`Updated email address of the customer`}).optional(),phone:ta$1().refine(e=>!e||Qf$1(e),{message:`Phone must be in E.164 format (e.g., +61412345678)`}).meta({examples:[w$1.Customer.phone],description:`Updated phone number in E.164 format (e.g., +61412345678)`}).optional(),deliveryMethod:Uc.optional()}).optional().meta({description:`Updated customer information for the order. All fields are optional for partial updates.`}),marketingConsent:rc.optional().meta({description:`Marketing opt-in choices captured during checkout.`})}),ep$1=Ga$1({id:ta$1().meta({examples:[w$1.Order.id],description:`Unique identifier of the order`}),noteId:ta$1().meta({examples:[`tl_1234567890_abc123`],description:`Unique identifier of the timeline note to update`}),note:ta$1().min(1).max(1e3).meta({examples:[`Updated: Customer confirmed special seating arrangements`],description:`Updated note text content (1-1000 characters)`})});Ga$1({success:Da$1().meta({description:`Whether the payout approval was successful`}),message:ta$1().optional().meta({description:`Optional message about the approval result`}),payoutId:ta$1().meta({description:`ID of the payout that was approved`})});const np$1=Ga$1({payoutId:ta$1().meta({examples:[w$1.Payout.id],description:`Unique identifier of the payout for which to retrieve the detailed breakdown of orders and financial calculations.`})}),rp$1=Ga$1({id:ta$1().readonly().meta({examples:[w$1.PayoutDeduction.id],description:`Unique identifier for this deduction record.`}),createdAt:Ni$1().readonly().meta({examples:[w$1.PayoutDeduction.createdAt],description:`Timestamp in ISO 8601 format when this deduction was created.`}),updatedAt:Ni$1().readonly().meta({examples:[w$1.PayoutDeduction.updatedAt],description:`Timestamp in ISO 8601 format when this deduction was last updated.`}),amount:Ta$1().max(0).meta({examples:[w$1.PayoutDeduction.amount],description:`Deprecated legacy deduction amount in cents. Negative values reduce the payout.`}),currency:D$1.meta({examples:[w$1.PayoutDeduction.currency],description:`Currency code in ISO 4217 format for the deduction amount.`}),description:ta$1().meta({examples:[w$1.PayoutDeduction.description],description:`Human-readable description explaining the reason for this legacy deduction.`}),gateway:ta$1().meta({examples:[w$1.PayoutDeduction.gateway],description:`Payment gateway identifier where this legacy deduction was processed.`}),gatewayId:ta$1().meta({examples:[w$1.PayoutDeduction.gatewayId],description:`Unique identifier assigned by the payment gateway for this legacy deduction transaction.`}),beneficiary:ta$1().meta({examples:[w$1.PayoutDeduction.beneficiary],description:`Human-readable name of the beneficiary account from which this legacy deduction was taken.`}),beneficiaryId:ta$1().meta({examples:[w$1.PayoutDeduction.beneficiaryId],description:`Unique identifier of the beneficiary account from which this legacy deduction was taken.`}),transferId:ta$1().optional().meta({description:`Optional reference to a transfer record when this legacy deduction resulted in money being moved to a future payout.`}),transferPayoutId:ta$1().optional().meta({description:`Optional reference to a future payout where the legacy deducted amount was applied.`})}),ip$1=Ga$1({id:ta$1().meta({examples:[w$1.Event.id],description:`Unique identifier for the event associated with this payout.`}),name:ta$1().meta({examples:[w$1.Event.name],description:`Human-readable name of the event.`}),slug:ta$1().meta({examples:[w$1.Event.slug],description:`URL-friendly slug identifier for the event.`}),location:ta$1().optional().meta({examples:[w$1.Event.location.name],description:`Optional human-readable location name where the event takes place.`})}),ap$1=Ga$1({net:Ta$1().meta({examples:[w$1.Payout.price.net],description:`Total amount to pay to promoter.
93
- Calculated as: total + booking + refunded + dispute`}),total:Ta$1().meta({examples:[w$1.Payout.price.total],description:`Total amount the collected in ticket revenue.
94
- Calculated as: gross + discount`}),gross:Ta$1().min(0).meta({examples:[w$1.Payout.price.gross],description:`Total amount before refunds, disputes and discounts.
95
- Calculated as: base + booking + shipping`}),base:Ta$1().min(0).meta({examples:[w$1.Payout.price.base],description:`Total value of tickets.`}),booking:Ta$1().min(0).meta({examples:[w$1.Payout.price.booking],description:`Total value of booking fees (non-refundable).`}),shipping:Ta$1().min(0).meta({examples:[w$1.Payout.price.shipping],description:`Total value of shipping.`}),sms:Ta$1().min(0).default(0).meta({examples:[w$1.Payout.price.sms],description:`Total SMS delivery fees collected in cents (owed to Session Services, not the event organiser).`}),refunded:Ta$1().max(0).meta({examples:[w$1.Payout.price.refunded],description:`Total value of refunds (negative value).`}),discount:Ta$1().max(0).meta({examples:[w$1.Payout.price.discount],description:`Total value of discounts (negative value).`}),gateway:Ta$1().meta({examples:[w$1.Payout.price.gateway],description:`Total value of absorbed payment gateway fees. Negative values are charges; positive values are reversals.`}),dispute:Ta$1().meta({examples:[w$1.Payout.price.dispute],description:`Total value of non-absorbed payment gateway fees. Negative values are charges; positive values are reversals.`}),deductions:Ta$1().max(0).optional().meta({examples:[w$1.Payout.price.deductions],description:`Deprecated total value of legacy payout-level deductions. New recovery amounts are exposed through payout adjustments.`}),currency:D$1.meta({examples:[w$1.Payout.price.currency],description:`Currency code in ISO 4217 format.`})}),op$1=no$1([`DISPUTE_REVERSAL_CREDIT`,`REFUND_REVERSAL_CREDIT`]),sp$1=no$1([`AIRWALLEX_SETTLEMENT_CREDIT`]),cp$1=Ga$1({source:sp$1,kind:op$1,adjustmentId:ta$1(),adjustmentUniqueKey:ta$1(),sourceKey:ta$1(),sourcePayoutId:ta$1(),settlementId:ta$1(),transactionId:ta$1().optional(),paymentIntentId:ta$1().optional(),paymentAttemptId:ta$1().optional(),createdActionPublishedAt:Ni$1().optional()}),lp$1=no$1([`CREATED`,`APPROVED`,`REJECTED`,`PROCESSING`,`PAID`,`FAILED`,`CANCELLED`,`NOTE`]),up$1=jc(lp$1,{createdAtExamples:[w$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`]}),dp$1=Ga$1({id:ta$1().meta({examples:[w$1.PayoutTransfer.id],description:`Unique identifier for this transfer record.`}),createdAt:Ni$1().meta({examples:[w$1.PayoutTransfer.createdAt],description:`Timestamp in ISO 8601 format when this transfer was created.`}),kind:no$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:Ta$1().min(0).meta({examples:[w$1.PayoutTransfer.amount],description:`Transfer amount in cents. Positive values represent money being transferred to the beneficiary.`}),currency:D$1.meta({examples:[w$1.PayoutTransfer.currency],description:`Currency code in ISO 4217 format for the transfer amount.`}),fee:Ta$1().min(0).meta({examples:[w$1.PayoutTransfer.fee],description:`Gateway processing fee for this transfer in cents. This fee is deducted from the transfer amount.`}),feeCurrency:D$1.meta({examples:[w$1.PayoutTransfer.feeCurrency],description:`Currency code in ISO 4217 format for the gateway fee.`}),reference:ta$1().meta({examples:[w$1.PayoutTransfer.reference],description:`External reference identifier for tracking this transfer with the payment gateway.`}),gateway:no$1([`AIRWALLEX`,`STRIPE`]).meta({examples:[`AIRWALLEX`],description:`Payment gateway used to process this transfer.`}),gatewayId:ta$1().meta({examples:[w$1.PayoutTransfer.gatewayId],description:`Unique identifier assigned by the payment gateway for this transfer.`}),beneficiary:ta$1().meta({examples:[w$1.PayoutTransfer.beneficiary],description:`Human-readable name of the beneficiary receiving this transfer.`}),beneficiaryId:ta$1().meta({examples:[w$1.PayoutTransfer.beneficiaryId],description:`Unique identifier of the beneficiary account receiving this transfer.`}),status:ta$1().optional().meta({examples:[`SCHEDULED`],description:`Transfer status from the payment gateway (e.g. SCHEDULED, IN_PROGRESS, COMPLETED).`}),settlementAmount:Ta$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:D$1.optional().meta({examples:[`USD`],description:`Currency code in ISO 4217 format for the settlement amount. Present only for cross-currency transfers.`}),deductionId:ta$1().optional().meta({description:`Deprecated optional reference to a legacy deduction record.`}),deductionPayoutId:ta$1().optional().meta({description:`Deprecated optional reference to the payout that originated a legacy deduction transfer.`})}),fp$1=no$1([`UPCOMING`,`FAILED`,`PROCESSING`,`PAID`,`CANCELLED`]),mp$1=no$1([`AIRWALLEX`,`STRIPE`,`MANUAL`]),gp$1=no$1([`DAILY`,`WEEKLY`,`AFTER_EVENT`,`ON_DEMAND`]),Q$2=Ga$1({id:ta$1().readonly().meta({examples:[w$1.Payout.id],description:`A unique identifier for this payout.`}),createdAt:Ni$1().readonly().meta({examples:[w$1.Payout.createdAt],description:`Timestamp in ISO 8601 format when this payout was created.`}),updatedAt:Ni$1().readonly().meta({examples:[w$1.Payout.updatedAt],description:`Timestamp in ISO 8601 format when this payout was last updated.`}),paidAt:Ni$1().optional().meta({examples:[w$1.Payout.paidAt],description:`Timestamp in ISO 8601 format when this payout was completed.`}),dueAt:Ni$1().optional().meta({examples:[w$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:fp$1.meta({examples:[`PAID`],description:`Current payment status of this payout.`}),method:mp$1.meta({examples:[`MANUAL`],description:`The payout channel used for disbursing funds.`}),approval:E$1.meta({examples:[`APPROVED`],description:`Approval status for this payout.`}),frequency:gp$1.default(`AFTER_EVENT`).meta({examples:[`AFTER_EVENT`],description:`Schedule on which this payout is generated.`}),structure:ta$1().meta({examples:[w$1.Payout.structure],description:`Data structure defining how funds are allocated in this payout.`}),transfers:Ua$1(dp$1).meta({description:`List of individual transfer records included in this payout.`}),deductions:Ua$1(rp$1).optional().meta({description:`Deprecated legacy deductions applied before calculating the payout total. New recovery amounts are exposed through payout adjustments.`}),price:ap$1.meta({description:`Summary of event/order-derived amounts for this payout.`}),recovery:cp$1.optional().meta({description:`Optional recovery metadata when this payout exists to return settlement-proven recovered funds.`}),event:ip$1.meta({description:`Information about the event associated with this payout.`}),timeline:Ua$1(up$1).optional().meta({description:`Chronological list of status changes and notes for this payout.`}),eventId:ta$1().meta({examples:[w$1.Payout.eventId],description:`Identifier of the event for which this payout was generated.`}),teamId:ta$1().meta({description:`Team receiving this payout. BREAKING CHANGE: Replaced promoterId/promoterSlug.`})}).meta({description:`payout`});Ga$1({id:ta$1().meta({examples:[w$1.Payout.id],description:`Unique identifier of the payout to approve for processing.`})});Ga$1({id:ta$1().meta({examples:[w$1.Payout.id],description:`Unique identifier of the payout to reject.`}),reason:ta$1().optional().meta({examples:[`Insufficient funds in account`],description:`Optional reason for rejecting the payout. This will be recorded for audit purposes.`})});Ga$1({id:ta$1().meta({examples:[w$1.Payout.id],description:`Unique identifier of the payout to process and initiate transfers.`})});Ga$1({id:ta$1().meta({examples:[w$1.Payout.id],description:`Unique identifier of the payout to retry transfer processing for.`})});const Sp$1=Ga$1({id:ta$1().meta({examples:[w$1.Payout.id],description:`Unique identifier of the payout to add a note to`}),note:ta$1().trim().min(1).max(1e3).meta({examples:[`Transfer confirmed via bank statement`],description:`Note text content (1-1000 characters)`})}),Cp$1=Ga$1({name:ta$1(),gateway:no$1([`AIRWALLEX`,`STRIPE`,`FREE`]),message:ta$1(),eventIds:Ua$1(ta$1()).optional(),venues:Ua$1(ta$1()).optional(),tenants:Ua$1(ta$1()).optional(),teams:Ua$1(ta$1()).optional(),ticketBeneficiaryTeamId:ta$1().optional(),min:Ca$1().optional(),max:Ca$1().optional(),percent:Ca$1().optional(),split:Ga$1({tenant:Ca$1(),team:Ca$1(),venue:Ca$1(),sessions:Ca$1()})}),wp$1=Ga$1({tenant:Ca$1().meta({examples:[5e4],description:`Amount allocated to the tenant (platform) in cents. This represents the platform's share of the revenue.`}),venue:Ca$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:Ca$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:Ca$1().meta({examples:[3e3],description:`Amount allocated to Sessions platform commission in cents. This represents the platform's service fees.`}),tickets:Ca$1().meta({examples:[2e3],description:`Amount allocated to ticketing fees in cents. This represents fees charged for ticket processing and management.`})});Ga$1({payout:Q$2.meta({description:`Complete payout record containing all financial details and metadata for calculating beneficiary allocations.`}),feeStructure:Cp$1.meta({description:`Fee structure configuration that defines how revenue is split between different parties (promoter, venue, platform, etc.).`}),split:wp$1.meta({description:`Calculated split amounts showing how the payout total is divided among the different beneficiaries in cents.`})});const Ep=Ga$1({orders:Ca$1().meta({examples:[150],description:`Total number of orders included in this payout breakdown.`}),price:mc.meta({description:`Aggregated price information for all orders included in this payout, showing total revenue, fees, refunds, and disputes.`}),split:wp$1.meta({description:`How the total payout amount is split between different beneficiaries (tenant, venue, promoter, etc.) in cents.`}),structure:ta$1().meta({examples:[`DEFAULT`],description:`Fee structure identifier that was used to calculate the payout split and allocations.`})}),Dp=Ga$1({total:Ep.meta({description:`Summary totals for all orders included in this payout breakdown, including aggregated financial calculations.`}),orders:Ua$1(Ga$1({order:Ic.meta({description:`Complete order information including customer details, items, and payment status.`}),price:mc.meta({description:`Settled price information for this specific order, showing final amounts after refunds and adjustments.`}),split:wp$1.meta({description:`How this individual order's revenue is split between different beneficiaries in cents.`}),structure:ta$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.`})});Q$2.pick({id:true,eventId:true}).extend({id:ta$1().meta({examples:[w$1.Payout.id],description:`Unique identifier of the payout for which to retrieve the detailed breakdown.`}),eventId:ta$1().meta({examples:[w$1.Event.id],description:`Unique identifier of the event associated with the payout breakdown.`})});Q$2.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:ta$1().meta({examples:[w$1.Event.id],description:`Unique identifier of the event for which the payout is being created`}),teamId:ta$1().meta({examples:[`tem_01jqpjksnsen9vprw95et60t2m`],description:`Unique identifier of the team who will receive the payout`}),method:no$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:no$1([`DAILY`,`WEEKLY`,`AFTER_EVENT`]).optional().meta({examples:[`AFTER_EVENT`],description:`Optional payout frequency. Defaults to 'AFTER_EVENT' if not specified`})});const Ap=Ga$1({id:ta$1().meta({examples:[w$1.Payout.id],description:`Unique identifier of the payout`}),noteId:ta$1().meta({examples:[`tl_1234567890_abc123`],description:`Unique identifier of the timeline note to delete`})}),jp=Q$2.pick({id:true}).extend({id:ta$1().meta({examples:[w$1.Payout.id],description:`Unique identifier of the payout to retrieve.`})}),Mp=no$1([`createdAt`]),Np=no$1([`asc`,`desc`]),Pp=Ga$1({mine:Da$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:ta$1().optional().meta({description:`Filter payouts by specific team unique identifier. BREAKING CHANGE: Replaced promoterId filter.`}),eventId:ta$1().optional().meta({examples:[w$1.Event.id],description:`Filter payouts by specific event unique identifier. When provided, only returns payouts for this event.`}),status:no$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:E$1.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:ta$1().optional().meta({examples:[`PAID venue:sydney`],description:`Optional search query to filter payouts by text fields. When provided, search-backed pagination is used.`}),sort:Mp.optional().meta({examples:[`createdAt`],description:"Optional list sort field. Use `createdAt` to return newest or oldest payouts first."}),direction:Np.optional().meta({examples:[`desc`],description:"Sort direction for payout lists. Defaults to `desc` when `sort` is provided."}),limit:L$1(`payouts`).optional(),cursor:ta$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`}),Fp=B$1(Q$2,`payouts`),Ip=no$1([`VALID`,`FALLBACK`,`MISSING`]),Lp=Ga$1({status:Ip.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:ta$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:Ga$1({id:ta$1().optional().meta({examples:[w$1.Beneficiary.id],description:`Identifier for the beneficiary.`}),teamId:ta$1().optional().meta({examples:[w$1.Team.id],description:`Team that owns this beneficiary configuration.`}),name:ta$1().meta({examples:[w$1.Beneficiary.name],description:`Display name for the resolved beneficiary.`}),gateway:no$1([`AIRWALLEX`,`STRIPE`]).optional().meta({examples:[w$1.Beneficiary.gateway],description:`Payment gateway for this beneficiary when available from configuration.`}),gatewayId:ta$1().meta({examples:[w$1.Beneficiary.gatewayId],description:`Gateway-specific beneficiary identifier used for transfer creation.`}),currency:D$1.meta({examples:[w$1.Beneficiary.currency],description:`Currency configured for this beneficiary.`})}).optional()}),Rp=no$1([`tickets`,`tenant`,`venue`,`team`,`sessions`]),zp=Ga$1({kind:Rp.meta({examples:[`tickets`],description:`Split component represented by this row.`}),amount:Ca$1().int().meta({examples:[114500],description:`Amount in cents for this split component.`}),currency:D$1.meta({examples:[w$1.Payout.price.currency],description:`Currency code for this split component.`}),beneficiary:Lp}),Bp=no$1([`TRACKED`,`N_A`,`SKIPPED`]),Vp=Ga$1({orders:Ca$1().int().meta({examples:[12],description:`Number of orders in this settlement bucket.`}),price:mc.meta({description:`Aggregated totals for the orders in this bucket, in the bucket's native currency.`})}),Hp=Ga$1({state:Bp.meta({examples:[`TRACKED`],description:`Whether settlement tracking applies to this payout preview. Non-Airwallex payouts return N_A.`}),settled:Vp.optional().meta({description:`Completed Airwallex orders that already have settlement data available.`}),awaitingSettlement:Vp.optional().meta({description:`Completed Airwallex orders still waiting on settlement ingestion.`})}),Up=Ga$1({payout:Q$2.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:Ua$1(zp).meta({description:`Non-zero split rows with beneficiary resolution status and warnings.`}),settlementSummary:Hp.meta({description:`Settlement status summary for the payout event. Airwallex payouts expose settled vs awaiting-settlement buckets.`})}),Wp=jp.extend({includeSettlementSummary:Da$1().optional().meta({examples:[true],description:`When true, includes the Airwallex settlement summary for the payout preview.`})}),Gp=no$1([`REFUND`,`DISPUTE_PRINCIPAL`,`DISPUTE_FEE`,`GATEWAY_FEE`,`NEGATIVE_PAYOUT_CARRY_FORWARD`,`LEGACY_ADJUSTMENT`]),Kp=no$1([`RESERVED`,`OPEN`,`PARTIALLY_APPLIED`,`APPLIED`]),qp=no$1([`OUTSTANDING`,`APPLIED`,`ALL`]),Jp=no$1([`event`,`payout`]),Yp=Ga$1({id:ta$1(),name:ta$1(),slug:ta$1()}),Xp=Ga$1({id:ta$1(),status:fp$1,approval:E$1,method:mp$1,dueAt:Ni$1().optional(),paidAt:Ni$1().optional(),event:Yp,price:ap$1}),Zp=Ga$1({id:ta$1(),payoutId:ta$1(),amount:Ta$1().min(0),currency:D$1,appliedAt:Ni$1(),transferId:ta$1().optional(),payout:Xp.optional()}),Qp=Ga$1({id:ta$1(),createdAt:Ni$1(),updatedAt:Ni$1(),provenAt:Ni$1(),teamId:ta$1(),eventId:ta$1().optional(),orderId:ta$1().optional(),payoutId:ta$1().optional(),sourcePayoutId:ta$1().optional(),gateway:mp$1,kind:Gp,direction:io$1(`DEBIT`),status:Kp,amount:Ta$1().min(0),appliedAmount:Ta$1().min(0),remainingAmount:Ta$1().min(0),currency:D$1,beneficiary:ta$1(),beneficiaryId:ta$1(),description:ta$1(),settlementId:ta$1().optional(),transactionId:ta$1().optional(),feeType:ta$1().optional(),feeSourceId:ta$1().optional(),disputeId:ta$1().optional(),refundId:ta$1().optional(),paymentIntentId:ta$1().optional(),paymentAttemptId:ta$1().optional(),customer:Ys.optional(),event:Yp.optional(),sourcePayout:Xp.optional(),applications:Ua$1(Zp)}),$p=Ga$1({id:ta$1()}),em=Ga$1({adjustmentId:ta$1(),amount:Ta$1().min(0),currency:D$1}),tm=Ga$1({amount:Ta$1().min(0),appliedAmount:Ta$1().min(0),remainingAmount:Ta$1().min(0),projectedAmount:Ta$1().min(0),currency:D$1}),nm=Ga$1({id:ta$1(),event:Yp.optional(),adjustments:Ua$1(Qp),totals:Ua$1(tm)}),rm=Ga$1({id:ta$1(),payout:Xp,adjustments:Ua$1(Qp),projections:Ua$1(em),totals:Ua$1(tm),projectedNetAmount:Ta$1()}),im=Ga$1({adjustmentCount:Ta$1().min(0),eventCount:Ta$1().min(0),upcomingPayoutCount:Ta$1().min(0),totals:Ua$1(tm)}),am=Ga$1({teamId:ta$1(),query:ta$1().optional(),status:qp.optional(),groupBy:Jp.optional(),eventId:ta$1().optional(),currency:D$1.optional(),limit:L$1(`adjustments`).optional(),cursor:kn.optional()}),om=Ga$1({adjustments:Ua$1(Qp),eventGroups:Ua$1(nm),payoutGroups:Ua$1(rm),summary:im,summaryScope:io$1(`PAGE`),before:ta$1().nullish(),after:ta$1().nullish(),limit:Ca$1().int().min(1)}),sm=Ga$1({adjustment:Qp,adjustments:Ua$1(Qp),eventGroups:Ua$1(nm),payoutGroups:Ua$1(rm),summary:im}),cm=Ga$1({payout:Q$2,breakdown:Dp,appliedAdjustments:Ua$1(Qp),projectedAdjustmentGroup:rm.optional(),canExportBookingFees:Da$1()}),lm=eo$1(ta$1(),eo$1(ta$1(),Ga$1({net:Ca$1(),total:Ca$1(),gross:Ca$1(),base:Ca$1(),booking:Ca$1(),shipping:Ca$1(),refunded:Ca$1(),discount:Ca$1(),gateway:Ca$1(),dispute:Ca$1(),deductions:Ca$1().default(0)}))).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}},previous:{USD:{net:8e4,total:95e3,gross:9e4,base:85e3,booking:5e3,shipping:0,refunded:0,discount:5e3,gateway:2500,dispute:0}}}]}),um=Ga$1({teamId:ta$1().optional().meta({description:`Filter stats by team ID`}),startDate:ta$1().optional().meta({description:`Start date for stats period (YYYY-MM-DD)`}),endDate:ta$1().optional().meta({description:`End date for stats period (YYYY-MM-DD)`})}),dm=Q$2.pick({id:true}).merge(Q$2.pick({status:true,approval:true}).partial()).extend({id:ta$1().meta({examples:[w$1.Payout.id],description:`Unique identifier of the payout to update.`}),status:no$1([`CANCELLED`]).optional().meta({examples:[`CANCELLED`],description:`Optional new payment status for the payout. Only CANCELLED is allowed for manual updates.`}),approval:E$1.optional().meta({examples:[`APPROVED`],description:`Optional new approval status for the payout. PENDING: awaiting approval, APPROVED: approved for processing, REJECTED: rejected.`})}),fm=Ga$1({id:ta$1().meta({examples:[w$1.Payout.id],description:`Unique identifier of the payout`}),noteId:ta$1().meta({examples:[`tl_1234567890_abc123`],description:`Unique identifier of the timeline note to update`}),note:ta$1().trim().min(1).max(1e3).meta({examples:[`Updated: Transfer confirmed - reference #12345`],description:`Updated note text content (1-1000 characters)`})}),pm=no$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.`}),mm=Ga$1({id:ta$1().readonly().meta({description:`Unique identifier for the permission scope`}),createdAt:Ni$1().readonly().meta({description:`Timestamp in ISO 8601 format when the scope was created`}),updatedAt:Ni$1().readonly().meta({description:`Timestamp in ISO 8601 format when the scope was last updated`}),teamMemberId:ta$1().meta({description:`Team member this scope applies to`}),teamId:ta$1().meta({description:`Team the member belongs to`}),userId:ta$1().meta({description:`ID of the user this permission scope applies to`}),permissions:Ua$1(R$1).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:Ua$1(ta$1()).optional().meta({description:`Optional role IDs applied at this scope. Role-derived permissions are merged with explicit scoped nodes.`}),tenantId:ta$1().readonly().meta({description:`Tenant identifier`})}),hm=Xa$1(`kind`,[mm.extend({kind:io$1(`PROMOTER`).meta({description:`Scope type: PROMOTER-specific permissions`}),promoterId:ta$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.`}),mm.extend({kind:io$1(`VENUE`).meta({description:`Scope type: VENUE-specific permissions`}),venueId:ta$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.`}),gm=Ga$1({permissions:Ua$1(R$1).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:Ua$1(ta$1()).optional().meta({description:`Optional role IDs to apply at this scope.`})}),_m=Xa$1(`kind`,[gm.extend({kind:io$1(`PROMOTER`).meta({description:`Scope type: PROMOTER-specific permissions`}),promoterId:ta$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.`}),gm.extend({kind:io$1(`VENUE`).meta({description:`Scope type: VENUE-specific permissions`}),venueId:ta$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.`}),vm=Ga$1({id:bn.meta({description:`Unique identifier for the permission scope`})}).meta({description:`Schema for retrieving a single permission scope by ID`}),ym=Ga$1({teamMemberId:ta$1().optional().meta({description:`Filter by team member ID`}),userId:ta$1().optional().meta({description:`Filter by user ID`}),kind:pm.optional().meta({description:`Filter by scope kind (PROMOTER or VENUE)`}),promoterId:ta$1().optional().meta({description:`Filter by promoter ID (only for kind=PROMOTER scopes)`}),venueId:ta$1().optional().meta({description:`Filter by venue ID (only for kind=VENUE scopes)`}),limit:L$1(`permission scopes`),cursor:ta$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`}),bm=B$1(hm,`items`).meta({description:`Paginated response containing permission scopes with cursor for next page`}),xm=gm.meta({description:`Schema for updating an existing permission scope. Only permissions array can be modified.`}),Sm=Ga$1({id:xn.meta({description:`Permission role ID`}),teamId:k$1.meta({description:`Team that owns this role`}),name:ta$1().min(1).meta({description:`Role display name`}),description:ta$1().optional().meta({description:`Optional role description`}),permissions:er.meta({description:`Permission nodes granted by this role`}),createdAt:Ni$1().meta({description:`Timestamp in ISO 8601 format when the role was created`}),updatedAt:Ni$1().meta({description:`Timestamp in ISO 8601 format when the role was last updated`})}).meta({description:`Team-scoped permission role`}),Cm=Ga$1({role:Sm}),wm=Ga$1({roles:Ua$1(Sm)}),Tm=Ga$1({key:ta$1().meta({description:`Team identifier (ID or slug)`})}),Em=Ga$1({key:ta$1().meta({description:`Team identifier (ID or slug)`}),roleId:xn}),Dm=Ga$1({key:ta$1().meta({description:`Team identifier (ID or slug)`}),name:ta$1().min(1).meta({description:`Role display name`}),description:ta$1().optional().meta({description:`Optional role description`}),permissions:er}),Om=Ga$1({key:ta$1().meta({description:`Team identifier (ID or slug)`}),roleId:xn,name:ta$1().min(1).meta({description:`Role display name`}),description:ta$1().optional().meta({description:`Optional role description`}),permissions:er}),km=Ga$1({memberId:P$1,permissions:Ua$1(R$1),updatedAt:Ni$1()}),Am=Ga$1({member:km}),jm=Ga$1({key:ta$1().meta({description:`Team identifier (ID or slug)`}),memberId:P$1}),Mm=Ga$1({key:ta$1().meta({description:`Team identifier (ID or slug)`}),memberId:P$1,permissions:Ua$1(R$1).meta({description:`Direct permission nodes for this member. Full-replace semantics; use an empty array to remove all direct grants.`})}),Nm=Ga$1({memberId:P$1,roleIds:Ua$1(xn).meta({description:`Role IDs assigned to this member`}),updatedAt:Ni$1()}),Pm=Ga$1({member:Nm}),Fm=Ga$1({key:ta$1().meta({description:`Team identifier (ID or slug)`}),memberId:P$1}),Im=Ga$1({key:ta$1().meta({description:`Team identifier (ID or slug)`}),memberId:P$1,roleIds:Ua$1(xn)}),Lm=Ga$1({direct:Ua$1(ta$1()),fromRoles:Ua$1(ta$1()),effective:Ua$1(ta$1()),denied:Ua$1(ta$1())});Ga$1({memberId:P$1,permissions:Lm});Ga$1({key:ta$1().meta({description:`Team identifier (ID or slug)`}),memberId:P$1,domain:ta$1().optional().meta({description:`Optional domain filter (for example: ticket, event)`}),action:ta$1().optional().meta({description:`Optional action filter (for example: read, write, scan)`}),resourceId:ta$1().optional().meta({description:`Optional resource ID filter`})});const Vm=S$1.route({method:`GET`,path:`/teams/{key}/roles`,summary:`List team roles`,description:`Returns all roles configured for a team.`,tags:[`Permissions`]}).input(Tm.strict()).output(wm),Hm=S$1.route({method:`POST`,path:`/teams/{key}/roles`,summary:`Create team role`,description:`Creates a team-scoped permission role.`,tags:[`Permissions`]}).input(Dm.strict()).output(Cm),Um=S$1.route({method:`GET`,path:`/teams/{key}/roles/{roleId}`,summary:`Get team role`,description:`Retrieves a team role by ID.`,tags:[`Permissions`]}).input(Em.strict()).output(Cm),Wm=S$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(Om.strict()).output(Cm),Gm=S$1.route({method:`DELETE`,path:`/teams/{key}/roles/{roleId}`,summary:`Delete team role`,description:`Deletes a team role.`,tags:[`Permissions`]}).input(Em.strict()).output(Cm),Km=S$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(jm.strict()).output(Am),qm=S$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(Mm.strict()).output(Am),Jm=S$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(Fm.strict()).output(Pm),Ym=S$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(Im.strict()).output(Pm);var Xm={roles:{list:Vm,create:Hm,get:Um,update:Wm,remove:Gm},members:{permissions:{get:Km,replace:qm},roles:{get:Jm,replace:Ym}}};const Zm=Ga$1({key:ta$1().min(1).meta({description:`Promoter key - either a unique ID (pmt_xxx format) or URL-friendly slug`,examples:[w$1.Promoter.id,w$1.Promoter.slug]})}).meta({description:`Request schema for retrieving a promoter by either its unique ID or slug`});K$1.pick({slug:true});const $m=K$1.omit({id:true,createdAt:true,updatedAt:true,geohash:true,approval:true,location:true}).extend({teamId:ta$1().meta({examples:[`tem_01jqpjksnsen9vprw95et60t2m`],description:`ID of the team that will own this promoter. User must be a member of this team.`}),slug:ta$1().min(3).max(30).optional().meta({examples:[w$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`}),...cl}).refine(ll,{message:sl}).meta({description:`Schema for creating a new promoter organization. The system automatically generates the ID, tenant association, geohash, and timestamps`}),eh=Ga$1({key:ta$1().min(1).meta({description:`Promoter key - either a unique ID (pmt_xxx format) or URL-friendly slug`,examples:[w$1.Promoter.id,w$1.Promoter.slug]})}).meta({description:`Schema for removing (soft deleting) a promoter organization by key (ID or slug)`});K$1.pick({id:true}).meta({description:`Schema for retrieving a specific promoter by ID`});const nh=no$1([`createdAt`]),rh=no$1([`asc`,`desc`]),ih=e=>{if(e!=null)return typeof e==`string`?ah(e):e};function ah(e){let t=e.trim();if(t.length===0)return;let n=Number(t);return Number.isNaN(n)?e:n}const oh=Ka({teamId:ta$1().max(128).optional().meta({description:`Filter promoters to only those belonging to a specific team`}),approval:E$1.optional().meta({examples:[w$1.Promoter.approval],description:`Filter promoters by approval status. PENDING: awaiting review, APPROVED: can create events, REJECTED: cannot operate`}),query:ta$1().max(120).optional().meta({examples:[`Session Services`],description:`Optional search query. When provided, results are fetched from search with unified cursor pagination.`}),latitude:T$1().min(-90).max(90).optional().meta({examples:[w$1.Promoter.location.latitude],description:`Latitude used with longitude and radius to filter promoters by proximity when searching.`}),longitude:T$1().min(-180).max(180).optional().meta({examples:[w$1.Promoter.location.longitude],description:`Longitude used with latitude and radius to filter promoters by proximity when searching.`}),radius:T$1().min(1).max(2e4).optional().meta({examples:[50],description:`Search radius in kilometers applied when latitude and longitude are provided.`}),mine:Yt$1().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).`}),sort:nh.optional().meta({examples:[`createdAt`],description:"Optional list sort field. Use `createdAt` to return newest or oldest promoters first."}),direction:rh.optional().meta({examples:[`desc`],description:"Sort direction for promoter lists. Defaults to `desc` when omitted."}),limit:Mo$1(ih,Ca$1().min(1).max(100).prefault(20)).meta({examples:[20],description:`Maximum number of promoters to return (1-100, defaults to 20)`}).optional(),cursor:ta$1().max(768).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`}),sh=B$1(K$1,`promoters`),ch=Ga$1({promoter:K$1}),lh=K$1.omit({createdAt:true,updatedAt:true,id:true,location:true}).partial().extend({key:ta$1().min(1).meta({description:`Promoter key - either a unique ID (pmt_xxx format) or URL-friendly slug`,examples:[w$1.Promoter.id,w$1.Promoter.slug]}),locationId:j$1.optional().meta({examples:[`loc_01jqpjksnsen9vprw95et60t2m`],description:`ID of an existing location to update to. Either locationId or googlePlaceId can be provided.`}),googlePlaceId:ta$1().optional().meta({examples:[`ChIJN1t_tDeuEmsRUsoyG83frY4`],description:`Google Place ID to update location from. Either locationId or googlePlaceId can be provided.`}),image:F$1.nullable().optional().meta({description:`Promoter image. Pass null to clear; omit to leave unchanged.`,examples:[w$1.Promoter.image,null]}),tracking:Ga$1({fbId:ta$1().optional(),gaId:Vo.optional(),tikTokId:ta$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.`}),uh=no$1([`PAYOUT_STATEMENT`,`PAYOUT_ORDER_BREAKDOWN`,`PAYOUT_BOOKING_FEE_BREAKDOWN`,`PAYOUT_ADJUSTMENT_BREAKDOWN`,`EVENT_ORDERS`]),dh=no$1([`QUEUED`,`PROCESSING`,`COMPLETED`,`FAILED`]),fh=Ga$1({payoutId:ta$1().describe(`Payout identifier`),teamId:ta$1().optional().describe(`Requesting team identifier`)}),ph=Ga$1({eventId:ta$1().describe(`Event identifier`)}),mh=Xa$1(`type`,[Ga$1({type:io$1(`PAYOUT_STATEMENT`),params:fh}),Ga$1({type:io$1(`PAYOUT_ORDER_BREAKDOWN`),params:fh}),Ga$1({type:io$1(`PAYOUT_BOOKING_FEE_BREAKDOWN`),params:fh}),Ga$1({type:io$1(`PAYOUT_ADJUSTMENT_BREAKDOWN`),params:fh}),Ga$1({type:io$1(`EVENT_ORDERS`),params:ph})]),hh=Ga$1({id:ta$1().describe(`Report job identifier`)}),gh=Ga$1({id:ta$1(),type:uh,status:dh,createdAt:ta$1(),updatedAt:ta$1(),expiresAt:ta$1().optional(),filename:ta$1().optional(),contentType:ta$1().optional(),sizeBytes:Ca$1().optional(),error:ta$1().optional(),downloadUrl:ta$1().optional()}),_h=Ga$1({key:ta$1().meta({description:`Team identifier (ID or slug)`}),inviteId:ta$1().meta({description:`Team invite ID to accept`}),token:ta$1().meta({description:`Secure token used to accept the team invite. This token must match the one sent in the invitation email.`})}),yh=no$1([`TEAM`,`EVENTS`]),bh=Ga$1({key:ta$1().meta({description:`Team identifier (ID or slug)`}),scope:yh.meta({description:`Stripe Connect event routing scope. TEAM routes every team event through Stripe Connect. EVENTS routes selected events only.`,examples:[`EVENTS`]}),eventIds:Ua$1(A$1).max(100).optional().meta({description:`Event IDs routed through Stripe Connect when scope is EVENTS. Omit or pass an empty array to keep Stripe Connect disabled for all events in EVENTS mode.`})}),xh=Ga$1({provider:no$1([`STRIPE`,`AIRWALLEX`]).meta({description:`Payment gateway provider type`}),connectedAt:Ni$1().meta({description:`Timestamp when the payment gateway was connected to this team`}),connectedBy:ta$1().meta({description:`User ID of the team member who connected the payment gateway`}),accountId:ta$1().meta({description:`Connected account ID. For Stripe: acct_xxxxx. For Airwallex: business account open ID.`}),scope:yh.optional().meta({description:`Stripe Connect routing scope. TEAM routes all team events through Stripe Connect. EVENTS routes only selected events.`}),eventIds:Ua$1(A$1).optional().meta({description:`Event IDs routed through Stripe Connect when scope is EVENTS.`}),chargesEnabled:Da$1().optional().meta({description:`Whether the connected Stripe account can currently accept charges.`}),payoutsEnabled:Da$1().optional().meta({description:`Whether the connected Stripe account can currently receive payouts.`}),requirementsDue:Ua$1(ta$1()).optional().meta({description:`Stripe Connect account requirements currently due before the account can remain fully enabled.`}),disabledReason:ta$1().optional().meta({description:`Stripe disabled reason for the connected account, when Stripe reports one.`}),syncedAt:Ni$1().optional().meta({description:`Timestamp when gateway account status was last synced from the provider.`})}).meta({description:`Payment gateway configuration for direct payouts to the team's connected account`}),Sh=Ga$1({id:k$1.readonly().meta({description:`Unique identifier for the team organization`}),createdAt:Ni$1().readonly().meta({description:`Timestamp in ISO 8601 format when the team was created`}),updatedAt:Ni$1().readonly().meta({description:`Timestamp in ISO 8601 format when the team was last updated`}),name:ta$1().min(3).max(30).meta({description:`Display name of the team organization. Must be between 3 and 30 characters`}),slug:ta$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:ta$1().email().optional().meta({description:`Support email address for customer inquiries. Used as reply-to address in order confirmation emails`}),publicBaseUrl:oa$1().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:F$1.optional().meta({description:`Team image with dimensions and alt text for branding across the platform`}),metadata:On,approval:E$1.meta({description:`Approval status of the team. PENDING: awaiting review, APPROVED: can create promoters/venues/events, REJECTED: cannot operate`}),deletedAt:Ni$1().optional().readonly().meta({description:`Timestamp in ISO 8601 format when the team was soft deleted. Only present for deleted teams.`}),tenantId:ta$1().readonly().meta({description:`Tenant ID for multi-tenant isolation`}),isAdmin:Da$1().optional().meta({description:`Whether this team is the admin team for the tenant`}),gateway:xh.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.`});Sh.extend({promoter:K$1.meta({description:`The primary promoter brand associated with this team`})}).meta({description:`Team organization with its primary promoter brand included for convenience`});const wh=Sh.extend({member:Ga$1({id:P$1.meta({description:`Current user's team member identifier for this team`}),permissions:$n.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:Da$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`}),Th=Ga$1({key:ta$1().min(1).meta({description:`Team key - either a unique ID (tem_xxx format) or URL-friendly slug`,examples:[w$1.Team.id,w$1.Team.slug]})}).meta({description:`Request schema for retrieving a team by either its unique ID or slug`}),Eh=Sh.omit({id:true,tenantId:true,createdAt:true,updatedAt:true,deletedAt:true}).extend({slug:ta$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:Sh.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`});Ga$1({id:k$1.meta({description:`Team ID to delete`})});Ga$1({id:k$1.meta({description:`Team ID to retrieve`})});const kh=Ga$1({id:vn.readonly().meta({description:`Unique identifier for the team invitation`}),createdAt:Ni$1().readonly().meta({description:`Timestamp in ISO 8601 format when the invitation was created`}),updatedAt:Ni$1().readonly().meta({description:`Timestamp in ISO 8601 format when the invitation was last updated`}),teamId:k$1.meta({description:`Team this invitation is for`}),email:ra().meta({description:`Email address of the invited user. Used for sending invitation.`}),permissions:Ua$1(R$1).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:Ua$1(ta$1()).optional().meta({description:`Role IDs assigned on invite acceptance. Effective permissions are role + explicit nodes.`}),access:yr.optional().meta({description:`Promoter access to apply when the invitation is accepted.`}),token:ta$1().readonly().meta({description:`Secure token for invite acceptance. Required to accept the invitation.`}),expiresAt:Ca$1().int().positive().meta({description:`Unix timestamp (seconds) for DynamoDB TTL. Invitation will be automatically deleted after 7 days.`}),invitedBy:ln.meta({description:`User ID who sent the invitation`}),tenantId:ta$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.`}),Ah=Ga$1({key:ta$1().meta({description:`Team identifier (ID or slug)`}),inviteId:ta$1().meta({description:`Team invite ID to cancel`})}),jh=Ga$1({key:ta$1().meta({description:`Team identifier (ID or slug)`}),email:ra().meta({description:`Email address of the user to invite`}),roleIds:Ua$1(ta$1()).min(1).meta({description:`Role IDs to grant to the invited user.`}),access:br.optional().meta({description:`Optional promoter access assignment. Omit to preserve existing team-wide behavior.`})}),Mh=Ga$1({key:ta$1().meta({description:`Team identifier (ID or slug)`}),inviteId:vn.meta({description:`Team invite ID to retrieve`})}),Nh=Ga$1({key:ta$1().meta({description:`Team identifier (ID or slug)`}),query:ta$1().optional().meta({description:`Search query to filter invitations by email. Case-insensitive partial match`}),limit:Ca$1().int().min(1).max(100).default(20).optional().meta({description:`Maximum number of invitations to return per page`}),cursor:ta$1().optional().meta({description:`Pagination cursor for fetching the next page`})}),Ph=B$1(kh,`invites`),Fh=Ga$1({invite:kh}),Ih=no$1([`createdAt`]),Lh=no$1([`asc`,`desc`]),Rh=Ga$1({userId:ln.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:E$1.optional().meta({description:`Filter teams by approval status. PENDING: awaiting review, APPROVED: can operate, REJECTED: cannot operate`}),query:ta$1().optional().meta({description:`Optional search query for filtering teams by name or slug`}),sort:Ih.optional().meta({examples:[`createdAt`],description:"Optional list sort field. Use `createdAt` to return newest or oldest teams first."}),direction:Lh.optional().meta({examples:[`desc`],description:"Sort direction for team lists. Defaults to `desc` when `sort` is provided."}),limit:L$1(`teams`),cursor:ta$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`}),zh=B$1(wh,`teams`),Bh=no$1([`STRIPE`,`AIRWALLEX`]),Vh=Ga$1({key:ta$1().meta({description:`Team identifier (ID or slug)`}),provider:Bh.meta({description:`Payment processor to connect`,examples:[`STRIPE`,`AIRWALLEX`]})}),Hh=Ga$1({authorizationUrl:ta$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=...`]})}),Uh=Ga$1({key:ta$1().meta({description:`Team identifier (ID or slug)`})}),Wh=Ga$1({team:wh.extend({isAdmin:Da$1().optional().meta({description:`Whether this team is the tenant admin team`}),stripeConnectAvailability:Ko.optional().meta({description:`Stripe Connect availability metadata for tenant payment settings UI.`})})}),Gh=Ga$1({id:ta$1().meta({description:`Role ID`}),teamId:ta$1().meta({description:`Team ID this role belongs to`}),key:ta$1().meta({description:`Role key`}),name:ta$1().meta({description:`Role display name`}),description:ta$1().optional().meta({description:`Role description`}),permissions:Ua$1(ta$1()).meta({description:`Permission nodes granted by this role`}),scope:io$1(`TEAM`).meta({description:`Role scope`}),isPreset:Da$1().meta({description:`Whether this role is a system preset role`})});Ga$1({key:ta$1().meta({description:`Team identifier (ID or slug)`})});Ga$1({roles:Ua$1(Gh)});const Jh=Ga$1({slug:ta$1().min(3).max(30).meta({description:`Candidate team URL slug to check after server normalization.`}),key:ta$1().min(1).optional().meta({description:`Current team key to exclude when checking availability during team edits.`})}).meta({description:`Request schema for checking team slug availability.`}),Yh=Ga$1({slug:ta$1().min(3).max(30).meta({description:`Normalized team URL slug that was checked.`}),available:Da$1().meta({description:`Whether the normalized slug is available in this tenant.`})}).meta({description:`Team slug availability result.`}),Xh=Sh.omit({tenantId:true,createdAt:true,updatedAt:true,id:true}).partial().extend({key:ta$1().min(1).meta({description:`Team key - either a unique ID (tem_xxx format) or URL-friendly slug`,examples:[w$1.Team.id,w$1.Team.slug]}),supportEmail:ta$1().email().nullable().optional().meta({description:`Support email for customer inquiries. Pass null to clear, omit to leave unchanged.`}),publicBaseUrl:oa$1().nullable().optional().meta({description:`Public website base URL for team-owned event and order links. Pass null to clear, omit to leave unchanged.`}),image:F$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.`}),Zh=Ga$1({id:P$1.readonly().meta({description:`Unique identifier for the team member`}),createdAt:Ni$1().readonly().meta({description:`Timestamp in ISO 8601 format when the member was created`}),updatedAt:Ni$1().readonly().meta({description:`Timestamp in ISO 8601 format when the member was last updated`}),teamId:k$1.meta({description:`Team this member belongs to`}),userId:ln.meta({description:`User ID of the team member`}),user:Ga$1({id:ln.meta({description:`Unique identifier of the user`}),email:ra().meta({description:`Email address of the user`}),firstName:ta$1().meta({description:`First name of the user`}),lastName:ta$1().meta({description:`Last name of the user`}),imageUrl:ta$1().optional().meta({description:`Profile image URL of the user`})}).meta({description:`Denormalized user details for quick access without additional queries.`}),permissions:Ua$1(R$1).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:Ua$1(ta$1()).optional().meta({description:`Role IDs assigned to this team member. Effective permissions are derived from role nodes plus explicit permission nodes.`}),isOwner:Da$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.`}),access:yr.optional().meta({description:`Promoter access summary. Omitted only for legacy/no-access records.`}),tenantId:ta$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.`}),Qh=Ga$1({member:Zh}),$h=Zh.omit({id:true,tenantId:true,createdAt:true,updatedAt:true,user:true,teamId:true,permissions:true}).extend({key:ta$1().meta({description:`Team identifier (ID or slug)`}),roleIds:Ua$1(ta$1()).min(1).meta({description:`Role IDs assigned to this team member.`}),access:br.optional().meta({description:`Optional promoter access assignment. Omit to preserve existing team-wide behavior.`})}).meta({description:`Schema for adding an existing user to a team. Requires userId of an existing user account.`}),eg=Ga$1({key:ta$1().meta({description:`Team identifier (ID or slug)`}),userId:ta$1().meta({description:`User ID of the team member to retrieve`})}),tg=Ga$1({key:ta$1().meta({description:`Team identifier (ID or slug)`}),query:ta$1().optional().meta({description:`Search query to filter members by name or email. Case-insensitive partial match`}),limit:L$1(`team members`),cursor:ta$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`}),ng=B$1(Zh,`members`),rg=Ga$1({key:ta$1().meta({description:`Team identifier (ID or slug)`}),newOwnerId:ta$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.`}),ig=Ga$1({previousOwner:Zh.meta({description:"The previous owner (now a regular member with owner-equivalent access, typically via `*`)"}),newOwner:Zh.meta({description:`The new owner (now has isOwner: true)`})}).meta({description:`Response payload for team ownership transfer operation`}),ag=Ga$1({id:ta$1().meta({description:`Team member ID to update`}),roleIds:Ua$1(ta$1()).min(1).meta({description:`Replace role assignments for this team member with the provided role IDs.`}),isOwner:Da$1().optional().meta({description:`Whether this team member is an owner of the team`}),access:br.optional().meta({description:`Optional promoter access assignment. Omit to update only role assignments.`})}).meta({description:`Schema for updating team member roles. Cannot update teamId, userId, or owner status.`});const sg=S$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(eg.strict()).output(Qh),cg=S$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(tg.strict()).output(ng),lg=S$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($h.strict()).output(Qh),ug=S$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(ag.extend({key:ta$1(),userId:ta$1()}).strict()).output(Qh),dg=S$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(eg.strict()).output(Qh),fg=S$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(rg.strict()).output(ig);var pg={get:sg,list:cg,create:lg,update:ug,remove:dg,transfer:fg};const mg=no$1([`ALL`,`COUNTRY`,`STATE`,`CITY`,`VENUE`]),hg=Ga$1({id:ta$1(),name:ta$1(),slug:ta$1(),kind:mg,parentId:ta$1().optional(),latitude:Ca$1().optional(),longitude:Ca$1().optional(),radius:Ca$1().optional(),enabled:Da$1(),order:Ca$1(),zoom:Ca$1().optional(),heroImage:ta$1().optional(),description:ta$1().optional()}),gg=Ga$1({tenant:Ga$1({id:ta$1(),name:ta$1(),slug:ta$1(),adminTeamId:ta$1(),legacyTenantsToTeams:eo$1(ta$1(),ta$1()).optional(),features:eo$1(ta$1(),Da$1()).optional(),defaultCurrency:ta$1(),logo:Ga$1({email:Ga$1({src:ta$1(),width:Ca$1(),height:Ca$1()}),website:Ga$1({src:ta$1(),width:Ca$1(),height:Ca$1()})}),baseUrl:Ga$1({dev:ta$1().optional(),production:ta$1().optional()}),publicBaseUrl:Ga$1({dev:ta$1().optional(),sandbox:ta$1().optional(),production:ta$1().optional()}).optional()}),regions:Ua$1(hg)}),_g=Ga$1({regions:Ua$1(hg)}),vg=Ga$1({teamId:ta$1().optional()}),yg=Ga$1({counts:Ga$1({teams:Da$1(),promoters:Da$1(),venues:Da$1(),events:Da$1(),payouts:Da$1()})}),bg=Ga$1({id:ta$1().meta({examples:[w$1.Admission.id],description:`Admission ID reference`}),name:ta$1().meta({examples:[`VIP Access`,`General Admission`,`Early Bird`],description:`Admission type name at time of purchase`}),price:Ga$1({base:Ca$1().meta({description:`Base price in smallest currency unit (cents)`}),booking:Ca$1().meta({description:`Booking fee in smallest currency unit (cents)`}),currency:ta$1().meta({examples:[`USD`,`EUR`,`GBP`],description:`ISO 4217 currency code`})}).meta({description:`Price snapshot at time of purchase`}),entryStartsAt:I$1.meta({description:`Wall clock time when ticket holder can enter (no timezone, displays same everywhere)`}),entryEndsAt:I$1.meta({description:`Wall clock time when entry period ends (no timezone, displays same everywhere)`})}).meta({description:`Admission details for this ticket`}),xg=Ga$1({firstName:ta$1().trim().min(1).meta({examples:[w$1.Customer.firstName],description:`First name of the ticket attendee`}),lastName:ta$1().trim().min(1).meta({examples:[w$1.Customer.lastName],description:`Last name of the ticket attendee`}),email:ra().meta({examples:[w$1.Customer.email],description:`Email address of the ticket attendee`}),phone:ta$1().meta({examples:[w$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.`}),Sg=Ga$1({id:ta$1().meta({examples:[w$1.Event.id],description:`Event ID reference`}),name:ta$1().meta({examples:[w$1.Event.name],description:`The title of the event shown to attendees`}),slug:ta$1().meta({examples:[w$1.Event.slug],description:`URL-friendly identifier for the event`}),location:zo.meta({description:`Structured location details for the event`}),entryStartsAt:I$1.meta({examples:[w$1.Event.entryStartsAt],description:`Wall clock time when event entry begins (no timezone, displays same everywhere)`}),entryEndsAt:I$1.meta({examples:[w$1.Event.entryEndsAt],description:`Wall clock time when event entry ends (no timezone, displays same everywhere)`}),images:Ga$1({mobile:F$1.meta({description:`Mobile-optimized image for the event`}),desktop:F$1.meta({description:`Desktop-optimized image for the event`})})}).meta({description:`Event details for this ticket`}),Cg=Ga$1({id:ta$1().meta({examples:[w$1.User.id],description:`Unique identifier of the user who performed the ticket scan`}),firstName:ta$1().meta({examples:[w$1.User.firstName],description:`First name of the user who performed the scan`}),lastName:ta$1().meta({examples:[w$1.User.lastName],description:`Last name of the user who performed the scan`}),email:ra().meta({examples:[w$1.User.email],description:`Email address of the user who performed the scan`})}).meta({description:`Information about the user who scanned a ticket`}),wg=no$1([`CHECK_IN`,`CHECK_OUT`]),Eg=Ga$1({id:ta$1().meta({examples:[w$1.TicketScan.id],description:`Unique identifier of the ticket scan record`}),scannedAt:Ni$1().readonly().meta({examples:[w$1.TicketScan.scannedAt],description:`Timestamp when the ticket was scanned in ISO 8601 format`}),scannedById:ta$1().meta({examples:[w$1.TicketScan.scannedById],description:`Unique identifier of the user who performed the scan`}),scannedBy:Cg.meta({description:`Detailed information about the user who performed the scan`}),deviceId:ta$1().meta({examples:[w$1.TicketScan.deviceId],description:`Unique identifier of the device used for scanning`}),kind:wg.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`}),Dg=Ga$1({id:ta$1().meta({examples:[w$1.Section.id],description:`Section ID reference`}),name:ta$1().meta({examples:[`Floor Section A`,`Balcony Left`,`VIP Lounge`],description:`Section name at time of purchase`}),location:Ga$1({name:ta$1().meta({description:`Venue or location name`}),address:ta$1().optional().meta({description:`Street address`}),city:ta$1().optional().meta({description:`City name`}),state:ta$1().optional().meta({description:`State or province`}),postcode:ta$1().optional().meta({description:`Postal/ZIP code`}),country:ta$1().optional().meta({description:`ISO country code`}),latitude:Ca$1().optional().meta({description:`Geographic latitude coordinate`}),longitude:Ca$1().optional().meta({description:`Geographic longitude coordinate`}),timeZone:ta$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`}),Og=no$1([`ACTIVE`,`REDEEMED`,`CANCELLED`]),$$2=Ga$1({id:ta$1().readonly().meta({examples:[w$1.Ticket.id],description:`Unique identifier for the ticket`}),createdAt:Ni$1().readonly().meta({examples:[w$1.Ticket.createdAt],description:`Timestamp when the ticket was created in ISO 8601 format`}),updatedAt:Ni$1().readonly().meta({examples:[w$1.Ticket.updatedAt],description:`Timestamp when the ticket was last updated in ISO 8601 format`}),scans:Ua$1(Eg).meta({description:`Array of all scan records for this ticket (check-ins and check-outs)`}),status:Og.meta({examples:[`ACTIVE`],description:`Current status of the ticket: ACTIVE (can be used), REDEEMED (already used), CANCELLED (invalidated or refunded)`}),attendee:xg.meta({description:`Attendee information for this ticket - editable by tenant admins`}),customerId:mn.meta({examples:[w$1.Ticket.customerId],description:`Unique identifier of the customer who purchased this ticket (read-only)`}),eventId:A$1.meta({examples:[w$1.Ticket.eventId],description:`Unique identifier of the event this ticket grants access to`}),event:Sg.meta({description:`Event details for this ticket`}),admissionId:N$1.meta({examples:[w$1.Ticket.admissionId],description:`Unique identifier of the admission type/tier this ticket represents`}),admission:bg.meta({description:`Admission details for this ticket`}),section:Dg.optional().meta({description:`Section details for this ticket (if assigned to a section)`}),orderId:un$1.meta({examples:[w$1.Ticket.orderId],description:`Unique identifier of the order this ticket was purchased in`}),orderItemId:ta$1().meta({examples:[w$1.Ticket.orderItemId],description:`Unique identifier of the specific order item this ticket represents`}).optional(),teamId:k$1.meta({examples:[w$1.Ticket.teamId],description:`Identifier of the team that owns this ticket`}),promoterId:M$1.meta({examples:[w$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.`}),Ag=Ga$1({kind:no$1([`CHECK_IN`,`CHECK_OUT`]).meta({description:`The most recent attendee scan action.`}),scannedAt:Ni$1().meta({description:`Timestamp for the most recent attendee scan.`})}),jg=no$1(`#ABCDEFGHIJKLMNOPQRSTUVWXYZ`.split(``)).meta({description:`Alpha navigation bucket key for attendee roster jumps.`}),Mg=Ga$1({key:jg,count:T$1().int().min(0).meta({description:`Number of roster rows currently available in this bucket.`}),anchor:ta$1().meta({description:`Server-issued bookmark for the first roster row in this bucket under the active filters.`})}),Ng=bg.pick({id:true,name:true,entryEndsAt:true}),Pg=Dg.pick({id:true,name:true}),Fg=Ga$1({id:dn$1.meta({examples:[w$1.Ticket.id],description:`Ticket identifier for this attendee roster row.`}),orderId:un$1.meta({examples:[w$1.Ticket.orderId],description:`Order identifier used to navigate to order details.`}),status:Og.meta({description:`Current ticket status for the attendee row.`}),attendee:xg.meta({description:`Editable attendee identity fields for this ticket.`}),admission:Ng.meta({description:`Admission snapshot needed for roster labels and expiry state.`}),section:Pg.optional().meta({description:`Optional section label shown in the roster row.`}),lastScan:Ag.optional().meta({description:`Most recent scan event for compact roster activity text.`}),lastCheckInAt:Ni$1().optional().meta({description:`Timestamp for the most recent check-in scan, used for checked-in labels.`})}),Ig=Ga$1({eventId:A$1.meta({examples:[w$1.Event.id],description:`Event identifier for the attendee alpha index.`}),admissionIds:Ua$1(N$1).optional().meta({examples:[[w$1.Admission.id]],description:`Optional admission filters used when computing available attendee buckets.`}),sectionIds:Ua$1(hn).optional().meta({examples:[[w$1.Section.id]],description:`Optional section filters used when computing available attendee buckets.`})}),Lg=Ga$1({buckets:Ua$1(Mg).meta({description:`Available attendee alpha buckets for the active filter set.`})}),Rg=T$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).`}),zg=Ga$1({eventId:A$1.meta({examples:[w$1.Event.id],description:`Event identifier for the attendee roster.`}),admissionIds:Ua$1(N$1).optional().meta({examples:[[w$1.Admission.id]],description:`Optional admission filters. When provided, only matching ticket admissions are included.`}),sectionIds:Ua$1(hn).optional().meta({examples:[[w$1.Section.id]],description:`Optional section filters. When provided, only matching ticket sections are included.`}),query:ta$1().optional().meta({examples:[`John`,`john@example.com`,`+61400000000`],description:`Optional attendee search query. Matches attendee name, email, and phone.`}),cursor:kn.optional(),before:kn.optional().meta({description:`Cursor for loading roster rows before the current window. Mutually exclusive with cursor and anchor.`}),anchor:ta$1().optional().meta({description:`Server-issued bookmark used to jump to a roster bucket. Mutually exclusive with cursor and before.`}),limit:Rg.optional()}),Bg=B$1(Fg,`tickets`),Vg=$$2.pick({status:true,admissionId:true,orderItemId:true}).extend({orderId:ta$1().meta({examples:[w$1.Order.id],description:`The order this ticket belongs to`}),customerId:ta$1().meta({examples:[w$1.Customer.id],description:`The customer who purchased this ticket`}),attendee:xg.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`}),Hg=$$2.pick({id:true}).extend({signature:vr.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`}),Ug=Ga$1({promoterId:ta$1().optional().meta({examples:[w$1.Promoter.id],description:`Filter tickets by promoter/organizer unique identifier (optional)`}),eventId:ta$1().optional().meta({examples:[w$1.Event.id],description:`Filter tickets by event unique identifier (optional)`}),customerId:ta$1().optional().meta({examples:[w$1.Customer.id],description:`Filter tickets by customer unique identifier (optional)`}),orderId:ta$1().optional().meta({examples:[w$1.Order.id],description:`Filter tickets by order unique identifier (optional)`}),status:Og.optional().meta({examples:[`ACTIVE`],description:`Filter tickets by status: ACTIVE (can be used), REDEEMED (already used), CANCELLED (invalidated or refunded)`}),orderSignature:vr.optional().meta({description:`Order signature used to access tickets for a specific order without permissions (16 characters, base64url encoded)`}),query:ta$1().optional().meta({examples:[`John Doe`],description:`Optional search query to filter tickets by customer details. When provided, search-backed pagination is used.`}),limit:L$1(`tickets`).optional(),cursor:ta$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`}),Wg=B$1($$2,`tickets`),Gg=Ga$1({ticket:$$2}),Kg=$$2.pick({id:true,eventId:true}).extend({key:$$2.shape.id.meta({description:`Transition key. Supports canonical ticket IDs (tkt_*) and order IDs (ord_*).`}),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:Da$1().optional().meta({description:`Confirms an order-level check-in when some tickets are already redeemed and some remain active.`}),admissionIds:Ua$1(N$1).optional().meta({description:`Optional scanner admission filters. When provided, check-in only applies to matching ticket admissions.`}),sectionIds:Ua$1(hn).optional().meta({description:`Optional scanner section filters. When provided, check-in only applies to matching ticket sections.`}),idempotencyKey:ta$1().trim().min(1).max(255).optional().meta({description:`Stable client-generated key used to replay a scan request without turning a timed-out success into a duplicate denial.`})}).omit({id:true}).meta({description:`Schema for check-in/check-out transitions addressed by key, where key may resolve to a ticket or order identifier.`}),qg=no$1([`ticket`,`order`]),Jg=no$1([`NOOP_TRANSITION`]),Yg=no$1([`PARTIAL_ORDER_CONFIRMATION_REQUIRED`]),Xg=no$1([`EVENT_MISMATCH`]),Zg=no$1([`FILTERED_OUT`]),Qg=Ga$1({id:$$2.shape.orderId,checkedInCount:Ca$1().int().nonnegative().optional(),items:Ua$1(Ga$1({quantity:Ca$1().int().positive()}))}),$g=Sg.pick({id:true,name:true,slug:true,entryStartsAt:true}).extend({teamId:$$2.shape.teamId}),e_=Ga$1({reason:Jg,kind:no$1([`CHECK_IN`,`CHECK_OUT`]),targetType:qg,order:Qg.optional(),ticket:$$2.optional()}),t_=Ga$1({reason:Xg,kind:no$1([`CHECK_IN`,`CHECK_OUT`]),targetType:qg,requestedEventId:$$2.shape.eventId.optional(),event:$g,order:Qg.optional(),ticket:$$2.optional()}),n_=Ga$1({reason:Yg,kind:io$1(`CHECK_IN`),targetType:io$1(`order`),order:Qg,ticket:$$2.optional()}),r_=Ga$1({reason:Zg,kind:io$1(`CHECK_IN`),targetType:qg,order:Qg.optional(),ticket:$$2.optional()}),i_=Ja$1([e_,t_,n_,r_]),a_=Ga$1({tickets:Ua$1($$2).meta({description:`Transition result tickets. Single-item array for ticket targets and full order tickets for order targets.`}),targetType:qg.meta({description:`Resolved target scope from the provided key.`}),order:Qg.optional()}),o_=no$1([`ACTIVE`,`CANCELLED`]).describe(`Status updates allowed via PATCH: ACTIVE (reactivate), CANCELLED (void). REDEEMED is set via scan endpoint.`),s_=Ga$1({id:ta$1().meta({examples:[w$1.Ticket.id],description:`Unique identifier of the ticket to update`}),status:o_.optional().meta({description:`Update ticket status: CANCELLED to void, ACTIVE to reactivate`}),attendee:xg.partial().nullable().optional().meta({description:`Attendee info. Pass object to set/update, null to clear, or omit to leave unchanged.`}),admissionId:ta$1().optional().meta({examples:[w$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.`}),c_={id:w$1.User.id,createdAt:w$1.User.createdAt,updatedAt:w$1.User.updatedAt,email:w$1.User.email,firstName:w$1.User.firstName,lastName:w$1.User.lastName,imageUrl:`https://assets.session.services/examples/avatar.jpg`,tenantId:w$1.User.tenantId},l_=Ga$1({id:ta$1().readonly().meta({description:`Unique identifier for the user`,examples:[w$1.User.id]}),createdAt:Ni$1().readonly().meta({description:`ISO 8601 timestamp when the user account was created`,examples:[w$1.User.createdAt]}),updatedAt:Ni$1().readonly().meta({description:`ISO 8601 timestamp when the user account was last updated`,examples:[w$1.User.updatedAt]}),email:ra().meta({description:`User's email address, used for authentication and communication`,examples:[w$1.User.email]}),firstName:ta$1().min(1).meta({description:`User's first name`,examples:[w$1.User.firstName]}),lastName:ta$1().min(1).meta({description:`User's last name`,examples:[w$1.User.lastName]}),imageUrl:oa$1().optional().meta({description:`Optional URL to the user's profile image or avatar`,examples:[`https://assets.session.services/examples/avatar.jpg`]}),metadata:eo$1(ta$1(),Dn).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:[c_]}),u_=Zh.meta({ref:`MeTeamMember`,description:`Team membership for the current user with denormalized user details and role-expanded team permissions.`}),d_=Ga$1({access:ta$1().meta({description:`JWT access token with updated user data`}),refresh:ta$1().meta({description:`Refresh token for obtaining new access tokens`})}).meta({ref:`Tokens`,description:`Authentication tokens for client session management`}),f_=Ga$1({user:l_.meta({description:`The updated user profile`}),tokens:d_.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.`}),p_=Ga$1({deleted:io$1(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.`}),m_=Ga$1({user:l_.nullable().meta({description:`Current authenticated user profile, null if not authenticated`}),isAdmin:Da$1().meta({description:`Whether the current user has admin privileges for the tenant`}),members:Ua$1(u_).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`}]}]}),h_=Ga$1({id:ta$1().readonly().meta({description:`Unique identifier for the venue`}),createdAt:Ni$1().readonly().meta({description:`Timestamp in ISO 8601 format when the venue was created`}),updatedAt:Ni$1().readonly().meta({description:`Timestamp in ISO 8601 format when the venue was last updated`}),teamId:ta$1().meta({description:`Team that manages this venue`}),locationId:j$1.meta({examples:[`loc_01h2xk3j9k8m2n5p7q9r1s3t4v`],description:`Location identifier for this venue`}),googlePlaceId:ta$1().optional().meta({examples:[`ChIJP3Sa8ziYEmsRUKgyFmh9AQM`],description:`Google Place ID when this venue is linked to a Google Places location`}),approval:E$1.meta({examples:[`APPROVED`],description:`Approval status of the venue`}),name:ta$1().min(3).max(100).meta({description:`Display name of the venue. Must be between 3 and 100 characters`}),slug:ta$1().min(3).meta({description:`URL-friendly slug for the venue. Must be unique within tenant`}),description:ta$1().max(500).optional().meta({description:`Short description of the venue for listings and discovery`}),image:F$1.optional().meta({description:`Venue image`}),contact:Ga$1({email:ra().optional().meta({description:`Public contact email for venue inquiries`}),phone:ta$1().optional().meta({description:`Public contact phone number`}),website:oa$1().optional().meta({description:`Venue website URL`}),instagram:ta$1().optional().meta({description:`Instagram profile URL`}),facebook:ta$1().optional().meta({description:`Facebook page URL`}),twitter:ta$1().optional().meta({description:`Twitter/X profile URL`}),tiktok:ta$1().optional().meta({description:`TikTok profile URL`}),youtube:ta$1().optional().meta({description:`YouTube channel URL`})}).optional().meta({description:`Public contact information and social media links`}),location:zo.omit({venueId:true}).meta({description:`Physical location details including address, coordinates, and timezone`}),geohash:ta$1().meta({description:`Geohash encoding of the venue's location for efficient spatial queries`}),capacity:Ca$1().int().min(1).optional().meta({description:`Maximum capacity of the venue (number of attendees)`}),metadata:On,deletedAt:Ni$1().readonly().optional().meta({description:`Timestamp in ISO 8601 format when the venue was soft-deleted. Null if not deleted`}),tenantId:ta$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.`}),g_=h_.omit({id:true,tenantId:true,createdAt:true,updatedAt:true,geohash:true,deletedAt:true,location:true,googlePlaceId:true,approval:true}).extend({slug:ta$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`}),__=Ga$1({key:ta$1().min(1).meta({description:`Venue key - either a unique ID (ven_xxx format) or URL-friendly slug`,examples:[w$1.Venue.id,w$1.Venue.slug]})}),v_=Ga$1({key:ta$1().meta({examples:[w$1.Venue.id,w$1.Venue.slug],description:`Venue key - either a unique ID (ven_xxx format) or URL-friendly slug`})}),y_=no$1([`createdAt`]),b_=no$1([`asc`,`desc`]),x_=Ka({teamId:ta$1().max(128).optional().meta({description:`Filter venues by owner team ID`}),approval:E$1.optional().meta({description:`Filter venues by approval status. PENDING: awaiting review, APPROVED: can be used for events, REJECTED: cannot be used`}),query:ta$1().max(120).optional().meta({description:`Optional search query for filtering venues by name or slug`}),latitude:T$1().min(-90).max(90).optional().meta({description:`Latitude for location-based search. Must be used with longitude`}),longitude:T$1().min(-180).max(180).optional().meta({description:`Longitude for location-based search. Must be used with latitude`}),radius:T$1().min(1).max(2e4).optional().meta({description:`Search radius in kilometers (1-20000). Requires latitude and longitude`}),sort:y_.optional().meta({examples:[`createdAt`],description:"Optional list sort field. Use `createdAt` to return newest or oldest venues first."}),direction:b_.optional().meta({examples:[`desc`],description:"Sort direction for venue lists. Defaults to `desc` when `sort` is provided."}),limit:L$1(`venues`),cursor:ta$1().max(768).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`}),S_=B$1(h_,`venues`).meta({description:`Paginated response containing venues with cursor for next page`}),C_=Ga$1({venue:h_}),w_=h_.omit({id:true,tenantId:true,teamId:true,createdAt:true,updatedAt:true,deletedAt:true,geohash:true}).partial().extend({key:ta$1().meta({examples:[w$1.Venue.id,w$1.Venue.slug],description:`Venue key - either a unique ID (ven_xxx format) or URL-friendly slug`}),description:ta$1().max(500).nullable().optional().meta({description:`Short description of the venue. Pass null to clear, omit to leave unchanged.`}),image:F$1.nullable().optional().meta({description:`Venue image. Pass null to clear, omit to leave unchanged.`}),capacity:Ca$1().int().min(1).nullable().optional().meta({description:`Maximum capacity. Pass null to clear, omit to leave unchanged.`}),contact:Ga$1({email:ra().optional(),phone:ta$1().optional(),website:oa$1().optional(),instagram:ta$1().optional(),facebook:ta$1().optional(),twitter:ta$1().optional(),tiktok:ta$1().optional(),youtube:ta$1().optional()}).nullable().optional().meta({description:`Contact information. Pass null to clear all contact fields, omit to leave unchanged.`}),googlePlaceId:ta$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.`});Ga$1({id:ta$1(),email:ra(),firstName:ta$1(),lastName:ta$1(),imageUrl:ta$1().url().optional(),tenantId:ta$1(),createdAt:ta$1().datetime(),updatedAt:ta$1().datetime()});const R_=no$1([`ORDER`,`EVENT`,`TEAM`,`TEAM_INVITE`]).meta({description:`Aggregate type this notification belongs to`}),z_=no$1([`ORDER_CONFIRMATION`,`REFUND_CONFIRMATION`,`ORDER_REMINDER`,`ORDER_CANCELLATION`,`ORDER_TIME_CHANGE`,`ORDER_VENUE_CHANGE`,`ORDER_TIME_AND_VENUE_CHANGE`,`ORDER_LOCATION_REVEAL`,`EVENT_APPROVAL_REQUEST`,`EVENT_APPROVAL_DECISION`,`TEAM_INVITE`,`ORDER_TICKETS_RESEND`,`INTERNAL_FEEDBACK`]).meta({description:`Notification kind`}),B_=no$1([`SMS`,`EMAIL`]).meta({description:`Delivery channel`}),V_=no$1([`PENDING`,`PROCESSING`,`SENT`,`DELIVERED`,`FAILED`,`CANCELLED`]).meta({description:`Current notification status`});Ga$1({id:Sn.meta({examples:[w$1.Notification.id],description:`Unique notification identifier`}),createdAt:Ni$1().readonly().meta({examples:[w$1.Notification.createdAt],description:`Timestamp when notification was created`}),updatedAt:Ni$1().readonly().meta({examples:[w$1.Notification.updatedAt],description:`Timestamp when notification was last updated`}),aggregateType:R_.meta({examples:[w$1.Notification.aggregateType]}),aggregateId:Ja$1([un$1,A$1,k$1,vn]).meta({examples:[w$1.Notification.aggregateId],description:`Aggregate identifier for the notification owner`}),eventId:A$1.optional().meta({examples:[w$1.Notification.eventId],description:`Associated event identifier when applicable`}),kind:z_.meta({examples:[w$1.Notification.kind]}),channel:B_.meta({examples:[w$1.Notification.channel]}),status:V_.meta({examples:[w$1.Notification.status]}),providerMessageId:ta$1().optional().meta({examples:[w$1.Notification.providerMessageId],description:`Provider message identifier`}),sentAt:Ni$1().optional().meta({examples:[w$1.Notification.sentAt],description:`Timestamp when provider accepted send request`}),deliveredAt:Ni$1().optional().meta({examples:[w$1.Notification.deliveredAt],description:`Timestamp when provider confirmed delivery`}),failedAt:Ni$1().optional().meta({examples:[w$1.Notification.failedAt],description:`Timestamp when notification failed`}),failureCode:ta$1().optional().meta({examples:[w$1.Notification.failureCode],description:`Failure code when notification is FAILED`}),failureReason:ta$1().optional().meta({examples:[w$1.Notification.failureReason],description:`Failure reason when notification is FAILED`})}).meta({description:`Notification delivery record`});Ga$1({id:P$1.meta({description:`Team member ID to delete`})});
96
-
97
- function Xu(e,t={}){let n=(e?.pipeThrough(new TextDecoderStream).pipeThrough(new $e$1))?.getReader(),r,i=false;return new Ce$1(async()=>{r??=ge$1(`consume_event_iterator_stream`);try{for(;;){if(n===void 0)return {done:true,value:void 0};let{done:e,value:t}=await be$1(r,()=>n.read());if(e){if(i)throw new fe$1(`Stream was cancelled`);return {done:true,value:void 0}}switch(t.event){case `message`:{let e=Ee$1(t.data);return Ae$1(e)&&(e=ct$1(e,t)),r?.addEvent(`message`),{done:false,value:e}}case `error`:{let e=new Xe$1({data:Ee$1(t.data)});throw e=ct$1(e,t),r?.addEvent(`error`),e}case `done`:{let e=Ee$1(t.data);return Ae$1(e)&&(e=ct$1(e,t)),r?.addEvent(`done`),{done:true,value:e}}default:r?.addEvent(`maybe_keepalive`);}}}catch(e){throw e instanceof Xe$1||_e$1(r,e,t),e}},async e=>{try{e!==`next`&&(i=true,r?.addEvent(`cancelled`)),await be$1(r,()=>n?.cancel());}catch(e){throw _e$1(r,e,t),e}finally{r?.end();}})}function Zu(e,t={}){let n=t.eventIteratorKeepAliveEnabled??true,r=t.eventIteratorKeepAliveInterval??5e3,i=t.eventIteratorKeepAliveComment??``,a=t.eventIteratorInitialCommentEnabled??true,o=t.eventIteratorInitialComment??``,s=false,c,l;return new ReadableStream({start(e){l=ge$1(`stream_event_iterator`),a&&e.enqueue(ot$1({comments:[o]}));},async pull(t){try{n&&(c=setInterval(()=>{t.enqueue(ot$1({comments:[i]})),l?.addEvent(`keepalive`);},r));let a=await be$1(l,()=>e.next());if(clearInterval(c),s)return;let o=lt$1(a.value);if(!a.done||a.value!==void 0||o!==void 0){let e=a.done?`done`:`message`;t.enqueue(ot$1({...o,event:e,data:De$1(a.value)})),l?.addEvent(e);}a.done&&(t.close(),l?.end());}catch(e){if(clearInterval(c),s)return;e instanceof Xe$1?(t.enqueue(ot$1({...lt$1(e),event:`error`,data:De$1(e.data)})),l?.addEvent(`error`),t.close()):(_e$1(l,e),t.error(e)),l?.end();}},async cancel(){try{s=true,clearInterval(c),l?.addEvent(`cancelled`),await be$1(l,()=>e.return?.());}catch(e){throw _e$1(l,e),e}finally{l?.end();}}}).pipeThrough(new TextEncoderStream)}function Qu(e,t={}){return ye$1({name:`parse_standard_body`,signal:t.signal},async()=>{let n=e.headers.get(`content-disposition`);if(typeof n==`string`){let t=dt$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 Ee$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 Xu(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 $u(e,t,n={}){if(e instanceof ReadableStream)return e;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??ut$1(e instanceof File?e.name:`blob`)),e):e instanceof FormData||e instanceof URLSearchParams?e:xe$1(e)?(t.set(`content-type`,`text/event-stream`),Zu(e,n)):(t.set(`content-type`,`application/json`),De$1(e))}function ed(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 td(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 nd(e,t={}){let n=td(e.headers),r=$u(e.body,n,t);return new Request(e.url,{signal:e.signal,method:e.method,headers:n,body:r})}function rd(e,t={}){return {body:pe$1(()=>Qu(e,t)),status:e.status,get headers(){let t=ed(e.headers);return Object.defineProperty(this,"headers",{value:t,writable:true}),t},set headers(e){Object.defineProperty(this,"headers",{value:e,writable:true});}}}var id=class{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);}},ad=class{constructor(e,t,n={}){this.codec=e,this.sender=t,new id(n.plugins).init(n),this.interceptors=ue$1(n.interceptors),this.clientInterceptors=ue$1(n.clientInterceptors);}interceptors;clientInterceptors;call(e,t,n){return ye$1({name:`${de$1}.${e.join(`/`)}`,signal:n.signal},r=>(r?.setAttribute(`rpc.system`,de$1),r?.setAttribute(`rpc.method`,e.join(`.`)),xe$1(t)&&(t=we$1({name:`consume_event_iterator_input`,signal:n.signal},t)),Te$1(this.interceptors,{...n,path:e,input:t},async({path:e,input:t,...n})=>{let i=he$1(),a,o=i?.trace.getActiveSpan()??r;o&&i&&(a=i?.trace.setSpan(i.context.active(),o));let s=await ye$1({name:`encode_request`,context:a},()=>this.codec.encode(e,t,n)),c=await Te$1(this.clientInterceptors,{...n,input:t,path:e,request:s},({input:e,path:t,request:n,...r})=>ye$1({name:`send_request`,signal:r.signal,context:a},()=>this.sender.call(n,r,t,e))),l=await ye$1({name:`decode_response`,context:a},()=>this.codec.decode(c,n,e,t));return xe$1(l)?we$1({name:`consume_event_iterator_output`,signal:n.signal},l):l})))}};function od(e){return `/${e.map(encodeURIComponent).join(`/`)}`}function sd(e){return typeof e.forEach==`function`?ed(e):e}function cd(e){return Object.entries(Re$1).find(([,t])=>t.status===e)?.[0]??`MALFORMED_ORPC_ERROR_RESPONSE`}var ld=class extends id{initRuntimeAdapter(e){for(let t of this.plugins)t.initRuntimeAdapter?.(e);}},ud=class{fetch;toFetchRequestOptions;adapterInterceptors;constructor(e){new ld(e.plugins).initRuntimeAdapter(e),this.fetch=e.fetch??globalThis.fetch.bind(globalThis),this.toFetchRequestOptions=e,this.adapterInterceptors=ue$1(e.adapterInterceptors);}async call(e,t,n,r){let i=nd(e,this.toFetchRequestOptions);return rd(await Te$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})}},dd=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(ke$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])&&!ke$1(a[o])&&(a[o]=[]),r===e.length-1?Array.isArray(a[o])&&(n===``?a[o].length&&!t.has(a[o])&&(a[o]=pd(a[o])):t.has(a[o])?(t.delete(a[o]),a[o]=md(a[o])):fd(n,this.maxArrayIndex)||(a[o]=pd(a[o]))):Array.isArray(a[o])&&!fd(n,this.maxArrayIndex)&&(t.has(a[o])?(t.delete(a[o]),a[o]=md(a[o])):a[o]=pd(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 fd(e,t){return /^0$|^[1-9]\d*$/.test(e)&&Number(e)<=t}function pd(e){let t=new Me$1;return e.forEach((e,n)=>{t[n]=e;}),t}function md(e){let t=new Me$1;return t[``]=e.length===1?e[0]:e,t}var hd=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(ke$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 gd(e){return `/${e.replace(/\/{2,}/g,`/`).replace(/^\/|\/$/g,``)}`}function _d(e){return e?gd(e).match(/\/\{[^}]+\}/g)?.map(e=>({raw:e,name:e.match(/\{\+?([^}]+)\}/)[1]})):void 0}var vd=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=sd(await Ne$1(this.headers,n,e,t));n.lastEventId!==void 0&&(r=ft$1(r,{"last-event-id":n.lastEventId}));let i=await Ne$1(this.baseUrl,n,e,t),a=je$1(this.contract,e);if(!bt$1(a))throw Error(`[StandardOpenapiLinkCodec] expect a contract procedure at ${e.join(`.`)}`);return At$1(`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=gd(e[`~orpc`].route.path??od(t)),s=n,c=_d(o);if(c?.length){if(!ke$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=At$1(`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=gd(e[`~orpc`].route.path??od(t)),s=_d(o);if(!ke$1(n)&&n!==void 0)throw TypeError(`[StandardOpenapiLinkCodec] Invalid input shape for "detailed" structure at ${t.join(`.`)}.`);if(s?.length){if(!ke$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(!ke$1(n.headers))throw TypeError(`[StandardOpenapiLinkCodec] Invalid input.headers shape for "detailed" structure at ${t.join(`.`)}.`);c=ft$1(n.headers,a);}let l=At$1(`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=!Ge$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 Error(t?`Invalid OpenAPI response format.`:`Cannot parse response body, please check the response body and content-type.`,{cause:e})}})();if(!r)throw this.customErrorResponseBodyDecoder?.(i,e)??(Ke$1(i)?qe$1(i):new He$1(cd(e.status),{status:e.status,data:{...e,body:i}}));let a=je$1(this.contract,n);if(!bt$1(a))throw Error(`[StandardOpenapiLinkCodec] expect a contract procedure at ${n.join(`.`)}`);return At$1(`defaultOutputStructure`,a[`~orpc`].route.outputStructure)===`compact`?i:{status:e.status,headers:e.headers,body:i}}},yd=class{constructor(e,t){this.jsonSerializer=e,this.bracketNotation=t;}serialize(e,t={}){return xe$1(e)&&!t.outputFormat?pt$1(e,{value:async e=>this.#e(e,{outputFormat:`plain`}),error:async e=>new Xe$1({data:this.#e(We$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())):xe$1(e)?pt$1(e,{value:async e=>e,error:async e=>e instanceof Xe$1&&Ke$1(e.data)?qe$1(e.data,{cause:e}):e}):e}},bd=class extends ad{constructor(e,t,n){let r=new vd(e,new yd(new hd(n),new dd({maxBracketNotationArrayIndex:4294967294})),n);super(r,t,n);}},xd=class extends bd{constructor(e,t){let n=new ud(t);super(e,n,t);}};const Dd=S$1.route({method:`GET`,path:`/events/{eventId}/admissions/{id}`,summary:`Get admission by ID`,tags:[`Admissions`]}).input(Dr.strict()).output(Pr),Od=S$1.route({method:`POST`,path:`/events/{eventId}/admissions`,summary:`Create a new admission`,tags:[`Admissions`]}).input(Tr.strict()).output(Pr),kd=S$1.route({method:`PUT`,path:`/events/{eventId}/admissions/{id}`,summary:`Update an admission`,tags:[`Admissions`]}).input(Fr.strict()).output(Pr);var Ad={get:Dd,list:S$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(Or.strict()).output(kr),create:Od,update:kd,remove:S$1.route({method:`DELETE`,path:`/events/{eventId}/admissions/{id}`,summary:`Delete an admission`,tags:[`Admissions`]}).input(Er.strict()).output(Pr),quote:S$1.route({method:`POST`,path:`/events/{eventId}/admissions/quote`,summary:`Create an admission quote`,tags:[`Admissions`]}).input(Mr.strict()).output(Nr)};const Q$1={BAD_REQUEST:{status:400,data:Ga$1({unresolvedRequired:Ua$1(ta$1()),unresolvedOptional:Ua$1(ta$1()).optional(),issues:Ua$1(ta$1()).optional()}).optional()}};var jd={track:S$1.route({method:`POST`,path:`/analytics/track`,summary:`Track event`,tags:[`Analytics`]}).input(Ua).errors(Q$1).output(za),page:S$1.route({method:`POST`,path:`/analytics/page`,summary:`Page event`,tags:[`Analytics`]}).input(Ua).errors(Q$1).output(za),identify:S$1.route({method:`POST`,path:`/analytics/identify`,summary:`Identify event`,tags:[`Analytics`]}).input(Ua).errors(Q$1).output(za),alias:S$1.route({method:`POST`,path:`/analytics/alias`,summary:`Alias event`,tags:[`Analytics`]}).input(Ua).errors(Q$1).output(za),group:S$1.route({method:`POST`,path:`/analytics/group`,summary:`Group event`,tags:[`Analytics`]}).input(Ua).errors(Q$1).output(za),screen:S$1.route({method:`POST`,path:`/analytics/screen`,summary:`Screen event`,tags:[`Analytics`]}).input(Ua).errors(Q$1).output(za)};const Md=Ga$1({expected:ta$1(),actual:ta$1()}),Nd=S$1.route({method:`GET`,path:`/beneficiaries/{id}`,summary:`Get beneficiary by ID`,tags:[`Beneficiaries`]}).input($a.strict()).output(ro),Pd=S$1.route({method:`POST`,path:`/beneficiaries`,summary:`Create a new beneficiary`,tags:[`Beneficiaries`]}).input(Qa.strict()).errors({BAD_REQUEST:{status:400,data:Md.optional()}}).output(ro);var Fd={get:Nd,list:S$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(to.strict()).output(no),create:Pd,remove:S$1.route({method:`DELETE`,path:`/beneficiaries/{id}`,summary:`Delete a beneficiary`,tags:[`Beneficiaries`]}).input(eo.strict()).output(ro),schema:po,validate:_o};const Id=Ga$1({code:ta$1()}),Ld=S$1.route({method:`GET`,path:`/coupon-codes/{id}`,summary:`Get coupon code by ID`,tags:[`Coupon Codes`]}).input(Co.strict()).output(jo),Rd=S$1.route({method:`POST`,path:`/coupon-codes`,summary:`Create a new coupon code`,tags:[`Coupon Codes`]}).input(Eo.strict()).errors({CONFLICT:{status:409,data:Id.optional()}}).output(jo),zd=S$1.route({method:`PUT`,path:`/coupon-codes/{id}`,summary:`Update a coupon code`,tags:[`Coupon Codes`]}).input(Do.strict()).output(jo);var Bd={get:Ld,list:S$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(ko.strict()).output(Ao),create:Rd,update:zd,remove:S$1.route({method:`DELETE`,path:`/coupon-codes/{id}`,summary:`Delete a coupon code`,tags:[`Coupon Codes`]}).input(Oo.strict()).output(jo)};const Vd=Ga$1({committedAndHeldUses:Ca$1(),requestedLimit:Ca$1()}),Hd=S$1.route({method:`GET`,path:`/coupons/{id}`,summary:`Get coupon by ID`,tags:[`Coupons`]}).input(No.strict()).output(Lo),Ud=S$1.route({method:`POST`,path:`/coupons`,summary:`Create a new coupon`,tags:[`Coupons`]}).input(Mo).output(Lo),Wd=S$1.route({method:`PUT`,path:`/coupons/{id}`,summary:`Update a coupon`,tags:[`Coupons`]}).input(Ro).errors({BAD_REQUEST:{status:400,data:Vd.optional()}}).output(Lo);var Gd={get:Hd,list:S$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(Fo.strict()).output(Io),create:Ud,update:Wd,remove:S$1.route({method:`DELETE`,path:`/coupons/{id}`,summary:`Delete a coupon`,tags:[`Coupons`]}).input(Po.strict()).output(Lo),code:Bd};const Kd=Ga$1({eventId:A$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:[w$1.Event.id]}),description:ta$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:ta$1().optional().meta({description:`Optional event name for additional context`,examples:[`Warehouse Sessions Vol. 5`]}),imageUrl:oa$1().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`}),qd=Ga$1({genres:Ua$1(en$1).max(5).meta({description:`Suggested music genres based on event description and artwork`,examples:[[`Tech House`,`Melodic Techno`]]}),categories:Ua$1(Qt$1).max(10).meta({description:`Suggested event categories based on description and artwork`,examples:[[`Warehouse`,`Underground`,`BYO`]]}),confidence:Ca$1().min(0).max(1).meta({description:`AI confidence score for the suggestions (0-1)`,examples:[.85]}),startDate:ta$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:ta$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:ta$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:oa$1().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`});Ga$1({estimatedInputTokens:Ca$1().int().meta({description:`Estimated input tokens for the request`,examples:[500]}),estimatedOutputTokens:Ca$1().int().meta({description:`Estimated output tokens for the response`,examples:[100]}),estimatedCostUsd:Ca$1().meta({description:`Estimated cost in USD`,examples:[.002]}),includesImage:Da$1().meta({description:`Whether the estimate includes image analysis`,examples:[true]})}).meta({description:`Cost estimate for an AI tag suggestion request`});var Jd={suggestTags:S$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(Kd.strict()).output(qd)};const Yd=Ga$1({eventId:A$1.meta({description:`Event to like`})}).meta({description:`Request to like an event`}),Xd=Ga$1({limit:L$1(`likes`),cursor:ta$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.`}),Zd=Ga$1({tenantId:ta$1().readonly().meta({description:`Tenant ID for multi-tenant isolation`}),userId:ln.readonly().meta({description:`User who liked the event`}),eventId:A$1.meta({description:`Event the user liked`}),createdAt:Ni$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.`}),Qd=B$1(Zd,`likes`).meta({description:`Paginated list of event likes. Use cursor-based pagination to navigate through results.`}),$d=Ga$1({eventId:A$1.meta({description:`Event to remove like from`})}).meta({description:`Request to remove the current user's like from an event`}),ef=Ga$1({like:Zd});var tf={add:S$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(Yd).output(ef),remove:S$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($d).output(za$1()),list:S$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(Xd).output(Qd)};const nf=xi.extend({limit:T$1().min(1).max(100).optional().default(10)}),rf=yi.extend({limit:T$1().min(1).max(100).optional().default(10)}),af=Di.extend({limit:T$1().min(1).max(100).optional().default(10)}),of=Ci.extend({limit:T$1().min(1).max(100).optional().default(10)}),sf=Ti.extend({limit:T$1().min(1).max(100).optional().default(10)}),cf=ki.extend({limit:T$1().min(1).max(100).optional().default(10)}),lf=ji.extend({limit:T$1().min(1).max(100).optional().default(10)}),uf=Ri.extend({limit:T$1().min(1).max(50).optional().default(10)}),df=Bi.extend({includeAdmission:Yt$1().optional().default(true),includeSection:Yt$1().optional().default(true)}),ff=Gi.extend({});var pf={summary:S$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(ni).output(ri),tickets:S$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(ii).output(ai),timeseries:S$1.route({method:`GET`,path:`/events/{eventId}/performance/timeseries`,summary:`Get event metric time series`,description:`Per-bucket series of revenue, tickets, orders, page views, visitors, and conversion rate for the selected range`,tags:[`Event Performance`]}).input(si).output(ci),funnel:S$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(li).output(ui),campaigns:S$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(nf).output(Si),coupons:S$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(rf).output(bi),mediums:S$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(of).output(wi),devices:S$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(sf).output(Ei),browsers:S$1.route({method:`GET`,path:`/events/{eventId}/performance/browsers`,summary:`Get browser performance`,description:`Traffic breakdown by browser from tracking events`,tags:[`Event Performance`]}).input(af).output(Oi),locations:S$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(cf).output(Ai),traffic:S$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(lf).output(Mi),attendance:S$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(Ni).output(Li),scanners:S$1.route({method:`GET`,path:`/events/{eventId}/performance/scanners`,summary:`Get door staff scanner activity`,description:`Ranked check-in activity by scanner for post-event door staff analytics`,tags:[`Event Performance`]}).input(uf).output(zi),turnout:S$1.route({method:`GET`,path:`/events/{eventId}/performance/turnout`,summary:`Get event turnout analysis`,description:`Post-event sold versus checked-in tickets by admission and section`,tags:[`Event Performance`]}).input(df).output(Wi),pace:S$1.route({method:`GET`,path:`/events/{eventId}/performance/pace`,summary:`Get event check-in pace`,description:`Post-event check-in flow over the admission entry window with peak door volume`,tags:[`Event Performance`]}).input(ff).output(Ki)};const mf=S$1.route({method:`GET`,path:`/events/slugs`,summary:`List event slugs`,description:`List current event slugs with the same filters and access rules as event lists. Supports skip/limit pagination for sitemap generation.`,tags:[`Events`]}).input(ks).output(As),hf=S$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(vs).output(os),gf=S$1.route({method:`POST`,path:`/events`,summary:`Create a new event`,tags:[`Events`]}).input(ms.strict()).output(Es),_f=S$1.route({method:`POST`,path:`/events/{key}/duplicate`,summary:`Duplicate an event`,description:`Create a new event by copying event details, sections, and admissions from an existing event.`,tags:[`Events`]}).input(gs.strict()).output(Es),vf=S$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(Ms.strict()).output(Es),yf={get:S$1.route({method:`GET`,path:`/events/{key}/approval`,summary:`Get event approval status`,description:`Get internal event approval status and reviewer feedback. Requires event.read permission on the event owner team.`,tags:[`Events`]}).input(ls.strict()).output(ds),request:S$1.route({method:`POST`,path:`/events/{key}/approval/request`,summary:`Request event approval`,description:`Request or resubmit event approval. Requires event.write permission on the event owner team.`,tags:[`Events`]}).input(fs.strict()).output(Es),update:S$1.route({method:`PUT`,path:`/events/{key}/approval`,summary:`Approve or reject an event`,description:`Approve or reject an event. Requires event.write permission on the tenant admin team.`,tags:[`Events`]}).input(ps.strict()).output(Es)};var bf={slugs:mf,get:hf,list:S$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(Cs).output(Ts),create:gf,duplicate:_f,update:vf,approval:yf,remove:S$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(hs.strict()).output(Es),feature:S$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(_s.strict()).output(Es),like:tf,performance:pf,tags:Jd.suggestTags},xf={get:S$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(Ls.strict()).output(Vs),list:S$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(zs.strict()).output(Bs),create:S$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(Is.strict()).output(Rs),accept:S$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(Ps.strict()).output(Vs),remove:S$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(Ls.strict()).output(za$1())};const Sf=Ga$1({language:ta$1().trim().max(80).optional(),platform:ta$1().trim().max(120).optional(),timezone:ta$1().trim().max(120).optional(),userAgent:ta$1().trim().max(800).optional(),viewport:Ga$1({width:Ca$1().int().positive().max(1e4),height:Ca$1().int().positive().max(1e4),devicePixelRatio:Ca$1().positive().max(10).optional()}).optional()}),Cf=Ga$1({key:ta$1().trim().min(1),message:ta$1().trim().min(10).max(4e3),pageUrl:oa$1().max(2e3),pageTitle:ta$1().trim().max(300).optional(),browser:Sf.optional()}),wf=Ga$1({ok:io$1(true)}),Tf=Ga$1({file:Na$1().describe(`Image file to upload (max 10MB)`),folder:no$1([`avatars`,`events`,`teams`,`promoters`,`venues`]).describe(`Folder to upload to`),width:T$1().int().positive().optional().describe(`Target width in pixels`),height:T$1().int().positive().optional().describe(`Target height in pixels`)}),Ef=F$1,Df=S$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(Tf.strict()).output(Ef);var Of={shareFeedback:S$1.route({method:`POST`,path:`/internal/feedback`,summary:`Share product feedback`,description:`Send authenticated tenant dashboard feedback to the Sessions team.`,tags:[`Internal`]}).input(Cf.strict()).output(wf),uploadImage:Df},kf={list:S$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(Us.strict()).output(Gs),get:S$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(Hs.strict()).output(Ks)},Af={create:S$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(Lc.strict()).output(Ml),update:S$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(ep$1.strict()).output(Ml),remove:S$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(Hc.strict()).output(za$1())};const jf=S$1.route({method:`GET`,path:`/orders/{id}`,summary:`Get order by ID`,tags:[`Orders`]}).input(ol.strict()).output(Ml),Mf=S$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`, advanced filters, and deterministic sorting.",tags:[`Orders`]}).input(bl.strict()).output(xl),Nf=S$1.route({method:`POST`,path:`/orders/quote`,summary:`Create order quote`,tags:[`Orders`]}).input(Cl.strict()).output(wl);var Pf={get:jf,list:Mf,create:S$1.route({method:`POST`,path:`/orders`,summary:`Create a new order`,tags:[`Orders`]}).input(Vc.strict()).output(Ml),createComplimentary:S$1.route({method:`POST`,path:`/orders/complimentary`,summary:`Create a complimentary order`,tags:[`Orders`]}).input(zc.strict()).output(Ml),update:S$1.route({method:`PUT`,path:`/orders/{id}`,summary:`Update an order`,tags:[`Orders`]}).input($f$1.strict()).output(Ml),reserve:S$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(kl.strict()).errors({BAD_REQUEST:{status:400,data:jl.optional()}}).output(Ml),quote:Nf,resend:S$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(Ol.strict()).output(Ml),refund:S$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(El.strict()).output(Dl),note:Af};const Ff=Ga$1({payout:Q$2});var If={create:S$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(Sp$1.strict()).output(Ff),update:S$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(fm.strict()).output(Ff),remove:S$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(Ap.strict()).output(Ff)},Lf={get:S$1.route({method:`GET`,path:`/payouts/{id}`,summary:`Get payout by ID with breakdown`,tags:[`Payouts`]}).input(jp.strict()).output(cm),list:S$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(Pp.strict()).output(Fp),preview:S$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(Wp.strict()).output(Up),adjustments:S$1.route({method:`GET`,path:`/payouts/adjustments`,summary:`List Airwallex payout adjustments`,description:`Returns settlement-proven Airwallex refund and dispute adjustments grouped for tenant payout review.`,tags:[`Payouts`]}).input(am.strict()).output(om),adjustment:S$1.route({method:`GET`,path:`/payouts/adjustments/{id}`,summary:`Get payout adjustment by ID`,description:`Returns a payout adjustment detail payload with related adjustment rows, applications, and upcoming payout projections.`,tags:[`Payouts`]}).input($p.strict()).output(sm),stats:S$1.route({method:`POST`,path:`/payouts/stats`,summary:`Get payout statistics`,tags:[`Payouts`]}).input(um.strict()).output(lm),breakdown:S$1.route({method:`GET`,path:`/payouts/{payoutId}/breakdown`,summary:`Get payout breakdown`,tags:[`Payouts`]}).input(np$1.strict()).output(Dp),update:S$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(dm.strict()).output(Q$2),note:If};const $$1=Ga$1({key:ta$1(),memberId:ta$1()}),Rf=$$1.merge(vm).strict();var zf={get:S$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(Rf).output(hm),list:S$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($$1.merge(ym).strict()).output(bm),create:S$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($$1.and(_m)).output(hm),update:S$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($$1.extend({id:ta$1()}).merge(xm).strict()).output(hm),remove:S$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(Rf).output(hm)},Bf={summary:S$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(qi).output(Ji),revenue:S$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(Yi).output(Xi),events:S$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(Zi).output(Qi)};const Vf=Ga$1({eventCount:Ca$1().optional()}),Hf=S$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(Zm.strict()).output(ch),Uf=S$1.route({method:`POST`,path:`/promoters`,summary:`Create a new promoter`,description:`Create a new promoter brand within a team`,tags:[`Promoters`]}).input($m.strict()).output(ch),Wf=S$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(lh.strict()).output(ch);var Gf={get:Hf,list:S$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(oh.strict()).output(sh),create:Uf,update:Wf,remove:S$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(eh.strict()).errors({CONFLICT:{status:409,data:Vf.optional()}}).output(ch),performance:Bf},Kf={create:S$1.route({method:`POST`,path:`/reports`,summary:`Create report generation job`,description:`Creates an asynchronous report job. Download the report once the job status is COMPLETED.`,tags:[`Reports`]}).input(mh).output(gh),get:S$1.route({method:`GET`,path:`/reports/{id}`,summary:`Get report generation job`,tags:[`Reports`]}).input(hh.strict()).output(gh)};const qf=S$1.route({method:`GET`,path:`/events/{eventId}/sections/{id}`,summary:`Get section by ID`,tags:[`Sections`]}).input(fl.strict()).output(hl),Jf=S$1.route({method:`POST`,path:`/events/{eventId}/sections`,summary:`Create a new section`,tags:[`Sections`]}).input(ul.strict()).output(hl),Yf=S$1.route({method:`PUT`,path:`/events/{eventId}/sections/{id}`,summary:`Update a section`,tags:[`Sections`]}).input(gl.strict()).output(hl);var Xf={get:qf,list:S$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(pl.strict()).output(ml),create:Jf,update:Yf,remove:S$1.route({method:`DELETE`,path:`/events/{eventId}/sections/{id}`,summary:`Delete a section`,tags:[`Sections`]}).input(dl.strict()).output(hl)},Zf={summary:S$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($i).output(ea),revenue:S$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(ta).output(na),funnel:S$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(sa).output(ca),traffic:S$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(pa).output(ma),insights:S$1.route({method:`GET`,path:`/teams/{teamId}/performance/insights`,summary:`Get team performance insights`,description:`Order-backed revenue, tickets, refund, and dispute totals for an exact time window`,tags:[`Team Performance`]}).input(ha).output(va),payouts:S$1.route({method:`GET`,path:`/teams/{teamId}/performance/payouts`,summary:`Get team payout performance`,description:`Upcoming and recently paid payout totals aggregated across the team`,tags:[`Team Performance`]}).input(ba).output(wa),finance:S$1.route({method:`GET`,path:`/teams/{teamId}/performance/finance`,summary:`Get team finance overview`,description:`Finance overview combining gross order value with payout and adjustment data`,tags:[`Team Performance`]}).input(Ta).output(ja),events:S$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(aa).output(oa),admissions:S$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(da).output(fa),orders:S$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(la).output(ua),tracking:S$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(Ma).output(Na)},Qf={get:S$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(Th.strict()).output(Wh),list:S$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(Rh.strict()).output(zh),create:S$1.route({method:`POST`,path:`/teams`,summary:`Create a new team`,description:`Create a new team organization`,tags:[`Teams`]}).input(Eh.strict()).output(Wh),slugAvailability:S$1.route({method:`GET`,path:`/teams/slugs/{slug}/availability`,summary:`Check team slug availability`,description:`Check whether a team URL slug is available within the current tenant.`,tags:[`Teams`]}).input(Jh.strict()).output(Yh),update:S$1.route({method:`PATCH`,path:`/teams/{key}`,summary:`Update a team`,description:`Update an existing team by ID or slug`,tags:[`Teams`]}).input(Xh.strict()).output(Wh),remove:S$1.route({method:`DELETE`,path:`/teams/{key}`,summary:`Delete a team`,description:`Soft delete a team by ID or slug`,tags:[`Teams`]}).input(Th.strict()).output(Wh),performance:Zf},$f={list:S$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(Nh.strict()).output(Ph),get:S$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(Mh.strict()).output(Fh),create:S$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(jh.strict()).output(Fh),accept:S$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(_h.strict()).output(Qh),resend:S$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(Mh.strict()).output(Fh),cancel:S$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(Ah.strict()).output(Fh)},ep={connect:S$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(Vh.strict()).output(Hh),disconnect:S$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(Uh.strict()).output(Sh),gateway:{update:S$1.route({method:`PATCH`,path:`/teams/{key}/payment/gateway`,summary:`Update Stripe Connect event routing`,description:`Configure whether Stripe Connect applies to every team event or only selected events.`,tags:[`Team Payments`]}).input(bh.strict()).output(Sh)}};const tp=S$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(gg),np=S$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(_g);var rp={approvals:S$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(vg).output(yg),config:tp,regions:np};const ip=S$1.route({method:`GET`,path:`/tickets/{id}`,summary:`Get ticket by ID`,tags:[`Tickets`]}).input(Hg.strict()).output(Gg),ap=S$1.route({method:`POST`,path:`/tickets`,summary:`Create a new ticket`,tags:[`Tickets`]}).input(Vg.strict()).output(Gg),op=S$1.route({method:`PUT`,path:`/tickets/{id}`,summary:`Update a ticket`,tags:[`Tickets`]}).input(s_.strict()).output(Gg),sp=S$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(Ug.strict()).output(Wg),cp=S$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(zg.strict()).output(Bg),lp=S$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(Ig.strict()).output(Lg),up=S$1.route({method:`PUT`,path:`/tickets/{key}/check-in`,summary:`Check in tickets by key`,tags:[`Tickets`]}).input(Kg.strict()).errors({BAD_REQUEST:{status:400,data:i_.optional()}}).output(a_),dp=S$1.route({method:`PUT`,path:`/tickets/{key}/check-out`,summary:`Check out tickets by key`,tags:[`Tickets`]}).input(Kg.strict()).errors({BAD_REQUEST:{status:400,data:i_.optional()}}).output(a_);var fp={get:ip,list:sp,attendees:{list:cp,index:lp},create:ap,update:op,checkInByKey:up,checkOutByKey:dp};const pp=S$1.route({method:`GET`,path:`/users/me`,summary:`Get the current user and their team memberships`,tags:[`Users`]}).output(m_),mp=Ga$1({firstName:ta$1().min(1).optional(),lastName:ta$1().min(1).optional(),imageUrl:oa$1().nullable().optional(),metadata:eo$1(ta$1(),Dn).optional(),refreshToken:ta$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`}),hp=S$1.route({method:`PATCH`,path:`/users/me`,summary:`Update the current user's profile`,tags:[`Users`]}).input(mp).output(f_);var gp={me:pp,remove:S$1.route({method:`DELETE`,path:`/users/me`,summary:`Delete the current user's account`,tags:[`Users`]}).output(p_),update:hp};const _p={analytics:jd,beneficiary:Fd,section:Xf,event:bf,eventCollaborator:xf,admission:Ad,order:Pf,ticket:fp,location:kf,coupon:Gd,payout:Lf,teams:Xm,permissionScope:zf,promoter:Gf,report:Kf,team:Qf,teamInvite:$f,teamPayment:ep,teamMember:pg,tenant:rp,venue:{get:S$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(v_.strict()).output(C_),list:S$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(x_.strict()).output(S_),create:S$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(g_.strict()).output(C_),update:S$1.route({method:`PATCH`,path:`/venues/{key}`,summary:`Update a venue`,description:`Update an existing venue. Cannot change venue ownership (teamId)`,tags:[`Venues`]}).input(w_.strict()).output(C_),remove:S$1.route({method:`DELETE`,path:`/venues/{key}`,summary:`Delete a venue`,description:`Soft delete a venue`,tags:[`Venues`]}).input(__.strict()).output(C_),linkLocation:S$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(v_.extend({locationKey:ta$1().meta({description:`Location ID (loc_xxx) or Google Place ID to link to this venue`,examples:[`loc_01jps5cgsm7qxvh6watsons0eq`,`ChIJP3Sa8ziYEmsRUKgyFmh9AQM`]})}).strict()).output(C_),unlinkLocation:S$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(v_.extend({locationKey:ta$1().meta({description:`Location ID (loc_xxx) or Google Place ID to unlink from this venue`,examples:[`loc_01jps5cgsm7qxvh6watsons0eq`,`ChIJP3Sa8ziYEmsRUKgyFmh9AQM`]})}).strict()).output(C_)},user:gp},vp={..._p,internal:Of};function yp(e){return S$1.errors(on).router(e)}const bp=yp(_p);yp(vp);const xp=bp,Sp={sandbox:`https://api.sandbox.session.services`,prod:`https://api.session.services`};function Cp(e){return e in Sp?Sp[e]:e}function wp(e){return gt$1(new xd(xp,{url:Cp(e.environment),headers:{"x-tenant-id":e.tenantId??`tnt_01jqpj2t2kfvmstt6f6tzkbaf2`,...e.headers??{}}}))}
98
-
99
- const i=`sessions_attribution`;function a(e,t){return e.get(t)||void 0}function o(e){return {source:a(e,`utm_source`),medium:a(e,`utm_medium`),name:a(e,`utm_campaign`),term:a(e,`utm_term`),content:a(e,`utm_content`)}}function s(e){return !!(e&&Object.values(e).some(Boolean))}function c(){try{let e=window.localStorage?.getItem(i);if(!e)return;let t=JSON.parse(e);if(!t||typeof t!=`object`){window.localStorage?.removeItem(i);return}let n=t;if(!n.expiresAt||n.expiresAt<=Date.now()){window.localStorage?.removeItem(i);return}return n}catch{return}}function l(){let e=c();if(!e)return;let t={source:u(e.utm_source),medium:u(e.utm_medium),name:u(e.utm_campaign),term:u(e.utm_term),content:u(e.utm_content)};return s(t)?t:void 0}function u(e){return typeof e==`string`&&e.length>0?e:void 0}function d(e){if(s(e))try{window.localStorage?.setItem(i,JSON.stringify({...c(),expiresAt:Date.now()+2592e6,utm_campaign:e?.name,utm_content:e?.content,utm_medium:e?.medium,utm_source:e?.source,utm_term:e?.term}));}catch{return}}function f(){if(typeof window>`u`)return;let e=o(new URLSearchParams(window.location.search));return s(e)?(d(e),e):l()}function p(e){return {anonymous_id:e.anonymousId,browser:_(e.context.userAgent),browser_session_id:e.sessionId,device_type:h(e.context.userAgent),page_path:e.context.page.path,page_title:e.context.page.title,page_url:e.context.page.url,referrer:e.context.page.referrer,user_agent:e.context.userAgent||void 0,utm_campaign:e.context.campaign?.name,utm_content:e.context.campaign?.content,utm_medium:e.context.campaign?.medium,utm_source:e.context.campaign?.source,utm_term:e.context.campaign?.term}}function m(){return typeof window>`u`?{page:{url:``,path:``,title:``,referrer:void 0},userAgent:``,campaign:void 0}:{page:{url:window.location.href,path:window.location.pathname,title:document.title,referrer:document.referrer||void 0},userAgent:navigator.userAgent,campaign:f()}}function h(e){let t=e.toLowerCase();return t?ee(t)?`TABLET`:g(t)?`MOBILE`:`DESKTOP`:`DESKTOP`}function ee(e){return /ipad|tablet|playbook|silk|kindle|sm-t|tab/.test(e)?true:/android/.test(e)&&!/mobile/.test(e)}function g(e){return /iphone|ipod|android|windows phone|blackberry|bb10|mobile/.test(e)}function _(e){let t=e.toLowerCase();return t?t.includes(`instagram`)?`Instagram App`:/fban|fbav|fb_iab|fbios|facebook/.test(t)?`Facebook App`:/tiktok|musical_ly|bytedance|bytelo/.test(t)?`TikTok App`:t.includes(`snapchat`)?`Snapchat App`:t.includes(`pinterest`)?`Pinterest App`:t.includes(`linkedin`)?`LinkedIn App`:/twitter|twitterandroid/.test(t)?`X App`:t.includes(`micromessenger`)?`WeChat App`:/\bline\//.test(t)?`LINE App`:t.includes(`gsa/`)?`Google App`:/edg\/|edge|edgios|edga/.test(t)?`Edge`:t.includes(`samsungbrowser`)?`Samsung Internet`:/opr\/|opera|opios/.test(t)?`Opera`:/firefox|fxios/.test(t)?`Firefox`:t.includes(`crios`)?`Chrome`:/iphone|ipod|ipad/.test(t)&&t.includes(`safari`)?`Mobile Safari`:t.includes(`android`)&&t.includes(`wv`)?`Android WebView`:/chrome|chromium/.test(t)?`Chrome`:t.includes(`safari`)?`Safari`:`Other`:`Unknown`}function v(e,t,n){n==null||n===``||(e[t]=n);}function y(...e){return e.find(e=>e!=null&&e!==``)}function te(e,t){v(e,`content_name`,t.name),v(e,`value`,y(t.value,t.price)),e.content_type=`product`;}function b(e){return (t,n)=>{e(t,n.product_id),te(t,n);}}function ne(e){return (t,n)=>{e(t,n),v(t,`content_category`,n.category);}}function re(e,t){v(e,`value`,y(t.value,t.total));}function ie(e,t){v(e,`value`,y(t.value,t.total,t.revenue));}function ae(e,t){if(Array.isArray(e))return e.map(t)}const oe={"Product Viewed":`ViewContent`,"Product Added":`AddToCart`,"Checkout Started":`InitiateCheckout`,"Payment Info Entered":`AddPaymentInfo`,"Order Completed":`Purchase`},se=new Set([`AddPaymentInfo`,`AddToCart`,`AddToWishlist`,`CompleteRegistration`,`Contact`,`CustomizeProduct`,`Donate`,`FindLocation`,`InitiateCheckout`,`Lead`,`Purchase`,`Schedule`,`Search`,`StartTrial`,`SubmitApplication`,`Subscribe`,`ViewContent`]),x=new Set,S=new Map;function ce(){return Array.from(document.scripts??[]).some(e=>e.src.includes(`connect.facebook.net/en_US/fbevents.js`))}function le(e){if(ce())return true;let t=document.createElement(`script`);t.async=true,t.src=`https://connect.facebook.net/en_US/fbevents.js`,t.addEventListener?.(`load`,()=>{w(e,`[Facebook Pixel] fbevents.js loaded`);}),t.addEventListener?.(`error`,()=>{w(e,`[Facebook Pixel] fbevents.js failed to load`);});let n=document.getElementsByTagName(`script`)[0],r=n?.parentNode??document.head??document.body;return r?(r.insertBefore(t,n??null),w(e,`[Facebook Pixel] inserted fbevents.js`),true):false}function C(e,t){!t||!Array.isArray(t)||(e.content_ids=t.flatMap(e=>e.product_id?[e.product_id]:[]),e.num_items=t.length,e.contents=ae(t,e=>({id:e.product_id,quantity:e.quantity||1,item_price:e.price})));}function ue(e){if(typeof window>`u`)return false;let t=window;if(t.fbq)return le(e);let n=((...e)=>{n.callMethod?n.callMethod(...e):n.queue.push(e);});return n.push=n,n.loaded=true,n.version=`2.0`,n.queue=[],t.fbq=n,t._fbq||=n,le(e)}function de(e,t){let n=window;typeof window>`u`||!n.fbq||(t?n.fbq(`init`,e,{external_id:t}):n.fbq(`init`,e));}function fe(e,t,n){let r=window;typeof window>`u`||!r.fbq||r.fbq(e,t,n);}function w(e,...t){e&&console.log(...t);}function pe(e,t,n){let r=S.get(e);return !t||t===r?false:(de(e,t),S.set(e,t),x.add(e),w(n,`[Facebook Pixel] Re-initialized pixel ${e} with userId ${t}`),true)}function me(e,t,n){de(e,t),x.add(e),t&&S.set(e,t),w(n,`[Facebook Pixel] Initialized pixel ${e}`);}function T(e,t,n){return ue(n)?(pe(e,t,n)||x.has(e)||me(e,t,n),true):false}function he(e,t){t&&(e.content_ids=[t]);}const ge=b(he),_e=ne(ge);function ve(e,t){ge(e,t),t.product_id&&(e.contents=[{id:t.product_id,quantity:t.quantity||1,item_price:t.price}]);}function ye(e,t){C(e,t.products),e.content_type=`product`;}function E(e,t){C(e,t.products),re(e,t),e.content_type=`product`,v(e,`order_id`,t.order_id);}function be(e,t){C(e,t.products),ie(e,t),e.content_type=`product`,v(e,`order_id`,t.order_id);}function xe(e,t){v(e,`value`,t.value),t.product_id&&(e.content_ids=[t.product_id]);}const D={ViewContent:_e,AddToCart:ve,InitiateCheckout:E,AddPaymentInfo:E,Purchase:be,"Product List Viewed":ye,"Product Removed":ve,"Cart Viewed":E,"Coupon Applied":E,"Coupon Removed":E};function Se(e,t){let n={};return v(n,`currency`,t.currency),v(n,`event_id`,t.event_id),(D[e.name]??D[e.sourceName]??xe)(n,t),n}function Ce(e){return e.name||`Unknown`}function O(e,t=2){let n=e.trim();if(!n.includes(`%`)||t===0)return n;try{return O(decodeURIComponent(n),t-1)}catch{return n}}function we(e){let t=e.match(/[A-Za-z0-9]+/g);return t?t.map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(``):`Unknown`}function Te(e){let t=O(Ce(e)),n=oe[t]||t;return se.has(n)?{method:`track`,name:n,sourceName:t}:{method:`trackCustom`,name:we(n),sourceName:t}}function Ee(e=false){let t=(t,n)=>{n.fbId&&T(n.fbId,t.userId,e);},n=(t,n)=>{if(!n.fbId||!T(n.fbId,t.userId,e))return;let r=Te(t),i=Se(r,t.properties);fe(r.method,r.name,i),w(e,`[Facebook Pixel] Sent ${r.name}:`,i);},r=(t,n)=>{n.fbId&&T(n.fbId,t.userId,e)&&(fe(`track`,`PageView`,{}),w(e,`[Facebook Pixel] Sent PageView`));};return {name:`Facebook Pixel`,preload:t,track:n,page:r,screen:r,identify:(t,n)=>{!n.fbId||!t.userId||(T(n.fbId,t.userId,e),w(e,`[Facebook Pixel] Identity synced: ${t.userId}`));}}}const De={"Product Viewed":`view_item`,"Product Added":`add_to_cart`,"Product Removed":`remove_from_cart`,"Checkout Started":`begin_checkout`,"Payment Info Entered":`add_payment_info`,"Order Completed":`purchase`,"Product List Viewed":`view_item_list`,"Cart Viewed":`view_cart`,"Coupon Entered":`coupon_entered`,"Coupon Applied":`coupon_applied`,"Coupon Denied":`coupon_denied`,"Coupon Removed":`coupon_removed`},k=new Set;function Oe(e){return !!(e&&/^G-[A-Z0-9]+$/.test(e))}function A(e){return `google-analytics-${e}`}function ke(e){if(document.getElementById(A(e)))return;let t=document.createElement(`script`);t.id=A(e),t.async=true,t.src=`https://www.googletagmanager.com/gtag/js?id=${e}`;let n=document.getElementsByTagName(`script`)[0];n?.parentNode?.insertBefore(t,n);}function Ae(e,t){if(typeof window>`u`)return false;let n=window;return n.dataLayer=n.dataLayer||[],n.gtag||(n.gtag=(...e)=>{n.dataLayer?.push(e);},n.gtag(`js`,new Date)),ke(e),k.has(e)?true:(n.gtag(`config`,e,{send_page_view:false}),k.add(e),N(t,`[Google Analytics] Initialized ${e}`),true)}function j(e,t,n){if(typeof window>`u`)return;let r=window;r.gtag&&r.gtag(`event`,t,{...n,send_to:e});}function M(e,t){if(typeof window>`u`)return;let n=window;n.gtag&&(n.gtag(`set`,{user_id:e}),N(t,`[Google Analytics] User ID updated`));}function N(e,...t){e&&console.log(...t);}function P(e){return typeof e==`string`&&e.length>0?e:void 0}function F(e,t,n){n==null||n===``||(e[t]=n);}function je(e){return e.find(e=>typeof e==`number`)}function Me(e){return typeof e.quantity==`number`?e.quantity:1}function Ne(e){return typeof e.price==`number`}function Pe(e){let t=e.filter(Ne);if(t.length!==0)return t.reduce((e,t)=>e+t.price*Me(t),0)}function Fe(e,t){return je([e.value,e.total,e.revenue,Pe(t)])}function Ie(e){return P(e.transaction_id)??P(e.order_id)}function Le(e){return {item_id:e.product_id||e.sku,item_name:e.name,item_category:e.category,item_variant:P(e.variant),price:e.price,quantity:e.quantity??1}}function Re(e){return !e.product_id||e.products?[]:[{item_id:e.product_id,item_name:e.name,item_category:e.category,item_variant:P(e.variant),price:e.price,quantity:e.quantity??1}]}function ze(e){return Array.isArray(e.products)?e.products.map(Le):[]}function Be(e){return [...Re(e),...ze(e)]}function Ve(e,t=2){let n=e.trim();if(!n.includes(`%`)||t===0)return n;try{return Ve(decodeURIComponent(n),t-1)}catch{return n}}function He(e){let t=e.match(/[A-Za-z0-9]+/g)?.join(`_`).toLowerCase()||`custom_event`;return /^[a-z]/.test(t)?t:`event_${t}`}function Ue(e){let t=Ve(e.name||`Unknown`);return De[t]||He(t)}function I(e,t){F(e,`event_id`,t.properties.event_id),F(e,`team_id`,t.properties.team_id),F(e,`promoter_id`,t.properties.promoter_id),F(e,`order_id`,t.properties.order_id);}function We(e,t){let n={},r=Be(t.properties);return I(n,t),r.length>0&&(n.items=r),F(n,`currency`,t.properties.currency),F(n,`value`,Fe(t.properties,r)),F(n,`coupon`,t.properties.coupon),F(n,`payment_type`,P(t.properties.payment_type)??P(t.properties.payment_method)),F(n,`item_list_id`,t.properties.list_id),F(n,`item_list_name`,t.properties.list_name),e===`purchase`&&F(n,`transaction_id`,Ie(t.properties)),n}function L(e,t){if(Oe(e.gaId))return Ae(e.gaId,t)?e.gaId:void 0}function Ge(e=false){return {name:`Google Analytics`,preload:(t,n)=>{L(n,e);},track:(t,n)=>{let r=L(n,e);if(!r)return;let i=Ue(t),a=We(i,t);j(r,i,a),N(e,`[Google Analytics] Sent ${i}:`,a);},page:(t,n)=>{let r=L(n,e);if(!r)return;let i={page_location:t.context.page.url,page_path:t.context.page.path,page_title:t.context.page.title};I(i,t),F(i,`page_referrer`,t.context.page.referrer),j(r,`page_view`,i),N(e,`[Google Analytics] Sent page_view:`,i);},screen:(t,n)=>{let r=L(n,e);if(!r)return;let i={};I(i,t),F(i,`screen_name`,t.name||`Unknown`),j(r,`screen_view`,i),N(e,`[Google Analytics] Sent screen_view:`,i);},identify:(t,n)=>{t.userId&&L(n,e)&&(M(t.userId,e),N(e,`[Google Analytics] Identity available`));},reset:()=>{M(null,e);}}}const Ke=new Set(Object.values(ms$1));function qe(e){return e.messageId??`msg_${e.timestamp.toString(36)}`}function Je(e){let t=e.context.campaign??{};return {session_id:e.sessionId,anonymous_id:e.anonymousId,user_id:e.userId,page:{url:e.context.page.url,path:e.context.page.path,title:e.context.page.title},referrer:e.context.page.referrer,user_agent:e.context.userAgent,utm_source:t.source,utm_medium:t.medium,utm_campaign:t.name,utm_term:t.term,utm_content:t.content}}function Ye(e){let{event_id:t,team_id:n,promoter_id:r,...i}=e;return {eventId:t,teamId:n,promoterId:r,rest:i}}function Xe(e){return !!(e.eventId&&e.teamId&&e.promoterId)}function Ze(e,t,n){e&&console.warn(`[Sessions API] Missing required fields, skipping ${t}:`,{eventId:n.eventId,teamId:n.teamId,promoterId:n.promoterId});}function Qe(e){return !!(e&&Ke.has(e))}function $e(e,t,n){e&&console.warn(`[Sessions API] Invalid or missing eventType "${n}", skipping ${t}`);}function et(e,t,n){return n&&t?{...e,name:t}:e}function tt(e,t,n,r){return {eventId:t.eventId,teamId:t.teamId,promoterId:t.promoterId,eventType:n,messageId:qe(e),occurredAt:new Date(e.timestamp).toISOString(),properties:et(t.rest,e.name,r),context:Je(e)}}function nt(e,t,n){e&&console.log(`[Sessions API] Sending ${t}:`,n);}function rt(e,t=false){let n=(e,n)=>{t&&console.log(`[Sessions API] Preload received (no-op)`);},r=async(n,r,i)=>{let a=Ye(r.properties);if(!Xe(a)){Ze(t,n,a);return}let o=i??r.name;if(!Qe(o)){$e(t,n,o);return}let s=tt(r,a,o,i);nt(t,n,s),await e.analytics[n](s);};return {name:`Sessions API`,preload:n,track:(e,n)=>r(`track`,e).catch(e=>{t&&console.error(`[Sessions API] track error:`,e);}),page:(e,n)=>r(`page`,e,`Page Viewed`).catch(e=>{t&&console.error(`[Sessions API] page error:`,e);}),screen:(e,n)=>r(`screen`,e,`Screen Viewed`).catch(e=>{t&&console.error(`[Sessions API] screen error:`,e);}),identify:(e,n)=>{t&&console.log(`[Sessions API] Identify received (logged only):`,{userId:e.userId,traits:e.traits});}}}const it={"Product Viewed":`ViewContent`,"Product Added":`AddToCart`,"Checkout Started":`InitiateCheckout`,"Payment Info Entered":`AddPaymentInfo`,"Order Completed":`Purchase`},at=new Set([`AddPaymentInfo`,`AddToCart`,`AddToWishlist`,`ApplicationApproval`,`CompleteRegistration`,`Contact`,`CustomizeProduct`,`Download`,`FindLocation`,`InitiateCheckout`,`Purchase`,`Schedule`,`Search`,`StartTrial`,`SubmitApplication`,`SubmitForm`,`Subscribe`,`ViewContent`]),ot=new Set,R=`https://analytics.tiktok.com/i18n/pixel/events.js`;function st(e){return Array.from(document.scripts??[]).some(t=>t.src.includes(R)&&t.src.includes(`sdkid=${e}`))}function ct(e){if(st(e))return;let t=document.createElement(`script`);t.async=true,t.src=`${R}?sdkid=${e}&lib=ttq`;let n=document.getElementsByTagName(`script`)[0];n?.parentNode?.insertBefore(t,n);}function z(){return []}function lt(){if(typeof window>`u`)return false;let e=window;if(e.ttq)return true;e.TiktokAnalyticsObject=`ttq`;let t=z();t.methods=[`page`,`track`,`identify`,`instances`,`debug`,`on`,`off`,`once`,`ready`,`alias`,`group`,`enableCookie`,`disableCookie`],t.setAndDefer=(e,t)=>{e[t]=(...n)=>{e.push([t,...n]);};};for(let e of t.methods)t.setAndDefer(t,e);return t.instance=e=>{let n=t._i[e]??z();for(let e of t.methods)t.setAndDefer(n,e);return n},t._i={},t._t={},t._o={},t.load=(e,n={})=>{t._i[e]=t._i[e]??z(),t._i[e]._u=R,t._t[e]=Date.now(),t._o[e]=n,ct(e);},e.ttq=t,true}function ut(e){let t=window;typeof window>`u`||!t.ttq||t.ttq.load(e);}function dt(e,t){let n=window;typeof window>`u`||!n.ttq||n.ttq.instance(e).identify?.({external_id:t});}function ft(e){let t={};return v(t,`event_id`,e),Object.keys(t).length>0?t:void 0}function pt(e,t,n,r){let i=window;if(typeof window>`u`||!i.ttq)return;let a=i.ttq.instance(e).track;if(!a)return;let o=ft(r);if(o){a(t,n,o);return}a(t,n);}function mt(e,t){let n=window;if(typeof window>`u`||!n.ttq)return;let r=n.ttq.instance(e).page;if(!r)return;let i=ft(t);if(i){r(i);return}r();}function B(e,...t){e&&console.log(...t);}function V(e,t){return lt()?ot.has(e)?true:(ut(e),ot.add(e),B(t,`[TikTok Pixel] Initialized pixel ${e}`),true):false}function ht(e,t){v(e,`content_ids`,t?[t]:void 0);}function gt(e){return e.find(e=>typeof e==`number`)}function H(e){return typeof e.quantity==`number`?e.quantity:1}function _t(e){if(typeof e.price==`number`)return e.price*H(e)}function vt(e){let t=e.filter(e=>typeof e.price==`number`);if(t.length!==0)return t.reduce((e,t)=>e+Number(t.price)*H(t),0)}function yt(e){return Array.isArray(e)?vt(e):void 0}function U(e){return gt([e.value,e.total,e.revenue,yt(e.products),_t(e)])}function bt(e,t){ht(e,t.product_id),v(e,`content_name`,t.name),v(e,`price`,t.price),v(e,`quantity`,t.product_id?H(t):void 0),v(e,`value`,U(t)),e.content_type=`product`;}function xt(e,t){bt(e,t),v(e,`content_category`,t.category);}function St(e,t){bt(e,t);}function Ct(e){let t={content_type:`product`};return v(t,`content_id`,e.product_id),v(t,`content_name`,e.name),v(t,`quantity`,H(e)),v(t,`price`,e.price),t}function wt(e){return e.flatMap(e=>e.product_id?[e.product_id]:[])}function Tt(e){return e.reduce((e,t)=>e+H(t),0)}function Et(e,t){Array.isArray(t)&&(v(e,`contents`,t.map(Ct)),v(e,`content_ids`,wt(t)),v(e,`quantity`,Tt(t)),e.content_type=`product`);}function Dt(e,t){Et(e,t.products),v(e,`value`,U(t));}function Ot(e,t){Et(e,t.products),v(e,`value`,U(t)),v(e,`order_id`,t.order_id);}function kt(e,t){v(e,`value`,t.value);}const At={ViewContent:xt,AddToCart:St,InitiateCheckout:Dt,AddPaymentInfo:Dt,Purchase:Ot};function jt(e,t){let n={};return v(n,`currency`,t.currency),(At[e]??kt)(n,t),n}function Mt(e){return e.name||`Unknown`}function Nt(e,t=2){let n=e.trim();if(!n.includes(`%`)||t===0)return n;try{return Nt(decodeURIComponent(n),t-1)}catch{return n}}function Pt(e){let t=e.match(/[A-Za-z0-9]+/g)?.join(``)||`CustomEvent`;return /^[A-Za-z]/.test(t)?t.slice(0,50):`Event${t}`.slice(0,50)}function Ft(e){let t=Nt(Mt(e)),n=it[t]||t;return at.has(n)?n:Pt(n)}function W(e){return e.tikTokId}function It(e=false){let t=(t,n)=>{let r=W(n);r&&V(r,e)&&t.userId&&dt(r,t.userId);},n=(t,n)=>{let r=W(n);if(!r||!V(r,e))return;let i=Ft(t),a=jt(i,t.properties);pt(r,i,a,t.properties.event_id),B(e,`[TikTok Pixel] Sent ${i}:`,a);},r=(t,n)=>{let r=W(n);r&&V(r,e)&&(mt(r,t.properties.event_id),B(e,`[TikTok Pixel] Sent page view`));};return {name:`TikTok Pixel`,preload:t,track:n,page:r,screen:r,identify:(t,n)=>{let r=W(n);!r||!t.userId||V(r,e)&&(dt(r,t.userId),B(e,`[TikTok Pixel] Identity synced`));}}}const Lt={preload:(e,t,n)=>e.preload(t,n),track:(e,t,n)=>e.track(t,n),page:(e,t,n)=>e.page(t,n),screen:(e,t,n)=>e.screen(t,n),identify:(e,t,n)=>e.identify(t,n)},Rt=[`fbId`,`gaId`,`tikTokId`];function zt(e){return e||void 0}function Bt(e){let t=e??{};return Object.fromEntries(Rt.map(e=>[e,zt(t[e])]))}function Vt(e){return Rt.some(t=>!!e[t])}function Ht(e,t,n){e&&console.log(`[DestinationManager] Fetched config for promoter ${t}:`,n);}function Ut(e,t,n){e&&console.warn(`[DestinationManager] Failed to fetch promoter ${t} config:`,n);}function Wt(e,t=false,n={}){let r=new Map,i=new Map,a=n.sessions===false?null:rt(e,t),o=[n.facebook===false?null:Ee(t),n.googleAnalytics===false?null:Ge(t),n.tikTok===false?null:It(t)].filter(e=>!!e),s=async n=>{try{let r=Bt((await e.promoter.get({key:n})).promoter?.tracking);return Ht(t,n,r),r}catch(e){return Ut(t,n,e),{}}},c=async(e,n,r)=>{try{await d(e,n,r);}catch(n){t&&console.error(`[DestinationManager] ${e.name} error:`,n);}},l=e=>{try{e.reset?.();}catch(n){t&&console.error(`[DestinationManager] ${e.name} reset error:`,n);}},u=async e=>{let t=r.get(e);if(t)return t;let n=i.get(e);if(n)return n;n=s(e),i.set(e,n);try{let t=await n;return r.set(e,t),t}finally{i.delete(e);}},d=(e,t,n)=>Lt[t.type]?.(e,t,n);return {sendEvent:async(e,t)=>{if(!a&&o.length===0)return;let n=a?c(a,e,{}):Promise.resolve();if(o.length===0){await n;return}let r=await u(t);if(!Vt(r)){await n;return}let i=Promise.all(o.map(t=>c(t,e,r)));await Promise.all([n,i]);},clearCache:()=>{r.clear(),i.clear();for(let e of o)l(e);}}}var G={},Gt;function Kt(){if(Gt)return G;Gt=1,Object.defineProperty(G,"__esModule",{value:true}),G.parseCookie=s,G.parse=s,G.stringifyCookie=c,G.stringifySetCookie=l,G.serialize=l,G.parseSetCookie=u,G.stringifySetCookie=l,G.serialize=l;let e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,i=/^-?\d+$/,a=Object.prototype.toString,o=(()=>{let e=function(){};return e.prototype=Object.create(null),e})();function s(e,t){let n=new o,r=e.length;if(r<2)return n;let i=t?.decode||m,a=0;do{let t=f(e,a,r);if(t===-1)break;let o=d(e,a,r);if(t>o){a=e.lastIndexOf(`;`,t-1)+1;continue}let s=p(e,a,t);n[s]===void 0&&(n[s]=i(p(e,t+1,o))),a=o+1;}while(a<r);return n}function c(n,r){let i=r?.encode||encodeURIComponent,a=[];for(let r of Object.keys(n)){let o=n[r];if(o===void 0)continue;if(!e.test(r))throw TypeError(`cookie name is invalid: ${r}`);let s=i(o);if(!t.test(s))throw TypeError(`cookie val is invalid: ${o}`);a.push(`${r}=${s}`);}return a.join(`; `)}function l(i,a,o){let s=typeof i==`object`?i:{...o,name:i,value:String(a)},c=(typeof a==`object`?a:o)?.encode||encodeURIComponent;if(!e.test(s.name))throw TypeError(`argument name is invalid: ${s.name}`);let l=s.value?c(s.value):``;if(!t.test(l))throw TypeError(`argument val is invalid: ${s.value}`);let u=s.name+`=`+l;if(s.maxAge!==void 0){if(!Number.isInteger(s.maxAge))throw TypeError(`option maxAge is invalid: ${s.maxAge}`);u+=`; Max-Age=`+s.maxAge;}if(s.domain){if(!n.test(s.domain))throw TypeError(`option domain is invalid: ${s.domain}`);u+=`; Domain=`+s.domain;}if(s.path){if(!r.test(s.path))throw TypeError(`option path is invalid: ${s.path}`);u+=`; Path=`+s.path;}if(s.expires){if(!h(s.expires)||!Number.isFinite(s.expires.valueOf()))throw TypeError(`option expires is invalid: ${s.expires}`);u+=`; Expires=`+s.expires.toUTCString();}if(s.httpOnly&&(u+=`; HttpOnly`),s.secure&&(u+=`; Secure`),s.partitioned&&(u+=`; Partitioned`),s.priority)switch(typeof s.priority==`string`?s.priority.toLowerCase():void 0){case `low`:u+=`; Priority=Low`;break;case `medium`:u+=`; Priority=Medium`;break;case `high`:u+=`; Priority=High`;break;default:throw TypeError(`option priority is invalid: ${s.priority}`)}if(s.sameSite)switch(typeof s.sameSite==`string`?s.sameSite.toLowerCase():s.sameSite){case true:case `strict`:u+=`; SameSite=Strict`;break;case `lax`:u+=`; SameSite=Lax`;break;case `none`:u+=`; SameSite=None`;break;default:throw TypeError(`option sameSite is invalid: ${s.sameSite}`)}return u}function u(e,t){let n=t?.decode||m,r=e.length,a=d(e,0,r),o=f(e,0,a),s=o===-1?{name:``,value:n(p(e,0,a))}:{name:p(e,0,o),value:n(p(e,o+1,a))},c=a+1;for(;c<r;){let t=d(e,c,r),n=f(e,c,t),a=n===-1?p(e,c,t):p(e,c,n),o=n===-1?void 0:p(e,n+1,t);switch(a.toLowerCase()){case `httponly`:s.httpOnly=true;break;case `secure`:s.secure=true;break;case `partitioned`:s.partitioned=true;break;case `domain`:s.domain=o;break;case `path`:s.path=o;break;case `max-age`:o&&i.test(o)&&(s.maxAge=Number(o));break;case `expires`:if(!o)break;let e=new Date(o);Number.isFinite(e.valueOf())&&(s.expires=e);break;case `priority`:if(!o)break;let t=o.toLowerCase();(t===`low`||t===`medium`||t===`high`)&&(s.priority=t);break;case `samesite`:if(!o)break;let n=o.toLowerCase();(n===`lax`||n===`strict`||n===`none`)&&(s.sameSite=n);break}c=t+1;}return s}function d(e,t,n){let r=e.indexOf(`;`,t);return r===-1?n:r}function f(e,t,n){let r=e.indexOf(`=`,t);return r<n?r:-1}function p(e,t,n){let r=t,i=n;do{let t=e.charCodeAt(r);if(t!==32&&t!==9)break}while(++r<i);for(;i>r;){let t=e.charCodeAt(i-1);if(t!==32&&t!==9)break;i--;}return e.slice(r,i)}function m(e){if(e.indexOf(`%`)===-1)return e;try{return decodeURIComponent(e)}catch{return e}}function h(e){return a.call(e)===`[object Date]`}return G}var K=Kt();function qt(){let e=typeof globalThis>`u`?void 0:globalThis.TEST_HAS_DOCUMENT_COOKIE;return typeof e==`boolean`?e:typeof document==`object`&&typeof document.cookie==`string`}function Jt(e){return typeof e==`string`?K.parse(e):typeof e==`object`&&e?e:{}}function q(e,t={}){let n=Yt(e);if(!t.doNotParse)try{return JSON.parse(n)}catch{}return e}function Yt(e){return e&&e[0]===`j`&&e[1]===`:`?e.substr(2):e}var Xt=class{constructor(e,t={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=false,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;let e=this.cookies;this.cookies=K.parse(document.cookie),this._checkChanges(e);};let n=typeof document>`u`?``:document.cookie;this.cookies=Jt(e||n),this.defaultSetOptions=t,this.HAS_DOCUMENT_COOKIE=qt();}_emitChange(e){for(let t=0;t<this.changeListeners.length;++t)this.changeListeners[t](e);}_checkChanges(e){new Set(Object.keys(e).concat(Object.keys(this.cookies))).forEach(t=>{e[t]!==this.cookies[t]&&this._emitChange({name:t,value:q(this.cookies[t])});});}_startPolling(){this.pollingInterval=setInterval(this.update,300);}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval);}get(e,t={}){return t.doNotUpdate||this.update(),q(this.cookies[e],t)}getAll(e={}){e.doNotUpdate||this.update();let t={};for(let n in this.cookies)t[n]=q(this.cookies[n],e);return t}set(e,t,n){n=n?Object.assign(Object.assign({},this.defaultSetOptions),n):this.defaultSetOptions;let r=typeof t==`string`?t:JSON.stringify(t);this.cookies=Object.assign(Object.assign({},this.cookies),{[e]:r}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=K.serialize(e,r,n)),this._emitChange({name:e,value:t,options:n});}remove(e,t){let n=t=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),t),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[e],this.HAS_DOCUMENT_COOKIE&&(document.cookie=K.serialize(e,``,n)),this._emitChange({name:e,value:void 0,options:t});}addChangeListener(e){this.changeListeners.push(e),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===1&&(typeof window==`object`&&`cookieStore`in window?window.cookieStore.addEventListener(`change`,this.update):this._startPolling());}removeChangeListener(e){let t=this.changeListeners.indexOf(e);t>=0&&this.changeListeners.splice(t,1),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===0&&(typeof window==`object`&&`cookieStore`in window?window.cookieStore.removeEventListener(`change`,this.update):this._stopPolling());}removeAllChangeListeners(){for(;this.changeListeners.length>0;)this.removeChangeListener(this.changeListeners[0]);}};function J(){return typeof document>`u`?null:new Xt}function Zt(e){return J()?.get(e)??null}function Qt(e,t){let n=J();n&&n.set(e,t,{path:`/`,sameSite:`lax`,secure:window.location.protocol===`https:`});}function $t(e){let t=J();t&&t.remove(e,{path:`/`});}function en(e){if(typeof localStorage>`u`)return null;try{return localStorage.getItem(e)}catch{return null}}function tn(e,t){if(!(typeof localStorage>`u`))try{localStorage.setItem(e,t);}catch{}}function nn(e){if(!(typeof localStorage>`u`))try{localStorage.removeItem(e);}catch{}}const Y={deleteCookie:$t,getCookie:Zt,getItem:en,removeItem:nn,setCookie:Qt,setItem:tn};function X(){return ls$1(Y)}function rn(){return us$1(Y)}function an(){return ds$1(Y)}function Q(){return globalThis.crypto?.randomUUID?.()??`msg_${Date.now().toString(36)}_${Math.random().toString(36).slice(2)}`}function un(e=`tenant-web`){let t=m(),n=p({anonymousId:rn(),context:t,sessionId:X()});return {name:e,referrer:t.page.referrer,utmSource:t.campaign?.source,utmMedium:t.campaign?.medium,utmCampaign:t.campaign?.name,browser:$(n.browser),deviceType:dn(n.device_type),sessionId:$(n.browser_session_id),anonymousId:$(n.anonymous_id)}}function $(e){return typeof e==`string`&&e.length>0?e:void 0}function dn(e){return e===`MOBILE`||e===`TABLET`||e===`DESKTOP`?e:void 0}function fn(e){let t=e.debug??false,n=Wt(e.client,t,e.destinations),r=X(),i=rn(),a;t&&console.log(`[Analytics] Initialized:`,{sessionId:r,anonymousId:i});let o=(e,t,n)=>{let o=m();return {type:e,name:t,properties:{...p({anonymousId:i,context:o,sessionId:r}),...n},context:o,timestamp:Date.now(),messageId:Q(),sessionId:r,anonymousId:i,userId:a}},s=async(e,r)=>{try{await n.sendEvent(e,r);}catch(e){t&&console.error(`[Analytics] Failed to send event:`,e);}},c=(e,n)=>{let r=e.promoter_id;return !r&&t&&console.warn(`[Analytics] ${n}() called without promoter_id, skipping`),r},l=async(e,t={})=>{let n=c(t,`track`);n&&await s(o(`track`,e,t),n);},u=async(e={})=>{let t=c(e,`preload`);t&&await s(o(`preload`,`Preload`,e),t);},d=(e={})=>{u(e);},f=(e,t={})=>{l(e,t);},h=async(e,t={})=>{let n=c(t,`page`);n&&await s(o(`page`,e||`Page Viewed`,t),n);},ee=(e,t={})=>{h(e,t);},g=async(e,t={})=>{let n=c(t,`screen`);n&&await s(o(`screen`,e||`Screen Viewed`,t),n);},_=(e,t={})=>{g(e,t);},v=async(e,n={})=>{a=e;let o=n.promoter_id;o&&await s({type:`identify`,properties:{},context:m(),timestamp:Date.now(),messageId:Q(),sessionId:r,anonymousId:i,userId:e,traits:n},o),t&&console.log(`[Analytics] User identified:`,e);},y=(e,t={})=>{v(e,t);},te=(e,n)=>{t&&console.log(`[Analytics] Alias called:`,{userId:e,previousId:n});},b=async(e,n={})=>{let o=n.promoter_id;o&&await s({type:`group`,properties:{},context:m(),timestamp:Date.now(),messageId:Q(),sessionId:r,anonymousId:i,userId:a,groupId:e,traits:n},o),t&&console.log(`[Analytics] Group called:`,{groupId:e,traits:n});};return {preload:d,preloadAsync:u,track:f,trackAsync:l,page:ee,pageAsync:h,screen:_,screenAsync:g,identify:y,identifyAsync:v,alias:te,group:(e,t={})=>{b(e,t);},groupAsync:b,reset:()=>{let e=an();r=e.sessionId,i=e.anonymousId,a=void 0,n.clearCache(),t&&console.log(`[Analytics] Session reset:`,{sessionId:r,anonymousId:i});}}}
82
+ `,t}const st$1=Symbol(`ORPC_EVENT_SOURCE_META`);function ct$1(e,t){if(t.id===void 0&&t.retry===void 0&&!t.comments?.length)return e;if(t.id!==void 0&&et$1(t.id),t.retry!==void 0&&nt$1(t.retry),t.comments!==void 0)for(let e of t.comments)rt$1(e);return new Proxy(e,{get(e,n,r){return n===st$1?t:Reflect.get(e,n,r)}})}function lt$1(e){return Ae$1(e)?Reflect.get(e,st$1):void 0}function ut$1(e,t=`inline`){return `${t}; filename="${e.replace(/[^\x20-\x7E]/g,`_`).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 dt$1(e){let t=e.match(/filename\*=(UTF-8'')?([^;]*)/i);if(t&&typeof t[2]==`string`)return Le$1(t[2]);let n=e.match(/filename="((?:\\"|[^"])*)"/i);if(n&&typeof n[1]==`string`)return n[1].replace(/\\"/g,`"`)}function ft$1(e,t){let n={...e};for(let e in t)Array.isArray(t[e])?n[e]=[...ue$1(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 pt$1(e,t){let n=async e=>{let n=await t.error(e);if(n!==e){let t=lt$1(e);t&&Ae$1(n)&&(n=ct$1(n,t));}return n};return new Ce$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=lt$1(i);e&&Ae$1(a)&&(a=ct$1(a,e));}return {done:r,value:a}},async()=>{try{await e.return?.();}catch(e){throw await n(e)}})}function ht$1(e){return {...e,context:e.context??{}}}function gt$1(e,t={}){let n=t.path??[];return Pe$1(new Proxy(async(...[t,r={}])=>await e.call(n,t,ht$1(r)),{get(r,i){return typeof i==`string`?gt$1(e,{path:[...n,i]}):Reflect.get(r,i)}}))}function vt$1(e,t){return {...e,...t}}var yt$1=class yt{"~orpc";constructor(e){if(e.route?.successStatus&&Ge$1(e.route.successStatus))throw Error(`[ContractProcedure] Invalid successStatus.`);if(Object.values(e.errorMap).some(e=>e&&e.status&&!Ge$1(e.status)))throw Error(`[ContractProcedure] Invalid error status code.`);this[`~orpc`]=e;}};function bt$1(e){return e instanceof yt$1?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 xt$1(e,t){return {...e,...t}}function St$1(e,t){return {...e,...t}}function Ct$1(e,t){return e.path?{...e,path:`${t}${e.path}`}:e}function wt$1(e,t){return {...e,tags:[...t,...e.tags??[]]}}function Tt$1(e,t){return e?`${e}${t}`:t}function Et$1(e,t){return e?[...e,...t]:t}function Dt$1(e,t){let n=e;return t.prefix&&(n=Ct$1(n,t.prefix)),t.tags?.length&&(n=wt$1(n,t.tags)),n}function Ot$1(e,t){if(bt$1(e))return new yt$1({...e[`~orpc`],errorMap:vt$1(t.errorMap,e[`~orpc`].errorMap),route:Dt$1(e[`~orpc`].route,t)});if(typeof e!=`object`||!e)return e;let n={};for(let r in e)n[r]=Ot$1(e[r],t);return n}const S$1=new class e extends yt$1{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:vt$1(this[`~orpc`].errorMap,t)})}meta(t){return new e({...this[`~orpc`],meta:xt$1(this[`~orpc`].meta,t)})}route(t){return new e({...this[`~orpc`],route:St$1(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:Tt$1(this[`~orpc`].prefix,t)})}tag(...t){return new e({...this[`~orpc`],tags:Et$1(this[`~orpc`].tags,t)})}router(e){return Ot$1(e,this[`~orpc`])}}({errorMap:{},route:{},meta:{}}),kt$1={defaultMethod:`POST`,defaultSuccessStatus:200,defaultSuccessDescription:`OK`,defaultInputStructure:`compact`,defaultOutputStructure:`compact`};function At$1(e,t){return t===void 0?kt$1[e]:t}const jt$1={},Mt$1={};function C$1(e,t){try{let n=(jt$1[e]||=new Intl.DateTimeFormat(`en-US`,{timeZone:e,timeZoneName:`longOffset`}).format)(t).split(`GMT`)[1];return n in Mt$1?Mt$1[n]:Pt$1(n,n.split(`:`))}catch{if(e in Mt$1)return Mt$1[e];let t=e?.match(Nt$1);return t?Pt$1(e,t.slice(1)):NaN}}const Nt$1=/([+-]\d\d):?(\d\d)?/;function Pt$1(e,t){let n=+(t[0]||0),r=+(t[1]||0),i=(t[2]||0)/60;return Mt$1[e]=n*60+r>0?n*60+r+i:n*60-r-i}var Ft$1=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(C$1(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)),zt$1(this,e)):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=-C$1(this.timeZone,this);return e>0?Math.floor(e):Math.ceil(e)}setTime(e){return Date.prototype.setTime.apply(this,arguments),Lt$1(this),+this}[Symbol.for(`constructDateFrom`)](t){return new e(+new Date(t),this.timeZone)}};const It$1=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!It$1.test(e))return;let t=e.replace(It$1,`$1UTC`);Ft$1.prototype[t]&&(e.startsWith(`get`)?Ft$1.prototype[e]=function(){return this.internal[t]()}:(Ft$1.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),Rt$1(this),+this},Ft$1.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),Lt$1(this),+this}));});function Lt$1(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-C$1(e.timeZone,e)*60));}function Rt$1(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()),zt$1(e);}function zt$1(e,t){let n=Array.isArray(t)?Bt$1(t):+e.internal,r=C$1(e.timeZone,e),i=r>0?Math.floor(r):Math.ceil(r),a=new Date(+e);a.setUTCHours(a.getUTCHours()-1);let o=-new Date(+e).getTimezoneOffset(),s=-new Date(+a).getTimezoneOffset(),c=o-s,l=o;if(c&&o!==i&&Date.prototype.getHours.apply(e)!==(Array.isArray(t)?t[3]||0:e.internal.getUTCHours())){let t=new Date(+e),n=o-i;n&&t.setUTCMinutes(t.getUTCMinutes()+n);let r=C$1(e.timeZone,t);(r>0?Math.floor(r):Math.ceil(r))===i&&(l=s);}let u=l-i;u&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+u);let d=new Date(+e);d.setUTCSeconds(0);let f=o>0?d.getSeconds():(d.getSeconds()-60)%60,p=Math.round(-(C$1(e.timeZone,e)*60))%60;(p||f)&&Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+p+f);let m=C$1(e.timeZone,e),h=m>0?Math.floor(m):Math.ceil(m),g=-new Date(+e).getTimezoneOffset()-h,_=h!==i,v=g-u,ee=h-i,te=n-h*60*1e3,ne=ee>0&&Vt$1(e)-n===ee*60*1e3&&Vt$1(e,te)!==n;if(_&&v&&!ne){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+v);let t=C$1(e.timeZone,e),n=h-(t>0?Math.floor(t):Math.ceil(t));n&&v<0&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+n);}Lt$1(e);let re=(t?n:n+p*1e3)-+e.internal;re&&Math.abs(re)<1800*1e3&&(Date.prototype.setTime.call(e,+e+re),Lt$1(e));}function Bt$1(e){return Date.UTC(e[0],e.length>1?e[1]:0,e.length>2?e[2]:1,...e.slice(3))}function Vt$1(e,t){let n=new Date(t??+e);return n.setUTCSeconds(n.getUTCSeconds()-Math.round(-C$1(e.timeZone,n)*60)),+n}const Ht$1=Symbol.for(`constructDateFrom`);function Ut$1(e,t){return typeof e==`function`?e(t):e&&typeof e==`object`&&Ht$1 in e?e[Ht$1](t):e instanceof Date?new e.constructor(t):new Date(t)}function Wt$1(e,t){return Ut$1(e,e)}function Gt$1(e,t,n){let r=Wt$1(e);return isNaN(t)?Ut$1(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function Kt$1(e){return (typeof e==`string`?new Date(e):e).toISOString().replace(/\.\d{3}Z$/,``)}const qt$1=[`ALWAYS`,`HIDDEN`,`AFTER_ADMISSION`];let w$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`,isDemo:false,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`,gaId:`G-PSW1MY7HB4`,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(Gt$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:Gt$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:Gt$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:Kt$1(Gt$1(new Date,1)),entryEndsAt:Kt$1(Gt$1(new Date,2)),publishAt:Kt$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,visibility:`ALWAYS`,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:Kt$1(Gt$1(new Date,1)),entryEndsAt:Kt$1(Gt$1(new Date,2)),saleStartsAt:Kt$1(new Date),saleEndsAt:Kt$1(Gt$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,orderLimit:void 0,membersOnly:false,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},h=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};e.PayoutDeduction={id:`pdn_01jq8s6c38f97w9yfrfcdhf47v`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),amount:-1e3,currency:`AUD`,description:`Legacy payout deduction`,gateway:`AIRWALLEX`,gatewayId:`fe33fb0f-d9d8-47cd-8eef-6a19bd6223eb`,beneficiary:u.name,beneficiaryId:u.id};let g=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:[h],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,deductions:0,shipping:0,sms:0,currency:`AUD`},eventId:s.id,teamId:r.id,promoterId:i.id,promoterSlug:i.slug,tenantId:t.id},_=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 v=e.OrderOffer={kind:`SMS_DELIVERY`,label:`SMS ticket delivery`,price:{amount:200,currency:`AUD`}},ee=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:[_],customer:w$1.Customer,customerId:w$1.Customer.id,teamId:w$1.Team.id,promoterId:w$1.Promoter.id,promoterSlug:w$1.Promoter.slug,eventId:w$1.Event.id,eventSlug:w$1.Event.slug,payment:{method:`AIRWALLEX`,source:`CARD`},payoutIds:[g.id],refunds:[],offers:[v],tenantId:w$1.Tenant.id,checkoutUrl:`${t.baseUrl.dev}/checkout/ord_01jps5cgsfgve5b5g2666kyryh`,signature:`Q2hXbG9uZ1NpZzE2`},te=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`,request:{idempotencyKey:`refund_12345_customer_request`},status:`SUCCEEDED`,acceptedAt:new Date().toISOString(),failedAt:new Date().toISOString(),price:{currency:`AUD`,total:1200,items:1200,shipping:0,fees:0},reason:`CUSTOMER_REQUEST`,note:`Customer requested refund due to schedule conflict`,tickets:{cancelRequested:true,cancelled:true,cancelledCount:2},gateway:{provider:`STRIPE`,refundId:`re_1234567890abcdef`,idempotencyKey:`rfd_01jps5cgsfgve5b5g2666kyryh`},actor:{type:`USER`,userId:n.id},notification:{requested:true,sentAt:new Date().toISOString()},createdAt:new Date().toISOString()},e.OrderRefundItem={orderItemId:_.id,quantity:2,amount:1200,ticketIds:[`tkt_01jps5cgsg0s32w2pr73vbccde`]},e.Notification={id:`ntf_01jps5cgsfgve5b5g2666kyryh`,aggregateType:`ORDER`,aggregateId:ee.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:[te],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:ee.id,orderItemId:_.id,teamId:r.id,promoterId:i.id,promoterSlug:i.slug,tenantId:t.id};})(w$1||={});function Jt$1(e){return Zn$1(ta$1,e)}function T$1(e){return Tr(wa$1,e)}function Yt$1(e){return Or$1(Oa$1,e)}const E$1=io$1([`PENDING`,`APPROVED`,`REJECTED`]).meta({description:`Approval status. PENDING: awaiting review, APPROVED: approved for operation, REJECTED: rejected and cannot operate`}),Zt$1=new Set(`AD AE AF AG AI AL AM AO AQ AR AS AT AU AW AX AZ BA BB BD BE BF BG BH BI BJ BL BM BN BO BQ BR BS BT BV BW BY BZ CA CC CD CF CG CH CI CK CL CM CN CO CR CU CV CW CX CY CZ DE DJ DK DM DO DZ EC EE EG EH ER ES ET FI FJ FK FM FO FR GA GB GD GE GF GG GH GI GL GM GN GP GQ GR GS GT GU GW GY HK HM HN HR HT HU ID IE IL IM IN IO IQ IR IS IT JE JM JO JP KE KG KH KI KM KN KP KR KW KY KZ LA LB LC LI LK LR LS LT LU LV LY MA MC MD ME MF MG MH MK ML MM MN MO MP MQ MR MS MT MU MV MW MX MY MZ NA NC NE NF NG NI NL NO NP NR NU NZ OM PA PE PF PG PH PK PL PM PN PR PS PT PW PY QA RE RO RS RU RW SA SB SC SD SE SG SH SI SJ SK SL SM SN SO SR SS ST SV SX SY SZ TC TD TF TG TH TJ TK TL TM TN TO TR TT TV TW TZ UA UG UM US UY UZ VA VC VE VG VI VN VU WF WS YE YT ZA ZM ZW`.split(` `)),Qt$1=na$1().trim().toUpperCase().regex(/^[A-Z]{2}$/,`Enter a two-letter ISO country code`).refine(e=>Zt$1.has(e),{message:`Enter an assigned ISO country code`}).meta({description:`ISO 3166-1 alpha-2 country code`,examples:[`AU`]}),$t$1=`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(`.`),D$1=io$1($t$1).meta({examples:[`AUD`],description:`Three-letter ISO 4217 currency code for transactions and payouts`}),tn$1=qa$1({formErrors:Ga$1(na$1()),fieldErrors:no$1(na$1(),Ga$1(na$1()))}),nn$1={BAD_REQUEST:{status:400},INPUT_VALIDATION_FAILED:{status:422,data:tn$1},UNAUTHORIZED:{status:401},FORBIDDEN:{status:403},NOT_FOUND:{status:404},CONFLICT:{status:409},PRECONDITION_FAILED:{status:412},TOO_MANY_REQUESTS:{status:429},INTERNAL_SERVER_ERROR:{status:500},NOT_IMPLEMENTED:{status:501},SERVICE_UNAVAILABLE:{status:503}},an$1=io$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:`Club Night`,group:`Event Type`,priority:`core`,notes:`DJ-led nightclub or club-room event, usually late-night and dancefloor-focused; match "club night", "nightclub", "club room", "resident DJ", "guest DJ", "DJ sets", "all night" or explicitly club-focused programming. Do not use for every electronic event or DJ set without a club/nightclub context.`},{category:`Concert`,group:`Event Type`,priority:`high`,notes:`Headline live music event in a concert, gig, theatre, arena or show format; match "concert", "gig", "headline show", "live show", "tour date", "arena", "theatre" or "standing room". Use alongside "Live Performance" when live performers are explicit.`},{category:`Listening Party`,group:`Event Type`,priority:`medium`,notes:`Playback, album launch or listening-focused event centred on hearing recorded music together; match "listening party", "album playback", "record launch", "listening session", "label preview" or "listening bar".`},{category:`Workshop`,group:`Event Type`,priority:`medium`,notes:`Educational, participatory or skills-focused event; match "workshop", "masterclass", "clinic", "class", "seminar", "producer workshop", "DJ workshop" or "hands-on session".`},{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:`Nightclub`,group:`Venue Type`,priority:`core`,notes:`Purpose-built nightlife or dance venue, club room or nightclub setting; match "nightclub", "night club", "club room", "dance club" or venues explicitly described as clubs. This describes the venue, not the event programme.`},{category:`Bar`,group:`Venue Type`,priority:`core`,notes:`Event held at a bar, pub, tavern or cocktail bar; match "bar", "pub", "tavern", "cocktail bar", "wine bar" or "hotel bar". Do not use for every venue with a bar service.`},{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:`Arena`,group:`Venue Type`,priority:`high`,notes:`Large indoor arena, stadium or major venue built for high-capacity concerts, sports or touring shows; match "arena", "stadium", "entertainment centre", "exhibition centre" or "convention centre".`},{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)),on$1=Ga$1(an$1).max(10).optional().meta({description:`Event characteristics like vibe, venue type, and amenities (up to 10 categories)`,examples:[[`Day Party`,`Open Air`,`Free Entry`]]}),sn=io$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)),cn=Ga$1(sn).min(1).max(5).meta({description:`Music genres for the event (1-5 genres)`,examples:[[`Tech House`,`Melodic Techno`]]});Ga$1(sn).max(5).optional().meta({description:`Music genres for the event (up to 5 genres)`,examples:[[`Tech House`,`Melodic Techno`]]});function O$1(t,n){return na$1().regex(RegExp(`^${t}_[0-9a-z]{26}$`),`Must be a valid ${n} ID`).describe(`Unique ${n} identifier`)}const k$1=O$1(`tem`,`team`),un=O$1(`txp`,`tax profile`);O$1(`tnt`,`tenant`);const fn$1=O$1(`tdl`,`team deletion operation`),A$1=O$1(`evt`,`event`),pn$1=O$1(`ven`,`venue`),mn=O$1(`loc`,`location`),j$1=O$1(`usr`,`user`),hn=O$1(`cnl`,`order cancellation`),gn=O$1(`ord`,`order`),_n=O$1(`tkt`,`ticket`),M$1=O$1(`pmt`,`promoter`);O$1(`cpn`,`coupon`);O$1(`cod`,`coupon code`);const bn=O$1(`cus`,`customer`),N$1=O$1(`adm`,`admission`),xn=O$1(`sct`,`section`);O$1(`ben`,`beneficiary`);const Cn=O$1(`pyt`,`payout`),P$1=O$1(`mbr`,`team member`),wn=O$1(`inv`,`team invite`),Tn=O$1(`ecl`,`event collaborator`),En=O$1(`psc`,`permission scope`),Dn=O$1(`prl`,`permission role`),On=O$1(`ntf`,`notification`),kn=O$1(`int`,`integration`),An=O$1(`ibf`,`integration backfill`),F$1=qa$1({src:ca$1().meta({examples:[`https://assets.session.services/my-image.jpg`]}),alt:na$1().meta({examples:[`My Image`]}),width:Ta$1().meta({examples:[1080]}),height:Ta$1().meta({examples:[1080]})}),jn=`Limit cannot be 0. Use -1 for unlimited or a positive number for a specific limit`;function Mn(){return Ta$1().min(-1)}function Nn(){return Ta$1().min(-1).refine(e=>e!==0,{message:jn})}const Pn=Xa$1([na$1(),Ta$1(),ka$1(),Na$1()]),Fn=Ao$1(()=>Xa$1([Pn,Ga$1(Fn),no$1(na$1(),Fn)])),In=no$1(na$1().min(1).max(40).meta({description:`Metadata key. Must be 1-40 characters`}),na$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.`}),I$1=na$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 L$1(e){return T$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 Ln=na$1().meta({description:`Opaque cursor for pagination. Use the cursor from the previous response to continue fetching results.`}),Rn=`[a-z][a-z0-9-]*`,zn=RegExp(`^-?(?:\\*|${`(?:${Rn})(?:\\.${Rn})*`}(?:\\.\\*|\\.bypass|\\.[a-z]{3}_[0-9a-z]{26})?)$`),Bn=/^[a-z]{3}_[0-9a-z]{26}$/,Vn=[`tem`,`pmt`,`ven`,`evt`,`ord`,`tkt`,`cpn`],Hn=`team.read,team.write,team.oauth.read,team.oauth.write,team.member.read,team.member.write,team.invite.read,team.invite.write,team.gateway.read,team.gateway.connect,team.gateway.write,team.tax.read,team.tax.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,membership.read,membership.write,beneficiary.read,beneficiary.write,payout.read,payout.write,*`.split(`,`),Un=[`tenant`,`team`,`team.oauth`,`team.member`,`team.invite`,`team.gateway`,`team.tax`,`team.performance`,`cms`,`role`,`event`,`event.performance`,`promoter`,`promoter.performance`,`venue`,`order`,`ticket`,`coupon`,`membership`,`beneficiary`,`payout`],Wn=new Set(Hn),Gn=new Set(Un),Kn={"team.read":[`tem`],"team.write":[`tem`],"team.oauth.read":[`tem`],"team.oauth.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.tax.read":[`tem`],"team.tax.write":[`tem`],"team.performance.read":[`tem`,`pmt`,`ven`,`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`],"membership.read":[`tem`],"membership.write":[`tem`],"beneficiary.read":[`tem`,`pmt`],"beneficiary.write":[`tem`,`pmt`],"payout.read":[`tem`,`pmt`,`ven`],"payout.write":[`tem`,`pmt`],"*":[]};function qn(e){let[t]=e.split(`_`);return t?Vn.includes(t):false}function Jn(e){let[t]=e.split(`_`);return !t||!qn(e)?null:t}function Yn(e){return Bn.test(e)&&qn(e)}function Xn(e,t){let n=Jn(t);return n?(Kn[e]??[]).includes(n):false}function Zn(e,t){return !Wn.has(e)||!Yn(t)?false:Xn(e,t)}function Qn(e){return e.startsWith(`-`)?e.slice(1):e}function $n(e){return Wn.has(e)}function er(e){return e.endsWith(`.bypass`)?Wn.has(e.slice(0,-7)):false}function tr(e){let t=e.match(/^((?:[a-z][a-z0-9-]*)(?:\.[a-z][a-z0-9-]*)*)\.([a-z]{3}_[0-9a-z]{26})$/);return t?nr(t):null}function nr(e){let t=e[1],n=e[2];return !t||!n?null:{base:t,resourceId:n}}function rr(e){let t=tr(e);return t?Zn(t.base,t.resourceId):false}function ir(e){if(!e.endsWith(`.*`))return false;let t=e.slice(0,-2);return Gn.has(t)||Wn.has(t)}const ar=[$n,er,rr,ir];function or(e){let t=Qn(e);return ar.some(e=>e(t))}const R$1=na$1().regex(zn,`Invalid permission node. Use lowercase dot notation with optional wildcard, resource target, bypass target, and deny prefix.`).refine(or,{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`]}),sr=Ga$1(R$1).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`]]}),cr=sr.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 Or=1e4,kr=na$1().max(Or).meta({description:`Public-facing description with a maximum length of ${Or} characters`}),Ar=na$1().length(16).meta({examples:[w$1.signature],description:`HMAC signature for secure access (16 characters, base64url encoded)`}),jr=qa$1({promoterIds:Ga$1(M$1).nullable().meta({description:`Null means team-wide promoter access. An array means access is restricted to those promoters.`})}).meta({description:`Promoter access assigned to a team member or invite.`}),Mr=qa$1({promoterIds:Ga$1(M$1).min(1).nullable().meta({description:`Null grants team-wide promoter access. A non-empty array restricts access to those promoters.`})}).meta({description:`Promoter access assignment input.`}),Nr=io$1([`SALE_ENDED`,`SOLD_OUT`,`DOOR`]),Fr=qa$1({booking:Ta$1().min(4).max(10).meta({examples:[7.5],description:`Booking fee percentage used to calculate the booking fee.`})}).meta({description:`Admission-level pricing override used to calculate derived fee amounts.`});function Ir(e){return qa$1({base:Da$1().min(0).meta({examples:[w$1.Admission.price.base],description:`Organiser-entered ticket price before any added tax or booking fees, in cents`}),booking:Da$1().min(0).meta({examples:[w$1.Admission.price.booking],description:e.booking}),tax:Da$1().min(0).optional().meta({description:`Ticket tax component in cents. This excludes tax contained in booking fees.`}),total:Da$1().min(0).optional().meta({description:`Customer-facing total in cents, including ticket tax and booking fees.`}),currency:D$1.meta({examples:[w$1.Admission.price.currency],description:e.currency}),override:Fr.optional().meta({description:`Optional pricing override used to calculate derived fee amounts.`})}).meta({examples:[w$1.Admission.price],description:e.price})}const z$1=qa$1({id:N$1.readonly().meta({description:`A unique identifier for this admission`,examples:[w$1.Admission.id]}),name:na$1().meta({description:`The display name of the admission type shown to customers`,examples:[w$1.Admission.name]}),subtitle:na$1().max(100).optional().meta({description:`Short supporting text shown below the admission name`,examples:[w$1.Admission.subtitle]}),description:na$1().max(500).optional().meta({description:`Detailed information shown when customers expand 'More info'`,examples:[w$1.Admission.description]}),capacity:Mn().prefault(-1).meta({examples:[w$1.Admission.capacity],description:`Maximum number of tickets that can be sold for this admission type. A value of -1 indicates unlimited`}),limit:Nn().prefault(-1).meta({examples:[w$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:Ta$1().min(-1).readonly().meta({examples:[w$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:Ta$1().min(0).readonly().meta({examples:[w$1.Admission.sold],description:`Total number of tickets of this admission type that have been purchased`}),reserved:Ta$1().min(0).readonly().meta({examples:[w$1.Admission.reserved],description:`Number of tickets held for customers during checkout and not available to others`}),order:Ta$1().min(0).meta({examples:[w$1.Admission.order],description:`Determines the position in which this admission type appears when listed. Lower values appear first`}),createdAt:Pi$1().readonly().meta({examples:[w$1.Admission.createdAt],description:`Timestamp in ISO 8601 format when this admission type was created`}),updatedAt:Pi$1().readonly().meta({examples:[w$1.Admission.updatedAt],description:`Timestamp in ISO 8601 format when this admission type was last updated`}),entryStartsAt:I$1.meta({examples:[w$1.Admission.entryStartsAt],description:`Wall clock time from which tickets of this type are valid for entry (no timezone)`}),entryEndsAt:I$1.meta({examples:[w$1.Admission.entryEndsAt],description:`Wall clock time until which tickets of this type are valid for entry (no timezone)`}),saleStartsAt:I$1.meta({examples:[w$1.Admission.saleStartsAt],description:`Wall clock time when ticket sales for this admission type begin (no timezone)`}),saleEndsAt:I$1.meta({examples:[w$1.Admission.saleEndsAt],description:`Wall clock time when ticket sales for this admission type end (no timezone)`}),saleEndsBehavior:Nr.default(`SALE_ENDED`).meta({examples:[w$1.Admission.saleEndsBehavior],description:`Label to display for this admission after ticket sales have ended`}),price:Ir({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:io$1(qt$1).prefault(`ALWAYS`).meta({examples:[`ALWAYS`],description:`Controls whether this admission type is shown publicly, revealed by a scoped coupon, or unlocked after another admission.`}),visibleAfterAdmissionId:N$1.nullable().optional().meta({description:`Admission that must sell out or close before this admission can be purchased.`}),sectionId:xn.nullable().optional().meta({examples:[w$1.Admission.sectionId],description:`Identifier of the section this admission type belongs to, if any`}),teamId:k$1.meta({description:`Team that owns this admission. Denormalized for efficient queries.`}),promoterId:M$1.meta({examples:[w$1.Admission.promoterId],description:`Identifier of the promoter responsible for this admission type`}),eventId:A$1.meta({examples:[w$1.Admission.eventId],description:`Identifier of the event to which this admission type is linked`}),eventSlug:na$1().meta({examples:[w$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:[w$1.Admission]}),Lr=z$1.omit({id:true,createdAt:true,updatedAt:true,available:true,sold:true,reserved:true}).extend({price:z$1.shape.price.omit({tax:true,total:true}).strict()}).meta({description:`Schema for creating a new admission type for an event`}),Rr=z$1.pick({id:true}).extend({eventId:z$1.shape.eventId.meta({examples:[w$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`}),zr=z$1.pick({id:true}).extend({eventId:A$1.meta({examples:[w$1.Admission.eventId],description:`Identifier of the event to which this admission type belongs`})}).meta({description:`Schema for retrieving a specific admission type`}),Br=Ja$1({eventId:na$1().max(128).meta({examples:[w$1.Admission.eventId],description:`Identifier of the event to list admission types for`}),sectionId:na$1().max(128).optional().meta({examples:[w$1.Admission.sectionId],description:`Filter admission types by section identifier. If provided, only admissions for this section are returned`}),query:na$1().max(120).optional().meta({examples:[`Early Bird`],description:`Optional search query to filter admissions by name. When provided, search-backed pagination is used.`}),limit:L$1(`admission types`).optional(),cursor:na$1().max(768).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 B$1(t,n){let i={[n]:Ga$1(t).meta({description:`Array of ${n} for the current result set`})},a=na$1().nullish().meta({examples:[`eyJ2ZXJzaW9uIjoxLCJpbnRlbnQiOnsic291cmNlIjoiZGVtbyJ9LCJwb3MiOnsicHJpbWFyeUtleSI6InBybV8wMXM4NTNqIn19`],description:`Cursor for navigating backward in the result set. Omitted when there are no prior results.`}),o=na$1().nullish().meta({examples:[`eyJ2ZXJzaW9uIjoxLCJpbnRlbnQiOnsic291cmNlIjoiZGVtbyJ9LCJwb3MiOnsicHJpbWFyeUtleSI6InBybV8wMXM4NTNkIn19`],description:`Cursor for navigating forward in the result set. Omitted when there are no subsequent results.`});return qa$1({...i,before:a,after:o,limit:T$1().min(1).meta({examples:[20],description:`Maximum number of items to return in each result set`})})}const Vr=B$1(z$1,`admissions`),Hr=qa$1({min:Da$1().min(0).meta({description:`Minimum booking fee in the quote currency's minor units`}).optional(),max:Da$1().min(0).meta({description:`Maximum booking fee in the quote currency's minor units`}).optional(),percent:Ta$1().min(0).meta({description:`Percentage applied when calculating the booking fee`}).optional()}),Ur=z$1.pick({eventId:true}).extend({message:na$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`}),source:io$1([`EVENT`,`CUSTOM`]).meta({description:`Whether the quote uses the resolved event fee or an admission-level custom percentage.`}),rule:Hr.meta({description:`Effective booking fee rule in the quote currency after conversion.`}),price:Ir({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`}),Wr=z$1.pick({eventId:true}).extend({base:Da$1().min(0).meta({examples:[w$1.Admission.price.base],description:`Base cost of a ticket for this admission type before fees, in cents`}),currency:D$1.meta({examples:[w$1.Admission.price.currency],description:`Three-letter ISO 4217 currency code for the ticket price`}),override:Fr.optional().meta({description:`Optional admission-level booking fee percentage to preview instead of the event fee formula.`})}).meta({description:`Request schema for generating a pricing quote for an admission type, including booking fee calculations`}),Gr=qa$1({quote:Ur}),Kr=qa$1({admission:z$1}),qr=qa$1({id:z$1.shape.id,eventId:z$1.shape.eventId,name:z$1.shape.name.optional(),subtitle:z$1.shape.subtitle,description:z$1.shape.description,capacity:Mn().optional(),limit:Nn().optional(),order:z$1.shape.order.optional(),entryStartsAt:z$1.shape.entryStartsAt.optional(),entryEndsAt:z$1.shape.entryEndsAt.optional(),saleStartsAt:z$1.shape.saleStartsAt.optional(),saleEndsAt:z$1.shape.saleEndsAt.optional(),saleEndsBehavior:Nr.optional(),price:z$1.shape.price.omit({tax:true,total:true}).strict().extend({override:Fr.nullable().optional().meta({description:`Admission pricing override. Pass null to clear it; omit to leave it unchanged.`})}).optional(),visibility:io$1(qt$1).optional(),visibleAfterAdmissionId:N$1.nullable().optional(),sectionId:xn.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.`}),Jr=qa$1({eventId:na$1().meta({description:`Event identifier`})}),Yr=qa$1({code:na$1().meta({description:`Coupon code captured on the order`}),totalTickets:Da$1().min(0).meta({description:`Valid tickets purchased with this coupon code`}),checkedIn:Da$1().min(0).meta({description:`Coupon tickets currently checked in`}),noShows:Da$1().min(0).meta({description:`Coupon tickets not currently checked in`}),checkInRate:Ta$1().min(0).max(100).meta({description:`Percentage of coupon tickets checked in`})}),Xr=qa$1({totalTickets:Da$1().min(0).meta({description:`Total valid tickets purchased with a coupon code`}),checkedIn:Da$1().min(0).meta({description:`Total coupon tickets currently checked in`}),noShows:Da$1().min(0).meta({description:`Total coupon tickets not currently checked in`}),checkInRate:Ta$1().min(0).max(100).meta({description:`Overall percentage of coupon tickets checked in`}),coupons:Ga$1(Yr).meta({description:`Check-in attendance breakdown by coupon code, sorted by total tickets descending`})}),V$1=Ii$1().describe(`Date (YYYY-MM-DD)`),Zr=na$1().min(1).max(128).optional().describe(`IANA time zone for interpreting date ranges`),Qr=qa$1({startDate:V$1.describe(`Start date (YYYY-MM-DD)`),endDate:V$1.describe(`End date (YYYY-MM-DD)`),timeZone:Zr}),$r={startDate:V$1.optional().describe(`Start date (YYYY-MM-DD)`),endDate:V$1.optional().describe(`End date (YYYY-MM-DD)`),timeZone:Zr},ei=e=>!e.startDate&&!e.endDate||!!(e.startDate&&e.endDate);qa$1($r).refine(ei,{message:`Both startDate and endDate must be provided together, or omit both for all-time data`});function H$1(e){return qa$1(e).extend(Qr.shape)}function ni(e){return qa$1({...e,...$r}).refine(ei,{message:`Both startDate and endDate must be provided together, or omit both for all-time data`})}const U$1=qa$1({value:Ta$1().describe(`Current period value`),previous:Ta$1().describe(`Comparison period value`),change:Ta$1().describe(`Percentage change from previous period`),changeType:io$1([`increase`,`decrease`,`unchanged`]).describe(`Direction of change`)}),ri=qa$1({eventId:na$1().describe(`Event identifier`),eventName:na$1().describe(`Event name`),ticketCount:Ta$1().describe(`Number of tickets sold`),sharePercent:Ta$1().describe(`Percentage of total tickets`)}),W$1=qa$1({start:na$1().describe(`Period start date`),end:na$1().describe(`Period end date`)}),ii=qa$1({start:na$1().describe(`Comparison period start date`),end:na$1().describe(`Comparison period end date`)}),ai=io$1([`HOUR`,`DAY`,`WEEK`,`MONTH`]),oi=qa$1({date:na$1().describe(`Date (YYYY-MM-DD)`),revenue:Ta$1().describe(`Revenue in cents`),tickets:Ta$1().describe(`Tickets sold`)}),si=oi.extend({orders:Ta$1().describe(`Orders placed`)}),ci=qa$1({revenue:Ta$1().describe(`Total revenue for period in cents`),tickets:Ta$1().describe(`Total tickets for period`)}),li=ci.extend({orders:Ta$1().describe(`Total orders for period`)}),ui=qa$1({revenue:U$1.describe(`Total revenue in cents`),ticketsSold:U$1.describe(`Number of tickets sold`),averageOrderValue:U$1.describe(`Average order value in cents`),conversionRate:U$1.describe(`Overall conversion rate (%)`),activeEvents:U$1.describe(`Number of active events in period`),uniqueCustomers:U$1.describe(`Unique customers (estimated)`),orderCount:U$1.describe(`Number of orders placed`),pageViews:U$1.describe(`Total page views from tracking`)}),di=qa$1({events:Ga$1(ri),totalTickets:Ta$1().describe(`Total tickets across all events`)});function fi(t,n){return H$1({...gi(t,n),currency:na$1().optional().describe(`Currency code for revenue metrics`)})}function pi(t){return qa$1({meta:qa$1({...t,currency:na$1().describe(`Primary currency code`),currencies:Ga$1(na$1()).describe(`All currencies with transactions`),dateRange:W$1,comparisonRange:ii}),metrics:ui})}function mi(t,n){return H$1({...gi(t,n),granularity:ai.optional().default(`DAY`).describe(`Time granularity`),currency:na$1().optional().describe(`Currency filter`)})}function hi(e,t){return H$1({...gi(e,t),limit:Ta$1().optional().default(5).describe(`Maximum number of events to return`)})}function gi(t,n){return {[t]:na$1().describe(n)}}const _i=ni({eventId:na$1().describe(`Event identifier`)}).meta({description:`Event performance summary request`}),vi=qa$1({meta:qa$1({eventId:na$1().describe(`Event identifier`),eventName:na$1().describe(`Event name`),currency:na$1().describe(`Currency code (e.g., USD, EUR)`),dateRange:W$1.optional().describe(`Present only when startDate/endDate are provided`),comparisonRange:ii.optional().describe(`Present only when startDate/endDate are provided`)}),metrics:qa$1({revenue:U$1.describe(`Total revenue in cents`),ticketsSold:U$1.describe(`Number of tickets sold`),orderCount:U$1.describe(`Number of orders placed`),averageOrderValue:U$1.describe(`Average order value in cents`),conversionRate:U$1.extend({convertedVisitors:Ta$1().describe(`Unique eligible visitors who completed an order`).meta({description:`Unique eligible visitors who completed an order`}),eligibleVisitors:Ta$1().describe(`Unique visitors eligible for conversion`).meta({description:`Unique visitors eligible for conversion`})}).describe(`Visitor purchase conversion for the selected period`),pageViews:U$1.describe(`Total page/product views`),uniqueVisitors:U$1.describe(`Unique visitors (estimated)`),checkoutStarted:U$1.describe(`Number of checkout started events (external link clicks for external events)`)})}),yi=H$1({eventId:na$1().describe(`Event identifier`),granularity:ai.optional().default(`DAY`).describe(`Time granularity for aggregation`),breakdown:io$1([`TOTAL`]).optional().default(`TOTAL`).describe(`Breakdown type (always TOTAL for performance)`),includeBreakdowns:ka$1().optional().default(true).describe(`Whether to include admission and section breakdowns in each time bucket`)}),bi=qa$1({meta:qa$1({eventId:na$1(),eventName:na$1().describe(`Event name`),currency:na$1().describe(`Currency code`),dateRange:W$1,granularity:ai}),series:Ga$1(qa$1({date:na$1().describe(`Date or timestamp`),tickets:Ta$1().describe(`Tickets sold in period`),revenue:Ta$1().describe(`Revenue in period (cents)`),admissions:Ga$1(qa$1({id:na$1(),name:na$1(),quantity:Ta$1()})),sections:Ga$1(qa$1({id:na$1(),name:na$1(),quantity:Ta$1()}))}))}),xi=io$1([`HOUR`,`DAY`,`WEEK`,`MONTH`]).describe(`Time granularity for aggregation`),Si=H$1({eventId:na$1().describe(`Event identifier`),granularity:xi.optional().default(`DAY`)}).meta({description:`Event performance time series request`}),Ci=qa$1({meta:qa$1({eventId:na$1(),eventName:na$1().describe(`Event name`),currency:na$1().describe(`Currency code`),dateRange:W$1,granularity:xi}),series:Ga$1(qa$1({date:na$1().describe(`Date or timestamp`),revenue:Ta$1().describe(`Net revenue in period (cents)`),tickets:Ta$1().describe(`Tickets sold in period`),orders:Ta$1().describe(`Completed orders in period`),pageViews:Ta$1().describe(`Product/page views in period`),visitors:Ta$1().describe(`Unique visitors in period (estimated)`),checkoutStarted:Ta$1().describe(`Checkout started events in period`),convertedVisitors:Ta$1().describe(`Unique visitors who completed an order in period`),eligibleVisitors:Ta$1().describe(`Unique visitors eligible for conversion in period`),conversionRate:Ta$1().describe(`Converted visitors divided by eligible visitors in period (%)`)}))}),wi=H$1({eventId:na$1().describe(`Event identifier`)}),Ti=qa$1({meta:qa$1({eventId:na$1(),eventName:na$1().describe(`Event name`),currency:na$1().describe(`Currency code`),dateRange:W$1}),totals:qa$1({entered:Ta$1().describe(`Total entered funnel (product viewed)`),completed:Ta$1().describe(`Total completed (orders)`),overallConversionRate:Ta$1().describe(`Overall conversion rate (%)`),totalDropped:Ta$1().describe(`Total dropped off`)}),stages:Ga$1(qa$1({id:na$1().describe(`Funnel stage identifier`),name:na$1().describe(`Human-readable stage name`),count:Ta$1().describe(`Number of events at this stage`),conversionRate:Ta$1().describe(`Conversion rate from first stage (%)`),dropoffRate:Ta$1().describe(`Dropoff rate from previous stage (%)`)}))});qa$1({meta:qa$1({eventId:na$1(),dimension:na$1().describe(`Dimension type`),dateRange:W$1,limit:Ta$1().optional()}),data:Ga$1(qa$1({name:na$1().describe(`Dimension value (e.g., campaign name)`),views:Ta$1().describe(`Page/product views`),clicks:Ta$1().describe(`Ticket link clicks`).optional(),conversions:Ta$1().describe(`Completed orders`),revenue:Ta$1().describe(`Total revenue in cents`),conversionRate:Ta$1().describe(`Conversion rate (%)`),share:Ta$1().describe(`Percentage share of total`).optional()})),totals:qa$1({views:Ta$1(),conversions:Ta$1(),revenue:Ta$1()}).optional()});const Di=io$1([`HOUR`,`DAY`,`WEEK`,`MONTH`]),Oi=qa$1({eventId:na$1().describe(`Event identifier`),eventName:na$1().describe(`Event name`),currency:na$1().describe(`Currency code (e.g., USD, EUR)`),dateRange:W$1}),ki=Oi.extend({limit:Ta$1().describe(`Maximum number of results returned`)}),Ai=io$1([`MOBILE`,`DESKTOP`,`TABLET`,`Unknown`]),ji=io$1([`revenue`,`tickets`,`orders`,`pageViews`,`visitors`,`conversion`,`clicks`,`clickRate`]).describe(`Metric used to sort breakdown rows before limiting results`);H$1({eventId:na$1(),granularity:Di.optional()});qa$1({granularity:Di,data:Ga$1(qa$1({date:na$1(),revenue:Ta$1(),ticketsSold:Ta$1()}))});const Pi=H$1({eventId:na$1(),limit:Ta$1().min(1).max(100).optional().default(10)}),Fi=qa$1({meta:ki,totals:qa$1({uses:Ta$1().describe(`Total coupon uses across all coupons`),revenue:Ta$1().describe(`Total revenue from coupon-discounted orders (cents)`)}),coupons:Ga$1(qa$1({id:na$1().describe(`Coupon code identifier`),code:na$1().describe(`Coupon code`),uses:Ta$1().describe(`Number of times this coupon was used`),revenue:Ta$1().describe(`Revenue from this coupon (cents)`),discount:na$1().describe(`Discount amount or percentage`),share:Ta$1().describe(`Share of total coupon uses (%)`)})).describe(`Coupons sorted by uses descending`)}),Ii=H$1({eventId:na$1(),limit:Ta$1().min(1).max(100).optional().default(10),sortBy:ji.optional().default(`orders`)}),Li=qa$1({data:Ga$1(qa$1({campaign:na$1(),views:Ta$1(),visitors:Ta$1(),clicks:Ta$1().optional(),orders:Ta$1(),tickets:Ta$1(),revenue:Ta$1(),conversionRate:Ta$1(),sharePercent:Ta$1()})),totalOrders:Ta$1(),totalTickets:Ta$1(),totalRevenue:Ta$1()}),Ri=H$1({eventId:na$1(),limit:Ta$1().min(1).max(100).optional().default(10),sortBy:ji.optional().default(`orders`)}),zi=qa$1({meta:ki,totals:qa$1({views:Ta$1().describe(`Total views across all mediums`),visitors:Ta$1().describe(`Total unique visitors across all mediums`),orders:Ta$1().describe(`Total orders across all mediums`),tickets:Ta$1().describe(`Total tickets across all mediums`),revenue:Ta$1().describe(`Total revenue across all mediums (cents)`)}),mediums:Ga$1(qa$1({id:na$1().describe(`Medium identifier (e.g., 'social', 'email')`),name:na$1().describe(`Medium name`),views:Ta$1().describe(`Views from this medium`),visitors:Ta$1().describe(`Unique visitors from this medium`),clicks:Ta$1().optional().describe(`Ticket link clicks`),orders:Ta$1().describe(`Orders from this medium`),tickets:Ta$1().describe(`Tickets from this medium`),revenue:Ta$1().describe(`Revenue from this medium (cents)`),conversionRate:Ta$1().describe(`Conversion rate (%)`),share:Ta$1().describe(`Share of total orders (%)`)})).describe(`Mediums sorted by orders descending`)}),Bi=H$1({eventId:na$1(),limit:Ta$1().min(1).max(100).optional().default(10),sortBy:ji.optional().default(`orders`)}),Vi=qa$1({meta:Oi,totals:qa$1({views:Ta$1().describe(`Total views across all devices`),visitors:Ta$1().describe(`Total unique visitors across all devices`),revenue:Ta$1().describe(`Total revenue across all devices (cents)`),orders:Ta$1().describe(`Total orders across all devices`),tickets:Ta$1().describe(`Total tickets across all devices`)}),devices:Ga$1(qa$1({id:Ai.describe(`Device type`),name:na$1().describe(`Human-readable device name`),views:Ta$1().optional().describe(`Page views from this device`),visitors:Ta$1().describe(`Unique visitors from this device`),revenue:Ta$1().describe(`Revenue from this device (cents)`),clicks:Ta$1().optional().describe(`Ticket link clicks`),orders:Ta$1().describe(`Orders from this device`),tickets:Ta$1().describe(`Tickets from this device`),conversionRate:Ta$1().describe(`Conversion rate (%)`),share:Ta$1().describe(`Share of total orders (%)`)})).describe(`Devices sorted by orders descending`)}),Hi=H$1({eventId:na$1(),limit:Ta$1().min(1).max(100).optional().default(10),sortBy:ji.optional().default(`visitors`)}),Ui=qa$1({meta:ki,totals:qa$1({views:Ta$1().describe(`Total views across all browsers`),visitors:Ta$1().describe(`Total unique visitors across all browsers`),orders:Ta$1().describe(`Total orders across all browsers`),tickets:Ta$1().describe(`Total tickets across all browsers`),revenue:Ta$1().describe(`Total revenue across all browsers (cents)`)}),browsers:Ga$1(qa$1({id:na$1().describe(`Browser identifier`),name:na$1().describe(`Human-readable browser name`),views:Ta$1().describe(`Page views from this browser`),clicks:Ta$1().optional().describe(`Ticket link clicks`),visitors:Ta$1().describe(`Unique visitors from this browser`),orders:Ta$1().describe(`Orders from this browser`),tickets:Ta$1().describe(`Tickets from this browser`),revenue:Ta$1().describe(`Revenue from this browser (cents)`),conversionRate:Ta$1().describe(`Conversion rate (%)`),share:Ta$1().describe(`Share of total visitors (%)`)})).describe(`Browsers sorted by visitors descending`)}),Wi=H$1({eventId:na$1(),limit:Ta$1().min(1).max(100).optional().default(10),sortBy:ji.optional().default(`pageViews`)}),Gi=qa$1({meta:ki,totals:qa$1({views:Ta$1().describe(`Total views across all locations`),visitors:Ta$1().describe(`Total unique visitors across all locations`),orders:Ta$1().describe(`Total orders across all locations`),tickets:Ta$1().describe(`Total tickets across all locations`),revenue:Ta$1().describe(`Total revenue across all locations (cents)`)}),locations:Ga$1(qa$1({id:na$1().describe(`Location/region code (e.g., 'US-CA', 'GB')`),name:na$1().describe(`Human-readable location name`),views:Ta$1().describe(`Page views from this location`),visitors:Ta$1().describe(`Unique visitors from this location`),clicks:Ta$1().optional().describe(`Ticket link clicks`),orders:Ta$1().describe(`Orders from this location`),tickets:Ta$1().describe(`Tickets from this location`),revenue:Ta$1().describe(`Revenue from this location (cents)`),conversionRate:Ta$1().describe(`Conversion rate (%)`),share:Ta$1().describe(`Share of total views (%)`)})).describe(`Locations sorted by views descending`)}),Ki=H$1({eventId:na$1(),limit:Ta$1().min(1).max(100).optional().default(10),sortBy:ji.optional().default(`pageViews`)}),qi=qa$1({meta:ki,totals:qa$1({sessions:Ta$1().describe(`Total sessions across all sources`),visitors:Ta$1().describe(`Total unique visitors across all sources`),orders:Ta$1().describe(`Total orders across all sources`),tickets:Ta$1().describe(`Total tickets across all sources`),revenue:Ta$1().describe(`Total revenue across all sources (cents)`)}),sources:Ga$1(qa$1({id:na$1().describe(`Traffic source identifier`),name:na$1().describe(`Traffic source name`),referrer:na$1().describe(`Referrer URL or domain`),sessions:Ta$1().describe(`Sessions from this source`),visitors:Ta$1().describe(`Unique visitors from this source`),clicks:Ta$1().optional().describe(`Ticket link clicks`),orders:Ta$1().describe(`Orders from this source`),tickets:Ta$1().describe(`Tickets from this source`),conversionRate:Ta$1().describe(`Conversion rate (%)`),revenue:Ta$1().describe(`Revenue from this source (cents)`),share:Ta$1().describe(`Share of total sessions (%)`)})).describe(`Traffic sources sorted by sessions descending`)}),Ji=qa$1({eventId:na$1(),includeAdmission:ka$1().optional().default(true),includeSection:ka$1().optional().default(true),granularity:io$1([`HOUR`,`MINUTE`]).optional()}),Yi=qa$1({totalTickets:Ta$1(),checkedIn:Ta$1(),notCheckedIn:Ta$1(),checkinRate:Ta$1()}),Xi=Yi.extend({admissionId:na$1(),admissionName:na$1()}),Zi=Yi.extend({sectionId:na$1(),sectionName:na$1()}),Qi=Xa$1([Yi.extend({byAdmission:Ga$1(Xi),bySection:Ga$1(Zi)}),qa$1({granularity:io$1([`HOUR`,`MINUTE`]),totalTickets:Ta$1(),data:Ga$1(qa$1({timestamp:na$1(),checkedIn:Ta$1(),rate:Ta$1(),checkinsThisPeriod:Ta$1()})),byAdmission:Ga$1(qa$1({admissionId:na$1(),admissionName:na$1(),data:Ga$1(qa$1({timestamp:na$1(),checkedIn:Ta$1(),rate:Ta$1()}))})).optional(),bySection:Ga$1(qa$1({sectionId:na$1(),sectionName:na$1(),data:Ga$1(qa$1({timestamp:na$1(),checkedIn:Ta$1(),rate:Ta$1()}))})).optional()})]),$i=qa$1({eventId:na$1(),limit:Ta$1().min(1).max(50).optional().default(10)}),ea=qa$1({totalCheckIns:Ta$1(),scanners:Ga$1(qa$1({userId:na$1(),name:na$1(),email:na$1(),checkIns:Ta$1(),sharePercent:Ta$1(),firstScanAt:na$1().nullable(),lastScanAt:na$1().nullable(),activeMinutes:Ta$1(),scansPerHour:Ta$1(),devices:Ga$1(qa$1({deviceId:na$1(),checkIns:Ta$1()}))})).describe(`Door staff sorted by check-ins descending`)}),ta=qa$1({eventId:na$1(),includeAdmission:ka$1().optional().default(true),includeSection:ka$1().optional().default(true)}),na=qa$1({totalTickets:Ta$1(),checkedIn:Ta$1(),noShows:Ta$1(),checkInRate:Ta$1(),noShowRate:Ta$1()}),ra=na.extend({admissionId:na$1(),admissionName:na$1()}),ia=na.extend({sectionId:na$1(),sectionName:na$1()}),aa=na.extend({byAdmission:Ga$1(ra),bySection:Ga$1(ia)}),oa=qa$1({eventId:na$1(),granularity:io$1([`MINUTE`,`FIFTEEN_MINUTE`,`HOUR`]).optional().default(`FIFTEEN_MINUTE`)}),sa=qa$1({granularity:io$1([`MINUTE`,`FIFTEEN_MINUTE`,`HOUR`]),totalCheckIns:Ta$1(),peakWindow:qa$1({start:na$1().nullable(),end:na$1().nullable(),checkIns:Ta$1()}),data:Ga$1(qa$1({timestamp:na$1(),checkIns:Ta$1(),cumulativeCheckIns:Ta$1(),cumulativeRate:Ta$1()}))}),ca=fi(`promoterId`,`Promoter identifier`),la=pi({promoterId:na$1().describe(`Promoter identifier`),promoterName:na$1().describe(`Promoter name`),teamId:na$1().describe(`Team identifier`),teamName:na$1().describe(`Team name`)}),ua=mi(`promoterId`,`Promoter identifier`),da=qa$1({meta:qa$1({promoterId:na$1(),dateRange:W$1,granularity:ai}),currencies:Ga$1(qa$1({currency:na$1().describe(`Currency code (e.g., USD, EUR)`),series:Ga$1(oi),totals:ci})).describe(`Time-series data grouped by currency`)}),fa=hi(`promoterId`,`Promoter identifier`),pa=di,ma=fi(`teamId`,`Team identifier`),ha=pi({teamId:na$1().describe(`Team identifier`),teamName:na$1().describe(`Team name`)}),ga=mi(`teamId`,`Team identifier`),_a=qa$1({meta:qa$1({teamId:na$1(),dateRange:W$1,granularity:ai}),currencies:Ga$1(qa$1({currency:na$1().describe(`Currency code (e.g., USD, EUR)`),series:Ga$1(si),totals:li})).describe(`Time-series data grouped by currency`)});H$1({teamId:na$1().describe(`Team identifier`),limit:Ta$1().optional().default(10).describe(`Number of events to return`),sortBy:io$1([`revenue`,`tickets`,`conversion`]).optional().default(`revenue`).describe(`Sort metric`)});qa$1({meta:qa$1({teamId:na$1(),dateRange:qa$1({start:na$1(),end:na$1()}),limit:Ta$1(),sortBy:na$1()}),data:Ga$1(qa$1({eventId:na$1().describe(`Event identifier`),eventName:na$1().describe(`Event name`),eventDate:na$1().describe(`Event date`).optional(),status:na$1().describe(`Event status`),revenue:Ta$1().describe(`Total revenue in cents`),tickets:Ta$1().describe(`Tickets sold`),views:Ta$1().describe(`Page views`),conversionRate:Ta$1().describe(`Conversion rate (%)`),contribution:Ta$1().describe(`% of promoter's total revenue`)})),totals:qa$1({events:Ta$1().describe(`Total events in period`),revenue:Ta$1().describe(`Combined revenue`),tickets:Ta$1().describe(`Combined tickets`)})});const ba=hi(`teamId`,`Team identifier`),xa=di,Sa=H$1({teamId:na$1().describe(`Team identifier`)}),Ca=qa$1({stages:Ga$1(qa$1({stageId:na$1().describe(`Funnel stage identifier`),stageLabel:na$1().describe(`Human-readable stage name`),count:Ta$1().describe(`Number of events at this stage`),conversionRate:Ta$1().describe(`Conversion rate from first stage (%)`),dropoffPercent:Ta$1().describe(`Dropoff rate from previous stage (%)`)}))}),wa=H$1({teamId:na$1().describe(`Team identifier`),groupBy:io$1([`HOUR`,`DAY_OF_WEEK`,`DAY`,`WEEK`,`MONTH`]).optional().default(`HOUR`).describe(`Time breakdown for aggregation`),timeZone:na$1().optional().default(`UTC`).describe(`IANA timezone for hour/day aggregation (e.g., 'America/New_York')`)}),Ta=qa$1({groupBy:io$1([`HOUR`,`DAY_OF_WEEK`,`DAY`,`WEEK`,`MONTH`]).describe(`The grouping used for aggregation`),buckets:Ga$1(qa$1({key:Xa$1([Ta$1(),na$1()]).describe(`Bucket key (hour 0-23, day 0-6, or date string)`),label:na$1().describe(`Human-readable label`),orderCount:Ta$1().describe(`Number of orders`),sharePercent:Ta$1().describe(`Percentage of total orders`)})),totalOrders:Ta$1().describe(`Total orders across all buckets`)}),Ea=H$1({teamId:na$1().describe(`Team identifier`),limit:Ta$1().optional().default(10).describe(`Maximum number of admissions to return`)}),Da=qa$1({admissions:Ga$1(qa$1({admissionId:na$1().describe(`Admission identifier`),admissionName:na$1().describe(`Admission name`),ticketCount:Ta$1().describe(`Number of tickets sold`),sharePercent:Ta$1().describe(`Percentage of total tickets`)})),totalTickets:Ta$1().describe(`Total tickets across all admissions`)}),Oa=H$1({teamId:na$1().describe(`Team identifier`),type:io$1([`campaign`,`medium`,`source`]).describe(`Dimension type to analyze`),limit:Ta$1().optional().default(20).describe(`Maximum number of results to return`)}),ka=qa$1({dimensionType:io$1([`campaign`,`medium`,`source`]).describe(`The dimension type analyzed`),data:Ga$1(qa$1({dimensionValue:na$1().describe(`The dimension value (e.g., campaign name)`),dimensionLabel:na$1().describe(`Human-readable label`),views:Ta$1().describe(`Total page views`),conversions:Ta$1().describe(`Total conversions (orders)`),conversionRate:Ta$1().describe(`Conversion rate (%)`),sharePercent:Ta$1().describe(`Share of total conversions (%)`)})),totalConversions:Ta$1().describe(`Total conversions across all dimensions`)}),Aa=qa$1({teamId:na$1().describe(`Team identifier`),startAt:Pi$1().describe(`Inclusive period start timestamp`),endAt:Pi$1().describe(`Exclusive period end timestamp`)}),ja=qa$1({currency:na$1().describe(`Currency code`),disputedOrders:Ta$1().describe(`Orders currently marked as disputed`),orderCount:Ta$1().describe(`Successful orders`),refunded:Ta$1().describe(`Refunded amount in cents`),refundCount:Ta$1().describe(`Orders with refunded value`),refundRate:Ta$1().describe(`Refunded order rate as a percentage`),revenue:Ta$1().describe(`Total order value in cents`),ticketsSold:Ta$1().describe(`Tickets sold`)}),Ma=ja.omit({currency:true}),Na=qa$1({currencies:Ga$1(ja),comparison:qa$1({totals:Ma}),meta:qa$1({endAt:na$1().describe(`Exclusive period end timestamp`),startAt:na$1().describe(`Inclusive period start timestamp`),teamId:na$1().describe(`Team identifier`)}),totals:Ma}),Pa=qa$1({teamId:na$1().describe(`Team identifier`)}),Fa=Xa$1([Pa.extend({startDate:V$1.describe(`Start date (YYYY-MM-DD)`),endDate:V$1.describe(`End date (YYYY-MM-DD)`)}),Pa.extend({startDate:ja$1().optional(),endDate:ja$1().optional()})]),Ia=qa$1({amount:Ta$1().describe(`Payout net amount in cents`),count:Ta$1().describe(`Number of payouts in this currency`),currency:na$1().describe(`Currency code`)}),La=qa$1({amount:Ta$1().describe(`Payout net amount in cents`),currency:na$1().nullable().describe(`Currency code`),dueAt:na$1().nullable().describe(`Payout due timestamp`),payoutId:na$1().nullable().describe(`Payout identifier`)}),Ra=qa$1({amount:Ta$1().describe(`Payout net amount in cents`),currency:na$1().nullable().describe(`Currency code`),paidAt:na$1().nullable().describe(`Payout paid timestamp`),payoutId:na$1().nullable().describe(`Payout identifier`)}),za=qa$1({upcoming:qa$1({count:Ta$1().describe(`Upcoming payouts matching the request`),pendingApproval:Ta$1().describe(`Upcoming payouts still awaiting approval`),totals:Ga$1(Ia).describe(`Upcoming payout totals by currency`),next:La}),lastPaid:Ra}),Ba=qa$1({teamId:na$1().describe(`Team identifier`),startDate:V$1.describe(`Start date (YYYY-MM-DD)`),endDate:V$1.describe(`End date (YYYY-MM-DD)`),granularity:ai.optional().default(`DAY`).describe(`Time granularity`),currency:na$1().optional().describe(`Currency filter`)}),Va=io$1([`revenue`,`credits`,`refunds`,`disputes`,`payouts`]),Ha=qa$1({id:na$1().optional().describe(`Source identifier`),label:na$1().describe(`Human-readable source label`),kind:Va,amount:Ta$1().describe(`Signed movement amount in cents`),eventId:na$1().optional().describe(`Related event identifier`),eventName:na$1().optional().describe(`Related event name`)}),Ua=qa$1({date:na$1().describe(`Bucket date`),label:na$1().describe(`Human-readable bucket label`),revenue:Ta$1().describe(`Successful order total after discounts in cents`),credits:Ta$1().describe(`Positive credit amount in cents`),refunds:Ta$1().describe(`Signed refund adjustment amount in cents`),disputes:Ta$1().describe(`Signed dispute principal and fee adjustment amount in cents`),payouts:Ta$1().describe(`Signed paid payout amount in cents`),movements:Ga$1(Ha)}),Wa=qa$1({revenue:Ta$1().describe(`Successful order total after discounts in cents`),credits:Ta$1().describe(`Positive credit amount in cents`),refunds:Ta$1().describe(`Signed refund adjustment amount in cents`),disputes:Ta$1().describe(`Signed dispute principal and fee adjustment amount in cents`),payouts:Ta$1().describe(`Signed paid payout amount in cents`),net:Ta$1().describe(`Net signed money movement in cents`)}),Ga=qa$1({amount:Ta$1().describe(`Outstanding adjustment amount in cents`),count:Ta$1().describe(`Outstanding adjustment count`),currency:na$1().describe(`Currency code`)}),Ka=qa$1({meta:qa$1({teamId:na$1(),dateRange:W$1,granularity:ai}),cards:qa$1({upcomingPayouts:qa$1({count:Ta$1(),pendingApproval:Ta$1(),totals:Ga$1(Ia)}),adjustments:qa$1({count:Ta$1(),totals:Ga$1(Ga)}),nextPayout:La,lastPaid:Ra}),currencies:Ga$1(qa$1({currency:na$1().describe(`Currency code`),series:Ga$1(Ua),totals:Wa}))}),qa=H$1({teamId:na$1().describe(`Team identifier`),granularity:io$1([`DAY`,`WEEK`,`MONTH`]).optional().default(`DAY`).describe(`Time granularity for aggregation`)}),Ja=qa$1({granularity:io$1([`DAY`,`WEEK`,`MONTH`]).describe(`The granularity used`),series:Ga$1(qa$1({date:na$1().describe(`Date key (YYYY-MM-DD, YYYY-Www, or YYYY-MM)`),label:na$1().describe(`Human-readable label`),productViewed:Ta$1().describe(`Page views`),productAdded:Ta$1().describe(`Add to cart events`),checkoutStarted:Ta$1().describe(`Checkout started events`),orderCompleted:Ta$1().describe(`Completed orders`)})),totals:qa$1({productViewed:Ta$1().describe(`Total page views`),productAdded:Ta$1().describe(`Total add to cart`),checkoutStarted:Ta$1().describe(`Total checkouts started`),orderCompleted:Ta$1().describe(`Total orders completed`),uniqueVisitors:Ta$1().describe(`Unique visitors (estimated via HyperLogLog, ~0.8% error)`)})}),Ya=qa$1({product_id:na$1().optional().describe(`admission_id in ticketing context`),sku:na$1().optional().describe(`admission_id or admission_name`),category:na$1().optional().describe(`event_name or "Admission"`),name:na$1().optional().describe(`admission_name`),brand:na$1().optional().describe(`promoter_name`),variant:na$1().optional().describe(`section_name`),price:Ta$1().optional().describe(`admission price (base + booking fee) in major currency units`),quantity:Ta$1().optional().describe(`number of tickets`),coupon:na$1().optional().describe(`coupon code applied`),position:Ta$1().optional().describe(`position in list`),url:na$1().optional().describe(`URL to event/admission page`),image_url:na$1().optional().describe(`event image`),admission_id:na$1().optional().describe(`Explicit admission ID`),section_id:na$1().optional().describe(`Section ID if applicable`),event_id:na$1().optional().describe(`Event ID for this admission`),promoter_id:na$1().optional().describe(`Promoter ID`),price_base:Ta$1().nullish().describe(`Base price before fees in minor currency units`),price_booking_fee:Ta$1().nullish().describe(`Booking fee in minor currency units`),capacity:Ta$1().optional().describe(`Total capacity for this admission`),available:Ta$1().optional().describe(`Remaining tickets available`),sold:Ta$1().optional().describe(`Tickets already sold`)}),Xa=qa$1({type:na$1(),value:na$1()}),Za=qa$1({type:na$1(),value:na$1()}),Qa=qa$1({query:Xa$1([na$1(),no$1(na$1(),La$1())]).optional(),list_id:na$1().optional(),category:na$1().optional(),filters:Ga$1(Xa).optional(),sorts:Ga$1(Za).optional(),promotion_id:na$1().optional(),creative:na$1().optional(),name:na$1().optional(),position:Xa$1([na$1(),Ta$1()]).optional(),product_id:na$1().optional(),sku:na$1().optional(),brand:na$1().optional(),variant:na$1().optional(),price:Ta$1().optional().describe(`Product price in major currency units`),quantity:Ta$1().optional(),coupon:na$1().optional(),currency:na$1().optional().describe(`ISO 4217 currency code`),value:Ta$1().optional().describe(`Event value in major currency units`),url:na$1().optional(),image_url:na$1().optional(),cart_id:na$1().optional(),step:Ta$1().optional(),shipping_method:na$1().optional(),payment_method:na$1().optional(),ticketing_mode:io$1([`internal`,`external`]).optional(),external_ticket_url:na$1().optional(),external_ticket_domain:na$1().optional(),cta_surface:na$1().optional(),order_id:na$1().optional(),affiliation:na$1().optional(),subtotal:Ta$1().optional().describe(`Order subtotal in major currency units`),total:Ta$1().optional().describe(`Order total in major currency units`),revenue:Ta$1().optional().describe(`Order revenue in major currency units`),shipping:Ta$1().optional().describe(`Shipping amount in major currency units`),tax:Ta$1().optional().describe(`Tax amount in major currency units`),discount:Ta$1().optional().describe(`Discount amount in major currency units`),coupon_id:na$1().optional(),coupon_name:na$1().optional(),reason:na$1().optional(),wishlist_id:na$1().optional(),wishlist_name:na$1().optional(),share_via:na$1().optional(),share_message:na$1().optional(),recipient:na$1().optional(),review_id:na$1().optional(),review_body:na$1().optional(),rating:na$1().optional(),products:Ga$1(Ya).optional(),event_id:na$1().optional().describe(`ID of the ticketed event (evt_xxx)`),event_name:na$1().optional().describe(`Name of the ticketed event`),event_slug:na$1().optional().describe(`URL slug of event`),event_starts_at:I$1.optional().describe(`When the event starts (naive datetime, no timezone)`),event_ends_at:I$1.optional().describe(`When the event ends (naive datetime, no timezone)`),event_status:io$1([`UPCOMING`,`LIVE`,`ENDED`,`CANCELLED`]).optional(),event_visibility:io$1([`PUBLIC`,`PRIVATE`]).optional(),event_location:na$1().optional().describe(`Venue name`),event_city:na$1().optional().describe(`Venue city`),event_country:na$1().optional().describe(`Venue country`),promoter_id:na$1().optional().describe(`ID of the promoter (pmt_xxx)`),promoter_name:na$1().optional().describe(`Name of the promoter`),promoter_slug:na$1().optional().describe(`URL slug of promoter`),admission_id:na$1().optional().describe(`ID of admission type (adm_xxx)`),admission_name:na$1().optional().describe(`Name of admission (e.g., "General Admission")`),admission_capacity:Ta$1().optional().describe(`Total capacity for this admission`),admission_available:Ta$1().optional().describe(`Tickets still available`),admission_sold:Ta$1().optional().describe(`Tickets already sold`),section_id:na$1().optional().describe(`ID of section (sct_xxx)`),section_name:na$1().optional().describe(`Name of section (e.g., "VIP", "General")`),section_capacity:Ta$1().optional().describe(`Total capacity for this section`),section_available:Ta$1().optional().describe(`Spots still available in section`),ticket_id:na$1().optional().describe(`Individual ticket ID (tkt_xxx)`),ticket_status:io$1([`VALID`,`REDEEMED`,`CANCELLED`]).optional(),tickets_quantity:Ta$1().optional().describe(`Number of tickets in transaction`),customer_id:na$1().optional().describe(`Customer ID (cus_xxx)`),customer_email:na$1().optional().describe(`Customer email`),customer_first_name:na$1().optional(),customer_last_name:na$1().optional(),price_base:Ta$1().nullish().describe(`Base price before fees in minor currency units`),price_booking_fee:Ta$1().nullish().describe(`Booking fee amount in minor currency units`),price_discount_amount:Ta$1().nullish().describe(`Discount amount applied in minor currency units`),sale_starts_at:I$1.optional().describe(`When tickets go on sale (naive datetime, no timezone)`),sale_ends_at:I$1.optional().describe(`When ticket sales end (naive datetime, no timezone)`),entry_starts_at:I$1.optional().describe(`When entry to event begins (naive datetime, no timezone)`),entry_ends_at:I$1.optional().describe(`When entry to event ends (naive datetime, no timezone)`),funnel_step:na$1().optional().describe(`Current funnel step (e.g., "browse", "cart", "checkout")`),time_to_purchase:Ta$1().optional().describe(`Seconds from first view to purchase`),session_duration:Ta$1().optional().describe(`Total session duration in seconds`),referrer_type:io$1([`DIRECT`,`SOCIAL`,`EMAIL`,`SEARCH`,`REFERRAL`,`AD`]).optional(),campaign_id:na$1().optional().describe(`Marketing campaign ID`),affiliate_id:na$1().optional().describe(`Affiliate partner ID`),promo_code_used:na$1().optional().describe(`Promotional code applied`),platform:io$1([`WEB`,`MOBILE_WEB`,`IOS`,`ANDROID`]).optional(),app_version:na$1().optional(),device_type:io$1([`MOBILE`,`TABLET`,`DESKTOP`]).optional(),anonymous_id:na$1().optional(),browser:na$1().optional(),browser_session_id:na$1().optional(),country:na$1().optional(),page_path:na$1().optional(),page_title:na$1().optional(),page_url:na$1().optional(),referrer:na$1().optional(),region:na$1().optional(),user_agent:na$1().optional(),utm_source:na$1().optional(),utm_medium:na$1().optional(),utm_campaign:na$1().optional(),utm_term:na$1().optional(),utm_content:na$1().optional()}),$a=qa$1({session_id:na$1(),user_id:na$1().optional(),anonymous_id:na$1().optional(),utm_source:na$1().optional(),utm_medium:na$1().optional(),utm_campaign:na$1().optional(),utm_term:na$1().optional(),utm_content:na$1().optional(),page:qa$1({url:na$1(),path:na$1(),title:na$1()}),referrer:na$1().optional(),user_agent:na$1().optional(),ip:na$1().optional(),geo:qa$1({country:na$1().optional().describe(`Country code (e.g., "AU")`),countryName:na$1().optional().describe(`Country name (e.g., "Australia")`),region:na$1().optional().describe(`State/province code`),regionName:na$1().optional().describe(`State/province name (e.g., "New South Wales")`),city:na$1().optional().describe(`City name`),latitude:na$1().optional().describe(`Latitude`),longitude:na$1().optional().describe(`Longitude`)}).optional(),fbc:na$1().optional().describe(`Facebook click ID`),fbp:na$1().optional().describe(`Facebook browser ID`),ttclid:na$1().optional().describe(`TikTok click ID`)}),eo=qa$1({id:na$1(),eventId:na$1().min(1).describe(`Event being tracked (evt_123)`),teamId:na$1().min(1).describe(`Team ID (team_123)`),promoterId:na$1().min(1).describe(`Promoter ID (pmt_123)`),eventType:ms$1,timestamp:na$1(),date:na$1().describe(`YYYY-MM-DD`),hour:Ta$1().int().min(0).max(23),properties:Qa,context:$a,productId:na$1().optional(),createdAt:na$1(),updatedAt:na$1()}),to=eo.omit({id:true,timestamp:true,date:true,hour:true,createdAt:true,updatedAt:true}).extend({messageId:na$1().min(1).optional().meta({description:`Analytics message id for retry-safe event delivery and linking.`}),occurredAt:Pi$1().optional().meta({description:`Client-observed event time. Server ingest time remains authoritative for writes.`})}).meta({description:`Schema for tracking an analytics event. Excludes system-generated fields`}),no=qa$1({legacyOrgId:na$1().min(1),legacyEventId:na$1().min(1),legacyTeamId:na$1().min(1),legacyEventName:na$1().optional(),legacyEventSlug:na$1().optional(),legacyEventCreatedAt:Xa$1([na$1(),Ua$1(),Na$1()]).optional(),legacyTeamCreatedAt:Xa$1([na$1(),Ua$1(),Na$1()]).optional()}),ro=qa$1({eventName:na$1().min(1).optional(),eventType:ms$1.optional(),eventId:na$1().min(1).optional(),teamId:na$1().min(1).optional(),promoterId:na$1().min(1).optional(),properties:no$1(na$1(),La$1()).optional(),context:$a.partial().optional(),legacyContext:no.optional()}).passthrough().meta({description:`Compatibility schema for legacy Sash analytics payloads that require server-side ID normalization`}),io=Xa$1([to,ro]).meta({description:`Analytics ingress schema accepting both canonical payloads and legacy Sash-compatible payloads`});ni({eventId:na$1().meta({description:`Event ID to get tracking events for`}),limit:T$1().int().positive().optional().meta({description:`Maximum number of events to return`})}).meta({description:`Schema for retrieving tracking events for an event`});const oo=io$1([`AIRWALLEX`,`STRIPE`]),co=qa$1({id:na$1().readonly().meta({examples:[w$1.Beneficiary.id],description:`A unique identifier for this beneficiary.`}),createdAt:Pi$1().readonly().meta({examples:[w$1.Beneficiary.createdAt],description:`Timestamp in ISO 8601 format when this beneficiary was created.`}),updatedAt:Pi$1().readonly().meta({examples:[w$1.Beneficiary.updatedAt],description:`Timestamp in ISO 8601 format when this beneficiary was last updated.`}),name:na$1().meta({examples:[w$1.Beneficiary.name],description:`The account name for this beneficiary.`}),currency:D$1.meta({examples:[w$1.Beneficiary.currency],description:`Three-letter ISO 4217 currency code for payouts.`}),gateway:oo.meta({examples:[`STRIPE`],description:`The payment gateway used for processing payouts.`}),gatewayId:na$1().meta({examples:[w$1.Beneficiary.gatewayId],description:`The identifier assigned by the payment gateway to this account.`}),teamId:na$1().meta({description:`Team that owns this beneficiary account.`}),teamIds:Ga$1(na$1()).meta({examples:[[]],description:`List of team IDs this beneficiary is assigned to. Empty array means available to all teams.`}),venueIds:Ga$1(na$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`}),lo=qa$1({city:na$1().optional(),country_code:na$1(),postcode:na$1().optional(),state:na$1().optional(),street_address:na$1().optional()}),uo=qa$1({account_currency:na$1(),account_name:na$1(),account_number:na$1().optional(),account_routing_type1:na$1().optional(),account_routing_value1:na$1().optional(),account_routing_type2:na$1().optional(),account_routing_value2:na$1().optional(),bank_account_category:na$1().optional(),bank_branch:na$1().optional(),bank_country_code:na$1(),bank_name:na$1().optional(),bank_street_address:na$1().optional(),binding_mobile_number:na$1().optional(),fingerprint:na$1().optional(),iban:na$1().optional(),local_clearing_system:na$1().optional(),swift_code:na$1().optional(),transaction_reference:na$1().optional(),account_identifier_type:na$1().optional(),account_identifier_value:na$1().optional()}),fo=qa$1({transfer_methods:Ga$1(io$1([`SWIFT`,`LOCAL`])).meta({examples:[[`LOCAL`]],description:`Transfer methods supported for this beneficiary`}),beneficiary:qa$1({company_name:na$1().optional(),date_of_birth:na$1().optional(),entity_type:na$1().meta({examples:[`COMPANY`],description:`Whether the beneficiary is PERSONAL or COMPANY`}),first_name:na$1().optional(),last_name:na$1().optional(),address:lo,bank_details:uo,additional_info:qa$1({personal_email:ia$1().optional()}).optional()}).meta({description:`Beneficiary details including personal/company info, address, and bank details`})}).meta({description:`Complete beneficiary request structure for Airwallex validation`}),po=fo.extend({id:na$1().optional()}),mo=co.omit({id:true,createdAt:true,updatedAt:true,currency:true}).extend({currency:D$1.meta({examples:[w$1.Beneficiary.currency],description:`Three-letter ISO 4217 currency code for payouts to this beneficiary account`}),airwallex:po.optional().meta({examples:[w$1.AirwallexBeneficiary],description:`Airwallex-specific beneficiary details including bank account information and address (required when gateway is AIRWALLEX)`}),teamIds:Ga$1(na$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:Ga$1(na$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`}),ho=co.pick({id:true}).meta({description:`Schema for retrieving a single beneficiary by its unique identifier`}),go=ho.meta({description:`Schema for deleting a beneficiary account - requires the beneficiary ID`}),_o=qa$1({teamId:na$1().optional().meta({examples:[w$1.Team.id],description:`Optional identifier of the team whose beneficiaries to list. When provided, only beneficiaries for that team are returned.`}),gateway:io$1([`AIRWALLEX`,`STRIPE`]).optional().meta({examples:[w$1.Beneficiary.gateway],description:`Filter beneficiaries by payment gateway provider (optional)`}),currency:D$1.optional().meta({examples:[w$1.Beneficiary.currency],description:`Filter beneficiaries by currency code (optional)`}),query:na$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:L$1(`beneficiaries`).optional(),cursor:na$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`}),vo=B$1(co,`beneficiaries`),yo=qa$1({beneficiary:co}),bo=qa$1({min:Ta$1().optional().meta({description:`Minimum number of time units for the transfer`}),max:Ta$1().optional().meta({description:`Maximum number of time units for the transfer`}),unit:na$1().optional().meta({examples:[`day`],description:`Time unit (e.g., 'day', 'hour')`})}).meta({description:`Expected transfer completion time range`}),xo=qa$1({min:Ta$1().optional().meta({description:`Minimum transfer amount`}),max:Ta$1().optional().meta({description:`Maximum transfer amount`})}).meta({description:`Transfer amount limits`}),So=qa$1({label:na$1().meta({description:`Display label for the option`}),value:na$1().meta({description:`Value to submit when selected`}),flightTime:bo.optional().meta({description:`Expected transfer time for TRANSFER_METHOD options`}),transferLimit:xo.optional().meta({description:`Transfer amount limits for TRANSFER_METHOD options`}),processingTime:na$1().optional().meta({description:`Human-readable processing time description`})}).meta({description:`A selectable option in a form field`}),Co=qa$1({type:io$1([`INPUT`,`SELECT`,`RADIO`,`TRANSFER_METHOD`,`DYNAMIC_SELECT`]).meta({examples:[`INPUT`],description:`The type of form input to render`}),label:na$1().optional().meta({description:`Display label for the field`}),placeholder:na$1().optional().meta({description:`Placeholder text for input fields`}),description:na$1().optional().meta({description:`Detailed description of the field`}),tip:na$1().optional().meta({description:`Tooltip information shown on hover`}),example:na$1().optional().meta({description:`Example value for the field`}),default:na$1().optional().meta({description:`Default value to pre-populate the field`}),key:na$1().optional().meta({description:`Unique key identifier for the field`}),options:Ga$1(So).optional().meta({description:`Available options for SELECT and RADIO field types`}),refresh:ka$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`}),wo=qa$1({pattern:na$1().optional().meta({description:`Regex pattern for field validation`}),type:na$1().optional().meta({description:`Validation type identifier`})}).meta({description:`Validation rules for a form field`}),To=qa$1({path:na$1().meta({examples:[`beneficiary.bank_details.account_number`],description:`Dot-notation path to the field in the beneficiary request object`}),enabled:ka$1().meta({examples:[true],description:`Whether this field should be displayed`}),required:ka$1().meta({examples:[true],description:`Whether this field is required for submission`}),field:Co.optional().meta({description:`Field definition with type, label, and options`}),rule:wo.optional().meta({description:`Validation rules for the field`})}).meta({description:`A single field in the beneficiary form schema with display and validation rules`}),Eo=qa$1({bankCountryCode:na$1().regex(/^[A-Z]{2}$/).meta({examples:[`AU`],description:`Two-letter ISO 3166-1 alpha-2 country code for the bank location`}),accountCurrency:D$1.meta({examples:[`AUD`],description:`Three-letter ISO 4217 currency code for the beneficiary account`}),entityType:io$1([`PERSONAL`,`COMPANY`]).meta({examples:[`COMPANY`],description:`Whether the beneficiary is an individual or a company`}),transferMethod:io$1([`LOCAL`,`SWIFT`]).optional().meta({examples:[`LOCAL`],description:`Transfer method: SWIFT for international wire transfers, LOCAL for domestic transfers`}),localClearingSystem:na$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:no$1(na$1(),na$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.`})}).superRefine((e,t)=>{e.localClearingSystem&&e.transferMethod===`SWIFT`&&t.addIssue({code:`custom`,path:[`localClearingSystem`],message:`Local clearing system requires LOCAL transfer method`});}).meta({description:`Parameters to fetch the form schema for a beneficiary.`}),Do=qa$1({unavailableReason:oo$1(`UNSUPPORTED_COMBINATION`).optional().meta({description:`When present, the selected country, currency, recipient type or transfer options are unsupported and fields is empty.`}),fields:Ga$1(To).meta({description:`Array of form fields with their display and validation configuration`}),selectedTransferMethod:io$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:na$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`}),Oo=S$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(Eo.strict()).output(Do),ko=qa$1({source:na$1().meta({examples:[`beneficiary.bank_details.account_number`],description:`Dot-notation path to the field that failed validation`}),code:na$1().meta({examples:[`001`],description:`Airwallex validation error code`}),message:na$1().meta({examples:[`This field is required`],description:`Human-readable error message`})}).meta({description:`Details about a single validation error for a field`}),Ao=fo.meta({description:`Beneficiary request data to validate against Airwallex rules before creating`}),jo=qa$1({valid:ka$1().meta({examples:[true],description:`Whether the beneficiary request passed all validation rules`}),errors:Ga$1(ko).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`}),Mo=S$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(Ao.strict()).output(jo),No=io$1([`AMOUNT`,`PERCENT`]),Fo=io$1([`TEAM`,`PROMOTER`,`EVENTS`,`SECTIONS`,`ADMISSIONS`]),Lo=qa$1({id:na$1().readonly().meta({examples:[w$1.Coupon.id],description:`A unique identifier for this coupon.`}),couponId:na$1().optional().readonly().meta({examples:[w$1.Coupon.couponId],description:`Duplicate of id field for GSI queries.`}),createdAt:Pi$1().readonly().meta({examples:[w$1.Coupon.createdAt],description:`Timestamp in ISO 8601 format when this coupon was created.`}),updatedAt:Pi$1().readonly().meta({examples:[w$1.Coupon.updatedAt],description:`Timestamp in ISO 8601 format when this coupon was last updated.`}),name:na$1().meta({examples:[w$1.Coupon.name],description:`Internal label for the coupon, visible to event organisers.`}),active:ka$1().optional().meta({examples:[w$1.Coupon.active],description:`Whether this coupon is currently active.`}),showHidden:ka$1().optional().meta({examples:[false],description:`Whether this coupon reveals hidden admissions and sections within its scope.`}),kind:No.meta({examples:[`PERCENT`],description:`Type of discount this coupon gives: a fixed amount or a percentage.`}),filter:Fo.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:D$1.optional().meta({examples:[w$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:Ta$1().min(0).meta({examples:[w$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:Ta$1().meta({examples:[w$1.Coupon.limit],description:`Maximum number of times the coupon can be redeemed across all customers.`}),uses:Ta$1().optional().meta({examples:[w$1.Coupon.uses],description:`Number of times this coupon has been redeemed so far.`}),orderLimit:Ta$1().int().min(1).optional().meta({examples:[2],description:`Maximum number of admission units this coupon can discount within a single order. Omit to discount every eligible unit.`}),membersOnly:ka$1().optional().meta({examples:[false],description:`Whether this coupon can only be redeemed by a signed-in user holding an active membership pass for the coupon's team.`}),promoters:Ga$1(qa$1({id:na$1().meta({description:`Identifier of a promoter this coupon applies to.`}),name:na$1().meta({description:`Name of a promoter this coupon applies to.`}),slug:na$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:Ga$1(qa$1({id:na$1().meta({description:`Identifier of an event this coupon applies to.`}),name:na$1().meta({description:`Name of an event this coupon applies to.`}),slug:na$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:Ga$1(qa$1({id:na$1().meta({description:`Identifier of a section this coupon applies to.`}),name:na$1().meta({description:`Name of a section this coupon applies to.`}),eventId:na$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:Ga$1(qa$1({id:na$1().meta({description:`Identifier of an admission this coupon applies to.`}),name:na$1().meta({description:`Name of an admission this coupon applies to.`}),eventId:na$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:I$1.meta({examples:[w$1.Coupon.saleStartsAt],description:`Wall clock time when this coupon becomes valid (no timezone, ISO 8601 format: YYYY-MM-DDTHH:mm:ss)`}),saleEndsAt:I$1.optional().meta({examples:[w$1.Coupon.saleEndsAt],description:`Wall clock time when this coupon expires (no timezone, ISO 8601 format: YYYY-MM-DDTHH:mm:ss)`}),teamId:na$1().meta({description:`Team that created this coupon.`})}).meta({description:`coupon`}),Ro=qa$1({id:na$1().readonly().meta({examples:[w$1.CouponCode.id],description:`A unique identifier for this coupon code.`}),createdAt:Pi$1().readonly().meta({examples:[w$1.CouponCode.createdAt],description:`Timestamp in ISO 8601 format when this coupon code was created.`}),updatedAt:Pi$1().readonly().meta({examples:[w$1.CouponCode.updatedAt],description:`Timestamp in ISO 8601 format when this coupon code was last updated.`}),name:na$1().meta({examples:[w$1.CouponCode.name],description:`The code string that customers enter to redeem the coupon.`}),active:ka$1().meta({examples:[w$1.CouponCode.active],description:`Whether this coupon code is currently enabled for use.`}),couponId:na$1().meta({examples:[w$1.Coupon.id],description:`Identifier of the coupon to which this code belongs.`}),teamId:na$1().meta({description:`Team that created this coupon code.`}),uses:Ta$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`}),zo=Ro.pick({id:true});qa$1({couponId:na$1().meta({examples:[w$1.Coupon.id]})});qa$1({name:na$1(),couponId:na$1().optional().meta({examples:[w$1.Coupon.id]})});const Ho=Ro.omit({id:true,createdAt:true,updatedAt:true,uses:true}),Uo=Ro.omit({createdAt:true,updatedAt:true,couponId:true,teamId:true,uses:true}).partial().extend({id:Ro.shape.id}),Wo=zo,Go=qa$1({couponId:na$1().optional().meta({examples:[w$1.Coupon.id],description:`Optional filter to retrieve coupon codes for a specific coupon`}),teamId:na$1().optional().meta({examples:[`tem_01jqpjksnsen9vprw95et60t2m`],description:`Optional filter to retrieve coupon codes created by a specific team`}),active:Yt$1().optional().meta({examples:[true],description:`Optional filter to retrieve only active or inactive coupon codes`}),query:na$1().optional().meta({examples:[`SUMMER`],description:`Optional search query to filter coupon codes by name. When provided, search-backed pagination is used.`}),limit:L$1(`coupon codes`).optional(),cursor:na$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`}),Ko=B$1(Ro,`codes`),qo=qa$1({couponCode:Ro}),Jo=Lo.omit({id:true,createdAt:true,updatedAt:true}).strict().refine(e=>e.kind!==`PERCENT`||e.discount<=100,{path:[`discount`],message:`Discount must be 100 or less for PERCENT coupons`}).meta({description:`Schema for creating a new coupon without system-generated fields`}),Yo=Lo.pick({id:true}).meta({description:`Schema for retrieving a single coupon by ID`}),Xo=Yo.meta({description:`Schema for deleting a coupon by ID with optional soft-delete filtering`}),Zo=qa$1({teamId:na$1().meta({examples:[w$1.Team.id],description:`Unique identifier of the team whose coupons to retrieve`}),active:Yt$1().optional().meta({examples:[true],description:`Optional filter to retrieve only active or inactive coupons`}),query:na$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:L$1(`coupons`).optional(),cursor:na$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`}),Qo=B$1(Lo,`coupons`),$o=qa$1({coupon:Lo}),es=Lo.omit({createdAt:true,updatedAt:true,teamId:true}).partial().extend({id:Lo.shape.id.meta({examples:[w$1.Coupon.id],description:`Unique identifier of the coupon to update`}),saleEndsAt:I$1.nullable().optional().meta({examples:[w$1.Coupon.saleEndsAt],description:`Expiry time. Pass null to remove end date; omit to leave unchanged.`}),currency:D$1.nullable().optional().meta({examples:[`AUD`,`USD`,`GBP`],description:`Three-letter ISO 4217 currency code. Pass null to clear; omit to leave unchanged.`}),orderLimit:Lo.shape.orderLimit.unwrap().nullable().optional().meta({examples:[2],description:`Maximum number of admission units this coupon can discount within a single order. Pass null to remove the per-order limit; omit to leave unchanged.`})}).strict().refine(e=>e.kind!==`PERCENT`||e.discount===void 0||e.discount<=100,{path:[`discount`],message:`Discount must be 100 or less for PERCENT coupons`}).meta({description:`Schema for updating an existing coupon.`}),ts=qa$1({address:na$1().meta({examples:[w$1.Location.address],description:`Complete formatted address`}),city:na$1().optional().meta({examples:[w$1.Location.city],description:`City or locality`}),state:na$1().optional().meta({examples:[w$1.Location.state],description:`State, province, or region`}),postcode:na$1().optional().meta({examples:[w$1.Location.postcode],description:`Postal code`}),country:na$1().meta({examples:[w$1.Location.country],description:`Country name`}),countryCode:Qt$1.optional().meta({description:`ISO country code when supplied by the location provider`})}).meta({description:`Provider-independent formatted address details`}),ns=qa$1({id:mn.readonly().meta({examples:[w$1.Location.id],description:`Location identifier`}),googlePlaceId:na$1().optional().meta({examples:[`ChIJP3Sa8ziYEmsRUKgyFmh9AQM`],description:`Google Place ID for this location`}),createdAt:Pi$1().meta({examples:[w$1.Location.createdAt],description:`Timestamp in ISO 8601 format when the location was created`}),updatedAt:Pi$1().meta({examples:[w$1.Location.updatedAt],description:`Timestamp in ISO 8601 format when the location was last updated`}),name:na$1().meta({examples:[w$1.Location.name],description:`Location name`}),...ts.shape,latitude:Ta$1().min(-90).max(90).meta({examples:[w$1.Location.latitude],description:`Latitude coordinate`}),longitude:Ta$1().min(-180).max(180).meta({examples:[w$1.Location.longitude],description:`Longitude coordinate`}),timeZone:na$1().min(1).regex(/^[A-Za-z0-9_+-]+(\/[A-Za-z0-9_+-]+)*$/,{message:`Must be a valid IANA timezone identifier format`}).meta({examples:[w$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:Ga$1(na$1()).optional().meta({examples:[[`establishment`,`point_of_interest`,`stadium`]],description:`Google Place types indicating the category and nature of this location`}),description:na$1().optional().meta({examples:[`Historic outdoor amphitheater known for summer concerts`],description:`AI-generated description of the place, when available`}),image:F$1.optional().meta({description:`Primary location photo`}),venueId:pn$1.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`}),rs=ns.omit({venueId:true}).extend({venue:qa$1({id:pn$1.meta({description:`Venue identifier`}),name:na$1().meta({description:`Venue name`}),slug:na$1().meta({description:`URL-friendly venue slug`}),teamId:na$1().meta({description:`Team that owns this venue`}),approval:E$1.meta({description:`Venue approval status`}),image:F$1.optional().meta({description:`Venue image`}),description:na$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.`})}),is=na$1().regex(/^G-[A-Z0-9]+$/,`Google Analytics Measurement ID must start with G-`),G$1=qa$1({id:M$1.readonly().meta({examples:[w$1.Promoter.id],description:`Unique identifier for the promoter organization`}),createdAt:Pi$1().readonly().meta({examples:[w$1.Promoter.createdAt],description:`Timestamp in ISO 8601 format when the promoter was created`}),updatedAt:Pi$1().readonly().meta({examples:[w$1.Promoter.updatedAt],description:`Timestamp in ISO 8601 format when the promoter was last updated`}),name:na$1().min(3).max(30).meta({examples:[w$1.Promoter.name],description:`Display name of the promoter organization. Must be between 3 and 30 characters`}),slug:na$1().min(3).max(30).meta({examples:[w$1.Promoter.slug],description:`URL-friendly slug for the promoter organization. Must be unique and between 3 and 30 characters`}),teamId:k$1.meta({examples:[`tem_01jqpjksnsen9vprw95et60t2m`],description:`ID of the team that owns this promoter. Establishes team-based organization and permissions.`}),description:na$1().meta({examples:[w$1.Promoter.description],description:`Detailed description of the promoter organization and their events`}),approval:E$1.meta({examples:[w$1.Promoter.approval],description:`Approval status of the promoter. PENDING: awaiting review, APPROVED: can create events, REJECTED: cannot operate`}),image:F$1.optional().meta({description:`Optional promotional image for the promoter organization with dimensions and alt text`}),location:rs.meta({description:`Primary location details for the promoter including address, coordinates, and timezone`}),geohash:na$1().meta({examples:[w$1.Promoter.geohash],description:`Geohash encoding of the promoter's location for efficient spatial queries`}),tracking:qa$1({fbId:na$1().optional().meta({examples:[w$1.Promoter.tracking.fbId],description:`Facebook pixel ID for tracking conversions and analytics`}),gaId:is.optional().meta({examples:[w$1.Promoter.tracking.gaId],description:`Google Analytics 4 Measurement ID for web analytics`}),tikTokId:na$1().optional().meta({examples:[w$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:In}).meta({description:`Promoter organization with location and approval status`}),K$1=qa$1({id:na$1().readonly().meta({examples:[w$1.Section.id],description:`Unique identifier for the section`}),createdAt:Pi$1().readonly().meta({examples:[w$1.Section.createdAt],description:`Timestamp when the section was created in ISO 8601 format`}),updatedAt:Pi$1().readonly().meta({examples:[w$1.Section.updatedAt],description:`Timestamp when the section was last updated in ISO 8601 format`}),name:na$1().meta({examples:[w$1.Section.name],description:`Display name of the section (e.g., 'VIP Area', 'General Admission')`}),capacity:Mn().prefault(-1).meta({examples:[w$1.Section.capacity],description:`Maximum number of attendees for this section. Use -1 for unlimited capacity`}),limit:Nn().prefault(-1).meta({examples:[w$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:Ta$1().min(-1).readonly().meta({examples:[w$1.Section.available],description:`Number of tickets currently available for purchase in this section. Use -1 when capacity is unlimited`}),sold:Ta$1().min(0).readonly().meta({examples:[w$1.Section.sold],description:`Number of tickets sold for this section`}),reserved:Ta$1().readonly().meta({examples:[w$1.Section.reserved],description:`Number of tickets currently reserved (in pending orders) for this section`}),order:Ta$1().min(0).meta({examples:[w$1.Section.order],description:`Display order of the section. Lower numbers appear first in listings`}),visibility:io$1([`ALWAYS`,`STACKED`,`HIDDEN`]).prefault(`ALWAYS`).meta({examples:[`ALWAYS`],description:`Controls how this section is shown: always list all visible admissions, stack to show the cheapest available admission, or hide until a scoped coupon reveals it.`}),location:ns.meta({description:`Physical location details for the section`}),teamId:na$1().meta({description:`Team that owns this section. Denormalized for efficient queries.`}),promoterId:na$1().meta({examples:[w$1.Section.promoterId],description:`Unique identifier of the promoter who owns this section`}),eventId:na$1().meta({examples:[w$1.Section.eventId],description:`Unique identifier of the event this section belongs to`}),eventSlug:na$1().meta({examples:[w$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`}),os=[`AUD`,`NZD`,`USD`],ss=io$1(os),cs=io$1([`FEATURE_DISABLED`,`UNSUPPORTED_CURRENCY`,`NOT_ROUTED`,`NO_CONNECTED_GATEWAY`,`CHARGES_DISABLED`,`INCOMPATIBLE_FEE_STRUCTURE`]),ls=qa$1({available:ka$1().meta({description:`Whether Stripe Connect can be used for the selected team, event, and currency.`}),reasons:Ga$1(cs).meta({description:`Machine-readable reasons Stripe Connect is unavailable. Empty when available is true.`}),supportedCurrencies:Ga$1(ss).meta({description:`Currencies currently supported for Stripe Connect routing in this tenant flow.`})}),us=`STRIPE_CONNECT_UNAVAILABLE`;qa$1({code:oo$1(us).meta({description:`Stable error code returned when Stripe Connect is unavailable.`}),availability:ls.meta({description:`Detailed Stripe Connect availability result for UI filtering and recovery.`})});const fs=io$1([`UPCOMING`,`ENDED`]),ms=io$1([`PUBLIC`,`PRIVATE`,`SCHEDULED`,`PASSCODE`,`CANCELLED`]),gs=io$1([`HIDDEN`,`SCHEDULED`,`PUBLIC`]),vs=qa$1({visibility:gs.optional().meta({description:`Whether public event surfaces show the full location address. Missing values are treated as PUBLIC unless legacy location reveal data says otherwise.`}),publishAt:I$1.optional().meta({description:`Wall clock time when the location address becomes public. Required when location visibility is SCHEDULED.`}),sendAt:I$1.optional().meta({description:`Wall clock time when customers with successful orders can see the full location address and receive the notification.`}),instructions:na$1().max(2e3).optional().meta({description:`Arrival instructions shown to customers once the location address has been sent.`})}),ys=rs.extend(vs.shape),bs=qa$1({id:A$1.readonly().meta({examples:[w$1.Event.id],description:`A unique identifier for this event`}),createdAt:Pi$1().readonly().meta({examples:[w$1.Event.createdAt],description:`Timestamp in ISO 8601 format when this event was created`}),updatedAt:Pi$1().readonly().meta({examples:[w$1.Event.updatedAt],description:`Timestamp in ISO 8601 format when this event was last updated`}),name:na$1().meta({examples:[w$1.Event.name],description:`The title of the event shown to attendees`}),slug:na$1().meta({examples:[w$1.Event.slug],description:`URL-friendly identifier for the event`}),description:na$1().meta({examples:[w$1.Event.description],description:`Detailed description of the event`}),approval:E$1.meta({examples:[`APPROVED`],description:`Approval status of the event`}),status:fs.meta({examples:[`UPCOMING`,`ENDED`],description:`Current stage of the event lifecycle`}),visibility:ms.meta({examples:[`PUBLIC`],description:`Who can see the event`}),currency:D$1.meta({examples:[`AUD`],description:`Three-letter ISO 4217 currency code used for ticket prices`}),url:ca$1().optional().meta({examples:[`https://example.com`],description:`External URL for the event website or ticket page`}),entryStartsAt:I$1.meta({examples:[w$1.Event.entryStartsAt],description:`Wall clock time when event entry begins (no timezone, displays same everywhere)`}),entryEndsAt:I$1.meta({examples:[w$1.Event.entryEndsAt],description:`Wall clock time when event entry ends (no timezone, displays same everywhere)`}),publishAt:I$1.meta({examples:[w$1.Event.publishAt],description:`Wall clock time when the event becomes publicly visible (no timezone)`}),locationRevealAt:I$1.optional().meta({description:`Deprecated. Use location.sendAt for customer access and location.publishAt for scheduled public address visibility.`}),entryInstructions:na$1().max(2e3).optional().meta({description:`Deprecated. Use location.instructions for customer-facing arrival instructions.`}),images:qa$1({mobile:F$1.meta({description:`Mobile-optimized image for the event`}),desktop:F$1.meta({description:`Desktop-optimized image for the event`})}),geohash:na$1().meta({examples:[w$1.Event.geohash],description:`Geohash representing the event location`}),location:ys.meta({description:`Structured location details for the event`}),teamId:k$1.meta({description:`Team that owns this event. Denormalized for efficient queries.`}),promoterId:M$1.meta({examples:[w$1.Promoter.id],description:`Promoter organizing the event. Must belong to the team.`}),taxProfileId:un.optional().meta({description:`Team tax profile currently used for ticket sales`}),metadata:In,genres:Ga$1(na$1()).optional().meta({description:`Music genres for the event (1-5 genres)`,examples:[[`Tech House`,`Melodic Techno`]]}),categories:Ga$1(na$1()).optional().meta({description:`Event characteristics like vibe, venue type, and amenities (up to 10)`,examples:[[`Day Party`,`Open Air`,`Free Entry`]]}),featured:ka$1().optional().meta({description:`Whether this event is an editorial pick`,examples:[true]}),likes:Ta$1().int().min(0).optional().meta({description:`Number of users who liked this event`,examples:[42]}),stripeConnectAvailability:ls.optional().meta({description:`Stripe Connect availability metadata for tenant event UI.`})}).meta({description:`event`}),xs=G$1.pick({id:true,name:true,slug:true,description:true,image:true}),Ss=bs.extend({passcode:na$1().optional().meta({description:`Plain-text event passcode. Included only on internal event detail responses for users with event.read access.`}),sections:Ga$1(K$1),admissions:Ga$1(z$1),promoter:xs.optional().meta({description:`Public summary of the promoter organizing this event. Included on event detail responses only.`}),liked:ka$1().optional().meta({description:`Whether the current user has liked this event`,examples:[true,false]})}),Cs=qa$1({event:Ss}),ws=io$1([`APPROVED`,`REJECTED`]);io$1([`CREATED`,`UPDATED`,`MANUAL`]);const Es=qa$1({key:na$1().meta({examples:[w$1.Event.id,w$1.Event.slug],description:`Event key - either a unique ID (evt_xxx format) or URL-friendly slug`}),teamId:k$1.optional().meta({description:`Optional team scope. When provided, event must belong to this team.`})}).meta({description:`Schema for retrieving internal event approval state.`}),Ds=qa$1({eventId:A$1,teamId:k$1,approval:E$1,reason:na$1().max(2e3).nullable(),requestedAt:Pi$1().nullable(),changedAt:Pi$1().nullable(),changedByUserId:na$1().nullable(),submittedByUserId:na$1().nullable()}).meta({description:`Internal approval workflow state for an event.`}),Os=qa$1({approval:Ds}),ks=Es.meta({description:`Schema for requesting or resubmitting event approval.`}),As=qa$1({key:na$1().meta({examples:[w$1.Event.id,w$1.Event.slug],description:`Event key - either a unique ID (evt_xxx format) or URL-friendly slug`}),approval:ws.meta({examples:[`APPROVED`],description:`Approval decision for the event`}),reason:na$1().max(2e3).optional().meta({description:`Optional reason shown to the event submitter when rejecting the event`}),requestedAt:Pi$1().optional().meta({description:`Approval request timestamp from an email action. When provided, the event must still be pending for that request.`})}).meta({description:`Schema for approving or rejecting an event.`}),js=1e6,Ms=io$1([`INCLUSIVE`,`EXCLUSIVE`]),Ns=ts.extend({address:na$1().trim().min(1).max(500).meta({description:`Complete formatted registered address`}),city:na$1().trim().min(1).max(100).optional().meta({description:`City or locality of the registered address`}),state:na$1().trim().min(1).max(100).optional().meta({description:`State, province, or region of the registered address`}),postcode:na$1().trim().min(1).max(32).optional().meta({description:`Postal code of the registered address`}),country:na$1().trim().min(1).max(100).meta({description:`Country name of the registered address`}),countryCode:Qt$1.meta({description:`Supplier country as an ISO 3166-1 alpha-2 code`,examples:[`AU`]})}).strict().meta({description:`Registered postal address used on customer receipts`}),Ps=qa$1({legalName:na$1().trim().min(1).max(200).meta({description:`Legal or trading name of the ticket supplier`}),registrationNumber:na$1().trim().min(1).max(100).optional().meta({description:`Tax or business registration number shown on customer receipts`}),address:Ns.meta({description:`Registered address of the ticket supplier`})}).strict().meta({description:`Ticket supplier identity shown on customer receipts`}),Fs=qa$1({taxName:na$1().trim().min(1).max(50).meta({description:`Customer-facing tax name, such as GST or VAT`,examples:[`GST`]}),ratePpm:Da$1().min(1).max(js).meta({description:`Tax rate in parts per million, where 100000 represents 10%`,examples:[1e5]}),priceMode:Ms.meta({description:`Whether organiser-entered ticket prices include or exclude tax`,examples:[`INCLUSIVE`]})}).strict().meta({description:`Tax collection and ticket price configuration`}),Is=qa$1({supplier:Ps.meta({description:`Legal supplier details used on customer receipts`}),collection:Fs.meta({description:`Tax collection configuration for ticket sales`})}).strict();function Ls(e,t){e.supplier.registrationNumber||t.addIssue({code:`custom`,message:`A registration number is required when collecting tax`,path:[`supplier`,`registrationNumber`]});}Is.superRefine(Ls).meta({description:`Editable tax profile data`});const zs=Is.extend({profileId:un.readonly().meta({description:`Tax profile used for this ticket tax snapshot`}),profileUpdatedAt:Pi$1().readonly().meta({description:`Version timestamp of the snapshotted tax profile`})}).superRefine(Ls).meta({description:`Tax profile snapshot stored on an order`}),Bs=Qa$1(`mode`,[qa$1({mode:oo$1(`TEAM_DEFAULT`)}).strict().meta({description:`Use the team's current default tax profile`}),qa$1({mode:oo$1(`PROFILE`),profileId:un}).strict().meta({description:`Use a specific team tax profile`})]).meta({description:`Tax profile choice for an event`}),Vs=Is.extend({id:un.readonly().meta({description:`Unique tax profile identifier`}),tenantId:na$1().readonly().meta({description:`Tenant that owns this tax profile`}),teamId:k$1.readonly().meta({description:`Team that owns this tax profile`}),createdAt:Pi$1().readonly().meta({description:`Timestamp when the tax profile was created`}),updatedAt:Pi$1().readonly().meta({description:`Timestamp when the tax profile was last updated`}),updatedByUserId:na$1().readonly().meta({description:`User who most recently updated the tax profile`})}).superRefine(Ls).meta({description:`Reusable supplier and tax configuration for a team`}),Hs=qa$1({teamId:k$1.meta({description:`Team whose tax profiles should be retrieved`})}).strict().meta({description:`List the tax profiles configured for a team`}),Us=Is.extend({teamId:k$1.meta({description:`Team that owns the tax profile`})}),Ws=Us.superRefine(Ls).meta({description:`Create a reusable team tax profile`}),Gs=Us.extend({profileId:un.meta({description:`Tax profile to update`})}).superRefine(Ls).meta({description:`Update a reusable team tax profile`}),Ks=qa$1({teamId:k$1,profileId:un}).strict().meta({description:`Identify a tax profile owned by a team`}),qs=qa$1({profiles:Ga$1(Vs).meta({description:`Reusable tax profiles owned by the team`}),defaultProfileId:un.nullable().meta({description:`Default profile selected for new events, or null when none exist`})}).strict().superRefine((e,t)=>{e.profiles.length===0&&e.defaultProfileId===null||e.defaultProfileId&&e.profiles.some(t=>t.id===e.defaultProfileId)||t.addIssue({code:`custom`,message:`The default tax profile must be one of the listed profiles`,path:[`defaultProfileId`]});}).meta({description:`Team tax profiles and the current default`}),Js=bs.omit({id:true,teamId:true,createdAt:true,updatedAt:true,status:true,approval:true,geohash:true,location:true,likes:true,stripeConnectAvailability:true,taxProfileId:true}).extend({description:kr.meta({examples:[w$1.Event.description],description:`Detailed description of the event`}),slug:na$1().min(3).max(100).optional().meta({examples:[w$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:na$1().optional().meta({description:`Passcode for protected access to the event`}),locationId:mn.optional().meta({examples:[`loc_01jqpjksnsen9vprw95et60t2m`],description:`ID of an existing location. Either locationId or googlePlaceId must be provided.`}),googlePlaceId:na$1().optional().meta({examples:[`ChIJN1t_tDeuEmsRUsoyG83frY4`],description:`Google Place ID to create a new location from. Either locationId or googlePlaceId must be provided.`}),location:vs.optional().meta({description:`Event-specific location visibility, customer send time, and arrival instructions.`}),taxSettingsSelection:Bs.optional().meta({description:`Tax profile to associate with the event. Omit to use the team's current default profile.`}),genres:cn.optional().meta({description:`Music genres for the event (1-5 genres)`,examples:[[`Tech House`,`Melodic Techno`]]}),categories:on$1.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`}),Ys=qa$1({key:na$1().min(1).meta({description:`Event key - either a unique ID (evt_xxx format) or URL-friendly slug`,examples:[w$1.Event.id,w$1.Event.slug]})}),Xs=qa$1({key:na$1().min(1).meta({description:`Event key - either a unique ID (evt_xxx format) or URL-friendly slug`,examples:[w$1.Event.id,w$1.Event.slug]}),name:na$1().min(1).meta({description:`Name for the duplicated event`,examples:[`${w$1.Event.name} (Copy)`]}),entryStartsAt:I$1.meta({description:`New event entry start time. Other copied event and admission datetimes are shifted by the same offset.`,examples:[w$1.Event.entryStartsAt]}),url:ca$1().nullable().optional().meta({description:`External ticketing URL for the duplicated event. Pass null to create the copy without an external URL; omit to copy the source URL.`,examples:[`https://example.com/events/summer-festival-2025`]})}),Zs=qa$1({key:na$1().min(1).meta({description:`Event key - either a unique ID (evt_xxx format) or URL-friendly slug`,examples:[w$1.Event.id,w$1.Event.slug]}),featured:ka$1().meta({description:`Whether the event should be featured (editorial pick)`,examples:[true,false]})}),Qs=qa$1({key:na$1().min(1).meta({description:`Event key - either a unique ID (evt_xxx format) or URL-friendly slug`,examples:[w$1.Event.id,w$1.Event.slug]}),passcode:na$1().optional().meta({description:`Passcode for accessing protected events`}),couponCode:na$1().optional().meta({description:`Coupon code used to reveal hidden admissions and sections when eligible.`}),teamId:na$1().optional().meta({description:`Optional team scope. When provided, event must belong to this team.`})}),$s=qa$1({admissions:Ta$1().int().min(0).optional().meta({description:`Number of active admissions configured for the event`}),sold:Ta$1().min(0).meta({description:`Number of tickets sold (net of refunds)`}),reserved:Ta$1().min(0).meta({description:`Number of tickets reserved`}),available:Ta$1().min(-1).meta({description:`Number of tickets available (-1 for unlimited)`}),capacity:Ta$1().min(-1).meta({description:`Total capacity (-1 for unlimited)`})}),ec=io$1([`entryStartsAt`,`distance`,`createdAt`]),tc=io$1([`asc`,`desc`]),nc=Ja$1({status:io$1([`UPCOMING`,`ENDED`]).optional().meta({examples:[`UPCOMING`],description:`Filter events by their current lifecycle status`}),approval:E$1.optional().meta({examples:[`APPROVED`],description:`Filter events by their approval status`}),visibility:io$1([`PUBLIC`,`PRIVATE`,`SCHEDULED`,`PASSCODE`]).optional().meta({examples:[`PUBLIC`],description:`Filter events by their visibility setting`}),promoterId:na$1().max(128).optional().meta({examples:[w$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:na$1().max(128).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:na$1().max(128).optional().meta({description:`Filter events to only those at a specific venue. If not provided, returns events at all venues`}),limit:T$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:na$1().max(768).optional().meta({examples:[`evt_01jps5cgsenjrazw6wswmyspa3`],description:`Cursor token for pagination. Provide the cursor from the previous response to continue fetching results`}),query:Jt$1().max(120).optional().meta({examples:[`Test Event`],description:`Search term to filter events by name, description, or location. Triggers full‑text search when provided`}),latitude:T$1().min(-90).max(90).optional().meta({examples:[w$1.Event.location.latitude],description:`Latitude coordinate for geographic search. Provide with longitude (and optional radius)`}),longitude:T$1().min(-180).max(180).optional().meta({examples:[w$1.Event.location.longitude],description:`Longitude coordinate for geographic search. Provide with latitude (and optional radius)`}),radius:T$1().positive().max(2e4).optional().meta({examples:[20],description:`Search radius in kilometers from the provided coordinates. Defaults to 20km`}),country:na$1().max(120).optional().meta({examples:[`australia`],description:`Filter by country region slug. Matches events where location.country equals the region name`}),state:na$1().max(120).optional().meta({examples:[`nsw`],description:`Filter by state/province region slug. Matches events where location.state equals the region name`}),city:na$1().max(120).optional().meta({examples:[`sydney`],description:`Filter by city region slug. Matches events where location.city equals the region name`}),from:na$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:na$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`}),sort:ec.optional().meta({examples:[`entryStartsAt`],description:"Optional list sort field. Defaults to event start time. Use `distance` with latitude and longitude to return nearest events first, or `createdAt` to return newest or oldest events first."}),direction:tc.optional().meta({examples:[`desc`],description:`Sort direction for event start or creation time. Defaults to lifecycle-aware event start order; distance sorting always returns nearest events first.`}),genres:Po(e=>typeof e==`string`?[e]:e,Ga$1(sn).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:Po(e=>typeof e==`string`?[e]:e,Ga$1(an$1).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:ka$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`}),rc=nc,ic=Ir({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 customer-facing total`}),ac=B$1(bs.extend({inventory:$s.optional(),liked:ka$1().optional().meta({description:`Whether the current user has liked this event`,examples:[true,false]}),price:ic.nullable().meta({description:`Cheapest publicly purchasable admission price, or null when no public admission is currently available`})}),`events`),oc=qa$1({event:bs});io$1([`ONLINE`,`DOOR`,`SALE_ENDED`,`SOLD_OUT`]);const lc=nc.omit({cursor:true,limit:true}).extend({limit:T$1().int().min(1).max(1e3).prefault(1e3).meta({examples:[1e3],description:`Maximum number of event slugs to return. Must be between 1 and 1000, defaults to 1000`}),skip:T$1().int().min(0).max(1e4).prefault(0).meta({examples:[0],description:`Number of matching event slugs to skip before returning results`})}),uc=qa$1({slugs:Ga$1(na$1()).meta({description:`Current event slugs for the matching event list`}),skip:T$1().int().min(0).meta({examples:[0],description:`Number of matching event slugs skipped`}),limit:T$1().int().min(1).max(1e3).meta({examples:[1e3],description:`Maximum number of event slugs returned`})}),dc=qa$1({visibility:gs.optional().meta({description:`Whether public event surfaces show the full location address. Omit to leave unchanged.`}),publishAt:vs.shape.publishAt.nullable().optional().meta({description:`Public location address publish time. Pass null to clear; omit to leave unchanged.`}),sendAt:vs.shape.sendAt.nullable().optional().meta({description:`Customer location address send time. Pass null to clear; omit to leave unchanged.`}),instructions:vs.shape.instructions.nullable().optional().meta({description:`Arrival instructions for customers. Pass null to clear; omit to leave unchanged.`})}),fc=bs.omit({createdAt:true,updatedAt:true,geohash:true,status:true,approval:true,location:true,likes:true,stripeConnectAvailability:true,taxProfileId:true}).partial().extend({description:kr.optional().meta({examples:[w$1.Event.description],description:`Detailed description of the event. Omit to leave unchanged.`}),key:na$1().meta({examples:[w$1.Event.id,w$1.Event.slug],description:`Event key - either a unique ID (evt_xxx format) or URL-friendly slug`}),slug:na$1().min(3).max(100).optional().meta({examples:[w$1.Event.slug],description:`URL-friendly slug for the event. Omit to leave unchanged. Must be unique and between 3 and 100 characters`}),passcode:na$1().nullable().optional().meta({description:`Passcode for protected access. Pass null to clear; changing visibility away from PASSCODE also clears it.`}),url:ca$1().nullable().optional().meta({examples:[`https://example.com/events/summer-festival-2025`],description:`External event URL. Pass null to clear; omit to leave unchanged.`}),locationRevealAt:bs.shape.locationRevealAt.nullable().optional().meta({description:`Wall clock time when the venue address becomes visible. Pass null to clear before reveal; omit to leave unchanged.`}),entryInstructions:bs.shape.entryInstructions.nullable().optional().meta({description:`Entrance instructions sent when the location is revealed. Pass null to clear; omit to leave unchanged.`}),locationId:mn.optional().meta({examples:[`loc_01jqpjksnsen9vprw95et60t2m`],description:`ID of an existing location to update to. Either locationId or googlePlaceId can be provided.`}),googlePlaceId:na$1().optional().meta({examples:[`ChIJN1t_tDeuEmsRUsoyG83frY4`],description:`Google Place ID to update location from. Either locationId or googlePlaceId can be provided.`}),location:dc.optional().meta({description:`Event-specific location visibility, public publish time, customer send time, and arrival instructions.`}),taxSettingsSelection:Bs.optional().meta({description:`Associate the event with the current default or a selected team tax profile.`}),genres:cn.optional().meta({description:`Music genres for the event (1-5 genres)`,examples:[[`Tech House`,`Melodic Techno`]]}),categories:on$1.meta({description:`Event characteristics like vibe, venue type, and amenities (up to 10)`,examples:[[`Day Party`,`Open Air`,`Free Entry`]]}),notify:ka$1().optional().meta({description:`Whether attendees should be notified about this event update.`,examples:[true]})}).meta({description:`Schema for updating an existing event.`}),pc=qa$1({id:Tn.readonly().meta({description:`Unique identifier for the event collaborator`}),createdAt:Pi$1().readonly().meta({description:`Timestamp in ISO 8601 format when the collaborator was added`}),updatedAt:Pi$1().readonly().meta({description:`Timestamp in ISO 8601 format when the collaborator was last updated`}),eventId:A$1.meta({description:`Event this collaboration applies to`}),promoterId:M$1.meta({description:`Promoter collaborating on the event`}),acceptedBy:j$1.meta({description:`User ID who accepted the invitation to collaborate`}),promoter:qa$1({id:M$1.meta({description:`Unique identifier of the promoter`}),name:na$1().meta({description:`Name of the promoter`}),teamId:k$1.meta({description:`Team ID of the promoter`})}).optional().meta({description:`Populated promoter details. Only included when explicitly requested.`}),permissions:sr.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:na$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.`}),mc=pc.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.`}),hc=qa$1({id:Tn.readonly().meta({description:`Unique identifier for the event collaboration invitation`}),createdAt:Pi$1().readonly().meta({description:`Timestamp in ISO 8601 format when the invitation was created`}),updatedAt:Pi$1().readonly().meta({description:`Timestamp in ISO 8601 format when the invitation was last updated`}),eventId:A$1.meta({description:`Event this invitation applies to`}),promoterId:M$1.meta({description:`Promoter being invited to collaborate on the event.`}),invitedByPromoterId:M$1.meta({description:`Promoter who sent this invitation (event owner or collaborator with permission).`}),permissions:sr.meta({description:`Permissions the promoter will receive upon accepting the invitation.`,examples:[[],[`event.read`,`event.write`],[`order.read`],[`ticket.scan`],[`*`]]}),token:na$1().readonly().meta({description:`Secure token for invite acceptance. Required to accept the invitation.`}),invitedBy:j$1.meta({description:`User ID who sent the invitation`}),expiresAt:Ta$1().int().positive().meta({description:`Unix timestamp (seconds) for DynamoDB TTL. Invitation will be automatically deleted after 7 days.`}),tenantId:na$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.`}),gc=hc.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.`}),_c=qa$1({eventId:A$1.meta({description:`Event ID that the collaboration belongs to`}),id:Tn.meta({description:`Event team access grant ID to retrieve`})}),vc=qa$1({invite:hc}),yc=qa$1({eventId:na$1().meta({description:`Event ID to list collaborators for`}),accessPromoterId:na$1().optional().meta({description:`DEPRECATED: Use 'promoterId' instead. Filter by collaborating promoter ID (what events can this promoter access). Maintained for backward compatibility.`}),ownerPromoterId:na$1().optional().meta({description:`DEPRECATED: No longer used. Maintained for backward compatibility only.`}),limit:L$1(`event collaborators`),cursor:na$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.`}),bc=B$1(pc,`grants`),xc=qa$1({collaborator:pc}),Sc=oo$1(`audience-republic`).meta({description:`Integration provider.`}),Cc=qa$1({listName:na$1().trim().min(1).max(200).meta({description:`Shared Audience Republic mailing list name for email and SMS.`})}).strict(),wc=qa$1({id:kn,teamId:k$1,provider:Sc,enabled:ka$1().meta({description:`Whether this integration is connected.`}),configured:ka$1().meta({description:`Whether an encrypted credential is stored. Credentials are never returned.`}),revision:Ta$1().int().positive().meta({description:`Version required for conditional updates.`}),activatedAt:Pi$1().meta({description:`Start of future-only team delivery for this connection.`}),settings:Cc,canManageTeam:ka$1().meta({description:`Whether the caller may change credentials and the shared mailing list.`}),tenantDestination:ka$1().meta({description:`Whether tenant configuration references this integration for tenant-wide delivery.`})}).meta({description:`Team-owned integration sharing one provider account and mailing list across all promoters.`}),Tc=qa$1({teamId:k$1}).strict(),Ec=qa$1({integrations:Ga$1(wc),canManageTeam:ka$1()}).meta({description:`Integrations visible to the caller in this team.`}),Dc=qa$1({id:kn}).strict(),Oc=qa$1({teamId:k$1,provider:Sc,apiKey:na$1().trim().min(1).max(4096).meta({description:`Write-only shared provider API key.`}),settings:Cc}).strict(),kc=qa$1({id:kn,revision:Ta$1().int().positive(),apiKey:na$1().trim().min(1).max(4096).optional().meta({description:`Replace the shared key. Omit to retain it; required to reconnect.`}),settings:Cc}).strict(),Ac=Dc.extend({revision:Ta$1().int().positive()}).strict(),jc=qa$1({id:An,integrationId:kn,scope:io$1([`team`,`tenant`]),status:io$1([`QUEUED`,`RUNNING`,`PAUSED`,`COMPLETED`,`FAILED`,`CANCELLED`]),createdAt:Pi$1(),updatedAt:Pi$1(),processed:Ta$1().int().nonnegative(),skipped:Ta$1().int().nonnegative(),failed:Ta$1().int().nonnegative(),error:na$1().optional()}).meta({description:`Durable historical import progress. Counts refer to orders, not unique buyers.`}),Mc=Dc.extend({scope:io$1([`team`,`tenant`]).default(`team`)}).strict(),Nc=Dc.extend({jobId:An}).strict(),Pc=qa$1({key:na$1().min(1).meta({description:`Location key - either a location ID (loc_xxx format) or provider-specific identifier (e.g., Google Place ID)`,examples:[w$1.Location.id,`ChIJP3Sa8ziYEmsRUKgyFmh9AQM`]})}),Fc=qa$1({query:na$1().min(1).meta({examples:[`sydney opera`],description:`Search query for location search`}),latitude:T$1().min(-90).max(90).optional().meta({examples:[w$1.Location.latitude],description:`User's latitude for proximity-based results (optional for better relevance)`}),longitude:T$1().min(-180).max(180).optional().meta({examples:[w$1.Location.longitude],description:`User's longitude for proximity-based results (optional for better relevance)`}),types:Ga$1(na$1()).optional().meta({examples:[[`establishment`]],description:`Filter results by Google Place types (e.g., 'establishment', 'night_club', 'bar')`})}).meta({description:`Parameters for searching locations`}),Ic=qa$1({googlePlaceId:na$1().meta({examples:[`ChIJP3Sa8ziYEmsRUKgyFmh9AQM`],description:`Google Place ID for this location`}),name:na$1().meta({examples:[w$1.Location.name],description:`Primary name of the location`}),description:na$1().meta({examples:[w$1.Location.address],description:`Full formatted address`}),venue:qa$1({id:pn$1.meta({examples:[w$1.Venue.id],description:`Venue ID if this location is a managed venue`}),name:na$1().meta({examples:[w$1.Venue.name],description:`Venue name`}),teamId:na$1().meta({description:`Team that manages this venue`}),image:F$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`}),Lc=qa$1({predictions:Ga$1(Ic).meta({description:`Array of location predictions`})}).meta({description:`Response containing location search results`}),Rc=qa$1({location:rs}),zc=io$1([`DRAFT`,`ACTIVE`,`PAUSED`,`RETIRED`]),Bc=io$1([`ACTIVE`,`SUSPENDED`,`INACTIVE`]),Vc=io$1([`PENDING`,`COMPLETED`,`DUPLICATE`]),Hc=qa$1({id:na$1().meta({description:`Membership program ID`}),teamId:na$1().meta({description:`Team that owns the program`}),name:na$1().meta({description:`Name shown to members`,examples:[`S.A.S.H Membership`]}),state:zc.meta({description:`Only an ACTIVE program can be bought. PAUSED and RETIRED programs keep honouring existing passes.`}),price:Ta$1().int().nonnegative().meta({description:`Tax-inclusive annual price in currency minor units`,examples:[14999]}),currency:na$1().length(3).meta({description:`ISO 4217 currency code`,examples:[`AUD`]}),termsUrl:ca$1().meta({description:`Current membership terms the buyer must acknowledge`})}).meta({description:`An annual membership offer owned by a team`}),Uc=qa$1({id:na$1().meta({description:`Membership pass ID`}),programId:na$1(),teamId:na$1(),userId:na$1(),memberNumber:Ta$1().int().meta({description:`Sequential number identifying the pass within its program. The first pass receives 200.`,examples:[200]}),state:Bc,active:ka$1().meta({description:`True while the pass is ACTIVE and its paid term has not ended`}),paidThrough:Pi$1().meta({description:`End of the latest paid annual term`}),cancelAt:Pi$1().optional().meta({description:`Present when renewal is scheduled to stop. Benefits continue until paidThrough.`}),complimentary:ka$1().meta({description:`True while the current term was granted by staff for free. It never renews; a paidThrough of MEMBERSHIP_NO_END means it has no end date.`}),createdAt:Pi$1()}).meta({description:`A durable membership owned by one user`}),Wc=qa$1({id:na$1().meta({description:`Membership purchase ID`}),programId:na$1(),teamId:na$1(),state:Vc.meta({description:`PENDING until the provider confirms payment. DUPLICATE means a payment arrived for a user who already held an active pass and needs a manual refund.`}),price:Ta$1().int().nonnegative(),currency:na$1().length(3),termsUrl:ca$1(),expiresAt:Pi$1().meta({description:`When the provider abandons an unpaid attempt`}),passId:na$1().optional()}).meta({description:`A checkout attempt for a membership program`}),Gc=qa$1({provider:oo$1(`STRIPE`),clientSecret:na$1().meta({description:`Client secret that confirms the first invoice`}),stripeAccountId:na$1().meta({description:`Connected account the payment is taken on`})}).meta({description:`What the browser needs to collect the first payment`}),Kc=Ja$1({programId:na$1().max(128)}),qc=qa$1({provider:oo$1(`STRIPE`),stripeAccountId:na$1().meta({description:`Connected account the payment form must be loaded for`}),customerSessionClientSecret:na$1().optional().meta({description:`Lets the payment form show the buyer's saved cards. Absent when the provider declined to issue one.`})}).meta({description:`What the payment form needs before the purchase starts`}),Jc=Ja$1({teamSlug:na$1().min(1).max(128).meta({description:`Slug of the team whose current program is wanted`,examples:[`sash`]})}),Yc=qa$1({program:Hc,payment:qa$1({provider:oo$1(`STRIPE`),stripeAccountId:na$1().meta({description:`Connected account the payment form must be loaded for`})}).optional().meta({description:`How the membership is paid for. Absent when the team cannot take membership payments right now.`}),team:qa$1({id:na$1(),slug:na$1(),name:na$1(),image:F$1.optional().meta({description:`The team's avatar, shown beside the program at checkout`})})}),Xc=Ja$1({programId:na$1().max(128),termsAccepted:oo$1(true).meta({description:`The buyer has acknowledged the program's current terms and the automatic annual renewal`})}),Zc=qa$1({purchase:Wc,payment:Gc}),Qc=Ja$1({id:na$1().max(128)}),$c=qa$1({purchase:Wc,pass:Uc.optional()}),el=qa$1({reason:io$1([`ALREADY_MEMBER`,`MEMBERSHIP_SUSPENDED`,`PROGRAM_NOT_ON_SALE`,`PAYMENT_UNAVAILABLE`])}),tl=Ja$1({teamId:na$1().max(128).optional()}),nl=qa$1({passes:Ga$1(Uc)}),rl=Uc.extend({member:qa$1({firstName:na$1(),lastName:na$1(),email:na$1()}).optional().meta({description:`Absent when the user account no longer exists`})}).meta({description:`A membership pass with its owner, for staff`});const sl=Ja$1({teamId:na$1().max(128),memberNumber:Ta$1().int().min(1).max(99999).meta({description:`The serial printed on the keyring being handed over. It becomes the member number.`,examples:[42]}),email:ia$1().max(254).meta({description:`The member's email. Their existing account is used, or a new one is created that they sign in to with this email.`}),firstName:na$1().trim().min(1).max(100),lastName:na$1().trim().min(1).max(100),endsAt:Pi$1().nullable().meta({description:`When the free membership ends. Null for no end date. See defaultMembershipGrantEnd().`})}),cl=Ja$1({teamId:na$1().max(128),memberNumber:Ta$1().int().min(1).max(99999)}),ll=qa$1({status:io$1([`AVAILABLE`,`TAKEN`,`LAPSED`,`NO_KEYRING`]).meta({description:`AVAILABLE: free. TAKEN: a current or suspended member holds it. LAPSED: a lapsed member holds it, and only they can be given it again. NO_KEYRING: no imported keyring has this serial.`})}),ul=Ja$1({eventId:na$1().max(128),fobId:na$1().regex(/^fob_[0-9a-z]{26}$/).meta({description:`The QR value scanned from the member's keyring`})}),dl=qa$1({memberNumber:Ta$1().int(),member:qa$1({firstName:na$1(),lastName:na$1()}).optional().meta({description:`Absent when the user account no longer exists`})}),fl=Qa$1(`status`,[dl.extend({status:oo$1(`REDEEMED`),passId:na$1(),discount:qa$1({kind:io$1([`AMOUNT`,`PERCENT`]),amount:Ta$1().int().meta({description:`Minor units for AMOUNT, whole percent for PERCENT`}),currency:na$1().optional()}),undoUntil:Pi$1().meta({description:`The scanning staff member may undo until this moment`})}),dl.extend({status:oo$1(`ALREADY_USED`),source:io$1([`ONLINE`,`DOOR`]),pending:ka$1(),usedAt:Pi$1().optional(),orderId:na$1().optional(),usedBy:qa$1({firstName:na$1()}).optional().meta({description:`The staff member who scanned it, for a door use`})}),dl.extend({status:oo$1(`INACTIVE`),reason:io$1([`EXPIRED`,`SUSPENDED`,`ENDED`])}),dl.extend({status:oo$1(`NO_DISCOUNT`)}),qa$1({status:oo$1(`NOT_A_MEMBER`),reason:io$1([`UNKNOWN_KEYRING`,`OTHER_TEAM`,`UNASSIGNED`])})]).meta({description:`What door staff are told about a scanned keyring`}),pl=Ja$1({eventId:na$1().max(128),passId:na$1().max(128)}),ml=Ja$1({teamId:na$1().max(128),passId:na$1().max(128)}),hl=qa$1({reason:io$1([`ALREADY_MEMBER`,`MEMBERSHIP_SUSPENDED`,`NUMBER_TAKEN`,`MEMBER_NUMBER_MISMATCH`,`NO_KEYRING`,`NOT_COMPLIMENTARY`]),memberNumber:Ta$1().int().optional().meta({description:`The member number the account already holds, for ALREADY_MEMBER and MEMBER_NUMBER_MISMATCH`})}),gl=Ja$1({teamId:na$1().max(128),limit:L$1(`members`),cursor:na$1().max(768).optional().meta({description:`Pagination cursor from the previous response`})}),_l=B$1(rl,`members`).extend({program:Hc.optional()}),vl=io$1([`PROCESSING`,`TICKETS_CANCELLED`,`CANCELLED`]),yl=na$1().trim().min(1,`Enter a reason`).max(500,`Reason must be 500 characters or fewer`),bl=qa$1({id:hn,request:qa$1({cancelOrder:ka$1().optional().meta({description:`Whether this request closes the order to further ticket issuance.`}),idempotencyKey:na$1().meta({description:`Client key identifying the accepted cancellation request.`}),ticketIds:Ga$1(_n).optional().meta({description:`Original ticket selection for replaying the request. Omitted to select all tickets.`})}).meta({description:`Original request identity and selection.`}),ticketIds:Ga$1(_n).meta({description:`Tickets selected for this cancellation operation.`}),fullCancellation:ka$1().meta({description:`Whether the request selected all tickets. Closing the order is controlled separately by request.cancelOrder.`}),reason:yl.meta({description:`Reason shared with the buyer.`}),actor:qa$1({type:io$1([`USER`,`SYSTEM`]).meta({description:`Actor responsible for the cancellation.`}),userId:j$1.optional(),name:na$1().optional().meta({description:`Actor name captured when the cancellation was requested.`})}),createdAt:Pi$1().meta({description:`Time the cancellation request was accepted.`}),completedAt:Pi$1().optional().meta({description:`Time ticket cancellation completed.`}),status:io$1([`PROCESSING`,`SUCCEEDED`]).meta({description:`Ticket cancellation progress, independent of email delivery.`}),retryAction:io$1([`RESUME_CANCELLATION`]).optional().meta({description:`Replay the original request to complete unfinished cancellation work.`}),notification:qa$1({requested:ka$1().meta({description:`Whether staff requested a buyer email. Delivery is tracked by the shared notification service.`})})}).meta({description:`Staff-only cancellation history, including notification preference.`}),xl=qa$1({cancellation:bl}),Sl=qa$1({cancellations:Ga$1(bl)}),Cl=qa$1({id:hn,reason:yl.meta({description:`Reason shared with the buyer.`}),ticketIds:Ga$1(_n).meta({description:`Tickets affected by this cancellation.`})}).meta({description:`Buyer-visible cancellation details.`}),wl=qa$1({name:na$1().meta({examples:[`tenant-web`,`team-web`,`api`,`partner`],description:`Free-form channel identifier describing where the order originated.`}),referrer:na$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:na$1().optional().meta({examples:[`instagram`],description:`Optional UTM source captured from the originating URL.`}),utmMedium:na$1().optional().meta({examples:[`social`],description:`Optional UTM medium captured from the originating URL.`}),utmCampaign:na$1().optional().meta({examples:[`summer-launch`],description:`Optional UTM campaign captured from the originating URL.`}),deviceType:io$1([`MOBILE`,`TABLET`,`DESKTOP`]).optional().meta({examples:[`MOBILE`],description:`Optional analytics device classification captured at order creation.`}),browser:na$1().optional().meta({examples:[`Chrome`],description:`Optional analytics browser classification captured at order creation.`}),country:na$1().optional().meta({examples:[`Australia`],description:`Optional viewer country captured at order creation for analytics attribution.`}),region:na$1().optional().meta({examples:[`Australia - New South Wales`],description:`Optional viewer region captured at order creation for analytics attribution.`}),sessionId:na$1().optional().meta({examples:[`ses_01HX...`],description:`Session ID captured at order creation for client/server analytics linking.`}),anonymousId:na$1().optional().meta({examples:[`aid_01HX...`],description:`Browser anonymous ID captured at order creation for attribution linking.`})}),Tl=qa$1({id:na$1().meta({examples:[w$1.CouponCode.id],description:`Unique identifier of the coupon code used in the order`}),name:na$1().meta({examples:[w$1.CouponCode.name],description:`The coupon code string that was entered by the customer`}),couponId:na$1().meta({examples:[w$1.CouponCode.couponId],description:`Unique identifier of the parent coupon configuration`})}),El=qa$1({id:na$1().meta({examples:[w$1.Customer.id],description:`Unique identifier of the customer who placed the order`}),firstName:na$1().meta({examples:[w$1.Customer.firstName],description:`First name of the customer`}),lastName:na$1().meta({examples:[w$1.Customer.lastName],description:`Last name of the customer`}),email:ia$1().meta({examples:[w$1.Customer.email],description:`Email address of the customer`}),phone:na$1().meta({examples:[w$1.Customer.phone],description:`Customer phone number in E.164 format for SMS delivery`}).optional()}),Dl=qa$1({id:na$1().meta({examples:[w$1.Event.id],description:`Unique identifier of the event associated with the order`}),name:na$1().meta({examples:[w$1.Event.name],description:`Display name of the event`}),slug:na$1().meta({examples:[w$1.Event.slug],description:`URL-friendly slug of the event`}),location:na$1().meta({examples:[w$1.Event.location.name],description:`Name of the venue or location where the event takes place`}).optional(),locationAddress:na$1().optional().meta({examples:[w$1.Event.location.address],description:`Full venue address, available once the event location is revealed.`}),locationLatitude:Ta$1().optional().meta({examples:[w$1.Event.location.latitude],description:`Venue latitude, available once the event location is revealed.`}),locationLongitude:Ta$1().optional().meta({examples:[w$1.Event.location.longitude],description:`Venue longitude, available once the event location is revealed.`}),entryInstructions:na$1().max(2e3).optional().meta({description:`Latest entry instructions for customers once the event location is revealed.`})}),Ol=io$1([`GATEWAY`,`SHIPPING`,`SMS_DELIVERY`]).meta({description:`Type of fee applied to an order`}),kl=qa$1({id:na$1().meta({examples:[w$1.OrderFee.id],description:`Unique identifier for this order fee`}),createdAt:Pi$1().readonly().meta({examples:[w$1.OrderFee.createdAt],description:`Timestamp in ISO 8601 format when this fee was created`}),reason:na$1().meta({examples:[w$1.OrderFee.reason],description:`Description explaining why this fee was applied to the order`}),amount:Ta$1().finite(`Amount must be a valid number`).meta({examples:[w$1.OrderFee.amount],description:`Fee amount in cents (positive value indicates charge to customer, negative value indicates credit or discount)`}),currency:D$1.meta({examples:[w$1.OrderFee.currency],description:`Currency code in ISO 4217 format`}),requestId:na$1().meta({examples:[w$1.OrderFee.requestId],description:`External payment processor request identifier for tracking this fee`}),kind:Ol.optional().meta({examples:[`GATEWAY`],description:`Type of fee for categorization and reporting`})}),Al=qa$1({net:Da$1().min(0).meta({examples:[w$1.OrderItem.price.net],description:`Total amount to pay to promoter in cents.
83
+ Calculated as: total - booking - refunded`}),total:Da$1().min(0).meta({examples:[w$1.OrderItem.price.total],description:`Total amount the customer should pay in cents.
84
+ Calculated as: gross - discount`}),gross:Da$1().min(0).meta({examples:[w$1.OrderItem.price.gross],description:`Total amount before refunds and discounts in cents.
85
+ Calculated as: base + tax added to the entered price + booking`}),base:Da$1().min(0).meta({examples:[w$1.OrderItem.price.base],description:`Total ticket price in cents`}),booking:Da$1().min(0).meta({examples:[w$1.OrderItem.price.booking],description:`Total booking fees in cents (non-refundable)`}),tax:Da$1().min(0).optional().meta({description:`Ticket tax component in cents. Informational when already included in the entered price and included in total when added to it.`}),refunded:Da$1().max(0).meta({examples:[w$1.OrderItem.price.refunded],description:`Total amount refunded in cents`}),discount:Da$1().max(0).meta({examples:[w$1.OrderItem.price.discount],description:`Total amount discounted in cents`}),currency:D$1.meta({examples:[w$1.OrderItem.price.currency],description:`Currency code in ISO 4217 format.`})}),jl={taxableAmount:Da$1().min(0).meta({description:`Amount excluding collected tax, in minor currency units`}),amount:Da$1().min(0).meta({description:`Collected tax amount in minor currency units`}),grossAmount:Da$1().min(0).meta({description:`Amount including collected tax, in minor currency units`})};function Ml(e){return e.grossAmount===e.taxableAmount+e.amount}qa$1(jl).refine(Ml,{message:`Gross amount must equal taxable amount plus tax amount`,path:[`grossAmount`]});const Pl=qa$1({...jl,settings:zs.meta({description:`Event tax settings snapshot used for this order item`})}).refine(Ml,{message:`Gross amount must equal taxable amount plus tax amount`,path:[`grossAmount`]}).meta({description:`Immutable ticket tax snapshot and calculated amount`}),Fl=qa$1({supplierLegalName:na$1().trim().min(1).meta({description:`Legal entity supplying the platform booking service`}),registrationLabel:na$1().trim().min(1).max(50).optional().meta({description:`Label for the platform supplier registration number`}),registrationNumber:na$1().trim().min(1).max(100).meta({description:`Platform supplier tax or business registration number`}),taxName:na$1().trim().min(1).max(50).meta({description:`Customer-facing tax name for the platform booking fee`}),ratePpm:Da$1().min(1).max(js).meta({description:`Platform fee tax rate in parts per million`}),priceMode:oo$1(`INCLUSIVE`).meta({description:`Platform booking fees are displayed inclusive of tax`})}).strict().meta({description:`Platform booking fee tax settings snapshot`}),Il=qa$1({ticket:zs.optional().meta({description:`Ticket supplier tax settings used for this order`}),platformFee:Fl.optional().meta({description:`Platform booking fee tax settings used for this order`})}).strict().refine(e=>e.ticket!==void 0||e.platformFee!==void 0,{message:`Include at least one tax settings snapshot`}).meta({description:`Immutable supplier tax settings used by the order`}),Ll=io$1([`ADMISSION`,`ADDON`]),zl=qa$1({id:na$1().meta({examples:[w$1.OrderItem.id],description:`Unique identifier for this order item`}),kind:Ll.meta({examples:[w$1.OrderItem.kind],description:`Type of item: ADMISSION for tickets, ADDON for additional products or services`}),quantity:Da$1().min(1).meta({examples:[w$1.OrderItem.quantity],description:`Number of items purchased (minimum 1)`}),admissionId:na$1().optional().meta({examples:[w$1.OrderItem.admissionId],description:`Unique identifier of the admission ticket type, required for ADMISSION items`}),sectionId:na$1().optional().meta({examples:[w$1.OrderItem.sectionId],description:`Unique identifier of the venue section for this admission`}),admission:z$1.optional().meta({examples:[w$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:K$1.optional().meta({examples:[w$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:Al.meta({description:`Pricing breakdown for this order item including all fees and discounts`}),tax:Pl.optional().meta({description:`Tax settings and amount fixed when this item was priced`})}),Bl=zl.superRefine((e,t)=>{if(e.price.tax!==void 0!=(e.tax!==void 0)){t.addIssue({code:`custom`,message:`Price tax and item tax snapshot must be provided together`,path:[`price`,`tax`]});return}e.tax&&e.price.tax!==e.tax.amount&&t.addIssue({code:`custom`,message:`Price tax must equal the item tax amount`,path:[`price`,`tax`]});}),Vl=qa$1({promoter:ka$1(),tenant:ka$1()}),Hl=io$1([`SMS_DELIVERY`]).meta({description:`Type of pre-computed offer available for this order`}),Ul=qa$1({amount:Da$1().min(0).meta({examples:[200],description:`Offer price in the smallest currency unit (e.g. cents)`}),currency:D$1.meta({examples:[`AUD`],description:`Three-letter ISO 4217 currency code`})}),Wl=qa$1({kind:Hl.meta({examples:[`SMS_DELIVERY`],description:`Discriminator identifying the type of offer`}),label:na$1().meta({examples:[`SMS ticket delivery`],description:`Human-readable label for the offer`}),price:Ul.meta({description:`Pre-computed price for this offer`})}),Gl=io$1([`FREE`,`AIRWALLEX`,`STRIPE`]),ql=io$1([`AMERICAN_EXPRESS`,`CARTES_BANCAIRES`,`CHINA_UNION_PAY`,`DINERS_CLUB_INTERNATIONAL`,`DISCOVER`,`EFTPOS_AUSTRALIA`,`INTERAC`,`JCB`,`LINK`,`MAESTRO`,`MASTERCARD`,`OTHER`,`UNKNOWN`,`UNION_PAY`,`VISA`]),Yl=io$1(`ACH_DIRECT_DEBIT.ACSS_DEBIT.AFFIRM.AFTERPAY.ALFAMART.ALIPAY.ALIPAYCN.ALIPAYHK.ALMA.AMEX_EXPRESS_CHECKOUT.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.MASTERPASS.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.VISA_CHECKOUT.WECHATPAY.ZIP`.split(`.`)),Zl=qa$1({method:Gl.meta({examples:[`FREE`],description:`Payment gateway used to process this order: FREE for no-cost orders, AIRWALLEX or STRIPE for paid orders`}),source:Yl.optional().meta({examples:[`APPLEPAY`,`GOOGLEPAY`,`CARD`],description:`Payment method used by the customer such as ApplePay, GooglePay, or card-based payments`}),brand:ql.optional().meta({examples:[`VISA`,`MASTERCARD`,`AMERICAN_EXPRESS`],description:`Card brand when source is CARD (Visa, Mastercard, American Express, etc.)`}),last4:na$1().optional().meta({examples:[`4242`],description:`Last 4 digits of the card number when source is CARD`}),stripeId:na$1().optional().meta({examples:[`pi_1234567890abcdef`],description:`Stripe payment intent identifier when using Stripe gateway`}),stripeClientSecret:na$1().optional().meta({examples:[`pi_1234567890abcdef_secret_xyz`],description:`Stripe PaymentIntent client secret associated with the order, used to complete the payment flow`}),stripeCustomerSessionClientSecret:na$1().optional().meta({examples:[`cuss_1234567890abcdef_secret_xyz`],description:`Stripe CustomerSession client secret used by the Payment Element to offer and redisplay saved payment methods`}),stripeAccountId:na$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:na$1().optional().meta({examples:[`int_hkdmr7v9rg1j8donpkmv96`],description:`Airwallex payment intent identifier when using Airwallex gateway`}),airwallexClientSecret:na$1().optional().meta({examples:[`eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3MDAwMDAwMDAsImV4cCI6MTcwMDAwMzYwMCwiaW50ZW50X2lkIjoiaW50X2hrZG1yN3Y5cmcxajhkb25wa212OTYifQ.K8vLx2nPzQHdR5mT1wYcBfJkLmNpS3xG7aE9dH4qZvM`],description:`Airwallex client secret used to authenticate requests for payment initialization`}),airwallexCustomerId:na$1().optional().meta({examples:[`cus_hkdmrhkh8he4j3kvela`],description:`Airwallex customer ID attached to the PaymentIntent for saved cards functionality`}),airwallexCustomerClientSecret:na$1().optional().meta({examples:[`eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3MDAwMDAwMDAsImV4cCI6MTcwMDAwMzYwMCwiY3VzdG9tZXJfaWQiOiJjdXNfaGtkbXJoa2g4aGU0ajNrdmVsYSJ9.abc123`],description:`Airwallex customer client secret for accessing saved payment methods in the Drop-in Element`})}),Ql=qa$1({total:Da$1().meta({description:`Customer refunds in settlement minor units, negative for refunds.`}),items:Da$1().meta({description:`Refunded ticket and product principal, negative for refunds.`}),shipping:Da$1().meta({description:`Refunded shipping, negative for refunds.`}),fees:Da$1().meta({description:`Refunded customer fees, reported separately from organiser principal.`}),count:Da$1().nonnegative().meta({description:`Successful refunds included at the accounting cutoff.`}),tickets:Da$1().nonnegative().meta({description:`Tickets cancelled by the included successful refunds.`})}),$l=qa$1({refundBreakdown:Ql.optional().meta({description:`Refund components at the settlement cutoff. Absent on legacy prices.`}),net:Da$1().meta({examples:[w$1.Order.price.net],description:`Total amount to pay to promoter in cents.
86
+ Ticket and shipping revenue after organiser-funded refunds and disputes, excluding booking and SMS fees.`}),total:Da$1().meta({examples:[w$1.Order.price.total],description:`Total amount the customer should pay in cents.
87
+ Calculated as: gross + discount + sms`}),gross:Da$1().min(0).meta({examples:[w$1.Order.price.gross],description:`Total amount before refunds and discounts in cents.
88
+ Calculated as: base + tax added to entered prices + booking + shipping`}),base:Da$1().min(0).meta({examples:[w$1.Order.price.base],description:`Total ticket price in cents`}),booking:Da$1().min(0).meta({examples:[w$1.Order.price.booking],description:`Total booking fees in cents (non-refundable)`}),tax:Da$1().min(0).optional().meta({description:`Total ticket tax component in cents. This excludes tax contained in platform booking fees.`}),shipping:Da$1().min(0).meta({examples:[w$1.Order.price.shipping],description:`Total shipping amount in cents`}),sms:Da$1().min(0).default(0).meta({examples:[w$1.Order.price.sms],description:`SMS delivery fee in cents (customer-facing price in event currency)`}),refunded:Da$1().max(0).meta({examples:[w$1.Order.price.refunded],description:`Total amount refunded in cents (negative value)`}),discount:Da$1().max(0).meta({examples:[w$1.Order.price.discount],description:`Total amount discounted in cents (negative value)`}),gateway:Da$1().max(0).meta({examples:[w$1.Order.price.gateway],description:`Total absorbed payment gateway fees in cents (negative value)`}),dispute:Da$1().max(0).meta({examples:[w$1.Order.price.dispute],description:`Total non-absorbed payment gateway fees in cents (negative value)`}),currency:D$1.meta({examples:[w$1.Order.price.currency],description:`Currency code in ISO 4217 format`})}),eu=io$1([`PENDING`,`PROCESSING`,`SUCCEEDED`,`FAILED`]),nu=io$1([`CUSTOMER_REQUEST`,`DUPLICATE`,`EVENT_CANCELLED`,`OTHER`]),iu=io$1([`USER`,`GATEWAY`,`SYSTEM`]),ou=qa$1({orderItemId:na$1().meta({examples:[w$1.OrderRefundItem.orderItemId],description:`Identifier of the order item being refunded`}),quantity:Da$1().min(1).meta({examples:[w$1.OrderRefundItem.quantity],description:`Number of units refunded for this item`}),amount:Da$1().min(0).meta({examples:[w$1.OrderRefundItem.amount],description:`Refund amount for this item in cents, after discounts, including any exclusive ticket tax and excluding booking fees`}),taxAmount:Da$1().min(0).optional().meta({description:`Ticket tax component reversed by this refund item`}),ticketIds:Ga$1(na$1()).meta({examples:[w$1.OrderRefundItem.ticketIds],description:`Specific ticket identifiers that were refunded (selected via FIFO)`})}),su=qa$1({idempotencyKey:na$1().optional().meta({examples:[w$1.OrderRefund.request.idempotencyKey],description:`Client-provided key to prevent duplicate refund processing`})}),cu=qa$1({currency:na$1().meta({examples:[`AUD`],description:`Currency used for all refund amounts`}),total:Da$1().min(1).meta({examples:[w$1.OrderRefund.price.total],description:`Total refund amount in cents, including ticket, shipping, and fee portions.`}),items:Da$1().min(0).meta({examples:[w$1.OrderRefund.price.items],description:`Ticket item portion of the refund in cents`}),shipping:Da$1().min(0).meta({examples:[w$1.OrderRefund.price.shipping],description:`Shipping portion of the refund in cents`}),fees:Da$1().min(0).meta({examples:[w$1.OrderRefund.price.fees],description:`Fee portion of the refund in cents`}),tax:Da$1().min(0).optional().meta({description:`Ticket tax component reversed by this refund`})}),lu=qa$1({cancelRequested:ka$1().meta({examples:[w$1.OrderRefund.tickets.cancelRequested],description:`Whether ticket cancellation was requested for the refund`}),cancelled:ka$1().meta({examples:[w$1.OrderRefund.tickets.cancelled],description:`Whether tickets were cancelled as part of this refund`}),cancelledCount:Da$1().min(0).meta({examples:[w$1.OrderRefund.tickets.cancelledCount],description:`Number of tickets that were cancelled`})}),uu=qa$1({provider:Gl.meta({examples:[`STRIPE`,`AIRWALLEX`],description:`Payment gateway used to process the refund`}),refundId:na$1().optional().meta({examples:[w$1.OrderRefund.gateway.refundId],description:`Refund identifier from the payment gateway`}),idempotencyKey:na$1().optional().meta({examples:[w$1.OrderRefund.gateway.idempotencyKey],description:`Idempotency key sent to the payment gateway`})}),du=qa$1({type:iu.meta({examples:[`USER`,`GATEWAY`],description:`Who initiated the refund`}),userId:na$1().optional().meta({examples:[w$1.OrderRefund.actor.userId],description:`Identifier of the user who initiated the refund`})}),fu=qa$1({requested:ka$1().meta({examples:[w$1.OrderRefund.notification.requested],description:`Whether a customer refund confirmation email was requested.`}),sentAt:Pi$1().optional().meta({examples:[w$1.OrderRefund.notification.sentAt],description:`Timestamp when the refund confirmation email was sent.`})}),pu=qa$1({reason:na$1().meta({examples:[`Insufficient funds for refund`],description:`Gateway or system failure reason`}),message:na$1().optional().meta({examples:[`The refund could not be processed.`],description:`User-facing failure message when available`})}),mu=qa$1({id:na$1().meta({examples:[w$1.OrderRefund.id],description:`Unique identifier for this refund`}),request:su.optional().meta({description:`Request metadata supplied by Sessions or API callers`}),status:eu.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.`}),acceptedAt:Pi$1().optional().meta({examples:[w$1.OrderRefund.acceptedAt],description:`Timestamp when the payment gateway accepted the refund`}),failedAt:Pi$1().optional().meta({examples:[w$1.OrderRefund.failedAt],description:`Timestamp when the refund failed`}),failure:pu.optional().meta({description:`Failure details when the refund failed`}),price:cu.meta({description:`Refund amount breakdown`}),reason:nu.meta({examples:[`CUSTOMER_REQUEST`,`DUPLICATE`,`EVENT_CANCELLED`],description:`Categorized reason for the refund used for analytics`}),note:na$1().optional().meta({examples:[w$1.OrderRefund.note],description:`Free-form notes explaining the refund`}),items:Ga$1(ou).meta({description:`Line items included in this refund with quantities and amounts`}),tickets:lu.meta({description:`Ticket cancellation state for the refund`}),gateway:uu.meta({description:`Gateway refund identifiers`}),actor:du.meta({description:`Refund initiator`}),metadata:no$1(na$1(),na$1()).optional().meta({examples:[{supportTicket:`#12345`}],description:`Custom key-value pairs passed through to the payment gateway`}),notification:fu.meta({description:`Refund confirmation notification state`}),createdAt:Pi$1().meta({examples:[w$1.OrderRefund.createdAt],description:`Timestamp when the refund was created`})}),hu=$l.extend({exchangeRate:Ta$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 gu(t,n,i={}){return qa$1({id:na$1().meta({examples:n.idExamples,description:n.idDescription}),createdAt:Pi$1().readonly().meta({examples:n.createdAtExamples,description:`Timestamp in ISO 8601 format when this timeline entry was created`}),...i,kind:t.meta({examples:n.kindExamples,description:n.kindDescription}),editable:ka$1().meta({examples:[false],description:`Whether this timeline entry can be edited by users`}),pinned:ka$1().meta({examples:[false],description:`Whether this timeline entry is pinned to the top of the timeline`}),description:na$1().meta({examples:n.descriptionExamples,description:`Human-readable description of what happened in this timeline event`}),author:na$1().meta({examples:[`System`],description:`Name of the user or system that created this timeline entry`}),userId:na$1().optional().meta({examples:[w$1.User.id],description:n.userIdDescription??`Identifier of the user who created this timeline entry, when available`}),externalId:na$1().optional().meta({examples:n.externalIdExamples,description:n.externalIdDescription})})}const _u=io$1(`ORDER_STATUS_UPDATED.ORDER_EXPIRED.ORDER_COMPLETED.PAYMENT_INITIATED.PAYMENT_PROCESSING.PAYMENT_FAILED.PAYMENT_SUCCEEDED.REFUND_INITIATED.REFUND_PROCESSING.REFUND_SUCCEEDED.REFUND_SETTLED.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(`.`)),vu=gu(_u,{createdAtExamples:[w$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:[w$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:na$1().optional().meta({examples:[`SUCCESSFUL`],description:`Order status associated with this timeline entry, when applicable.`})}),yu=io$1([`PENDING`,`PROCESSING`,`SUCCESSFUL`,`DISPUTED`,`ABANDONED`]),q$1=qa$1({id:gn.readonly().meta({examples:[w$1.Order.id],description:`A unique identifier for this order.`}),createdAt:Pi$1().readonly().meta({examples:[w$1.Order.createdAt],description:`Timestamp in ISO 8601 format when this order was created.`}),updatedAt:Pi$1().readonly().meta({examples:[w$1.Order.updatedAt],description:`Timestamp in ISO 8601 format when this order was last updated.`}),status:yu.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.`}),cancellationStatus:vl.optional().meta({description:`Ticket cancellation state, independent of payment status.`}),cancellations:Ga$1(Cl).optional().meta({description:`Buyer-visible reasons and affected tickets. Available on order detail responses.`}),payment:Zl.optional().meta({description:`Payment gateway details including method, card brand, and transaction identifiers. Absent for free orders.`}),items:Ga$1(Bl).meta({description:`Line items in this order, each with a ticket type, quantity, and price breakdown.`}),fees:Ga$1(kl).meta({description:`Gateway fees recorded against this order from settlement processing (e.g. payment processing fees, dispute fees).`}),price:$l.meta({description:`Price breakdown in the event currency. This reflects what the customer was charged.`}),tax:Il.optional().meta({description:`Immutable ticket and platform fee tax settings used to calculate this order`}),settlement:hu.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:Tl.optional().meta({description:`Coupon code applied to this order for discount calculation.`}),customer:El.optional().meta({description:`Customer who placed this order. Absent for guest checkouts before customer details are captured.`}),marketingConsent:Vl.optional().meta({description:`Marketing opt-in choices captured during checkout.`}),timeline:Ga$1(vu).optional().meta({description:`Chronological audit trail of events for this order (payments, refunds, emails, scans).`}),refunds:Ga$1(mu).default([]).meta({description:`Refunds processed for this order including pending, succeeded, and failed attempts.`}),offers:Ga$1(Wl).default([]).meta({description:`Pre-computed add-on offers available during checkout (e.g. SMS ticket delivery).`}),customerId:bn.optional().meta({examples:[w$1.Customer.id],description:`Identifier of the customer who placed this order.`}),createdBy:El.optional().meta({description:`Admin user who created this order on behalf of the customer.`}),teamId:k$1.meta({description:`Team that owns this order.`}),promoterId:M$1.meta({examples:[w$1.Promoter.id],description:`Promoter managing this order.`}),event:Dl.meta({description:`Snapshot of the event at time of purchase (name, slug, location).`}),payoutIds:Ga$1(Cn.meta({examples:[`pay_01HQXYZ`],description:`Payout identifier.`})).meta({description:`Payout identifiers for settlements that included this order.`}),eventId:A$1.meta({examples:[w$1.Event.id],description:`Identifier of the event this order belongs to.`}),checkoutUrl:na$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:na$1().optional().meta({examples:[`/orders`],description:`Frozen registered confirmation URL, tenant return, or approved native return. External web selection requires returnDestinationKey.`}),returnDestinationKey:na$1().optional(),channel:wl.optional().meta({description:`Channel metadata captured at order creation to identify origin and redirect context.`}),reservedAt:Pi$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.`}),xu=qa$1({id:na$1().meta({examples:[w$1.Admission.id],description:`Admission ID reference`}),name:na$1().meta({examples:[`VIP Access`,`General Admission`,`Early Bird`],description:`Admission type name at time of purchase`}),price:qa$1({base:Ta$1().meta({description:`Base price in smallest currency unit (cents)`}),booking:Ta$1().meta({description:`Booking fee in smallest currency unit (cents)`}),currency:na$1().meta({examples:[`USD`,`EUR`,`GBP`],description:`ISO 4217 currency code`})}).meta({description:`Price snapshot at time of purchase`}),entryStartsAt:I$1.meta({description:`Wall clock time when ticket holder can enter (no timezone, displays same everywhere)`}),entryEndsAt:I$1.meta({description:`Wall clock time when entry period ends (no timezone, displays same everywhere)`})}).meta({description:`Admission details for this ticket`}),Su=qa$1({firstName:na$1().trim().min(1).meta({examples:[w$1.Customer.firstName],description:`First name of the ticket attendee`}),lastName:na$1().trim().min(1).meta({examples:[w$1.Customer.lastName],description:`Last name of the ticket attendee`}),email:ia$1().meta({examples:[w$1.Customer.email],description:`Email address of the ticket attendee`}),phone:na$1().meta({examples:[w$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.`}),Cu=qa$1({id:na$1().meta({examples:[w$1.Event.id],description:`Event ID reference`}),name:na$1().meta({examples:[w$1.Event.name],description:`The title of the event shown to attendees`}),slug:na$1().meta({examples:[w$1.Event.slug],description:`URL-friendly identifier for the event`}),location:ns.meta({description:`Structured location details for the event`}),entryStartsAt:I$1.meta({examples:[w$1.Event.entryStartsAt],description:`Wall clock time when event entry begins (no timezone, displays same everywhere)`}),entryEndsAt:I$1.meta({examples:[w$1.Event.entryEndsAt],description:`Wall clock time when event entry ends (no timezone, displays same everywhere)`}),images:qa$1({mobile:F$1.meta({description:`Mobile-optimized image for the event`}),desktop:F$1.meta({description:`Desktop-optimized image for the event`})})}).meta({description:`Event details for this ticket`}),wu=qa$1({id:na$1().meta({examples:[w$1.User.id],description:`Unique identifier of the user who performed the ticket scan`}),firstName:na$1().meta({examples:[w$1.User.firstName],description:`First name of the user who performed the scan`}),lastName:na$1().meta({examples:[w$1.User.lastName],description:`Last name of the user who performed the scan`}),email:ia$1().meta({examples:[w$1.User.email],description:`Email address of the user who performed the scan`})}).meta({description:`Information about the user who scanned a ticket`}),Tu=io$1([`CHECK_IN`,`CHECK_OUT`]),Du=qa$1({id:na$1().meta({examples:[w$1.TicketScan.id],description:`Unique identifier of the ticket scan record`}),scannedAt:Pi$1().readonly().meta({examples:[w$1.TicketScan.scannedAt],description:`Timestamp when the ticket was scanned in ISO 8601 format`}),scannedById:na$1().meta({examples:[w$1.TicketScan.scannedById],description:`Unique identifier of the user who performed the scan`}),scannedBy:wu.meta({description:`Detailed information about the user who performed the scan`}),deviceId:na$1().meta({examples:[w$1.TicketScan.deviceId],description:`Unique identifier of the device used for scanning`}),kind:Tu.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`}),Ou=qa$1({id:na$1().meta({examples:[w$1.Section.id],description:`Section ID reference`}),name:na$1().meta({examples:[`Floor Section A`,`Balcony Left`,`VIP Lounge`],description:`Section name at time of purchase`}),location:qa$1({name:na$1().meta({description:`Venue or location name`}),address:na$1().optional().meta({description:`Street address`}),city:na$1().optional().meta({description:`City name`}),state:na$1().optional().meta({description:`State or province`}),postcode:na$1().optional().meta({description:`Postal/ZIP code`}),country:na$1().optional().meta({description:`ISO country code`}),latitude:Ta$1().optional().meta({description:`Geographic latitude coordinate`}),longitude:Ta$1().optional().meta({description:`Geographic longitude coordinate`}),timeZone:na$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`}),ku=io$1([`ACTIVE`,`REDEEMED`,`CANCELLED`]),J$1=qa$1({id:na$1().readonly().meta({examples:[w$1.Ticket.id],description:`Unique identifier for the ticket`}),qrValue:ca$1().optional().meta({description:`Signed QR payload. Private to authorized ticket readers.`}),createdAt:Pi$1().readonly().meta({examples:[w$1.Ticket.createdAt],description:`Timestamp when the ticket was created in ISO 8601 format`}),updatedAt:Pi$1().readonly().meta({examples:[w$1.Ticket.updatedAt],description:`Timestamp when the ticket was last updated in ISO 8601 format`}),scans:Ga$1(Du).meta({description:`Array of all scan records for this ticket (check-ins and check-outs)`}),status:ku.meta({examples:[`ACTIVE`],description:`Current status of the ticket: ACTIVE (can be used), REDEEMED (already used), CANCELLED (invalidated or refunded)`}),attendee:Su.meta({description:`Attendee information for this ticket - editable by tenant admins`}),customerId:bn.meta({examples:[w$1.Ticket.customerId],description:`Unique identifier of the customer who purchased this ticket (read-only)`}),eventId:A$1.meta({examples:[w$1.Ticket.eventId],description:`Unique identifier of the event this ticket grants access to`}),event:Cu.meta({description:`Event details for this ticket`}),admissionId:N$1.meta({examples:[w$1.Ticket.admissionId],description:`Unique identifier of the admission type/tier this ticket represents`}),admission:xu.meta({description:`Admission details for this ticket`}),section:Ou.optional().meta({description:`Section details for this ticket (if assigned to a section)`}),orderId:gn.meta({examples:[w$1.Ticket.orderId],description:`Unique identifier of the order this ticket was purchased in`}),orderItemId:na$1().meta({examples:[w$1.Ticket.orderItemId],description:`Unique identifier of the specific order item this ticket represents`}).optional(),teamId:k$1.meta({examples:[w$1.Ticket.teamId],description:`Identifier of the team that owns this ticket`}),promoterId:M$1.meta({examples:[w$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.`}),ju=qa$1({id:na$1().meta({examples:[w$1.Order.id],description:`Unique identifier of the order to retrieve`}),signature:Ar.optional().meta({description:`HMAC signature for public order access (16 characters, base64url encoded)`})}),Mu=ju.required().extend({cursor:na$1().max(4096).optional().meta({description:`Opaque cursor from the previous page of tickets.`})}).strict().meta({description:`Signed request for an order's confirmation and its QR tickets.`}),Nu=qa$1({expectedTicketCount:Ta$1().int().nonnegative().meta({description:`Total tickets this order will have once issuing completes, across all pages.`}),order:q$1.pick({id:true,status:true,event:true,createdAt:true,items:true,price:true,returnDestinationKey:true,returnUrl:true}).extend({refunds:Ga$1(mu.pick({id:true,status:true,price:true,createdAt:true}))}),tickets:Ga$1(J$1.pick({id:true,status:true,admission:true}).extend({qrValue:ca$1().meta({description:`Signed QR payload. Private to the ticket holder.`})})),nextCursor:na$1().optional().meta({description:`Cursor for the next page of tickets. Omitted on the last.`})}).meta({description:`An order's confirmation with its issued QR tickets and refund history.`}),Pu=q$1.pick({id:true,createdAt:true,status:true}).extend({price:q$1.shape.price.pick({total:true,currency:true,refunded:true}),event:q$1.shape.event.pick({id:true,name:true,slug:true})}).meta({description:`One purchase in the current buyer's history for the website's account Team.`}),Fu=Ja$1({cursor:na$1().max(16384).optional().meta({description:`Opaque cursor from the previous page.`}),limit:Ta$1().int().min(1).max(25).default(20).meta({description:`Maximum purchases to return.`})}).meta({description:`Page request for the current buyer's purchases.`}),Iu=qa$1({teamId:k$1,orders:Ga$1(Pu),nextCursor:na$1().optional().meta({description:`Cursor for the next page. Omitted on the last page.`})}).meta({description:`A page of the current buyer's purchases for the website's account Team.`}),Lu=Ja$1({id:gn,cursor:na$1().max(16384).optional().meta({description:`Opaque cursor from the purchase list.`})}).meta({description:`Reference to one of the current buyer's purchases.`}),Ru=Nu.extend({teamId:k$1,order:Pu.extend({event:q$1.shape.event,items:q$1.shape.items,refunds:Nu.shape.order.shape.refunds})}).meta({description:`Full detail for one purchase the current buyer owns.`}),zu=Lu.omit({cursor:true}).extend({ticketId:_n,provider:io$1([`apple`,`google`]).meta({description:`Wallet provider the pass is requested for.`})}).meta({description:`Request for a wallet pass on a purchase the buyer owns.`}),Bu=Qa$1(`provider`,[qa$1({teamId:k$1,provider:oo$1(`apple`),data:na$1().max(4e6).meta({description:`Base64-encoded Apple Wallet pass. Do not cache or log.`})}),qa$1({teamId:k$1,provider:oo$1(`google`),url:ca$1().meta({description:`Validated Google Wallet save URL.`})})]).meta({description:`An approved wallet pass, returned only to the buyer who owns the ticket.`}),Vu=qa$1({id:na$1().meta({examples:[w$1.Order.id],description:`Unique identifier of the order to add a note to`}),note:na$1().min(1).max(1e3).meta({examples:[`Customer requested special seating arrangements`],description:`Note text content (1-1000 characters)`})}),Hu=qa$1({id:gn,cancelOrder:ka$1().optional().meta({description:`Close the order and cancel all its tickets. Omit or use false to cancel tickets while allowing replacement issuance.`}),ticketIds:Ga$1(_n).min(1).max(500).optional().meta({description:`Tickets to cancel. Omit to cancel every ticket on the order.`}),idempotencyKey:na$1().min(1).max(128).meta({description:`Stable key for this cancellation. Reuse when retrying.`}),reason:yl.meta({description:`Reason shown to the buyer and included in their email when notification is enabled, 1–500 characters after trimming.`}),notify:ka$1().default(true).meta({description:`Email the order buyer after cancellation.`})}),Uu=zl.omit({id:true,price:true,kind:true}).extend({id:na$1().optional().meta({examples:[`itm_01jps5cgsfwyxj0516571eaf17`],description:`Unique identifier for this order item. When omitted, the server assigns an id during processing`})}),Wu=qa$1({eventId:na$1().meta({description:`Unique identifier of the event for which to create a complimentary order`}),items:Ga$1(Uu).min(1).meta({description:`Admission items to include in the complimentary order`}),customer:qa$1({firstName:na$1().min(1),lastName:na$1().min(1),email:ia$1()}),notifyCustomer:ka$1().default(true).meta({description:`Whether to send the standard order confirmation email after tickets are generated`}),reason:na$1().min(1),idempotencyKey:na$1().trim().min(1).max(255).optional()}),Gu=io$1([`MEMBER_SIGN_IN_REQUIRED`,`MEMBERSHIP_REQUIRED`,`MEMBER_BENEFIT_USED`]);qa$1({reason:Gu}).meta({description:`Why a coupon code could not be applied, when the checkout can act on it`});const Ju=qa$1({postHogDistinctId:na$1().min(1).max(256).optional()}),Yu=qa$1({eventId:na$1().meta({examples:[`evt_01jps5cgsenjrazw6wswmyspa3`],description:`Unique identifier of the event for which to create the order`}),items:Ga$1(Uu).meta({description:`List of items to include in the new order`}),couponCode:na$1().optional().meta({examples:[`TEST50`],description:`Optional coupon code to apply discount to the order`}),returnUrl:na$1().optional().meta({examples:[`/orders`],description:`Optional tenant-relative, same-tenant-origin, or explicitly approved native return URL. External web returns require returnDestinationKey.`}),returnDestinationKey:na$1().min(1).max(80).optional().meta({description:`Registered checkout confirmation destination, fixed when the order is created.`}),channel:wl.optional().meta({description:`Optional channel metadata for where the order originated (for attribution and redirect routing).`}),analytics:Ju.optional().meta({description:`Optional browser analytics metadata used for cross-domain checkout attribution.`}),idempotencyKey:na$1().trim().min(1).max(255).optional().meta({description:`Optional key that makes repeated order creation requests return the same order.`})}),Xu=qa$1({id:na$1().meta({examples:[w$1.Order.id],description:`Unique identifier of the order`}),noteId:na$1().meta({examples:[`tl_1234567890_abc123`],description:`Unique identifier of the timeline note to delete`})}),Zu=io$1([`EMAIL`,`SMS`]).meta({examples:[`EMAIL`],description:`Method used to deliver tickets to the customer: EMAIL or SMS`});qa$1({id:na$1().meta({examples:[w$1.Order.id],description:`Unique identifier of the order to edit`}),signature:Ar.meta({description:`HMAC signature for customer access during checkout (16 characters, base64url encoded). Required for editing order items.`}),items:Ga$1(Uu).min(1).meta({description:`Updated list of items for the order (replaces existing items). Prices will be recalculated and payment intent updated.`})});const $u=io$1([`STATUS`,`CANCELLATION_STATUS`,`DELIVERY_METHOD`,`CUSTOMER_EMAIL`,`CUSTOMER_PHONE`,`COUPON_CODE`,`PAYMENT_SOURCE`,`PAYMENT_METHOD`,`CURRENCY`,`CREATED_AT`,`UPDATED_AT`,`RESERVED_AT`,`TOTAL`,`TICKETS`,`ORDER_ID`,`CUSTOMER_ID`,`EVENT_ID`,`PROMOTER_ID`,`PAYOUT_ID`]),ed=io$1([`IS`,`IS_NOT`,`IS_ANY_OF`,`CONTAINS`,`IS_EMPTY`,`IS_NOT_EMPTY`,`BETWEEN`,`GTE`,`LTE`]),td=new Set([`IS_EMPTY`,`IS_NOT_EMPTY`]),nd=new Set([`IS_ANY_OF`]),rd=new Set([`IS`,`IS_NOT`,`CONTAINS`,`GTE`,`LTE`]),id=new Set([`BETWEEN`]),ad={CANCELLATION_STATUS:new Set([`IS`,`IS_NOT`,`IS_ANY_OF`,`IS_EMPTY`]),STATUS:new Set([`IS`,`IS_NOT`,`IS_ANY_OF`]),DELIVERY_METHOD:new Set([`IS`,`IS_NOT`,`IS_ANY_OF`]),CUSTOMER_EMAIL:new Set([`IS`,`IS_NOT`,`CONTAINS`,`IS_EMPTY`,`IS_NOT_EMPTY`]),CUSTOMER_PHONE:new Set([`IS`,`IS_NOT`,`CONTAINS`,`IS_EMPTY`,`IS_NOT_EMPTY`]),COUPON_CODE:new Set([`IS`,`IS_NOT`,`CONTAINS`,`IS_EMPTY`,`IS_NOT_EMPTY`]),PAYMENT_SOURCE:new Set([`IS`,`IS_NOT`,`IS_ANY_OF`,`IS_EMPTY`]),PAYMENT_METHOD:new Set([`IS`,`IS_NOT`,`IS_ANY_OF`,`IS_EMPTY`]),CURRENCY:new Set([`IS`,`IS_NOT`,`IS_ANY_OF`]),CREATED_AT:new Set([`BETWEEN`,`GTE`,`LTE`]),UPDATED_AT:new Set([`BETWEEN`,`GTE`,`LTE`]),RESERVED_AT:new Set([`BETWEEN`,`GTE`,`LTE`,`IS_EMPTY`,`IS_NOT_EMPTY`]),TOTAL:new Set([`BETWEEN`,`GTE`,`LTE`]),TICKETS:new Set([`BETWEEN`,`GTE`,`LTE`]),ORDER_ID:new Set([`IS`,`IS_NOT`,`CONTAINS`]),CUSTOMER_ID:new Set([`IS`,`IS_NOT`,`IS_EMPTY`,`IS_NOT_EMPTY`]),EVENT_ID:new Set([`IS`,`IS_NOT`]),PROMOTER_ID:new Set([`IS`,`IS_NOT`]),PAYOUT_ID:new Set([`IS`,`IS_NOT`,`IS_ANY_OF`,`IS_EMPTY`])},od={STATUS:yu,CANCELLATION_STATUS:vl,DELIVERY_METHOD:Zu,PAYMENT_SOURCE:Yl,PAYMENT_METHOD:Gl},sd=new Set([`CREATED_AT`,`UPDATED_AT`,`RESERVED_AT`]),cd=new Set([`TOTAL`,`TICKETS`]),ld=qa$1({field:$u,operator:ed,values:Ga$1(na$1()).max(20)}).superRefine((e,t)=>{ad[e.field].has(e.operator)||t.addIssue({code:`custom`,path:[`operator`],message:`${e.operator} is not supported for ${e.field}`}),ud(e,t),dd(e,t),fd(e,t),pd(e,t);});function ud(e,t){let n=e.values.length;td.has(e.operator)&&n!==0&&t.addIssue({code:`custom`,path:[`values`],message:`${e.operator} does not accept values`}),rd.has(e.operator)&&n!==1&&t.addIssue({code:`custom`,path:[`values`],message:`${e.operator} requires exactly one value`}),nd.has(e.operator)&&n<1&&t.addIssue({code:`custom`,path:[`values`],message:`${e.operator} requires at least one value`}),id.has(e.operator)&&n!==2&&t.addIssue({code:`custom`,path:[`values`],message:`${e.operator} requires exactly two values`});}function dd(e,t){let n=od[e.field];n&&e.values.forEach((r,i)=>{n.safeParse(r).success||t.addIssue({code:`custom`,path:[`values`,i],message:`${r} is not valid for ${e.field}`});});}function fd(e,t){sd.has(e.field)&&e.values.forEach((e,n)=>{Number.isNaN(Date.parse(e))&&t.addIssue({code:`custom`,path:[`values`,n],message:`${e} is not a valid date`});});}function pd(e,t){cd.has(e.field)&&e.values.forEach((e,n)=>{/^-?\d+$/.test(e)||t.addIssue({code:`custom`,path:[`values`,n],message:`${e} is not a valid integer`});});}const md=`Either locationId or googlePlaceId must be provided`,hd={locationId:mn.optional().meta({examples:[`loc_01jqpjksnsen9vprw95et60t2m`],description:`ID of an existing location. Either locationId or googlePlaceId must be provided.`}),googlePlaceId:na$1().optional().meta({examples:[`ChIJN1t_tDeuEmsRUsoyG83frY4`],description:`Google Place ID to create a new location from. Either locationId or googlePlaceId must be provided.`})};function gd(e){return !!(e.locationId||e.googlePlaceId)}const _d=K$1.omit({id:true,createdAt:true,updatedAt:true,order:true,available:true,sold:true,reserved:true,visibility:true,promoterId:true,eventSlug:true,location:true}).extend({order:Ta$1().optional().meta({examples:[w$1.Section.order],description:`Display order of the section. Lower numbers appear first in listings. Defaults to 0 if not specified`}),visibility:K$1.shape.visibility.optional(),...hd}).refine(gd,{message:md}).meta({description:`Schema for creating a new section within an event venue. Excludes system-generated fields and fields derived from the event`}),vd=K$1.pick({id:true}).extend({eventId:na$1().meta({examples:[w$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`}),yd=K$1.pick({id:true}).extend({eventId:na$1().meta({examples:[w$1.Section.eventId],description:`Unique identifier of the event to verify section belongs to`})}).meta({description:`Schema for retrieving a specific section by ID`}),bd=Ja$1({eventId:K$1.shape.eventId,query:na$1().max(120).optional().meta({examples:[`VIP`],description:`Optional search query. When provided, automatically uses search-backed pagination for full-text search capabilities`}),limit:T$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:na$1().max(768).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`}),xd=B$1(K$1,`sections`),Sd=qa$1({section:K$1}),Cd=K$1.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}).extend({id:na$1().meta({examples:[w$1.Section.id],description:`Unique identifier of the section to update`}),eventId:na$1().meta({examples:[w$1.Section.eventId],description:`Unique identifier of the event to verify section belongs to`}),name:K$1.shape.name.optional(),capacity:Mn().optional(),limit:Nn().optional(),order:K$1.shape.order.optional(),visibility:io$1([`ALWAYS`,`STACKED`,`HIDDEN`]).optional(),locationId:mn.optional().meta({examples:[`loc_01jqpjksnsen9vprw95et60t2m`],description:`ID of an existing location to update to. Either locationId or googlePlaceId can be provided.`}),googlePlaceId:na$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.`}),wd=Bl.safeExtend({admission:z$1.optional().meta({description:`Complete admission details for this order item when available`}),section:K$1.optional().meta({description:`Complete section details for this order item when applicable`})}),Td=io$1([`UPDATED_AT`,`CREATED_AT`,`EVENT_NAME`,`TOTAL`,`STATUS`,`CUSTOMER_NAME`,`PAYMENT_SOURCE`,`COUPON_CODE`,`TICKETS`,`DELIVERY_METHOD`,`CUSTOMER_EMAIL`,`CUSTOMER_PHONE`,`ORDER_ID`]),Ed=io$1([`asc`,`desc`]),Dd=qa$1({mine:ka$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:na$1().optional().meta({description:`Filter orders by team unique identifier`}),eventId:na$1().optional().meta({examples:[`evt_01jps5cgsenjrazw6wswmyspa3`],description:`Filter orders by event unique identifier`}),status:yu.optional().meta({examples:[`SUCCESSFUL`],description:`Filter orders by payment status`}),query:na$1().optional().meta({examples:[`John Doe`],description:`Optional search query to filter orders by customer details. When provided, search-backed pagination is used.`}),includeEventTerms:ka$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.`}),filters:Ga$1(ld).max(10).optional().meta({description:`Optional advanced filters for order lists.`}),sort:Td.optional().meta({examples:[`UPDATED_AT`,`CREATED_AT`,`CUSTOMER_NAME`],description:`Field to sort order lists by.`}),direction:Ed.optional().meta({examples:[`asc`,`desc`],description:"Sort direction for order lists. Defaults to `desc` when omitted."}),from:na$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:na$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:L$1(`orders`),cursor:na$1().optional().meta({examples:[`eyJpZCI6Im9yZF8wMWpwczVjZ3NmZ3ZlNWI1ZzI2NjZreXJ5aCJ9`],description:`Pagination cursor for continuing to fetch subsequent results`})}),Od=B$1(q$1,`orders`),kd=qa$1({items:Ga$1(wd).meta({description:`List of order items with complete pricing and admission details`}),price:$l.meta({description:`Total pricing breakdown for the entire order quote`}),couponCode:Ro.optional().meta({description:`Applied coupon code details if a discount was used in this quote`}),stripeConnectAvailability:ls.optional().meta({description:`Stripe Connect availability metadata for tenant checkout UI.`})}),Ad=qa$1({eventId:na$1().meta({examples:[`evt_01jps5cgsenjrazw6wswmyspa3`],description:`Unique identifier of the event for which to generate a price quote`}),items:Ga$1(Uu).meta({description:`List of items to include in the price quote calculation`}),couponCode:na$1().optional().meta({examples:[`TEST50`],description:`Optional coupon code to apply discount to the quote`})}),jd=qa$1({quote:kd}),Md=qa$1({orderItemId:na$1().meta({examples:[w$1.OrderRefundItem.orderItemId],description:`Identifier of the order item to refund`}),quantity:Da$1().min(1).meta({examples:[w$1.OrderRefundItem.quantity],description:`Number of units to refund for this item`})}),Nd=qa$1({id:gn.meta({examples:[w$1.Order.id],description:`Identifier of the order to refund`}),fullRefund:ka$1().default(false).meta({examples:[false],description:`When true, refunds all remaining refundable items. Mutually exclusive with items.`}),items:Ga$1(Md).optional().meta({description:`Specific items and quantities to refund. Required if fullRefund is false.`}),shippingAmount:Da$1().min(0).optional().meta({examples:[500],description:`Amount of shipping to refund in cents. Cannot exceed remaining refundable shipping.`}),cancelTickets:ka$1().default(true).meta({examples:[true],description:`Whether to cancel tickets associated with refunded items. Defaults to true.`}),notify:ka$1().default(true).meta({examples:[true],description:`Whether to send a refund confirmation email to the customer. Defaults to true.`}),reason:nu.meta({examples:[`CUSTOMER_REQUEST`,`DUPLICATE`,`EVENT_CANCELLED`],description:`Categorized reason for the refund`}),note:na$1().optional().meta({examples:[`Customer requested refund due to schedule conflict`],description:`Free-form notes explaining the refund`}),idempotencyKey:na$1().optional().meta({examples:[`refund_12345_customer_request`],description:`Client-provided key to prevent duplicate refund processing. Recommended for programmatic refunds.`}),metadata:no$1(na$1(),na$1()).optional().meta({examples:[{supportTicket:`#12345`}],description:`Custom key-value pairs passed through to the payment gateway`})}),Pd=qa$1({refund:mu}),Fd=qa$1({id:na$1().meta({examples:[w$1.Order.id],description:`Order ID to resend tickets for`}),email:na$1().email().optional().meta({examples:[`customer@example.com`],description:`Email address to send tickets to. If not provided, uses order.customer.email`})}),Id=qa$1({id:na$1().meta({examples:[w$1.Order.id],description:`Unique identifier of the order to reserve inventory for`}),signature:Ar.meta({description:`HMAC signature for customer access during checkout (16 characters, base64url encoded).`})}),Ld=`ORDER_NOT_RESERVABLE`,Rd=qa$1({code:oo$1(Ld)}),zd=qa$1({order:q$1}),Bd=qa$1({order:q$1.extend({userId:j$1.meta({description:`The verified buyer who owns this purchase`})})}).meta({description:`An order created for the authenticated buyer`});var Vd={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`,`[024-7]\\d{7}`,[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`,`7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}`,[9],0,`0`,0,0,0,0,0,[[`(?:59(?:0(?:2[7-9]|3[3-7]|5[12]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}`],[`(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}`],[`80[0-5]\\d{6}`],[`8[129]\\d{7}`],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)?`,`(?:[2-7]\\d\\d|8001)\\d{5}`,[8,9],[[`(\\d)(\\d{7})`,`$1 $2`,[`[23]|4[46]|50`]],[`(\\d{8})`,`$1`,[`[5-7]`]],[`(\\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`,`8776\\d{4}|(?:[27]\\d|61)\\d{6}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[26-8]`]]]],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-57-9]\\d)\\d{7}`,[9],[[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[1-57-9]`],`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`,`(?:694\\d|7093)\\d{5}|(?:59|[89]\\d)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[5-7]|80[6-9]|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{8}|800\\d{5,6}`,[8,9],[[`(\\d{3})(\\d{5})`,`$1 $2`,[`8`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[2358]`],`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`,`7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[5-79]|80[6-9]`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`8`],`0$1`]],`0`,0,0,0,0,0,[[`(?:59(?:0(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)|87\\d)|80[6-9]\\d\\d)\\d{4}`],[`(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}`],[`80[0-5]\\d{6}`],[`8[129]\\d{7}`],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]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67)[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(?:(?: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)|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(?:3171|5[15][2-6]|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|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]|3[129]|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(?:[23569]|8[0-57-9])|8[1-6])|7(?:1(?:[013-8]|9[6-9])|3(?:17|2[0-49]|9[2-57])|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])\\d|7(?:[23569]\\d|8[0-57-9])|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|3(?:2[0-49]|9[2-57])|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`,`8\\d{13}|[78]\\d{9}`,[10,14],0,`8`,0,0,0,0,`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`,[`20`]],[`(\\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]`]],[`(\\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`,[`20`]]],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`,`7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}`,[9],0,`0`,0,0,0,0,0,[[`(?:59(?:0(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}`],[`(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}`],[`80[0-5]\\d{6}`],[`8[129]\\d{7}`],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`,[`11|2[16]`],`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`,`7091\\d{5}|(?:[56]9|[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`,[`30|(?: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`,`30|(?: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`,`[78]\\d{8}|[2-9]\\d{5}`,[6,9],[[`(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`[2-9]`],`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,[[`2631[0-6]\\d{4}|26(?:2\\d|30|88)\\d{5}`],[`(?: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,`[3489]`,0,`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{2})(\\d{5,7})`,`$1 $2`,[`1|28|9[2-9]`]],[`(\\d)(\\d{7})`,`$1 $2`,[`[267]|904`]],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[346-9]`]]],`0`],SR:[`597`,`00`,`(?:[2-5]|[6-9]\\d)\\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|[3689]\\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-79]`],`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{3})(\\d{5})`,`$1 $2`,[`826`],`0$1`],[`(\\d{3})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`83`],`0$1`],[`(\\d{2})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`82`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[25]0|37|49|8[09]`],`0$1`],[`(\\d)(\\d{3,4})(\\d{4})`,`$1 $2 $3`,[`[23568]|4(?:0[02-48]|[1-478])|7[1-9]`,`[23568]|4(?:0[2-48]|[1-478])|(?: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-2478]|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(?:2[02]|[89])`],0,1],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`1[26]|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`,`(?:639\\d|7093)\\d{5}|(?:26|80|9\\d)\\d{7}`,[9],0,`0`,0,0,0,0,0,[[`26(?:89\\d|9(?: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|5[12]`]],[`(\\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})|5(?:0\\d{3}|2[0-2]))\\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 Hd(e,t){var n=Array.prototype.slice.call(t);return n.push(Vd),e.apply(this,n)}var Ud={}.constructor;function Wd(e){return e!=null&&e.constructor===Ud}function Gd(e){"@babel/helpers - typeof";return Gd=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},Gd(e)}function Kd(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 qd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Kd(Object(n),true).forEach(function(t){Jd(e,t,n[t]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t));});}return e}function Jd(e,t,n){return (t=Yd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true}):e[t]=n,e}function Yd(e){var t=Xd(e,`string`);return Gd(t)==`symbol`?t:t+``}function Xd(e,t){if(Gd(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Gd(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return (t===`string`?String:Number)(e)}function Zd(e,t){return nf(e)||tf(e,t)||$d(e,t)||Qd()}function Qd(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
89
+ 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 ef(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)?ef(e,t):void 0}}function ef(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 tf(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 nf(e){if(Array.isArray(e))return e}function rf(e){var t=Zd(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=qd({defaultCountry:r},s));else if(Wd(r))i?(s=r,c=i):c=r;else throw Error(`Invalid second argument: ${r}`);return {text:o,options:s,metadata:c}}var Y$1=`0-90-9٠-٩۰-۹`,af=`-‐-―−ー-//.. \xA0­​⁠ ()()[]\\[\\]~⁓∼~`,of=`++`;function sf(e){"@babel/helpers - typeof";return sf=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},sf(e)}function lf(e,t,n){return Object.defineProperty(e,"prototype",{writable:false}),e}function ff(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function pf(e,t,n){return t=Sf(t),mf(e,yf()?Reflect.construct(t,n||[],Sf(e).constructor):t.apply(e,n))}function mf(e,t){if(t&&(sf(t)==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return hf(e)}function hf(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function gf(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&&xf(e,t);}function _f(e){var t=typeof Map==`function`?new Map:void 0;return _f=function(e){if(e===null||!bf(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 vf(e,arguments,Sf(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:false,writable:true,configurable:true}}),xf(n,e)},_f(e)}function vf(e,t,n){if(yf())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&xf(i,n.prototype),i}function yf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch{}return (yf=function(){return !!e})()}function bf(e){try{return Function.toString.call(e).indexOf(`[native code]`)!==-1}catch{return typeof e==`function`}}function xf(e,t){return xf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xf(e,t)}function Sf(e){return Sf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Sf(e)}var X$2=function(e){function t(e){var n;return ff(this,t),n=pf(this,t,[e]),Object.setPrototypeOf(n,t.prototype),n.name=n.constructor.name,n}return gf(t,e),lf(t)}(_f(Error));function Cf(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 wf=/^\d+$/;function Tf(e){return wf.test(e)}function Ef(e){"@babel/helpers - typeof";return Ef=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},Ef(e)}function Df(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Of(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,Af(r.key),r);}}function kf(e,t,n){return t&&Of(e.prototype,t),Object.defineProperty(e,"prototype",{writable:false}),e}function Af(e){var t=jf(e,`string`);return Ef(t)==`symbol`?t:t+``}function jf(e,t){if(Ef(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ef(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return (String)(e)}var Mf=`1.2.0`,Nf=`1.7.35`,Pf=` ext. `,Z$1=function(){function e(t){Df(this,e),Bf(t),this.metadata=t,Wf.call(this,t);}return kf(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){var n,r;if(e&&(Tf(e)?r=e:n=e),t&&(r=t),n&&n!==`001`){var i=this.getCountryMetadata(n);if(!i)throw Error(`Unknown country: ${n}`);this.numberingPlan=new Ff(i,this);}else if(r){if(!this.hasCallingCode(r))throw Error(`Unknown calling code: ${r}`);this.numberingPlan=new Ff(this.getNumberingPlanMetadata(r),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}}])}(),Ff=function(){function e(t,n){Df(this,e),this.globalMetadataObject=n,this.metadata=t,Wf.call(this,n.metadata);}return kf(e,[{key:`callingCode`,value:function(){return this.metadata[0]}},{key:`_getDefaultCountryMetadataForThisCallingCode`,value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:`getDefaultCountryMetadataForRegion`,value:function(){return this._getDefaultCountryMetadataForThisCallingCode()}},{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._getDefaultCountryMetadataForThisCallingCode())||[]).map(function(t){return new If(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._getDefaultCountryMetadataForThisCallingCode())}},{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._getDefaultCountryMetadataForThisCallingCode())}},{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()&&zf(this.types(),e))return new Rf(zf(this.types(),e),this)}},{key:`ext`,value:function(){return this.v1||this.v2?Pf:this.metadata[13]||Pf}}])}(),If=function(){function e(t,n){Df(this,e),this._format=t,this.metadata=n;}return kf(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()&&!Lf.test(this.nationalPrefixFormattingRule()))}},{key:`internationalFormat`,value:function(){return this._format[5]||this.format()}}])}(),Lf=/^\(?\$1\)?$/,Rf=function(){function e(t,n){Df(this,e),this.type=t,this.metadata=n;}return kf(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 zf(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 Bf(e){if(!e)throw Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!Wd(e)||!Wd(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 ${Wd(e)?`an object of shape: { `+Object.keys(e).join(`, `)+` }`:`a `+Vf(e)+`: `+e}.`)}var Vf=function(e){return Ef(e)};function Hf(e,t){var n=new Z$1(t);if(n.hasCountry(e))return n.selectNumberingPlan(e).countryCallingCode();throw Error(`Unknown country: ${e}`)}function Uf(e,t){return t.countries.hasOwnProperty(e)}function Wf(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?Cf(t,Mf)===-1?this.v2=true:Cf(t,Nf)===-1?this.v3=true:this.v4=true:this.v1=true;}var Gf=`;ext=`,Kf=function(e){return `([${Y$1}]{1,${e}})`};function qf(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=Gf+Kf(t),m=a+c+o+Kf(t)+s,h=a+l+o+Kf(r)+s,g=u+Kf(i)+`#`,_=d+f+o+Kf(n)+s,v=d+`(?:,)+`+o+Kf(r)+s;return p+`|`+m+`|`+h+`|`+g+`|`+_+`|`+v}var Jf$1=`[`+Y$1+`]{2}`,Yf$1=`[`+of+`]{0,1}(?:[`+af+`]*[`+Y$1+`]){3,}[`+af+Y$1+`]*`,Xf$1=RegExp(`^[`+of+`]{0,1}(?:[`+af+`]*[`+Y$1+`]){1,2}$`,`i`),Zf$1=Yf$1+`(?:`+qf()+`)?`,Qf$1=RegExp(`^`+Jf$1+`$|^`+Zf$1+`$`,`i`);function $f$1(e){return e.length>=2&&Qf$1.test(e)}function ep$1(e){return Xf$1.test(e)}var tp$1=RegExp(`(?:`+qf()+`)$`,`i`);function np$1(e){var t=e.search(tp$1);if(t<0)return {};for(var n=e.slice(0,t),r=e.match(tp$1),i=1;i<r.length;){if(r[i])return {number:n,ext:r[i]};i++;}}var rp$1={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 ip$1(e){return rp$1[e]}function ap$1(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=op$1(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.
90
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function op$1(e,t){if(e){if(typeof e==`string`)return sp$1(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)?sp$1(e,t):void 0}}function sp$1(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 cp$1(e){for(var t=``,n=ap$1(e.split(``)),r;!(r=n()).done;){var i=r.value;t+=lp$1(i,t)||``;}return t}function lp$1(e,t,n){if(e===`+`){if(t){return}return `+`}return ip$1(e)}function mp$1(e,t,n){return hp$1(e,void 0,t,n)}function hp$1(e,t,n,r){n&&(r=new Z$1(r.metadata),r.selectNumberingPlan(n));var i=r.type(t),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 gp$1(e,t,n){t===void 0&&(t={});var r=new Z$1(n);if(t.v2){if(!e.countryCallingCode)throw Error(`Invalid phone number object passed`);r.selectNumberingPlan(e.country||e.countryCallingCode);}else {if(!e.phone)return false;if(e.country){if(!r.hasCountry(e.country))throw Error(`Unknown country: ${e.country}`);r.selectNumberingPlan(e.country);}else {if(!e.countryCallingCode)throw Error(`Invalid phone number object passed`);r.selectNumberingPlan(e.countryCallingCode);}}if(r.possibleLengths())return _p$1(e.phone||e.nationalNumber,r);if(e.countryCallingCode&&r.isNonGeographicCallingCode(e.countryCallingCode))return true;throw Error(`Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.`)}function _p$1(e,t){switch(mp$1(e,void 0,t)){case `IS_POSSIBLE`:return true;default:return false}}function Q$2(e,t){return e||=``,RegExp(`^(?:`+t+`)$`).test(e)}function vp$1(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=yp$1(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.
91
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yp$1(e,t){if(e){if(typeof e==`string`)return bp(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)?bp(e,t):void 0}}function bp(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 xp=[`MOBILE`,`PREMIUM_RATE`,`TOLL_FREE`,`SHARED_COST`,`VOIP`,`PERSONAL_NUMBER`,`PAGER`,`UAN`,`VOICEMAIL`];function Sp(e,t,n){if(t||={},!(!e.country&&!e.countryCallingCode)){var r=new Z$1(n);r.selectNumberingPlan(e.country||e.countryCallingCode);var i=t.v2?e.nationalNumber:e.phone;if(Q$2(i,r.nationalNumberPattern())){if(Cp(i,`FIXED_LINE`,r))return r.type(`MOBILE`)&&r.type(`MOBILE`).pattern()===``||!r.type(`MOBILE`)||Cp(i,`MOBILE`,r)?`FIXED_LINE_OR_MOBILE`:`FIXED_LINE`;for(var a=vp$1(xp),o;!(o=a()).done;){var s=o.value;if(Cp(i,s,r))return s}}}}function Cp(e,t,n){var r=n.type(t);return !r||!r.pattern()||r.possibleLengths()&&r.possibleLengths().indexOf(e.length)<0?false:Q$2(e,r.pattern())}function wp(e,t,n){t||={};var r=new Z$1(n);return r.selectNumberingPlan(e.country||e.countryCallingCode),r.hasTypes()?Sp(e,t,r.metadata)!==void 0:Q$2(t.v2?e.nationalNumber:e.phone,r.nationalNumberPattern())}var Tp$1=/^[A-Z]{2}$/;function Ep$1(e){return Tp$1.test(e)}var Dp$1=false;function Op$1(e,t){var n,r,i=new Z$1(t);return Ep$1(e)?(n=e,i.selectNumberingPlan(n),r=i.countryCallingCode()):(r=e,Dp$1),{country:n,callingCode:r}}function kp$1(e,t,n){var r=new Z$1(n).getCountryCodesForCallingCode(e);return r?r.filter(function(e){return Ap$1(t,e,n)}):[]}function Ap$1(e,t,n){var r=new Z$1(n);return r.selectNumberingPlan(t),r.numberingPlan.possibleLengths().indexOf(e.length)>=0}var jp$1=RegExp(`([`+Y$1+`])`);function Mp$1(e,t,n,r){if(t){var i=new Z$1(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(jp$1);if(!(o&&o[1]!=null&&o[1].length>0&&o[1]===`0`))return e}}}function Np$1(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 Pp$1(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=Fp$1(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.
92
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fp$1(e,t){if(e){if(typeof e==`string`)return Ip$1(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)?Ip$1(e,t):void 0}}function Ip$1(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 Lp$1(e,t,n){for(var r=new Z$1(n),i=Pp$1(t),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(Sp({phone:e,country:o},void 0,r.metadata))return o}}function zp$1(e,t){var n=t.nationalNumber,r=t.metadata;var i=r.getCountryCodesForCallingCode(e);if(i)return i.length===1?i[0]:Lp$1(n,i,r.metadata)}function Bp$1(e,t,n){var r=Np$1(e,n),i=r.carrierCode,a=r.nationalNumber;return a!==e&&(!Vp$1(e,a,n)||n.numberingPlan.possibleLengths()&&(t||=zp$1(n.numberingPlan.callingCode(),{nationalNumber:a,metadata:n}),!Hp$1(a,t,n)))?{nationalNumber:e}:{nationalNumber:a,carrierCode:i}}function Vp$1(e,t,n){return !(Q$2(e,n.nationalNumberPattern())&&!Q$2(t,n.nationalNumberPattern()))}function Hp$1(e,t,n){switch(mp$1(e,t,n)){case `TOO_SHORT`:case `INVALID_LENGTH`:return false;default:return true}}function Up$1(e,t,n,r,i){if(!(n||r))return {number:e};var a=n?Hf(n,i):r;if(e.indexOf(a)===0){var o=new Z$1(i);o.selectNumberingPlan(n||r);var s=e.slice(a.length),c=Bp$1(s,void 0,o).nationalNumber,l=Bp$1(e,void 0,o).nationalNumber;if(!Q$2(l,o.nationalNumberPattern())&&Q$2(c,o.nationalNumberPattern())||mp$1(l,void 0,o)===`TOO_LONG`)return {countryCallingCode:a,number:s}}return {number:e}}function Wp$1(e,t,n,r,i){if(!e)return {};var a;if(e[0]!==`+`){var o=Mp$1(e,n,r,i);if(o&&o!==e)a=true,e=`+`+o;else {if(n||r){var s=Up$1(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 {};for(var u=new Z$1(i),d=2;d-1<=3&&d<=e.length;){var f=e.slice(1,d);if(u.hasCallingCode(f))return u.selectNumberingPlan(f),{countryCallingCodeSource:a?`FROM_NUMBER_WITH_IDD`:`FROM_NUMBER_WITH_PLUS_SIGN`,countryCallingCode:f,number:e.slice(d)};d++;}return {}}function Gp$1(e){return e.replace(RegExp(`[${af}]+`,`g`),` `).trim()}var Kp$1=/(\$\d)/;function qp$1(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(Kp$1,t.nationalPrefixFormattingRule()):t.format());return r?Gp$1(a):a}var Jp$1=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function Yp$1(e,t,n){var r=new Z$1(n);if(r.selectNumberingPlan(e||t),r.defaultIDDPrefix())return r.defaultIDDPrefix();if(Jp$1.test(r.IDDPrefix()))return r.IDDPrefix()}function Xp$1(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 Zp$1={formatExtension:function(e,t,n){return `${e}${n.ext()}${t}`}};function Qp$1(e,t,n,r){n=n?rm$1({},Zp$1,n):Zp$1;var i=new Z$1(r);if(e.country&&e.country!==`001`){if(!i.hasCountry(e.country))throw Error(`Unknown country: ${e.country}`);i.selectNumberingPlan(e.country);}else if(e.countryCallingCode)i.selectNumberingPlan(e.countryCallingCode);else return e.phone||``;var a=i.countryCallingCode(),o=n.v2?e.nationalNumber:e.phone,s;switch(t){case `NATIONAL`:return o?(s=$p$1(o,e.carrierCode,`NATIONAL`,i,n),tm$1(s,e.ext,i,n.formatExtension)):``;case `INTERNATIONAL`:return o?(s=$p$1(o,null,`INTERNATIONAL`,i,n),s=`+${a} ${s}`,tm$1(s,e.ext,i,n.formatExtension)):`+${a}`;case `E.164`:return `+${a}${o}`;case `RFC3966`:return Xp$1({number:`+${a}${o}`,ext:e.ext});case `IDD`:if(!n.fromCountry)return;var c=nm$1(o,e.carrierCode,a,n.fromCountry,i);return c?tm$1(c,e.ext,i,n.formatExtension):void 0;default:throw Error(`Unknown "format" argument passed to "formatNumber()": "${t}"`)}}function $p$1(e,t,n,r,i){var a=em$1(r.formats(),e);return a?qp$1(e,a,{useInternationalFormat:n===`INTERNATIONAL`,withNationalPrefix:!(a.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&i&&i.nationalPrefix===false)}):e}function em$1(e,t){return im$1(e,function(e){if(e.leadingDigitsPatterns().length>0){var n=e.leadingDigitsPatterns()[e.leadingDigitsPatterns().length-1];if(t.search(n)!==0)return false}return Q$2(t,e.pattern())})}function tm$1(e,t,n,r){return t?r(e,t,n):e}function nm$1(e,t,n,r,i){if(Hf(r,i.metadata)===n){var a=$p$1(e,t,`NATIONAL`,i);return n===`1`?n+` `+a:a}var o=Yp$1(r,void 0,i.metadata);if(o)return `${o} ${n} ${$p$1(e,null,`INTERNATIONAL`,i)}`}function rm$1(){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 im$1(e,t){for(var n=0;n<e.length;){if(t(e[n]))return e[n];n++;}}function am$1(e){"@babel/helpers - typeof";return am$1=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},am$1(e)}function om$1(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 sm$1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?om$1(Object(n),true).forEach(function(t){cm$1(e,t,n[t]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):om$1(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t));});}return e}function cm$1(e,t,n){return (t=fm$1(t))in e?Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true}):e[t]=n,e}function lm$1(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function um$1(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,fm$1(r.key),r);}}function dm$1(e,t,n){return t&&um$1(e.prototype,t),Object.defineProperty(e,"prototype",{writable:false}),e}function fm$1(e){var t=pm$1(e,`string`);return am$1(t)==`symbol`?t:t+``}function pm$1(e,t){if(am$1(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(am$1(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return (String)(e)}var mm$1=function(){function e(t,n,r){if(lm$1(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(Wd(n)&&Wd(n.countries)){r=n;var i=t;if(!hm$1.test(i))throw Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var a=Wp$1(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");Bf(r);var s=Op$1(t,r),c=s.country,l=s.callingCode;this.country=c,this.countryCallingCode=l,this.nationalNumber=n,this.number=`+`+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return r};}return dm$1(e,[{key:`setExt`,value:function(e){this.ext=e;}},{key:`getPossibleCountries`,value:function(){return this.country?[this.country]:kp$1(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:`isPossible`,value:function(){return gp$1(this,{v2:true},this.getMetadata())}},{key:`isValid`,value:function(){return wp(this,{v2:true},this.getMetadata())}},{key:`isNonGeographic`,value:function(){return new Z$1(this.getMetadata()).isNonGeographicCallingCode(this.countryCallingCode)}},{key:`isEqual`,value:function(e){return this.number===e.number&&this.ext===e.ext}},{key:`getType`,value:function(){return Sp(this,{v2:true},this.getMetadata())}},{key:`format`,value:function(e,t){return Qp$1(this,e,t?sm$1(sm$1({},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)}}])}(),hm$1=/^\+\d+$/,gm$1=`([`+Y$1+`]|[\\-\\.\\(\\)]?)`,_m$1=`^\\+`+gm$1+`*[`+Y$1+`]`+gm$1+`*$`,vm$1=new RegExp(_m$1,`g`),ym$1=Y$1,bm$1=`[`+ym$1+`]+((\\-)*[`+ym$1+`])*`,xm$1=`[a-zA-Z]+((\\-)*[`+ym$1+`])*`,Sm$1=`^(`+bm$1+`\\.)*`+xm$1+`\\.?$`,Cm$1=new RegExp(Sm$1,`g`),wm$1=`tel:`,Tm$1=`;phone-context=`,Em$1=`;isub=`;function Dm$1(e){var t=e.indexOf(Tm$1);if(t<0)return null;var n=t+Tm$1.length;if(n>=e.length)return ``;var r=e.indexOf(`;`,n);return r>=0?e.substring(n,r):e.substring(n)}function Om$1(e){return e===null?true:e.length===0?false:vm$1.test(e)||Cm$1.test(e)}function km$1(e,t){var n=t.extractFormattedPhoneNumber,r=Dm$1(e);if(!Om$1(r))throw new X$2(`NOT_A_NUMBER`);var i;if(r===null)i=n(e)||``;else {i=``,r.charAt(0)===`+`&&(i+=r);var a=e.indexOf(wm$1),o=a>=0?a+wm$1.length:0,s=e.indexOf(Tm$1);i+=e.substring(o,s);}var c=i.indexOf(Em$1);if(c>0&&(i=i.substring(0,c)),i!==``)return i}var Am$1=250,jm$1=RegExp(`[`+of+Y$1+`]`),Mm$1=RegExp(`[^`+Y$1+`#]+$`),Nm$1=false;function Pm$1(e,t,n){t||={};var r=new Z$1(n);if(t.defaultCountry&&!r.hasCountry(t.defaultCountry))throw t.v2?new X$2(`INVALID_COUNTRY`):Error(`Unknown country: ${t.defaultCountry}`);var i=Im$1(e,t.v2,t.extract),a=i.number,o=i.ext,s=i.error;if(!a){if(t.v2)throw s===`TOO_SHORT`?new X$2(`TOO_SHORT`):new X$2(`NOT_A_NUMBER`);return {}}var c=Rm$1(a,t.defaultCountry,t.defaultCallingCode,r),l=c.country,u=c.nationalNumber,d=c.countryCallingCode,f=c.countryCallingCodeSource,p=c.carrierCode;if(!r.hasSelectedNumberingPlan()){if(t.v2)throw new X$2(`INVALID_COUNTRY`);return {}}if(!u||u.length<2){if(t.v2)throw new X$2(`TOO_SHORT`);return {}}if(u.length>17){if(t.v2)throw new X$2(`TOO_LONG`);return {}}if(t.v2){var m=new mm$1(d,u,r.metadata);return l&&(m.country=l),p&&(m.carrierCode=p),o&&(m.ext=o),m.__countryCallingCodeSource=f,m}var h=(t.extended?r.hasSelectedNumberingPlan():l)?Q$2(u,r.nationalNumberPattern()):false;return t.extended?{country:l,countryCallingCode:d,carrierCode:p,valid:h,possible:h?true:!!(t.extended===true&&r.possibleLengths()&&_p$1(u,r)),phone:u,ext:o}:h?Lm$1(l,u,o):{}}function Fm$1(e,t,n){if(e){if(e.length>Am$1){if(n)throw new X$2(`TOO_LONG`);return}if(t===false)return e;var r=e.search(jm$1);if(!(r<0))return e.slice(r).replace(Mm$1,``)}}function Im$1(e,t,n){var r=km$1(e,{extractFormattedPhoneNumber:function(e){return Fm$1(e,n,t)}});if(!r)return {};if(!$f$1(r))return ep$1(r)?{error:`TOO_SHORT`}:{};var i=np$1(r);return i.ext?i:{number:r}}function Lm$1(e,t,n){var r={country:e,phone:t};return n&&(r.ext=n),r}function Rm$1(e,t,n,r){var i=Wp$1(cp$1(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))t?(c=t,r.selectNumberingPlan(t),o=r.numberingPlan.callingCode()):(r.selectNumberingPlan(n),o=n,Nm$1);else return {};if(!s)return {countryCallingCodeSource:a,countryCallingCode:o};var l=Bp$1(cp$1(s),void 0,r),u=l.nationalNumber,d=l.carrierCode,f=zp$1(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 zm$1(e){"@babel/helpers - typeof";return zm$1=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},zm$1(e)}function Bm$1(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 Vm$1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Bm$1(Object(n),true).forEach(function(t){Hm$1(e,t,n[t]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bm$1(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t));});}return e}function Hm$1(e,t,n){return (t=Um$1(t))in e?Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true}):e[t]=n,e}function Um$1(e){var t=Wm$1(e,`string`);return zm$1(t)==`symbol`?t:t+``}function Wm$1(e,t){if(zm$1(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(zm$1(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return (t===`string`?String:Number)(e)}function Gm$1(e,t,n){return Pm$1(e,Vm$1(Vm$1({},t),{},{v2:true}),n)}function Km$1(e){"@babel/helpers - typeof";return Km$1=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},Km$1(e)}function qm$1(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 Jm$1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?qm$1(Object(n),true).forEach(function(t){Ym$1(e,t,n[t]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qm$1(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t));});}return e}function Ym$1(e,t,n){return (t=Xm$1(t))in e?Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true}):e[t]=n,e}function Xm$1(e){var t=Zm$1(e,`string`);return Km$1(t)==`symbol`?t:t+``}function Zm$1(e,t){if(Km$1(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Km$1(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return (t===`string`?String:Number)(e)}function Qm$1(e,t,n){t&&t.defaultCountry&&!Uf(t.defaultCountry,n)&&(t=Jm$1(Jm$1({},t),{},{defaultCountry:void 0}));try{return Gm$1(e,t,n)}catch(e){if(!(e instanceof X$2))throw e}}function $m$1(e){"@babel/helpers - typeof";return $m$1=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},$m$1(e)}function eh$1(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 th$1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?eh$1(Object(n),true).forEach(function(t){nh$1(e,t,n[t]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eh$1(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t));});}return e}function nh$1(e,t,n){return (t=rh$1(t))in e?Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true}):e[t]=n,e}function rh$1(e){var t=ih$1(e,`string`);return $m$1(t)==`symbol`?t:t+``}function ih$1(e,t){if($m$1(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if($m$1(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return (t===`string`?String:Number)(e)}function ah$1(){var e=rf(arguments),t=e.text,n=e.options,r=e.metadata;n=th$1(th$1({},n),{},{extract:false});var i=Qm$1(t,n,r);return i&&i.isValid()||false}function oh$1(){return Hd(ah$1,arguments)}const sh$1=Yu.omit({eventId:true,channel:true,analytics:true}).partial().extend({id:na$1().meta({examples:[w$1.Order.id],description:`Unique identifier of the order to update`}),signature:Ar.meta({description:`HMAC signature for customer access during checkout (16 characters, base64url encoded). Required for all order updates.`}),items:Ga$1(Uu).min(1).optional().meta({description:`Updated list of items for the order. Requires signature. Prices will be recalculated and payment intent updated.`}),customer:qa$1({firstName:na$1().meta({examples:[w$1.Customer.firstName],description:`Updated first name of the customer`}).optional(),lastName:na$1().meta({examples:[w$1.Customer.lastName],description:`Updated last name of the customer`}).optional(),email:ia$1().meta({examples:[w$1.Customer.email],description:`Updated email address of the customer`}).optional(),phone:na$1().refine(e=>!e||oh$1(e),{message:`Phone must be in E.164 format (e.g., +61412345678)`}).meta({examples:[w$1.Customer.phone],description:`Updated phone number in E.164 format (e.g., +61412345678)`}).optional(),deliveryMethod:Zu.optional()}).optional().meta({description:`Updated customer information for the order. All fields are optional for partial updates.`}),marketingConsent:Vl.optional().meta({description:`Marketing opt-in choices captured during checkout.`})}),ch$1=qa$1({id:na$1().meta({examples:[w$1.Order.id],description:`Unique identifier of the order`}),noteId:na$1().meta({examples:[`tl_1234567890_abc123`],description:`Unique identifier of the timeline note to update`}),note:na$1().min(1).max(1e3).meta({examples:[`Updated: Customer confirmed special seating arrangements`],description:`Updated note text content (1-1000 characters)`})});qa$1({success:ka$1().meta({description:`Whether the payout approval was successful`}),message:na$1().optional().meta({description:`Optional message about the approval result`}),payoutId:na$1().meta({description:`ID of the payout that was approved`})});const uh$1=qa$1({payoutId:na$1().meta({examples:[w$1.Payout.id],description:`Unique identifier of the payout for which to retrieve the detailed breakdown of orders and financial calculations.`})}),dh$1=io$1([`DISPUTE_REVERSAL_CREDIT`,`REFUND_REVERSAL_CREDIT`]),fh$1=io$1([`AIRWALLEX_SETTLEMENT_CREDIT`]),ph$1=qa$1({source:fh$1,kind:dh$1,adjustmentId:na$1(),adjustmentUniqueKey:na$1(),sourceKey:na$1(),sourcePayoutId:na$1(),settlementId:na$1(),transactionId:na$1().optional(),paymentIntentId:na$1().optional(),paymentAttemptId:na$1().optional(),createdActionPublishedAt:Pi$1().optional()}),mh$1=qa$1({id:na$1().readonly().meta({examples:[w$1.PayoutDeduction.id],description:`Unique identifier for this deduction record.`}),createdAt:Pi$1().readonly().meta({examples:[w$1.PayoutDeduction.createdAt],description:`Timestamp in ISO 8601 format when this deduction was created.`}),updatedAt:Pi$1().readonly().meta({examples:[w$1.PayoutDeduction.updatedAt],description:`Timestamp in ISO 8601 format when this deduction was last updated.`}),amount:Da$1().max(0).meta({examples:[w$1.PayoutDeduction.amount],description:`Deprecated legacy deduction amount in cents. Negative values reduce the payout.`}),currency:D$1.meta({examples:[w$1.PayoutDeduction.currency],description:`Currency code in ISO 4217 format for the deduction amount.`}),description:na$1().meta({examples:[w$1.PayoutDeduction.description],description:`Human-readable description explaining the reason for this legacy deduction.`}),gateway:na$1().meta({examples:[w$1.PayoutDeduction.gateway],description:`Payment gateway identifier where this legacy deduction was processed.`}),gatewayId:na$1().meta({examples:[w$1.PayoutDeduction.gatewayId],description:`Unique identifier assigned by the payment gateway for this legacy deduction transaction.`}),beneficiary:na$1().meta({examples:[w$1.PayoutDeduction.beneficiary],description:`Human-readable name of the beneficiary account from which this legacy deduction was taken.`}),beneficiaryId:na$1().meta({examples:[w$1.PayoutDeduction.beneficiaryId],description:`Unique identifier of the beneficiary account from which this legacy deduction was taken.`}),transferId:na$1().optional().meta({description:`Optional reference to a transfer record when this legacy deduction resulted in money being moved to a future payout.`}),transferPayoutId:na$1().optional().meta({description:`Optional reference to a future payout where the legacy deducted amount was applied.`})}),hh$1=qa$1({id:na$1().meta({examples:[w$1.Event.id],description:`Unique identifier for the event associated with this payout.`}),name:na$1().meta({examples:[w$1.Event.name],description:`Human-readable name of the event.`}),slug:na$1().meta({examples:[w$1.Event.slug],description:`URL-friendly slug identifier for the event.`}),location:na$1().optional().meta({examples:[w$1.Event.location.name],description:`Optional human-readable location name where the event takes place.`})}),gh$1=qa$1({net:Da$1().meta({examples:[w$1.Payout.price.net],description:`Total amount to pay to promoter.
93
+ Ticket and shipping revenue after organiser-funded refunds and disputes, excluding booking and SMS fees.`}),total:Da$1().meta({examples:[w$1.Payout.price.total],description:`Customer charges including booking, shipping and SMS fees.
94
+ Calculated as: gross + discount + sms`}),gross:Da$1().min(0).meta({examples:[w$1.Payout.price.gross],description:`Total amount before refunds, disputes and discounts.
95
+ Calculated as: base + booking + shipping`}),base:Da$1().min(0).meta({examples:[w$1.Payout.price.base],description:`Total value of tickets.`}),booking:Da$1().min(0).meta({examples:[w$1.Payout.price.booking],description:`Total value of booking fees (non-refundable).`}),shipping:Da$1().min(0).meta({examples:[w$1.Payout.price.shipping],description:`Total value of shipping.`}),sms:Da$1().min(0).default(0).meta({examples:[w$1.Payout.price.sms],description:`Total SMS delivery fees collected in cents (owed to Session Services, not the event organiser).`}),refunded:Da$1().max(0).meta({examples:[w$1.Payout.price.refunded],description:`Total value of refunds (negative value).`}),discount:Da$1().max(0).meta({examples:[w$1.Payout.price.discount],description:`Total value of discounts (negative value).`}),gateway:Da$1().meta({examples:[w$1.Payout.price.gateway],description:`Total value of absorbed payment gateway fees. Negative values are charges; positive values are reversals.`}),dispute:Da$1().meta({examples:[w$1.Payout.price.dispute],description:`Total value of non-absorbed payment gateway fees. Negative values are charges; positive values are reversals.`}),deductions:Da$1().max(0).optional().meta({examples:[w$1.Payout.price.deductions],description:`Deprecated total value of legacy payout-level deductions. New recovery amounts are exposed through payout adjustments.`}),currency:D$1.meta({examples:[w$1.Payout.price.currency],description:`Currency code in ISO 4217 format.`})}),_h$1=io$1([`CREATED`,`APPROVED`,`REJECTED`,`PROCESSING`,`PAID`,`FAILED`,`CANCELLED`,`NOTE`]),vh$1=gu(_h$1,{createdAtExamples:[w$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`]}),yh$1=qa$1({id:na$1().meta({examples:[w$1.PayoutTransfer.id],description:`Unique identifier for this transfer record.`}),createdAt:Pi$1().meta({examples:[w$1.PayoutTransfer.createdAt],description:`Timestamp in ISO 8601 format when this transfer was created.`}),kind:io$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:Da$1().min(0).meta({examples:[w$1.PayoutTransfer.amount],description:`Transfer amount in cents. Positive values represent money being transferred to the beneficiary.`}),currency:D$1.meta({examples:[w$1.PayoutTransfer.currency],description:`Currency code in ISO 4217 format for the transfer amount.`}),fee:Da$1().min(0).meta({examples:[w$1.PayoutTransfer.fee],description:`Gateway processing fee for this transfer in cents. This fee is deducted from the transfer amount.`}),feeCurrency:D$1.meta({examples:[w$1.PayoutTransfer.feeCurrency],description:`Currency code in ISO 4217 format for the gateway fee.`}),reference:na$1().meta({examples:[w$1.PayoutTransfer.reference],description:`External reference identifier for tracking this transfer with the payment gateway.`}),gateway:io$1([`AIRWALLEX`,`STRIPE`]).meta({examples:[`AIRWALLEX`],description:`Payment gateway used to process this transfer.`}),gatewayId:na$1().meta({examples:[w$1.PayoutTransfer.gatewayId],description:`Unique identifier assigned by the payment gateway for this transfer.`}),beneficiary:na$1().meta({examples:[w$1.PayoutTransfer.beneficiary],description:`Human-readable name of the beneficiary receiving this transfer.`}),beneficiaryId:na$1().meta({examples:[w$1.PayoutTransfer.beneficiaryId],description:`Unique identifier of the beneficiary account receiving this transfer.`}),status:na$1().optional().meta({examples:[`SCHEDULED`],description:`Transfer status from the payment gateway (e.g. SCHEDULED, IN_PROGRESS, COMPLETED).`}),settlementAmount:Da$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:D$1.optional().meta({examples:[`USD`],description:`Currency code in ISO 4217 format for the settlement amount. Present only for cross-currency transfers.`}),deductionId:na$1().optional().meta({description:`Deprecated optional reference to a legacy deduction record.`}),deductionPayoutId:na$1().optional().meta({description:`Deprecated optional reference to the payout that originated a legacy deduction transfer.`})}),bh$1=io$1([`UPCOMING`,`FAILED`,`PROCESSING`,`PAID`,`CANCELLED`]),Sh$1=io$1([`AIRWALLEX`,`STRIPE`,`MANUAL`]),wh$1=io$1([`DAILY`,`WEEKLY`,`AFTER_EVENT`,`ON_DEMAND`]),$$2=qa$1({id:na$1().readonly().meta({examples:[w$1.Payout.id],description:`A unique identifier for this payout.`}),createdAt:Pi$1().readonly().meta({examples:[w$1.Payout.createdAt],description:`Timestamp in ISO 8601 format when this payout was created.`}),updatedAt:Pi$1().readonly().meta({examples:[w$1.Payout.updatedAt],description:`Timestamp in ISO 8601 format when this payout was last updated.`}),statementPending:ka$1().optional().meta({description:`Whether the completed payout is awaiting its accounting statement snapshot.`}),statementVersion:Da$1().positive().optional().meta({description:`Version of the immutable issued statement, absent on legacy payouts.`}),paidAt:Pi$1().optional().meta({examples:[w$1.Payout.paidAt],description:`Timestamp in ISO 8601 format when this payout was completed.`}),dueAt:Pi$1().optional().meta({examples:[w$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:bh$1.meta({examples:[`PAID`],description:`Current payment status of this payout.`}),method:Sh$1.meta({examples:[`MANUAL`],description:`The payout channel used for disbursing funds.`}),failedAttempts:Da$1().nonnegative().optional().meta({description:`Failures since approval. After four failures an administrator must explicitly retry the payout. Absent on legacy payouts.`}),approval:E$1.meta({examples:[`APPROVED`],description:`Approval status for this payout.`}),frequency:wh$1.default(`AFTER_EVENT`).meta({examples:[`AFTER_EVENT`],description:`Schedule on which this payout is generated.`}),structure:na$1().meta({examples:[w$1.Payout.structure],description:`Data structure defining how funds are allocated in this payout.`}),transfers:Ga$1(yh$1).meta({description:`List of individual transfer records included in this payout.`}),deductions:Ga$1(mh$1).optional().meta({description:`Deprecated legacy deductions applied before calculating the payout total. New recovery amounts are exposed through payout adjustments.`}),price:gh$1.meta({description:`Summary of event/order-derived amounts for this payout.`}),unsettled:gh$1.optional().meta({description:`Completed sales assigned to this payout that are still awaiting settlement.`}),unsettledCount:Ta$1().int().nonnegative().optional().meta({description:`Number of orders still awaiting settlement.`}),recovery:ph$1.optional().meta({description:`Optional recovery metadata when this payout exists to return settlement-proven recovered funds.`}),event:hh$1.meta({description:`Information about the event associated with this payout.`}),timeline:Ga$1(vh$1).optional().meta({description:`Chronological list of status changes and notes for this payout.`}),eventId:na$1().meta({examples:[w$1.Payout.eventId],description:`Identifier of the event for which this payout was generated.`}),teamId:na$1().meta({description:`Team receiving this payout. BREAKING CHANGE: Replaced promoterId/promoterSlug.`})}).meta({description:`payout`});qa$1({id:na$1().meta({examples:[w$1.Payout.id],description:`Unique identifier of the payout to approve for processing.`})});qa$1({id:na$1().meta({examples:[w$1.Payout.id],description:`Unique identifier of the payout to reject.`}),reason:na$1().optional().meta({examples:[`Insufficient funds in account`],description:`Optional reason for rejecting the payout. This will be recorded for audit purposes.`})});qa$1({id:na$1().meta({examples:[w$1.Payout.id],description:`Unique identifier of the payout to process and initiate transfers.`})});qa$1({id:na$1().meta({examples:[w$1.Payout.id],description:`Unique identifier of the payout to retry transfer processing for.`})});const Ah$1=qa$1({id:na$1().meta({examples:[w$1.Payout.id],description:`Unique identifier of the payout to add a note to`}),note:na$1().trim().min(1).max(1e3).meta({examples:[`Transfer confirmed via bank statement`],description:`Note text content (1-1000 characters)`})}),jh$1=io$1([`REFUND`,`DISPUTE_PRINCIPAL`,`DISPUTE_FEE`,`GATEWAY_FEE`,`NEGATIVE_PAYOUT_CARRY_FORWARD`,`LEGACY_ADJUSTMENT`]),Mh$1=io$1([`RESERVED`,`OPEN`,`PARTIALLY_APPLIED`,`APPLIED`]),Nh$1=io$1([`OUTSTANDING`,`APPLIED`,`ALL`]),Ph$1=io$1([`event`,`payout`]),Fh$1=qa$1({id:na$1(),name:na$1(),slug:na$1()}),Ih$1=qa$1({id:na$1(),status:bh$1,approval:E$1,method:Sh$1,dueAt:Pi$1().optional(),paidAt:Pi$1().optional(),event:Fh$1,price:gh$1,unsettled:gh$1.optional()}),Lh$1=qa$1({id:na$1(),payoutId:na$1(),amount:Da$1().min(0),currency:D$1,appliedAt:Pi$1(),transferId:na$1().optional(),payout:Ih$1.optional()}),Rh$1=qa$1({id:na$1(),createdAt:Pi$1(),updatedAt:Pi$1(),provenAt:Pi$1(),teamId:na$1(),eventId:na$1().optional(),orderId:na$1().optional(),payoutId:na$1().optional(),sourcePayoutId:na$1().optional(),gateway:Sh$1,kind:jh$1,direction:oo$1(`DEBIT`),status:Mh$1,amount:Da$1().min(0),appliedAmount:Da$1().min(0),remainingAmount:Da$1().min(0),currency:D$1,beneficiary:na$1(),beneficiaryId:na$1(),description:na$1(),settlementId:na$1().optional(),transactionId:na$1().optional(),feeType:na$1().optional(),feeSourceId:na$1().optional(),disputeId:na$1().optional(),refundId:na$1().optional(),paymentIntentId:na$1().optional(),paymentAttemptId:na$1().optional(),customer:El.optional(),event:Fh$1.optional(),sourcePayout:Ih$1.optional(),applications:Ga$1(Lh$1)}),zh$1=qa$1({id:na$1()}),Bh$1=qa$1({adjustmentId:na$1(),amount:Da$1().min(0),currency:D$1}),Vh$1=qa$1({amount:Da$1().min(0),appliedAmount:Da$1().min(0),remainingAmount:Da$1().min(0),projectedAmount:Da$1().min(0),currency:D$1}),Hh$1=qa$1({id:na$1(),event:Fh$1.optional(),adjustments:Ga$1(Rh$1),totals:Ga$1(Vh$1)}),Uh$1=qa$1({id:na$1(),payout:Ih$1,adjustments:Ga$1(Rh$1),projections:Ga$1(Bh$1),totals:Ga$1(Vh$1),projectedNetAmount:Da$1()}),Wh$1=qa$1({adjustmentCount:Da$1().min(0),eventCount:Da$1().min(0),upcomingPayoutCount:Da$1().min(0),totals:Ga$1(Vh$1)}),Gh$1=qa$1({teamId:na$1(),query:na$1().optional(),status:Nh$1.optional(),groupBy:Ph$1.optional(),eventId:na$1().optional(),currency:D$1.optional(),limit:L$1(`adjustments`).optional(),cursor:Ln.optional()}),Kh$1=qa$1({adjustments:Ga$1(Rh$1),eventGroups:Ga$1(Hh$1),payoutGroups:Ga$1(Uh$1),summary:Wh$1,summaryScope:oo$1(`PAGE`),before:na$1().nullish(),after:na$1().nullish(),limit:Ta$1().int().min(1)}),qh$1=qa$1({adjustment:Rh$1,adjustments:Ga$1(Rh$1),eventGroups:Ga$1(Hh$1),payoutGroups:Ga$1(Uh$1),summary:Wh$1}),Jh$1=qa$1({name:na$1(),gateway:io$1([`AIRWALLEX`,`STRIPE`,`FREE`]),message:na$1(),eventIds:Ga$1(na$1()).optional(),venues:Ga$1(na$1()).optional(),tenants:Ga$1(na$1()).optional(),teams:Ga$1(na$1()).optional(),ticketBeneficiaryTeamId:na$1().optional(),venueBeneficiaryTeamId:na$1().optional(),min:Ta$1().optional(),max:Ta$1().optional(),percent:Ta$1().optional(),split:qa$1({tenant:Ta$1(),team:Ta$1(),venue:Ta$1(),sessions:Ta$1()})}).refine(e=>e.split.venue<=0||e.venueBeneficiaryTeamId!==void 0,{message:`Venue fee splits require a beneficiary team`,path:[`venueBeneficiaryTeamId`]}),Yh$1=`tem_01kach7nnvfvmbtfvgtgkb47kc`,Xh$1=`tem_01kqbww0g2fersexg66rbsffmd`,Zh$1=`tem_01kach7nntfvmbtfttvvqfgwbz`,Qh$1=`tem_01kh7xaxpbebj9538fp9nn019f`;Jh$1.array().parse([{name:`DEFAULT`,gateway:`AIRWALLEX`,message:`7.5% of the ticket price or $2 AUD, whichever is higher`,min:200,percent:7.5,split:{tenant:0,team:0,venue:0,sessions:1}},{name:`MIXMAG_ANZ_DEFAULT`,gateway:`AIRWALLEX`,message:`7.5% of the ticket price or $2 AUD, whichever is higher`,tenants:[`tnt_01hk153x00en6tvgwwwhn8xj1p`],min:200,percent:7.5,split:{tenant:.7,team:0,venue:0,sessions:.3}},{name:`MIXMAG_ASIA_DEFAULT`,gateway:`AIRWALLEX`,message:`7.5% of the ticket price or $2 AUD, whichever is higher`,tenants:[`tnt_01hk153x00ee4sgh15mp929k20`],min:200,percent:7.5,split:{tenant:.7,team:0,venue:0,sessions:.3}},{name:`MIXMAG_ANZ_SASH`,gateway:`AIRWALLEX`,message:`Controlled by S.A.S.H, flat rate of $5 AUD`,tenants:[`tnt_01hk153x00en6tvgwwwhn8xj1p`],teams:[Zh$1],min:500,max:500,split:{team:1,tenant:0,venue:0,sessions:0}},{name:`MIXMAG_ANZ_SASH_FLAT_5`,gateway:`AIRWALLEX`,message:`Controlled by S.A.S.H, flat rate of $5 AUD`,eventIds:[`evt_01kztzvgvdecrt5xq7vn67vd5k`],tenants:[`tnt_01hk153x00en6tvgwwwhn8xj1p`],ticketBeneficiaryTeamId:Zh$1,venueBeneficiaryTeamId:Zh$1,min:500,max:500,split:{team:0,tenant:0,venue:1,sessions:0}},{name:`MIXMAG_ANZ_CAROUSEL_FLAT_5`,gateway:`AIRWALLEX`,message:`Controlled by Carousel, flat rate of $5 AUD`,eventIds:[`evt_01m0pz27j2fk7atvaa51e1sh8j`],tenants:[`tnt_01hk153x00en6tvgwwwhn8xj1p`],ticketBeneficiaryTeamId:Yh$1,venueBeneficiaryTeamId:Yh$1,min:500,max:500,split:{team:0,tenant:0,venue:1,sessions:0}},{name:`MIXMAG_ANZ_CAROUSEL`,gateway:`AIRWALLEX`,message:`7.5% of the ticket price or $2 AUD, whichever is higher`,tenants:[`tnt_01hk153x00en6tvgwwwhn8xj1p`],teams:[Yh$1,Xh$1,Qh$1],venues:[`Carousel Bar & Ballroom`,`Carousel`,`169 Oxford St`],ticketBeneficiaryTeamId:Yh$1,venueBeneficiaryTeamId:Yh$1,min:200,percent:7.5,split:{team:0,tenant:0,venue:1,sessions:0}}]),Jh$1.array().parse([{name:`MIXMAG_ANZ_YAW_PLACE`,gateway:`AIRWALLEX`,message:`7.5% of the ticket price or $2.50 AUD, whichever is higher`,ticketBeneficiaryTeamId:Yh$1,venueBeneficiaryTeamId:Qh$1,min:250,percent:7.5,split:{tenant:0,team:0,venue:1,sessions:0}},{name:`MIXMAG_ANZ_KANDY`,gateway:`AIRWALLEX`,message:`7.5% of the ticket price or $2.50 AUD, whichever is higher`,ticketBeneficiaryTeamId:Yh$1,venueBeneficiaryTeamId:Xh$1,min:250,percent:7.5,split:{tenant:0,team:0,venue:1,sessions:0}}]);const $h$1=qa$1({tenant:Ta$1().meta({examples:[5e4],description:`Amount allocated to the tenant (platform) in cents. This represents the platform's share of the revenue.`}),venue:Ta$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:Ta$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:Ta$1().meta({examples:[3e3],description:`Amount allocated to Sessions platform commission in cents. This represents the platform's service fees.`}),tickets:Ta$1().meta({examples:[2e3],description:`Amount allocated to ticketing fees in cents. This represents fees charged for ticket processing and management.`})});qa$1({payout:$$2.meta({description:`Complete payout record containing all financial details and metadata for calculating beneficiary allocations.`}),feeStructure:Jh$1.meta({description:`Fee structure configuration that defines how revenue is split between different parties (promoter, venue, platform, etc.).`}),split:$h$1.meta({description:`Calculated split amounts showing how the payout total is divided among the different beneficiaries in cents.`})});const tg$1=qa$1({tickets:Da$1().nonnegative().optional().meta({description:`Admission ticket count captured for this statement, retained when source orders are removed.`}),orders:Ta$1().meta({examples:[150],description:`Total number of orders included in this payout breakdown.`}),price:$l.meta({description:`Aggregated price information for all orders included in this payout, showing total revenue, fees, refunds, and disputes.`}),split:$h$1.meta({description:`How the total payout amount is split between different beneficiaries (tenant, venue, promoter, etc.) in cents.`}),structure:na$1().meta({examples:[`DEFAULT`],description:`Fee structure identifier that was used to calculate the payout split and allocations.`})}),ng$1=qa$1({name:na$1().meta({description:`Captured fee structure name.`}),gateway:io$1([`AIRWALLEX`,`STRIPE`,`FREE`]).meta({description:`Payment gateway.`}),message:na$1().meta({description:`Customer-facing fee description.`}),split:qa$1({tenant:Ta$1().meta({description:`Tenant booking fee share.`}),team:Ta$1().meta({description:`Organiser booking fee share.`}),venue:Ta$1().meta({description:`Venue booking fee share.`}),sessions:Ta$1().meta({description:`Session Services booking fee share.`})}).meta({description:`Captured booking fee allocations.`}),ticketBeneficiaryTeamId:na$1().optional().meta({description:`Ticket revenue recipient override.`}),venueBeneficiaryTeamId:na$1().optional().meta({description:`Venue booking fee recipient.`})}).refine(e=>e.split.venue<=0||e.venueBeneficiaryTeamId!==void 0,{message:`Venue fee splits require a beneficiary team`,path:[`venueBeneficiaryTeamId`]}).meta({description:`Statement allocations without internal applicability selectors.`}),rg$1=qa$1({statement:qa$1({version:Da$1().positive().meta({description:`Immutable statement version.`}),capturedAt:Pi$1().meta({description:`Statement accounting cutoff.`}),feeStructure:ng$1.meta({description:`Beneficiary allocations captured for this statement.`}),adjustments:Da$1().meta({description:`Applied organiser adjustments in settlement minor units; debits are positive.`})}).optional().meta({description:`Frozen accounting basis for an issued payout statement.`}),total:tg$1.meta({description:`Summary totals for all orders included in this payout breakdown, including aggregated financial calculations.`}),orders:Ga$1(qa$1({order:q$1.meta({description:`Complete order information including customer details, items, and payment status.`}),price:$l.meta({description:`Settled price information for this specific order, showing final amounts after refunds and adjustments.`}),split:$h$1.meta({description:`How this individual order's revenue is split between different beneficiaries in cents.`}),structure:na$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.`})});$$2.pick({id:true,eventId:true}).extend({id:na$1().meta({examples:[w$1.Payout.id],description:`Unique identifier of the payout for which to retrieve the detailed breakdown.`}),eventId:na$1().meta({examples:[w$1.Event.id],description:`Unique identifier of the event associated with the payout breakdown.`})});$$2.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:na$1().meta({examples:[w$1.Event.id],description:`Unique identifier of the event for which the payout is being created`}),teamId:na$1().meta({examples:[`tem_01jqpjksnsen9vprw95et60t2m`],description:`Unique identifier of the team who will receive the payout`}),method:io$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:io$1([`DAILY`,`WEEKLY`,`AFTER_EVENT`]).optional().meta({examples:[`AFTER_EVENT`],description:`Optional payout frequency. Defaults to 'AFTER_EVENT' if not specified`})});const og$1=qa$1({id:na$1().meta({examples:[w$1.Payout.id],description:`Unique identifier of the payout`}),noteId:na$1().meta({examples:[`tl_1234567890_abc123`],description:`Unique identifier of the timeline note to delete`})}),sg$1=$$2.pick({id:true}).extend({id:na$1().meta({examples:[w$1.Payout.id],description:`Unique identifier of the payout to retrieve.`})}),cg$1=io$1([`createdAt`]),lg$1=io$1([`asc`,`desc`]),ug$1=qa$1({mine:ka$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:na$1().optional().meta({description:`Filter payouts by specific team unique identifier. BREAKING CHANGE: Replaced promoterId filter.`}),eventId:na$1().optional().meta({examples:[w$1.Event.id],description:`Filter payouts by specific event unique identifier. When provided, only returns payouts for this event.`}),status:io$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:E$1.optional().meta({examples:[`APPROVED`],description:`Filter payouts by approval status. PENDING: awaiting approval, APPROVED: approved for processing, REJECTED: rejected and will not be processed.`}),manualApprovalOnly:ka$1().optional().meta({description:`Only include manual payouts and recovery credits that require an operator approval decision.`}),query:na$1().optional().meta({examples:[`PAID venue:sydney`],description:`Optional search query to filter payouts by text fields. When provided, search-backed pagination is used.`}),sort:cg$1.optional().meta({examples:[`createdAt`],description:"Optional list sort field. Use `createdAt` to return newest or oldest payouts first."}),direction:lg$1.optional().meta({examples:[`desc`],description:"Sort direction for payout lists. Defaults to `desc` when `sort` is provided."}),limit:L$1(`payouts`).optional(),cursor:na$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`}),dg$1=B$1($$2,`payouts`),fg$1=io$1([`VALID`,`FALLBACK`,`MISSING`]),pg$1=qa$1({status:fg$1.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:na$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:qa$1({id:na$1().optional().meta({examples:[w$1.Beneficiary.id],description:`Identifier for the beneficiary.`}),teamId:na$1().optional().meta({examples:[w$1.Team.id],description:`Team that owns this beneficiary configuration.`}),name:na$1().meta({examples:[w$1.Beneficiary.name],description:`Display name for the resolved beneficiary.`}),gateway:io$1([`AIRWALLEX`,`STRIPE`]).optional().meta({examples:[w$1.Beneficiary.gateway],description:`Payment gateway for this beneficiary when available from configuration.`}),gatewayId:na$1().meta({examples:[w$1.Beneficiary.gatewayId],description:`Gateway-specific beneficiary identifier used for transfer creation.`}),currency:D$1.meta({examples:[w$1.Beneficiary.currency],description:`Currency configured for this beneficiary.`})}).optional()}),mg$1=io$1([`tickets`,`tenant`,`venue`,`team`,`sessions`]),hg$1=qa$1({kind:mg$1.meta({examples:[`tickets`],description:`Split component represented by this row.`}),amount:Ta$1().int().meta({examples:[114500],description:`Amount in cents for this split component.`}),currency:D$1.meta({examples:[w$1.Payout.price.currency],description:`Currency code for this split component.`}),beneficiary:pg$1}),gg$1=io$1([`TRACKED`,`N_A`,`SKIPPED`]),_g$1=qa$1({orders:Ta$1().int().meta({examples:[12],description:`Number of orders in this settlement bucket.`}),price:$l.meta({description:`Aggregated totals for the orders in this bucket, in the bucket's native currency.`})}),vg=qa$1({state:gg$1.meta({examples:[`TRACKED`],description:`Whether settlement tracking applies to this payout preview. Non-Airwallex payouts return N_A.`}),settled:_g$1.optional().meta({description:`Completed Airwallex orders that already have settlement data available.`}),awaitingSettlement:_g$1.optional().meta({description:`Completed Airwallex orders still waiting on settlement ingestion.`})}),yg=qa$1({payout:$$2.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:Ga$1(hg$1).meta({description:`Non-zero split rows with beneficiary resolution status and warnings.`}),settlementSummary:vg.meta({description:`Settlement status summary for the payout event. Airwallex payouts expose settled vs awaiting-settlement buckets.`})}),bg=sg$1.extend({includeSettlementSummary:ka$1().optional().meta({examples:[true],description:`When true, includes the Airwallex settlement summary for the payout preview.`})}),xg=qa$1({payout:$$2,breakdown:rg$1,appliedAdjustments:Ga$1(Rh$1),projectedAdjustmentGroup:Uh$1.optional(),canExportBookingFees:ka$1()}),Sg=no$1(na$1(),no$1(na$1(),qa$1({net:Ta$1(),total:Ta$1(),gross:Ta$1(),base:Ta$1(),booking:Ta$1(),shipping:Ta$1(),refunded:Ta$1(),discount:Ta$1(),gateway:Ta$1(),dispute:Ta$1(),deductions:Ta$1().default(0)}))).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}},previous:{USD:{net:8e4,total:95e3,gross:9e4,base:85e3,booking:5e3,shipping:0,refunded:0,discount:5e3,gateway:2500,dispute:0}}}]}),Cg=qa$1({teamId:na$1().optional().meta({description:`Filter stats by team ID`}),startDate:na$1().optional().meta({description:`Start date for stats period (YYYY-MM-DD)`}),endDate:na$1().optional().meta({description:`End date for stats period (YYYY-MM-DD)`})}),wg=$$2.pick({id:true}).merge($$2.pick({status:true,approval:true}).partial()).extend({id:na$1().meta({examples:[w$1.Payout.id],description:`Unique identifier of the payout to update.`}),status:io$1([`CANCELLED`]).optional().meta({examples:[`CANCELLED`],description:`Optional new payment status for the payout. Only CANCELLED is allowed for manual updates.`}),approval:E$1.optional().meta({examples:[`APPROVED`],description:`Optional new approval status for the payout. PENDING: awaiting approval, APPROVED: approved for processing, REJECTED: rejected.`})}),Tg=qa$1({id:na$1().meta({examples:[w$1.Payout.id],description:`Unique identifier of the payout`}),noteId:na$1().meta({examples:[`tl_1234567890_abc123`],description:`Unique identifier of the timeline note to update`}),note:na$1().trim().min(1).max(1e3).meta({examples:[`Updated: Transfer confirmed - reference #12345`],description:`Updated note text content (1-1000 characters)`})}),Eg=io$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.`}),Dg=qa$1({id:na$1().readonly().meta({description:`Unique identifier for the permission scope`}),createdAt:Pi$1().readonly().meta({description:`Timestamp in ISO 8601 format when the scope was created`}),updatedAt:Pi$1().readonly().meta({description:`Timestamp in ISO 8601 format when the scope was last updated`}),teamMemberId:na$1().meta({description:`Team member this scope applies to`}),teamId:na$1().meta({description:`Team the member belongs to`}),userId:na$1().meta({description:`ID of the user this permission scope applies to`}),permissions:Ga$1(R$1).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:Ga$1(na$1()).optional().meta({description:`Optional role IDs applied at this scope. Role-derived permissions are merged with explicit scoped nodes.`}),tenantId:na$1().readonly().meta({description:`Tenant identifier`})}),Og=Qa$1(`kind`,[Dg.extend({kind:oo$1(`PROMOTER`).meta({description:`Scope type: PROMOTER-specific permissions`}),promoterId:na$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.`}),Dg.extend({kind:oo$1(`VENUE`).meta({description:`Scope type: VENUE-specific permissions`}),venueId:na$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.`}),kg=qa$1({permissions:Ga$1(R$1).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:Ga$1(na$1()).optional().meta({description:`Optional role IDs to apply at this scope.`})}),Ag=Qa$1(`kind`,[kg.extend({kind:oo$1(`PROMOTER`).meta({description:`Scope type: PROMOTER-specific permissions`}),promoterId:na$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.`}),kg.extend({kind:oo$1(`VENUE`).meta({description:`Scope type: VENUE-specific permissions`}),venueId:na$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.`}),jg=qa$1({id:En.meta({description:`Unique identifier for the permission scope`})}).meta({description:`Schema for retrieving a single permission scope by ID`}),Mg=qa$1({teamMemberId:na$1().optional().meta({description:`Filter by team member ID`}),userId:na$1().optional().meta({description:`Filter by user ID`}),kind:Eg.optional().meta({description:`Filter by scope kind (PROMOTER or VENUE)`}),promoterId:na$1().optional().meta({description:`Filter by promoter ID (only for kind=PROMOTER scopes)`}),venueId:na$1().optional().meta({description:`Filter by venue ID (only for kind=VENUE scopes)`}),limit:L$1(`permission scopes`),cursor:na$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`}),Ng=B$1(Og,`items`).meta({description:`Paginated response containing permission scopes with cursor for next page`}),Pg=kg.meta({description:`Schema for updating an existing permission scope. Only permissions array can be modified.`}),Fg=qa$1({id:Dn.meta({description:`Permission role ID`}),teamId:k$1.meta({description:`Team that owns this role`}),name:na$1().min(1).meta({description:`Role display name`}),description:na$1().optional().meta({description:`Optional role description`}),permissions:cr.meta({description:`Permission nodes granted by this role`}),createdAt:Pi$1().meta({description:`Timestamp in ISO 8601 format when the role was created`}),updatedAt:Pi$1().meta({description:`Timestamp in ISO 8601 format when the role was last updated`})}).meta({description:`Team-scoped permission role`}),Ig=qa$1({role:Fg}),Lg=qa$1({roles:Ga$1(Fg)}),Rg=qa$1({key:na$1().meta({description:`Team identifier (ID or slug)`})}),zg=qa$1({key:na$1().meta({description:`Team identifier (ID or slug)`}),roleId:Dn}),Bg=qa$1({key:na$1().meta({description:`Team identifier (ID or slug)`}),name:na$1().min(1).meta({description:`Role display name`}),description:na$1().optional().meta({description:`Optional role description`}),permissions:cr}),Vg=qa$1({key:na$1().meta({description:`Team identifier (ID or slug)`}),roleId:Dn,name:na$1().min(1).meta({description:`Role display name`}),description:na$1().optional().meta({description:`Optional role description`}),permissions:cr}),Hg=qa$1({memberId:P$1,permissions:Ga$1(R$1),updatedAt:Pi$1()}),Ug=qa$1({member:Hg}),Wg=qa$1({key:na$1().meta({description:`Team identifier (ID or slug)`}),memberId:P$1}),Gg=qa$1({key:na$1().meta({description:`Team identifier (ID or slug)`}),memberId:P$1,permissions:Ga$1(R$1).meta({description:`Direct permission nodes for this member. Full-replace semantics; use an empty array to remove all direct grants.`})}),Kg=qa$1({memberId:P$1,roleIds:Ga$1(Dn).meta({description:`Role IDs assigned to this member`}),updatedAt:Pi$1()}),qg=qa$1({member:Kg}),Jg=qa$1({key:na$1().meta({description:`Team identifier (ID or slug)`}),memberId:P$1}),Yg=qa$1({key:na$1().meta({description:`Team identifier (ID or slug)`}),memberId:P$1,roleIds:Ga$1(Dn)}),Xg=qa$1({direct:Ga$1(na$1()),fromRoles:Ga$1(na$1()),effective:Ga$1(na$1()),denied:Ga$1(na$1())});qa$1({memberId:P$1,permissions:Xg});qa$1({key:na$1().meta({description:`Team identifier (ID or slug)`}),memberId:P$1,domain:na$1().optional().meta({description:`Optional domain filter (for example: ticket, event)`}),action:na$1().optional().meta({description:`Optional action filter (for example: read, write, scan)`}),resourceId:na$1().optional().meta({description:`Optional resource ID filter`})});const e_=S$1.route({method:`GET`,path:`/teams/{key}/roles`,summary:`List team roles`,description:`Returns all roles configured for a team.`,tags:[`Permissions`]}).input(Rg.strict()).output(Lg),t_=S$1.route({method:`POST`,path:`/teams/{key}/roles`,summary:`Create team role`,description:`Creates a team-scoped permission role.`,tags:[`Permissions`]}).input(Bg.strict()).output(Ig),n_=S$1.route({method:`GET`,path:`/teams/{key}/roles/{roleId}`,summary:`Get team role`,description:`Retrieves a team role by ID.`,tags:[`Permissions`]}).input(zg.strict()).output(Ig),r_=S$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(Vg.strict()).output(Ig),i_=S$1.route({method:`DELETE`,path:`/teams/{key}/roles/{roleId}`,summary:`Delete team role`,description:`Deletes a team role.`,tags:[`Permissions`]}).input(zg.strict()).output(Ig),a_=S$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(Wg.strict()).output(Ug),o_=S$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(Gg.strict()).output(Ug),s_=S$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(Jg.strict()).output(qg),c_=S$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(Yg.strict()).output(qg);var l_={roles:{list:e_,create:t_,get:n_,update:r_,remove:i_},members:{permissions:{get:a_,replace:o_},roles:{get:s_,replace:c_}}};const u_=qa$1({key:na$1().min(1).meta({description:`Promoter key - either a unique ID (pmt_xxx format) or URL-friendly slug`,examples:[w$1.Promoter.id,w$1.Promoter.slug]})}).meta({description:`Request schema for retrieving a promoter by either its unique ID or slug`});G$1.pick({slug:true});const f_=G$1.omit({id:true,createdAt:true,updatedAt:true,geohash:true,approval:true,location:true}).extend({description:kr.meta({examples:[w$1.Promoter.description],description:`Detailed description of the promoter organization and their events`}),teamId:na$1().meta({examples:[`tem_01jqpjksnsen9vprw95et60t2m`],description:`ID of the team that will own this promoter. User must be a member of this team.`}),slug:na$1().min(3).max(30).optional().meta({examples:[w$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`}),...hd}).refine(gd,{message:md}).meta({description:`Schema for creating a new promoter organization. The system automatically generates the ID, tenant association, geohash, and timestamps`}),p_=qa$1({key:na$1().min(1).meta({description:`Promoter key - either a unique ID (pmt_xxx format) or URL-friendly slug`,examples:[w$1.Promoter.id,w$1.Promoter.slug]})}).meta({description:`Schema for removing (soft deleting) a promoter organization by key (ID or slug)`});G$1.pick({id:true}).meta({description:`Schema for retrieving a specific promoter by ID`});const h_=io$1([`createdAt`]),g_=io$1([`asc`,`desc`]),__=e=>{if(e!=null)return typeof e==`string`?v_(e):e};function v_(e){let t=e.trim();if(t.length===0)return;let n=Number(t);return Number.isNaN(n)?e:n}const y_=Ja$1({teamId:na$1().max(128).optional().meta({description:`Filter promoters to only those belonging to a specific team`}),approval:E$1.optional().meta({examples:[w$1.Promoter.approval],description:`Filter promoters by approval status. PENDING: awaiting review, APPROVED: can create events, REJECTED: cannot operate`}),query:na$1().max(120).optional().meta({examples:[`Session Services`],description:`Optional search query. When provided, results are fetched from search with unified cursor pagination.`}),latitude:T$1().min(-90).max(90).optional().meta({examples:[w$1.Promoter.location.latitude],description:`Latitude used with longitude and radius to filter promoters by proximity when searching.`}),longitude:T$1().min(-180).max(180).optional().meta({examples:[w$1.Promoter.location.longitude],description:`Longitude used with latitude and radius to filter promoters by proximity when searching.`}),radius:T$1().min(1).max(2e4).optional().meta({examples:[50],description:`Search radius in kilometers applied when latitude and longitude are provided.`}),mine:Yt$1().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).`}),sort:h_.optional().meta({examples:[`createdAt`],description:"Optional list sort field. Use `createdAt` to return newest or oldest promoters first."}),direction:g_.optional().meta({examples:[`desc`],description:"Sort direction for promoter lists. Defaults to `desc` when omitted."}),limit:Po(__,Ta$1().min(1).max(100).prefault(20)).meta({examples:[20],description:`Maximum number of promoters to return (1-100, defaults to 20)`}).optional(),cursor:na$1().max(768).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`}),b_=B$1(G$1,`promoters`),x_=qa$1({promoter:G$1}),S_=G$1.omit({createdAt:true,updatedAt:true,id:true,location:true}).partial().extend({description:kr.optional().meta({examples:[w$1.Promoter.description],description:`Detailed description of the promoter organization. Omit to leave unchanged.`}),key:na$1().min(1).meta({description:`Promoter key - either a unique ID (pmt_xxx format) or URL-friendly slug`,examples:[w$1.Promoter.id,w$1.Promoter.slug]}),locationId:mn.optional().meta({examples:[`loc_01jqpjksnsen9vprw95et60t2m`],description:`ID of an existing location to update to. Either locationId or googlePlaceId can be provided.`}),googlePlaceId:na$1().optional().meta({examples:[`ChIJN1t_tDeuEmsRUsoyG83frY4`],description:`Google Place ID to update location from. Either locationId or googlePlaceId can be provided.`}),image:F$1.nullable().optional().meta({description:`Promoter image. Pass null to clear; omit to leave unchanged.`,examples:[w$1.Promoter.image,null]}),tracking:qa$1({fbId:na$1().optional(),gaId:is.optional(),tikTokId:na$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.`}),C_=io$1([`PAYOUT_STATEMENT`,`PAYOUT_ORDER_BREAKDOWN`,`PAYOUT_BOOKING_FEE_BREAKDOWN`,`PAYOUT_ADJUSTMENT_BREAKDOWN`,`EVENT_ORDERS`,`MEMBERSHIP_MEMBERS`]),w_=io$1([`QUEUED`,`PROCESSING`,`COMPLETED`,`FAILED`]),T_=qa$1({payoutId:na$1().describe(`Payout identifier`),teamId:na$1().optional().describe(`Requesting team identifier`)}),E_=qa$1({eventId:na$1().describe(`Event identifier`)}),D_=qa$1({teamId:na$1().describe(`Team whose current membership program is exported`)}),O_=Qa$1(`type`,[qa$1({type:oo$1(`PAYOUT_STATEMENT`),params:T_}),qa$1({type:oo$1(`PAYOUT_ORDER_BREAKDOWN`),params:T_}),qa$1({type:oo$1(`PAYOUT_BOOKING_FEE_BREAKDOWN`),params:T_}),qa$1({type:oo$1(`PAYOUT_ADJUSTMENT_BREAKDOWN`),params:T_}),qa$1({type:oo$1(`EVENT_ORDERS`),params:E_}),qa$1({type:oo$1(`MEMBERSHIP_MEMBERS`),params:D_})]),k_=qa$1({id:na$1().describe(`Report job identifier`)}),A_=qa$1({id:na$1(),type:C_,status:w_,createdAt:na$1(),updatedAt:na$1(),expiresAt:na$1().optional(),filename:na$1().optional(),contentType:na$1().optional(),sizeBytes:Ta$1().optional(),error:na$1().optional(),downloadUrl:na$1().optional()}),j_=qa$1({key:na$1().meta({description:`Team identifier (ID or slug)`}),inviteId:na$1().meta({description:`Team invite ID to accept`}),token:na$1().meta({description:`Secure token used to accept the team invite. This token must match the one sent in the invitation email.`})}),N_=io$1([`TEAM`,`EVENTS`]),P_=qa$1({key:na$1().meta({description:`Team identifier (ID or slug)`}),scope:N_.meta({description:`Stripe Connect event routing scope. TEAM routes every team event through Stripe Connect. EVENTS routes selected events only.`,examples:[`EVENTS`]}),eventIds:Ga$1(A$1).max(100).optional().meta({description:`Event IDs routed through Stripe Connect when scope is EVENTS. Omit or pass an empty array to keep Stripe Connect disabled for all events in EVENTS mode.`})}),F_=qa$1({provider:io$1([`STRIPE`,`AIRWALLEX`]).meta({description:`Payment gateway provider type`}),connectedAt:Pi$1().meta({description:`Timestamp when the payment gateway was connected to this team`}),connectedBy:na$1().meta({description:`User ID of the team member who connected the payment gateway`}),accountId:na$1().meta({description:`Connected account ID. For Stripe: acct_xxxxx. For Airwallex: business account open ID.`}),scope:N_.optional().meta({description:`Stripe Connect routing scope. TEAM routes all team events through Stripe Connect. EVENTS routes only selected events.`}),eventIds:Ga$1(A$1).optional().meta({description:`Event IDs routed through Stripe Connect when scope is EVENTS.`}),chargesEnabled:ka$1().optional().meta({description:`Whether the connected Stripe account can currently accept charges.`}),payoutsEnabled:ka$1().optional().meta({description:`Whether the connected Stripe account can currently receive payouts.`}),requirementsDue:Ga$1(na$1()).optional().meta({description:`Stripe Connect account requirements currently due before the account can remain fully enabled.`}),disabledReason:na$1().optional().meta({description:`Stripe disabled reason for the connected account, when Stripe reports one.`}),syncedAt:Pi$1().optional().meta({description:`Timestamp when gateway account status was last synced from the provider.`})}).meta({description:`Payment gateway configuration for direct payouts to the team's connected account`}),I_=qa$1({id:k$1.readonly().meta({description:`Unique identifier for the team organization`}),createdAt:Pi$1().readonly().meta({description:`Timestamp in ISO 8601 format when the team was created`}),updatedAt:Pi$1().readonly().meta({description:`Timestamp in ISO 8601 format when the team was last updated`}),name:na$1().min(3).max(30).meta({description:`Display name of the team organization. Must be between 3 and 30 characters`}),slug:na$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:na$1().email().optional().meta({description:`Support email address for customer inquiries. Used as reply-to address in order confirmation emails`}),publicBaseUrl:ca$1().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:F$1.optional().meta({description:`Team image with dimensions and alt text for branding across the platform`}),metadata:In,approval:E$1.meta({description:`Approval status of the team. PENDING: awaiting review, APPROVED: can create promoters/venues/events, REJECTED: cannot operate`}),deletedAt:Pi$1().optional().readonly().meta({description:`Timestamp in ISO 8601 format when the team was soft deleted. Only present for deleted teams.`}),tenantId:na$1().readonly().meta({description:`Tenant ID for multi-tenant isolation`}),isAdmin:ka$1().optional().meta({description:`Whether this team is the admin team for the tenant`}),isDemo:ka$1().readonly().meta({description:`Whether this team is protected seeded demo data`}),gateway:F_.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.`});I_.extend({promoter:G$1.meta({description:`The primary promoter brand associated with this team`})}).meta({description:`Team organization with its primary promoter brand included for convenience`});const R_=I_.extend({member:qa$1({id:P$1.meta({description:`Current user's team member identifier for this team`}),permissions:sr.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:ka$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`}),z_=qa$1({key:na$1().min(1).meta({description:`Team key - either a unique ID (tem_xxx format) or URL-friendly slug`,examples:[w$1.Team.id,w$1.Team.slug]})}).meta({description:`Request schema for retrieving a team by either its unique ID or slug`}),B_=I_.omit({id:true,tenantId:true,createdAt:true,updatedAt:true,deletedAt:true,isAdmin:true,isDemo:true}).extend({slug:na$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:I_.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`});qa$1({id:k$1.meta({description:`Team ID to delete`})});const H_=qa$1({team:R_.extend({isAdmin:ka$1().optional().meta({description:`Whether this team is the tenant admin team`}),stripeConnectAvailability:ls.optional().meta({description:`Stripe Connect availability metadata for tenant payment settings UI.`})})}),U_=io$1([`QUEUED`,`PROCESSING`,`BLOCKED`,`COMPLETED`,`FAILED`]).meta({description:`Current state of an asynchronous team deletion operation`}),W_=io$1([`ADMIN_TEAM`,`DEMO_TEAM`,`EVENTS`,`ORDERS`,`EVENTS_AND_ORDERS`,`BUSINESS_RECORDS`,`SETUP_IN_USE`]).meta({description:`Stable business reason preventing team deletion`}),G_=qa$1({reason:W_,hasEvents:ka$1().meta({description:`Whether active events prevent deletion`}),hasOrders:ka$1().meta({description:`Whether orders prevent deletion`})}).meta({description:`Structured business condition preventing team deletion`}),K_=qa$1({id:fn$1.readonly().meta({description:`Unique identifier for the deletion operation`}),teamId:k$1.readonly().meta({description:`Team being deleted`}),status:U_,createdAt:Pi$1().readonly().meta({description:`Timestamp when deletion was requested`}),updatedAt:Pi$1().readonly().meta({description:`Timestamp when deletion progress last changed`}),completedAt:Pi$1().optional().readonly().meta({description:`Timestamp when deletion completed`}),blocker:G_.optional(),error:na$1().optional().meta({description:`Safe failure description when manual recovery is needed`})}).meta({description:`Asynchronous team deletion operation`}),q_=qa$1({id:fn$1}).meta({description:`Request for the state of a team deletion operation`}),J_=H_.extend({deletion:K_}).meta({description:`Accepted team deletion request and its operation state`});qa$1({id:k$1.meta({description:`Team ID to retrieve`})});const X_=qa$1({id:wn.readonly().meta({description:`Unique identifier for the team invitation`}),createdAt:Pi$1().readonly().meta({description:`Timestamp in ISO 8601 format when the invitation was created`}),updatedAt:Pi$1().readonly().meta({description:`Timestamp in ISO 8601 format when the invitation was last updated`}),teamId:k$1.meta({description:`Team this invitation is for`}),email:ia$1().meta({description:`Email address of the invited user. Used for sending invitation.`}),permissions:Ga$1(R$1).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:Ga$1(na$1()).optional().meta({description:`Role IDs assigned on invite acceptance. Effective permissions are role + explicit nodes.`}),access:jr.optional().meta({description:`Promoter access to apply when the invitation is accepted.`}),token:na$1().readonly().meta({description:`Secure token for invite acceptance. Required to accept the invitation.`}),expiresAt:Ta$1().int().positive().meta({description:`Unix timestamp (seconds) for DynamoDB TTL. Invitation will be automatically deleted after 7 days.`}),invitedBy:j$1.meta({description:`User ID who sent the invitation`}),tenantId:na$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.`}),Z_=qa$1({key:na$1().meta({description:`Team identifier (ID or slug)`}),inviteId:na$1().meta({description:`Team invite ID to cancel`})}),Q_=qa$1({key:na$1().meta({description:`Team identifier (ID or slug)`}),email:ia$1().meta({description:`Email address of the user to invite`}),roleIds:Ga$1(na$1()).min(1).meta({description:`Role IDs to grant to the invited user.`}),access:Mr.optional().meta({description:`Optional promoter access assignment. Omit to preserve existing team-wide behavior.`})}),$_=qa$1({key:na$1().meta({description:`Team identifier (ID or slug)`}),inviteId:wn.meta({description:`Team invite ID to retrieve`})}),ev=qa$1({key:na$1().meta({description:`Team identifier (ID or slug)`}),query:na$1().optional().meta({description:`Search query to filter invitations by email. Case-insensitive partial match`}),limit:Ta$1().int().min(1).max(100).default(20).optional().meta({description:`Maximum number of invitations to return per page`}),cursor:na$1().optional().meta({description:`Pagination cursor for fetching the next page`})}),tv=B$1(X_,`invites`),nv=qa$1({invite:X_}),rv=io$1([`createdAt`]),iv=io$1([`asc`,`desc`]),av=qa$1({userId:j$1.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:E$1.optional().meta({description:`Filter teams by approval status. PENDING: awaiting review, APPROVED: can operate, REJECTED: cannot operate`}),query:na$1().optional().meta({description:`Optional search query for filtering teams by name or slug`}),sort:rv.optional().meta({examples:[`createdAt`],description:"Optional list sort field. Use `createdAt` to return newest or oldest teams first."}),direction:iv.optional().meta({examples:[`desc`],description:"Sort direction for team lists. Defaults to `desc` when `sort` is provided."}),limit:L$1(`teams`),cursor:na$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`}),ov=B$1(R_,`teams`),sv=io$1([`STRIPE`,`AIRWALLEX`]),cv=qa$1({key:na$1().meta({description:`Team identifier (ID or slug)`}),provider:sv.meta({description:`Payment processor to connect`,examples:[`STRIPE`,`AIRWALLEX`]})}),lv=qa$1({authorizationUrl:na$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=...`]})}),uv=qa$1({key:na$1().meta({description:`Team identifier (ID or slug)`})}),dv=qa$1({id:na$1().meta({description:`Role ID`}),teamId:na$1().meta({description:`Team ID this role belongs to`}),key:na$1().meta({description:`Role key`}),name:na$1().meta({description:`Role display name`}),description:na$1().optional().meta({description:`Role description`}),permissions:Ga$1(na$1()).meta({description:`Permission nodes granted by this role`}),scope:oo$1(`TEAM`).meta({description:`Role scope`}),isPreset:ka$1().meta({description:`Whether this role is a system preset role`}),presetKey:na$1().optional().meta({description:`Stable system preset identifier. It remains unchanged when a preset role is renamed.`})});qa$1({key:na$1().meta({description:`Team identifier (ID or slug)`})});qa$1({roles:Ga$1(dv)});const mv=qa$1({slug:na$1().min(3).max(30).meta({description:`Candidate team URL slug to check after server normalization.`}),key:na$1().min(1).optional().meta({description:`Current team key to exclude when checking availability during team edits.`})}).meta({description:`Request schema for checking team slug availability.`}),hv=qa$1({slug:na$1().min(3).max(30).meta({description:`Normalized team URL slug that was checked.`}),available:ka$1().meta({description:`Whether the normalized slug is available in this tenant.`})}).meta({description:`Team slug availability result.`}),gv=I_.omit({tenantId:true,createdAt:true,updatedAt:true,id:true,isAdmin:true,isDemo:true}).partial().extend({key:na$1().min(1).meta({description:`Team key - either a unique ID (tem_xxx format) or URL-friendly slug`,examples:[w$1.Team.id,w$1.Team.slug]}),supportEmail:na$1().email().nullable().optional().meta({description:`Support email for customer inquiries. Pass null to clear, omit to leave unchanged.`}),publicBaseUrl:ca$1().nullable().optional().meta({description:`Public website base URL for team-owned event and order links. Pass null to clear, omit to leave unchanged.`}),image:F$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.`}),_v=qa$1({id:P$1.readonly().meta({description:`Unique identifier for the team member`}),createdAt:Pi$1().readonly().meta({description:`Timestamp in ISO 8601 format when the member was created`}),updatedAt:Pi$1().readonly().meta({description:`Timestamp in ISO 8601 format when the member was last updated`}),teamId:k$1.meta({description:`Team this member belongs to`}),userId:j$1.meta({description:`User ID of the team member`}),user:qa$1({id:j$1.meta({description:`Unique identifier of the user`}),email:ia$1().meta({description:`Email address of the user`}),firstName:na$1().meta({description:`First name of the user`}),lastName:na$1().meta({description:`Last name of the user`}),imageUrl:na$1().optional().meta({description:`Profile image URL of the user`})}).meta({description:`Denormalized user details for quick access without additional queries.`}),permissions:Ga$1(R$1).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:Ga$1(na$1()).optional().meta({description:`Role IDs assigned to this team member. Effective permissions are derived from role nodes plus explicit permission nodes.`}),isOwner:ka$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.`}),access:jr.optional().meta({description:`Promoter access summary. Omitted only for legacy/no-access records.`}),tenantId:na$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.`}),vv=qa$1({member:_v}),yv=_v.omit({id:true,tenantId:true,createdAt:true,updatedAt:true,user:true,teamId:true,permissions:true,isOwner:true}).extend({key:na$1().meta({description:`Team identifier (ID or slug)`}),roleIds:Ga$1(na$1()).min(1).meta({description:`Role IDs assigned to this team member.`}),access:Mr.optional().meta({description:`Optional promoter access assignment. Omit to preserve existing team-wide behavior.`}),isOwner:oo$1(false).optional().meta({description:`Team ownership cannot be assigned when creating a member. External clients sending isOwner: true receive an input validation error; create the non-owner member first, then migrate ownership through POST /teams/{key}/transfer with newOwnerId.`})}).meta({description:`Schema for adding an existing user to a team. Requires userId of an existing user account.`}),bv=qa$1({key:na$1().meta({description:`Team identifier (ID or slug)`}),userId:na$1().meta({description:`User ID of the team member to retrieve`})}),xv=qa$1({key:na$1().meta({description:`Team identifier (ID or slug)`}),query:na$1().optional().meta({description:`Search query to filter members by name or email. Case-insensitive partial match`}),limit:L$1(`team members`),cursor:na$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`}),Sv=B$1(_v,`members`),Cv=qa$1({key:na$1().meta({description:`Team identifier (ID or slug)`}),newOwnerId:na$1().meta({description:`Team member ID of the new owner. This member must already exist with ACTIVE status.`})}).meta({description:`Schema for making an active team member the sole owner of their team.`}),wv=qa$1({previousOwner:_v.meta({description:`Primary previous owner retained for compatibility. This member keeps their existing access and loses isOwner status. On an idempotent retry after the transfer is already applied, this is the unchanged current owner.`}),newOwner:_v.meta({description:`The new owner (now has isOwner: true)`}),demotedOwners:Ga$1(_v).meta({description:`All previous owners whose isOwner status was cleared by the transfer.`})}).meta({description:`Response payload for team ownership transfer operation`}),Tv=qa$1({id:na$1().meta({description:`Team member ID to update`}),roleIds:Ga$1(na$1()).min(1).meta({description:`Replace role assignments for this team member with the provided role IDs.`}),isOwner:ka$1().optional().meta({description:`Whether this team member is an owner of the team`}),access:Mr.optional().meta({description:`Optional promoter access assignment. Omit to update only role assignments.`})}).meta({description:`Schema for updating team member roles. Cannot update teamId, userId, or owner status.`});const Dv=S$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(bv.strict()).output(vv),Ov=S$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(xv.strict()).output(Sv),kv=S$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(yv.strict()).output(vv),Av=S$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(Tv.extend({key:na$1(),userId:na$1()}).strict()).output(vv),jv=S$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(bv.strict()).output(vv),Mv=S$1.route({method:`POST`,path:`/teams/{key}/transfer`,summary:`Transfer team ownership`,description:`Make an active team member the sole owner. Team key can be ID or slug. A current team owner or tenant administrator can perform this action. The new owner receives the team Admin role, while previous owners keep their existing access and lose only isOwner status.`,tags:[`Team Members`]}).input(Cv.strict()).output(wv);var Nv={get:Dv,list:Ov,create:kv,update:Av,remove:jv,transfer:Mv};const Pv=io$1([`ALL`,`COUNTRY`,`STATE`,`CITY`,`VENUE`]),Fv=qa$1({id:na$1(),name:na$1(),slug:na$1(),kind:Pv,parentId:na$1().optional(),latitude:Ta$1().optional(),longitude:Ta$1().optional(),radius:Ta$1().optional(),enabled:ka$1(),order:Ta$1(),zoom:Ta$1().optional(),heroImage:na$1().optional(),description:na$1().optional()}),Iv=qa$1({tenant:qa$1({id:na$1(),name:na$1(),slug:na$1(),adminTeamId:na$1(),legacyTenantsToTeams:no$1(na$1(),na$1()).optional(),features:no$1(na$1(),ka$1()).optional(),defaultCurrency:na$1(),logo:qa$1({email:qa$1({src:na$1(),width:Ta$1(),height:Ta$1()}),website:qa$1({src:na$1(),width:Ta$1(),height:Ta$1()})}),baseUrl:qa$1({dev:na$1().optional(),production:na$1().optional()}),publicBaseUrl:qa$1({dev:na$1().optional(),sandbox:na$1().optional(),production:na$1().optional()}).optional()}),regions:Ga$1(Fv)}),Lv=qa$1({regions:Ga$1(Fv)}),Rv=qa$1({teamId:na$1().optional()}),zv=qa$1({counts:qa$1({teams:ka$1(),promoters:ka$1(),venues:ka$1(),events:ka$1(),payouts:ka$1()})}),Bv=qa$1({kind:io$1([`CHECK_IN`,`CHECK_OUT`]).meta({description:`The most recent attendee scan action.`}),scannedAt:Pi$1().meta({description:`Timestamp for the most recent attendee scan.`})}),Vv=io$1(`#ABCDEFGHIJKLMNOPQRSTUVWXYZ`.split(``)).meta({description:`Alpha navigation bucket key for attendee roster jumps.`}),Hv=qa$1({key:Vv,count:T$1().int().min(0).meta({description:`Number of roster rows currently available in this bucket.`}),anchor:na$1().meta({description:`Server-issued bookmark for the first roster row in this bucket under the active filters.`})}),Uv=xu.pick({id:true,name:true,entryEndsAt:true}),Wv=Ou.pick({id:true,name:true}),Gv=qa$1({id:_n.meta({examples:[w$1.Ticket.id],description:`Ticket identifier for this attendee roster row.`}),orderId:gn.meta({examples:[w$1.Ticket.orderId],description:`Order identifier used to navigate to order details.`}),status:ku.meta({description:`Current ticket status for the attendee row.`}),attendee:Su.meta({description:`Editable attendee identity fields for this ticket.`}),admission:Uv.meta({description:`Admission snapshot needed for roster labels and expiry state.`}),section:Wv.optional().meta({description:`Optional section label shown in the roster row.`}),lastScan:Bv.optional().meta({description:`Most recent scan event for compact roster activity text.`}),lastCheckInAt:Pi$1().optional().meta({description:`Timestamp for the most recent check-in scan, used for checked-in labels.`})}),Kv=qa$1({eventId:A$1.meta({examples:[w$1.Event.id],description:`Event identifier for the attendee roster.`}),since:Pi$1().meta({examples:[`2026-09-25T10:00:00.000Z`],description:`Return roster rows updated at or after this instant. Pass the previous response's serverTime.`}),admissionIds:Ga$1(N$1).optional().meta({examples:[[w$1.Admission.id]],description:`Optional admission filters, matching the roster list.`}),sectionIds:Ga$1(xn).optional().meta({examples:[[w$1.Section.id]],description:`Optional section filters, matching the roster list.`})}),qv=qa$1({tickets:Ga$1(Gv).meta({description:`Roster rows changed since the requested instant, oldest change first.`}),truncated:ka$1().meta({description:`True when more rows changed than one response carries; reload the roster window instead of applying these rows.`}),serverTime:Pi$1().meta({description:"Server time for this response; pass it as `since` on the next poll."})}),Jv=qa$1({buckets:Ga$1(Hv).meta({description:`Available attendee alpha buckets for the active filter set.`})}),Yv=qa$1({eventId:A$1.meta({examples:[w$1.Event.id],description:`Event identifier for the attendee alpha index.`}),admissionIds:Ga$1(N$1).optional().meta({examples:[[w$1.Admission.id]],description:`Optional admission filters used when computing available attendee buckets.`}),sectionIds:Ga$1(xn).optional().meta({examples:[[w$1.Section.id]],description:`Optional section filters used when computing available attendee buckets.`})}),Xv=T$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).`}),Zv=qa$1({eventId:A$1.meta({examples:[w$1.Event.id],description:`Event identifier for the attendee roster.`}),admissionIds:Ga$1(N$1).optional().meta({examples:[[w$1.Admission.id]],description:`Optional admission filters. When provided, only matching ticket admissions are included.`}),sectionIds:Ga$1(xn).optional().meta({examples:[[w$1.Section.id]],description:`Optional section filters. When provided, only matching ticket sections are included.`}),query:na$1().optional().meta({examples:[`John`,`john@example.com`,`+61400000000`],description:`Optional attendee search query. Matches attendee name, email, and phone.`}),cursor:Ln.optional(),before:Ln.optional().meta({description:`Cursor for loading roster rows before the current window. Mutually exclusive with cursor and anchor.`}),anchor:na$1().optional().meta({description:`Server-issued bookmark used to jump to a roster bucket. Mutually exclusive with cursor and before.`}),limit:Xv.optional()}),Qv=B$1(Gv,`tickets`),$v=J$1.pick({status:true,admissionId:true,orderItemId:true}).extend({orderId:na$1().meta({examples:[w$1.Order.id],description:`The order this ticket belongs to`}),customerId:na$1().meta({examples:[w$1.Customer.id],description:`The customer who purchased this ticket`}),attendee:Su.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`}),ey=J$1.pick({id:true}).extend({signature:Ar.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`}),ty=qa$1({promoterId:na$1().optional().meta({examples:[w$1.Promoter.id],description:`Filter tickets by promoter/organizer unique identifier (optional)`}),eventId:na$1().optional().meta({examples:[w$1.Event.id],description:`Filter tickets by event unique identifier (optional)`}),customerId:na$1().optional().meta({examples:[w$1.Customer.id],description:`Filter tickets by customer unique identifier (optional)`}),orderId:na$1().optional().meta({examples:[w$1.Order.id],description:`Filter tickets by order unique identifier (optional)`}),status:ku.optional().meta({examples:[`ACTIVE`],description:`Filter tickets by status: ACTIVE (can be used), REDEEMED (already used), CANCELLED (invalidated or refunded)`}),orderSignature:Ar.optional().meta({description:`Order signature used to access tickets for a specific order without permissions (16 characters, base64url encoded)`}),query:na$1().optional().meta({examples:[`John Doe`],description:`Optional search query to filter tickets by customer details. When provided, search-backed pagination is used.`}),limit:L$1(`tickets`).optional(),cursor:na$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`}),ny=B$1(J$1,`tickets`),ry=qa$1({ticket:J$1}),iy=J$1.pick({id:true,eventId:true}).extend({key:J$1.shape.id.meta({description:`Transition key. Supports canonical ticket IDs (tkt_*) and order IDs (ord_*).`}),deviceId:J$1.shape.scans.element.shape.deviceId.optional().meta({description:`Unique identifier of the scanning device (optional).`}),eventId:J$1.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:ka$1().optional().meta({description:`Confirms an order-level check-in when some tickets are already redeemed and some remain active.`}),admissionIds:Ga$1(N$1).optional().meta({description:`Optional scanner admission filters. When provided, check-in only applies to matching ticket admissions.`}),sectionIds:Ga$1(xn).optional().meta({description:`Optional scanner section filters. When provided, check-in only applies to matching ticket sections.`}),idempotencyKey:na$1().trim().min(1).max(255).optional().meta({description:`Stable client-generated key used to replay a scan request without turning a timed-out success into a duplicate denial.`})}).omit({id:true}).meta({description:`Schema for check-in/check-out transitions addressed by key, where key may resolve to a ticket or order identifier.`}),ay=io$1([`ticket`,`order`]),oy=io$1([`NOOP_TRANSITION`]),sy=io$1([`PARTIAL_ORDER_CONFIRMATION_REQUIRED`]),cy=io$1([`EVENT_MISMATCH`]),ly=io$1([`FILTERED_OUT`]),uy=qa$1({id:J$1.shape.orderId,checkedInCount:Ta$1().int().nonnegative().optional(),items:Ga$1(qa$1({quantity:Ta$1().int().positive()}))}),dy=Cu.pick({id:true,name:true,slug:true,entryStartsAt:true}).extend({teamId:J$1.shape.teamId}),fy=qa$1({reason:oy,kind:io$1([`CHECK_IN`,`CHECK_OUT`]),targetType:ay,order:uy.optional(),ticket:J$1.optional()}),py=qa$1({reason:cy,kind:io$1([`CHECK_IN`,`CHECK_OUT`]),targetType:ay,requestedEventId:J$1.shape.eventId.optional(),event:dy,order:uy.optional(),ticket:J$1.optional()}),my=qa$1({reason:sy,kind:oo$1(`CHECK_IN`),targetType:oo$1(`order`),order:uy,ticket:J$1.optional()}),hy=qa$1({reason:ly,kind:oo$1(`CHECK_IN`),targetType:ay,order:uy.optional(),ticket:J$1.optional()}),gy=Xa$1([fy,py,my,hy]),_y=qa$1({tickets:Ga$1(J$1).meta({description:`Transition result tickets. Single-item array for ticket targets and full order tickets for order targets.`}),targetType:ay.meta({description:`Resolved target scope from the provided key.`}),order:uy.optional()}),vy=io$1([`ACTIVE`,`CANCELLED`]).describe(`Status updates allowed via PATCH: ACTIVE (reactivate), CANCELLED (void). REDEEMED is set via scan endpoint.`),yy=qa$1({id:na$1().meta({examples:[w$1.Ticket.id],description:`Unique identifier of the ticket to update`}),status:vy.optional().meta({description:`Update ticket status: CANCELLED to void, ACTIVE to reactivate`}),attendee:Su.partial().nullable().optional().meta({description:`Attendee info. Pass object to set/update, null to clear, or omit to leave unchanged.`}),admissionId:na$1().optional().meta({examples:[w$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.`}),by={id:w$1.User.id,createdAt:w$1.User.createdAt,updatedAt:w$1.User.updatedAt,email:w$1.User.email,firstName:w$1.User.firstName,lastName:w$1.User.lastName,imageUrl:`https://assets.session.services/examples/avatar.jpg`,tenantId:w$1.User.tenantId},xy=qa$1({id:na$1().readonly().meta({description:`Unique identifier for the user`,examples:[w$1.User.id]}),createdAt:Pi$1().readonly().meta({description:`ISO 8601 timestamp when the user account was created`,examples:[w$1.User.createdAt]}),updatedAt:Pi$1().readonly().meta({description:`ISO 8601 timestamp when the user account was last updated`,examples:[w$1.User.updatedAt]}),email:ia$1().meta({description:`User's email address, used for authentication and communication`,examples:[w$1.User.email]}),firstName:na$1().min(1).meta({description:`User's first name`,examples:[w$1.User.firstName]}),lastName:na$1().min(1).meta({description:`User's last name`,examples:[w$1.User.lastName]}),imageUrl:ca$1().optional().meta({description:`Optional URL to the user's profile image or avatar`,examples:[`https://assets.session.services/examples/avatar.jpg`]}),metadata:no$1(na$1(),Fn).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:[by]}),Sy=qa$1({kind:io$1([`PROMOTER`,`VENUE`]).meta({description:`Resource type that the permission scope applies to.`}),resourceId:na$1().meta({description:`Promoter or venue identifier for this permission scope.`}),permissions:Ga$1(R$1).meta({description:`Effective permissions for this resource, including role permissions assigned at the scope.`})}).meta({ref:`MePermissionScope`,description:`Effective resource-specific permissions for the current user.`}),Cy=_v.extend({scopes:Ga$1(Sy).optional().meta({description:`Resource-specific permissions. Omitted when the membership has no promoter or venue scopes.`})}).meta({ref:`MeTeamMember`,description:`Team membership for the current user with role-expanded team permissions and separate resource scopes.`}),wy=qa$1({access:na$1().meta({description:`JWT access token with updated user data`}),refresh:na$1().meta({description:`Refresh token for obtaining new access tokens`})}).meta({ref:`Tokens`,description:`Authentication tokens for client session management`}),Ty=qa$1({user:xy.meta({description:`The updated user profile`}),tokens:wy.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.`}),Ey=qa$1({deleted:oo$1(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.`}),Dy=qa$1({user:xy.nullable().meta({description:`Current authenticated user profile, null if not authenticated`}),isAdmin:ka$1().meta({description:`Whether the current user has admin privileges for the tenant`}),members:Ga$1(Cy).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`}]}]}),Oy=qa$1({id:na$1().readonly().meta({description:`Unique identifier for the venue`}),createdAt:Pi$1().readonly().meta({description:`Timestamp in ISO 8601 format when the venue was created`}),updatedAt:Pi$1().readonly().meta({description:`Timestamp in ISO 8601 format when the venue was last updated`}),teamId:na$1().meta({description:`Team that manages this venue`}),locationId:mn.meta({examples:[`loc_01h2xk3j9k8m2n5p7q9r1s3t4v`],description:`Location identifier for this venue`}),googlePlaceId:na$1().optional().meta({examples:[`ChIJP3Sa8ziYEmsRUKgyFmh9AQM`],description:`Google Place ID when this venue is linked to a Google Places location`}),approval:E$1.meta({examples:[`APPROVED`],description:`Approval status of the venue`}),name:na$1().min(3).max(100).meta({description:`Display name of the venue. Must be between 3 and 100 characters`}),slug:na$1().min(3).meta({description:`URL-friendly slug for the venue. Must be unique within tenant`}),description:na$1().optional().meta({description:`Short description of the venue for listings and discovery`}),image:F$1.optional().meta({description:`Venue image`}),contact:qa$1({email:ia$1().optional().meta({description:`Public contact email for venue inquiries`}),phone:na$1().optional().meta({description:`Public contact phone number`}),website:ca$1().optional().meta({description:`Venue website URL`}),instagram:na$1().optional().meta({description:`Instagram profile URL`}),facebook:na$1().optional().meta({description:`Facebook page URL`}),twitter:na$1().optional().meta({description:`Twitter/X profile URL`}),tiktok:na$1().optional().meta({description:`TikTok profile URL`}),youtube:na$1().optional().meta({description:`YouTube channel URL`})}).optional().meta({description:`Public contact information and social media links`}),location:ns.omit({venueId:true}).meta({description:`Physical location details including address, coordinates, and timezone`}),geohash:na$1().meta({description:`Geohash encoding of the venue's location for efficient spatial queries`}),capacity:Ta$1().int().min(1).optional().meta({description:`Maximum capacity of the venue (number of attendees)`}),metadata:In,deletedAt:Pi$1().readonly().optional().meta({description:`Timestamp in ISO 8601 format when the venue was soft-deleted. Null if not deleted`}),tenantId:na$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.`}),ky=Oy.omit({id:true,tenantId:true,createdAt:true,updatedAt:true,geohash:true,deletedAt:true,location:true,googlePlaceId:true,approval:true}).extend({description:kr.optional().meta({description:`Short description of the venue for listings and discovery`}),slug:na$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`}),Ay=qa$1({key:na$1().min(1).meta({description:`Venue key - either a unique ID (ven_xxx format) or URL-friendly slug`,examples:[w$1.Venue.id,w$1.Venue.slug]})}),jy=qa$1({key:na$1().meta({examples:[w$1.Venue.id,w$1.Venue.slug],description:`Venue key - either a unique ID (ven_xxx format) or URL-friendly slug`})}),My=io$1([`createdAt`]),Ny=io$1([`asc`,`desc`]),Py=Ja$1({teamId:na$1().max(128).optional().meta({description:`Filter venues by owner team ID`}),approval:E$1.optional().meta({description:`Filter venues by approval status. PENDING: awaiting review, APPROVED: can be used for events, REJECTED: cannot be used`}),query:na$1().max(120).optional().meta({description:`Optional search query for filtering venues by name or slug`}),latitude:T$1().min(-90).max(90).optional().meta({description:`Latitude for location-based search. Must be used with longitude`}),longitude:T$1().min(-180).max(180).optional().meta({description:`Longitude for location-based search. Must be used with latitude`}),radius:T$1().min(1).max(2e4).optional().meta({description:`Search radius in kilometers (1-20000). Requires latitude and longitude`}),sort:My.optional().meta({examples:[`createdAt`],description:"Optional list sort field. Use `createdAt` to return newest or oldest venues first."}),direction:Ny.optional().meta({examples:[`desc`],description:"Sort direction for venue lists. Defaults to `desc` when `sort` is provided."}),limit:L$1(`venues`),cursor:na$1().max(768).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`}),Fy=B$1(Oy,`venues`).meta({description:`Paginated response containing venues with cursor for next page`}),Iy=qa$1({venue:Oy}),Ly=Oy.omit({id:true,tenantId:true,teamId:true,createdAt:true,updatedAt:true,deletedAt:true,geohash:true}).partial().extend({key:na$1().meta({examples:[w$1.Venue.id,w$1.Venue.slug],description:`Venue key - either a unique ID (ven_xxx format) or URL-friendly slug`}),description:kr.nullable().optional().meta({description:`Short description of the venue. Pass null to clear, omit to leave unchanged.`}),image:F$1.nullable().optional().meta({description:`Venue image. Pass null to clear, omit to leave unchanged.`}),capacity:Ta$1().int().min(1).nullable().optional().meta({description:`Maximum capacity. Pass null to clear, omit to leave unchanged.`}),contact:qa$1({email:ia$1().optional(),phone:na$1().optional(),website:ca$1().optional(),instagram:na$1().optional(),facebook:na$1().optional(),twitter:na$1().optional(),tiktok:na$1().optional(),youtube:na$1().optional()}).nullable().optional().meta({description:`Contact information. Pass null to clear all contact fields, omit to leave unchanged.`}),googlePlaceId:na$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.`});Ja$1({id:na$1(),email:ia$1(),firstName:na$1(),lastName:na$1(),imageUrl:na$1().url().optional(),tenantId:na$1(),createdAt:na$1().datetime(),updatedAt:na$1().datetime()});const Zy=io$1([`ORDER`,`EVENT`,`TEAM`,`TEAM_INVITE`]).meta({description:`Aggregate type this notification belongs to`}),Qy=io$1([`ORDER_CONFIRMATION`,`REFUND_CONFIRMATION`,`TICKET_CANCELLATION`,`ORDER_REMINDER`,`ORDER_CANCELLATION`,`ORDER_TIME_CHANGE`,`ORDER_VENUE_CHANGE`,`ORDER_TIME_AND_VENUE_CHANGE`,`ORDER_LOCATION_REVEAL`,`EVENT_APPROVAL_REQUEST`,`EVENT_APPROVAL_DECISION`,`TEAM_INVITE`,`ORDER_TICKETS_RESEND`,`INTERNAL_FEEDBACK`]).meta({description:`Notification kind`}),$y=io$1([`SMS`,`EMAIL`]).meta({description:`Delivery channel`}),eb=io$1([`PENDING`,`PROCESSING`,`SENT`,`DELIVERED`,`FAILED`,`CANCELLED`]).meta({description:`Current notification status`});qa$1({id:On.meta({examples:[w$1.Notification.id],description:`Unique notification identifier`}),createdAt:Pi$1().readonly().meta({examples:[w$1.Notification.createdAt],description:`Timestamp when notification was created`}),updatedAt:Pi$1().readonly().meta({examples:[w$1.Notification.updatedAt],description:`Timestamp when notification was last updated`}),aggregateType:Zy.meta({examples:[w$1.Notification.aggregateType]}),aggregateId:Xa$1([gn,A$1,k$1,wn]).meta({examples:[w$1.Notification.aggregateId],description:`Aggregate identifier for the notification owner`}),eventId:A$1.optional().meta({examples:[w$1.Notification.eventId],description:`Associated event identifier when applicable`}),kind:Qy.meta({examples:[w$1.Notification.kind]}),channel:$y.meta({examples:[w$1.Notification.channel]}),status:eb.meta({examples:[w$1.Notification.status]}),providerMessageId:na$1().optional().meta({examples:[w$1.Notification.providerMessageId],description:`Provider message identifier`}),sentAt:Pi$1().optional().meta({examples:[w$1.Notification.sentAt],description:`Timestamp when provider accepted send request`}),deliveredAt:Pi$1().optional().meta({examples:[w$1.Notification.deliveredAt],description:`Timestamp when provider confirmed delivery`}),failedAt:Pi$1().optional().meta({examples:[w$1.Notification.failedAt],description:`Timestamp when notification failed`}),failureCode:na$1().optional().meta({examples:[w$1.Notification.failureCode],description:`Failure code when notification is FAILED`}),failureReason:na$1().optional().meta({examples:[w$1.Notification.failureReason],description:`Failure reason when notification is FAILED`})}).meta({description:`Notification delivery record`});qa$1({id:P$1.meta({description:`Team member ID to delete`})});
96
+
97
+ function Jf(e,t={}){let n=(e?.pipeThrough(new TextDecoderStream).pipeThrough(new $e$1))?.getReader(),r,i=false;return new Ce$1(async()=>{r??=ge$1(`consume_event_iterator_stream`);try{for(;;){if(n===void 0)return {done:true,value:void 0};let{done:e,value:t}=await be$1(r,()=>n.read());if(e){if(i)throw new fe$1(`Stream was cancelled`);return {done:true,value:void 0}}switch(t.event){case `message`:{let e=Ee$1(t.data);return Ae$1(e)&&(e=ct$1(e,t)),r?.addEvent(`message`),{done:false,value:e}}case `error`:{let e=new Xe$1({data:Ee$1(t.data)});throw e=ct$1(e,t),r?.addEvent(`error`),e}case `done`:{let e=Ee$1(t.data);return Ae$1(e)&&(e=ct$1(e,t)),r?.addEvent(`done`),{done:true,value:e}}default:r?.addEvent(`maybe_keepalive`);}}}catch(e){throw e instanceof Xe$1||_e$1(r,e,t),e}},async e=>{try{e!==`next`&&(i=true,r?.addEvent(`cancelled`)),await be$1(r,()=>n?.cancel());}catch(e){throw _e$1(r,e,t),e}finally{r?.end();}})}function Yf(e,t={}){let n=t.eventIteratorKeepAliveEnabled??true,r=t.eventIteratorKeepAliveInterval??5e3,i=t.eventIteratorKeepAliveComment??``,a=t.eventIteratorInitialCommentEnabled??true,o=t.eventIteratorInitialComment??``,s=false,c,l;return new ReadableStream({start(e){l=ge$1(`stream_event_iterator`),a&&e.enqueue(ot$1({comments:[o]}));},async pull(t){try{n&&(c=setInterval(()=>{t.enqueue(ot$1({comments:[i]})),l?.addEvent(`keepalive`);},r));let a=await be$1(l,()=>e.next());if(clearInterval(c),s)return;let o=lt$1(a.value);if(!a.done||a.value!==void 0||o!==void 0){let e=a.done?`done`:`message`;t.enqueue(ot$1({...o,event:e,data:De$1(a.value)})),l?.addEvent(e);}a.done&&(t.close(),l?.end());}catch(e){if(clearInterval(c),s)return;e instanceof Xe$1?(t.enqueue(ot$1({...lt$1(e),event:`error`,data:De$1(e.data)})),l?.addEvent(`error`),t.close()):(_e$1(l,e),t.error(e)),l?.end();}},async cancel(){try{s=true,clearInterval(c),l?.addEvent(`cancelled`),await be$1(l,()=>e.return?.());}catch(e){throw _e$1(l,e),e}finally{l?.end();}}}).pipeThrough(new TextEncoderStream)}function Xf(e,t={}){return ye$1({name:`parse_standard_body`,signal:t.signal},async()=>{let n=e.headers.get(`content-disposition`);if(typeof n==`string`){let t=dt$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 Ee$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 Jf(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 Zf(e,t,n={}){if(e instanceof ReadableStream)return e;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??ut$1(e instanceof File?e.name:`blob`)),e):e instanceof FormData||e instanceof URLSearchParams?e:xe$1(e)?(t.set(`content-type`,`text/event-stream`),Yf(e,n)):(t.set(`content-type`,`application/json`),De$1(e))}function Qf(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 $f(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 ep(e,t={}){let n=$f(e.headers),r=Zf(e.body,n,t);return new Request(e.url,{signal:e.signal,method:e.method,headers:n,body:r})}function tp(e,t={}){return {body:pe$1(()=>Xf(e,t)),status:e.status,get headers(){let t=Qf(e.headers);return Object.defineProperty(this,"headers",{value:t,writable:true}),t},set headers(e){Object.defineProperty(this,"headers",{value:e,writable:true});}}}var np=class{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);}},rp=class{constructor(e,t,n={}){this.codec=e,this.sender=t,new np(n.plugins).init(n),this.interceptors=ue$1(n.interceptors),this.clientInterceptors=ue$1(n.clientInterceptors);}interceptors;clientInterceptors;call(e,t,n){return ye$1({name:`${de$1}.${e.join(`/`)}`,signal:n.signal},r=>(r?.setAttribute(`rpc.system`,de$1),r?.setAttribute(`rpc.method`,e.join(`.`)),xe$1(t)&&(t=we$1({name:`consume_event_iterator_input`,signal:n.signal},t)),Te$1(this.interceptors,{...n,path:e,input:t},async({path:e,input:t,...n})=>{let a=he$1(),o,s=a?.trace.getActiveSpan()??r;s&&a&&(o=a?.trace.setSpan(a.context.active(),s));let c=await ye$1({name:`encode_request`,context:o},()=>this.codec.encode(e,t,n)),l=await Te$1(this.clientInterceptors,{...n,input:t,path:e,request:c},({input:e,path:t,request:n,...r})=>ye$1({name:`send_request`,signal:r.signal,context:o},()=>this.sender.call(n,r,t,e))),u=await ye$1({name:`decode_response`,context:o},()=>this.codec.decode(l,n,e,t));return xe$1(u)?we$1({name:`consume_event_iterator_output`,signal:n.signal},u):u})))}};function ip(e){return `/${e.map(encodeURIComponent).join(`/`)}`}function ap(e){return typeof e.forEach==`function`?Qf(e):e}function op(e){return Object.entries(Re$1).find(([,t])=>t.status===e)?.[0]??`MALFORMED_ORPC_ERROR_RESPONSE`}var sp=class extends np{initRuntimeAdapter(e){for(let t of this.plugins)t.initRuntimeAdapter?.(e);}},cp=class{fetch;toFetchRequestOptions;adapterInterceptors;constructor(e){new sp(e.plugins).initRuntimeAdapter(e),this.fetch=e.fetch??globalThis.fetch.bind(globalThis),this.toFetchRequestOptions=e,this.adapterInterceptors=ue$1(e.adapterInterceptors);}async call(e,t,n,r){let i=ep(e,this.toFetchRequestOptions);return tp(await Te$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})}},lp=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(ke$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])&&!ke$1(a[o])&&(a[o]=[]),r===e.length-1?Array.isArray(a[o])&&(n===``?a[o].length&&!t.has(a[o])&&(a[o]=dp(a[o])):t.has(a[o])?(t.delete(a[o]),a[o]=fp(a[o])):up(n,this.maxArrayIndex)||(a[o]=dp(a[o]))):Array.isArray(a[o])&&!up(n,this.maxArrayIndex)&&(t.has(a[o])?(t.delete(a[o]),a[o]=fp(a[o])):a[o]=dp(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 up(e,t){return /^0$|^[1-9]\d*$/.test(e)&&Number(e)<=t}function dp(e){let t=new Me$1;return e.forEach((e,n)=>{t[n]=e;}),t}function fp(e){let t=new Me$1;return t[``]=e.length===1?e[0]:e,t}var pp=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(ke$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 mp(e){return `/${e.replace(/\/{2,}/g,`/`).replace(/^\/|\/$/g,``)}`}function hp(e){return e?mp(e).match(/\/\{[^}]+\}/g)?.map(e=>({raw:e,name:e.match(/\{\+?([^}]+)\}/)[1]})):void 0}var gp=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=ap(await Ne$1(this.headers,n,e,t));n.lastEventId!==void 0&&(r=ft$1(r,{"last-event-id":n.lastEventId}));let i=await Ne$1(this.baseUrl,n,e,t),a=je$1(this.contract,e);if(!bt$1(a))throw Error(`[StandardOpenapiLinkCodec] expect a contract procedure at ${e.join(`.`)}`);return At$1(`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=mp(e[`~orpc`].route.path??ip(t)),s=n,c=hp(o);if(c?.length){if(!ke$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=At$1(`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=mp(e[`~orpc`].route.path??ip(t)),s=hp(o);if(!ke$1(n)&&n!==void 0)throw TypeError(`[StandardOpenapiLinkCodec] Invalid input shape for "detailed" structure at ${t.join(`.`)}.`);if(s?.length){if(!ke$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(!ke$1(n.headers))throw TypeError(`[StandardOpenapiLinkCodec] Invalid input.headers shape for "detailed" structure at ${t.join(`.`)}.`);c=ft$1(n.headers,a);}let l=At$1(`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=!Ge$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 Error(t?`Invalid OpenAPI response format.`:`Cannot parse response body, please check the response body and content-type.`,{cause:e})}})();if(!r)throw this.customErrorResponseBodyDecoder?.(i,e)??(Ke$1(i)?qe$1(i):new He$1(op(e.status),{status:e.status,data:{...e,body:i}}));let a=je$1(this.contract,n);if(!bt$1(a))throw Error(`[StandardOpenapiLinkCodec] expect a contract procedure at ${n.join(`.`)}`);return At$1(`defaultOutputStructure`,a[`~orpc`].route.outputStructure)===`compact`?i:{status:e.status,headers:e.headers,body:i}}},_p=class{constructor(e,t){this.jsonSerializer=e,this.bracketNotation=t;}serialize(e,t={}){return xe$1(e)&&!t.outputFormat?pt$1(e,{value:async e=>this.#e(e,{outputFormat:`plain`}),error:async e=>new Xe$1({data:this.#e(We$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())):xe$1(e)?pt$1(e,{value:async e=>e,error:async e=>e instanceof Xe$1&&Ke$1(e.data)?qe$1(e.data,{cause:e}):e}):e}},vp=class extends rp{constructor(e,t,n){let r=new gp(e,new _p(new pp(n),new lp({maxBracketNotationArrayIndex:4294967294})),n);super(r,t,n);}},yp=class extends vp{constructor(e,t){let n=new cp(t);super(e,n,t);}};const Tp=S$1.route({method:`GET`,path:`/events/{eventId}/admissions/{id}`,summary:`Get admission by ID`,tags:[`Admissions`]}).input(zr.strict()).output(Kr),Ep=S$1.route({method:`POST`,path:`/events/{eventId}/admissions`,summary:`Create a new admission`,tags:[`Admissions`]}).input(Lr.strict()).output(Kr),Dp=S$1.route({method:`PUT`,path:`/events/{eventId}/admissions/{id}`,summary:`Update an admission`,tags:[`Admissions`]}).input(qr.strict()).output(Kr);var Op={get:Tp,list:S$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(Br.strict()).output(Vr),create:Ep,update:Dp,remove:S$1.route({method:`DELETE`,path:`/events/{eventId}/admissions/{id}`,summary:`Delete an admission`,tags:[`Admissions`]}).input(Rr.strict()).output(Kr),quote:S$1.route({method:`POST`,path:`/events/{eventId}/admissions/quote`,summary:`Create an admission quote`,tags:[`Admissions`]}).input(Wr.strict()).output(Gr)};const X$1={BAD_REQUEST:{status:400,data:qa$1({unresolvedRequired:Ga$1(na$1()),unresolvedOptional:Ga$1(na$1()).optional(),issues:Ga$1(na$1()).optional()}).optional()}};var kp={track:S$1.route({method:`POST`,path:`/analytics/track`,summary:`Track event`,tags:[`Analytics`]}).input(io).errors(X$1).output(eo),page:S$1.route({method:`POST`,path:`/analytics/page`,summary:`Page event`,tags:[`Analytics`]}).input(io).errors(X$1).output(eo),identify:S$1.route({method:`POST`,path:`/analytics/identify`,summary:`Identify event`,tags:[`Analytics`]}).input(io).errors(X$1).output(eo),alias:S$1.route({method:`POST`,path:`/analytics/alias`,summary:`Alias event`,tags:[`Analytics`]}).input(io).errors(X$1).output(eo),group:S$1.route({method:`POST`,path:`/analytics/group`,summary:`Group event`,tags:[`Analytics`]}).input(io).errors(X$1).output(eo),screen:S$1.route({method:`POST`,path:`/analytics/screen`,summary:`Screen event`,tags:[`Analytics`]}).input(io).errors(X$1).output(eo)};const Ap=qa$1({expected:na$1(),actual:na$1()}),jp=qa$1({currency:D$1.meta({description:`Currency already assigned to another payout account`})}).meta({description:`Details about a conflicting beneficiary payout account`}),Mp=S$1.route({method:`GET`,path:`/beneficiaries/{id}`,summary:`Get beneficiary by ID`,tags:[`Beneficiaries`]}).input(ho.strict()).output(yo),Np=S$1.route({method:`POST`,path:`/beneficiaries`,summary:`Create a new beneficiary`,tags:[`Beneficiaries`]}).input(mo.strict()).errors({BAD_REQUEST:{status:400,data:Ap.optional()},CONFLICT:{status:409,data:jp}}).output(yo);var Pp={get:Mp,list:S$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(_o.strict()).output(vo),create:Np,remove:S$1.route({method:`DELETE`,path:`/beneficiaries/{id}`,summary:`Delete a beneficiary`,tags:[`Beneficiaries`]}).input(go.strict()).output(yo),schema:Oo,validate:Mo};const Fp=Xa$1([qa$1({field:oo$1(`code`),reason:oo$1(`taken`),value:na$1()}),qa$1({code:na$1()})]),Ip=S$1.route({method:`GET`,path:`/coupon-codes/{id}`,summary:`Get coupon code by ID`,tags:[`Coupon Codes`]}).input(zo.strict()).output(qo),Lp=S$1.route({method:`POST`,path:`/coupon-codes`,summary:`Create a new coupon code`,tags:[`Coupon Codes`]}).input(Ho.strict()).errors({CONFLICT:{status:409,data:Fp.optional()}}).output(qo),Rp=S$1.route({method:`PUT`,path:`/coupon-codes/{id}`,summary:`Update a coupon code`,tags:[`Coupon Codes`]}).input(Uo.strict()).output(qo);var zp={get:Ip,list:S$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(Go.strict()).output(Ko),create:Lp,update:Rp,remove:S$1.route({method:`DELETE`,path:`/coupon-codes/{id}`,summary:`Delete a coupon code`,tags:[`Coupon Codes`]}).input(Wo.strict()).output(qo)};const Bp=qa$1({committedAndHeldUses:Ta$1(),requestedLimit:Ta$1()}),Vp=S$1.route({method:`GET`,path:`/coupons/{id}`,summary:`Get coupon by ID`,tags:[`Coupons`]}).input(Yo.strict()).output($o),Hp=S$1.route({method:`POST`,path:`/coupons`,summary:`Create a new coupon`,tags:[`Coupons`]}).input(Jo).output($o),Up=S$1.route({method:`PUT`,path:`/coupons/{id}`,summary:`Update a coupon`,tags:[`Coupons`]}).input(es).errors({BAD_REQUEST:{status:400,data:Bp.optional()}}).output($o);var Wp={get:Vp,list:S$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(Zo.strict()).output(Qo),create:Hp,update:Up,remove:S$1.route({method:`DELETE`,path:`/coupons/{id}`,summary:`Delete a coupon`,tags:[`Coupons`]}).input(Xo.strict()).output($o),code:zp};const Gp=qa$1({eventId:A$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:[w$1.Event.id]}),description:na$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:na$1().optional().meta({description:`Optional event name for additional context`,examples:[`Warehouse Sessions Vol. 5`]}),imageUrl:ca$1().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`}),Kp=qa$1({genres:Ga$1(sn).max(5).meta({description:`Suggested music genres based on event description and artwork`,examples:[[`Tech House`,`Melodic Techno`]]}),categories:Ga$1(an$1).max(10).meta({description:`Suggested event categories based on description and artwork`,examples:[[`Warehouse`,`Underground`,`BYO`]]}),confidence:Ta$1().min(0).max(1).meta({description:`AI confidence score for the suggestions (0-1)`,examples:[.85]}),startDate:na$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:na$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:na$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:ca$1().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`});qa$1({estimatedInputTokens:Ta$1().int().meta({description:`Estimated input tokens for the request`,examples:[500]}),estimatedOutputTokens:Ta$1().int().meta({description:`Estimated output tokens for the response`,examples:[100]}),estimatedCostUsd:Ta$1().meta({description:`Estimated cost in USD`,examples:[.002]}),includesImage:ka$1().meta({description:`Whether the estimate includes image analysis`,examples:[true]})}).meta({description:`Cost estimate for an AI tag suggestion request`});var qp={suggestTags:S$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(Gp.strict()).output(Kp)};const Jp=qa$1({eventId:A$1.meta({description:`Event to like`})}).meta({description:`Request to like an event`}),Yp=qa$1({limit:L$1(`likes`),cursor:na$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.`}),Xp=qa$1({tenantId:na$1().readonly().meta({description:`Tenant ID for multi-tenant isolation`}),userId:j$1.readonly().meta({description:`User who liked the event`}),eventId:A$1.meta({description:`Event the user liked`}),createdAt:Pi$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.`}),Zp=B$1(Xp,`likes`).meta({description:`Paginated list of event likes. Use cursor-based pagination to navigate through results.`}),Qp=qa$1({eventId:A$1.meta({description:`Event to remove like from`})}).meta({description:`Request to remove the current user's like from an event`}),$p=qa$1({like:Xp});var em={add:S$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(Jp).output($p),remove:S$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(Qp).output(Va$1()),list:S$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(Yp).output(Zp)};const tm=Ii.extend({limit:T$1().min(1).max(100).optional().default(10)}),nm=Pi.extend({limit:T$1().min(1).max(100).optional().default(10)}),rm=Hi.extend({limit:T$1().min(1).max(100).optional().default(10)}),im=Ri.extend({limit:T$1().min(1).max(100).optional().default(10)}),am=Bi.extend({limit:T$1().min(1).max(100).optional().default(10)}),om=Wi.extend({limit:T$1().min(1).max(100).optional().default(10)}),sm=Ki.extend({limit:T$1().min(1).max(100).optional().default(10)}),cm=$i.extend({limit:T$1().min(1).max(50).optional().default(10)}),lm=ta.extend({includeAdmission:Yt$1().optional().default(true),includeSection:Yt$1().optional().default(true)}),um=oa.extend({}),dm=S$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(_i).output(vi),fm=S$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(yi).output(bi),pm=S$1.route({method:`GET`,path:`/events/{eventId}/performance/timeseries`,summary:`Get event metric time series`,description:`Per-bucket series of revenue, tickets, orders, page views, visitors, and conversion rate for the selected range`,tags:[`Event Performance`]}).input(Si).output(Ci),mm=S$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(wi).output(Ti),hm=S$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(tm).output(Li),gm=S$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(nm).output(Fi),_m=S$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(im).output(zi),vm=S$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(am).output(Vi),ym=S$1.route({method:`GET`,path:`/events/{eventId}/performance/browsers`,summary:`Get browser performance`,description:`Traffic breakdown by browser from tracking events`,tags:[`Event Performance`]}).input(rm).output(Ui),bm=S$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(om).output(Gi),xm=S$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(sm).output(qi),Sm=S$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(Ji).output(Qi),Cm=S$1.route({method:`GET`,path:`/events/{eventId}/performance/scanners`,summary:`Get door staff scanner activity`,description:`Ranked check-in activity by scanner for post-event door staff analytics`,tags:[`Event Performance`]}).input(cm).output(ea),wm=S$1.route({method:`GET`,path:`/events/{eventId}/performance/turnout`,summary:`Get event turnout analysis`,description:`Post-event sold versus checked-in tickets by admission and section`,tags:[`Event Performance`]}).input(lm).output(aa),Tm=S$1.route({method:`GET`,path:`/events/{eventId}/performance/pace`,summary:`Get event check-in pace`,description:`Post-event check-in flow over the admission entry window with peak door volume`,tags:[`Event Performance`]}).input(um).output(sa);var Em={couponAttendance:S$1.route({method:`GET`,path:`/events/{eventId}/performance/coupon-attendance`,summary:`Get check-in attendance by coupon code`,tags:[`Event Performance`]}).input(Jr).output(Xr),summary:dm,tickets:fm,timeseries:pm,funnel:mm,campaigns:hm,coupons:gm,mediums:_m,devices:vm,browsers:ym,locations:bm,traffic:xm,attendance:Sm,scanners:Cm,turnout:wm,pace:Tm};const Dm=S$1.route({method:`GET`,path:`/events/slugs`,summary:`List event slugs`,description:`List current event slugs with the same filters and access rules as event lists. Supports skip/limit pagination for sitemap generation.`,tags:[`Events`]}).input(lc).output(uc),Om=S$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(Qs).output(Cs),km=S$1.route({method:`POST`,path:`/events`,summary:`Create a new event`,tags:[`Events`]}).input(Js.strict()).output(oc),Am=S$1.route({method:`POST`,path:`/events/{key}/duplicate`,summary:`Duplicate an event`,description:`Create a new event by copying event details, sections, and admissions from an existing event.`,tags:[`Events`]}).input(Xs.strict()).output(oc),jm=S$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(fc.strict()).output(oc),Mm={get:S$1.route({method:`GET`,path:`/events/{key}/approval`,summary:`Get event approval status`,description:`Get internal event approval status and reviewer feedback. Requires event.read permission on the event owner team.`,tags:[`Events`]}).input(Es.strict()).output(Os),request:S$1.route({method:`POST`,path:`/events/{key}/approval/request`,summary:`Request event approval`,description:`Request or resubmit event approval. Requires event.write permission on the event owner team.`,tags:[`Events`]}).input(ks.strict()).output(oc),update:S$1.route({method:`PUT`,path:`/events/{key}/approval`,summary:`Approve or reject an event`,description:`Approve or reject an event. Requires event.write permission on the tenant admin team.`,tags:[`Events`]}).input(As.strict()).output(oc)};var Nm={slugs:Dm,get:Om,list:S$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(rc).output(ac),create:km,duplicate:Am,update:jm,approval:Mm,remove:S$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(Ys.strict()).output(oc),feature:S$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(Zs.strict()).output(oc),like:em,performance:Em,tags:qp.suggestTags},Pm={get:S$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(_c.strict()).output(xc),list:S$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(yc.strict()).output(bc),create:S$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(gc.strict()).output(vc),accept:S$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(mc.strict()).output(xc),remove:S$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(_c.strict()).output(Va$1())},Fm={list:S$1.route({method:`GET`,path:`/integrations`,tags:[`Integrations`],summary:`List team integrations`}).input(Tc).output(Ec),get:S$1.route({method:`GET`,path:`/integrations/{id}`,tags:[`Integrations`],summary:`Get an integration`}).input(Dc).output(wc),create:S$1.route({method:`POST`,path:`/integrations`,tags:[`Integrations`],summary:`Connect a team integration`}).input(Oc).output(wc).errors({BAD_GATEWAY:{status:502}}),update:S$1.route({method:`PATCH`,path:`/integrations/{id}`,tags:[`Integrations`],summary:`Update the shared integration settings`}).input(kc).output(wc).errors({BAD_GATEWAY:{status:502}}),remove:S$1.route({method:`DELETE`,path:`/integrations/{id}`,tags:[`Integrations`],summary:`Disconnect an integration`}).input(Ac).output(wc),backfills:S$1.route({method:`GET`,path:`/integrations/{id}/backfills`,tags:[`Integrations`],summary:`Get recent import progress`}).input(Dc).output(Ga$1(jc)),requestBackfill:S$1.route({method:`POST`,path:`/integrations/{id}/backfills`,tags:[`Integrations`],summary:`Request a historical import`}).input(Mc).output(jc),retryBackfill:S$1.route({method:`POST`,path:`/integrations/{id}/backfills/{jobId}/retry`,tags:[`Integrations`],summary:`Retry an interrupted import`}).input(Nc).output(jc)};const Im=qa$1({language:na$1().trim().max(80).optional(),platform:na$1().trim().max(120).optional(),timezone:na$1().trim().max(120).optional(),userAgent:na$1().trim().max(800).optional(),viewport:qa$1({width:Ta$1().int().positive().max(1e4),height:Ta$1().int().positive().max(1e4),devicePixelRatio:Ta$1().positive().max(10).optional()}).optional()}),Lm=qa$1({key:na$1().trim().min(1),message:na$1().trim().min(10).max(4e3),pageUrl:ca$1().max(2e3),pageTitle:na$1().trim().max(300).optional(),browser:Im.optional()}),Rm=qa$1({ok:oo$1(true)}),zm=qa$1({file:Fa$1().describe(`Image file to upload (max 10MB)`),folder:io$1([`avatars`,`events`,`teams`,`promoters`,`venues`]).describe(`Folder to upload to`),width:T$1().int().positive().optional().describe(`Target width in pixels`),height:T$1().int().positive().optional().describe(`Target height in pixels`)}),Bm=F$1,Vm=S$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 rasterized before publication. Returns the uploaded image URL and metadata.`,tags:[`Internal`]}).input(zm.strict()).output(Bm);var Hm={shareFeedback:S$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:Vm},Um={list:S$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(Fc.strict()).output(Lc).errors({BAD_GATEWAY:{status:502}}),get:S$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(Pc.strict()).output(Rc).errors({BAD_GATEWAY:{status:502}})};const Wm=S$1.route({method:`POST`,path:`/membership/programs/current`,summary:`Get a team's current membership program`,description:`Returns the one non-retired membership program for a team. Responds NOT_FOUND when the team sells no membership.`,tags:[`Membership`]}).input(Jc).output(Yc),Gm=S$1.route({method:`POST`,path:`/account/membership/payment-session`,summary:`Prepare the payment form for the current buyer`,description:`Ensures the signed-in buyer exists as a customer on the team's connected account and returns a customer session so the payment form can show their saved cards.`,tags:[`Membership`]}).input(Kc).errors({CONFLICT:{status:409,data:el.optional()}}).output(qc),Km=S$1.route({method:`POST`,path:`/account/membership/purchases`,summary:`Start a membership purchase for the current buyer`,description:`Creates the provider subscription for the signed-in buyer and returns what the browser needs to collect the first annual payment. A pending attempt for the same program is reused.`,tags:[`Membership`]}).input(Xc).errors({CONFLICT:{status:409,data:el.optional()}}).output(Zc),qm=S$1.route({method:`POST`,path:`/account/membership/purchases/{id}/detail`,summary:`Get one of the current buyer's membership purchases`,description:`Returns the purchase and, once payment is confirmed, the membership pass with its member number.`,tags:[`Membership`]}).input(Qc).output($c),Jm=S$1.route({method:`POST`,path:`/account/membership/passes/query`,summary:`List the current buyer's membership passes`,tags:[`Membership`]}).input(tl).output(nl),Ym=S$1.route({method:`POST`,path:`/membership/members/query`,summary:`List a team's members in member number order`,description:`Staff view of the passes in the team's current membership program. Requires membership.read.`,tags:[`Membership`]}).input(gl).output(_l),Xm=S$1.route({method:`POST`,path:`/membership/members`,summary:`Grant a free membership`,description:`Staff give a member a complimentary membership on the keyring they hand over. The keyring's serial becomes the member number. Requires membership.write.`,tags:[`Membership`]}).input(sl).errors({CONFLICT:{status:409,data:hl},NOT_FOUND:{status:404,data:hl.optional()}}).output(rl),Zm=S$1.route({method:`POST`,path:`/membership/members/number`,summary:`Check a keyring number`,description:`Whether a keyring's number can be given to someone, before their details are entered. Requires membership.write.`,tags:[`Membership`]}).input(cl).output(ll),Qm=S$1.route({method:`POST`,path:`/membership/door/redeem`,summary:`Use a member's discount at the door`,description:`Door staff scan a member's keyring when they pay cash. The member's one discount for the event is used, shared with online use, and nothing is sold. Requires ticket.scan for the event.`,tags:[`Membership`]}).input(ul).output(fl),$m=S$1.route({method:`POST`,path:`/membership/door/undo`,summary:`Undo a door discount just given`,description:`Gives back a door use the same staff member made in the last few minutes, such as a keyring scanned by mistake. Requires ticket.scan for the event.`,tags:[`Membership`]}).input(pl).errors({CONFLICT:{status:409}}).output(qa$1({undone:oo$1(true)}));var eh={program:Wm,paymentSession:Gm,startPurchase:Km,getPurchase:qm,myPasses:Jm,members:Ym,grant:Xm,checkNumber:Zm,end:S$1.route({method:`POST`,path:`/membership/members/{passId}/end`,summary:`End a free membership`,description:`Ends a complimentary membership now. The member keeps their number. Paid memberships end through a refund or cancellation instead. Requires membership.write.`,tags:[`Membership`]}).input(ml).errors({CONFLICT:{status:409,data:hl}}).output(rl),redeemAtDoor:Qm,undoDoorRedemption:$m};const Z=Ja$1({clientId:na$1().min(1).meta({description:`Immutable OAuth client identifier.`}),teamId:k$1,tenantId:na$1().min(1).meta({description:`Tenant this application belongs to.`}),name:na$1().trim().min(1).max(100).meta({description:`Operator-facing name for this website.`}),redirectUris:Ga$1(ca$1().max(2048)).min(1).max(10).meta({description:`Exact HTTPS callback URLs. HTTP is allowed only for non-production loopback.`}),enabled:ka$1().meta({description:`Disabled applications stop authenticating immediately.`}),revision:Ta$1().int().positive().meta({description:`Optimistic concurrency token. Send the value you read.`}),credentials:Ga$1(Ja$1({id:na$1().meta({description:`Opaque credential identifier. It reveals nothing about the secret.`}),expiresAt:Ta$1().int().nonnegative().optional().meta({description:`Credential expiry as Unix milliseconds. Omitted for credentials that do not expire.`})}))}).meta({description:`A Team-owned website login application. Credential secrets are never included.`}),th=Ja$1({teamId:k$1}).meta({description:`Lists the website applications a Team owns.`}),nh=Z.pick({teamId:true,name:true,redirectUris:true}).extend({requestId:oa$1().meta({description:`Caller-generated idempotency key. Reusing it returns a conflict rather than a second application.`})}).meta({description:`Registration request for a new Team website.`}),rh=Z.pick({teamId:true,clientId:true,revision:true}).meta({description:`Reference to one Team website application at a known revision. A stale revision is rejected.`}),ih=rh.extend({name:Z.shape.name,redirectUris:Z.shape.redirectUris,enabled:ka$1()}).meta({description:`Full replacement of a Team website's settings.`}),ah=rh.extend({credentialId:na$1().min(1).meta({description:`Credential to revoke. Revoking a credential that is already gone succeeds unchanged.`})}).meta({description:`Revocation request for one website credential.`}),oh=Ja$1({application:Z,clientSecret:na$1().meta({description:`New credential. Display once and store only on the website server.`})}).meta({description:`One-time credential issuance response. Must not be logged or cached.`}),Q$1=S$1.errors({CONFLICT:{status:409},SERVICE_UNAVAILABLE:{status:503}}),sh={create:Q$1.route({method:`POST`,path:`/oauth-applications/{clientId}/credentials`,tags:[`OAuth applications`],summary:`Issue a replacement credential`,description:`Issues a second credential so the website can roll over without downtime. Revoke the old one once it is out of use.`}).input(rh).output(oh),delete:Q$1.route({method:`DELETE`,path:`/oauth-applications/{clientId}/credentials/{credentialId}`,tags:[`OAuth applications`],summary:`Revoke a website credential`,description:`Revokes one credential. Revoking a credential that is already gone succeeds without changing the application, and the last credential of an enabled application cannot be revoked.`}).input(ah).output(Z)};var ch={list:Q$1.route({method:`GET`,path:`/oauth-applications`,tags:[`OAuth applications`],summary:`List Team website clients`,description:`Lists the website applications a Team owns. Credential secrets are never returned.`}).input(th).output(Ga$1(Z)),create:Q$1.route({method:`POST`,path:`/oauth-applications`,tags:[`OAuth applications`],summary:`Register a Team website`,description:`Registers a website login client for a Team and returns its first credential once.`}).input(nh).output(oh),update:Q$1.route({method:`PATCH`,path:`/oauth-applications/{clientId}`,tags:[`OAuth applications`],summary:`Update a Team website`,description:`Replaces a website's name, callbacks and enabled state at a known revision.`}).input(ih).output(Z),credentials:sh},lh={create:S$1.route({method:`POST`,path:`/account/orders`,summary:`Create an order for the current buyer`,description:`Creates an order owned by the signed-in buyer. The order is attributed to the verified website client's account Team.`,tags:[`Account`]}).input(Yu.strict()).output(Bd),list:S$1.route({method:`POST`,path:`/account/orders/query`,summary:`List the current buyer's website-Team purchase history`,description:`Returns the signed-in buyer's purchases for the verified website client's account Team, newest first.`,tags:[`Account`]}).input(Fu).output(Iu),get:S$1.route({method:`POST`,path:`/account/orders/{id}/detail`,summary:`Get one of the current buyer's purchases`,description:`Returns full detail for a purchase the signed-in buyer owns within the website client's account Team.`,tags:[`Account`]}).input(Lu).output(Ru),wallet:S$1.route({method:`POST`,path:`/account/orders/{id}/wallet`,summary:`Get a wallet pass for one of the current buyer's tickets`,description:`Returns an Apple Wallet pass or a validated Google Wallet URL for a ticket on a purchase the signed-in buyer owns.`,tags:[`Account`]}).input(zu).output(Bu)},uh={create:S$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(Vu.strict()).output(zd),update:S$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(ch$1.strict()).output(zd),remove:S$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(Xu.strict()).output(Va$1())};const dh=S$1.route({method:`POST`,path:`/orders/{id}/confirmation`,summary:`Read signed order confirmation and QR tickets`,tags:[`Orders`]}).input(Mu).output(Nu),fh=S$1.route({method:`GET`,path:`/orders/{id}`,summary:`Get order by ID`,tags:[`Orders`]}).input(ju.strict()).output(zd),ph=S$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`, advanced filters, and deterministic sorting.",tags:[`Orders`]}).input(Dd.strict()).output(Od),mh=S$1.route({method:`POST`,path:`/orders/quote`,summary:`Create order quote`,tags:[`Orders`]}).input(Ad.strict()).output(jd),hh=S$1.route({method:`POST`,path:`/orders`,summary:`Create a new order`,tags:[`Orders`]}).input(Yu.strict()).output(zd),gh=S$1.route({method:`POST`,path:`/orders/complimentary`,summary:`Create a complimentary order`,tags:[`Orders`]}).input(Wu.strict()).output(zd),_h=S$1.route({method:`PUT`,path:`/orders/{id}`,summary:`Update an order`,tags:[`Orders`]}).input(sh$1.strict()).output(zd),vh=S$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(Id.strict()).errors({BAD_REQUEST:{status:400,data:Rd.optional()}}).output(zd),yh=S$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(Fd.strict()).output(zd),bh=S$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(Nd.strict()).output(Pd);var xh={account:lh,cancel:S$1.route({method:`POST`,path:`/orders/{id}/cancel`,summary:`Cancel tickets or close an order without a refund`,tags:[`Orders`]}).input(Hu.strict()).output(xl),cancellations:S$1.route({method:`GET`,path:`/orders/{id}/cancellations`,summary:`Get staff cancellation history`,tags:[`Orders`]}).input(ju.pick({id:true}).strict()).output(Sl),confirmation:dh,get:fh,list:ph,create:hh,createComplimentary:gh,update:_h,reserve:vh,quote:mh,resend:yh,refund:bh,note:uh};const Sh=qa$1({payout:$$2});var Ch={create:S$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(Ah$1.strict()).output(Sh),update:S$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(Tg.strict()).output(Sh),remove:S$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(og$1.strict()).output(Sh)},wh={get:S$1.route({method:`GET`,path:`/payouts/{id}`,summary:`Get payout by ID with breakdown`,tags:[`Payouts`]}).input(sg$1.strict()).output(xg),list:S$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(ug$1.strict()).output(dg$1),preview:S$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(bg.strict()).output(yg),adjustments:S$1.route({method:`GET`,path:`/payouts/adjustments`,summary:`List Airwallex payout adjustments`,description:`Returns settlement-proven Airwallex refund and dispute adjustments grouped for tenant payout review.`,tags:[`Payouts`]}).input(Gh$1.strict()).output(Kh$1),adjustment:S$1.route({method:`GET`,path:`/payouts/adjustments/{id}`,summary:`Get payout adjustment by ID`,description:`Returns a payout adjustment detail payload with related adjustment rows, applications, and upcoming payout projections.`,tags:[`Payouts`]}).input(zh$1.strict()).output(qh$1),stats:S$1.route({method:`POST`,path:`/payouts/stats`,summary:`Get payout statistics`,tags:[`Payouts`]}).input(Cg.strict()).output(Sg),breakdown:S$1.route({method:`GET`,path:`/payouts/{payoutId}/breakdown`,summary:`Get payout breakdown`,tags:[`Payouts`]}).input(uh$1.strict()).output(rg$1),update:S$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(wg.strict()).output($$2),note:Ch};const $$1=qa$1({key:na$1(),memberId:na$1()}),Th=$$1.merge(jg).strict();var Eh={get:S$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(Th).output(Og),list:S$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($$1.merge(Mg).strict()).output(Ng),create:S$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($$1.and(Ag)).output(Og),update:S$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($$1.extend({id:na$1()}).merge(Pg).strict()).output(Og),remove:S$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(Th).output(Og)},Dh={summary:S$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(ca).output(la),revenue:S$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(ua).output(da),events:S$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(fa).output(pa)};const Oh=qa$1({eventCount:Ta$1().optional()}),kh=S$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(u_.strict()).output(x_),Ah=S$1.route({method:`POST`,path:`/promoters`,summary:`Create a new promoter`,description:`Create a new promoter brand within a team`,tags:[`Promoters`]}).input(f_.strict()).output(x_),jh=S$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(S_.strict()).output(x_);var Mh={get:kh,list:S$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(y_.strict()).output(b_),create:Ah,update:jh,remove:S$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(p_.strict()).errors({CONFLICT:{status:409,data:Oh.optional()}}).output(x_),performance:Dh},Nh={create:S$1.route({method:`POST`,path:`/reports`,summary:`Create report generation job`,description:`Creates an asynchronous report job. Download the report once the job status is COMPLETED.`,tags:[`Reports`]}).input(O_).output(A_),get:S$1.route({method:`GET`,path:`/reports/{id}`,summary:`Get report generation job`,tags:[`Reports`]}).input(k_.strict()).output(A_)};const Ph=S$1.route({method:`GET`,path:`/events/{eventId}/sections/{id}`,summary:`Get section by ID`,tags:[`Sections`]}).input(yd.strict()).output(Sd),Fh=S$1.route({method:`POST`,path:`/events/{eventId}/sections`,summary:`Create a new section`,tags:[`Sections`]}).input(_d.strict()).output(Sd),Ih=S$1.route({method:`PUT`,path:`/events/{eventId}/sections/{id}`,summary:`Update a section`,tags:[`Sections`]}).input(Cd.strict()).output(Sd);var Lh={get:Ph,list:S$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(bd.strict()).output(xd),create:Fh,update:Ih,remove:S$1.route({method:`DELETE`,path:`/events/{eventId}/sections/{id}`,summary:`Delete a section`,tags:[`Sections`]}).input(vd.strict()).output(Sd)};const Rh=S$1.route({method:`GET`,path:`/teams/{teamId}/tax-profiles`,summary:`List team tax profiles`,description:`Retrieve reusable organiser tax profiles and the default.`,tags:[`Team Tax`]}).input(Hs).output(qs),zh=S$1.route({method:`POST`,path:`/teams/{teamId}/tax-profiles`,summary:`Create a team tax profile`,description:`Create a reusable organiser tax profile.`,tags:[`Team Tax`]}).input(Ws).output(qs),Bh=S$1.route({method:`PUT`,path:`/teams/{teamId}/tax-profiles/{profileId}`,summary:`Update a team tax profile`,description:`Update a reusable organiser tax profile.`,tags:[`Team Tax`]}).input(Gs).output(qs);var Vh={create:zh,list:Rh,remove:S$1.route({method:`DELETE`,path:`/teams/{teamId}/tax-profiles/{profileId}`,summary:`Delete a team tax profile`,description:`Delete a tax profile that is not the required default and is not used by an event.`,tags:[`Team Tax`]}).input(Ks).output(qs),setDefault:S$1.route({method:`PUT`,path:`/teams/{teamId}/tax-profiles/{profileId}/default`,summary:`Set the default team tax profile`,description:`Use this profile by default for future events.`,tags:[`Team Tax`]}).input(Ks).output(qs),update:Bh},Hh={summary:S$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(ma).output(ha),revenue:S$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(ga).output(_a),funnel:S$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(Sa).output(Ca),traffic:S$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(Oa).output(ka),insights:S$1.route({method:`GET`,path:`/teams/{teamId}/performance/insights`,summary:`Get team performance insights`,description:`Order-backed revenue, tickets, refund, and dispute totals for an exact time window`,tags:[`Team Performance`]}).input(Aa).output(Na),payouts:S$1.route({method:`GET`,path:`/teams/{teamId}/performance/payouts`,summary:`Get team payout performance`,description:`Upcoming and recently paid payout totals aggregated across the team`,tags:[`Team Performance`]}).input(Fa).output(za),finance:S$1.route({method:`GET`,path:`/teams/{teamId}/performance/finance`,summary:`Get team finance overview`,description:`Finance overview combining gross order value with payout and adjustment data`,tags:[`Team Performance`]}).input(Ba).output(Ka),events:S$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(ba).output(xa),admissions:S$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(Ea).output(Da),orders:S$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(wa).output(Ta),tracking:S$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(qa).output(Ja)};const Uh=G_.meta({description:`Business records that prevent a team from being deleted`});var Wh={get:S$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(z_.strict()).output(H_),list:S$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(av.strict()).output(ov),create:S$1.route({method:`POST`,path:`/teams`,summary:`Create a new team`,description:`Create a new team organization`,tags:[`Teams`]}).input(B_.strict()).output(H_),slugAvailability:S$1.route({method:`GET`,path:`/teams/slugs/{slug}/availability`,summary:`Check team slug availability`,description:`Check whether a team URL slug is available within the current tenant.`,tags:[`Teams`]}).input(mv.strict()).output(hv),update:S$1.route({method:`PATCH`,path:`/teams/{key}`,summary:`Update a team`,description:`Update an existing team by ID or slug`,tags:[`Teams`]}).input(gv.strict()).output(H_),remove:S$1.route({method:`DELETE`,path:`/teams/{key}`,summary:`Start team deletion`,description:`Soft-delete a team immediately and queue its asynchronous cleanup by ID or slug`,tags:[`Teams`]}).input(z_.strict()).errors({CONFLICT:{status:409,data:Uh.optional()},FORBIDDEN:{status:403}}).output(J_),deletion:{get:S$1.route({method:`GET`,path:`/team-deletions/{id}`,summary:`Get team deletion status`,description:`Retrieve progress for an asynchronous team deletion request`,tags:[`Teams`]}).input(q_.strict()).errors({FORBIDDEN:{status:403},NOT_FOUND:{status:404}}).output(K_)},performance:Hh},Gh={list:S$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(ev.strict()).output(tv),get:S$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($_.strict()).output(nv),create:S$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(Q_.strict()).output(nv),accept:S$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(j_.strict()).output(vv),resend:S$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($_.strict()).output(nv),cancel:S$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(Z_.strict()).output(nv)},Kh={connect:S$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(cv.strict()).output(lv),disconnect:S$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(uv.strict()).output(I_),gateway:{update:S$1.route({method:`PATCH`,path:`/teams/{key}/payment/gateway`,summary:`Update Stripe Connect event routing`,description:`Configure whether Stripe Connect applies to every team event or only selected events.`,tags:[`Team Payments`]}).input(P_.strict()).output(I_)}};const qh=S$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(Iv),Jh=S$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(Lv);var Yh={approvals:S$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(Rv).output(zv),config:qh,regions:Jh};const Xh=S$1.route({method:`GET`,path:`/tickets/{id}`,summary:`Get ticket by ID`,tags:[`Tickets`]}).input(ey.strict()).output(ry),Zh=S$1.route({method:`POST`,path:`/tickets`,summary:`Create a new ticket`,tags:[`Tickets`]}).input($v.strict()).output(ry),Qh=S$1.route({method:`PUT`,path:`/tickets/{id}`,summary:`Update a ticket`,tags:[`Tickets`]}).input(yy.strict()).output(ry),$h=S$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(ty.strict()).output(ny),eg=S$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(Zv.strict()).output(Qv),tg=S$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(Yv.strict()).output(Jv),ng=S$1.route({method:`GET`,path:`/tickets/attendees/changes`,summary:`List attendee roster rows changed since an instant`,description:"Returns roster rows updated since `since`, so clients can keep a loaded roster window current without reloading it.",tags:[`Tickets`]}).input(Kv.strict()).output(qv),rg=S$1.route({method:`PUT`,path:`/tickets/{key}/check-in`,summary:`Check in tickets by key`,tags:[`Tickets`]}).input(iy.strict()).errors({BAD_REQUEST:{status:400,data:gy.optional()}}).output(_y),ig=S$1.route({method:`PUT`,path:`/tickets/{key}/check-out`,summary:`Check out tickets by key`,tags:[`Tickets`]}).input(iy.strict()).errors({BAD_REQUEST:{status:400,data:gy.optional()}}).output(_y);var ag={get:Xh,list:$h,attendees:{list:eg,index:tg,changes:ng},create:Zh,update:Qh,checkInByKey:rg,checkOutByKey:ig};const og=S$1.route({method:`GET`,path:`/users/me`,summary:`Get the current user and their team memberships`,tags:[`Users`]}).output(Dy),sg=qa$1({firstName:na$1().min(1).optional(),lastName:na$1().min(1).optional(),imageUrl:ca$1().nullable().optional(),metadata:no$1(na$1(),Fn).optional(),refreshToken:na$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`}),cg=S$1.route({method:`PATCH`,path:`/users/me`,summary:`Update the current user's profile`,tags:[`Users`]}).input(sg).output(Ty);var lg={me:og,remove:S$1.route({method:`DELETE`,path:`/users/me`,summary:`Delete the current user's account`,tags:[`Users`]}).output(Ey),update:cg};const ug={oauthApplication:ch,integration:Fm,analytics:kp,beneficiary:Pp,section:Lh,event:Nm,eventCollaborator:Pm,admission:Op,order:xh,ticket:ag,location:Um,coupon:Wp,payout:wh,teams:l_,permissionScope:Eh,promoter:Mh,report:Nh,team:Wh,teamInvite:Gh,teamPayment:Kh,teamMember:Nv,teamTax:Vh,tenant:Yh,venue:{get:S$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(jy.strict()).output(Iy),list:S$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(Py.strict()).output(Fy),create:S$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(ky.strict()).output(Iy),update:S$1.route({method:`PATCH`,path:`/venues/{key}`,summary:`Update a venue`,description:`Update an existing venue. Cannot change venue ownership (teamId)`,tags:[`Venues`]}).input(Ly.strict()).output(Iy),remove:S$1.route({method:`DELETE`,path:`/venues/{key}`,summary:`Delete a venue`,description:`Soft delete a venue`,tags:[`Venues`]}).input(Ay.strict()).output(Iy),linkLocation:S$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(jy.extend({locationKey:na$1().meta({description:`Location ID (loc_xxx) or Google Place ID to link to this venue`,examples:[`loc_01jps5cgsm7qxvh6watsons0eq`,`ChIJP3Sa8ziYEmsRUKgyFmh9AQM`]})}).strict()).output(Iy),unlinkLocation:S$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(jy.extend({locationKey:na$1().meta({description:`Location ID (loc_xxx) or Google Place ID to unlink from this venue`,examples:[`loc_01jps5cgsm7qxvh6watsons0eq`,`ChIJP3Sa8ziYEmsRUKgyFmh9AQM`]})}).strict()).output(Iy)},user:lg},dg={...ug,internal:Hm,membership:eh};function fg(e){return S$1.errors(nn$1).router(e)}const pg=fg(ug);fg(dg);const mg=pg,hg={sandbox:`https://api.sandbox.session.services`,prod:`https://api.session.services`};function gg(e){return e in hg?hg[e]:e}function _g(e){return gt$1(new yp(mg,{url:gg(e.environment),headers:{"x-tenant-id":e.tenantId??`tnt_01jqpj2t2kfvmstt6f6tzkbaf2`,...e.headers??{}}}))}
98
+
99
+ function i(e){let t=e.toLowerCase();return t?a(t)?`TABLET`:o(t)?`MOBILE`:`DESKTOP`:`DESKTOP`}function a(e){return /ipad|tablet|playbook|silk|kindle|sm-t|tab/.test(e)?true:/android/.test(e)&&!/mobile/.test(e)}function o(e){return /iphone|ipod|android|windows phone|blackberry|bb10|mobile/.test(e)}function s(e){let t=e.toLowerCase();return t?t.includes(`instagram`)?`Instagram App`:/fban|fbav|fb_iab|fbios|facebook/.test(t)?`Facebook App`:/tiktok|musical_ly|bytedance|bytelo/.test(t)?`TikTok App`:t.includes(`snapchat`)?`Snapchat App`:t.includes(`pinterest`)?`Pinterest App`:t.includes(`linkedin`)?`LinkedIn App`:/twitter|twitterandroid/.test(t)?`X App`:t.includes(`micromessenger`)?`WeChat App`:/\bline\//.test(t)?`LINE App`:t.includes(`gsa/`)?`Google App`:/edg\/|edge|edgios|edga/.test(t)?`Edge`:t.includes(`samsungbrowser`)?`Samsung Internet`:/opr\/|opera|opios/.test(t)?`Opera`:/firefox|fxios/.test(t)?`Firefox`:t.includes(`crios`)?`Chrome`:/iphone|ipod|ipad/.test(t)&&t.includes(`safari`)?`Mobile Safari`:t.includes(`android`)&&t.includes(`wv`)?`Android WebView`:/chrome|chromium/.test(t)?`Chrome`:t.includes(`safari`)?`Safari`:`Other`:`Unknown`}const c=`sessions_attribution`;function l(e,t){return e.get(t)||void 0}function u(e){return {source:l(e,`utm_source`),medium:l(e,`utm_medium`),name:l(e,`utm_campaign`),term:l(e,`utm_term`),content:l(e,`utm_content`)}}function d(e){return !!(e&&Object.values(e).some(Boolean))}function f(){try{let e=window.localStorage?.getItem(c);if(!e)return;let t=JSON.parse(e);if(!t||typeof t!=`object`){window.localStorage?.removeItem(c);return}let n=t;if(!n.expiresAt||n.expiresAt<=Date.now()){window.localStorage?.removeItem(c);return}return n}catch{return}}function p(){let e=f();if(!e)return;let t={source:m(e.utm_source),medium:m(e.utm_medium),name:m(e.utm_campaign),term:m(e.utm_term),content:m(e.utm_content)};return d(t)?t:void 0}function m(e){return typeof e==`string`&&e.length>0?e:void 0}function h(e){if(d(e))try{window.localStorage?.setItem(c,JSON.stringify({...f(),expiresAt:Date.now()+2592e6,utm_campaign:e?.name,utm_content:e?.content,utm_medium:e?.medium,utm_source:e?.source,utm_term:e?.term}));}catch{return}}function g(){if(typeof window>`u`)return;let e=u(new URLSearchParams(window.location.search));return d(e)?(h(e),e):p()}function ee(e){return {anonymous_id:e.anonymousId,browser:s(e.context.userAgent),browser_session_id:e.sessionId,device_type:i(e.context.userAgent),page_path:e.context.page.path,page_title:e.context.page.title,page_url:e.context.page.url,referrer:e.context.page.referrer,user_agent:e.context.userAgent||void 0,utm_campaign:e.context.campaign?.name,utm_content:e.context.campaign?.content,utm_medium:e.context.campaign?.medium,utm_source:e.context.campaign?.source,utm_term:e.context.campaign?.term}}function _(){return typeof window>`u`?{page:{url:``,path:``,title:``,referrer:void 0},userAgent:``,campaign:void 0}:{page:{url:window.location.href,path:window.location.pathname,title:document.title,referrer:document.referrer||void 0},userAgent:navigator.userAgent,campaign:g()}}function v(e,t,n){n==null||n===``||(e[t]=n);}function y(...e){return e.find(e=>e!=null&&e!==``)}function te(e,t){v(e,`content_name`,t.name),v(e,`value`,y(t.value,t.price)),e.content_type=`product`;}function b(e){return (t,n)=>{e(t,n.product_id),te(t,n);}}function ne(e){return (t,n)=>{e(t,n),v(t,`content_category`,n.category);}}function re(e,t){v(e,`value`,y(t.value,t.total));}function ie(e,t){v(e,`value`,y(t.value,t.total,t.revenue));}function ae(e,t){if(Array.isArray(e))return e.map(t)}const oe={"Product Viewed":`ViewContent`,"Product Added":`AddToCart`,"Checkout Started":`InitiateCheckout`,"Payment Info Entered":`AddPaymentInfo`,"Order Completed":`Purchase`},se=new Set([`AddPaymentInfo`,`AddToCart`,`AddToWishlist`,`CompleteRegistration`,`Contact`,`CustomizeProduct`,`Donate`,`FindLocation`,`InitiateCheckout`,`Lead`,`Purchase`,`Schedule`,`Search`,`StartTrial`,`SubmitApplication`,`Subscribe`,`ViewContent`]),x=new Set,S=new Map;function ce(){return Array.from(document.scripts??[]).some(e=>e.src.includes(`connect.facebook.net/en_US/fbevents.js`))}function le(e){if(ce())return true;let t=document.createElement(`script`);t.async=true,t.src=`https://connect.facebook.net/en_US/fbevents.js`,t.addEventListener?.(`load`,()=>{w(e,`[Facebook Pixel] fbevents.js loaded`);}),t.addEventListener?.(`error`,()=>{w(e,`[Facebook Pixel] fbevents.js failed to load`);});let n=document.getElementsByTagName(`script`)[0],r=n?.parentNode??document.head??document.body;return r?(r.insertBefore(t,n??null),w(e,`[Facebook Pixel] inserted fbevents.js`),true):false}function C(e,t){!t||!Array.isArray(t)||(e.content_ids=t.flatMap(e=>e.product_id?[e.product_id]:[]),e.num_items=t.length,e.contents=ae(t,e=>({id:e.product_id,quantity:e.quantity||1,item_price:e.price})));}function ue(e){if(typeof window>`u`)return false;let t=window;if(t.fbq)return le(e);let n=((...e)=>{n.callMethod?n.callMethod(...e):n.queue.push(e);});return n.push=n,n.loaded=true,n.version=`2.0`,n.queue=[],t.fbq=n,t._fbq||=n,le(e)}function de(e,t){let n=window;typeof window>`u`||!n.fbq||(t?n.fbq(`init`,e,{external_id:t}):n.fbq(`init`,e));}function fe(e,t,n){let r=window;typeof window>`u`||!r.fbq||r.fbq(e,t,n);}function w(e,...t){e&&console.log(...t);}function pe(e,t,n){let r=S.get(e);return !t||t===r?false:(de(e,t),S.set(e,t),x.add(e),w(n,`[Facebook Pixel] Re-initialized pixel ${e} with userId ${t}`),true)}function me(e,t,n){de(e,t),x.add(e),t&&S.set(e,t),w(n,`[Facebook Pixel] Initialized pixel ${e}`);}function T(e,t,n){return ue(n)?(pe(e,t,n)||x.has(e)||me(e,t,n),true):false}function he(e,t){t&&(e.content_ids=[t]);}const ge=b(he),_e=ne(ge);function ve(e,t){ge(e,t),t.product_id&&(e.contents=[{id:t.product_id,quantity:t.quantity||1,item_price:t.price}]);}function ye(e,t){C(e,t.products),e.content_type=`product`;}function E(e,t){C(e,t.products),re(e,t),e.content_type=`product`,v(e,`order_id`,t.order_id);}function be(e,t){C(e,t.products),ie(e,t),e.content_type=`product`,v(e,`order_id`,t.order_id);}function xe(e,t){v(e,`value`,t.value),t.product_id&&(e.content_ids=[t.product_id]);}const D={ViewContent:_e,AddToCart:ve,InitiateCheckout:E,AddPaymentInfo:E,Purchase:be,"Product List Viewed":ye,"Product Removed":ve,"Cart Viewed":E,"Coupon Applied":E,"Coupon Removed":E};function Se(e,t){let n={};return v(n,`currency`,t.currency),v(n,`event_id`,t.event_id),(D[e.name]??D[e.sourceName]??xe)(n,t),n}function Ce(e){return e.name||`Unknown`}function O(e,t=2){let n=e.trim();if(!n.includes(`%`)||t===0)return n;try{return O(decodeURIComponent(n),t-1)}catch{return n}}function we(e){let t=e.match(/[A-Za-z0-9]+/g);return t?t.map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(``):`Unknown`}function Te(e){let t=O(Ce(e)),n=oe[t]||t;return se.has(n)?{method:`track`,name:n,sourceName:t}:{method:`trackCustom`,name:we(n),sourceName:t}}function Ee(e=false){let t=(t,n)=>{n.fbId&&T(n.fbId,t.userId,e);},n=(t,n)=>{if(!n.fbId||!T(n.fbId,t.userId,e))return;let r=Te(t),i=Se(r,t.properties);fe(r.method,r.name,i),w(e,`[Facebook Pixel] Sent ${r.name}:`,i);},r=(t,n)=>{n.fbId&&T(n.fbId,t.userId,e)&&(fe(`track`,`PageView`,{}),w(e,`[Facebook Pixel] Sent PageView`));};return {name:`Facebook Pixel`,preload:t,track:n,page:r,screen:r,identify:(t,n)=>{!n.fbId||!t.userId||(T(n.fbId,t.userId,e),w(e,`[Facebook Pixel] Identity synced: ${t.userId}`));}}}const De={"Product Viewed":`view_item`,"Product Added":`add_to_cart`,"Product Removed":`remove_from_cart`,"Checkout Started":`begin_checkout`,"Payment Info Entered":`add_payment_info`,"Order Completed":`purchase`,"Product List Viewed":`view_item_list`,"Cart Viewed":`view_cart`,"Coupon Entered":`coupon_entered`,"Coupon Applied":`coupon_applied`,"Coupon Denied":`coupon_denied`,"Coupon Removed":`coupon_removed`},k=new Set;function Oe(e){return !!(e&&/^G-[A-Z0-9]+$/.test(e))}function A(e){return `google-analytics-${e}`}function ke(e){if(document.getElementById(A(e)))return;let t=document.createElement(`script`);t.id=A(e),t.async=true,t.src=`https://www.googletagmanager.com/gtag/js?id=${e}`;let n=document.getElementsByTagName(`script`)[0];n?.parentNode?.insertBefore(t,n);}function Ae(e,t){if(typeof window>`u`)return false;let n=window;return n.dataLayer=n.dataLayer||[],n.gtag||(n.gtag=function(){n.dataLayer?.push(arguments);},n.gtag(`js`,new Date)),ke(e),k.has(e)?true:(n.gtag(`config`,e,{send_page_view:false}),k.add(e),N(t,`[Google Analytics] Initialized ${e}`),true)}function j(e,t,n){if(typeof window>`u`)return;let r=window;r.gtag&&r.gtag(`event`,t,{...n,send_to:e});}function M(e,t,n){if(typeof window>`u`)return;let r=window;!r.gtag||!e||(r.gtag(`config`,e,{user_id:t,send_page_view:false}),N(n,`[Google Analytics] User ID updated`));}function N(e,...t){e&&console.log(...t);}function P(e){return typeof e==`string`&&e.length>0?e:void 0}function F(e,t,n){n==null||n===``||(e[t]=n);}function je(e){return e.find(e=>typeof e==`number`)}function Me(e){return typeof e.quantity==`number`?e.quantity:1}function Ne(e){return typeof e.price==`number`}function Pe(e){let t=e.filter(Ne);if(t.length!==0)return t.reduce((e,t)=>e+t.price*Me(t),0)}function Fe(e,t){return je([e.value,e.total,e.revenue,Pe(t)])}function Ie(e){return P(e.transaction_id)??P(e.order_id)}function Le(e){return {item_id:e.product_id||e.sku,item_name:e.name,item_category:e.category,item_variant:P(e.variant),price:e.price,quantity:e.quantity??1}}function Re(e){return !e.product_id||e.products?[]:[{item_id:e.product_id,item_name:e.name,item_category:e.category,item_variant:P(e.variant),price:e.price,quantity:e.quantity??1}]}function ze(e){return Array.isArray(e.products)?e.products.map(Le):[]}function Be(e){return [...Re(e),...ze(e)]}function Ve(e,t=2){let n=e.trim();if(!n.includes(`%`)||t===0)return n;try{return Ve(decodeURIComponent(n),t-1)}catch{return n}}function He(e){let t=e.match(/[A-Za-z0-9]+/g)?.join(`_`).toLowerCase()||`custom_event`;return /^[a-z]/.test(t)?t:`event_${t}`}function Ue(e){let t=Ve(e.name||`Unknown`);return De[t]||He(t)}function I(e,t){F(e,`event_id`,t.properties.event_id),F(e,`team_id`,t.properties.team_id),F(e,`promoter_id`,t.properties.promoter_id),F(e,`order_id`,t.properties.order_id);}function We(e,t){let n={},r=Be(t.properties);return I(n,t),r.length>0&&(n.items=r),F(n,`currency`,t.properties.currency),F(n,`value`,Fe(t.properties,r)),F(n,`coupon`,t.properties.coupon),F(n,`payment_type`,P(t.properties.payment_type)??P(t.properties.payment_method)),F(n,`item_list_id`,t.properties.list_id),F(n,`item_list_name`,t.properties.list_name),e===`purchase`&&F(n,`transaction_id`,Ie(t.properties)),n}function L(e,t){if(Oe(e.gaId))return Ae(e.gaId,t)?e.gaId:void 0}function Ge(e=false){let t;return {name:`Google Analytics`,preload:(t,n)=>{L(n,e);},track:(t,n)=>{let r=L(n,e);if(!r)return;let i=Ue(t),a=We(i,t);j(r,i,a),N(e,`[Google Analytics] Sent ${i}:`,a);},page:(t,n)=>{let r=L(n,e);if(!r)return;let i={page_location:t.context.page.url,page_path:t.context.page.path,page_title:t.context.page.title};I(i,t),F(i,`page_referrer`,t.context.page.referrer),j(r,`page_view`,i),N(e,`[Google Analytics] Sent page_view:`,i);},screen:(t,n)=>{let r=L(n,e);if(!r)return;let i={};I(i,t),F(i,`screen_name`,t.name||`Unknown`),j(r,`screen_view`,i),N(e,`[Google Analytics] Sent screen_view:`,i);},identify:(n,r)=>{if(!n.userId)return;let i=L(r,e);i&&(t=i,M(i,n.userId,e),N(e,`[Google Analytics] Identity available`));},reset:()=>{M(t,null,e),t=void 0;}}}const Ke=new Set(Object.values(hs));function qe(e){return e.messageId??`msg_${e.timestamp.toString(36)}`}function Je(e){let t=e.context.campaign??{};return {session_id:e.sessionId,anonymous_id:e.anonymousId,user_id:e.userId,page:{url:e.context.page.url,path:e.context.page.path,title:e.context.page.title},referrer:e.context.page.referrer,user_agent:e.context.userAgent,utm_source:t.source,utm_medium:t.medium,utm_campaign:t.name,utm_term:t.term,utm_content:t.content}}function Ye(e){let{event_id:t,team_id:n,promoter_id:r,...i}=e;return {eventId:t,teamId:n,promoterId:r,rest:i}}function Xe(e){return !!(e.eventId&&e.teamId&&e.promoterId)}function Ze(e,t,n){e&&console.warn(`[Sessions API] Missing required fields, skipping ${t}:`,{eventId:n.eventId,teamId:n.teamId,promoterId:n.promoterId});}function Qe(e){return !!(e&&Ke.has(e))}function $e(e,t,n){e&&console.warn(`[Sessions API] Invalid or missing eventType "${n}", skipping ${t}`);}function et(e,t,n){return n&&t?{...e,name:t}:e}function tt(e,t,n,r){return {eventId:t.eventId,teamId:t.teamId,promoterId:t.promoterId,eventType:n,messageId:qe(e),occurredAt:new Date(e.timestamp).toISOString(),properties:et(t.rest,e.name,r),context:Je(e)}}function nt(e,t,n){e&&console.log(`[Sessions API] Sending ${t}:`,n);}function rt(e,t=false){let n=(e,n)=>{t&&console.log(`[Sessions API] Preload received (no-op)`);},r=async(n,r,i)=>{let a=Ye(r.properties);if(!Xe(a)){Ze(t,n,a);return}let o=i??r.name;if(!Qe(o)){$e(t,n,o);return}let s=tt(r,a,o,i);nt(t,n,s),await e.analytics[n](s);};return {name:`Sessions API`,preload:n,track:(e,n)=>r(`track`,e).catch(e=>{t&&console.error(`[Sessions API] track error:`,e);}),page:(e,n)=>r(`page`,e,`Page Viewed`).catch(e=>{t&&console.error(`[Sessions API] page error:`,e);}),screen:(e,n)=>r(`screen`,e,`Screen Viewed`).catch(e=>{t&&console.error(`[Sessions API] screen error:`,e);}),identify:(e,n)=>{t&&console.log(`[Sessions API] Identify received (logged only):`,{userId:e.userId,traits:e.traits});}}}const it={"Product Viewed":`ViewContent`,"Product Added":`AddToCart`,"Checkout Started":`InitiateCheckout`,"Payment Info Entered":`AddPaymentInfo`,"Order Completed":`Purchase`},at=new Set([`AddPaymentInfo`,`AddToCart`,`AddToWishlist`,`ApplicationApproval`,`CompleteRegistration`,`Contact`,`CustomizeProduct`,`Download`,`FindLocation`,`InitiateCheckout`,`Purchase`,`Schedule`,`Search`,`StartTrial`,`SubmitApplication`,`SubmitForm`,`Subscribe`,`ViewContent`]),ot=new Set,R=`https://analytics.tiktok.com/i18n/pixel/events.js`;function st(e){return Array.from(document.scripts??[]).some(t=>t.src.includes(R)&&t.src.includes(`sdkid=${e}`))}function ct(e){if(st(e))return;let t=document.createElement(`script`);t.async=true,t.src=`${R}?sdkid=${e}&lib=ttq`;let n=document.getElementsByTagName(`script`)[0];n?.parentNode?.insertBefore(t,n);}function z(){return []}function lt(){if(typeof window>`u`)return false;let e=window;if(e.ttq)return true;e.TiktokAnalyticsObject=`ttq`;let t=z();t.methods=[`page`,`track`,`identify`,`instances`,`debug`,`on`,`off`,`once`,`ready`,`alias`,`group`,`enableCookie`,`disableCookie`],t.setAndDefer=(e,t)=>{e[t]=(...n)=>{e.push([t,...n]);};};for(let e of t.methods)t.setAndDefer(t,e);return t.instance=e=>{let n=t._i[e]??z();for(let e of t.methods)t.setAndDefer(n,e);return n},t._i={},t._t={},t._o={},t.load=(e,n={})=>{t._i[e]=t._i[e]??z(),t._i[e]._u=R,t._t[e]=Date.now(),t._o[e]=n,ct(e);},e.ttq=t,true}function ut(e){let t=window;typeof window>`u`||!t.ttq||t.ttq.load(e);}function dt(e,t){let n=window;typeof window>`u`||!n.ttq||n.ttq.instance(e).identify?.({external_id:t});}function ft(e){let t={};return v(t,`event_id`,e),Object.keys(t).length>0?t:void 0}function pt(e,t,n,r){let i=window;if(typeof window>`u`||!i.ttq)return;let a=i.ttq.instance(e).track;if(!a)return;let o=ft(r);if(o){a(t,n,o);return}a(t,n);}function mt(e,t){let n=window;if(typeof window>`u`||!n.ttq)return;let r=n.ttq.instance(e).page;if(!r)return;let i=ft(t);if(i){r(i);return}r();}function B(e,...t){e&&console.log(...t);}function V(e,t){return lt()?ot.has(e)?true:(ut(e),ot.add(e),B(t,`[TikTok Pixel] Initialized pixel ${e}`),true):false}function ht(e,t){v(e,`content_ids`,t?[t]:void 0);}function gt(e){return e.find(e=>typeof e==`number`)}function H(e){return typeof e.quantity==`number`?e.quantity:1}function _t(e){if(typeof e.price==`number`)return e.price*H(e)}function vt(e){let t=e.filter(e=>typeof e.price==`number`);if(t.length!==0)return t.reduce((e,t)=>e+Number(t.price)*H(t),0)}function yt(e){return Array.isArray(e)?vt(e):void 0}function U(e){return gt([e.value,e.total,e.revenue,yt(e.products),_t(e)])}function bt(e,t){ht(e,t.product_id),v(e,`content_name`,t.name),v(e,`price`,t.price),v(e,`quantity`,t.product_id?H(t):void 0),v(e,`value`,U(t)),e.content_type=`product`;}function xt(e,t){bt(e,t),v(e,`content_category`,t.category);}function St(e,t){bt(e,t);}function Ct(e){let t={content_type:`product`};return v(t,`content_id`,e.product_id),v(t,`content_name`,e.name),v(t,`quantity`,H(e)),v(t,`price`,e.price),t}function wt(e){return e.flatMap(e=>e.product_id?[e.product_id]:[])}function Tt(e){return e.reduce((e,t)=>e+H(t),0)}function Et(e,t){Array.isArray(t)&&(v(e,`contents`,t.map(Ct)),v(e,`content_ids`,wt(t)),v(e,`quantity`,Tt(t)),e.content_type=`product`);}function Dt(e,t){Et(e,t.products),v(e,`value`,U(t));}function Ot(e,t){Et(e,t.products),v(e,`value`,U(t)),v(e,`order_id`,t.order_id);}function kt(e,t){v(e,`value`,t.value);}const At={ViewContent:xt,AddToCart:St,InitiateCheckout:Dt,AddPaymentInfo:Dt,Purchase:Ot};function jt(e,t){let n={};return v(n,`currency`,t.currency),(At[e]??kt)(n,t),n}function Mt(e){return e.name||`Unknown`}function Nt(e,t=2){let n=e.trim();if(!n.includes(`%`)||t===0)return n;try{return Nt(decodeURIComponent(n),t-1)}catch{return n}}function Pt(e){let t=e.match(/[A-Za-z0-9]+/g)?.join(``)||`CustomEvent`;return /^[A-Za-z]/.test(t)?t.slice(0,50):`Event${t}`.slice(0,50)}function Ft(e){let t=Nt(Mt(e)),n=it[t]||t;return at.has(n)?n:Pt(n)}function W(e){return e.tikTokId}function It(e=false){let t=(t,n)=>{let r=W(n);r&&V(r,e)&&t.userId&&dt(r,t.userId);},n=(t,n)=>{let r=W(n);if(!r||!V(r,e))return;let i=Ft(t),a=jt(i,t.properties);pt(r,i,a,t.properties.event_id),B(e,`[TikTok Pixel] Sent ${i}:`,a);},r=(t,n)=>{let r=W(n);r&&V(r,e)&&(mt(r,t.properties.event_id),B(e,`[TikTok Pixel] Sent page view`));};return {name:`TikTok Pixel`,preload:t,track:n,page:r,screen:r,identify:(t,n)=>{let r=W(n);!r||!t.userId||V(r,e)&&(dt(r,t.userId),B(e,`[TikTok Pixel] Identity synced`));}}}const Lt={preload:(e,t,n)=>e.preload(t,n),track:(e,t,n)=>e.track(t,n),page:(e,t,n)=>e.page(t,n),screen:(e,t,n)=>e.screen(t,n),identify:(e,t,n)=>e.identify(t,n)},Rt=[`fbId`,`gaId`,`tikTokId`];function zt(e){return e||void 0}function Bt(e){let t=e??{};return Object.fromEntries(Rt.map(e=>[e,zt(t[e])]))}function Vt(e){return Rt.some(t=>!!e[t])}function Ht(e,t,n){e&&console.log(`[DestinationManager] Fetched config for promoter ${t}:`,n);}function Ut(e,t,n){e&&console.warn(`[DestinationManager] Failed to fetch promoter ${t} config:`,n);}function Wt(e,t=false,n={}){let r=new Map,i=new Map,a=n.sessions===false?null:rt(e,t),o=[n.facebook===false?null:Ee(t),n.googleAnalytics===false?null:Ge(t),n.tikTok===false?null:It(t)].filter(e=>!!e),s=async n=>{try{let r=Bt((await e.promoter.get({key:n})).promoter?.tracking);return Ht(t,n,r),r}catch(e){return Ut(t,n,e),{}}},c=async(e,n,r)=>{try{await d(e,n,r);}catch(n){t&&console.error(`[DestinationManager] ${e.name} error:`,n);}},l=e=>{try{e.reset?.();}catch(n){t&&console.error(`[DestinationManager] ${e.name} reset error:`,n);}},u=async e=>{let t=r.get(e);if(t)return t;let n=i.get(e);if(n)return n;n=s(e),i.set(e,n);try{let t=await n;return r.set(e,t),t}finally{i.delete(e);}},d=(e,t,n)=>Lt[t.type]?.(e,t,n);return {sendEvent:async(e,t)=>{if(!a&&o.length===0)return;let n=a?c(a,e,{}):Promise.resolve();if(o.length===0){await n;return}let r=await u(t);if(!Vt(r)){await n;return}let i=Promise.all(o.map(t=>c(t,e,r)));await Promise.all([n,i]);},clearCache:()=>{r.clear(),i.clear();for(let e of o)l(e);}}}var G={},Gt;function Kt(){if(Gt)return G;Gt=1,Object.defineProperty(G,"__esModule",{value:true}),G.parseCookie=s,G.parse=s,G.stringifyCookie=c,G.stringifySetCookie=l,G.serialize=l,G.parseSetCookie=u,G.stringifySetCookie=l,G.serialize=l;let e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,i=/^-?\d+$/,a=Object.prototype.toString,o=(()=>{let e=function(){};return e.prototype=Object.create(null),e})();function s(e,t){let n=new o,r=e.length;if(r<2)return n;let i=t?.decode||m,a=0;do{let t=f(e,a,r);if(t===-1)break;let o=d(e,a,r);if(t>o){a=e.lastIndexOf(`;`,t-1)+1;continue}let s=p(e,a,t);n[s]===void 0&&(n[s]=i(p(e,t+1,o))),a=o+1;}while(a<r);return n}function c(n,r){let i=r?.encode||encodeURIComponent,a=[];for(let r of Object.keys(n)){let o=n[r];if(o===void 0)continue;if(!e.test(r))throw TypeError(`cookie name is invalid: ${r}`);let s=i(o);if(!t.test(s))throw TypeError(`cookie val is invalid: ${o}`);a.push(`${r}=${s}`);}return a.join(`; `)}function l(i,a,o){let s=typeof i==`object`?i:{...o,name:i,value:String(a)},c=(typeof a==`object`?a:o)?.encode||encodeURIComponent;if(!e.test(s.name))throw TypeError(`argument name is invalid: ${s.name}`);let l=s.value?c(s.value):``;if(!t.test(l))throw TypeError(`argument val is invalid: ${s.value}`);let u=s.name+`=`+l;if(s.maxAge!==void 0){if(!Number.isInteger(s.maxAge))throw TypeError(`option maxAge is invalid: ${s.maxAge}`);u+=`; Max-Age=`+s.maxAge;}if(s.domain){if(!n.test(s.domain))throw TypeError(`option domain is invalid: ${s.domain}`);u+=`; Domain=`+s.domain;}if(s.path){if(!r.test(s.path))throw TypeError(`option path is invalid: ${s.path}`);u+=`; Path=`+s.path;}if(s.expires){if(!h(s.expires)||!Number.isFinite(s.expires.valueOf()))throw TypeError(`option expires is invalid: ${s.expires}`);u+=`; Expires=`+s.expires.toUTCString();}if(s.httpOnly&&(u+=`; HttpOnly`),s.secure&&(u+=`; Secure`),s.partitioned&&(u+=`; Partitioned`),s.priority)switch(typeof s.priority==`string`?s.priority.toLowerCase():void 0){case `low`:u+=`; Priority=Low`;break;case `medium`:u+=`; Priority=Medium`;break;case `high`:u+=`; Priority=High`;break;default:throw TypeError(`option priority is invalid: ${s.priority}`)}if(s.sameSite)switch(typeof s.sameSite==`string`?s.sameSite.toLowerCase():s.sameSite){case true:case `strict`:u+=`; SameSite=Strict`;break;case `lax`:u+=`; SameSite=Lax`;break;case `none`:u+=`; SameSite=None`;break;default:throw TypeError(`option sameSite is invalid: ${s.sameSite}`)}return u}function u(e,t){let n=t?.decode||m,r=e.length,a=d(e,0,r),o=f(e,0,a),s=o===-1?{name:``,value:n(p(e,0,a))}:{name:p(e,0,o),value:n(p(e,o+1,a))},c=a+1;for(;c<r;){let t=d(e,c,r),n=f(e,c,t),a=n===-1?p(e,c,t):p(e,c,n),o=n===-1?void 0:p(e,n+1,t);switch(a.toLowerCase()){case `httponly`:s.httpOnly=true;break;case `secure`:s.secure=true;break;case `partitioned`:s.partitioned=true;break;case `domain`:s.domain=o;break;case `path`:s.path=o;break;case `max-age`:o&&i.test(o)&&(s.maxAge=Number(o));break;case `expires`:if(!o)break;let e=new Date(o);Number.isFinite(e.valueOf())&&(s.expires=e);break;case `priority`:if(!o)break;let t=o.toLowerCase();(t===`low`||t===`medium`||t===`high`)&&(s.priority=t);break;case `samesite`:if(!o)break;let n=o.toLowerCase();(n===`lax`||n===`strict`||n===`none`)&&(s.sameSite=n);break}c=t+1;}return s}function d(e,t,n){let r=e.indexOf(`;`,t);return r===-1?n:r}function f(e,t,n){let r=e.indexOf(`=`,t);return r<n?r:-1}function p(e,t,n){let r=t,i=n;do{let t=e.charCodeAt(r);if(t!==32&&t!==9)break}while(++r<i);for(;i>r;){let t=e.charCodeAt(i-1);if(t!==32&&t!==9)break;i--;}return e.slice(r,i)}function m(e){if(e.indexOf(`%`)===-1)return e;try{return decodeURIComponent(e)}catch{return e}}function h(e){return a.call(e)===`[object Date]`}return G}var K=Kt();function qt(){let e=typeof globalThis>`u`?void 0:globalThis.TEST_HAS_DOCUMENT_COOKIE;return typeof e==`boolean`?e:typeof document==`object`&&typeof document.cookie==`string`}function Jt(e){return typeof e==`string`?K.parse(e):typeof e==`object`&&e?e:{}}function q(e,t={}){let n=Yt(e);if(!t.doNotParse)try{return JSON.parse(n)}catch{}return e}function Yt(e){return e&&e[0]===`j`&&e[1]===`:`?e.substr(2):e}var Xt=class{constructor(e,t={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=false,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;let e=this.cookies;this.cookies=K.parse(document.cookie),this._checkChanges(e);};let n=typeof document>`u`?``:document.cookie;this.cookies=Jt(e||n),this.defaultSetOptions=t,this.HAS_DOCUMENT_COOKIE=qt();}_emitChange(e){for(let t=0;t<this.changeListeners.length;++t)this.changeListeners[t](e);}_checkChanges(e){new Set(Object.keys(e).concat(Object.keys(this.cookies))).forEach(t=>{e[t]!==this.cookies[t]&&this._emitChange({name:t,value:q(this.cookies[t])});});}_startPolling(){this.pollingInterval=setInterval(this.update,300);}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval);}get(e,t={}){return t.doNotUpdate||this.update(),q(this.cookies[e],t)}getAll(e={}){e.doNotUpdate||this.update();let t={};for(let n in this.cookies)t[n]=q(this.cookies[n],e);return t}set(e,t,n){n=n?Object.assign(Object.assign({},this.defaultSetOptions),n):this.defaultSetOptions;let r=typeof t==`string`?t:JSON.stringify(t);this.cookies=Object.assign(Object.assign({},this.cookies),{[e]:r}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=K.serialize(e,r,n)),this._emitChange({name:e,value:t,options:n});}remove(e,t){let n=t=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),t),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[e],this.HAS_DOCUMENT_COOKIE&&(document.cookie=K.serialize(e,``,n)),this._emitChange({name:e,value:void 0,options:t});}addChangeListener(e){this.changeListeners.push(e),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===1&&(typeof window==`object`&&`cookieStore`in window?window.cookieStore.addEventListener(`change`,this.update):this._startPolling());}removeChangeListener(e){let t=this.changeListeners.indexOf(e);t>=0&&this.changeListeners.splice(t,1),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===0&&(typeof window==`object`&&`cookieStore`in window?window.cookieStore.removeEventListener(`change`,this.update):this._stopPolling());}removeAllChangeListeners(){for(;this.changeListeners.length>0;)this.removeChangeListener(this.changeListeners[0]);}};function J(){return typeof document>`u`?null:new Xt}function Zt(e){return J()?.get(e)??null}function Qt(e,t){let n=J();n&&n.set(e,t,{path:`/`,sameSite:`lax`,secure:window.location.protocol===`https:`});}function $t(e){let t=J();t&&t.remove(e,{path:`/`});}function en(e){if(typeof localStorage>`u`)return null;try{return localStorage.getItem(e)}catch{return null}}function tn(e,t){if(!(typeof localStorage>`u`))try{localStorage.setItem(e,t);}catch{}}function nn(e){if(!(typeof localStorage>`u`))try{localStorage.removeItem(e);}catch{}}const Y={deleteCookie:$t,getCookie:Zt,getItem:en,removeItem:nn,setCookie:Qt,setItem:tn};function X(){return us$1(Y)}function rn(){return ds(Y)}function an(){return fs$1(Y)}function on(e){if(typeof document>`u`||!document.body)return e;let t;try{t=document.createElement(`a`),t.href=e,t.style.display=`none`,document.body.appendChild(t);let n=t.href;t.dispatchEvent(new MouseEvent(`mousedown`,{bubbles:true}));let r=t.href;return r!==n&&r.includes(`_gl=`)?r:e}catch{return e}finally{t?.remove();}}function Q(){return globalThis.crypto?.randomUUID?.()??`msg_${Date.now().toString(36)}_${Math.random().toString(36).slice(2)}`}function dn(e=`tenant-web`){let t=_(),n=ee({anonymousId:rn(),context:t,sessionId:X()});return {name:e,referrer:t.page.referrer,utmSource:t.campaign?.source,utmMedium:t.campaign?.medium,utmCampaign:t.campaign?.name,browser:$(n.browser),deviceType:fn(n.device_type),sessionId:$(n.browser_session_id),anonymousId:$(n.anonymous_id)}}function $(e){return typeof e==`string`&&e.length>0?e:void 0}function fn(e){return e===`MOBILE`||e===`TABLET`||e===`DESKTOP`?e:void 0}function pn(e){let t=e.debug??false,n=Wt(e.client,t,e.destinations),r=X(),i=rn(),a;t&&console.log(`[Analytics] Initialized:`,{sessionId:r,anonymousId:i});let o=(e,t,n)=>{let o=_();return {type:e,name:t,properties:{...ee({anonymousId:i,context:o,sessionId:r}),...n},context:o,timestamp:Date.now(),messageId:Q(),sessionId:r,anonymousId:i,userId:a}},s=async(e,r)=>{try{await n.sendEvent(e,r);}catch(e){t&&console.error(`[Analytics] Failed to send event:`,e);}},c=(e,n)=>{let r=e.promoter_id;return !r&&t&&console.warn(`[Analytics] ${n}() called without promoter_id, skipping`),r},l=async(e,t={})=>{let n=c(t,`track`);n&&await s(o(`track`,e,t),n);},u=async(e={})=>{let t=c(e,`preload`);t&&await s(o(`preload`,`Preload`,e),t);},d=(e={})=>{u(e);},f=(e,t={})=>{l(e,t);},p=async(e,t={})=>{let n=c(t,`page`);n&&await s(o(`page`,e||`Page Viewed`,t),n);},m=(e,t={})=>{p(e,t);},h=async(e,t={})=>{let n=c(t,`screen`);n&&await s(o(`screen`,e||`Screen Viewed`,t),n);},g=(e,t={})=>{h(e,t);},v=async(e,n={})=>{a=e;let o=n.promoter_id;o&&await s({type:`identify`,properties:{},context:_(),timestamp:Date.now(),messageId:Q(),sessionId:r,anonymousId:i,userId:e,traits:n},o),t&&console.log(`[Analytics] User identified:`,e);},y=(e,t={})=>{v(e,t);},te=(e,n)=>{t&&console.log(`[Analytics] Alias called:`,{userId:e,previousId:n});},b=async(e,n={})=>{let o=n.promoter_id;o&&await s({type:`group`,properties:{},context:_(),timestamp:Date.now(),messageId:Q(),sessionId:r,anonymousId:i,userId:a,groupId:e,traits:n},o),t&&console.log(`[Analytics] Group called:`,{groupId:e,traits:n});};return {preload:d,preloadAsync:u,track:f,trackAsync:l,page:m,pageAsync:p,screen:g,screenAsync:h,identify:y,identifyAsync:v,alias:te,group:(e,t={})=>{b(e,t);},groupAsync:b,reset:()=>{let e=an();r=e.sessionId,i=e.anonymousId,a=void 0,n.clearCache(),t&&console.log(`[Analytics] Session reset:`,{sessionId:r,anonymousId:i});}}}
100
100
 
101
101
  const currencies = {
102
102
  // Airwallex-supported currencies
@@ -1965,382 +1965,409 @@ function isProductionApi(apiUrl) {
1965
1965
  }
1966
1966
 
1967
1967
  const UNLIMITED_CAP = 10;
1968
- const SCARCITY_THRESHOLD = 20;
1968
+ const SCARCITY_THRESHOLD = 5;
1969
1969
  const DEFAULT_LOCALE = "en-US";
1970
- function selectionKey(admissionId, sectionId) {
1971
- return `${admissionId}::${sectionId || "none"}`;
1970
+ function ticketSelectionKey(admissionId, sectionId) {
1971
+ return `${admissionId}::${sectionId || "none"}`;
1972
1972
  }
1973
- function parseSelectionKey(key) {
1974
- const [admissionId, sectionId] = key.split("::");
1975
- return {
1976
- admissionId,
1977
- sectionId: sectionId === "none" ? undefined : sectionId,
1978
- };
1973
+ function parseTicketSelectionKey(key) {
1974
+ const [admissionId = "", sectionId = "none"] = key.split("::");
1975
+ return {
1976
+ admissionId,
1977
+ sectionId: sectionId === "none" ? void 0 : sectionId
1978
+ };
1979
1979
  }
1980
- function priceTotal(price) {
1981
- if (!price)
1982
- return 0;
1983
- if ("total" in price && typeof price.total === "number")
1984
- return price.total;
1985
- return (price.base ?? 0) + (price.booking ?? 0);
1980
+ function ticketPriceTotal(price) {
1981
+ if (!price) {
1982
+ return 0;
1983
+ }
1984
+ if (typeof price.total === "number") {
1985
+ return price.total;
1986
+ }
1987
+ return (price.base ?? 0) + (price.booking ?? 0);
1988
+ }
1989
+ function ticketPriceBeforeBooking(price) {
1990
+ if (!price) {
1991
+ return 0;
1992
+ }
1993
+ return Math.max(ticketPriceTotal(price) - (price.booking ?? 0), 0);
1986
1994
  }
1987
1995
  function discountCouponFromSearch(search) {
1988
- return new URLSearchParams(search).get("discount") ?? "";
1996
+ return new URLSearchParams(search).get("discount") ?? "";
1989
1997
  }
1990
- function eventTimeZone(event) {
1991
- return event.location?.timeZone ?? "UTC";
1998
+ function ticketEventTimeZone(event) {
1999
+ return event.location?.timeZone ?? "UTC";
1992
2000
  }
1993
2001
  function eventEnded(event) {
1994
- return isNaiveDateTimePast(event.entryEndsAt, eventTimeZone(event));
2002
+ return isNaiveDateTimePast(event.entryEndsAt, ticketEventTimeZone(event));
1995
2003
  }
1996
2004
  function sectionsById(event) {
1997
- return new Map(event.sections.map((section) => [section.id, section]));
2005
+ return new Map(
2006
+ event.sections.map((section) => [section.id ?? "", section])
2007
+ );
1998
2008
  }
1999
2009
  function hasAdmissionSection(admission, sections) {
2000
- if (!admission.sectionId)
2001
- return true;
2002
- return sections.has(admission.sectionId);
2010
+ if (!admission.sectionId) return true;
2011
+ return sections.has(admission.sectionId);
2003
2012
  }
2004
2013
  function admissionSection(admission, sections) {
2005
- if (!admission.sectionId)
2006
- return undefined;
2007
- return sections.get(admission.sectionId);
2014
+ if (!admission.sectionId) return void 0;
2015
+ return sections.get(admission.sectionId);
2008
2016
  }
2009
2017
  function isAdmissionOnSale(admission, zone) {
2010
- if (isNaiveDateTimeFuture(admission.saleStartsAt, zone))
2011
- return false;
2012
- return !isNaiveDateTimePast(admission.saleEndsAt, zone);
2018
+ if (isNaiveDateTimeFuture(admission.saleStartsAt, zone)) return false;
2019
+ return !isNaiveDateTimePast(admission.saleEndsAt, zone);
2013
2020
  }
2014
2021
  function hasAdmissionCapacity(admission, section) {
2015
- return getAdmissionSelectionCapacity({ admission, section }) > 0;
2022
+ return getAdmissionSelectionCapacity({ admission, section }) > 0;
2016
2023
  }
2017
2024
  function isAdmissionPurchasable(admission, admissions, zone, sections) {
2018
- if (!hasAdmissionSection(admission, sections))
2019
- return false;
2020
- if (getAdmissionReleaseLabel(admission, admissions, zone))
2021
- return false;
2022
- if (!isAdmissionOnSale(admission, zone))
2023
- return false;
2024
- return hasAdmissionCapacity(admission, admissionSection(admission, sections));
2025
+ if (!hasAdmissionSection(admission, sections)) return false;
2026
+ if (getAdmissionReleaseLabel(admission, admissions, zone)) return false;
2027
+ if (!isAdmissionOnSale(admission, zone)) return false;
2028
+ return hasAdmissionCapacity(admission, admissionSection(admission, sections));
2025
2029
  }
2026
2030
  function hasPurchasableAdmissions(event) {
2027
- const sections = sectionsById(event);
2028
- const zone = eventTimeZone(event);
2029
- return event.admissions.some((admission) => isAdmissionPurchasable(admission, event.admissions, zone, sections));
2031
+ const sections = sectionsById(event);
2032
+ const zone = ticketEventTimeZone(event);
2033
+ return event.admissions.some(
2034
+ (admission) => isAdmissionPurchasable(admission, event.admissions, zone, sections)
2035
+ );
2030
2036
  }
2031
2037
  function admissionSaleLabel(admission, zone, locale) {
2032
- if (!isNaiveDateTimeFuture(admission.saleStartsAt, zone)) {
2033
- return null;
2034
- }
2035
- const date = parseNaiveDateTime(admission.saleStartsAt, "UTC");
2036
- const day = dateFormatter(locale, {
2037
- day: "numeric",
2038
- month: "short",
2039
- timeZone: "UTC",
2040
- weekday: "short",
2041
- }).format(date);
2042
- const time = dateFormatter(locale, {
2043
- hour: "numeric",
2044
- minute: "2-digit",
2045
- timeZone: "UTC",
2046
- }).format(date);
2047
- return {
2048
- text: `On sale ${day} · ${time}`,
2049
- tone: "muted",
2050
- };
2038
+ if (!isNaiveDateTimeFuture(admission.saleStartsAt, zone)) return null;
2039
+ const date = parseNaiveDateTime(admission.saleStartsAt, "UTC");
2040
+ const day = dateFormatter(locale, {
2041
+ day: "numeric",
2042
+ month: "short",
2043
+ timeZone: "UTC",
2044
+ weekday: "short"
2045
+ }).format(date);
2046
+ const time = dateFormatter(locale, {
2047
+ hour: "numeric",
2048
+ minute: "2-digit",
2049
+ timeZone: "UTC"
2050
+ }).format(date);
2051
+ return {
2052
+ text: `On sale ${day} \xB7 ${time}`,
2053
+ tone: "muted"
2054
+ };
2051
2055
  }
2052
2056
  function dateFormatter(locale, options) {
2053
- try {
2054
- return new Intl.DateTimeFormat(locale, options);
2055
- }
2056
- catch {
2057
- return new Intl.DateTimeFormat(DEFAULT_LOCALE, options);
2058
- }
2057
+ try {
2058
+ return new Intl.DateTimeFormat(locale, options);
2059
+ } catch {
2060
+ return new Intl.DateTimeFormat(DEFAULT_LOCALE, options);
2061
+ }
2059
2062
  }
2060
2063
  function admissionStatus(input) {
2061
- if (input.value === "DOOR" && (input.soldOut || input.saleEnded)) {
2062
- return { text: "Available At Door", tone: "success" };
2063
- }
2064
- if (input.soldOut)
2065
- return { text: "Sold Out", tone: "destructive" };
2066
- if (!input.saleEnded)
2067
- return null;
2068
- return { text: "Sale Ended", tone: "destructive" };
2064
+ if (input.value === "DOOR" && (input.soldOut || input.saleEnded)) {
2065
+ return { text: "Available At Door", tone: "success" };
2066
+ }
2067
+ if (input.soldOut) return { text: "Sold Out", tone: "destructive" };
2068
+ if (!input.saleEnded) return null;
2069
+ return { text: "Sale Ended", tone: "destructive" };
2069
2070
  }
2070
2071
  function endedStatus(admissions, zone) {
2071
- const ended = admissions.filter((admission) => isNaiveDateTimePast(admission.saleEndsAt, zone));
2072
- if (ended.length === 0)
2073
- return undefined;
2074
- if (ended.some((admission) => admission.saleEndsBehavior === "DOOR"))
2075
- return "DOOR";
2076
- if (ended.every((admission) => admission.saleEndsBehavior === "SOLD_OUT"))
2077
- return "SOLD_OUT";
2078
- return "SALE_ENDED";
2072
+ const ended = admissions.filter(
2073
+ (admission) => isNaiveDateTimePast(admission.saleEndsAt, zone)
2074
+ );
2075
+ if (ended.length === 0) return void 0;
2076
+ if (ended.some((admission) => admission.saleEndsBehavior === "DOOR")) {
2077
+ return "DOOR";
2078
+ }
2079
+ if (ended.every((admission) => admission.saleEndsBehavior === "SOLD_OUT")) {
2080
+ return "SOLD_OUT";
2081
+ }
2082
+ return "SALE_ENDED";
2079
2083
  }
2080
2084
  function salesStatus(event) {
2081
- const sections = sectionsById(event);
2082
- const admissions = event.admissions.filter((admission) => hasAdmissionSection(admission, sections));
2083
- if (admissions.length === 0)
2084
- return undefined;
2085
- if (hasPurchasableAdmissions(event))
2086
- return "ONLINE";
2087
- return endedStatus(admissions, eventTimeZone(event));
2085
+ const sections = sectionsById(event);
2086
+ const admissions = event.admissions.filter(
2087
+ (admission) => hasAdmissionSection(admission, sections)
2088
+ );
2089
+ if (admissions.length === 0) return void 0;
2090
+ if (hasPurchasableAdmissions(event)) return "ONLINE";
2091
+ return endedStatus(admissions, ticketEventTimeZone(event));
2088
2092
  }
2089
2093
  function hasDisplayableAdmissions(event) {
2090
- const sections = sectionsById(event);
2091
- return event.admissions.some((admission) => hasAdmissionSection(admission, sections));
2094
+ const sections = sectionsById(event);
2095
+ return event.admissions.some(
2096
+ (admission) => hasAdmissionSection(admission, sections)
2097
+ );
2092
2098
  }
2093
2099
  function isDoorOnly(event) {
2094
- if (hasPurchasableAdmissions(event))
2095
- return false;
2096
- return salesStatus(event) === "DOOR";
2100
+ if (hasPurchasableAdmissions(event)) return false;
2101
+ return salesStatus(event) === "DOOR";
2097
2102
  }
2098
- function getTicketingState(event) {
2099
- const ended = eventEnded(event);
2100
- const externalTicketUrl = event.url || undefined;
2101
- const doorOnly = isDoorOnly(event);
2102
- const showExternalTicketing = !ended && Boolean(externalTicketUrl);
2103
- const showTicketing = !ended && !showExternalTicketing && hasDisplayableAdmissions(event);
2104
- return {
2105
- externalTicketUrl,
2106
- isDoorOnly: doorOnly,
2107
- isEnded: ended,
2108
- isUnavailableForSale: !doorOnly && !hasPurchasableAdmissions(event) && showTicketing,
2109
- showExternalTicketing,
2110
- showTicketing,
2111
- ticketHeading: doorOnly ? "Tickets at the Door" : "Get Tickets",
2112
- };
2103
+ function getTicketSelectorState(event) {
2104
+ const ended = eventEnded(event);
2105
+ const externalTicketUrl = event.url || void 0;
2106
+ const doorOnly = isDoorOnly(event);
2107
+ const showExternalTicketing = !ended && Boolean(externalTicketUrl);
2108
+ const showTicketing = !ended && !showExternalTicketing && hasDisplayableAdmissions(event);
2109
+ return {
2110
+ externalTicketUrl,
2111
+ isDoorOnly: doorOnly,
2112
+ isEnded: ended,
2113
+ isUnavailableForSale: !doorOnly && !hasPurchasableAdmissions(event) && showTicketing,
2114
+ showExternalTicketing,
2115
+ showTicketing,
2116
+ ticketHeading: doorOnly ? "Tickets at the Door" : "Get Tickets"
2117
+ };
2113
2118
  }
2114
- function visibleAdmissions(event, mode) {
2115
- if (mode !== "door")
2116
- return event.admissions;
2117
- const zone = eventTimeZone(event);
2118
- return event.admissions.filter((admission) => !getAdmissionReleaseLabel(admission, event.admissions, zone) &&
2119
- admission.saleEndsBehavior === "DOOR" &&
2120
- isNaiveDateTimePast(admission.saleEndsAt, zone));
2119
+ function getVisibleTicketAdmissions(event, mode) {
2120
+ if (mode !== "door") return event.admissions;
2121
+ const zone = ticketEventTimeZone(event);
2122
+ return event.admissions.filter(
2123
+ (admission) => !getAdmissionReleaseLabel(admission, event.admissions, zone) && admission.saleEndsBehavior === "DOOR" && isNaiveDateTimePast(admission.saleEndsAt, zone)
2124
+ );
2121
2125
  }
2122
2126
  function isStackableAdmission(input) {
2123
- if (input.mode === "door")
2124
- return true;
2125
- if (!input.event)
2126
- return true;
2127
- return !getAdmissionDisplayState({
2128
- admission: input.admission,
2129
- event: input.event,
2130
- section: input.section,
2131
- }).disabled;
2127
+ if (input.mode === "door") return true;
2128
+ if (!input.event) return true;
2129
+ return !getTicketAdmissionDisplayState({
2130
+ admission: input.admission,
2131
+ event: input.event,
2132
+ section: input.section
2133
+ }).disabled;
2132
2134
  }
2133
2135
  function stackedAdmissionBase(input) {
2134
- const key = selectionKey(input.admission.id, input.section.id);
2135
- return getAdmissionPriceDisplay({
2136
- admission: input.admission,
2137
- initialPrice: input.initialAdmissionPrices?.[key],
2138
- previewItem: input.previewItems.get(key),
2139
- quoteItem: input.quoteItems.get(key),
2140
- }).base;
2136
+ const key = ticketSelectionKey(
2137
+ input.admission.id ?? "",
2138
+ input.section.id ?? null
2139
+ );
2140
+ return getTicketAdmissionPriceDisplay({
2141
+ admission: input.admission,
2142
+ initialPrice: input.initialAdmissionPrices?.[key],
2143
+ previewItem: input.previewItems.get(key),
2144
+ quoteItem: input.quoteItems.get(key)
2145
+ }).base;
2141
2146
  }
2142
2147
  function compareStackedAdmissions(input, section) {
2143
- const previewItems = quoteItemsBySelection(input.previewQuote ?? null);
2144
- const quoteItems = quoteItemsBySelection(input.quote ?? null);
2145
- return (a, b) => {
2146
- const price = stackedAdmissionBase({
2147
- admission: a,
2148
- initialAdmissionPrices: input.initialAdmissionPrices,
2149
- previewItems,
2150
- quoteItems,
2151
- section,
2152
- }) -
2153
- stackedAdmissionBase({
2154
- admission: b,
2155
- initialAdmissionPrices: input.initialAdmissionPrices,
2156
- previewItems,
2157
- quoteItems,
2158
- section,
2159
- });
2160
- if (price !== 0)
2161
- return price;
2162
- const order = a.order - b.order;
2163
- if (order !== 0)
2164
- return order;
2165
- return a.id.localeCompare(b.id);
2166
- };
2148
+ const previewItems = quoteItemsByTicketSelection(input.previewQuote ?? null);
2149
+ const quoteItems = quoteItemsByTicketSelection(input.quote ?? null);
2150
+ return (a, b) => {
2151
+ const price = stackedAdmissionBase({
2152
+ admission: a,
2153
+ initialAdmissionPrices: input.initialAdmissionPrices,
2154
+ previewItems,
2155
+ quoteItems,
2156
+ section
2157
+ }) - stackedAdmissionBase({
2158
+ admission: b,
2159
+ initialAdmissionPrices: input.initialAdmissionPrices,
2160
+ previewItems,
2161
+ quoteItems,
2162
+ section
2163
+ });
2164
+ if (price !== 0) return price;
2165
+ const order = a.order - b.order;
2166
+ if (order !== 0) return order;
2167
+ return (a.id ?? "").localeCompare(b.id ?? "");
2168
+ };
2167
2169
  }
2168
2170
  function cap(value) {
2169
- if (value == null || value === -1)
2170
- return Number.POSITIVE_INFINITY;
2171
- return Math.max(0, value);
2171
+ if (value == null || value === -1) return Number.POSITIVE_INFINITY;
2172
+ return Math.max(0, value);
2172
2173
  }
2173
2174
  function shouldShowNextStackedAdmission(admission) {
2174
- const remaining = cap(admission.available);
2175
- if (!Number.isFinite(remaining))
2176
- return false;
2177
- const limit = cap(admission.limit);
2178
- if (!Number.isFinite(limit))
2179
- return remaining < UNLIMITED_CAP;
2180
- return limit > remaining;
2175
+ const remaining = cap(admission.available);
2176
+ if (!Number.isFinite(remaining)) return false;
2177
+ const limit = cap(admission.limit);
2178
+ if (!Number.isFinite(limit)) return remaining < UNLIMITED_CAP;
2179
+ return limit > remaining;
2181
2180
  }
2182
2181
  function displayedSectionAdmissions(section, admissions, input) {
2183
- const sorted = admissions
2184
- .filter((admission) => admission.sectionId === section.id)
2185
- .sort((a, b) => a.order - b.order);
2186
- if (section.visibility !== "STACKED" || sorted.length <= 1) {
2187
- return sorted;
2188
- }
2189
- const mode = input.mode ?? "default";
2190
- const stackable = sorted.filter((admission) => isStackableAdmission({
2191
- admission,
2192
- event: input.event,
2193
- mode,
2194
- section,
2195
- }));
2196
- const candidates = stackable.length > 0 ? stackable : sorted;
2197
- const [admission, next] = [...candidates].sort(compareStackedAdmissions(input, section));
2198
- if (!admission)
2199
- return [];
2200
- if (!next || !shouldShowNextStackedAdmission(admission)) {
2201
- return [admission];
2202
- }
2203
- return [admission, next];
2182
+ if (!section.id) return [];
2183
+ const sorted = admissions.filter((admission2) => admission2.sectionId === section.id).sort((a, b) => a.order - b.order);
2184
+ if (section.visibility !== "STACKED" || sorted.length <= 1) return sorted;
2185
+ const mode = input.mode ?? "default";
2186
+ const stackable = sorted.filter(
2187
+ (admission2) => isStackableAdmission({
2188
+ admission: admission2,
2189
+ event: input.event,
2190
+ mode,
2191
+ section
2192
+ })
2193
+ );
2194
+ const candidates = stackable.length > 0 ? stackable : sorted;
2195
+ const [admission, next] = [...candidates].sort(
2196
+ compareStackedAdmissions(input, section)
2197
+ );
2198
+ if (!admission) return [];
2199
+ if (!next || !shouldShowNextStackedAdmission(admission)) return [admission];
2200
+ return [admission, next];
2204
2201
  }
2205
2202
  function sectionItems(sections, admissions, input) {
2206
- return sections
2207
- .map((section) => ({
2208
- type: "section",
2209
- section,
2210
- admissions: displayedSectionAdmissions(section, admissions, input),
2211
- }))
2212
- .filter((item) => item.admissions.length > 0);
2203
+ return sections.map((section) => ({
2204
+ admissions: displayedSectionAdmissions(section, admissions, input),
2205
+ section,
2206
+ type: "section"
2207
+ })).filter((item) => item.admissions.length > 0);
2213
2208
  }
2214
2209
  function topLevelOrder(item) {
2215
- if (item.type === "section")
2216
- return item.section.order;
2217
- return item.admission.order;
2210
+ if (item.type === "section") return item.section.order;
2211
+ return item.admission.order;
2218
2212
  }
2219
- function topLevelTicketItems(sections, admissions, input = {}) {
2220
- return [
2221
- ...sectionItems(sections, admissions, input),
2222
- ...admissions
2223
- .filter((admission) => !admission.sectionId)
2224
- .map((admission) => ({ type: "admission", admission })),
2225
- ].sort((a, b) => topLevelOrder(a) - topLevelOrder(b));
2213
+ function getTopLevelTicketItems(sections, admissions, input = {}) {
2214
+ return [
2215
+ ...sectionItems(sections, admissions, input),
2216
+ ...admissions.filter((admission) => !admission.sectionId).map((admission) => ({ admission, type: "admission" }))
2217
+ ].sort((a, b) => topLevelOrder(a) - topLevelOrder(b));
2226
2218
  }
2227
2219
  function isUnlimitedAdmission(admission, section) {
2228
- if ((admission.available ?? 0) !== -1)
2229
- return false;
2230
- if (admission.capacity !== -1)
2231
- return false;
2232
- return !section || (section.available ?? 0) === -1;
2220
+ if (admission.available !== -1) return false;
2221
+ if (admission.capacity !== -1) return false;
2222
+ return !section || section.available === -1;
2233
2223
  }
2234
2224
  function maxQuantity(admission, section) {
2235
- if (isUnlimitedAdmission(admission, section))
2236
- return UNLIMITED_CAP;
2237
- return Math.min(getAdmissionSelectionCapacity({ admission, section }), UNLIMITED_CAP);
2225
+ if (isUnlimitedAdmission(admission, section)) return UNLIMITED_CAP;
2226
+ return Math.min(
2227
+ getAdmissionSelectionCapacity({ admission, section }),
2228
+ UNLIMITED_CAP
2229
+ );
2238
2230
  }
2239
2231
  function showScarcity(admission, soldOut, disabled) {
2240
- return [
2241
- !soldOut,
2242
- !disabled,
2243
- (admission.available ?? 0) > 0,
2244
- (admission.available ?? 0) < SCARCITY_THRESHOLD,
2245
- ].every(Boolean);
2232
+ const available = admission.available ?? 0;
2233
+ return [
2234
+ !soldOut,
2235
+ !disabled,
2236
+ available > 0,
2237
+ available <= SCARCITY_THRESHOLD
2238
+ ].every(Boolean);
2246
2239
  }
2247
- function getAdmissionDisplayState(input) {
2248
- const zone = eventTimeZone(input.event);
2249
- const releaseLabel = getAdmissionReleaseLabel(input.admission, input.event.admissions, zone);
2250
- const saleNotStarted = isNaiveDateTimeFuture(input.admission.saleStartsAt, zone);
2251
- const saleEnded = isNaiveDateTimePast(input.admission.saleEndsAt, zone);
2252
- const saleEndedSoldOut = saleEnded && input.admission.saleEndsBehavior === "SOLD_OUT";
2253
- const soldOut = Boolean(input.sectionSoldOut) ||
2254
- saleEndedSoldOut ||
2255
- isAdmissionSoldOut({
2256
- admission: input.admission,
2257
- section: input.section,
2258
- });
2259
- const disabled = soldOut || saleNotStarted || saleEnded;
2260
- const status = admissionStatus({
2261
- saleEnded,
2262
- soldOut,
2263
- value: input.admission.saleEndsBehavior,
2264
- });
2265
- return {
2266
- disabled: disabled || Boolean(releaseLabel),
2267
- label: releaseLabel
2268
- ? { ...releaseLabel, tone: "muted" }
2269
- : admissionSaleLabel(input.admission, zone, input.locale ?? DEFAULT_LOCALE),
2270
- maxQuantity: maxQuantity(input.admission, input.section),
2271
- postSale: saleEnded,
2272
- showScarcity: showScarcity(input.admission, soldOut, disabled),
2273
- soldOut,
2274
- statusLabel: status?.text ?? null,
2275
- statusTone: status?.tone ?? null,
2276
- };
2240
+ function getTicketAdmissionDisplayState(input) {
2241
+ const zone = ticketEventTimeZone(input.event);
2242
+ const releaseLabel = getAdmissionReleaseLabel(
2243
+ input.admission,
2244
+ input.event.admissions,
2245
+ zone
2246
+ );
2247
+ const saleNotStarted = isNaiveDateTimeFuture(
2248
+ input.admission.saleStartsAt,
2249
+ zone
2250
+ );
2251
+ const saleEnded = isNaiveDateTimePast(input.admission.saleEndsAt, zone);
2252
+ const saleEndedSoldOut = saleEnded && input.admission.saleEndsBehavior === "SOLD_OUT";
2253
+ const soldOut = Boolean(input.sectionSoldOut) || saleEndedSoldOut || isAdmissionSoldOut({
2254
+ admission: input.admission,
2255
+ section: input.section
2256
+ });
2257
+ const disabled = soldOut || saleNotStarted || saleEnded;
2258
+ const status = admissionStatus({
2259
+ saleEnded,
2260
+ soldOut,
2261
+ value: input.admission.saleEndsBehavior
2262
+ });
2263
+ return {
2264
+ disabled: disabled || Boolean(releaseLabel),
2265
+ label: releaseLabel ? { ...releaseLabel, tone: "muted" } : admissionSaleLabel(
2266
+ input.admission,
2267
+ zone,
2268
+ input.locale ?? DEFAULT_LOCALE
2269
+ ),
2270
+ maxQuantity: maxQuantity(input.admission, input.section),
2271
+ postSale: saleEnded,
2272
+ showScarcity: showScarcity(input.admission, soldOut, disabled),
2273
+ soldOut,
2274
+ statusLabel: status?.text ?? null,
2275
+ statusTone: status?.tone ?? null
2276
+ };
2277
2277
  }
2278
2278
  function quoteItemUnits(item) {
2279
- return Math.max(item?.quantity ?? 1, 1);
2279
+ return Math.max(item?.quantity ?? 1, 1);
2280
2280
  }
2281
- function getAdmissionPriceDisplay(input) {
2282
- const item = input.quoteItem ?? input.previewItem;
2283
- if (item) {
2284
- const units = quoteItemUnits(item);
2285
- const base = Math.round(Math.max((item.price.base + item.price.discount) / units, 0));
2286
- const fees = Math.round(item.price.booking / units);
2287
- if (!item.price.discount || item.price.discount >= 0) {
2288
- return {
2289
- base,
2290
- discounted: false,
2291
- fees,
2292
- };
2293
- }
2294
- return {
2295
- base,
2296
- discounted: true,
2297
- fees,
2298
- gross: Math.round(item.price.base / units),
2299
- };
2300
- }
2301
- if (input.initialPrice && input.initialPrice.discount < 0) {
2302
- const fees = input.admission.price.booking ?? 0;
2303
- return {
2304
- base: Math.max(input.initialPrice.total - fees, 0),
2305
- discounted: true,
2306
- fees,
2307
- gross: Math.max(input.initialPrice.gross - fees, 0),
2308
- };
2309
- }
2281
+ function getTicketAdmissionPriceDisplay(input) {
2282
+ const item = input.quoteItem ?? input.previewItem;
2283
+ if (item) {
2284
+ const units = quoteItemUnits(item);
2285
+ const fees = Math.round(item.price.booking / units);
2286
+ const base = Math.max(
2287
+ Math.round(
2288
+ (item.price.total ?? item.price.base + item.price.booking + item.price.discount) / units
2289
+ ) - fees,
2290
+ 0
2291
+ );
2292
+ if (item.price.discount >= 0) return { base, discounted: false, fees };
2310
2293
  return {
2311
- base: input.admission.price.base ?? 0,
2312
- discounted: false,
2313
- fees: input.admission.price.booking ?? 0,
2294
+ base,
2295
+ discounted: true,
2296
+ fees,
2297
+ gross: Math.max(
2298
+ Math.round(
2299
+ (item.price.gross ?? item.price.base + item.price.booking) / units
2300
+ ) - fees,
2301
+ 0
2302
+ )
2314
2303
  };
2304
+ }
2305
+ if (input.initialPrice && input.initialPrice.discount < 0) {
2306
+ const fees = input.admission.price.booking ?? 0;
2307
+ return {
2308
+ base: Math.max(input.initialPrice.total - fees, 0),
2309
+ discounted: true,
2310
+ fees,
2311
+ gross: Math.max(input.initialPrice.gross - fees, 0)
2312
+ };
2313
+ }
2314
+ return {
2315
+ base: ticketPriceBeforeBooking(input.admission.price),
2316
+ discounted: false,
2317
+ fees: input.admission.price.booking ?? 0
2318
+ };
2315
2319
  }
2316
- function quoteItemsBySelection(quote) {
2317
- return createQuoteItemMap(quote);
2320
+ function quoteItemsByTicketSelection(quote) {
2321
+ return createQuoteItemMap(quote);
2318
2322
  }
2319
- function admissionPriceSavings(price) {
2320
- if (!price.discounted || price.gross === undefined)
2321
- return 0;
2322
- return Math.max(price.gross - price.base, 0);
2323
+ function ticketAdmissionPriceSavings(price) {
2324
+ if (!price.discounted || price.gross === void 0) return 0;
2325
+ return Math.max(price.gross - price.base, 0);
2323
2326
  }
2324
- function previewQuoteItems(event) {
2325
- const ids = new Set(event.sections.map((section) => section.id));
2326
- const zone = eventTimeZone(event);
2327
- return event.admissions
2328
- .filter((admission) => {
2329
- if (getAdmissionReleaseLabel(admission, event.admissions, zone)) {
2330
- return false;
2331
- }
2332
- if (admission.sectionId && !ids.has(admission.sectionId))
2333
- return false;
2334
- if (isNaiveDateTimeFuture(admission.saleStartsAt, zone))
2335
- return false;
2336
- return !isNaiveDateTimePast(admission.saleEndsAt, zone);
2337
- })
2338
- .map((admission) => ({
2339
- admissionId: admission.id ?? "",
2327
+ function getTicketPreviewItems(event) {
2328
+ const ids = new Set(event.sections.map((section) => section.id));
2329
+ const zone = ticketEventTimeZone(event);
2330
+ return event.admissions.filter((admission) => {
2331
+ if (getAdmissionReleaseLabel(admission, event.admissions, zone)) {
2332
+ return false;
2333
+ }
2334
+ if (admission.sectionId && !ids.has(admission.sectionId)) return false;
2335
+ if (isNaiveDateTimeFuture(admission.saleStartsAt, zone)) return false;
2336
+ return !isNaiveDateTimePast(admission.saleEndsAt, zone);
2337
+ }).flatMap((admission) => {
2338
+ if (!admission.id) return [];
2339
+ return [
2340
+ {
2341
+ admissionId: admission.id,
2340
2342
  quantity: 1,
2341
- sectionId: admission.sectionId ?? undefined,
2342
- }));
2343
+ sectionId: admission.sectionId ?? void 0
2344
+ }
2345
+ ];
2346
+ });
2347
+ }
2348
+
2349
+ const selectionKey = ticketSelectionKey;
2350
+ const parseSelectionKey = parseTicketSelectionKey;
2351
+ const priceTotal = ticketPriceTotal;
2352
+ const eventTimeZone = ticketEventTimeZone;
2353
+ const getTicketingState = getTicketSelectorState;
2354
+ function visibleAdmissions(event, mode) {
2355
+ return getVisibleTicketAdmissions(event, mode);
2356
+ }
2357
+ function topLevelTicketItems(sections, admissions, input = {}) {
2358
+ return getTopLevelTicketItems(sections, admissions, input);
2359
+ }
2360
+ function getAdmissionDisplayState(input) {
2361
+ return getTicketAdmissionDisplayState(input);
2362
+ }
2363
+ function getAdmissionPriceDisplay(input) {
2364
+ return getTicketAdmissionPriceDisplay(input);
2365
+ }
2366
+ function quoteItemsBySelection(quote) {
2367
+ return quoteItemsByTicketSelection(quote);
2343
2368
  }
2369
+ const admissionPriceSavings = ticketAdmissionPriceSavings;
2370
+ const previewQuoteItems = getTicketPreviewItems;
2344
2371
 
2345
2372
  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", 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);color-scheme:light}*{box-sizing:border-box;margin:0;padding:0}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}*: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"]){color-scheme:dark;--background:transparent;--foreground:oklch(0.967 0.001 286.375);--card:color-mix( in srgb, oklch(0.21 0.006 285.885) 80%, oklch(0.141 0.005 285.823) );--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:background-color var(--internal-transition-fast), border-color var(--internal-transition-fast), box-shadow var(--internal-transition-fast), opacity var(--internal-transition-fast), transform 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,.message-state h2{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,.message-state p{color:var(--internal-muted-foreground);font-size:var(--internal-font-size-sm);line-height:1.4}.message-state .checkout-btn{margin-top:var(--internal-spacing-sm)}.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)) 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) 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:background-color var(--internal-transition-base), border-color var(--internal-transition-base), box-shadow 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;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:background-color var(--internal-transition-fast), border-color var(--internal-transition-fast), color 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:background-color var(--internal-transition-fast), border-color var(--internal-transition-fast), box-shadow 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:background-color var(--internal-transition-fast), color var(--internal-transition-fast), opacity var(--internal-transition-fast), transform 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) calc(var(--internal-spacing-xl) * 2.75) calc(var(--internal-spacing-sm) - 1px) 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:background-color var(--internal-transition-fast), border-color var(--internal-transition-fast), color var(--internal-transition-fast), opacity 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)) 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) var(--internal-spacing-md) calc(var(--internal-spacing-md) + env(safe-area-inset-bottom, 0px));background:var(--internal-card);border-top:1px solid var(--internal-border);box-shadow:var(--internal-shadow-lg)}.sticky-door-info{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:calc(var(--internal-spacing-xs) * 0.5);min-height:2.75rem;padding:var(--internal-spacing-sm) var(--internal-spacing-md);color:var(--internal-foreground);background:var(--internal-secondary);border:1px solid var(--internal-border);border-radius:calc(var(--internal-radius) - 2px);text-align:center}.sticky-door-info strong{font-size:var(--internal-font-size-sm);font-weight:var(--internal-font-weight-semibold);line-height:1.25}.sticky-door-info span{color:var(--internal-muted-foreground);font-size:var(--internal-font-size-xs);line-height:1.3}.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)}}.error-message{background:oklch( from var(--internal-destructive) calc(l + 0.4) calc(c * 0.2) h / 0.05 );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);line-height:1.4}.inline-status{display:flex;align-items:center;gap:var(--internal-spacing-sm);margin-bottom:var(--internal-spacing-md);color:var(--internal-muted-foreground);font-size:var(--internal-font-size-sm);line-height:1.4}.inline-retry-btn{display:inline-flex;align-items:center;justify-content:center;align-self:flex-start;margin-top:var(--internal-spacing-sm);padding:calc(var(--internal-spacing-xs) * 1.5) var(--internal-spacing-md);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);box-shadow:var(--internal-shadow-edge-light);font-size:var(--internal-font-size-sm);font-weight:var(--internal-font-weight-semibold);cursor:pointer;transition:background-color var(--internal-transition-fast), border-color var(--internal-transition-fast), opacity var(--internal-transition-fast), transform var(--internal-transition-fast)}.inline-retry-btn:hover:not(:disabled){background:oklch(from var(--internal-primary) calc(l - 0.08) c h);transform:translateY(-1px)}.inline-retry-btn:disabled{opacity:0.5;cursor:not-allowed}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0}@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"]) .checkout-actions>.checkout-btn,:host([data-sticky-checkout="true"]) .inline-external-ticket-button{display:none}.sticky-checkout-bar{display:block}:host([data-sticky-checkout="true"]) .session-services-ticketing-container{padding-bottom:calc(6.5rem + env(safe-area-inset-bottom, 0px))}}.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);overscroll-behavior:contain;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;overscroll-behavior:contain;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:background-color var(--internal-transition-fast), border-color var(--internal-transition-fast), color var(--internal-transition-fast), opacity 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}@media (prefers-reduced-motion: reduce){:host,*{scroll-behavior:auto !important}.admission-card.loading-admission,.checkout-spinner,.sticky-checkout-btn.selection-prompt,.modal-backdrop,.modal-content{animation:none}.external-ticket-button,.checkout-btn,.ticket-section,.more-info-badge,.quantity-controls,.quantity-btn,.coupon-row,.coupon-apply,.coupon-remove,.inline-retry-btn,.modal-close-btn{transition:none}}`;
2346
2373
 
@@ -2510,6 +2537,8 @@ const SessionsTicketing = class {
2510
2537
  apiUrl = "https://api.session.services";
2511
2538
  locale = "en-US";
2512
2539
  returnUrl;
2540
+ returnDestinationKey;
2541
+ createOrder;
2513
2542
  couponCode;
2514
2543
  initialAdmissionPrices;
2515
2544
  initialPreviewQuote;
@@ -2694,7 +2723,7 @@ const SessionsTicketing = class {
2694
2723
  this.finishInitialLoad(initial);
2695
2724
  return;
2696
2725
  }
2697
- this.client = wp({
2726
+ this.client = _g({
2698
2727
  environment: this.apiUrl,
2699
2728
  tenantId: this.tenantId,
2700
2729
  });
@@ -3018,7 +3047,7 @@ const SessionsTicketing = class {
3018
3047
  if (this.analytics)
3019
3048
  return true;
3020
3049
  try {
3021
- this.analytics = fn({
3050
+ this.analytics = pn({
3022
3051
  client: this.client,
3023
3052
  debug: this.debugAnalytics,
3024
3053
  });
@@ -3247,7 +3276,13 @@ const SessionsTicketing = class {
3247
3276
  this.errorOccurred.emit({ error: this.quoteError });
3248
3277
  }
3249
3278
  quoteRevisionFor(eventId, coupon, items) {
3250
- return JSON.stringify({ eventId, coupon, items });
3279
+ return JSON.stringify({
3280
+ eventId,
3281
+ coupon,
3282
+ items,
3283
+ returnUrl: this.returnUrl,
3284
+ returnDestinationKey: this.returnDestinationKey,
3285
+ });
3251
3286
  }
3252
3287
  currentQuoteRevision() {
3253
3288
  return this.quoteRevisionFor(this.eventId, this.appliedCouponCode, this.getQuoteRequestItems());
@@ -3559,12 +3594,13 @@ const SessionsTicketing = class {
3559
3594
  const idempotencyKey = await this.getCheckoutIdempotencyKey(revision);
3560
3595
  if (!this.isCheckoutRequestCurrent(id, eventId, coupon, revision))
3561
3596
  return;
3562
- const result = await withTimeout(controller, (signal) => this.client.order.create({
3597
+ const result = await withTimeout(controller, async (signal) => (this.createOrder ?? this.client.order.create)({
3563
3598
  eventId,
3564
3599
  items: this.getCheckoutItems(quote),
3565
3600
  couponCode: coupon || undefined,
3566
3601
  returnUrl: this.returnUrl,
3567
- channel: un("elements"),
3602
+ returnDestinationKey: this.returnDestinationKey,
3603
+ channel: dn("elements"),
3568
3604
  idempotencyKey,
3569
3605
  }, { signal }));
3570
3606
  if (!this.isCheckoutRequestCurrent(id, eventId, coupon, revision))
@@ -3637,7 +3673,9 @@ const SessionsTicketing = class {
3637
3673
  checkoutUrl: order.checkoutUrl,
3638
3674
  });
3639
3675
  if (order.checkoutUrl) {
3640
- window.location.href = order.checkoutUrl;
3676
+ // Decorate at the last possible moment: the linker is only valid for
3677
+ // about two minutes, and this navigation is the hand-off it describes.
3678
+ window.location.href = on(order.checkoutUrl);
3641
3679
  return;
3642
3680
  }
3643
3681
  this.checkoutLoading = false;
@@ -3914,10 +3952,11 @@ const SessionsTicketing = class {
3914
3952
  admissionStatusText(admission, soldOut) {
3915
3953
  if (soldOut)
3916
3954
  return "Sold Out";
3955
+ const total = priceTotal(admission.price);
3917
3956
  if ((admission.price.booking ?? 0) <= 0) {
3918
- return this.formatPriceValue(admission.price.base);
3957
+ return this.formatPriceValue(total);
3919
3958
  }
3920
- return `${this.formatPriceValue(admission.price.base)} plus ${this.formatPriceValue(admission.price.booking)} booking fee`;
3959
+ return `${this.formatPriceValue(total - admission.price.booking)} plus ${this.formatPriceValue(admission.price.booking)} booking fee`;
3921
3960
  }
3922
3961
  renderAdmissionHeader(admission) {
3923
3962
  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)));