diff --git a/.gitignore b/.gitignore index b1bbca113..d176ddf50 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ /composer.build.lock /docroot /dpc-sdp +.idea .env.local docker-compose.override.yml screenshots diff --git a/composer.json b/composer.json index de0637d8d..dbe5ebff6 100644 --- a/composer.json +++ b/composer.json @@ -409,8 +409,7 @@ "Provide drush support to index a specific entity - https://www.drupal.org/project/search_api/issues/3016809": "https://www.drupal.org/files/issues/2024-11-25/search_api-index-specific-items-3016809-10.patch" }, "drupal/key": { - "KeyProviderInterface::getKeyValue() doesn't always return a string - https://www.drupal.org/project/key/issues/3356052#comment-16093356": "https://www.drupal.org/files/issues/2025-05-02/key_3356052_11.patch", - "Error: Call to a member function getKeyValue on null - https://www.drupal.org/project/key/issues/3385523": "https://www.drupal.org/files/issues/2023-09-06/3385523-4.patch" + "KeyProviderInterface::getKeyValue() doesn't always return a string - https://www.drupal.org/project/key/issues/3356052#comment-16093356": "https://www.drupal.org/files/issues/2025-05-02/key_3356052_11.patch" }, "drupal/data_pipelines": { "Add data-pipelines:reindex-all Drush command to reindex all datasets at once - https://www.drupal.org/project/data_pipelines/issues/3540691": "https://www.drupal.org/files/issues/2025-08-11/3228246-add-reindex-all-drush-command.patch", diff --git a/modules/tide_api/modules/tide_content_collection_ui/README.md b/modules/tide_api/modules/tide_content_collection_ui/README.md new file mode 100644 index 000000000..03ee63aea --- /dev/null +++ b/modules/tide_api/modules/tide_content_collection_ui/README.md @@ -0,0 +1,23 @@ +# Tide Content Collection UI + +Module that provides a custom field type for integrating the content collection UI app. + +## Structure +- app: this is the JS application +- config: this is the Drupal configuration +- src: the Drupal module code + - plugin: code related to the field + - controller: code for the node autocomplete search + +### App + +### Updating/building the app + +To update and build the Vue app, update the version of `@dpc-sdp/tide-content-collection-ui` in `app/package.json` and run `npm install && npm run build` from the app directory. +Note: this workflow may change in the future, but for now it works the same as the other parts of Tide needing a JS build set. For example `webpack` is used to build a JS bundle for `tide_ckeditor`. + +### Testing the app + +The app can be tested within Drupal by adding the landing page component to a page. + +It can also be tested outside Drupal for preliminary testing by running `npm run dev` from the app directory. Make sure you have a `.env.development` file within the app directory with the following: `VITE_API_URL=http://content-sdp.docker.internal/`. Important note; do not use `.env` for this file it must be `.env.development` so it doesn't interfere with the prod build. diff --git a/modules/tide_api/modules/tide_content_collection_ui/app/.gitignore b/modules/tide_api/modules/tide_content_collection_ui/app/.gitignore new file mode 100644 index 000000000..6045a4eec --- /dev/null +++ b/modules/tide_api/modules/tide_content_collection_ui/app/.gitignore @@ -0,0 +1,2 @@ +.env* +node_modules diff --git a/modules/tide_api/modules/tide_content_collection_ui/app/dist/main.js b/modules/tide_api/modules/tide_content_collection_ui/app/dist/main.js new file mode 100644 index 000000000..7f4c6c63d --- /dev/null +++ b/modules/tide_api/modules/tide_content_collection_ui/app/dist/main.js @@ -0,0 +1,31 @@ +(function(){"use strict";var ys=document.createElement("style");ys.textContent=`.tide-form :where(input[type=text],input[type=number],textarea,select,button):focus{box-shadow:var(--tide-shadow-focus)}.tide-form__element{width:100%;padding:var(--tide-space-4) var(--tide-space-5);color:var(--tide-colour-text);border:var(--tide-border-width-1) solid var(--tide-border-colour);border-radius:var(--tide-border-radius-1);appearance:none}.tide-form__element:hover{border-color:var(--tide-border-colour-hover);box-shadow:var(--tide-border-shadow-hover)}.tide-form__element:is(select,input[type=text],input[type=number]){min-height:48px;font-size:inherit;background-color:var(--tide-colour-white)}.tide-form__label{display:block;font-size:var(--tide-font-size-3);margin-bottom:var(--tide-space-2);font-weight:var(--tide-font-weight-3);line-height:var(--tide-line-height-3)}.tide-form__description{color:var(--tide-colour-grey-dark);font-size:var(--tide-font-size-3);line-height:var(--tide-line-height-3);margin-top:var(--tide-space-2)}.tide-form__error{color:var(--tide-colour-error);font-size:var(--tide-font-size-3)}.tide-fieldset[data-v-da18ce75]{margin:0;position:relative;padding-inline:var(--tide-space-6);padding-block:var(--tide-space-9) var(--tide-space-6);background-color:var(--tide-colour-white);border-radius:var(--tide-border-radius-1);border:var(--tide-border-width-1) solid var(--tide-colour-grey);box-shadow:var(--tide-shadow-2)}.tide-fieldset__legend[data-v-da18ce75]{position:absolute;display:block;width:calc(100% - var(--tide-space-6) * 2);left:var(--tide-space-6);top:var(--tide-space-5);padding-inline:0;padding-block:0 var(--tide-space-3);font-size:var(--tide-font-size-4);font-weight:var(--tide-font-weight-3);border-bottom:var(--tide-border-width-2) solid var(--tide-colour-grey-light)}.tide-fieldset__required[data-v-da18ce75]{color:var(--tide-colour-error);font-weight:var(--tide-font-weight-1)}.tide-fieldset__description[data-v-da18ce75]{color:var(--tide-colour-grey-dark);font-size:var(--tide-font-size-3);margin-block:calc(var(--tide-space-4) * -1) var(--tide-space-6)}.tide-fieldset+.tide-fieldset[data-v-da18ce75]{margin-top:var(--tide-space-5)}.tide-fieldset[data-v-da18ce75]>*:last-child{margin-bottom:0}.tide-fieldset[data-v-da18ce75]>*:where(.tide-field-group,.tide-field)+*:where(.tide-field-group,.tide-field){margin-top:var(--tide-space-5);padding-top:var(--tide-space-5);border-top:var(--tide-border-width-2) solid var(--tide-colour-grey-light)}.tide-field:has(input:disabled,select:disabled,textarea:disabled){opacity:.5;pointer-events:none}.tide-field__label{font:inherit}.tide-field__required{color:var(--tide-colour-error)}.tide-option-button[data-v-378f24ab]{display:flex;align-items:center;padding-block:var(--tide-space-1);padding-inline:var(--tide-space-1) var(--tide-space-5);min-height:90px;cursor:pointer}.tide-option-button .tide-form__label[data-v-378f24ab]{font-size:var(--tide-font-size-4);font-weight:var(--tide-font-weight-2)}.tide-option-button[aria-disabled=true][data-v-378f24ab]{opacity:.5;pointer-events:none}.tide-option-button__image[data-v-378f24ab]{display:flex;align-items:center;justify-content:center;align-self:stretch;pointer-events:none;background-image:none;padding:var(--tide-space-6);background-color:var(--tide-colour-grey-light)}.tide-option-button__icon[data-v-378f24ab]{width:50px;height:auto}.tide-option-button__main[data-v-378f24ab]{flex:1;display:flex;flex-direction:column;justify-content:center;padding:var(--tide-space-4) var(--tide-space-3)}.tide-option-button__input[data-v-378f24ab]{outline:none;box-shadow:none;scale:1.5}.tide-option-button[data-v-378f24ab]:focus-within{box-shadow:var(--tide-shadow-focus)}.tide-option-group[data-v-0c7fefd7]{display:grid;gap:var(--tide-space-2) var(--tide-space-5);grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}.tide-button{font:inherit;margin:0;padding:calc(var(--tide-space-5) - 1px) var(--tide-space-6);display:flex;align-items:center;justify-content:center;text-align:center;border:none;color:var(--tide-colour-text);border-radius:var(--tide-border-radius-1);background-color:var(--tide-colour-grey);font-weight:var(--tide-font-weight-3);line-height:var(--tide-line-height-2);box-shadow:var(--tide-shadow-1);cursor:pointer}.tide-button:focus-visible{outline:none}.tide-button:not([disabled]):hover{filter:brightness(.9)}.tide-button[disabled]{opacity:.5;filter:grayscale(1);cursor:not-allowed}.tide-button--small{font-size:var(--tide-font-size-2);line-height:var(--tide-line-height-1);padding:var(--tide-space-3) var(--tide-space-4)}.tide-button--large{font-size:var(--tide-font-size-4);line-height:var(--tide-line-height-3);padding:var(--tide-space-6) var(--tide-space-7)}.tide-button--primary{color:var(--tide-colour-white);background-color:var(--tide-colour-primary)}.tide-button--danger{color:var(--tide-colour-white);background-color:var(--tide-colour-error)}.tide-button--plain{all:unset;text-decoration:underline;cursor:pointer}.tide-field-group__content[data-v-787c34d8]{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:var(--tide-space-5) var(--tide-space-6)}.tide-field-group--repeatable .tide-field-group__content[data-v-787c34d8]{display:block}.tide-field-group__action[data-v-787c34d8]{margin-top:var(--tide-space-6)}.tide-dropdown-list[data-v-5ecc9ddc]{position:relative}.tide-dropdown-list:focus-within .tide-dropdown-list__autocomplete[data-v-5ecc9ddc]{box-shadow:var(--tide-shadow-focus)}.tide-dropdown-list__autocomplete[data-v-5ecc9ddc]{display:flex;flex-wrap:wrap;flex-direction:row;gap:var(--tide-space-4) var(--tide-space-2);padding-block:var(--tide-space-3);padding-right:var(--tide-space-7);background-color:var(--tide-colour-white);min-height:48px}.tide-dropdown-list__input[data-v-5ecc9ddc]{flex:1;padding:0;border:none;width:125px;min-height:auto;font:inherit}.tide-dropdown-list__input[data-v-5ecc9ddc]:focus{border:none;box-shadow:none;outline:none}.tide-dropdown-list__input[data-v-5ecc9ddc]:disabled{background-color:transparent}.tide-dropdown-list__tags[data-v-5ecc9ddc]{display:contents}.tide-dropdown-list__tag[data-v-5ecc9ddc]{display:flex;align-items:center;justify-content:space-between;gap:var(--tide-space-3);font-weight:500;font-size:var(--tide-font-size-2);border-radius:1rem;background-color:var(--tide-colour-grey);padding:var(--tide-space-1) var(--tide-space-4);margin-block:var(--tide-space-1)}.tide-dropdown-list__tag[data-v-5ecc9ddc]:hover{outline:1px solid var(--tide-colour-focus);outline-offset:1px}.tide-dropdown-list__tag-remove[data-v-5ecc9ddc]{display:flex;align-items:center;justify-content:center;border:none;color:var(--tide-colour-grey);background-color:var(--tide-colour-grey-dark);border-radius:50%;margin-right:-4px;cursor:pointer;width:16px;height:16px;padding:var(--tide-space-1);font-size:var(--tide-font-size-1)}.tide-dropdown-list__tag-remove svg[data-v-5ecc9ddc]{stroke:var(--tide-colour-white)}.tide-dropdown-list__tag-remove[data-v-5ecc9ddc]:hover{color:var(--tide-colour-grey-light)}.tide-dropdown-list__loading-icon[data-v-5ecc9ddc]{position:absolute;top:calc(50% - 9px);right:var(--tide-space-4);fill:var(--tide-colour-grey-dark);pointer-events:none;animation:tideSpin-5ecc9ddc 1s linear infinite}.tide-dropdown-list__menu[data-v-5ecc9ddc]{position:absolute;top:calc(100% + 1px);left:0;right:0;max-height:300px;overflow:auto;margin:0;padding:0;z-index:99;background-color:var(--tide-colour-white);overscroll-behavior:contain;box-shadow:var(--tide-shadow-2)}.tide-dropdown-list__menu-item[data-v-5ecc9ddc]{padding:var(--tide-space-4) var(--tide-space-5);cursor:pointer}.tide-dropdown-list__menu-item[data-v-5ecc9ddc]:hover,.tide-dropdown-list__menu-item[aria-current=true][data-v-5ecc9ddc]{color:var(--tide-colour-white);background-color:var(--tide-colour-primary)}.tide-dropdown-list__menu-item[data-v-5ecc9ddc]:where([aria-selected=true]){background-color:var(--tide-colour-grey)}.tide-dropdown-list__menu-empty[data-v-5ecc9ddc]{cursor:inherit}.tide-dropdown-list__menu-empty[data-v-5ecc9ddc]:hover{color:var(--tide-colour-text);background-color:var(--tide-colour-white)}.tide-dropdown-list--single .tide-dropdown-list__autocomplete[data-v-5ecc9ddc]{padding-right:var(--tide-space-5)}.tide-dropdown-list--single .tide-dropdown-list__tag[data-v-5ecc9ddc]{padding:0;width:100%;font-size:inherit;font-weight:inherit;background-color:transparent}.tide-dropdown-list--single .tide-dropdown-list__tag[data-v-5ecc9ddc]:hover{outline:none}.tide-dropdown-list--single .tide-dropdown-list__tag-text[data-v-5ecc9ddc]{max-width:calc(100% - var(--tide-space-8))}.tide-dropdown-list--single .tide-dropdown-list__tag-remove[data-v-5ecc9ddc]{background-color:transparent;width:22px;height:22px}.tide-dropdown-list--single .tide-dropdown-list__tag-remove[data-v-5ecc9ddc]:hover{background-color:var(--tide-colour-grey-light)}.tide-dropdown-list--single .tide-dropdown-list__tag-remove svg[data-v-5ecc9ddc]{stroke:var(--tide-colour-grey-dark)}@keyframes tideSpin-5ecc9ddc{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.tide-field-group-row[data-v-375ae602]{display:grid;align-items:center;grid-template-columns:1fr;gap:var(--tide-space-5)}.tide-field-group-row--sortable[data-v-375ae602]{grid-template-columns:auto 1fr}.tide-field-group-row--removeable[data-v-375ae602]{grid-template-columns:1fr auto}.tide-field-group-row--sortable.tide-field-group-row--removeable[data-v-375ae602]{grid-template-columns:auto 1fr auto}.tide-field-group-row+.tide-field-group-row[data-v-375ae602]{margin-top:var(--tide-space-3);padding-top:var(--tide-space-3);border-top:var(--tide-border-width-1) solid var(--tide-colour-grey-light)}.tide-field-group-row__content[data-v-375ae602]{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:var(--tide-space-5) var(--tide-space-6)}.tide-field-group__sort[data-v-375ae602]{cursor:grab;display:flex;margin-right:calc(var(--tide-space-3) * -1)}.tide-field-group__sort svg[data-v-375ae602]{stroke:var(--tide-colour-grey-dark)}.tide-field-group-row__action-button[data-v-375ae602]{translate:0 -1px}.tide-radio[data-v-df50077b]{display:flex;flex-direction:column;gap:var(--tide-space-3)}.tide-radio--inline[data-v-df50077b]{display:flex;flex-direction:row;gap:var(--tide-space-3) var(--tide-space-6)}.tide-radio__label[data-v-df50077b]{display:flex;align-items:center;gap:var(--tide-space-3)}.tide-radio__input[data-v-df50077b]{margin:0;scale:1.25}.tide-radio__input[data-v-df50077b]:focus-visible{outline-color:var(--tide-colour-focus)}.tide-checkbox[data-v-3a00e669]{display:flex;flex-direction:column;gap:var(--tide-space-3)}.tide-checkbox--inline[data-v-3a00e669]{display:flex;flex-direction:row;gap:var(--tide-space-3) var(--tide-space-6)}.tide-checkbox__label[data-v-3a00e669]{display:flex;align-items:center;gap:var(--tide-space-3)}.tide-checkbox__input[data-v-3a00e669]{scale:1.25}.tide-checkbox__input[data-v-3a00e669]:focus-visible{outline-color:var(--tide-colour-focus)}.tide-collection{--tide-space-1: .125rem;--tide-space-2: .25rem;--tide-space-3: .5rem;--tide-space-4: .75rem;--tide-space-5: 1rem;--tide-space-6: 1.5rem;--tide-space-7: 2.5rem;--tide-space-8: 3.25rem;--tide-space-9: 4.5rem;--tide-font-size-1: .702rem;--tide-font-size-2: .79rem;--tide-font-size-3: .889rem;--tide-font-size-4: 1.125rem;--tide-font-size-5: 1.266rem;--tide-font-size-6: 1.424rem;--tide-font-size-7: 1.602rem;--tide-font-weight-1: 400;--tide-font-weight-2: 600;--tide-font-weight-3: 700;--tide-line-height-1: .9;--tide-line-height-2: 1.1;--tide-line-height-3: 1.3;--tide-line-height-4: 1.6;--tide-line-height-5: 1.9;--tide-colour-primary: #003ecc;--tide-colour-focus: #26a769;--tide-colour-error: #dc2323;--tide-colour-text: #232429;--tide-colour-white: #ffffff;--tide-colour-grey: #dedfe4;--tide-colour-grey-light: #f5f8ff;--tide-colour-grey-dark: #828388;--tide-border-width-1: 1px;--tide-border-width-2: 2px;--tide-border-width-3: 4px;--tide-border-colour: #919297;--tide-border-colour-hover: var(--tide-colour-text);--tide-border-radius-1: 2px;--tide-border-radius-2: 4px;--tide-border-radius-3: 6px;--tide-border-radius-4: 8px;--tide-border-radius-5: 50%;--tide-border-shadow-hover: inset 0 0 0 1px var(--tide-colour-text);--tide-shadow-1: 0 1px 2px rgba(0, 0, 0, .25);--tide-shadow-2: 0 2px 4px rgba(0, 0, 0, .1);--tide-shadow-focus: 0 0 0 2px var(--tide-colour-white), 0 0 0 5px var(--tide-colour-focus);--tide-outline-focus: 2px var(--tide-colour-focus) solid;accent-color:var(--tide-colour-primary);border-radius:var(--tide-border-radius-1)}.tide-collection *,.tide-collection *:before,.tide-collection *:after{box-sizing:border-box}.tide-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0;pointer-events:none} +/*$vite$:1*/`,document.head.appendChild(ys);function so(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const be={},Fn=[],Rt=()=>{},ws=()=>!1,Ka=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),co=e=>e.startsWith("onUpdate:"),He=Object.assign,lo=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},uf=Object.prototype.hasOwnProperty,me=(e,t)=>uf.call(e,t),ae=Array.isArray,Ln=e=>Ha(e)==="[object Map]",_s=e=>Ha(e)==="[object Set]",X=e=>typeof e=="function",Pe=e=>typeof e=="string",Jt=e=>typeof e=="symbol",Se=e=>e!==null&&typeof e=="object",ks=e=>(Se(e)||X(e))&&X(e.then)&&X(e.catch),js=Object.prototype.toString,Ha=e=>js.call(e),df=e=>Ha(e).slice(8,-1),Ss=e=>Ha(e)==="[object Object]",po=e=>Pe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ha=so(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ga=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},ff=/-\w/g,yt=Ga(e=>e.replace(ff,t=>t.slice(1).toUpperCase())),mf=/\B([A-Z])/g,cn=Ga(e=>e.replace(mf,"-$1").toLowerCase()),Ya=Ga(e=>e.charAt(0).toUpperCase()+e.slice(1)),uo=Ga(e=>e?`on${Ya(e)}`:""),ln=(e,t)=>!Object.is(e,t),Qa=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:a,value:n})},fo=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Os;const Xa=()=>Os||(Os=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function mo(e){if(ae(e)){const t={};for(let n=0;n{if(n){const a=n.split(hf);a.length>1&&(t[a[0].trim()]=a[1].trim())}}),t}function Ot(e){let t="";if(Pe(e))t=e;else if(ae(e))for(let n=0;n!!(e&&e.__v_isRef===!0),st=e=>Pe(e)?e:e==null?"":ae(e)||Se(e)&&(e.toString===js||!X(e.toString))?As(e)?st(e.value):JSON.stringify(e,Is,2):String(e),Is=(e,t)=>As(t)?Is(e,t.value):Ln(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[a,i],o)=>(n[vo(a,o)+" =>"]=i,n),{})}:_s(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>vo(n))}:Jt(t)?vo(t):Se(t)&&!ae(t)&&!Ss(t)?String(t):t,vo=(e,t="")=>{var n;return Jt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let Ge;class wf{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ge,!t&&Ge&&(this.index=(Ge.scopes||(Ge.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0&&--this._on===0&&(Ge=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,a;for(n=0,a=this.effects.length;n0)return;if(ba){let t=ba;for(ba=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;ga;){let t=ga;for(ga=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(a){e||(e=a)}t=n}}if(e)throw e}function Ds(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Rs(e){let t,n=e.depsTail,a=n;for(;a;){const i=a.prevDep;a.version===-1?(a===n&&(n=i),yo(a),kf(a)):t=a,a.dep.activeLink=a.prevActiveLink,a.prevActiveLink=void 0,a=i}e.deps=t,e.depsTail=n}function xo(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&($s(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function $s(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===xa)||(e.globalVersion=xa,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!xo(e))))return;e.flags|=2;const t=e.dep,n=xe,a=zt;xe=e,zt=!0;try{Ds(e);const i=e.fn(e._value);(t.version===0||ln(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{xe=n,zt=a,Rs(e),e.flags&=-3}}function yo(e,t=!1){const{dep:n,prevSub:a,nextSub:i}=e;if(a&&(a.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=a,e.nextSub=void 0),n.subs===e&&(n.subs=a,!a&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)yo(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function kf(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let zt=!0;const Ns=[];function $t(){Ns.push(zt),zt=!1}function Nt(){const e=Ns.pop();zt=e===void 0?!0:e}function Fs(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=xe;xe=void 0;try{t()}finally{xe=n}}}let xa=0;class jf{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class wo{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!xe||!zt||xe===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==xe)n=this.activeLink=new jf(xe,this),xe.deps?(n.prevDep=xe.depsTail,xe.depsTail.nextDep=n,xe.depsTail=n):xe.deps=xe.depsTail=n,Ls(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const a=n.nextDep;a.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=a),n.prevDep=xe.depsTail,n.nextDep=void 0,xe.depsTail.nextDep=n,xe.depsTail=n,xe.deps===n&&(xe.deps=a)}return n}trigger(t){this.version++,xa++,this.notify(t)}notify(t){go();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{bo()}}}function Ls(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let a=t.deps;a;a=a.nextDep)Ls(a)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const _o=new WeakMap,kn=Symbol(""),ko=Symbol(""),ya=Symbol("");function Ye(e,t,n){if(zt&&xe){let a=_o.get(e);a||_o.set(e,a=new Map);let i=a.get(n);i||(a.set(n,i=new wo),i.map=a,i.key=n),i.track()}}function Kt(e,t,n,a,i,o){const r=_o.get(e);if(!r){xa++;return}const s=c=>{c&&c.trigger()};if(go(),t==="clear")r.forEach(s);else{const c=ae(e),l=c&&po(n);if(c&&n==="length"){const p=Number(a);r.forEach((d,v)=>{(v==="length"||v===ya||!Jt(v)&&v>=p)&&s(d)})}else switch((n!==void 0||r.has(void 0))&&s(r.get(n)),l&&s(r.get(ya)),t){case"add":c?l&&s(r.get("length")):(s(r.get(kn)),Ln(e)&&s(r.get(ko)));break;case"delete":c||(s(r.get(kn)),Ln(e)&&s(r.get(ko)));break;case"set":Ln(e)&&s(r.get(kn));break}}bo()}function Un(e){const t=ue(e);return t===e?t:(Ye(t,"iterate",ya),wt(e)?t:t.map(At))}function ei(e){return Ye(e=ue(e),"iterate",ya),e}function pn(e,t){return Gt(e)?jn(e)?qn(At(t)):qn(t):At(t)}const Sf={__proto__:null,[Symbol.iterator](){return jo(this,Symbol.iterator,e=>pn(this,e))},concat(...e){return Un(this).concat(...e.map(t=>ae(t)?Un(t):t))},entries(){return jo(this,"entries",e=>(e[1]=pn(this,e[1]),e))},every(e,t){return Ht(this,"every",e,t,void 0,arguments)},filter(e,t){return Ht(this,"filter",e,t,n=>n.map(a=>pn(this,a)),arguments)},find(e,t){return Ht(this,"find",e,t,n=>pn(this,n),arguments)},findIndex(e,t){return Ht(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ht(this,"findLast",e,t,n=>pn(this,n),arguments)},findLastIndex(e,t){return Ht(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ht(this,"forEach",e,t,void 0,arguments)},includes(...e){return So(this,"includes",e)},indexOf(...e){return So(this,"indexOf",e)},join(e){return Un(this).join(e)},lastIndexOf(...e){return So(this,"lastIndexOf",e)},map(e,t){return Ht(this,"map",e,t,void 0,arguments)},pop(){return wa(this,"pop")},push(...e){return wa(this,"push",e)},reduce(e,...t){return Us(this,"reduce",e,t)},reduceRight(e,...t){return Us(this,"reduceRight",e,t)},shift(){return wa(this,"shift")},some(e,t){return Ht(this,"some",e,t,void 0,arguments)},splice(...e){return wa(this,"splice",e)},toReversed(){return Un(this).toReversed()},toSorted(e){return Un(this).toSorted(e)},toSpliced(...e){return Un(this).toSpliced(...e)},unshift(...e){return wa(this,"unshift",e)},values(){return jo(this,"values",e=>pn(this,e))}};function jo(e,t,n){const a=ei(e),i=a[t]();return a!==e&&!wt(e)&&(i._next=i.next,i.next=()=>{const o=i._next();return o.done||(o.value=n(o.value)),o}),i}const Ef=Array.prototype;function Ht(e,t,n,a,i,o){const r=ei(e),s=r!==e&&!wt(e),c=r[t];if(c!==Ef[t]){const d=c.apply(e,o);return s?At(d):d}let l=n;r!==e&&(s?l=function(d,v){return n.call(this,pn(e,d),v,e)}:n.length>2&&(l=function(d,v){return n.call(this,d,v,e)}));const p=c.call(r,l,a);return s&&i?i(p):p}function Us(e,t,n,a){const i=ei(e);let o=n;return i!==e&&(wt(e)?n.length>3&&(o=function(r,s,c){return n.call(this,r,s,c,e)}):o=function(r,s,c){return n.call(this,r,pn(e,s),c,e)}),i[t](o,...a)}function So(e,t,n){const a=ue(e);Ye(a,"iterate",ya);const i=a[t](...n);return(i===-1||i===!1)&&zo(n[0])?(n[0]=ue(n[0]),a[t](...n)):i}function wa(e,t,n=[]){$t(),go();const a=ue(e)[t].apply(e,n);return bo(),Nt(),a}const Of=so("__proto__,__v_isRef,__isVue"),qs=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Jt));function zf(e){Jt(e)||(e=String(e));const t=ue(this);return Ye(t,"has",e),t.hasOwnProperty(e)}class Bs{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,a){if(n==="__v_skip")return t.__v_skip;const i=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return o;if(n==="__v_raw")return a===(i?o?Hs:Ks:o?Js:Vs).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(a)?t:void 0;const r=ae(t);if(!i){let c;if(r&&(c=Sf[n]))return c;if(n==="hasOwnProperty")return zf}const s=Reflect.get(t,n,Ze(t)?t:a);if((Jt(n)?qs.has(n):Of(n))||(i||Ye(t,"get",n),o))return s;if(Ze(s)){const c=r&&po(n)?s:s.value;return i&&Se(c)?Oo(c):c}return Se(s)?i?Oo(s):ii(s):s}}class Zs extends Bs{constructor(t=!1){super(!1,t)}set(t,n,a,i){let o=t[n];const r=ae(t)&&po(n);if(!this._isShallow){const l=Gt(o);if(!wt(a)&&!Gt(a)&&(o=ue(o),a=ue(a)),!r&&Ze(o)&&!Ze(a))return l||(o.value=a),!0}const s=r?Number(n)e,ti=e=>Reflect.getPrototypeOf(e);function Tf(e,t,n){return function(...a){const i=this.__v_raw,o=ue(i),r=Ln(o),s=e==="entries"||e===Symbol.iterator&&r,c=e==="keys"&&r,l=i[e](...a),p=n?Eo:t?qn:At;return!t&&Ye(o,"iterate",c?ko:kn),{next(){const{value:d,done:v}=l.next();return v?{value:d,done:v}:{value:s?[p(d[0]),p(d[1])]:p(d),done:v}},[Symbol.iterator](){return this}}}}function ni(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Mf(e,t){const n={get(a){const i=this.__v_raw,o=ue(i),r=ue(a);e||(ln(a,r)&&Ye(o,"get",a),Ye(o,"get",r));const{has:s}=ti(o),c=t?Eo:e?qn:At;if(s.call(o,a))return c(i.get(a));if(s.call(o,r))return c(i.get(r));i!==o&&i.get(a)},get size(){const a=this.__v_raw;return!e&&Ye(ue(a),"iterate",kn),a.size},has(a){const i=this.__v_raw,o=ue(i),r=ue(a);return e||(ln(a,r)&&Ye(o,"has",a),Ye(o,"has",r)),a===r?i.has(a):i.has(a)||i.has(r)},forEach(a,i){const o=this,r=o.__v_raw,s=ue(r),c=t?Eo:e?qn:At;return!e&&Ye(s,"iterate",kn),r.forEach((l,p)=>a.call(i,c(l),c(p),o))}};return He(n,e?{add:ni("add"),set:ni("set"),delete:ni("delete"),clear:ni("clear")}:{add(a){!t&&!wt(a)&&!Gt(a)&&(a=ue(a));const i=ue(this);return ti(i).has.call(i,a)||(i.add(a),Kt(i,"add",a,a)),this},set(a,i){!t&&!wt(i)&&!Gt(i)&&(i=ue(i));const o=ue(this),{has:r,get:s}=ti(o);let c=r.call(o,a);c||(a=ue(a),c=r.call(o,a));const l=s.call(o,a);return o.set(a,i),c?ln(i,l)&&Kt(o,"set",a,i):Kt(o,"add",a,i),this},delete(a){const i=ue(this),{has:o,get:r}=ti(i);let s=o.call(i,a);s||(a=ue(a),s=o.call(i,a)),r&&r.call(i,a);const c=i.delete(a);return s&&Kt(i,"delete",a,void 0),c},clear(){const a=ue(this),i=a.size!==0,o=a.clear();return i&&Kt(a,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(a=>{n[a]=Tf(a,e,t)}),n}function ai(e,t){const n=Mf(e,t);return(a,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?a:Reflect.get(me(n,i)&&i in a?n:a,i,o)}const Df={get:ai(!1,!1)},Rf={get:ai(!1,!0)},$f={get:ai(!0,!1)},Nf={get:ai(!0,!0)},Vs=new WeakMap,Js=new WeakMap,Ks=new WeakMap,Hs=new WeakMap;function Ff(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Lf(e){return e.__v_skip||!Object.isExtensible(e)?0:Ff(df(e))}function ii(e){return Gt(e)?e:oi(e,!1,Af,Df,Vs)}function Uf(e){return oi(e,!1,Pf,Rf,Js)}function Oo(e){return oi(e,!0,If,$f,Ks)}function R0(e){return oi(e,!0,Cf,Nf,Hs)}function oi(e,t,n,a,i){if(!Se(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=Lf(e);if(o===0)return e;const r=i.get(e);if(r)return r;const s=new Proxy(e,o===2?a:n);return i.set(e,s),s}function jn(e){return Gt(e)?jn(e.__v_raw):!!(e&&e.__v_isReactive)}function Gt(e){return!!(e&&e.__v_isReadonly)}function wt(e){return!!(e&&e.__v_isShallow)}function zo(e){return e?!!e.__v_raw:!1}function ue(e){const t=e&&e.__v_raw;return t?ue(t):e}function qf(e){return!me(e,"__v_skip")&&Object.isExtensible(e)&&Es(e,"__v_skip",!0),e}const At=e=>Se(e)?ii(e):e,qn=e=>Se(e)?Oo(e):e;function Ze(e){return e?e.__v_isRef===!0:!1}function It(e){return Ys(e,!1)}function Gs(e){return Ys(e,!0)}function Ys(e,t){return Ze(e)?e:new Bf(e,t)}class Bf{constructor(t,n){this.dep=new wo,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ue(t),this._value=n?t:At(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,a=this.__v_isShallow||wt(t)||Gt(t);t=a?t:ue(t),ln(t,n)&&(this._rawValue=t,this._value=a?t:At(t),this.dep.trigger())}}function un(e){return Ze(e)?e.value:e}function Ao(e){return X(e)?e():un(e)}const Zf={get:(e,t,n)=>t==="__v_raw"?e:un(Reflect.get(e,t,n)),set:(e,t,n,a)=>{const i=e[t];return Ze(i)&&!Ze(n)?(i.value=n,!0):Reflect.set(e,t,n,a)}};function Qs(e){return jn(e)?e:new Proxy(e,Zf)}class Wf{constructor(t,n,a){this.fn=t,this.setter=n,this._value=void 0,this.dep=new wo(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=xa-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=a}notify(){if(this.flags|=16,!(this.flags&8)&&xe!==this)return Ms(this,!0),!0}get value(){const t=this.dep.track();return $s(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Vf(e,t,n=!1){let a,i;return X(e)?a=e:(a=e.get,i=e.set),new Wf(a,i,n)}const ri={},si=new WeakMap;let Sn;function Jf(e,t=!1,n=Sn){if(n){let a=si.get(n);a||si.set(n,a=[]),a.push(e)}}function Kf(e,t,n=be){const{immediate:a,deep:i,once:o,scheduler:r,augmentJob:s,call:c}=n,l=z=>i?z:wt(z)||i===!1||i===0?Yt(z,1):Yt(z);let p,d,v,u,h=!1,f=!1;if(Ze(e)?(d=()=>e.value,h=wt(e)):jn(e)?(d=()=>l(e),h=!0):ae(e)?(f=!0,h=e.some(z=>jn(z)||wt(z)),d=()=>e.map(z=>{if(Ze(z))return z.value;if(jn(z))return l(z);if(X(z))return c?c(z,2):z()})):X(e)?t?d=c?()=>c(e,2):e:d=()=>{if(v){$t();try{v()}finally{Nt()}}const z=Sn;Sn=p;try{return c?c(e,3,[u]):e(u)}finally{Sn=z}}:d=Rt,t&&i){const z=d,B=i===!0?1/0:i;d=()=>Yt(z(),B)}const T=Ps(),w=()=>{p.stop(),T&&T.active&&lo(T.effects,p)};if(o&&t){const z=t;t=(...B)=>{z(...B),w()}}let _=f?new Array(e.length).fill(ri):ri;const A=z=>{if(!(!(p.flags&1)||!p.dirty&&!z))if(t){const B=p.run();if(i||h||(f?B.some((S,E)=>ln(S,_[E])):ln(B,_))){v&&v();const S=Sn;Sn=p;try{const E=[B,_===ri?void 0:f&&_[0]===ri?[]:_,u];_=B,c?c(t,3,E):t(...E)}finally{Sn=S}}}else p.run()};return s&&s(A),p=new Cs(d),p.scheduler=r?()=>r(A,!1):A,u=z=>Jf(z,!1,p),v=p.onStop=()=>{const z=si.get(p);if(z){if(c)c(z,4);else for(const B of z)B();si.delete(p)}},t?a?A(!0):_=p.run():r?r(A.bind(null,!0),!0):p.run(),w.pause=p.pause.bind(p),w.resume=p.resume.bind(p),w.stop=w,w}function Yt(e,t=1/0,n){if(t<=0||!Se(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Ze(e))Yt(e.value,t,n);else if(ae(e))for(let a=0;a{Yt(a,t,n)});else if(Ss(e)){for(const a in e)Yt(e[a],t,n);for(const a of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,a)&&Yt(e[a],t,n)}return e}const _a=[];let Io=!1;function $0(e,...t){if(Io)return;Io=!0,$t();const n=_a.length?_a[_a.length-1].component:null,a=n&&n.appContext.config.warnHandler,i=Hf();if(a)Bn(a,n,11,[e+t.map(o=>{var r,s;return(s=(r=o.toString)==null?void 0:r.call(o))!=null?s:JSON.stringify(o)}).join(""),n&&n.proxy,i.map(({vnode:o})=>`at <${Hc(n,o.type)}>`).join(` +`),i]);else{const o=[`[Vue warn]: ${e}`,...t];i.length&&o.push(` +`,...Gf(i)),console.warn(...o)}Nt(),Io=!1}function Hf(){let e=_a[_a.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const a=e.component&&e.component.parent;e=a&&a.vnode}return t}function Gf(e){const t=[];return e.forEach((n,a)=>{t.push(...a===0?[]:[` +`],...Yf(n))}),t}function Yf({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",a=e.component?e.component.parent==null:!1,i=` at <${Hc(e.component,e.type,a)}`,o=">"+n;return e.props?[i,...Qf(e.props),o]:[i+o]}function Qf(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(a=>{t.push(...Xs(a,e[a]))}),n.length>3&&t.push(" ..."),t}function Xs(e,t,n){return Pe(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:Ze(t)?(t=Xs(e,ue(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):X(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=ue(t),n?t:[`${e}=`,t])}function Bn(e,t,n,a){try{return a?e(...a):e()}catch(i){ci(i,t,n)}}function Ft(e,t,n,a){if(X(e)){const i=Bn(e,t,n,a);return i&&ks(i)&&i.catch(o=>{ci(o,t,n)}),i}if(ae(e)){const i=[];for(let o=0;o>>1,i=nt[a],o=ka(i);o=ka(n)?nt.push(e):nt.splice(em(t),0,e),e.flags|=1,tc()}}function tc(){li||(li=ec.then(ic))}function tm(e){ae(e)?Zn.push(...e):dn&&e.id===-1?dn.splice(Wn+1,0,e):e.flags&1||(Zn.push(e),e.flags|=1),tc()}function nc(e,t,n=Lt+1){for(!1;nka(n)-ka(a));if(Zn.length=0,dn){dn.push(...t);return}for(dn=t,Wn=0;Wne.id==null?e.flags&2?-1:1/0:e.id;function ic(e){try{for(Lt=0;Lt{a._d&&Lc(-1);const o=pi(t);let r;try{r=e(...i)}finally{pi(o),a._d&&Lc(1)}return r};return a._n=!0,a._c=!0,a._d=!0,a}function nm(e,t){if(Ve===null)return e;const n=bi(Ve),a=e.dirs||(e.dirs=[]);for(let i=0;i1)return n&&X(t)?t.call(a&&a.proxy):t}}const am=Symbol.for("v-scx"),im=()=>ja(am);function fn(e,t,n){return sc(e,t,n)}function sc(e,t,n=be){const{immediate:a,deep:i,flush:o,once:r}=n,s=He({},n),c=t&&a||!t&&o!=="post";let l;if(Ta){if(o==="sync"){const u=im();l=u.__watcherHandles||(u.__watcherHandles=[])}else if(!c){const u=()=>{};return u.stop=Rt,u.resume=Rt,u.pause=Rt,u}}const p=Qe;s.call=(u,h,f)=>Ft(u,p,h,f);let d=!1;o==="post"?s.scheduler=u=>{ft(u,p&&p.suspense)}:o!=="sync"&&(d=!0,s.scheduler=(u,h)=>{h?u():Co(u)}),s.augmentJob=u=>{t&&(u.flags|=4),d&&(u.flags|=2,p&&(u.id=p.uid,u.i=p))};const v=Kf(e,t,s);return Ta&&(l?l.push(v):c&&v()),v}function om(e,t,n){const a=this.proxy,i=Pe(e)?e.includes(".")?cc(a,e):()=>a[e]:e.bind(a,a);let o;X(t)?o=t:(o=t.handler,n=t);const r=Ca(this),s=sc(i,o.bind(a),n);return r(),s}function cc(e,t){const n=t.split(".");return()=>{let a=e;for(let i=0;ie.__isTeleport,cm=Symbol("_leaveCb");function To(e,t){e.shapeFlag&6&&e.component?(e.transition=t,To(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Re(e,t){return X(e)?He({name:e.name},t,{setup:e}):e}function lc(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function lm(e){const t=Vo(),n=Gs(null);if(t){const i=t.refs===be?t.refs={}:t.refs;Object.defineProperty(i,e,{enumerable:!0,get:()=>n.value,set:o=>n.value=o})}return n}const ui=new WeakMap;function Sa(e,t,n,a,i=!1){if(ae(e)){e.forEach((h,f)=>Sa(h,t&&(ae(t)?t[f]:t),n,a,i));return}if(Vn(a)&&!i){a.shapeFlag&512&&a.type.__asyncResolved&&a.component.subTree.component&&Sa(e,t,n,a.component.subTree);return}const o=a.shapeFlag&4?bi(a.component):a.el,r=i?null:o,{i:s,r:c}=e,l=t&&t.r,p=s.refs===be?s.refs={}:s.refs,d=s.setupState,v=ue(d),u=d===be?ws:h=>me(v,h);if(l!=null&&l!==c){if(pc(t),Pe(l))p[l]=null,u(l)&&(d[l]=null);else if(Ze(l)){l.value=null;const h=t;h.k&&(p[h.k]=null)}}if(X(c))Bn(c,s,12,[r,p]);else{const h=Pe(c),f=Ze(c);if(h||f){const T=()=>{if(e.f){const w=h?u(c)?d[c]:p[c]:c.value;if(i)ae(w)&&lo(w,o);else if(ae(w))w.includes(o)||w.push(o);else if(h)p[c]=[o],u(c)&&(d[c]=p[c]);else{const _=[o];c.value=_,e.k&&(p[e.k]=_)}}else h?(p[c]=r,u(c)&&(d[c]=r)):f&&(c.value=r,e.k&&(p[e.k]=r))};if(r){const w=()=>{T(),ui.delete(e)};w.id=-1,ui.set(e,w),ft(w,n)}else pc(e),T()}}}function pc(e){const t=ui.get(e);t&&(t.flags|=8,ui.delete(e))}Xa().requestIdleCallback,Xa().cancelIdleCallback;const Vn=e=>!!e.type.__asyncLoader,uc=e=>e.type.__isKeepAlive;function pm(e,t){dc(e,"a",t)}function um(e,t){dc(e,"da",t)}function dc(e,t,n=Qe){const a=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(di(t,a,n),n){let i=n.parent;for(;i&&i.parent;)uc(i.parent.vnode)&&dm(a,t,n,i),i=i.parent}}function dm(e,t,n,a){const i=di(t,e,a,!0);Mo(()=>{lo(a[t],i)},n)}function di(e,t,n=Qe,a=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...r)=>{$t();const s=Ca(n),c=Ft(t,n,e,r);return s(),Nt(),c});return a?i.unshift(o):i.push(o),o}}const Qt=e=>(t,n=Qe)=>{(!Ta||e==="sp")&&di(e,(...a)=>t(...a),n)},fm=Qt("bm"),Jn=Qt("m"),mm=Qt("bu"),vm=Qt("u"),hm=Qt("bum"),Mo=Qt("um"),gm=Qt("sp"),bm=Qt("rtg"),xm=Qt("rtc");function ym(e,t=Qe){di("ec",e,t)}const wm="components",fc=Symbol.for("v-ndc");function _m(e){return Pe(e)?km(wm,e,!1)||e:e||fc}function km(e,t,n=!0,a=!1){const i=Ve||Qe;if(i){const o=i.type;{const s=Kc(o,!1);if(s&&(s===t||s===yt(t)||s===Ya(yt(t))))return o}const r=mc(i[e]||o[e],t)||mc(i.appContext[e],t);return!r&&a?o:r}}function mc(e,t){return e&&(e[t]||e[yt(t)]||e[Ya(yt(t))])}function mn(e,t,n,a){let i;const o=n,r=ae(e);if(r||Pe(e)){const s=r&&jn(e);let c=!1,l=!1;s&&(c=!wt(e),l=Gt(e),e=ei(e)),i=new Array(e.length);for(let p=0,d=e.length;pt(s,c,void 0,o));else{const s=Object.keys(e);i=new Array(s.length);for(let c=0,l=s.length;c0;return V(),Ue(Ce,null,[ve("slot",n,a)],l?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),V();const r=o&&vc(o(n)),s=n.key||r&&r.key,c=Ue(Ce,{key:(s&&!Jt(s)?s:`_${t}`)+""},r||[],r&&e._===1?64:-2);return!i&&c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),o&&o._c&&(o._d=!0),c}function vc(e){return e.some(t=>Zo(t)?!(t.type===Xt||t.type===Ce&&!vc(t.children)):!0)?e:null}const Do=e=>e?Wc(e)?bi(e):Do(e.parent):null,Ea=He(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Do(e.parent),$root:e=>Do(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>xc(e),$forceUpdate:e=>e.f||(e.f=()=>{Co(e.update)}),$nextTick:e=>e.n||(e.n=Po.bind(e.proxy)),$watch:e=>om.bind(e)}),Ro=(e,t)=>e!==be&&!e.__isScriptSetup&&me(e,t),jm={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:a,data:i,props:o,accessCache:r,type:s,appContext:c}=e;if(t[0]!=="$"){const v=r[t];if(v!==void 0)switch(v){case 1:return a[t];case 2:return i[t];case 4:return n[t];case 3:return o[t]}else{if(Ro(a,t))return r[t]=1,a[t];if(i!==be&&me(i,t))return r[t]=2,i[t];if(me(o,t))return r[t]=3,o[t];if(n!==be&&me(n,t))return r[t]=4,n[t];$o&&(r[t]=0)}}const l=Ea[t];let p,d;if(l)return t==="$attrs"&&Ye(e.attrs,"get",""),l(e);if((p=s.__cssModules)&&(p=p[t]))return p;if(n!==be&&me(n,t))return r[t]=4,n[t];if(d=c.config.globalProperties,me(d,t))return d[t]},set({_:e},t,n){const{data:a,setupState:i,ctx:o}=e;return Ro(i,t)?(i[t]=n,!0):a!==be&&me(a,t)?(a[t]=n,!0):me(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:a,appContext:i,props:o,type:r}},s){let c;return!!(n[s]||e!==be&&s[0]!=="$"&&me(e,s)||Ro(t,s)||me(o,s)||me(a,s)||me(Ea,s)||me(i.config.globalProperties,s)||(c=r.__cssModules)&&c[s])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:me(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function hc(e){return ae(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let $o=!0;function Sm(e){const t=xc(e),n=e.proxy,a=e.ctx;$o=!1,t.beforeCreate&&gc(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:r,watch:s,provide:c,inject:l,created:p,beforeMount:d,mounted:v,beforeUpdate:u,updated:h,activated:f,deactivated:T,beforeDestroy:w,beforeUnmount:_,destroyed:A,unmounted:z,render:B,renderTracked:S,renderTriggered:E,errorCaptured:M,serverPrefetch:j,expose:U,inheritAttrs:Z,components:ee,directives:re,filters:oe}=t;if(l&&Em(l,a,null),r)for(const F in r){const L=r[F];X(L)&&(a[F]=L.bind(n))}if(i){const F=i.call(n,n);Se(F)&&(e.data=ii(F))}if($o=!0,o)for(const F in o){const L=o[F],ze=X(L)?L.bind(n,n):X(L.get)?L.get.bind(n,n):Rt,et=!X(L)&&X(L.set)?L.set.bind(n):Rt,ot=ct({get:ze,set:et});Object.defineProperty(a,F,{enumerable:!0,configurable:!0,get:()=>ot.value,set:Be=>ot.value=Be})}if(s)for(const F in s)bc(s[F],a,n,F);if(c){const F=X(c)?c.call(n):c;Reflect.ownKeys(F).forEach(L=>{rc(L,F[L])})}p&&gc(p,e,"c");function H(F,L){ae(L)?L.forEach(ze=>F(ze.bind(n))):L&&F(L.bind(n))}if(H(fm,d),H(Jn,v),H(mm,u),H(vm,h),H(pm,f),H(um,T),H(ym,M),H(xm,S),H(bm,E),H(hm,_),H(Mo,z),H(gm,j),ae(U))if(U.length){const F=e.exposed||(e.exposed={});U.forEach(L=>{Object.defineProperty(F,L,{get:()=>n[L],set:ze=>n[L]=ze,enumerable:!0})})}else e.exposed||(e.exposed={});B&&e.render===Rt&&(e.render=B),Z!=null&&(e.inheritAttrs=Z),ee&&(e.components=ee),re&&(e.directives=re),j&&lc(e)}function Em(e,t,n=Rt){ae(e)&&(e=No(e));for(const a in e){const i=e[a];let o;Se(i)?"default"in i?o=ja(i.from||a,i.default,!0):o=ja(i.from||a):o=ja(i),Ze(o)?Object.defineProperty(t,a,{enumerable:!0,configurable:!0,get:()=>o.value,set:r=>o.value=r}):t[a]=o}}function gc(e,t,n){Ft(ae(e)?e.map(a=>a.bind(t.proxy)):e.bind(t.proxy),t,n)}function bc(e,t,n,a){let i=a.includes(".")?cc(n,a):()=>n[a];if(Pe(e)){const o=t[e];X(o)&&fn(i,o)}else if(X(e))fn(i,e.bind(n));else if(Se(e))if(ae(e))e.forEach(o=>bc(o,t,n,a));else{const o=X(e.handler)?e.handler.bind(n):t[e.handler];X(o)&&fn(i,o,e)}}function xc(e){const t=e.type,{mixins:n,extends:a}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:r}}=e.appContext,s=o.get(t);let c;return s?c=s:!i.length&&!n&&!a?c=t:(c={},i.length&&i.forEach(l=>fi(c,l,r,!0)),fi(c,t,r)),Se(t)&&o.set(t,c),c}function fi(e,t,n,a=!1){const{mixins:i,extends:o}=t;o&&fi(e,o,n,!0),i&&i.forEach(r=>fi(e,r,n,!0));for(const r in t)if(!(a&&r==="expose")){const s=Om[r]||n&&n[r];e[r]=s?s(e[r],t[r]):t[r]}return e}const Om={data:yc,props:wc,emits:wc,methods:Oa,computed:Oa,beforeCreate:at,created:at,beforeMount:at,mounted:at,beforeUpdate:at,updated:at,beforeDestroy:at,beforeUnmount:at,destroyed:at,unmounted:at,activated:at,deactivated:at,errorCaptured:at,serverPrefetch:at,components:Oa,directives:Oa,watch:Am,provide:yc,inject:zm};function yc(e,t){return t?e?function(){return He(X(e)?e.call(this,this):e,X(t)?t.call(this,this):t)}:t:e}function zm(e,t){return Oa(No(e),No(t))}function No(e){if(ae(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${yt(t)}Modifiers`]||e[`${cn(t)}Modifiers`];function Tm(e,t,...n){if(e.isUnmounted)return;const a=e.vnode.props||be;let i=n;const o=t.startsWith("update:"),r=o&&Cm(a,t.slice(7));r&&(r.trim&&(i=n.map(p=>Pe(p)?p.trim():p)),r.number&&(i=n.map(fo)));let s,c=a[s=uo(t)]||a[s=uo(yt(t))];!c&&o&&(c=a[s=uo(cn(t))]),c&&Ft(c,e,6,i);const l=a[s+"Once"];if(l){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,Ft(l,e,6,i)}}const Mm=new WeakMap;function kc(e,t,n=!1){const a=n?Mm:t.emitsCache,i=a.get(e);if(i!==void 0)return i;const o=e.emits;let r={},s=!1;if(!X(e)){const c=l=>{const p=kc(l,t,!0);p&&(s=!0,He(r,p))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!s?(Se(e)&&a.set(e,null),null):(ae(o)?o.forEach(c=>r[c]=null):He(r,o),Se(e)&&a.set(e,r),r)}function mi(e,t){return!e||!Ka(t)?!1:(t=t.slice(2).replace(/Once$/,""),me(e,t[0].toLowerCase()+t.slice(1))||me(e,cn(t))||me(e,t))}function N0(){}function jc(e){const{type:t,vnode:n,proxy:a,withProxy:i,propsOptions:[o],slots:r,attrs:s,emit:c,render:l,renderCache:p,props:d,data:v,setupState:u,ctx:h,inheritAttrs:f}=e,T=pi(e);let w,_;try{if(n.shapeFlag&4){const z=i||a,B=z;w=Ut(l.call(B,z,p,d,u,v,h)),_=s}else{const z=t;w=Ut(z.length>1?z(d,{attrs:s,slots:r,emit:c}):z(d,null)),_=t.props?s:Dm(s)}}catch(z){za.length=0,ci(z,e,1),w=ve(Xt)}let A=w;if(_&&f!==!1){const z=Object.keys(_),{shapeFlag:B}=A;z.length&&B&7&&(o&&z.some(co)&&(_=Rm(_,o)),A=Gn(A,_,!1,!0))}return n.dirs&&(A=Gn(A,null,!1,!0),A.dirs=A.dirs?A.dirs.concat(n.dirs):n.dirs),n.transition&&To(A,n.transition),w=A,pi(T),w}const Dm=e=>{let t;for(const n in e)(n==="class"||n==="style"||Ka(n))&&((t||(t={}))[n]=e[n]);return t},Rm=(e,t)=>{const n={};for(const a in e)(!co(a)||!(a.slice(9)in t))&&(n[a]=e[a]);return n};function $m(e,t,n){const{props:a,children:i,component:o}=e,{props:r,children:s,patchFlag:c}=t,l=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return a?Sc(a,r,l):!!r;if(c&8){const p=t.dynamicProps;for(let d=0;dObject.create(Ec),zc=e=>Object.getPrototypeOf(e)===Ec;function Fm(e,t,n,a=!1){const i={},o=Oc();e.propsDefaults=Object.create(null),Ac(e,t,i,o);for(const r in e.propsOptions[0])r in i||(i[r]=void 0);n?e.props=a?i:Uf(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function Lm(e,t,n,a){const{props:i,attrs:o,vnode:{patchFlag:r}}=e,s=ue(i),[c]=e.propsOptions;let l=!1;if((a||r>0)&&!(r&16)){if(r&8){const p=e.vnode.dynamicProps;for(let d=0;d{c=!0;const[v,u]=Ic(d,t,!0);He(r,v),u&&s.push(...u)};!n&&t.mixins.length&&t.mixins.forEach(p),e.extends&&p(e.extends),e.mixins&&e.mixins.forEach(p)}if(!o&&!c)return Se(e)&&a.set(e,Fn),Fn;if(ae(o))for(let p=0;pe==="_"||e==="_ctx"||e==="$stable",Uo=e=>ae(e)?e.map(Ut):[Ut(e)],qm=(e,t,n)=>{if(t._n)return t;const a=De((...i)=>Uo(t(...i)),n);return a._c=!1,a},Cc=(e,t,n)=>{const a=e._ctx;for(const i in e){if(Lo(i))continue;const o=e[i];if(X(o))t[i]=qm(i,o,a);else if(o!=null){const r=Uo(o);t[i]=()=>r}}},Tc=(e,t)=>{const n=Uo(t);e.slots.default=()=>n},Mc=(e,t,n)=>{for(const a in t)(n||!Lo(a))&&(e[a]=t[a])},Bm=(e,t,n)=>{const a=e.slots=Oc();if(e.vnode.shapeFlag&32){const i=t._;i?(Mc(a,t,n),n&&Es(a,"_",i,!0)):Cc(t,a)}else t&&Tc(e,t)},Zm=(e,t,n)=>{const{vnode:a,slots:i}=e;let o=!0,r=be;if(a.shapeFlag&32){const s=t._;s?n&&s===1?o=!1:Mc(i,t,n):(o=!t.$stable,Cc(t,i)),r=t}else t&&(Tc(e,t),r={default:1});if(o)for(const s in i)!Lo(s)&&r[s]==null&&delete i[s]},ft=Hm;function Wm(e){return Vm(e)}function Vm(e,t){const n=Xa();n.__VUE__=!0;const{insert:a,remove:i,patchProp:o,createElement:r,createText:s,createComment:c,setText:l,setElementText:p,parentNode:d,nextSibling:v,setScopeId:u=Rt,insertStaticContent:h}=e,f=(m,g,x,P=null,k=null,C=null,$=void 0,D=null,R=!!g.dynamicChildren)=>{if(m===g)return;m&&!Ia(m,g)&&(P=gt(m),Be(m,k,C,!0),m=null),g.patchFlag===-2&&(R=!1,g.dynamicChildren=null);const{type:I,ref:W,shapeFlag:q}=g;switch(I){case vi:T(m,g,x,P);break;case Xt:w(m,g,x,P);break;case Bo:m==null&&_(g,x,P,$);break;case Ce:ee(m,g,x,P,k,C,$,D,R);break;default:q&1?B(m,g,x,P,k,C,$,D,R):q&6?re(m,g,x,P,k,C,$,D,R):(q&64||q&128)&&I.process(m,g,x,P,k,C,$,D,R,ge)}W!=null&&k?Sa(W,m&&m.ref,C,g||m,!g):W==null&&m&&m.ref!=null&&Sa(m.ref,null,C,m,!0)},T=(m,g,x,P)=>{if(m==null)a(g.el=s(g.children),x,P);else{const k=g.el=m.el;g.children!==m.children&&l(k,g.children)}},w=(m,g,x,P)=>{m==null?a(g.el=c(g.children||""),x,P):g.el=m.el},_=(m,g,x,P)=>{[m.el,m.anchor]=h(m.children,g,x,P,m.el,m.anchor)},A=({el:m,anchor:g},x,P)=>{let k;for(;m&&m!==g;)k=v(m),a(m,x,P),m=k;a(g,x,P)},z=({el:m,anchor:g})=>{let x;for(;m&&m!==g;)x=v(m),i(m),m=x;i(g)},B=(m,g,x,P,k,C,$,D,R)=>{if(g.type==="svg"?$="svg":g.type==="math"&&($="mathml"),m==null)S(g,x,P,k,C,$,D,R);else{const I=m.el&&m.el._isVueCE?m.el:null;try{I&&I._beginPatch(),j(m,g,k,C,$,D,R)}finally{I&&I._endPatch()}}},S=(m,g,x,P,k,C,$,D)=>{let R,I;const{props:W,shapeFlag:q,transition:J,dirs:Q}=m;if(R=m.el=r(m.type,C,W&&W.is,W),q&8?p(R,m.children):q&16&&M(m.children,R,null,P,k,qo(m,C),$,D),Q&&En(m,null,P,"created"),E(R,m,m.scopeId,$,P),W){for(const ke in W)ke!=="value"&&!ha(ke)&&o(R,ke,null,W[ke],C,P);"value"in W&&o(R,"value",null,W.value,C),(I=W.onVnodeBeforeMount)&&qt(I,P,m)}Q&&En(m,null,P,"beforeMount");const le=Jm(k,J);le&&J.beforeEnter(R),a(R,g,x),((I=W&&W.onVnodeMounted)||le||Q)&&ft(()=>{I&&qt(I,P,m),le&&J.enter(R),Q&&En(m,null,P,"mounted")},k)},E=(m,g,x,P,k)=>{if(x&&u(m,x),P)for(let C=0;C{for(let I=R;I{const D=g.el=m.el;let{patchFlag:R,dynamicChildren:I,dirs:W}=g;R|=m.patchFlag&16;const q=m.props||be,J=g.props||be;let Q;if(x&&On(x,!1),(Q=J.onVnodeBeforeUpdate)&&qt(Q,x,g,m),W&&En(g,m,x,"beforeUpdate"),x&&On(x,!0),(q.innerHTML&&J.innerHTML==null||q.textContent&&J.textContent==null)&&p(D,""),I?U(m.dynamicChildren,I,D,x,P,qo(g,k),C):$||L(m,g,D,null,x,P,qo(g,k),C,!1),R>0){if(R&16)Z(D,q,J,x,k);else if(R&2&&q.class!==J.class&&o(D,"class",null,J.class,k),R&4&&o(D,"style",q.style,J.style,k),R&8){const le=g.dynamicProps;for(let ke=0;ke{Q&&qt(Q,x,g,m),W&&En(g,m,x,"updated")},P)},U=(m,g,x,P,k,C,$)=>{for(let D=0;D{if(g!==x){if(g!==be)for(const C in g)!ha(C)&&!(C in x)&&o(m,C,g[C],null,k,P);for(const C in x){if(ha(C))continue;const $=x[C],D=g[C];$!==D&&C!=="value"&&o(m,C,D,$,k,P)}"value"in x&&o(m,"value",g.value,x.value,k)}},ee=(m,g,x,P,k,C,$,D,R)=>{const I=g.el=m?m.el:s(""),W=g.anchor=m?m.anchor:s("");let{patchFlag:q,dynamicChildren:J,slotScopeIds:Q}=g;Q&&(D=D?D.concat(Q):Q),m==null?(a(I,x,P),a(W,x,P),M(g.children||[],x,W,k,C,$,D,R)):q>0&&q&64&&J&&m.dynamicChildren&&m.dynamicChildren.length===J.length?(U(m.dynamicChildren,J,x,k,C,$,D),(g.key!=null||k&&g===k.subTree)&&Dc(m,g,!0)):L(m,g,x,W,k,C,$,D,R)},re=(m,g,x,P,k,C,$,D,R)=>{g.slotScopeIds=D,m==null?g.shapeFlag&512?k.ctx.activate(g,x,P,$,R):oe(g,x,P,k,C,$,R):te(m,g,R)},oe=(m,g,x,P,k,C,$)=>{const D=m.component=tv(m,P,k);if(uc(m)&&(D.ctx.renderer=ge),nv(D,!1,$),D.asyncDep){if(k&&k.registerDep(D,H,$),!m.el){const R=D.subTree=ve(Xt);w(null,R,g,x),m.placeholder=R.el}}else H(D,m,g,x,k,C,$)},te=(m,g,x)=>{const P=g.component=m.component;if($m(m,g,x))if(P.asyncDep&&!P.asyncResolved){F(P,g,x);return}else P.next=g,P.update();else g.el=m.el,P.vnode=g},H=(m,g,x,P,k,C,$)=>{const D=()=>{if(m.isMounted){let{next:q,bu:J,u:Q,parent:le,vnode:ke}=m;{const bt=Rc(m);if(bt){q&&(q.el=ke.el,F(m,q,$)),bt.asyncDep.then(()=>{m.isUnmounted||D()});return}}let de=q,tt;On(m,!1),q?(q.el=ke.el,F(m,q,$)):q=ke,J&&Qa(J),(tt=q.props&&q.props.onVnodeBeforeUpdate)&&qt(tt,le,q,ke),On(m,!0);const Le=jc(m),dt=m.subTree;m.subTree=Le,f(dt,Le,d(dt.el),gt(dt),m,k,C),q.el=Le.el,de===null&&Nm(m,Le.el),Q&&ft(Q,k),(tt=q.props&&q.props.onVnodeUpdated)&&ft(()=>qt(tt,le,q,ke),k)}else{let q;const{el:J,props:Q}=g,{bm:le,m:ke,parent:de,root:tt,type:Le}=m,dt=Vn(g);On(m,!1),le&&Qa(le),!dt&&(q=Q&&Q.onVnodeBeforeMount)&&qt(q,de,g),On(m,!0);{tt.ce&&tt.ce._def.shadowRoot!==!1&&tt.ce._injectChildStyle(Le);const bt=m.subTree=jc(m);f(null,bt,x,P,m,k,C),g.el=bt.el}if(ke&&ft(ke,k),!dt&&(q=Q&&Q.onVnodeMounted)){const bt=g;ft(()=>qt(q,de,bt),k)}(g.shapeFlag&256||de&&Vn(de.vnode)&&de.vnode.shapeFlag&256)&&m.a&&ft(m.a,k),m.isMounted=!0,g=x=P=null}};m.scope.on();const R=m.effect=new Cs(D);m.scope.off();const I=m.update=R.run.bind(R),W=m.job=R.runIfDirty.bind(R);W.i=m,W.id=m.uid,R.scheduler=()=>Co(W),On(m,!0),I()},F=(m,g,x)=>{g.component=m;const P=m.vnode.props;m.vnode=g,m.next=null,Lm(m,g.props,P,x),Zm(m,g.children,x),$t(),nc(m),Nt()},L=(m,g,x,P,k,C,$,D,R=!1)=>{const I=m&&m.children,W=m?m.shapeFlag:0,q=g.children,{patchFlag:J,shapeFlag:Q}=g;if(J>0){if(J&128){et(I,q,x,P,k,C,$,D,R);return}else if(J&256){ze(I,q,x,P,k,C,$,D,R);return}}Q&8?(W&16&&We(I,k,C),q!==I&&p(x,q)):W&16?Q&16?et(I,q,x,P,k,C,$,D,R):We(I,k,C,!0):(W&8&&p(x,""),Q&16&&M(q,x,P,k,C,$,D,R))},ze=(m,g,x,P,k,C,$,D,R)=>{m=m||Fn,g=g||Fn;const I=m.length,W=g.length,q=Math.min(I,W);let J;for(J=0;JW?We(m,k,C,!0,!1,q):M(g,x,P,k,C,$,D,R,q)},et=(m,g,x,P,k,C,$,D,R)=>{let I=0;const W=g.length;let q=m.length-1,J=W-1;for(;I<=q&&I<=J;){const Q=m[I],le=g[I]=R?vn(g[I]):Ut(g[I]);if(Ia(Q,le))f(Q,le,x,null,k,C,$,D,R);else break;I++}for(;I<=q&&I<=J;){const Q=m[q],le=g[J]=R?vn(g[J]):Ut(g[J]);if(Ia(Q,le))f(Q,le,x,null,k,C,$,D,R);else break;q--,J--}if(I>q){if(I<=J){const Q=J+1,le=QJ)for(;I<=q;)Be(m[I],k,C,!0),I++;else{const Q=I,le=I,ke=new Map;for(I=le;I<=J;I++){const Ke=g[I]=R?vn(g[I]):Ut(g[I]);Ke.key!=null&&ke.set(Ke.key,I)}let de,tt=0;const Le=J-le+1;let dt=!1,bt=0;const $n=new Array(Le);for(I=0;I=Le){Be(Ke,k,C,!0);continue}let rt;if(Ke.key!=null)rt=ke.get(Ke.key);else for(de=le;de<=J;de++)if($n[de-le]===0&&Ia(Ke,g[de])){rt=de;break}rt===void 0?Be(Ke,k,C,!0):($n[rt-le]=I+1,rt>=bt?bt=rt:dt=!0,f(Ke,g[rt],x,null,k,C,$,D,R),tt++)}const io=dt?Km($n):Fn;for(de=io.length-1,I=Le-1;I>=0;I--){const Ke=le+I,rt=g[Ke],b=g[Ke+1],y=Ke+1{const{el:C,type:$,transition:D,children:R,shapeFlag:I}=m;if(I&6){ot(m.component.subTree,g,x,P);return}if(I&128){m.suspense.move(g,x,P);return}if(I&64){$.move(m,g,x,ge);return}if($===Ce){a(C,g,x);for(let W=0;WD.enter(C),k);else{const{leave:W,delayLeave:q,afterLeave:J}=D,Q=()=>{m.ctx.isUnmounted?i(C):a(C,g,x)},le=()=>{C._isLeaving&&C[cm](!0),W(C,()=>{Q(),J&&J()})};q?q(C,Q,le):le()}else a(C,g,x)},Be=(m,g,x,P=!1,k=!1)=>{const{type:C,props:$,ref:D,children:R,dynamicChildren:I,shapeFlag:W,patchFlag:q,dirs:J,cacheIndex:Q}=m;if(q===-2&&(k=!1),D!=null&&($t(),Sa(D,null,x,m,!0),Nt()),Q!=null&&(g.renderCache[Q]=void 0),W&256){g.ctx.deactivate(m);return}const le=W&1&&J,ke=!Vn(m);let de;if(ke&&(de=$&&$.onVnodeBeforeUnmount)&&qt(de,g,m),W&6)Mt(m.component,x,P);else{if(W&128){m.suspense.unmount(x,P);return}le&&En(m,null,g,"beforeUnmount"),W&64?m.type.remove(m,g,x,ge,P):I&&!I.hasOnce&&(C!==Ce||q>0&&q&64)?We(I,g,x,!1,!0):(C===Ce&&q&384||!k&&W&16)&&We(R,g,x),P&&Tt(m)}(ke&&(de=$&&$.onVnodeUnmounted)||le)&&ft(()=>{de&&qt(de,g,m),le&&En(m,null,g,"unmounted")},x)},Tt=m=>{const{type:g,el:x,anchor:P,transition:k}=m;if(g===Ce){Vt(x,P);return}if(g===Bo){z(m);return}const C=()=>{i(x),k&&!k.persisted&&k.afterLeave&&k.afterLeave()};if(m.shapeFlag&1&&k&&!k.persisted){const{leave:$,delayLeave:D}=k,R=()=>$(x,C);D?D(m.el,C,R):R()}else C()},Vt=(m,g)=>{let x;for(;m!==g;)x=v(m),i(m),m=x;i(g)},Mt=(m,g,x)=>{const{bum:P,scope:k,job:C,subTree:$,um:D,m:R,a:I}=m;$c(R),$c(I),P&&Qa(P),k.stop(),C&&(C.flags|=8,Be($,m,g,x)),D&&ft(D,g),ft(()=>{m.isUnmounted=!0},g)},We=(m,g,x,P=!1,k=!1,C=0)=>{for(let $=C;${if(m.shapeFlag&6)return gt(m.component.subTree);if(m.shapeFlag&128)return m.suspense.next();const g=v(m.anchor||m.el),x=g&&g[rm];return x?v(x):g};let St=!1;const he=(m,g,x)=>{let P;m==null?g._vnode&&(Be(g._vnode,null,null,!0),P=g._vnode.component):f(g._vnode||null,m,g,null,null,null,x),g._vnode=m,St||(St=!0,nc(P),ac(),St=!1)},ge={p:f,um:Be,m:ot,r:Tt,mt:oe,mc:M,pc:L,pbc:U,n:gt,o:e};return{render:he,hydrate:void 0,createApp:Pm(he)}}function qo({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function On({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Jm(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Dc(e,t,n=!1){const a=e.children,i=t.children;if(ae(a)&&ae(i))for(let o=0;o>1,e[n[s]]0&&(t[a]=n[o-1]),n[o]=a)}}for(o=n.length,r=n[o-1];o-- >0;)n[o]=r,r=t[r];return n}function Rc(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Rc(t)}function $c(e){if(e)for(let t=0;te.__isSuspense;function Hm(e,t){t&&t.pendingBranch?ae(e)?t.effects.push(...e):t.effects.push(e):tm(e)}const Ce=Symbol.for("v-fgt"),vi=Symbol.for("v-txt"),Xt=Symbol.for("v-cmt"),Bo=Symbol.for("v-stc"),za=[];let mt=null;function V(e=!1){za.push(mt=e?null:[])}function Gm(){za.pop(),mt=za[za.length-1]||null}let Aa=1;function Lc(e,t=!1){Aa+=e,e<0&&mt&&t&&(mt.hasOnce=!0)}function Uc(e){return e.dynamicChildren=Aa>0?mt||Fn:null,Gm(),Aa>0&&mt&&mt.push(e),e}function ie(e,t,n,a,i,o){return Uc(_e(e,t,n,a,i,o,!0))}function Ue(e,t,n,a,i){return Uc(ve(e,t,n,a,i,!0))}function Zo(e){return e?e.__v_isVNode===!0:!1}function Ia(e,t){return e.type===t.type&&e.key===t.key}const qc=({key:e})=>e??null,hi=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Pe(e)||Ze(e)||X(e)?{i:Ve,r:e,k:t,f:!!n}:e:null);function _e(e,t=null,n=null,a=0,i=null,o=e===Ce?0:1,r=!1,s=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&qc(t),ref:t&&hi(t),scopeId:oc,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:a,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Ve};return s?(Wo(c,n),o&128&&e.normalize(c)):n&&(c.shapeFlag|=Pe(n)?8:16),Aa>0&&!r&&mt&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&mt.push(c),c}const ve=Ym;function Ym(e,t=null,n=null,a=0,i=null,o=!1){if((!e||e===fc)&&(e=Xt),Zo(e)){const s=Gn(e,t,!0);return n&&Wo(s,n),Aa>0&&!o&&mt&&(s.shapeFlag&6?mt[mt.indexOf(e)]=s:mt.push(s)),s.patchFlag=-2,s}if(cv(e)&&(e=e.__vccOpts),t){t=Qm(t);let{class:s,style:c}=t;s&&!Pe(s)&&(t.class=Ot(s)),Se(c)&&(zo(c)&&!ae(c)&&(c=He({},c)),t.style=mo(c))}const r=Pe(e)?1:Fc(e)?128:sm(e)?64:Se(e)?4:X(e)?2:0;return _e(e,t,n,a,i,r,o,!0)}function Qm(e){return e?zo(e)||zc(e)?He({},e):e:null}function Gn(e,t,n=!1,a=!1){const{props:i,ref:o,patchFlag:r,children:s,transition:c}=e,l=t?Bc(i||{},t):i,p={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&qc(l),ref:t&&t.ref?n&&o?ae(o)?o.concat(hi(t)):[o,hi(t)]:hi(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ce?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Gn(e.ssContent),ssFallback:e.ssFallback&&Gn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&a&&To(p,c.clone(p)),p}function Pa(e=" ",t=0){return ve(vi,null,e,t)}function Te(e="",t=!1){return t?(V(),Ue(Xt,null,e)):ve(Xt,null,e)}function Ut(e){return e==null||typeof e=="boolean"?ve(Xt):ae(e)?ve(Ce,null,e.slice()):Zo(e)?vn(e):ve(vi,null,String(e))}function vn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Gn(e)}function Wo(e,t){let n=0;const{shapeFlag:a}=e;if(t==null)t=null;else if(ae(t))n=16;else if(typeof t=="object")if(a&65){const i=t.default;i&&(i._c&&(i._d=!1),Wo(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!zc(t)?t._ctx=Ve:i===3&&Ve&&(Ve.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else X(t)?(t={default:t,_ctx:Ve},n=32):(t=String(t),a&64?(n=16,t=[Pa(t)]):n=8);e.children=t,e.shapeFlag|=n}function Bc(...e){const t={};for(let n=0;nQe||Ve;let gi,Jo;{const e=Xa(),t=(n,a)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(a),o=>{i.length>1?i.forEach(r=>r(o)):i[0](o)}};gi=t("__VUE_INSTANCE_SETTERS__",n=>Qe=n),Jo=t("__VUE_SSR_SETTERS__",n=>Ta=n)}const Ca=e=>{const t=Qe;return gi(e),e.scope.on(),()=>{e.scope.off(),gi(t)}},Zc=()=>{Qe&&Qe.scope.off(),gi(null)};function Wc(e){return e.vnode.shapeFlag&4}let Ta=!1;function nv(e,t=!1,n=!1){t&&Jo(t);const{props:a,children:i}=e.vnode,o=Wc(e);Fm(e,a,o,t),Bm(e,i,n||t);const r=o?av(e,t):void 0;return t&&Jo(!1),r}function av(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,jm);const{setup:a}=n;if(a){$t();const i=e.setupContext=a.length>1?ov(e):null,o=Ca(e),r=Bn(a,e,0,[e.props,i]),s=ks(r);if(Nt(),o(),(s||e.sp)&&!Vn(e)&&lc(e),s){if(r.then(Zc,Zc),t)return r.then(c=>{Vc(e,c)}).catch(c=>{ci(c,e,0)});e.asyncDep=r}else Vc(e,r)}else Jc(e)}function Vc(e,t,n){X(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Se(t)&&(e.setupState=Qs(t)),Jc(e)}function Jc(e,t,n){const a=e.type;e.render||(e.render=a.render||Rt);{const i=Ca(e);$t();try{Sm(e)}finally{Nt(),i()}}}const iv={get(e,t){return Ye(e,"get",""),e[t]}};function ov(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,iv),slots:e.slots,emit:e.emit,expose:t}}function bi(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Qs(qf(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ea)return Ea[n](e)},has(t,n){return n in t||n in Ea}})):e.proxy}const rv=/(?:^|[-_])\w/g,sv=e=>e.replace(rv,t=>t.toUpperCase()).replace(/[-_]/g,"");function Kc(e,t=!0){return X(e)?e.displayName||e.name:e.name||t&&e.__name}function Hc(e,t,n=!1){let a=Kc(t);if(!a&&t.__file){const i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(a=i[1])}if(!a&&e){const i=o=>{for(const r in o)if(o[r]===t)return r};a=i(e.components)||e.parent&&i(e.parent.type.components)||i(e.appContext.components)}return a?sv(a):n?"App":"Anonymous"}function cv(e){return X(e)&&"__vccOpts"in e}const ct=(e,t)=>Vf(e,t,Ta),lv="3.5.26";let Ko;const Gc=typeof window<"u"&&window.trustedTypes;if(Gc)try{Ko=Gc.createPolicy("vue",{createHTML:e=>e})}catch{}const Yc=Ko?e=>Ko.createHTML(e):e=>e,pv="http://www.w3.org/2000/svg",uv="http://www.w3.org/1998/Math/MathML",en=typeof document<"u"?document:null,Qc=en&&en.createElement("template"),dv={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,a)=>{const i=t==="svg"?en.createElementNS(pv,e):t==="mathml"?en.createElementNS(uv,e):n?en.createElement(e,{is:n}):en.createElement(e);return e==="select"&&a&&a.multiple!=null&&i.setAttribute("multiple",a.multiple),i},createText:e=>en.createTextNode(e),createComment:e=>en.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>en.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,a,i,o){const r=n?n.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===o||!(i=i.nextSibling)););else{Qc.innerHTML=Yc(a==="svg"?`${e}`:a==="mathml"?`${e}`:e);const s=Qc.content;if(a==="svg"||a==="mathml"){const c=s.firstChild;for(;c.firstChild;)s.appendChild(c.firstChild);s.removeChild(c)}t.insertBefore(s,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},fv=Symbol("_vtc");function mv(e,t,n){const a=e[fv];a&&(t=(t?[t,...a]:[...a]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Xc=Symbol("_vod"),vv=Symbol("_vsh"),hv=Symbol(""),gv=/(?:^|;)\s*display\s*:/;function bv(e,t,n){const a=e.style,i=Pe(n);let o=!1;if(n&&!i){if(t)if(Pe(t))for(const r of t.split(";")){const s=r.slice(0,r.indexOf(":")).trim();n[s]==null&&xi(a,s,"")}else for(const r in t)n[r]==null&&xi(a,r,"");for(const r in n)r==="display"&&(o=!0),xi(a,r,n[r])}else if(i){if(t!==n){const r=a[hv];r&&(n+=";"+r),a.cssText=n,o=gv.test(n)}}else t&&e.removeAttribute("style");Xc in e&&(e[Xc]=o?a.display:"",e[vv]&&(a.display="none"))}const el=/\s*!important$/;function xi(e,t,n){if(ae(n))n.forEach(a=>xi(e,t,a));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const a=xv(e,t);el.test(n)?e.setProperty(cn(a),n.replace(el,""),"important"):e[a]=n}}const tl=["Webkit","Moz","ms"],Ho={};function xv(e,t){const n=Ho[t];if(n)return n;let a=yt(t);if(a!=="filter"&&a in e)return Ho[t]=a;a=Ya(a);for(let i=0;iGo||(kv.then(()=>Go=0),Go=Date.now());function Sv(e,t){const n=a=>{if(!a._vts)a._vts=Date.now();else if(a._vts<=n.attached)return;Ft(Ev(a,n.value),t,5,[a])};return n.value=e,n.attached=jv(),n}function Ev(e,t){if(ae(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(a=>i=>!i._stopped&&a&&a(i))}else return t}const sl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ov=(e,t,n,a,i,o)=>{const r=i==="svg";t==="class"?mv(e,a,r):t==="style"?bv(e,n,a):Ka(t)?co(t)||wv(e,t,n,a,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):zv(e,t,a,r))?(il(e,t,a),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&al(e,t,a,r,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Pe(a))?il(e,yt(t),a,o,t):(t==="true-value"?e._trueValue=a:t==="false-value"&&(e._falseValue=a),al(e,t,a,r))};function zv(e,t,n,a){if(a)return!!(t==="innerHTML"||t==="textContent"||t in e&&sl(t)&&X(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return sl(t)&&Pe(n)?!1:t in e}const cl=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ae(t)?n=>Qa(t,n):t};function Av(e){e.target.composing=!0}function ll(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Yo=Symbol("_assign");function pl(e,t,n){return t&&(e=e.trim()),n&&(e=fo(e)),e}const Iv={created(e,{modifiers:{lazy:t,trim:n,number:a}},i){e[Yo]=cl(i);const o=a||i.props&&i.props.type==="number";Yn(e,t?"change":"input",r=>{r.target.composing||e[Yo](pl(e.value,n,o))}),(n||o)&&Yn(e,"change",()=>{e.value=pl(e.value,n,o)}),t||(Yn(e,"compositionstart",Av),Yn(e,"compositionend",ll),Yn(e,"change",ll))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:a,trim:i,number:o}},r){if(e[Yo]=cl(r),e.composing)return;const s=(o||e.type==="number")&&!/^0\d/.test(e.value)?fo(e.value):e.value,c=t??"";s!==c&&(document.activeElement===e&&e.type!=="range"&&(a&&t===n||i&&e.value.trim()===c)||(e.value=c))}},Pv=["ctrl","shift","alt","meta"],Cv={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Pv.some(n=>e[`${n}Key`]&&!t.includes(n))},Qo=(e,t)=>{const n=e._withMods||(e._withMods={}),a=t.join(".");return n[a]||(n[a]=((i,...o)=>{for(let r=0;r{const n=e._withKeys||(e._withKeys={}),a=t.join(".");return n[a]||(n[a]=(i=>{if(!("key"in i))return;const o=cn(i.key);if(t.some(r=>r===o||Tv[r]===o))return e(i)}))},Mv=He({patchProp:Ov},dv);let ul;function Dv(){return ul||(ul=Wm(Mv))}const Rv=((...e)=>{const t=Dv().createApp(...e),{mount:n}=t;return t.mount=a=>{const i=Nv(a);if(!i)return;const o=t._component;!X(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const r=n(i,!1,$v(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),r},t});function $v(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Nv(e){return Pe(e)?document.querySelector(e):e}const Fv=e=>{let t={id:"",form:{source:"",contentType:"",filters:[],manualItems:[""],showImage:!0,displayType:"card",displayNumber:6},config:{contentMap:{},termMap:{}}};e?.id&&(t.id=e.id),e?.form&&Object.keys(e.form).length&&(t.form={...t.form,...e.form}),e?.config&&Object.keys(e.config).length&&(t.config={...t.config,...e.config});const n=ii(t),a=(c,l)=>l!==void 0?n.form[c][l]:n.form[c],i=(c,l,p)=>{p!==void 0&&Array.isArray(n.form[c])?n.form[c][p]!==void 0?n.form[c][p]=l:n.form[c].push(l):n.form[c]=l},o=c=>`${n.id}-${c}`,r=c=>n.config[c],s=(c,l,p=!1)=>{p?n.config[c]={...n.config[c],...l}:n.config[c]=l};return{form:n.form,config:n.config,getField:a,setField:i,getScopedId:o,getConfig:r,setConfig:s}};function tn(e){if(e!==void 0){const t=Fv(e);return rc("state",t),t}return ja("state")}const nn=(e,t)=>{const n=e.__vccOpts||e;for(const[a,i]of t)n[a]=i;return n},Lv={},Uv={class:"tide-form"};function qv(e,t){return V(),ie("div",Uv,[Kn(e.$slots,"default")])}const Bv=nn(Lv,[["render",qv]]),Zv={class:"tide-fieldset"},Wv={class:"tide-fieldset__legend"},Vv={key:0,class:"tide-fieldset__required"},Jv={key:0,class:"tide-fieldset__description"},Kv=Re({__name:"TideFieldset",props:{title:{},description:{default:void 0},required:{type:Boolean,default:!1}},setup(e){return(t,n)=>(V(),ie("fieldset",Zv,[_e("legend",Wv,[Pa(st(e.title)+" ",1),e.required?(V(),ie("span",Vv,"*")):Te("",!0)]),e.description?(V(),ie("p",Jv,st(e.description),1)):Te("",!0),Kn(t.$slots,"default",{},void 0,!0)]))}}),yi=nn(Kv,[["__scopeId","data-v-da18ce75"]]),Hv={class:"tide-field"},Gv={key:0,class:"tide-field__required"},Yv={key:1,class:"tide-form__description"},Qv={key:2,class:"tide-form__error"},hn=Re({__name:"TideField",props:{id:{},index:{default:void 0},scope:{default:void 0},type:{default:"label"},label:{default:void 0},hideLabel:{type:Boolean,default:!1},description:{default:void 0},required:{type:Boolean,default:!1},error:{default:void 0}},setup(e){const t=e,{getScopedId:n,getField:a,setField:i}=tn(),o=ct(()=>{let c=n(t.id);return t.scope&&(c+=`-${t.scope}`),t.index!==void 0&&(c+=`-${t.index}`),c}),r=ct(()=>{const c=a(t.id);return Array.isArray(c)&&t.index!==void 0?c[t.index]:c}),s=(c,l)=>{i(t.id,c,l)};return(c,l)=>(V(),ie("div",Hv,[e.label?(V(),Ue(_m(e.type),{key:0,for:e.label?o.value:void 0,class:Ot({"tide-form__label":!0,"tide-visually-hidden":e.hideLabel})},{default:De(()=>[Pa(st(e.label)+" ",1),e.required?(V(),ie("span",Gv,"*")):Te("",!0)]),_:1},8,["for","class"])):Te("",!0),Kn(c.$slots,"default",{key:e.id,id:o.value,value:r.value,update:s}),e.description?(V(),ie("div",Yv,st(e.description),1)):Te("",!0),e.error?(V(),ie("div",Qv,st(e.error),1)):Te("",!0)]))}}),Xv=["aria-disabled"],eh={class:"tide-option-button__image"},th=["src"],nh={class:"tide-option-button__main"},ah={class:"tide-option-button__label"},ih=["id"],oh=["id","name","aria-describedby","value","checked","required"],rh=Re({__name:"TideOptionButton",props:{id:{},fieldId:{},label:{},description:{default:void 0},icon:{default:void 0},value:{},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["change"],setup(e,{emit:t}){const n=t;return(a,i)=>(V(),ie("label",{class:"tide-option-button tide-form__element","aria-disabled":e.disabled},[_e("span",eh,[_e("img",{class:"tide-option-button__icon",role:"presentation",src:e.icon,alt:""},null,8,th)]),_e("span",nh,[_e("span",ah,st(e.label),1),e.description?(V(),ie("span",{key:0,id:`${e.fieldId}-description`,class:"tide-form__description"},st(e.description),9,ih)):Te("",!0)]),_e("input",{type:"radio",id:`${e.fieldId}-${e.id}`,name:e.fieldId,class:"tide-option-button__input","aria-describedby":`${e.fieldId}-description`,value:e.id,checked:e.id===e.value,required:e.required,onChange:i[0]||(i[0]=o=>n("change",e.id))},null,40,oh)],8,Xv))}}),sh=nn(rh,[["__scopeId","data-v-378f24ab"]]),ch={class:"tide-option-group"},lh=Re({__name:"TideOptionGroup",props:{id:{},value:{},required:{type:Boolean,default:!1},options:{}},emits:["change"],setup(e){return(t,n)=>(V(),ie("div",ch,[(V(!0),ie(Ce,null,mn(e.options,a=>(V(),Ue(sh,Bc({key:a.id,"field-id":e.id,value:e.value,required:e.required},{ref_for:!0},a,{onChange:n[0]||(n[0]=i=>t.$emit("change",i))}),null,16,["field-id","value","required"]))),128))]))}}),ph=nn(lh,[["__scopeId","data-v-0c7fefd7"]]),uh=["name","id","value","required"],dh=["value"],dl=Re({__name:"TideSelect",props:{id:{},options:{},required:{type:Boolean,default:!1},value:{default:void 0}},emits:["change"],setup(e){return(t,n)=>(V(),ie("select",{name:e.id,id:e.id,class:"tide-select tide-form__element",value:e.value,required:e.required,onChange:n[0]||(n[0]=a=>t.$emit("change",a.target.value))},[n[1]||(n[1]=_e("option",{value:""},"- Select -",-1)),(V(!0),ie(Ce,null,mn(e.options,a=>(V(),ie("option",{value:a.value},st(a.label),9,dh))),256))],40,uh))}});function fh(e,t,n,a){function i(o){return o instanceof n?o:new n(function(r){r(o)})}return new(n||(n=Promise))(function(o,r){function s(p){try{l(a.next(p))}catch(d){r(d)}}function c(p){try{l(a.throw(p))}catch(d){r(d)}}function l(p){p.done?o(p.value):i(p.value).then(s,c)}l((a=a.apply(e,[])).next())})}function mh(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},a,i,o,r=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return r.next=s(0),r.throw=s(1),r.return=s(2),typeof Symbol=="function"&&(r[Symbol.iterator]=function(){return this}),r;function s(l){return function(p){return c([l,p])}}function c(l){if(a)throw new TypeError("Generator is already executing.");for(;r&&(r=0,l[0]&&(n=0)),n;)try{if(a=1,i&&(o=l[0]&2?i.return:l[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,l[1])).done)return o;switch(i=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,i=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]bh)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;a>0;)this.buffer[this.bufferLength++]=t[n++],a--,this.bufferLength===_t&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var t=this.bytesHashed*8,n=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),a=this.bufferLength;if(n.setUint8(this.bufferLength++,128),a%_t>=_t-8){for(var i=this.bufferLength;i<_t;i++)n.setUint8(i,0);this.hashBuffer(),this.bufferLength=0}for(var i=this.bufferLength;i<_t-8;i++)n.setUint8(i,0);n.setUint32(_t-8,Math.floor(t/4294967296),!0),n.setUint32(_t-4,t),this.hashBuffer(),this.finished=!0}for(var o=new Uint8Array(vh),i=0;i<8;i++)o[i*4]=this.state[i]>>>24&255,o[i*4+1]=this.state[i]>>>16&255,o[i*4+2]=this.state[i]>>>8&255,o[i*4+3]=this.state[i]>>>0&255;return o},e.prototype.hashBuffer=function(){for(var t=this,n=t.buffer,a=t.state,i=a[0],o=a[1],r=a[2],s=a[3],c=a[4],l=a[5],p=a[6],d=a[7],v=0;v<_t;v++){if(v<16)this.temp[v]=(n[v*4]&255)<<24|(n[v*4+1]&255)<<16|(n[v*4+2]&255)<<8|n[v*4+3]&255;else{var u=this.temp[v-2],h=(u>>>17|u<<15)^(u>>>19|u<<13)^u>>>10;u=this.temp[v-15];var f=(u>>>7|u<<25)^(u>>>18|u<<14)^u>>>3;this.temp[v]=(h+this.temp[v-7]|0)+(f+this.temp[v-16]|0)}var T=(((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))+(c&l^~c&p)|0)+(d+(hh[v]+this.temp[v]|0)|0)|0,w=((i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10))+(i&o^i&r^o&r)|0;d=p,p=l,l=c,c=s+T|0,s=r,r=o,o=i,i=T+w|0}a[0]+=i,a[1]+=o,a[2]+=r,a[3]+=s,a[4]+=c,a[5]+=l,a[6]+=p,a[7]+=d},e})();const xh=e=>new TextEncoder().encode(e);var yh=typeof Buffer<"u"&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:xh;function fl(e){return e instanceof Uint8Array?e:typeof e=="string"?yh(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}function wh(e){return typeof e=="string"?e.length===0:e.byteLength===0}var _h=(function(){function e(t){this.secret=t,this.hash=new wi,this.reset()}return e.prototype.update=function(t){if(!(wh(t)||this.error))try{this.hash.update(fl(t))}catch(n){this.error=n}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){return fh(this,void 0,void 0,function(){return mh(this,function(t){return[2,this.digestSync()]})})},e.prototype.reset=function(){if(this.hash=new wi,this.secret){this.outer=new wi;var t=kh(this.secret),n=new Uint8Array(_t);n.set(t);for(var a=0;a<_t;a++)t[a]^=54,n[a]^=92;this.hash.update(t),this.outer.update(n);for(var a=0;a_t){var n=new wi;n.update(t),t=n.digest()}var a=new Uint8Array(_t);return a.set(t),a}const jh=Object.prototype.toString,Sh="[object Uint8Array]";function Eh(e){return e?e.constructor===Uint8Array?!0:jh.call(e)===Sh:!1}function Oh(e){if(!Eh(e))throw new TypeError(`Expected \`Uint8Array\`, got \`${typeof e}\``)}new globalThis.TextDecoder;function ml(e){if(typeof e!="string")throw new TypeError(`Expected \`string\`, got \`${typeof e}\``)}const zh=new globalThis.TextEncoder;function Ah(e){return ml(e),zh.encode(e)}function Ih(e){return e.replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}const Ph=65535;function Ch(e,{urlSafe:t=!1}={}){Oh(e);let n;if(e.lengtht.toString(16).padStart(2,"0"));var Mh=Object.defineProperty,Dh=(e,t,n)=>t in e?Mh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,an=(e,t,n)=>(Dh(e,typeof t!="symbol"?t+"":t,n),n),vl=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},_i=(e,t,n)=>(vl(e,t,"read from private field"),t.get(e)),Rh=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},$h=(e,t,n,a)=>(vl(e,t,"write to private field"),t.set(e,n),n),hl=e=>typeof e=="object"&&e!==null&&"type"in e&&e.type==="OAuth",Nh={error(e){console.error("[ERROR]: ",e)},warn(e){console.warn("[WARN]: ",e)},info(e){console.info("[INFO]: ",e)},http(e){console.log("[HTTP]: ",e)},verbose(e){console.log("[LOG]: ",e)},debug(e){console.debug("[DEBUG]: ",e)},silly(e){console.log("[SILLY]: ",e)}},Fh=e=>!!(e!==null&&e&&typeof e=="object"&&"message"in e||e instanceof Error),Lh=e=>Fh(e)?e:new Error("Unknown error"),zn,gl=class{constructor(e,t){if(Rh(this,zn,null),an(this,"baseUrl"),an(this,"apiPrefix"),an(this,"customFetch"),an(this,"authentication"),an(this,"defaultLocale"),an(this,"cache"),an(this,"serializer"),an(this,"logger"),an(this,"debug"),!e)throw new Error("baseUrl is required");let{apiPrefix:n,customFetch:a,authentication:i,cache:o,debug:r,defaultLocale:s,serializer:c,logger:l=Nh}=t||{};this.baseUrl=e,this.apiPrefix=n,this.customFetch=a,this.authentication=i,this.cache=o,this.defaultLocale=s,this.serializer=c,this.logger=l,this.debug=r}async fetch(e,t){let n=t?.credentials==="omit";this.debug&&n&&this.log("verbose",`Disabling authentication for request to ${e}`);try{let a,i=n?t:await this.addAuthorizationHeader(t);return a=fetch,this.customFetch&&(a=this.customFetch),{response:await a(e,i),error:null}}catch(a){let i=Lh(a);return this.debug&&this.log("error",i.message),{response:null,error:i}}}async getAccessToken({grantType:e="client_credentials",clientId:t,clientSecret:n,username:a,password:i}){if(!t||!n||!hl(this.authentication))throw new Error("credentials.clientId or credentials.clientSecret is missing on the authentication option.");let o;if(e==="password"){if(!a||!i||!hl(this.authentication))throw new Error("credentials.username or credentials.password is missing on the authentication option.");o={grant_type:"password",client_id:t,client_secret:n,username:a,password:i}}else o={grant_type:"client_credentials",client_id:t,client_secret:n};let r=`${this.baseUrl}/oauth/token`,s;s=fetch,this.customFetch&&(s=this.customFetch);let c=await s(r,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams(o).toString()});if(c.ok){let l=await c.json(),p={accessToken:l.access_token,validUntil:Date.now()+l.expires_in*1e3,tokenType:l.token_type};return $h(this,zn,p),p}throw new Error("Could not authenticate with the provided credentials.")}async addAuthorizationHeader(e){if(!this.authentication)return e||{};let t=new Headers(e?.headers);switch(this.authentication.type){case"Basic":{let n=Th(`${this.authentication?.credentials.username}:${this.authentication?.credentials.password}`);t.set("Authorization",`${this.authentication.type} ${n}`);break}case"OAuth":{let n=_i(this,zn)?.tokenType,a=_i(this,zn)?.accessToken,i=_i(this,zn)?.validUntil&&_i(this,zn).validUntil-10*1e3typeof e=="object"&&e!==null&&"json"in e,Bh=e=>typeof e=="object"&&e!==null&&"entity"in e;const bl={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),bl[e]=t}function Zh(e){let t="";for(let n=0;nt in e?Wh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Xo=(e,t,n)=>(Vh(e,typeof t!="symbol"?t+"":t,n),n),Jh=class Et extends gl{constructor(t,n){super(t,n),Xo(this,"router"),Xo(this,"indexLookup"),Xo(this,"decoupledRouterApiPrefix");let{apiPrefix:a,cache:i,debug:o,indexLookup:r,decoupledRouterApiPrefix:s}=n||{};this.apiPrefix=a||"jsonapi",this.decoupledRouterApiPrefix=s,this.cache=i,this.debug=o||!1;let c={...n};this.decoupledRouterApiPrefix?c.apiPrefix=this.decoupledRouterApiPrefix:delete c.apiPrefix,this.router=new Uh(t,c),this.indexLookup=r||!1}async getCollection(t,n){let{entityTypeId:a,bundleId:i}=Et.getEntityTypeIdAndBundleId(t),o=n?.locale||this.defaultLocale,r=n?.queryString,s=n?.rawResponse||!1,c=await Et.createCacheKey({entityTypeId:a,bundleId:i,localeSegment:o,queryString:r,cacheKey:n?.cacheKey});if(!s&&!n?.disableCache){let h=await this.getCachedResponse(c);if(h)return h}let l=await this.createURL({localeSegment:o,entityTypeId:a,bundleId:i,queryString:r});this.debug&&this.log("verbose",`Fetching endpoint ${l}`);let p=n?.disableAuthentication?{credentials:"omit"}:{},{response:d,error:v}=await this.fetch(l,p);if(v)throw this.debug&&this.log("error",`Failed to get collection. Type: ${t}, Error: ${v.message}`),v;let u=await this.processApiResponseAndParseBody(d.clone(),c,n);return n?.rawResponse?{response:d,json:u}:u}async getResource(t,n,a){let{entityTypeId:i,bundleId:o}=Et.getEntityTypeIdAndBundleId(t),r=a?.locale||this.defaultLocale,s=a?.queryString,c=a?.rawResponse||!1,l=await Et.createCacheKey({entityTypeId:i,bundleId:o,resourceId:n,localeSegment:r,queryString:s});if(!c&&!a?.disableCache){let f=await this.getCachedResponse(l);if(f)return f}let p=await this.createURL({localeSegment:r,entityTypeId:i,bundleId:o,resourceId:n,queryString:s});this.debug&&this.log("verbose",`Fetching endpoint ${p}`);let d=a?.disableAuthentication?{credentials:"omit"}:{},{response:v,error:u}=await this.fetch(p,d);if(u)throw this.debug&&this.log("error",`Failed to get resource. ResourceId: ${n}, Error: ${u.message}`),u;let h=await this.processApiResponseAndParseBody(v.clone(),l,a);return a?.rawResponse?{response:v,json:h}:h}async createURL({localeSegment:t,entityTypeId:n,bundleId:a,viewName:i,viewDisplayId:o,resourceId:r,queryString:s}){if(this.indexLookup){let c=new URL(`${t??""}/${this.apiPrefix}`,this.baseUrl).toString(),l=`${t?`${t}/`:""}${this.apiPrefix}`,p,d=await this.getCachedResponse(l);if(d)p=d;else{this.debug&&this.log("verbose",`Fetching index at ${c}`);let{response:h,error:f}=await this.fetch(c);if(f)throw this.debug&&this.log("error",`Failed to get index. Error: ${f.message}`),f;p=await h.json(),this.cache&&h.status<400&&await this.cache?.set(l,p)}let v=`${n}${a?`--${a}`:""}`,u=p?.links?.[v]?.href;if(u)return`${u}${r?`/${r}`:""}${s?`?${s}`:""}`}return i?new URL(`${t??""}/${this.apiPrefix}/views/${i}/${o}${s?`?${s}`:""}`,this.baseUrl).toString():new URL(`${t??""}/${this.apiPrefix}/${n}/${a}${r?`/${r}`:""}${s?`?${s}`:""}`,this.baseUrl).toString()}async deleteResource(t,n,a){let i=a?.locale||this.defaultLocale,{entityTypeId:o,bundleId:r}=Et.getEntityTypeIdAndBundleId(t),s=await this.createURL({entityTypeId:o,bundleId:r,resourceId:n,localeSegment:i}),c=await Et.createCacheKey({entityTypeId:o,bundleId:r,cacheKey:a?.cacheKey});this.debug&&this.log("verbose",`Initiating deletion of resource. Type: ${t}, ResourceId: ${n}`);let l=a?.disableAuthentication?{credentials:"omit",method:"DELETE"}:{method:"DELETE"},{response:p,error:d}=await this.fetch(s,l);if(d)throw this.debug&&this.log("error",`Failed to delete resource. ResourceId: ${n}, Error: ${d.message}`),d;p.status===204?this.log("verbose",`Successfully deleted resource. ResourceId: ${n}`):this.log("error",`Failed to delete resource. ResourceId: ${n}, Status: ${p?.status}`);let v=await this.processApiResponseAndParseBody(p.clone(),c,a);return a?.rawResponse?{response:p,json:v}:v}static getEntityTypeIdAndBundleId(t){let[n,a]=t.split("--");return a?{entityTypeId:n,bundleId:a}:{entityTypeId:n,bundleId:""}}static async createCacheKey({entityTypeId:t,bundleId:n,viewName:a,viewDisplayId:i,localeSegment:o,resourceId:r,queryString:s,cacheKey:c}){if(c)return c;let l=o?`${o}--`:"",p="",d=r?`--${r}`:"";if(s){let v=new _h;v.update(s);let u=await v.digest();p=`--${Zh(u)}`}return a?`view--${l}${a}${i?`--${i}`:""}${d}${p}`:`${l}${t}${n?`--${n}`:""}${d}${p}`}async getView(t,n){let[a,i]=t.split("--"),o=n?.locale||this.defaultLocale,r=n?.queryString,s=n?.rawResponse||!1,c=await Et.createCacheKey({viewName:a,viewDisplayId:i,localeSegment:o,queryString:r,cacheKey:n?.cacheKey});if(!s&&!n?.disableCache){let h=await this.getCachedResponse(c);if(h)return h}let l=await this.createURL({localeSegment:o,viewName:a,viewDisplayId:i,queryString:r});this.debug&&this.log("verbose",`Fetching endpoint ${l}`);let p=n?.disableAuthentication?{credentials:"omit"}:{},{response:d,error:v}=await this.fetch(l,p);if(v)throw this.debug&&this.log("error",`Failed to get view. Type: ${t}, Error: ${v.message}`),v;let u=await this.processApiResponseAndParseBody(d.clone(),c,n);return n?.rawResponse?{response:d,json:u}:u}async getResourceByPath(t,n){let a=await this.router.translatePath(t,n),i=qh(a)?a.json:a;return Bh(i)?this.getResource(i.jsonapi.resourceName,i.entity.uuid,n):i}async updateResource(t,n,a,i){let o=i?.locale||this.defaultLocale,{entityTypeId:r,bundleId:s}=Et.getEntityTypeIdAndBundleId(t),c=await this.createURL({entityTypeId:r,bundleId:s,resourceId:n,localeSegment:o}),l=await Et.createCacheKey({entityTypeId:r,bundleId:s,cacheKey:i?.cacheKey});this.debug&&this.log("verbose",`Initiating update of resource. Type: ${t}, ResourceId: ${n}`);let p=new Headers;p.set("Accept","application/vnd.api+json"),p.set("Content-Type","application/vnd.api+json");let{response:d,error:v}=await this.fetch(c,{method:"PATCH",body:typeof a=="object"?JSON.stringify(a):a,credentials:i?.disableAuthentication?"omit":"same-origin",headers:p});if(v)throw this.debug&&this.log("error",`Failed to update resource. ResourceId: ${n}, Error: ${v.message}`),v;d?.status===200?this.log("verbose",`Successfully updated resource. ResourceId: ${n}`):this.log("error",`Failed to update resource. ResourceId: ${n}, Status: ${d?.status}`);let u=await this.processApiResponseAndParseBody(d.clone(),l,i);return i?.rawResponse?{response:d,json:u}:u}async createResource(t,n,a){let i=a?.locale||this.defaultLocale,{entityTypeId:o,bundleId:r}=Et.getEntityTypeIdAndBundleId(t),s=await this.createURL({entityTypeId:o,bundleId:r,localeSegment:i}),c=await Et.createCacheKey({entityTypeId:o,bundleId:r,cacheKey:a?.cacheKey});this.debug&&this.log("verbose",`Initiating creation of resource. Type: ${t}`);let l=new Headers;l.set("Accept","application/vnd.api+json"),l.set("Content-Type","application/vnd.api+json");let{response:p,error:d}=await this.fetch(s,{method:"POST",body:typeof n=="object"?JSON.stringify(n):n,credentials:a?.disableAuthentication?"omit":"same-origin",headers:l});if(d)throw this.debug&&this.log("error",`Failed to create resource. Error: ${d.message}`),d;p?.status===201?this.log("verbose",`Successfully created resource of type: ${t}`):this.log("error",`Failed to create resource. Status: ${p?.status}`);let v=await this.processApiResponseAndParseBody(p.clone(),c,a);return a?.rawResponse?{response:p,json:v}:v}async processApiResponseAndParseBody(t,n,a){let i=t.status;if(i===204)return"";let o=await t.json();return o=this.serializer?.deserialize?this.serializer.deserialize(o):o,this.cache&&!a?.disableCache&&i<400&&await this.cache?.set(n,o),o}},xl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Kh(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function a(){var i=!1;try{i=this instanceof a}catch{}return i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var i=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,i.get?i:{enumerable:!0,get:function(){return e[a]}})}),n}var Ma={},yl,wl;function Xn(){return wl||(wl=1,yl=TypeError),yl}const Hh={},Gh=Object.freeze(Object.defineProperty({__proto__:null,default:Hh},Symbol.toStringTag,{value:"Module"})),_l=Kh(Gh);var er,kl;function ki(){if(kl)return er;kl=1;var e=typeof Map=="function"&&Map.prototype,t=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,n=e&&t&&typeof t.get=="function"?t.get:null,a=e&&Map.prototype.forEach,i=typeof Set=="function"&&Set.prototype,o=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,r=i&&o&&typeof o.get=="function"?o.get:null,s=i&&Set.prototype.forEach,c=typeof WeakMap=="function"&&WeakMap.prototype,l=c?WeakMap.prototype.has:null,p=typeof WeakSet=="function"&&WeakSet.prototype,d=p?WeakSet.prototype.has:null,v=typeof WeakRef=="function"&&WeakRef.prototype,u=v?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,f=Object.prototype.toString,T=Function.prototype.toString,w=String.prototype.match,_=String.prototype.slice,A=String.prototype.replace,z=String.prototype.toUpperCase,B=String.prototype.toLowerCase,S=RegExp.prototype.test,E=Array.prototype.concat,M=Array.prototype.join,j=Array.prototype.slice,U=Math.floor,Z=typeof BigInt=="function"?BigInt.prototype.valueOf:null,ee=Object.getOwnPropertySymbols,re=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,oe=typeof Symbol=="function"&&typeof Symbol.iterator=="object",te=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===oe||!0)?Symbol.toStringTag:null,H=Object.prototype.propertyIsEnumerable,F=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(b){return b.__proto__}:null);function L(b,y){if(b===1/0||b===-1/0||b!==b||b&&b>-1e3&&b<1e3||S.call(/e/,y))return y;var fe=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof b=="number"){var we=b<0?-U(-b):U(b);if(we!==b){var je=String(we),se=_.call(y,je.length+1);return A.call(je,fe,"$&_")+"."+A.call(A.call(se,/([0-9]{3})/g,"$&_"),/_$/,"")}}return A.call(y,fe,"$&_")}var ze=_l,et=ze.custom,ot=P(et)?et:null,Be={__proto__:null,double:'"',single:"'"},Tt={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};er=function b(y,fe,we,je){var se=fe||{};if($(se,"quoteStyle")&&!$(Be,se.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if($(se,"maxStringLength")&&(typeof se.maxStringLength=="number"?se.maxStringLength<0&&se.maxStringLength!==1/0:se.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var wn=$(se,"customInspect")?se.customInspect:!0;if(typeof wn!="boolean"&&wn!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if($(se,"indent")&&se.indent!==null&&se.indent!==" "&&!(parseInt(se.indent,10)===se.indent&&se.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if($(se,"numericSeparator")&&typeof se.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Nn=se.numericSeparator;if(typeof y>"u")return"undefined";if(y===null)return"null";if(typeof y=="boolean")return y?"true":"false";if(typeof y=="string")return de(y,se);if(typeof y=="number"){if(y===0)return 1/0/y>0?"0":"-0";var xt=String(y);return Nn?L(y,xt):xt}if(typeof y=="bigint"){var _n=String(y)+"n";return Nn?L(y,_n):_n}var fs=typeof se.depth>"u"?5:se.depth;if(typeof we>"u"&&(we=0),we>=fs&&fs>0&&typeof y=="object")return gt(y)?"[Array]":"[Object]";var ma=io(se,we);if(typeof je>"u")je=[];else if(I(je,y)>=0)return"[Circular]";function Dt(va,ro,D0){if(ro&&(je=j.call(je),je.push(ro)),D0){var lf={depth:se.depth};return $(se,"quoteStyle")&&(lf.quoteStyle=se.quoteStyle),b(va,lf,we+1,je)}return b(va,se,we+1,je)}if(typeof y=="function"&&!he(y)){var tf=R(y),nf=rt(y,Dt);return"[Function"+(tf?": "+tf:" (anonymous)")+"]"+(nf.length>0?" { "+M.call(nf,", ")+" }":"")}if(P(y)){var af=oe?A.call(String(y),/^(Symbol\(.*\))_[^)]*$/,"$1"):re.call(y);return typeof y=="object"&&!oe?Le(af):af}if(ke(y)){for(var Ja="<"+B.call(String(y.nodeName)),ms=y.attributes||[],oo=0;oo",Ja}if(gt(y)){if(y.length===0)return"[]";var vs=rt(y,Dt);return ma&&!$n(vs)?"["+Ke(vs,ma)+"]":"[ "+M.call(vs,", ")+" ]"}if(ge(y)){var hs=rt(y,Dt);return!("cause"in Error.prototype)&&"cause"in y&&!H.call(y,"cause")?"{ ["+String(y)+"] "+M.call(E.call("[cause]: "+Dt(y.cause),hs),", ")+" }":hs.length===0?"["+String(y)+"]":"{ ["+String(y)+"] "+M.call(hs,", ")+" }"}if(typeof y=="object"&&wn){if(ot&&typeof y[ot]=="function"&&ze)return ze(y,{depth:fs-we});if(wn!=="symbol"&&typeof y.inspect=="function")return y.inspect()}if(W(y)){var of=[];return a&&a.call(y,function(va,ro){of.push(Dt(ro,y,!0)+" => "+Dt(va,y))}),bt("Map",n.call(y),of,ma)}if(Q(y)){var rf=[];return s&&s.call(y,function(va){rf.push(Dt(va,y))}),bt("Set",r.call(y),rf,ma)}if(q(y))return dt("WeakMap");if(le(y))return dt("WeakSet");if(J(y))return dt("WeakRef");if(g(y))return Le(Dt(Number(y)));if(k(y))return Le(Dt(Z.call(y)));if(x(y))return Le(h.call(y));if(m(y))return Le(Dt(String(y)));if(typeof window<"u"&&y===window)return"{ [object Window] }";if(typeof globalThis<"u"&&y===globalThis||typeof xl<"u"&&y===xl)return"{ [object globalThis] }";if(!St(y)&&!he(y)){var gs=rt(y,Dt),sf=F?F(y)===Object.prototype:y instanceof Object||y.constructor===Object,bs=y instanceof Object?"":"null prototype",cf=!sf&&te&&Object(y)===y&&te in y?_.call(D(y),8,-1):bs?"Object":"",M0=sf||typeof y.constructor!="function"?"":y.constructor.name?y.constructor.name+" ":"",xs=M0+(cf||bs?"["+M.call(E.call([],cf||[],bs||[]),": ")+"] ":"");return gs.length===0?xs+"{}":ma?xs+"{"+Ke(gs,ma)+"}":xs+"{ "+M.call(gs,", ")+" }"}return String(y)};function Vt(b,y,fe){var we=fe.quoteStyle||y,je=Be[we];return je+b+je}function Mt(b){return A.call(String(b),/"/g,""")}function We(b){return!te||!(typeof b=="object"&&(te in b||typeof b[te]<"u"))}function gt(b){return D(b)==="[object Array]"&&We(b)}function St(b){return D(b)==="[object Date]"&&We(b)}function he(b){return D(b)==="[object RegExp]"&&We(b)}function ge(b){return D(b)==="[object Error]"&&We(b)}function m(b){return D(b)==="[object String]"&&We(b)}function g(b){return D(b)==="[object Number]"&&We(b)}function x(b){return D(b)==="[object Boolean]"&&We(b)}function P(b){if(oe)return b&&typeof b=="object"&&b instanceof Symbol;if(typeof b=="symbol")return!0;if(!b||typeof b!="object"||!re)return!1;try{return re.call(b),!0}catch{}return!1}function k(b){if(!b||typeof b!="object"||!Z)return!1;try{return Z.call(b),!0}catch{}return!1}var C=Object.prototype.hasOwnProperty||function(b){return b in this};function $(b,y){return C.call(b,y)}function D(b){return f.call(b)}function R(b){if(b.name)return b.name;var y=w.call(T.call(b),/^function\s*([\w$]+)/);return y?y[1]:null}function I(b,y){if(b.indexOf)return b.indexOf(y);for(var fe=0,we=b.length;fey.maxStringLength){var fe=b.length-y.maxStringLength,we="... "+fe+" more character"+(fe>1?"s":"");return de(_.call(b,0,y.maxStringLength),y)+we}var je=Tt[y.quoteStyle||"single"];je.lastIndex=0;var se=A.call(A.call(b,je,"\\$1"),/[\x00-\x1f]/g,tt);return Vt(se,"single",y)}function tt(b){var y=b.charCodeAt(0),fe={8:"b",9:"t",10:"n",12:"f",13:"r"}[y];return fe?"\\"+fe:"\\x"+(y<16?"0":"")+z.call(y.toString(16))}function Le(b){return"Object("+b+")"}function dt(b){return b+" { ? }"}function bt(b,y,fe,we){var je=we?Ke(fe,we):M.call(fe,", ");return b+" ("+y+") {"+je+"}"}function $n(b){for(var y=0;y=0)return!1;return!0}function io(b,y){var fe;if(b.indent===" ")fe=" ";else if(typeof b.indent=="number"&&b.indent>0)fe=M.call(Array(b.indent+1)," ");else return null;return{base:fe,prev:M.call(Array(y+1),fe)}}function Ke(b,y){if(b.length===0)return"";var fe=` +`+y.prev+y.base;return fe+M.call(b,","+fe)+` +`+y.prev}function rt(b,y){var fe=gt(b),we=[];if(fe){we.length=b.length;for(var je=0;je"u"||!E?e:E(Uint8Array),oe={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":S&&E?E([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":ee,"%AsyncGenerator%":ee,"%AsyncGeneratorFunction%":ee,"%AsyncIteratorPrototype%":ee,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":n,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":T,"%GeneratorFunction%":ee,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":S&&E?E(E([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!S||!E?e:E(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":_,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":i,"%ReferenceError%":o,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!S||!E?e:E(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":S&&E?E(""[Symbol.iterator]()):e,"%Symbol%":S?Symbol:e,"%SyntaxError%":r,"%ThrowTypeError%":B,"%TypedArray%":re,"%TypeError%":s,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":c,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":Z,"%Function.prototype.apply%":U,"%Object.defineProperty%":A,"%Object.getPrototypeOf%":M,"%Math.abs%":l,"%Math.floor%":p,"%Math.max%":d,"%Math.min%":v,"%Math.pow%":u,"%Math.round%":h,"%Math.sign%":f,"%Reflect.getPrototypeOf%":j};if(E)try{null.error}catch(he){var te=E(E(he));oe["%Error.prototype%"]=te}var H=function he(ge){var m;if(ge==="%AsyncFunction%")m=w("async function () {}");else if(ge==="%GeneratorFunction%")m=w("function* () {}");else if(ge==="%AsyncGeneratorFunction%")m=w("async function* () {}");else if(ge==="%AsyncGenerator%"){var g=he("%AsyncGeneratorFunction%");g&&(m=g.prototype)}else if(ge==="%AsyncIteratorPrototype%"){var x=he("%AsyncGenerator%");x&&E&&(m=E(x.prototype))}return oe[ge]=m,m},F={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},L=ji(),ze=wg(),et=L.call(Z,Array.prototype.concat),ot=L.call(U,Array.prototype.splice),Be=L.call(Z,String.prototype.replace),Tt=L.call(Z,String.prototype.slice),Vt=L.call(Z,RegExp.prototype.exec),Mt=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,We=/\\(\\)?/g,gt=function(he){var ge=Tt(he,0,1),m=Tt(he,-1);if(ge==="%"&&m!=="%")throw new r("invalid intrinsic syntax, expected closing `%`");if(m==="%"&&ge!=="%")throw new r("invalid intrinsic syntax, expected opening `%`");var g=[];return Be(he,Mt,function(x,P,k,C){g[g.length]=k?Be(C,We,"$1"):P||x}),g},St=function(he,ge){var m=he,g;if(ze(F,m)&&(g=F[m],m="%"+g[0]+"%"),ze(oe,m)){var x=oe[m];if(x===ee&&(x=H(m)),typeof x>"u"&&!ge)throw new s("intrinsic "+he+" exists, but is not available. Please file an issue!");return{alias:g,name:m,value:x}}throw new r("intrinsic "+he+" does not exist!")};return vr=function(he,ge){if(typeof he!="string"||he.length===0)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ge!="boolean")throw new s('"allowMissing" argument must be a boolean');if(Vt(/^%?[^%]*%?$/,he)===null)throw new r("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var m=gt(he),g=m.length>0?m[0]:"",x=St("%"+g+"%",ge),P=x.name,k=x.value,C=!1,$=x.alias;$&&(g=$[0],ot(m,et([0,1],$)));for(var D=1,R=!0;D=m.length){var J=_(k,I);R=!!J,R&&"get"in J&&!("originalValue"in J.get)?k=J.get:k=k[I]}else R=ze(k,I),k=k[I];R&&!C&&(oe[P]=k)}}return k},vr}var gr,Ip;function Pp(){if(Ip)return gr;Ip=1;var e=hr(),t=Sp(),n=t([e("%String.prototype.indexOf%")]);return gr=function(a,i){var o=e(a,!!i);return typeof o=="function"&&n(a,".prototype.")>-1?t([o]):o},gr}var br,Cp;function Tp(){if(Cp)return br;Cp=1;var e=hr(),t=Pp(),n=ki(),a=Xn(),i=e("%Map%",!0),o=t("Map.prototype.get",!0),r=t("Map.prototype.set",!0),s=t("Map.prototype.has",!0),c=t("Map.prototype.delete",!0),l=t("Map.prototype.size",!0);return br=!!i&&function(){var p,d={assert:function(v){if(!d.has(v))throw new a("Side channel does not contain "+n(v))},delete:function(v){if(p){var u=c(p,v);return l(p)===0&&(p=void 0),u}return!1},get:function(v){if(p)return o(p,v)},has:function(v){return p?s(p,v):!1},set:function(v,u){p||(p=new i),r(p,v,u)}};return d},br}var xr,Mp;function _g(){if(Mp)return xr;Mp=1;var e=hr(),t=Pp(),n=ki(),a=Tp(),i=Xn(),o=e("%WeakMap%",!0),r=t("WeakMap.prototype.get",!0),s=t("WeakMap.prototype.set",!0),c=t("WeakMap.prototype.has",!0),l=t("WeakMap.prototype.delete",!0);return xr=o?(function(){var p,d,v={assert:function(u){if(!v.has(u))throw new i("Side channel does not contain "+n(u))},delete:function(u){if(o&&u&&(typeof u=="object"||typeof u=="function")){if(p)return l(p,u)}else if(a&&d)return d.delete(u);return!1},get:function(u){return o&&u&&(typeof u=="object"||typeof u=="function")&&p?r(p,u):d&&d.get(u)},has:function(u){return o&&u&&(typeof u=="object"||typeof u=="function")&&p?c(p,u):!!d&&d.has(u)},set:function(u,h){o&&u&&(typeof u=="object"||typeof u=="function")?(p||(p=new o),s(p,u,h)):a&&(d||(d=a()),d.set(u,h))}};return v}):a,xr}var yr,Dp;function Rp(){if(Dp)return yr;Dp=1;var e=Xn(),t=ki(),n=Yh(),a=Tp(),i=_g(),o=i||a||n;return yr=function(){var r,s={assert:function(c){if(!s.has(c))throw new e("Side channel does not contain "+t(c))},delete:function(c){return!!r&&r.delete(c)},get:function(c){return r&&r.get(c)},has:function(c){return!!r&&r.has(c)},set:function(c,l){r||(r=o()),r.set(c,l)}};return s},yr}var wr,$p;function _r(){if($p)return wr;$p=1;var e=String.prototype.replace,t=/%20/g,n={RFC1738:"RFC1738",RFC3986:"RFC3986"};return wr={default:n.RFC3986,formatters:{RFC1738:function(a){return e.call(a,t,"+")},RFC3986:function(a){return String(a)}},RFC1738:n.RFC1738,RFC3986:n.RFC3986},wr}var kr,Np;function Fp(){if(Np)return kr;Np=1;var e=_r(),t=Rp(),n=Object.prototype.hasOwnProperty,a=Array.isArray,i=t(),o=function(S,E){return i.set(S,E),S},r=function(S){return i.has(S)},s=function(S){return i.get(S)},c=function(S,E){i.set(S,E)},l=(function(){for(var S=[],E=0;E<256;++E)S.push("%"+((E<16?"0":"")+E.toString(16)).toUpperCase());return S})(),p=function(S){for(;S.length>1;){var E=S.pop(),M=E.obj[E.prop];if(a(M)){for(var j=[],U=0;U=f?Z.slice(re,re+f):Z,te=[],H=0;H=48&&F<=57||F>=65&&F<=90||F>=97&&F<=122||U===e.RFC1738&&(F===40||F===41)){te[te.length]=oe.charAt(H);continue}if(F<128){te[te.length]=l[F];continue}if(F<2048){te[te.length]=l[192|F>>6]+l[128|F&63];continue}if(F<55296||F>=57344){te[te.length]=l[224|F>>12]+l[128|F>>6&63]+l[128|F&63];continue}H+=1,F=65536+((F&1023)<<10|oe.charCodeAt(H)&1023),te[te.length]=l[240|F>>18]+l[128|F>>12&63]+l[128|F>>6&63]+l[128|F&63]}ee+=te.join("")}return ee},w=function(S){for(var E=[{obj:{o:S},prop:"o"}],M=[],j=0;jM?o(d(Z,{plainObjects:j}),Z.length-1):Z},B=function(S,E){if(a(S)){for(var M=[],j=0;j"u"&&(et=0)}if(typeof j=="function"?L=j(w,L):L instanceof Date?L=ee(L):_==="comma"&&o(L)&&(L=t.maybeMap(L,function(k){return k instanceof Date?ee(k):k})),L===null){if(B)return M&&!te?M(w,p.encoder,H,"key",re):w;L=""}if(d(L)||t.isBuffer(L)){if(M){var Tt=te?w:M(w,p.encoder,H,"key",re);return[oe(Tt)+"="+oe(M(L,p.encoder,H,"value",re))]}return[oe(w)+"="+oe(String(L))]}var Vt=[];if(typeof L>"u")return Vt;var Mt;if(_==="comma"&&o(L))te&&M&&(L=t.maybeMap(L,M)),Mt=[{value:L.length>0?L.join(",")||null:void 0}];else if(o(j))Mt=j;else{var We=Object.keys(L);Mt=U?We.sort(U):We}var gt=E?String(w).replace(/\./g,"%2E"):String(w),St=A&&o(L)&&L.length===1?gt+"[]":gt;if(z&&o(L)&&L.length===0)return St+"[]";for(var he=0;he"u"?f.encodeDotInKeys===!0?!0:p.allowDots:!!f.allowDots;return{addQueryPrefix:typeof f.addQueryPrefix=="boolean"?f.addQueryPrefix:p.addQueryPrefix,allowDots:B,allowEmptyArrays:typeof f.allowEmptyArrays=="boolean"?!!f.allowEmptyArrays:p.allowEmptyArrays,arrayFormat:z,charset:T,charsetSentinel:typeof f.charsetSentinel=="boolean"?f.charsetSentinel:p.charsetSentinel,commaRoundTrip:!!f.commaRoundTrip,delimiter:typeof f.delimiter>"u"?p.delimiter:f.delimiter,encode:typeof f.encode=="boolean"?f.encode:p.encode,encodeDotInKeys:typeof f.encodeDotInKeys=="boolean"?f.encodeDotInKeys:p.encodeDotInKeys,encoder:typeof f.encoder=="function"?f.encoder:p.encoder,encodeValuesOnly:typeof f.encodeValuesOnly=="boolean"?f.encodeValuesOnly:p.encodeValuesOnly,filter:A,format:w,formatter:_,serializeDate:typeof f.serializeDate=="function"?f.serializeDate:p.serializeDate,skipNulls:typeof f.skipNulls=="boolean"?f.skipNulls:p.skipNulls,sort:typeof f.sort=="function"?f.sort:null,strictNullHandling:typeof f.strictNullHandling=="boolean"?f.strictNullHandling:p.strictNullHandling}};return jr=function(f,T){var w=f,_=h(T),A,z;typeof _.filter=="function"?(z=_.filter,w=z("",w)):o(_.filter)&&(z=_.filter,A=z);var B=[];if(typeof w!="object"||w===null)return"";var S=i[_.arrayFormat],E=S==="comma"&&_.commaRoundTrip;A||(A=Object.keys(w)),_.sort&&A.sort(_.sort);for(var M=e(),j=0;j0?re+ee:""},jr}var Sr,Up;function jg(){if(Up)return Sr;Up=1;var e=Fp(),t=Object.prototype.hasOwnProperty,n=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:e.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},i=function(u){return u.replace(/&#(\d+);/g,function(h,f){return String.fromCharCode(parseInt(f,10))})},o=function(u,h,f){if(u&&typeof u=="string"&&h.comma&&u.indexOf(",")>-1)return u.split(",");if(h.throwOnLimitExceeded&&f>=h.arrayLimit)throw new RangeError("Array limit exceeded. Only "+h.arrayLimit+" element"+(h.arrayLimit===1?"":"s")+" allowed in an array.");return u},r="utf8=%26%2310003%3B",s="utf8=%E2%9C%93",c=function(u,h){var f={__proto__:null},T=h.ignoreQueryPrefix?u.replace(/^\?/,""):u;T=T.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var w=h.parameterLimit===1/0?void 0:h.parameterLimit,_=T.split(h.delimiter,h.throwOnLimitExceeded?w+1:w);if(h.throwOnLimitExceeded&&_.length>w)throw new RangeError("Parameter limit exceeded. Only "+w+" parameter"+(w===1?"":"s")+" allowed.");var A=-1,z,B=h.charset;if(h.charsetSentinel)for(z=0;z<_.length;++z)_[z].indexOf("utf8=")===0&&(_[z]===s?B="utf-8":_[z]===r&&(B="iso-8859-1"),A=z,z=_.length);for(z=0;z<_.length;++z)if(z!==A){var S=_[z],E=S.indexOf("]="),M=E===-1?S.indexOf("="):E+1,j,U;if(M===-1?(j=h.decoder(S,a.decoder,B,"key"),U=h.strictNullHandling?null:""):(j=h.decoder(S.slice(0,M),a.decoder,B,"key"),j!==null&&(U=e.maybeMap(o(S.slice(M+1),h,n(f[j])?f[j].length:0),function(ee){return h.decoder(ee,a.decoder,B,"value")}))),U&&h.interpretNumericEntities&&B==="iso-8859-1"&&(U=i(String(U))),S.indexOf("[]=")>-1&&(U=n(U)?[U]:U),j!==null){var Z=t.call(f,j);Z&&h.duplicates==="combine"?f[j]=e.combine(f[j],U,h.arrayLimit,h.plainObjects):(!Z||h.duplicates==="last")&&(f[j]=U)}}return f},l=function(u,h,f,T){var w=0;if(u.length>0&&u[u.length-1]==="[]"){var _=u.slice(0,-1).join("");w=Array.isArray(h)&&h[_]?h[_].length:0}for(var A=T?h:o(h,f,w),z=u.length-1;z>=0;--z){var B,S=u[z];if(S==="[]"&&f.parseArrays)e.isOverflow(A)?B=A:B=f.allowEmptyArrays&&(A===""||f.strictNullHandling&&A===null)?[]:e.combine([],A,f.arrayLimit,f.plainObjects);else{B=f.plainObjects?{__proto__:null}:{};var E=S.charAt(0)==="["&&S.charAt(S.length-1)==="]"?S.slice(1,-1):S,M=f.decodeDotInKeys?E.replace(/%2E/g,"."):E,j=parseInt(M,10);!f.parseArrays&&M===""?B={0:A}:!isNaN(j)&&S!==M&&String(j)===M&&j>=0&&f.parseArrays&&j<=f.arrayLimit?(B=[],B[j]=A):M!=="__proto__"&&(B[M]=A)}A=B}return A},p=function(u,h){var f=h.allowDots?u.replace(/\.([^.[]+)/g,"[$1]"):u;if(h.depth<=0)return!h.plainObjects&&t.call(Object.prototype,f)&&!h.allowPrototypes?void 0:[f];var T=/(\[[^[\]]*])/,w=/(\[[^[\]]*])/g,_=T.exec(f),A=_?f.slice(0,_.index):f,z=[];if(A){if(!h.plainObjects&&t.call(Object.prototype,A)&&!h.allowPrototypes)return;z.push(A)}for(var B=0;(_=w.exec(f))!==null&&B"u"?a.charset:u.charset,f=typeof u.duplicates>"u"?a.duplicates:u.duplicates;if(f!=="combine"&&f!=="first"&&f!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var T=typeof u.allowDots>"u"?u.decodeDotInKeys===!0?!0:a.allowDots:!!u.allowDots;return{allowDots:T,allowEmptyArrays:typeof u.allowEmptyArrays=="boolean"?!!u.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:typeof u.allowPrototypes=="boolean"?u.allowPrototypes:a.allowPrototypes,allowSparse:typeof u.allowSparse=="boolean"?u.allowSparse:a.allowSparse,arrayLimit:typeof u.arrayLimit=="number"?u.arrayLimit:a.arrayLimit,charset:h,charsetSentinel:typeof u.charsetSentinel=="boolean"?u.charsetSentinel:a.charsetSentinel,comma:typeof u.comma=="boolean"?u.comma:a.comma,decodeDotInKeys:typeof u.decodeDotInKeys=="boolean"?u.decodeDotInKeys:a.decodeDotInKeys,decoder:typeof u.decoder=="function"?u.decoder:a.decoder,delimiter:typeof u.delimiter=="string"||e.isRegExp(u.delimiter)?u.delimiter:a.delimiter,depth:typeof u.depth=="number"||u.depth===!1?+u.depth:a.depth,duplicates:f,ignoreQueryPrefix:u.ignoreQueryPrefix===!0,interpretNumericEntities:typeof u.interpretNumericEntities=="boolean"?u.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:typeof u.parameterLimit=="number"?u.parameterLimit:a.parameterLimit,parseArrays:u.parseArrays!==!1,plainObjects:typeof u.plainObjects=="boolean"?u.plainObjects:a.plainObjects,strictDepth:typeof u.strictDepth=="boolean"?!!u.strictDepth:a.strictDepth,strictNullHandling:typeof u.strictNullHandling=="boolean"?u.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:typeof u.throwOnLimitExceeded=="boolean"?u.throwOnLimitExceeded:!1}};return Sr=function(u,h){var f=v(h);if(u===""||u===null||typeof u>"u")return f.plainObjects?{__proto__:null}:{};for(var T=typeof u=="string"?c(u,f):u,w=f.plainObjects?{__proto__:null}:{},_=Object.keys(T),A=0;A<_.length;++A){var z=_[A],B=d(z,T[z],f,typeof u=="string");w=e.merge(w,B,f)}return f.allowSparse===!0?w:e.compact(w)},Sr}var Er,qp;function Sg(){if(qp)return Er;qp=1;var e=kg(),t=jg(),n=_r();return Er={formats:n,parse:t,stringify:e},Er}var Bp;function Eg(){if(Bp)return Ma;Bp=1,Object.defineProperty(Ma,"__esModule",{value:!0}),Ma.DrupalJsonApiParams=void 0;const e=Sg();class t{constructor(a,i){this.data={filter:{},include:[],page:void 0,sort:[],fields:{}},this.qsOptions={},this.config={useShortCutForQueryGeneration:!0,alwaysUseFieldNameForKeys:!1},i!==void 0&&(this.config=i),this.initialize(a)}addCustomParam(a){return this.data=Object.assign(Object.assign({},this.data),a),this}addFields(a,i){return this.data.fields[a]=i.join(","),this}addSort(a,i){let o="";return i!==void 0&&i==="DESC"&&(o="-"),this.data.sort=this.data.sort.concat(o+a),this}addPageLimit(a){return this.data.page===void 0?this.data.page={limit:a}:this.data.page.limit=a,this}addPageOffset(a){return this.data.page===void 0?this.data.page={offset:a}:this.data.page.offset=a,this}addInclude(a){return this.data.include=this.data.include.concat(a),this}addGroup(a,i="OR",o){return this.data.filter[a]={group:Object.assign({conjunction:i},o!==void 0&&{memberOf:o})},this}addFilter(a,i,o="=",r,s){const c=this.getIndexId(this.data.filter,s||a,!!s);if((o==="IS NULL"||o==="IS NOT NULL")&&(i=null),i===null){if(!(o==="IS NULL"||o==="IS NOT NULL"))throw new TypeError(`Value cannot be null for the operator "${o}"`);return this.data.filter[c]={condition:Object.assign(Object.assign({path:a},{operator:o}),r!==void 0&&{memberOf:r})},this}if(Array.isArray(i)){switch(o){case"BETWEEN":case"NOT BETWEEN":if(i.length!==2)throw new TypeError(`Value must consists of 2 items for the "${o}"`);break;case"IN":case"NOT IN":break;default:throw new TypeError(`Value cannot be an array for the operator "${o}"`)}return this.data.filter[c]={condition:Object.assign(Object.assign({path:a,value:i},{operator:o}),r!==void 0&&{memberOf:r})},this}return this.config.useShortCutForQueryGeneration&&r===void 0&&a===c&&this.data.filter[a]===void 0?(o==="="?this.data.filter[c]=i:this.data.filter[c]={value:i,operator:o},this):(this.data.filter[c]={condition:Object.assign(Object.assign({path:a,value:i},this.config.useShortCutForQueryGeneration?o!=="="&&{operator:o}:{operator:o}),r!==void 0&&{memberOf:r})},this)}getIndexId(a,i,o){o=o||this.config.alwaysUseFieldNameForKeys;let r;return a[i]===void 0?r=i:r=this.generateKeyName(a,i,o),r}generateKeyName(a,i,o=!1){const r=Object.keys(a).length;if(o)for(let s=1;s<=r;s++){const c=`${i}--${s}`;if(a[c]===void 0)return c}return r.toString()}getQueryObject(){const a=JSON.parse(JSON.stringify(this.data));return this.data.include.length>0?a.include=this.data.include.join(","):delete a.include,this.data.sort.length>0?a.sort=this.data.sort.join(","):delete a.sort,a}getQueryString(a){const i=this.getQueryObject(),o=a||this.getQsOption();return e.stringify(i,o)}clear(){return this.data={filter:{},include:[],page:void 0,sort:[],fields:{}},this}initializeWithQueryObject(a){return this.clear(),Object.keys(a).forEach(i=>{switch(i){case"sort":a.sort.length&&(this.data.sort=a.sort.split(","));break;case"include":a.include.length&&(this.data.include=a.include.split(","));break;default:this.data[i]=a[i]}}),this}initializeWithQueryString(a,i){this.clear();const o=i||this.getQsOption();return this.initializeWithQueryObject(e.parse(a,o)),this}clone(a){const i=JSON.parse(JSON.stringify(a.getQueryObject()));return this.initializeWithQueryObject(i),this}setQsOption(a){return this.qsOptions=a,this}getQsOption(){return this.qsOptions}initialize(a){if(a===void 0)this.initializeWithQueryString("");else if(typeof a=="object")try{a.getQueryObject(),this.clone(a)}catch{this.initializeWithQueryObject(a)}else this.initializeWithQueryString(a);return this}}return Ma.DrupalJsonApiParams=t,Ma}var Zp=Eg(),Wp={},Or={},Bt={};Object.defineProperty(Bt,"__esModule",{value:!0}),Bt.isPlainObject=Bt.jsonParse=Bt.createIncludeNamesTree=void 0;function Vp(e,t){var n=e.split("."),a=n.shift(),i=n.length,o=null;i&&(o=t[a]||{},Vp(n.join("."),o)),t[a]=o}Bt.createIncludeNamesTree=Vp;function Og(e){var t;try{t=JSON.parse(e)}catch(n){t={},console.warn(n)}return t}Bt.jsonParse=Og;var zg=function(e){return!!e&&typeof e=="object"&&e.constructor===Object};Bt.isPlainObject=zg;var ea={},zr=function(e,t){return zr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},zr(e,t)};function Jp(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");zr(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Si=function(){return Si=Object.assign||function(e){for(var t,n=1,a=arguments.length;n=0;s--)(r=e[s])&&(o=(i<3?r(o):i>3?r(t,n,o):r(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}function Gp(e,t){return function(n,a){t(n,a,e)}}function Yp(e,t,n,a,i,o){function r(w){if(w!==void 0&&typeof w!="function")throw new TypeError("Function expected");return w}for(var s=a.kind,c=s==="getter"?"get":s==="setter"?"set":"value",l=!t&&e?a.static?e:e.prototype:null,p=t||(l?Object.getOwnPropertyDescriptor(l,a.name):{}),d,v=!1,u=n.length-1;u>=0;u--){var h={};for(var f in a)h[f]=f==="access"?{}:a[f];for(var f in a.access)h.access[f]=a.access[f];h.addInitializer=function(w){if(v)throw new TypeError("Cannot add initializers after decoration has completed");o.push(r(w||null))};var T=(0,n[u])(s==="accessor"?{get:p.get,set:p.set}:p[c],h);if(s==="accessor"){if(T===void 0)continue;if(T===null||typeof T!="object")throw new TypeError("Object expected");(d=r(T.get))&&(p.get=d),(d=r(T.set))&&(p.set=d),(d=r(T.init))&&i.unshift(d)}else(d=r(T))&&(s==="field"?i.unshift(d):p[c]=d)}l&&Object.defineProperty(l,a.name,p),v=!0}function Qp(e,t,n){for(var a=arguments.length>2,i=0;i0&&o[o.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ar(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var a=n.call(e),i,o=[],r;try{for(;(t===void 0||t-- >0)&&!(i=a.next()).done;)o.push(i.value)}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return o}function ou(){for(var e=[],t=0;t1||c(u,f)})},h&&(i[u]=h(i[u])))}function c(u,h){try{l(a[u](h))}catch(f){v(o[0][3],f)}}function l(u){u.value instanceof ta?Promise.resolve(u.value.v).then(p,d):v(o[0][2],u)}function p(u){c("next",u)}function d(u){c("throw",u)}function v(u,h){u(h),o.shift(),o.length&&c(o[0][0],o[0][1])}}function lu(e){var t,n;return t={},a("next"),a("throw",function(i){throw i}),a("return"),t[Symbol.iterator]=function(){return this},t;function a(i,o){t[i]=e[i]?function(r){return(n=!n)?{value:ta(e[i](r)),done:!1}:o?o(r):r}:o}}function pu(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Oi=="function"?Oi(e):e[Symbol.iterator](),n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n);function a(o){n[o]=e[o]&&function(r){return new Promise(function(s,c){r=e[o](r),i(s,c,r.done,r.value)})}}function i(o,r,s,c){Promise.resolve(c).then(function(l){o({value:l,done:s})},r)}}function uu(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var Ag=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},Ir=function(e){return Ir=Object.getOwnPropertyNames||function(t){var n=[];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(n[n.length]=a);return n},Ir(e)};function du(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=Ir(e),a=0;a"u"?{}:{id:n})},e.prototype.buildRelationshipsByModel=function(t){var n=this,a=this.propertiesMapper.getRelationships(t);if(!(!a||!Object.keys(a).length)){var i={};return Object.keys(a).forEach(function(o){var r=a[o];if(Array.isArray(r)){for(var s=[],c=0,l=r;cw?h:f}function v(u,h,f){var T=["nginx","apache",void 0,"iana"],w=h?T.indexOf(t[h].source):0,_=f?T.indexOf(t[f].source):0;return e.types[c]!=="application/octet-stream"&&(w>_||w===_&&e.types[c]?.slice(0,12)==="application/")||w>_?h:f}})(Su)),Su}Kg();function Hg(e,t,n){if(!e||!t)return n;const a=Array.isArray(t)?t:t.toString().split(".");let i=e;for(let o=0;ot in e?Gg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ii=(e,t,n)=>Yg(e,typeof t!="symbol"?t+"":t,n);function Qg(){function e(t={}){return t instanceof Headers?t:new Headers(t)}return async(t,n={})=>{const a=e(n.headers);typeof t=="string"&&(t=t.replace(/([^:]\/)\/+/g,"$1"));const i=a.get("Authorization");return i&&(a.set("X-OAuth2-Authorization",i),a.set("Authorization","Basic ZHBjOnNkcA==")),fetch(t,{...n,headers:a})}}class Xg extends Jh{constructor(t,n,a){if(!t.endsWith("/"))throw new Error("baseUrl needs to have trailing slash");if(!t.startsWith("http://")&&!t.startsWith("https://"))throw new Error("baseUrl must start with http:// or https://");super(t,{apiPrefix:a?.apiPrefix||"api/v1",customFetch:a?.customFetch||Qg(),authentication:{type:"Basic",credentials:{username:"dpc",password:"sdp"}},serializer:new Wp.Jsona,logger:console,...a}),Ii(this,"site"),Ii(this,"siteQuery"),Ii(this,"isDev"),Ii(this,"handleError"),this.handleError=a?.handleError||this.defaultErrorHandler.bind(this),this.isDev=typeof process<"u"&&(process==null?void 0:"production")==="dev",this.site=n,this.siteQuery=`site=${this.site}`}createQueryBuilder(){return new Zp.DrupalJsonApiParams}defaultErrorHandler(t,n,a,i){var o,r;if(t instanceof kd)throw t;let s=i||"Unknown error";t instanceof Error&&(s=t.message);const c=[s];n&&c.push(`Status: ${n}`),a&&c.push(`URL: ${a}`);const l=c.join(" - ");throw(r=(o=this.logger)==null?void 0:o.error)==null||r.call(o,l),new kd(l,n||500,t)}async getMappedData(t={},n={}){const a={};for(const i in t)if(Object.prototype.hasOwnProperty.call(t,i)){const o=t[i];if(!o||typeof o=="number")continue;if(typeof o=="string"||Array.isArray(o))a[i]=Hg(n,o);else if(typeof o=="function"&&o.constructor&&o.constructor.name==="AsyncFunction")a[i]=await o(n,this);else if(typeof o=="function"){const r=o.bind(this);a[i]=r(n)}else typeof o=="object"&&(a[i]=await this.getMappedData(o,n))}return a}async getTideResource(t,n,a,i={}){const o=this.isQueryBuilder(a)?a:this.createQueryBuilder();return o.addCustomParam({site:this.site}),await this.getResource(t,n,{queryString:o.getQueryString(),...i})}isQueryBuilder(t){return t instanceof Zp.DrupalJsonApiParams}async getTideCollection(t,{query:n,limit:a,offset:i,options:o}={}){const r=this.isQueryBuilder(n)?n:this.createQueryBuilder();return r.addCustomParam({site:this.site}),a&&r.addPageLimit(a),i&&r.addPageOffset(i),this.getCollection(t,{queryString:r.getQueryString(),...o})}async getTideResourceRevision(t,n,a,i){const o=this.isQueryBuilder(i)?i:this.createQueryBuilder();return o.addCustomParam({resourceVersion:a}),await this.getTideResource(t,n,o)}}function O(e,t,n){function a(s,c){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:c,constr:r,traits:new Set},enumerable:!1}),s._zod.traits.has(e))return;s._zod.traits.add(e),t(s,c);const l=r.prototype,p=Object.keys(l);for(let d=0;d{var c,l;return n?.Parent&&s instanceof n.Parent?!0:(l=(c=s?._zod)==null?void 0:c.traits)==null?void 0:l.has(e)}}),Object.defineProperty(r,"name",{value:e}),r}class oa extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Iu extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const Pu={};function An(e){return Pu}function eb(e){const t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,a])=>t.indexOf(+n)===-1).map(([n,a])=>a)}function Rr(e,t){return typeof t=="bigint"?t.toString():t}function $r(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Nr(e){return e==null}function Fr(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function tb(e,t){const n=(e.toString().split(".")[1]||"").length,a=t.toString();let i=(a.split(".")[1]||"").length;if(i===0&&/\d?e-\d?/.test(a)){const c=a.match(/\d?e-(\d?)/);c?.[1]&&(i=Number.parseInt(c[1]))}const o=n>i?n:i,r=Number.parseInt(e.toFixed(o).replace(".","")),s=Number.parseInt(t.toFixed(o).replace(".",""));return r%s/10**o}const Cu=Symbol("evaluating");function ye(e,t,n){let a;Object.defineProperty(e,t,{get(){if(a!==Cu)return a===void 0&&(a=Cu,a=n()),a},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}function In(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Pn(...e){const t={};for(const n of e){const a=Object.getOwnPropertyDescriptors(n);Object.assign(t,a)}return Object.defineProperties({},t)}function Tu(e){return JSON.stringify(e)}function nb(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Mu="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Pi(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const ab=$r(()=>{var e;if(typeof navigator<"u"&&(e=navigator?.userAgent)!=null&&e.includes("Cloudflare"))return!1;try{const t=Function;return new t(""),!0}catch{return!1}});function Da(e){if(Pi(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Pi(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Du(e){return Da(e)?{...e}:Array.isArray(e)?[...e]:e}const ib=new Set(["string","number","symbol"]);function Ci(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function gn(e,t,n){const a=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(a._zod.parent=e),a}function K(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function ob(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const rb={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function sb(e,t){const n=e._zod.def,a=Pn(e._zod.def,{get shape(){const i={};for(const o in t){if(!(o in n.shape))throw new Error(`Unrecognized key: "${o}"`);t[o]&&(i[o]=n.shape[o])}return In(this,"shape",i),i},checks:[]});return gn(e,a)}function cb(e,t){const n=e._zod.def,a=Pn(e._zod.def,{get shape(){const i={...e._zod.def.shape};for(const o in t){if(!(o in n.shape))throw new Error(`Unrecognized key: "${o}"`);t[o]&&delete i[o]}return In(this,"shape",i),i},checks:[]});return gn(e,a)}function lb(e,t){if(!Da(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const a=Pn(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t};return In(this,"shape",i),i},checks:[]});return gn(e,a)}function pb(e,t){if(!Da(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n={...e._zod.def,get shape(){const a={...e._zod.def.shape,...t};return In(this,"shape",a),a},checks:e._zod.def.checks};return gn(e,n)}function ub(e,t){const n=Pn(e._zod.def,{get shape(){const a={...e._zod.def.shape,...t._zod.def.shape};return In(this,"shape",a),a},get catchall(){return t._zod.def.catchall},checks:[]});return gn(e,n)}function db(e,t,n){const a=Pn(t._zod.def,{get shape(){const i=t._zod.def.shape,o={...i};if(n)for(const r in n){if(!(r in i))throw new Error(`Unrecognized key: "${r}"`);n[r]&&(o[r]=e?new e({type:"optional",innerType:i[r]}):i[r])}else for(const r in i)o[r]=e?new e({type:"optional",innerType:i[r]}):i[r];return In(this,"shape",o),o},checks:[]});return gn(t,a)}function fb(e,t,n){const a=Pn(t._zod.def,{get shape(){const i=t._zod.def.shape,o={...i};if(n)for(const r in n){if(!(r in o))throw new Error(`Unrecognized key: "${r}"`);n[r]&&(o[r]=new e({type:"nonoptional",innerType:i[r]}))}else for(const r in i)o[r]=new e({type:"nonoptional",innerType:i[r]});return In(this,"shape",o),o},checks:[]});return gn(t,a)}function ra(e,t=0){var n;if(e.aborted===!0)return!0;for(let a=t;a{var a;return(a=n).path??(a.path=[]),n.path.unshift(e),n})}function Ti(e){return typeof e=="string"?e:e?.message}function Cn(e,t,n){var a,i,o,r,s,c;const l={...e,path:e.path??[]};if(!e.message){const p=Ti((o=(i=(a=e.inst)==null?void 0:a._zod.def)==null?void 0:i.error)==null?void 0:o.call(i,e))??Ti((r=t?.error)==null?void 0:r.call(t,e))??Ti((s=n.customError)==null?void 0:s.call(n,e))??Ti((c=n.localeError)==null?void 0:c.call(n,e))??"Invalid input";l.message=p}return delete l.inst,delete l.continue,t?.reportInput||delete l.input,l}function Lr(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Ra(...e){const[t,n,a]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:a}:{...t}}const mb=/^[cC][^\s-]{8,}$/,vb=/^[0-9a-z]+$/,hb=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,gb=/^[0-9a-vA-V]{20}$/,bb=/^[A-Za-z0-9]{27}$/,xb=/^[a-zA-Z0-9_-]{21}$/,yb=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,wb=/^([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})$/,$u=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,_b=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,kb="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function jb(){return new RegExp(kb,"u")}const Sb=/^(?:(?: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])$/,Eb=/^(([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}|:))$/,Ob=/^((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])$/,zb=/^(([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])$/,Ab=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Nu=/^[A-Za-z0-9_-]*$/,Ib=/^\+(?:[0-9]){6,14}[0-9]$/,Fu="(?:(?:\\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])))",Pb=new RegExp(`^${Fu}$`);function Lu(e){const 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 Cb(e){return new RegExp(`^${Lu(e)}$`)}function Tb(e){const t=Lu({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const a=`${t}(?:${n.join("|")})`;return new RegExp(`^${Fu}T(?:${a})$`)}const Mb=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Db=/^-?\d+$/,Rb=/^-?\d+(?:\.\d+)?/,$b=/^[^A-Z]*$/,Nb=/^[^a-z]*$/,lt=O("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Uu={number:"number",bigint:"bigint",object:"date"},qu=O("$ZodCheckLessThan",(e,t)=>{lt.init(e,t);const n=Uu[typeof t.value];e._zod.onattach.push(a=>{const i=a._zod.bag,o=(t.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value{(t.inclusive?a.value<=t.value:a.value{lt.init(e,t);const n=Uu[typeof t.value];e._zod.onattach.push(a=>{const i=a._zod.bag,o=(t.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>o&&(t.inclusive?i.minimum=t.value:i.exclusiveMinimum=t.value)}),e._zod.check=a=>{(t.inclusive?a.value>=t.value:a.value>t.value)||a.issues.push({origin:n,code:"too_small",minimum:t.value,input:a.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Fb=O("$ZodCheckMultipleOf",(e,t)=>{lt.init(e,t),e._zod.onattach.push(n=>{var a;(a=n._zod.bag).multipleOf??(a.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):tb(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})}}),Lb=O("$ZodCheckNumberFormat",(e,t)=>{var n;lt.init(e,t),t.format=t.format||"float64";const a=(n=t.format)==null?void 0:n.includes("int"),i=a?"int":"number",[o,r]=rb[t.format];e._zod.onattach.push(s=>{const c=s._zod.bag;c.format=t.format,c.minimum=o,c.maximum=r,a&&(c.pattern=Db)}),e._zod.check=s=>{const c=s.value;if(a){if(!Number.isInteger(c)){s.issues.push({expected:i,format:t.format,code:"invalid_type",continue:!1,input:c,inst:e});return}if(!Number.isSafeInteger(c)){c>0?s.issues.push({input:c,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,continue:!t.abort}):s.issues.push({input:c,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,continue:!t.abort});return}}cr&&s.issues.push({origin:"number",input:c,code:"too_big",maximum:r,inst:e})}}),Ub=O("$ZodCheckMaxLength",(e,t)=>{var n;lt.init(e,t),(n=e._zod.def).when??(n.when=a=>{const i=a.value;return!Nr(i)&&i.length!==void 0}),e._zod.onattach.push(a=>{const i=a._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum{const i=a.value;if(i.length<=t.maximum)return;const o=Lr(i);a.issues.push({origin:o,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),qb=O("$ZodCheckMinLength",(e,t)=>{var n;lt.init(e,t),(n=e._zod.def).when??(n.when=a=>{const i=a.value;return!Nr(i)&&i.length!==void 0}),e._zod.onattach.push(a=>{const i=a._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(a._zod.bag.minimum=t.minimum)}),e._zod.check=a=>{const i=a.value;if(i.length>=t.minimum)return;const o=Lr(i);a.issues.push({origin:o,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),Bb=O("$ZodCheckLengthEquals",(e,t)=>{var n;lt.init(e,t),(n=e._zod.def).when??(n.when=a=>{const i=a.value;return!Nr(i)&&i.length!==void 0}),e._zod.onattach.push(a=>{const i=a._zod.bag;i.minimum=t.length,i.maximum=t.length,i.length=t.length}),e._zod.check=a=>{const i=a.value,o=i.length;if(o===t.length)return;const r=Lr(i),s=o>t.length;a.issues.push({origin:r,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:a.value,inst:e,continue:!t.abort})}}),Mi=O("$ZodCheckStringFormat",(e,t)=>{var n,a;lt.init(e,t),e._zod.onattach.push(i=>{const o=i._zod.bag;o.format=t.format,t.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:t.format,input:i.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(a=e._zod).check??(a.check=()=>{})}),Zb=O("$ZodCheckRegex",(e,t)=>{Mi.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})}}),Wb=O("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=$b),Mi.init(e,t)}),Vb=O("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Nb),Mi.init(e,t)}),Jb=O("$ZodCheckIncludes",(e,t)=>{lt.init(e,t);const n=Ci(t.includes),a=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=a,e._zod.onattach.push(i=>{const o=i._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(a)}),e._zod.check=i=>{i.value.includes(t.includes,t.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:i.value,inst:e,continue:!t.abort})}}),Kb=O("$ZodCheckStartsWith",(e,t)=>{lt.init(e,t);const n=new RegExp(`^${Ci(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(a=>{const i=a._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=a=>{a.value.startsWith(t.prefix)||a.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:a.value,inst:e,continue:!t.abort})}}),Hb=O("$ZodCheckEndsWith",(e,t)=>{lt.init(e,t);const n=new RegExp(`.*${Ci(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(a=>{const i=a._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=a=>{a.value.endsWith(t.suffix)||a.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:a.value,inst:e,continue:!t.abort})}}),Gb=O("$ZodCheckOverwrite",(e,t)=>{lt.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class Yb{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const n=t.split(` +`).filter(o=>o),a=Math.min(...n.map(o=>o.length-o.trimStart().length)),i=n.map(o=>o.slice(a)).map(o=>" ".repeat(this.indent*2)+o);for(const o of i)this.content.push(o)}compile(){const t=Function,n=this==null?void 0:this.args,a=[...((this==null?void 0:this.content)??[""]).map(i=>` ${i}`)];return new t(...n,a.join(` +`))}}const Zu=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Rr,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Wu=O("$ZodError",Zu),Vu=O("$ZodError",Zu,{Parent:Error});function Qb(e,t=n=>n.message){const n={},a=[];for(const i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):a.push(t(i));return{formErrors:a,fieldErrors:n}}function Xb(e,t=n=>n.message){const n={_errors:[]},a=i=>{for(const o of i.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(r=>a({issues:r}));else if(o.code==="invalid_key")a({issues:o.issues});else if(o.code==="invalid_element")a({issues:o.issues});else if(o.path.length===0)n._errors.push(t(o));else{let r=n,s=0;for(;s(t,n,a,i)=>{const o=a?Object.assign(a,{async:!1}):{async:!1},r=t._zod.run({value:n,issues:[]},o);if(r instanceof Promise)throw new oa;if(r.issues.length){const s=new(i?.Err??e)(r.issues.map(c=>Cn(c,o,An())));throw Mu(s,i?.callee),s}return r.value},qr=e=>async(t,n,a,i)=>{const o=a?Object.assign(a,{async:!0}):{async:!0};let r=t._zod.run({value:n,issues:[]},o);if(r instanceof Promise&&(r=await r),r.issues.length){const s=new(i?.Err??e)(r.issues.map(c=>Cn(c,o,An())));throw Mu(s,i?.callee),s}return r.value},Di=e=>(t,n,a)=>{const i=a?{...a,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},i);if(o instanceof Promise)throw new oa;return o.issues.length?{success:!1,error:new(e??Wu)(o.issues.map(r=>Cn(r,i,An())))}:{success:!0,data:o.value}},ex=Di(Vu),Ri=e=>async(t,n,a)=>{const i=a?Object.assign(a,{async:!0}):{async:!0};let o=t._zod.run({value:n,issues:[]},i);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(r=>Cn(r,i,An())))}:{success:!0,data:o.value}},tx=Ri(Vu),nx=e=>(t,n,a)=>{const i=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return Ur(e)(t,n,i)},ax=e=>(t,n,a)=>Ur(e)(t,n,a),ix=e=>async(t,n,a)=>{const i=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return qr(e)(t,n,i)},ox=e=>async(t,n,a)=>qr(e)(t,n,a),rx=e=>(t,n,a)=>{const i=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return Di(e)(t,n,i)},sx=e=>(t,n,a)=>Di(e)(t,n,a),cx=e=>async(t,n,a)=>{const i=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return Ri(e)(t,n,i)},lx=e=>async(t,n,a)=>Ri(e)(t,n,a),px={major:4,minor:1,patch:13},$e=O("$ZodType",(e,t)=>{var n,a;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=px;const i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(const o of i)for(const r of o._zod.onattach)r(e);if(i.length===0)(a=e._zod).deferred??(a.deferred=[]),(n=e._zod.deferred)==null||n.push(()=>{e._zod.run=e._zod.parse});else{const o=(s,c,l)=>{let p=ra(s),d;for(const v of c){if(v._zod.def.when){if(!v._zod.def.when(s))continue}else if(p)continue;const u=s.issues.length,h=v._zod.check(s);if(h instanceof Promise&&l?.async===!1)throw new oa;if(d||h instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await h,s.issues.length!==u&&(p||(p=ra(s,u)))});else{if(s.issues.length===u)continue;p||(p=ra(s,u))}}return d?d.then(()=>s):s},r=(s,c,l)=>{if(ra(s))return s.aborted=!0,s;const p=o(c,i,l);if(p instanceof Promise){if(l.async===!1)throw new oa;return p.then(d=>e._zod.parse(d,l))}return e._zod.parse(p,l)};e._zod.run=(s,c)=>{if(c.skipChecks)return e._zod.parse(s,c);if(c.direction==="backward"){const p=e._zod.parse({value:s.value,issues:[]},{...c,skipChecks:!0});return p instanceof Promise?p.then(d=>r(d,s,c)):r(p,s,c)}const l=e._zod.parse(s,c);if(l instanceof Promise){if(c.async===!1)throw new oa;return l.then(p=>o(p,i,c))}return o(l,i,c)}}e["~standard"]={validate:o=>{var r;try{const s=ex(e,o);return s.success?{value:s.data}:{issues:(r=s.error)==null?void 0:r.issues}}catch{return tx(e,o).then(s=>{var c;return s.success?{value:s.data}:{issues:(c=s.error)==null?void 0:c.issues}})}},vendor:"zod",version:1}}),Br=O("$ZodString",(e,t)=>{var n;$e.init(e,t),e._zod.pattern=[...((n=e?._zod.bag)==null?void 0:n.patterns)??[]].pop()??Mb(e._zod.bag),e._zod.parse=(a,i)=>{if(t.coerce)try{a.value=String(a.value)}catch{}return typeof a.value=="string"||a.issues.push({expected:"string",code:"invalid_type",input:a.value,inst:e}),a}}),Ee=O("$ZodStringFormat",(e,t)=>{Mi.init(e,t),Br.init(e,t)}),ux=O("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=wb),Ee.init(e,t)}),dx=O("$ZodUUID",(e,t)=>{if(t.version){const n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(n===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=$u(n))}else t.pattern??(t.pattern=$u());Ee.init(e,t)}),fx=O("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=_b),Ee.init(e,t)}),mx=O("$ZodURL",(e,t)=>{Ee.init(e,t),e._zod.check=n=>{try{const a=n.value.trim(),i=new URL(a);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=a;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),vx=O("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=jb()),Ee.init(e,t)}),hx=O("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=xb),Ee.init(e,t)}),gx=O("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=mb),Ee.init(e,t)}),bx=O("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=vb),Ee.init(e,t)}),xx=O("$ZodULID",(e,t)=>{t.pattern??(t.pattern=hb),Ee.init(e,t)}),yx=O("$ZodXID",(e,t)=>{t.pattern??(t.pattern=gb),Ee.init(e,t)}),wx=O("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=bb),Ee.init(e,t)}),_x=O("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Tb(t)),Ee.init(e,t)}),kx=O("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Pb),Ee.init(e,t)}),jx=O("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Cb(t)),Ee.init(e,t)}),Sx=O("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=yb),Ee.init(e,t)}),Ex=O("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Sb),Ee.init(e,t),e._zod.bag.format="ipv4"}),Ox=O("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Eb),Ee.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})}}}),zx=O("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Ob),Ee.init(e,t)}),Ax=O("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=zb),Ee.init(e,t),e._zod.check=n=>{const a=n.value.split("/");try{if(a.length!==2)throw new Error;const[i,o]=a;if(!o)throw new Error;const r=Number(o);if(`${r}`!==o)throw new Error;if(r<0||r>128)throw new Error;new URL(`http://[${i}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function Ju(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const Ix=O("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Ab),Ee.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{Ju(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function Px(e){if(!Nu.test(e))return!1;const t=e.replace(/[-_]/g,a=>a==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return Ju(n)}const Cx=O("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Nu),Ee.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{Px(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),Tx=O("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Ib),Ee.init(e,t)});function Mx(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[a]=n;if(!a)return!1;const i=JSON.parse(atob(a));return!("typ"in i&&i?.typ!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))}catch{return!1}}const Dx=O("$ZodJWT",(e,t)=>{Ee.init(e,t),e._zod.check=n=>{Mx(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Ku=O("$ZodNumber",(e,t)=>{$e.init(e,t),e._zod.pattern=e._zod.bag.pattern??Rb,e._zod.parse=(n,a)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const i=n.value;if(typeof i=="number"&&!Number.isNaN(i)&&Number.isFinite(i))return n;const o=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,...o?{received:o}:{}}),n}}),Rx=O("$ZodNumberFormat",(e,t)=>{Lb.init(e,t),Ku.init(e,t)}),$x=O("$ZodUnknown",(e,t)=>{$e.init(e,t),e._zod.parse=n=>n}),Nx=O("$ZodNever",(e,t)=>{$e.init(e,t),e._zod.parse=(n,a)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function Hu(e,t,n){e.issues.length&&t.issues.push(...Ru(n,e.issues)),t.value[n]=e.value}const Fx=O("$ZodArray",(e,t)=>{$e.init(e,t),e._zod.parse=(n,a)=>{const 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);const o=[];for(let r=0;rHu(l,n,r))):Hu(c,n,r)}return o.length?Promise.all(o).then(()=>n):n}});function $i(e,t,n,a){e.issues.length&&t.issues.push(...Ru(n,e.issues)),e.value===void 0?n in a&&(t.value[n]=void 0):t.value[n]=e.value}function Gu(e){var t,n,a,i;const o=Object.keys(e.shape);for(const s of o)if(!((i=(a=(n=(t=e.shape)==null?void 0:t[s])==null?void 0:n._zod)==null?void 0:a.traits)!=null&&i.has("$ZodType")))throw new Error(`Invalid element at key "${s}": expected a Zod schema`);const r=ob(e.shape);return{...e,keys:o,keySet:new Set(o),numKeys:o.length,optionalKeys:new Set(r)}}function Yu(e,t,n,a,i,o){const r=[],s=i.keySet,c=i.catchall._zod,l=c.def.type;for(const p in t){if(s.has(p))continue;if(l==="never"){r.push(p);continue}const d=c.run({value:t[p],issues:[]},a);d instanceof Promise?e.push(d.then(v=>$i(v,n,p,t))):$i(d,n,p,t)}return r.length&&n.issues.push({code:"unrecognized_keys",keys:r,input:t,inst:o}),e.length?Promise.all(e).then(()=>n):n}const Lx=O("$ZodObject",(e,t)=>{if($e.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const s=t.shape;Object.defineProperty(t,"shape",{get:()=>{const c={...s};return Object.defineProperty(t,"shape",{value:c}),c}})}const a=$r(()=>Gu(t));ye(e._zod,"propValues",()=>{const s=t.shape,c={};for(const l in s){const p=s[l]._zod;if(p.values){c[l]??(c[l]=new Set);for(const d of p.values)c[l].add(d)}}return c});const i=Pi,o=t.catchall;let r;e._zod.parse=(s,c)=>{r??(r=a.value);const l=s.value;if(!i(l))return s.issues.push({expected:"object",code:"invalid_type",input:l,inst:e}),s;s.value={};const p=[],d=r.shape;for(const v of r.keys){const u=d[v]._zod.run({value:l[v],issues:[]},c);u instanceof Promise?p.push(u.then(h=>$i(h,s,v,l))):$i(u,s,v,l)}return o?Yu(p,l,s,c,a.value,e):p.length?Promise.all(p).then(()=>s):s}}),Ux=O("$ZodObjectJIT",(e,t)=>{Lx.init(e,t);const n=e._zod.parse,a=$r(()=>Gu(t)),i=d=>{const v=new Yb(["shape","payload","ctx"]),u=a.value,h=_=>{const A=Tu(_);return`shape[${A}]._zod.run({ value: input[${A}], issues: [] }, ctx)`};v.write("const input = payload.value;");const f=Object.create(null);let T=0;for(const _ of u.keys)f[_]=`key_${T++}`;v.write("const newResult = {};");for(const _ of u.keys){const A=f[_],z=Tu(_);v.write(`const ${A} = ${h(_)};`),v.write(` + if (${A}.issues.length) { + payload.issues = payload.issues.concat(${A}.issues.map(iss => ({ + ...iss, + path: iss.path ? [${z}, ...iss.path] : [${z}] + }))); + } + + + if (${A}.value === undefined) { + if (${z} in input) { + newResult[${z}] = undefined; + } + } else { + newResult[${z}] = ${A}.value; + } + + `)}v.write("payload.value = newResult;"),v.write("return payload;");const w=v.compile();return(_,A)=>w(d,_,A)};let o;const r=Pi,s=!Pu.jitless,c=s&&ab.value,l=t.catchall;let p;e._zod.parse=(d,v)=>{p??(p=a.value);const u=d.value;return r(u)?s&&c&&v?.async===!1&&v.jitless!==!0?(o||(o=i(t.shape)),d=o(d,v),l?Yu([],u,d,v,p,e):d):n(d,v):(d.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),d)}});function Qu(e,t,n,a){for(const o of e)if(o.issues.length===0)return t.value=o.value,t;const i=e.filter(o=>!ra(o));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(o=>o.issues.map(r=>Cn(r,a,An())))}),t)}const qx=O("$ZodUnion",(e,t)=>{$e.init(e,t),ye(e._zod,"optin",()=>t.options.some(i=>i._zod.optin==="optional")?"optional":void 0),ye(e._zod,"optout",()=>t.options.some(i=>i._zod.optout==="optional")?"optional":void 0),ye(e._zod,"values",()=>{if(t.options.every(i=>i._zod.values))return new Set(t.options.flatMap(i=>Array.from(i._zod.values)))}),ye(e._zod,"pattern",()=>{if(t.options.every(i=>i._zod.pattern)){const i=t.options.map(o=>o._zod.pattern);return new RegExp(`^(${i.map(o=>Fr(o.source)).join("|")})$`)}});const n=t.options.length===1,a=t.options[0]._zod.run;e._zod.parse=(i,o)=>{if(n)return a(i,o);let r=!1;const s=[];for(const c of t.options){const l=c._zod.run({value:i.value,issues:[]},o);if(l instanceof Promise)s.push(l),r=!0;else{if(l.issues.length===0)return l;s.push(l)}}return r?Promise.all(s).then(c=>Qu(c,i,e,o)):Qu(s,i,e,o)}}),Bx=O("$ZodIntersection",(e,t)=>{$e.init(e,t),e._zod.parse=(n,a)=>{const i=n.value,o=t.left._zod.run({value:i,issues:[]},a),r=t.right._zod.run({value:i,issues:[]},a);return o instanceof Promise||r instanceof Promise?Promise.all([o,r]).then(([s,c])=>Xu(n,s,c)):Xu(n,o,r)}});function Zr(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Da(e)&&Da(t)){const n=Object.keys(t),a=Object.keys(e).filter(o=>n.indexOf(o)!==-1),i={...e,...t};for(const o of a){const r=Zr(e[o],t[o]);if(!r.valid)return{valid:!1,mergeErrorPath:[o,...r.mergeErrorPath]};i[o]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let a=0;a{$e.init(e,t);const n=eb(t.entries),a=new Set(n);e._zod.values=a,e._zod.pattern=new RegExp(`^(${n.filter(i=>ib.has(typeof i)).map(i=>typeof i=="string"?Ci(i):i.toString()).join("|")})$`),e._zod.parse=(i,o)=>{const r=i.value;return a.has(r)||i.issues.push({code:"invalid_value",values:n,input:r,inst:e}),i}}),Wx=O("$ZodTransform",(e,t)=>{$e.init(e,t),e._zod.parse=(n,a)=>{if(a.direction==="backward")throw new Iu(e.constructor.name);const i=t.transform(n.value,n);if(a.async)return(i instanceof Promise?i:Promise.resolve(i)).then(o=>(n.value=o,n));if(i instanceof Promise)throw new oa;return n.value=i,n}});function ed(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const Vx=O("$ZodOptional",(e,t)=>{$e.init(e,t),e._zod.optin="optional",e._zod.optout="optional",ye(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),ye(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Fr(n.source)})?$`):void 0}),e._zod.parse=(n,a)=>{if(t.innerType._zod.optin==="optional"){const i=t.innerType._zod.run(n,a);return i instanceof Promise?i.then(o=>ed(o,n.value)):ed(i,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,a)}}),Jx=O("$ZodNullable",(e,t)=>{$e.init(e,t),ye(e._zod,"optin",()=>t.innerType._zod.optin),ye(e._zod,"optout",()=>t.innerType._zod.optout),ye(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Fr(n.source)}|null)$`):void 0}),ye(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,a)=>n.value===null?n:t.innerType._zod.run(n,a)}),Kx=O("$ZodDefault",(e,t)=>{$e.init(e,t),e._zod.optin="optional",ye(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,a)=>{if(a.direction==="backward")return t.innerType._zod.run(n,a);if(n.value===void 0)return n.value=t.defaultValue,n;const i=t.innerType._zod.run(n,a);return i instanceof Promise?i.then(o=>td(o,t)):td(i,t)}});function td(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const Hx=O("$ZodPrefault",(e,t)=>{$e.init(e,t),e._zod.optin="optional",ye(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,a)=>(a.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,a))}),Gx=O("$ZodNonOptional",(e,t)=>{$e.init(e,t),ye(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(a=>a!==void 0)):void 0}),e._zod.parse=(n,a)=>{const i=t.innerType._zod.run(n,a);return i instanceof Promise?i.then(o=>nd(o,e)):nd(i,e)}});function nd(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 Yx=O("$ZodCatch",(e,t)=>{$e.init(e,t),ye(e._zod,"optin",()=>t.innerType._zod.optin),ye(e._zod,"optout",()=>t.innerType._zod.optout),ye(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,a)=>{if(a.direction==="backward")return t.innerType._zod.run(n,a);const i=t.innerType._zod.run(n,a);return i instanceof Promise?i.then(o=>(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(r=>Cn(r,a,An()))},input:n.value}),n.issues=[]),n)):(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(o=>Cn(o,a,An()))},input:n.value}),n.issues=[]),n)}}),Qx=O("$ZodPipe",(e,t)=>{$e.init(e,t),ye(e._zod,"values",()=>t.in._zod.values),ye(e._zod,"optin",()=>t.in._zod.optin),ye(e._zod,"optout",()=>t.out._zod.optout),ye(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,a)=>{if(a.direction==="backward"){const o=t.out._zod.run(n,a);return o instanceof Promise?o.then(r=>Ni(r,t.in,a)):Ni(o,t.in,a)}const i=t.in._zod.run(n,a);return i instanceof Promise?i.then(o=>Ni(o,t.out,a)):Ni(i,t.out,a)}});function Ni(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const Xx=O("$ZodReadonly",(e,t)=>{$e.init(e,t),ye(e._zod,"propValues",()=>t.innerType._zod.propValues),ye(e._zod,"values",()=>t.innerType._zod.values),ye(e._zod,"optin",()=>{var n,a;return(a=(n=t.innerType)==null?void 0:n._zod)==null?void 0:a.optin}),ye(e._zod,"optout",()=>{var n,a;return(a=(n=t.innerType)==null?void 0:n._zod)==null?void 0:a.optout}),e._zod.parse=(n,a)=>{if(a.direction==="backward")return t.innerType._zod.run(n,a);const i=t.innerType._zod.run(n,a);return i instanceof Promise?i.then(ad):ad(i)}});function ad(e){return e.value=Object.freeze(e.value),e}const ey=O("$ZodCustom",(e,t)=>{lt.init(e,t),$e.init(e,t),e._zod.parse=(n,a)=>n,e._zod.check=n=>{const a=n.value,i=t.fn(a);if(i instanceof Promise)return i.then(o=>id(o,n,a,e));id(i,n,a,e)}});function id(e,t,n,a){if(!e){const i={code:"custom",input:n,inst:a,path:[...a._zod.def.path??[]],continue:!a._zod.def.abort};a._zod.def.params&&(i.params=a._zod.def.params),t.issues.push(Ra(i))}}var od;class ty{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const a=n[0];if(this._map.set(t,a),a&&typeof a=="object"&&"id"in a){if(this._idmap.has(a.id))throw new Error(`ID ${a.id} already exists in the registry`);this._idmap.set(a.id,t)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const a={...this.get(n)??{}};delete a.id;const i={...a,...this._map.get(t)};return Object.keys(i).length?i:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function ny(){return new ty}(od=globalThis).__zod_globalRegistry??(od.__zod_globalRegistry=ny());const Fi=globalThis.__zod_globalRegistry;function ay(e,t){return new e({type:"string",...K(t)})}function iy(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...K(t)})}function rd(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...K(t)})}function oy(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...K(t)})}function ry(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...K(t)})}function sy(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...K(t)})}function cy(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...K(t)})}function ly(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...K(t)})}function py(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...K(t)})}function uy(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...K(t)})}function dy(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...K(t)})}function fy(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...K(t)})}function my(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...K(t)})}function vy(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...K(t)})}function hy(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...K(t)})}function gy(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...K(t)})}function by(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...K(t)})}function xy(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...K(t)})}function yy(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...K(t)})}function wy(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...K(t)})}function _y(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...K(t)})}function ky(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...K(t)})}function jy(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...K(t)})}function Sy(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...K(t)})}function Ey(e,t){return new e({type:"string",format:"date",check:"string_format",...K(t)})}function Oy(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...K(t)})}function zy(e,t){return new e({type:"string",format:"duration",check:"string_format",...K(t)})}function Ay(e,t){return new e({type:"number",checks:[],...K(t)})}function Iy(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...K(t)})}function Py(e){return new e({type:"unknown"})}function Cy(e,t){return new e({type:"never",...K(t)})}function sd(e,t){return new qu({check:"less_than",...K(t),value:e,inclusive:!1})}function Wr(e,t){return new qu({check:"less_than",...K(t),value:e,inclusive:!0})}function cd(e,t){return new Bu({check:"greater_than",...K(t),value:e,inclusive:!1})}function Vr(e,t){return new Bu({check:"greater_than",...K(t),value:e,inclusive:!0})}function ld(e,t){return new Fb({check:"multiple_of",...K(t),value:e})}function pd(e,t){return new Ub({check:"max_length",...K(t),maximum:e})}function Li(e,t){return new qb({check:"min_length",...K(t),minimum:e})}function ud(e,t){return new Bb({check:"length_equals",...K(t),length:e})}function Ty(e,t){return new Zb({check:"string_format",format:"regex",...K(t),pattern:e})}function My(e){return new Wb({check:"string_format",format:"lowercase",...K(e)})}function Dy(e){return new Vb({check:"string_format",format:"uppercase",...K(e)})}function Ry(e,t){return new Jb({check:"string_format",format:"includes",...K(t),includes:e})}function $y(e,t){return new Kb({check:"string_format",format:"starts_with",...K(t),prefix:e})}function Ny(e,t){return new Hb({check:"string_format",format:"ends_with",...K(t),suffix:e})}function sa(e){return new Gb({check:"overwrite",tx:e})}function Fy(e){return sa(t=>t.normalize(e))}function Ly(){return sa(e=>e.trim())}function Uy(){return sa(e=>e.toLowerCase())}function qy(){return sa(e=>e.toUpperCase())}function By(){return sa(e=>nb(e))}function Zy(e,t,n){return new e({type:"array",element:t,...K(n)})}function Wy(e,t,n){return new e({type:"custom",check:"custom",fn:t,...K(n)})}function Vy(e){const t=Jy(n=>(n.addIssue=a=>{if(typeof a=="string")n.issues.push(Ra(a,n.value,t._zod.def));else{const i=a;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=n.value),i.inst??(i.inst=t),i.continue??(i.continue=!t._zod.def.abort),n.issues.push(Ra(i))}},e(n.value,n)));return t}function Jy(e,t){const n=new lt({check:"custom",...K(t)});return n._zod.check=e,n}const Ky=O("ZodISODateTime",(e,t)=>{_x.init(e,t),Ae.init(e,t)});function Hy(e){return Sy(Ky,e)}const Gy=O("ZodISODate",(e,t)=>{kx.init(e,t),Ae.init(e,t)});function Yy(e){return Ey(Gy,e)}const Qy=O("ZodISOTime",(e,t)=>{jx.init(e,t),Ae.init(e,t)});function Xy(e){return Oy(Qy,e)}const ew=O("ZodISODuration",(e,t)=>{Sx.init(e,t),Ae.init(e,t)});function tw(e){return zy(ew,e)}const nw=(e,t)=>{Wu.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>Xb(e,n)},flatten:{value:n=>Qb(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,Rr,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,Rr,2)}},isEmpty:{get(){return e.issues.length===0}}})},kt=O("ZodError",nw,{Parent:Error}),aw=Ur(kt),iw=qr(kt),ow=Di(kt),rw=Ri(kt),sw=nx(kt),cw=ax(kt),lw=ix(kt),pw=ox(kt),uw=rx(kt),dw=sx(kt),fw=cx(kt),mw=lx(kt),qe=O("ZodType",(e,t)=>($e.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(Pn(t,{checks:[...t.checks??[],...n.map(a=>typeof a=="function"?{_zod:{check:a,def:{check:"custom"},onattach:[]}}:a)]})),e.clone=(n,a)=>gn(e,n,a),e.brand=()=>e,e.register=(n,a)=>(n.add(e,a),e),e.parse=(n,a)=>aw(e,n,a,{callee:e.parse}),e.safeParse=(n,a)=>ow(e,n,a),e.parseAsync=async(n,a)=>iw(e,n,a,{callee:e.parseAsync}),e.safeParseAsync=async(n,a)=>rw(e,n,a),e.spa=e.safeParseAsync,e.encode=(n,a)=>sw(e,n,a),e.decode=(n,a)=>cw(e,n,a),e.encodeAsync=async(n,a)=>lw(e,n,a),e.decodeAsync=async(n,a)=>pw(e,n,a),e.safeEncode=(n,a)=>uw(e,n,a),e.safeDecode=(n,a)=>dw(e,n,a),e.safeEncodeAsync=async(n,a)=>fw(e,n,a),e.safeDecodeAsync=async(n,a)=>mw(e,n,a),e.refine=(n,a)=>e.check(r_(n,a)),e.superRefine=n=>e.check(s_(n)),e.overwrite=n=>e.check(sa(n)),e.optional=()=>bd(e),e.nullable=()=>xd(e),e.nullish=()=>bd(xd(e)),e.nonoptional=n=>Xw(e,n),e.array=()=>Nw(e),e.or=n=>qw([e,n]),e.and=n=>Zw(e,n),e.transform=n=>wd(e,Jw(n)),e.default=n=>Gw(e,n),e.prefault=n=>Qw(e,n),e.catch=n=>t_(e,n),e.pipe=n=>wd(e,n),e.readonly=()=>i_(e),e.describe=n=>{const a=e.clone();return Fi.add(a,{description:n}),a},Object.defineProperty(e,"description",{get(){var n;return(n=Fi.get(e))==null?void 0:n.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return Fi.get(e);const a=e.clone();return Fi.add(a,n[0]),a},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),dd=O("_ZodString",(e,t)=>{Br.init(e,t),qe.init(e,t);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...a)=>e.check(Ty(...a)),e.includes=(...a)=>e.check(Ry(...a)),e.startsWith=(...a)=>e.check($y(...a)),e.endsWith=(...a)=>e.check(Ny(...a)),e.min=(...a)=>e.check(Li(...a)),e.max=(...a)=>e.check(pd(...a)),e.length=(...a)=>e.check(ud(...a)),e.nonempty=(...a)=>e.check(Li(1,...a)),e.lowercase=a=>e.check(My(a)),e.uppercase=a=>e.check(Dy(a)),e.trim=()=>e.check(Ly()),e.normalize=(...a)=>e.check(Fy(...a)),e.toLowerCase=()=>e.check(Uy()),e.toUpperCase=()=>e.check(qy()),e.slugify=()=>e.check(By())}),vw=O("ZodString",(e,t)=>{Br.init(e,t),dd.init(e,t),e.email=n=>e.check(iy(hw,n)),e.url=n=>e.check(ly(gw,n)),e.jwt=n=>e.check(jy(Cw,n)),e.emoji=n=>e.check(py(bw,n)),e.guid=n=>e.check(rd(fd,n)),e.uuid=n=>e.check(oy(qi,n)),e.uuidv4=n=>e.check(ry(qi,n)),e.uuidv6=n=>e.check(sy(qi,n)),e.uuidv7=n=>e.check(cy(qi,n)),e.nanoid=n=>e.check(uy(xw,n)),e.guid=n=>e.check(rd(fd,n)),e.cuid=n=>e.check(dy(yw,n)),e.cuid2=n=>e.check(fy(ww,n)),e.ulid=n=>e.check(my(_w,n)),e.base64=n=>e.check(wy(Aw,n)),e.base64url=n=>e.check(_y(Iw,n)),e.xid=n=>e.check(vy(kw,n)),e.ksuid=n=>e.check(hy(jw,n)),e.ipv4=n=>e.check(gy(Sw,n)),e.ipv6=n=>e.check(by(Ew,n)),e.cidrv4=n=>e.check(xy(Ow,n)),e.cidrv6=n=>e.check(yy(zw,n)),e.e164=n=>e.check(ky(Pw,n)),e.datetime=n=>e.check(Hy(n)),e.date=n=>e.check(Yy(n)),e.time=n=>e.check(Xy(n)),e.duration=n=>e.check(tw(n))});function Ui(e){return ay(vw,e)}const Ae=O("ZodStringFormat",(e,t)=>{Ee.init(e,t),dd.init(e,t)}),hw=O("ZodEmail",(e,t)=>{fx.init(e,t),Ae.init(e,t)}),fd=O("ZodGUID",(e,t)=>{ux.init(e,t),Ae.init(e,t)}),qi=O("ZodUUID",(e,t)=>{dx.init(e,t),Ae.init(e,t)}),gw=O("ZodURL",(e,t)=>{mx.init(e,t),Ae.init(e,t)}),bw=O("ZodEmoji",(e,t)=>{vx.init(e,t),Ae.init(e,t)}),xw=O("ZodNanoID",(e,t)=>{hx.init(e,t),Ae.init(e,t)}),yw=O("ZodCUID",(e,t)=>{gx.init(e,t),Ae.init(e,t)}),ww=O("ZodCUID2",(e,t)=>{bx.init(e,t),Ae.init(e,t)}),_w=O("ZodULID",(e,t)=>{xx.init(e,t),Ae.init(e,t)}),kw=O("ZodXID",(e,t)=>{yx.init(e,t),Ae.init(e,t)}),jw=O("ZodKSUID",(e,t)=>{wx.init(e,t),Ae.init(e,t)}),Sw=O("ZodIPv4",(e,t)=>{Ex.init(e,t),Ae.init(e,t)}),Ew=O("ZodIPv6",(e,t)=>{Ox.init(e,t),Ae.init(e,t)}),Ow=O("ZodCIDRv4",(e,t)=>{zx.init(e,t),Ae.init(e,t)}),zw=O("ZodCIDRv6",(e,t)=>{Ax.init(e,t),Ae.init(e,t)}),Aw=O("ZodBase64",(e,t)=>{Ix.init(e,t),Ae.init(e,t)}),Iw=O("ZodBase64URL",(e,t)=>{Cx.init(e,t),Ae.init(e,t)}),Pw=O("ZodE164",(e,t)=>{Tx.init(e,t),Ae.init(e,t)}),Cw=O("ZodJWT",(e,t)=>{Dx.init(e,t),Ae.init(e,t)}),md=O("ZodNumber",(e,t)=>{Ku.init(e,t),qe.init(e,t),e.gt=(a,i)=>e.check(cd(a,i)),e.gte=(a,i)=>e.check(Vr(a,i)),e.min=(a,i)=>e.check(Vr(a,i)),e.lt=(a,i)=>e.check(sd(a,i)),e.lte=(a,i)=>e.check(Wr(a,i)),e.max=(a,i)=>e.check(Wr(a,i)),e.int=a=>e.check(vd(a)),e.safe=a=>e.check(vd(a)),e.positive=a=>e.check(cd(0,a)),e.nonnegative=a=>e.check(Vr(0,a)),e.negative=a=>e.check(sd(0,a)),e.nonpositive=a=>e.check(Wr(0,a)),e.multipleOf=(a,i)=>e.check(ld(a,i)),e.step=(a,i)=>e.check(ld(a,i)),e.finite=()=>e;const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function Jr(e){return Ay(md,e)}const Tw=O("ZodNumberFormat",(e,t)=>{Rx.init(e,t),md.init(e,t)});function vd(e){return Iy(Tw,e)}const Mw=O("ZodUnknown",(e,t)=>{$x.init(e,t),qe.init(e,t)});function hd(){return Py(Mw)}const Dw=O("ZodNever",(e,t)=>{Nx.init(e,t),qe.init(e,t)});function Rw(e){return Cy(Dw,e)}const $w=O("ZodArray",(e,t)=>{Fx.init(e,t),qe.init(e,t),e.element=t.element,e.min=(n,a)=>e.check(Li(n,a)),e.nonempty=n=>e.check(Li(1,n)),e.max=(n,a)=>e.check(pd(n,a)),e.length=(n,a)=>e.check(ud(n,a)),e.unwrap=()=>e.element});function Nw(e,t){return Zy($w,e,t)}const Fw=O("ZodObject",(e,t)=>{Ux.init(e,t),qe.init(e,t),ye(e,"shape",()=>t.shape),e.keyof=()=>Ww(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:hd()}),e.loose=()=>e.clone({...e._zod.def,catchall:hd()}),e.strict=()=>e.clone({...e._zod.def,catchall:Rw()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>lb(e,n),e.safeExtend=n=>pb(e,n),e.merge=n=>ub(e,n),e.pick=n=>sb(e,n),e.omit=n=>cb(e,n),e.partial=(...n)=>db(gd,e,n[0]),e.required=(...n)=>fb(yd,e,n[0])});function Lw(e,t){const n={type:"object",shape:e??{},...K(t)};return new Fw(n)}const Uw=O("ZodUnion",(e,t)=>{qx.init(e,t),qe.init(e,t),e.options=t.options});function qw(e,t){return new Uw({type:"union",options:e,...K(t)})}const Bw=O("ZodIntersection",(e,t)=>{Bx.init(e,t),qe.init(e,t)});function Zw(e,t){return new Bw({type:"intersection",left:e,right:t})}const Kr=O("ZodEnum",(e,t)=>{Zx.init(e,t),qe.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(a,i)=>{const o={};for(const r of a)if(n.has(r))o[r]=t.entries[r];else throw new Error(`Key ${r} not found in enum`);return new Kr({...t,checks:[],...K(i),entries:o})},e.exclude=(a,i)=>{const o={...t.entries};for(const r of a)if(n.has(r))delete o[r];else throw new Error(`Key ${r} not found in enum`);return new Kr({...t,checks:[],...K(i),entries:o})}});function Ww(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(a=>[a,a])):e;return new Kr({type:"enum",entries:n,...K(t)})}const Vw=O("ZodTransform",(e,t)=>{Wx.init(e,t),qe.init(e,t),e._zod.parse=(n,a)=>{if(a.direction==="backward")throw new Iu(e.constructor.name);n.addIssue=o=>{if(typeof o=="string")n.issues.push(Ra(o,n.value,t));else{const r=o;r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=n.value),r.inst??(r.inst=e),n.issues.push(Ra(r))}};const i=t.transform(n.value,n);return i instanceof Promise?i.then(o=>(n.value=o,n)):(n.value=i,n)}});function Jw(e){return new Vw({type:"transform",transform:e})}const gd=O("ZodOptional",(e,t)=>{Vx.init(e,t),qe.init(e,t),e.unwrap=()=>e._zod.def.innerType});function bd(e){return new gd({type:"optional",innerType:e})}const Kw=O("ZodNullable",(e,t)=>{Jx.init(e,t),qe.init(e,t),e.unwrap=()=>e._zod.def.innerType});function xd(e){return new Kw({type:"nullable",innerType:e})}const Hw=O("ZodDefault",(e,t)=>{Kx.init(e,t),qe.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Gw(e,t){return new Hw({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Du(t)}})}const Yw=O("ZodPrefault",(e,t)=>{Hx.init(e,t),qe.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Qw(e,t){return new Yw({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Du(t)}})}const yd=O("ZodNonOptional",(e,t)=>{Gx.init(e,t),qe.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Xw(e,t){return new yd({type:"nonoptional",innerType:e,...K(t)})}const e_=O("ZodCatch",(e,t)=>{Yx.init(e,t),qe.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function t_(e,t){return new e_({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const n_=O("ZodPipe",(e,t)=>{Qx.init(e,t),qe.init(e,t),e.in=t.in,e.out=t.out});function wd(e,t){return new n_({type:"pipe",in:e,out:t})}const a_=O("ZodReadonly",(e,t)=>{Xx.init(e,t),qe.init(e,t),e.unwrap=()=>e._zod.def.innerType});function i_(e){return new a_({type:"readonly",innerType:e})}const o_=O("ZodCustom",(e,t)=>{ey.init(e,t),qe.init(e,t)});function r_(e,t={}){return Wy(o_,e,t)}function s_(e){return Vy(e)}Lw({title:Ui(),changed:Jr().optional(),created:Jr().optional(),type:Ui(),drupal_internal__nid:Jr(),id:Ui(),langcode:Ui()});var c_=Object.defineProperty,l_=(e,t,n)=>t in e?c_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_d=(e,t,n)=>l_(e,typeof t!="symbol"?t+"":t,n);class kd extends Error{constructor(t,n,a){super(t),_d(this,"status"),_d(this,"body"),this.name="TideApiError",this.status=n,this.body=a}}let Tn,Hr;const p_=!1;let jd="api/v1";const u_=e=>{(!e||p_)&&(e=window.location.origin),Hr=e.endsWith("/")?e:`${e}/`,Tn=new Xg(Hr,"",{apiPrefix:jd})},d_=async()=>{try{const e=Tn.createQueryBuilder();return e.addInclude(["field_searchable_content_types"]),(await Tn.getTideCollection("taxonomy_term--searchable_fields",{query:e})).map(t=>({label:t.name,value:t.field_elasticsearch_id,machineName:t.field_taxonomy_machine_name,elasticField:t.field_elasticsearch_field,contentTypes:t.field_searchable_content_types?.map(n=>n.field_machine_name)||[]}))}catch(e){return console.error("Error getting searchable taxonomies:",e),[]}},f_=async(e,t)=>{try{const n=Tn.createQueryBuilder();return n.addFilter("name",t,"CONTAINS"),(await Tn.getTideCollection(`taxonomy_term--${e}`,{query:n})).map(a=>({label:a.name,value:a.drupal_internal__tid}))}catch(n){return console.error("Error getting taxonomy terms:",n),[]}},m_=async()=>{try{return(await Tn.getTideCollection("taxonomy_term--searchable_content_types")).map(e=>({label:e.name,value:e.field_machine_name}))}catch(e){return console.error("Error getting content type taxonomy:",e),[]}},v_=async e=>{try{const{response:t,error:n}=await Tn.fetch(`${Hr}${jd}/content-collection/node-autocomplete?q=${e}`,{credentials:"include"});return n||!t.ok?(console.error("Error searching for content:",n),[]):(await t.json()).map(a=>({label:a.label,value:a.id}))}catch(t){return console.error("Error searching for content:",t),[]}},h_=Re({__name:"SourceSection",setup(e){const{getField:t}=tn(),n=It([]);return Jn(async()=>{n.value=await m_()}),(a,i)=>(V(),Ue(yi,{title:"Content Source"},{default:De(()=>[ve(hn,{id:"source",type:"legend"},{default:De(({id:o,value:r,update:s})=>[ve(ph,{id:o,options:[{id:"auto",label:"Automatic",description:"Display an automatic feed of content",icon:"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%2355565b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M4 21v-7M4 10V3M12 21v-9M12 8V3M20 21v-5M20 12V3M1 14h6M9 8h6M17 16h6'/%3E%3C/svg%3E"},{id:"manual",label:"Manual",description:"Manually select specific content items",icon:"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%2355565b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E"}],value:r,required:!0,onChange:c=>s(c)},null,8,["id","value","onChange"])]),_:1}),un(t)("source")==="auto"?(V(),Ue(hn,{key:0,id:"contentType",label:"Content Type",description:"Choose the type of content you would like to display",required:!0},{default:De(({id:o,value:r,update:s})=>[ve(dl,{id:o,options:n.value,value:r,required:!0,onChange:c=>s(c)},null,8,["id","options","value","onChange"])]),_:1})):Te("",!0)]),_:1}))}});function g_(e,t){return Ps()?(_f(e,t),!0):!1}const b_=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function x_(e){return Vo()}function y_(e,t=!0,n){x_()?Jn(e,n):t?e():Po(e)}const w_=b_?window.document:void 0;function __(e){var t;const n=Ao(e);return(t=n?.$el)!==null&&t!==void 0?t:n}function Sd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,a)}return n}function Zt(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function S_(e,t){if(e==null)return{};var n=j_(e,t),a,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}var E_="1.15.6";function rn(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var sn=rn(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),$a=rn(/Edge/i),Ed=rn(/firefox/i),Na=rn(/safari/i)&&!rn(/chrome/i)&&!rn(/android/i),Gr=rn(/iP(ad|od|hone)/i),Od=rn(/chrome/i)&&rn(/android/i),zd={capture:!1,passive:!1};function pe(e,t,n){e.addEventListener(t,n,!sn&&zd)}function ce(e,t,n){e.removeEventListener(t,n,!sn&&zd)}function Zi(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function Ad(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Pt(e,t,n,a){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&Zi(e,t):Zi(e,t))||a&&e===n)return e;if(e===n)break}while(e=Ad(e))}return null}var Id=/\s+/g;function vt(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var a=(" "+e.className+" ").replace(Id," ").replace(" "+t+" "," ");e.className=(a+(n?" "+t:"")).replace(Id," ")}}function G(e,t,n){var a=e&&e.style;if(a){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in a)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),a[t]=n+(typeof n=="string"?"":"px")}}function ca(e,t){var n="";if(typeof e=="string")n=e;else do{var a=G(e,"transform");a&&a!=="none"&&(n=a+" "+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function Pd(e,t,n){if(e){var a=e.getElementsByTagName(t),i=0,o=a.length;if(n)for(;i=o,!r)return a;if(a===Wt())break;a=bn(a,!1)}return!1}function la(e,t,n,a){for(var i=0,o=0,r=e.children;o2&&arguments[2]!==void 0?arguments[2]:{},a=n.evt,i=S_(n,M_);La.pluginEvent.bind(Y)(e,t,Zt({dragEl:N,parentEl:Me,ghostEl:ne,rootEl:Oe,nextEl:Mn,lastDownEl:Wi,cloneEl:Ie,cloneHidden:xn,dragStarted:qa,putSortable:Je,activeSortable:Y.active,originalEvent:a,oldIndex:ua,oldDraggableIndex:Ua,newIndex:ht,newDraggableIndex:yn,hideGhostForTarget:Zd,unhideGhostForTarget:Wd,cloneNowHidden:function(){xn=!0},cloneNowShown:function(){xn=!1},dispatchSortableEvent:function(o){it({sortable:t,name:o,originalEvent:a})}},i))};function it(e){T_(Zt({putSortable:Je,cloneEl:Ie,targetEl:N,rootEl:Oe,oldIndex:ua,oldDraggableIndex:Ua,newIndex:ht,newDraggableIndex:yn},e))}var N,Me,ne,Oe,Mn,Wi,Ie,xn,ua,ht,Ua,yn,Vi,Je,da=!1,Ji=!1,Ki=[],Dn,Ct,es,ts,Nd,Fd,qa,fa,Ba,Za=!1,Hi=!1,Gi,Xe,ns=[],as=!1,Yi=[],Qi=typeof document<"u",Xi=Gr,Ld=$a||sn?"cssFloat":"float",D_=Qi&&!Od&&!Gr&&"draggable"in document.createElement("div"),Ud=(function(){if(Qi){if(sn)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}})(),qd=function(e,t){var n=G(e),a=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=la(e,0,t),o=la(e,1,t),r=i&&G(i),s=o&&G(o),c=r&&parseInt(r.marginLeft)+parseInt(r.marginRight)+Ne(i).width,l=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+Ne(o).width;if(n.display==="flex")return n.flexDirection==="column"||n.flexDirection==="column-reverse"?"vertical":"horizontal";if(n.display==="grid")return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&r.float&&r.float!=="none"){var p=r.float==="left"?"left":"right";return o&&(s.clear==="both"||s.clear===p)?"vertical":"horizontal"}return i&&(r.display==="block"||r.display==="flex"||r.display==="table"||r.display==="grid"||c>=a&&n[Ld]==="none"||o&&n[Ld]==="none"&&c+l>a)?"vertical":"horizontal"},R_=function(e,t,n){var a=n?e.left:e.top,i=n?e.right:e.bottom,o=n?e.width:e.height,r=n?t.left:t.top,s=n?t.right:t.bottom,c=n?t.width:t.height;return a===r||i===s||a+o/2===r+c/2},$_=function(e,t){var n;return Ki.some(function(a){var i=a[pt].options.emptyInsertThreshold;if(!(!i||Yr(a))){var o=Ne(a),r=e>=o.left-i&&e<=o.right+i,s=t>=o.top-i&&t<=o.bottom+i;if(r&&s)return n=a}}),n},Bd=function(e){function t(i,o){return function(r,s,c,l){var p=r.options.group.name&&s.options.group.name&&r.options.group.name===s.options.group.name;if(i==null&&(o||p))return!0;if(i==null||i===!1)return!1;if(o&&i==="clone")return i;if(typeof i=="function")return t(i(r,s,c,l),o)(r,s,c,l);var d=(o?r:s).options.group.name;return i===!0||typeof i=="string"&&i===d||i.join&&i.indexOf(d)>-1}}var n={},a=e.group;(!a||Bi(a)!="object")&&(a={name:a}),n.name=a.name,n.checkPull=t(a.pull,!0),n.checkPut=t(a.put),n.revertClone=a.revertClone,e.group=n},Zd=function(){!Ud&&ne&&G(ne,"display","none")},Wd=function(){!Ud&&ne&&G(ne,"display","")};Qi&&!Od&&document.addEventListener("click",function(e){if(Ji)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Ji=!1,!1},!0);var Rn=function(e){if(N){e=e.touches?e.touches[0]:e;var t=$_(e.clientX,e.clientY);if(t){var n={};for(var a in e)e.hasOwnProperty(a)&&(n[a]=e[a]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[pt]._onDragOver(n)}}},N_=function(e){N&&N.parentNode[pt]._isOutsideThisEl(e.target)};function Y(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=on({},t),e[pt]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return qd(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(o,r){o.setData("Text",r.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Y.supportPointer!==!1&&"PointerEvent"in window&&(!Na||Gr),emptyInsertThreshold:5};La.initializePlugins(this,e,n);for(var a in n)!(a in t)&&(t[a]=n[a]);Bd(t);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:D_,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?pe(e,"pointerdown",this._onTapStart):(pe(e,"mousedown",this._onTapStart),pe(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(pe(e,"dragover",this),pe(e,"dragenter",this)),Ki.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),on(this,I_())}Y.prototype={constructor:Y,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(fa=null)},_getDirection:function(e,t){return typeof this.options.direction=="function"?this.options.direction.call(this,e,t,N):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,a=this.options,i=a.preventOnFilter,o=e.type,r=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,s=(r||e).target,c=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,l=a.filter;if(V_(n),!N&&!(/mousedown|pointerdown/.test(o)&&e.button!==0||a.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&Na&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=Pt(s,a.draggable,n,!1),!(s&&s.animated)&&Wi!==s)){if(ua=jt(s),Ua=jt(s,a.draggable),typeof l=="function"){if(l.call(this,e,s,this)){it({sortable:t,rootEl:c,name:"filter",targetEl:s,toEl:n,fromEl:n}),ut("filter",t,{evt:e}),i&&e.preventDefault();return}}else if(l&&(l=l.split(",").some(function(p){if(p=Pt(c,p.trim(),n,!1),p)return it({sortable:t,rootEl:p,name:"filter",targetEl:s,fromEl:n,toEl:n}),ut("filter",t,{evt:e}),!0}),l)){i&&e.preventDefault();return}a.handle&&!Pt(c,a.handle,n,!1)||this._prepareDragStart(e,r,s)}}},_prepareDragStart:function(e,t,n){var a=this,i=a.el,o=a.options,r=i.ownerDocument,s;if(n&&!N&&n.parentNode===i){var c=Ne(n);if(Oe=i,N=n,Me=N.parentNode,Mn=N.nextSibling,Wi=n,Vi=o.group,Y.dragged=N,Dn={target:N,clientX:(t||e).clientX,clientY:(t||e).clientY},Nd=Dn.clientX-c.left,Fd=Dn.clientY-c.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,N.style["will-change"]="all",s=function(){if(ut("delayEnded",a,{evt:e}),Y.eventCanceled){a._onDrop();return}a._disableDelayedDragEvents(),!Ed&&a.nativeDraggable&&(N.draggable=!0),a._triggerDragStart(e,t),it({sortable:a,name:"choose",originalEvent:e}),vt(N,o.chosenClass,!0)},o.ignore.split(",").forEach(function(l){Pd(N,l.trim(),is)}),pe(r,"dragover",Rn),pe(r,"mousemove",Rn),pe(r,"touchmove",Rn),o.supportPointer?(pe(r,"pointerup",a._onDrop),!this.nativeDraggable&&pe(r,"pointercancel",a._onDrop)):(pe(r,"mouseup",a._onDrop),pe(r,"touchend",a._onDrop),pe(r,"touchcancel",a._onDrop)),Ed&&this.nativeDraggable&&(this.options.touchStartThreshold=4,N.draggable=!0),ut("delayStart",this,{evt:e}),o.delay&&(!o.delayOnTouchOnly||t)&&(!this.nativeDraggable||!($a||sn))){if(Y.eventCanceled){this._onDrop();return}o.supportPointer?(pe(r,"pointerup",a._disableDelayedDrag),pe(r,"pointercancel",a._disableDelayedDrag)):(pe(r,"mouseup",a._disableDelayedDrag),pe(r,"touchend",a._disableDelayedDrag),pe(r,"touchcancel",a._disableDelayedDrag)),pe(r,"mousemove",a._delayedDragTouchMoveHandler),pe(r,"touchmove",a._delayedDragTouchMoveHandler),o.supportPointer&&pe(r,"pointermove",a._delayedDragTouchMoveHandler),a._dragStartTimer=setTimeout(s,o.delay)}else s()}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){N&&is(N),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;ce(e,"mouseup",this._disableDelayedDrag),ce(e,"touchend",this._disableDelayedDrag),ce(e,"touchcancel",this._disableDelayedDrag),ce(e,"pointerup",this._disableDelayedDrag),ce(e,"pointercancel",this._disableDelayedDrag),ce(e,"mousemove",this._delayedDragTouchMoveHandler),ce(e,"touchmove",this._delayedDragTouchMoveHandler),ce(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||e.pointerType=="touch"&&e,!this.nativeDraggable||t?this.options.supportPointer?pe(document,"pointermove",this._onTouchMove):t?pe(document,"touchmove",this._onTouchMove):pe(document,"mousemove",this._onTouchMove):(pe(N,"dragend",this),pe(Oe,"dragstart",this._onDragStart));try{document.selection?to(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(da=!1,Oe&&N){ut("dragStarted",this,{evt:t}),this.nativeDraggable&&pe(document,"dragover",N_);var n=this.options;!e&&vt(N,n.dragClass,!1),vt(N,n.ghostClass,!0),Y.active=this,e&&this._appendGhost(),it({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Ct){this._lastX=Ct.clientX,this._lastY=Ct.clientY,Zd();for(var e=document.elementFromPoint(Ct.clientX,Ct.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Ct.clientX,Ct.clientY),e!==t);)t=e;if(N.parentNode[pt]._isOutsideThisEl(e),t)do{if(t[pt]){var n=void 0;if(n=t[pt]._onDragOver({clientX:Ct.clientX,clientY:Ct.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=Ad(t));Wd()}},_onTouchMove:function(e){if(Dn){var t=this.options,n=t.fallbackTolerance,a=t.fallbackOffset,i=e.touches?e.touches[0]:e,o=ne&&ca(ne,!0),r=ne&&o&&o.a,s=ne&&o&&o.d,c=Xi&&Xe&&Td(Xe),l=(i.clientX-Dn.clientX+a.x)/(r||1)+(c?c[0]-ns[0]:0)/(r||1),p=(i.clientY-Dn.clientY+a.y)/(s||1)+(c?c[1]-ns[1]:0)/(s||1);if(!Y.active&&!da){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))=0&&(it({rootEl:Me,name:"add",toEl:Me,fromEl:Oe,originalEvent:e}),it({sortable:this,name:"remove",toEl:Me,originalEvent:e}),it({rootEl:Me,name:"sort",toEl:Me,fromEl:Oe,originalEvent:e}),it({sortable:this,name:"sort",toEl:Me,originalEvent:e})),Je&&Je.save()):ht!==ua&&ht>=0&&(it({sortable:this,name:"update",toEl:Me,originalEvent:e}),it({sortable:this,name:"sort",toEl:Me,originalEvent:e})),Y.active&&((ht==null||ht===-1)&&(ht=ua,yn=Ua),it({sortable:this,name:"end",toEl:Me,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){ut("nulling",this),Oe=N=Me=ne=Mn=Ie=Wi=xn=Dn=Ct=qa=ht=yn=ua=Ua=fa=Ba=Je=Vi=Y.dragged=Y.ghost=Y.clone=Y.active=null,Yi.forEach(function(e){e.checked=!0}),Yi.length=es=ts=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":N&&(this._onDragOver(e),F_(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],t,n=this.el.children,a=0,i=n.length,o=this.options;ai.right+o||e.clientY>a.bottom&&e.clientX>a.left:e.clientY>i.bottom+o||e.clientX>a.right&&e.clientY>a.top}function B_(e,t,n,a,i,o,r,s){var c=a?e.clientY:e.clientX,l=a?n.height:n.width,p=a?n.top:n.left,d=a?n.bottom:n.right,v=!1;if(!r){if(s&&Gip+l*o/2:cd-Gi)return-Ba}else if(c>p+l*(1-i)/2&&cd-l*o/2)?c>p+l/2?1:-1:0}function Z_(e){return jt(N){Kd(t,p.oldIndex,p.newIndex,p)}},s=()=>{const p=typeof e=="string"?i?.querySelector(e):__(e);!p||a!==void 0||(a=new Y(p,{...r,...o}))},c=()=>{a?.destroy(),a=void 0},l=(p,d)=>{if(d!==void 0)a?.option(p,d);else return a?.option(p)};return y_(s),g_(c),{stop:c,start:s,option:l}}function H_(e,t,n){const a=e.children[n];e.insertBefore(t,a)}function G_(e){e.parentNode&&e.parentNode.removeChild(e)}function Kd(e,t,n,a=null){a!=null&&(G_(a.item),H_(a.from,a.item,t));const i=Ze(e),o=i?[...Ao(e)]:Ao(e);if(n>=0&&n{o.splice(n,0,r),i&&(e.value=o)})}}const Y_=["disabled"],Hd=Re({__name:"TideButton",props:{variant:{default:"default"},size:{default:"medium"},disabled:{type:Boolean,default:!1}},setup(e){return(t,n)=>(V(),ie("button",{type:"button",class:Ot(`tide-button tide-button--${e.variant} tide-button--${e.size}`),disabled:e.disabled},[Kn(t.$slots,"default")],10,Y_))}}),Q_={key:0,class:"tide-field-group__action"},X_=Re({__name:"TideFieldGroup",props:{repeatable:{type:Boolean,default:!1},repeatLabel:{default:"Add +"},sortable:{type:Boolean,default:!1},sortItems:{default:()=>[]}},emits:["add","sort"],setup(e,{emit:t}){const n=e,a=t,i=Gs(n.sortItems),o=lm("content");return n.sortable&&K_(o,i,{onUpdate:r=>{a("sort",r.newIndex,r.oldIndex)}}),(r,s)=>(V(),ie("div",{class:Ot({"tide-field-group":!0,"tide-field-group--repeatable":e.repeatable})},[_e("div",{ref_key:"content",ref:o,class:"tide-field-group__content"},[Kn(r.$slots,"default",{},void 0,!0)],512),e.repeatable?(V(),ie("div",Q_,[ve(Hd,{onClick:s[0]||(s[0]=c=>r.$emit("add"))},{default:De(()=>[Pa(st(e.repeatLabel),1)]),_:1})])):Te("",!0)],2))}}),Gd=nn(X_,[["__scopeId","data-v-787c34d8"]]),e0={class:Ot({"tide-dropdown-list__autocomplete":!0,"tide-form__element":!0})},t0={key:0,class:"tide-dropdown-list__tags"},n0={class:"tide-dropdown-list__tag-text"},a0=["tabindex","aria-label","onClick"],i0=["name","id","placeholder","aria-expanded","aria-controls","aria-activedescendant","disabled","required","onKeydown"],o0={key:2,class:"tide-dropdown-list__loading-icon",width:"18",height:"18",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},r0=["id"],s0={key:0,class:"tide-dropdown-list__menu-item tide-dropdown-list__menu-empty"},c0=["id","aria-selected","aria-current","onClick"],l0=Re({__name:"TideDropdown",props:{id:{},multiple:{type:Boolean,default:!0},options:{default:()=>[]},dynamic:{type:Boolean,default:!1},placeholder:{default:"Type to search..."},value:{},required:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},minQuery:{default:0}},emits:["change","search"],setup(e,{emit:t}){const n=e,a=t,i=It(""),o=It(!1),r=It(null);fn(i,()=>{a("search",i.value),!i.value||!l.value.length?w(null):n.dynamic&&i.value.lengthn.loading,(j,U)=>{!j&&U&&n.dynamic&&B()});const s=ct(()=>n.value?Array.isArray(n.value)?n.value:[n.value]:[]),c=ct(()=>n.multiple||!s.value.length),l=ct(()=>n.dynamic||!i.value?n.options:n.options.filter(j=>j.label.toLowerCase().includes(i.value.toLowerCase()))),p=j=>r.value?j.value===r.value?.value:!1,d=j=>!!s.value.find(U=>U.value===j.value);function v(j){a("change",n.multiple?[...s.value,j]:j),n.multiple||(i.value="",S())}function u(j){a("change",n.multiple?s.value.filter(U=>U.value!==j.value):null)}function h(){!i.value&&s.value.length&&a("change",s.value.slice(0,-1))}function f(){r.value?T(r.value):i.value||B()}function T(j){j&&(s.value.find(U=>U.value===j.value)?u(j):v(j))}function w(j){r.value=j}function _(){return l.value.findIndex(j=>j.value===r.value?.value)}function A(){if(!l.value.length)return;const j=_();j0?w(l.value[j-1]):w(l.value[l.value.length-1])}function B(){n.dynamic&&i.value.length=n.minQuery)&&B()}const M=j=>{j.target?.closest(".tide-dropdown-list")||S()};return Jn(()=>window.addEventListener("pointerdown",M)),Mo(()=>window.removeEventListener("pointerdown",M)),(j,U)=>(V(),ie("div",{class:Ot({"tide-dropdown-list":!0,"tide-dropdown-list--single":!e.multiple})},[_e("div",e0,[s.value.length?(V(),ie("div",t0,[(V(!0),ie(Ce,null,mn(s.value,Z=>(V(),ie("span",{key:Z.value,class:"tide-dropdown-list__tag"},[_e("span",n0,st(Z.label),1),_e("button",{type:"button",tabindex:e.multiple?-1:0,class:"tide-dropdown-list__tag-remove","aria-label":`Remove ${Z.label}`,onClick:ee=>T(Z)},[...U[1]||(U[1]=[_e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[_e("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),_e("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)])],8,a0)]))),128))])):Te("",!0),c.value?nm((V(),ie("input",{key:1,name:e.id,id:e.id,type:"text",class:"tide-dropdown-list__input",autocomplete:"off",placeholder:e.placeholder,role:"combobox","aria-expanded":o.value,"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":o.value?`${e.id}-menu`:void 0,"aria-activedescendant":o.value&&r.value?`${e.id}-menu-${r.value}`:void 0,disabled:e.disabled,required:e.required,"onUpdate:modelValue":U[0]||(U[0]=Z=>i.value=Z),onFocus:E,onKeydown:[Qn(S,["tab"]),Qn(S,["esc"]),Qn(Qo(z,["prevent"]),["up"]),Qn(Qo(A,["prevent"]),["down"]),Qn(h,["delete"]),Qn(Qo(f,["prevent"]),["enter"])]},null,40,i0)),[[Iv,i.value]]):Te("",!0),e.loading?(V(),ie("svg",o0,[...U[2]||(U[2]=[_e("path",{d:"M10,1V3a7,7,0,1,1-7,7H1a9,9,0,1,0,9-9Z"},null,-1)])])):Te("",!0),o.value?(V(),ie("ul",{key:3,id:`${e.id}-menu`,role:"listbox",tabindex:"-1","aria-multiselectable":"true",class:"tide-dropdown-list__menu"},[!l.value.length&&i.value&&!e.loading?(V(),ie("li",s0,[...U[3]||(U[3]=[_e("span",null,"No matching results",-1)])])):Te("",!0),(V(!0),ie(Ce,null,mn(l.value,Z=>(V(),ie("li",{key:Z.value,id:`${e.id}-menu-${Z.value}`,role:"option",class:"tide-dropdown-list__menu-item","aria-selected":d(Z),"aria-current":p(Z),onClick:ee=>T(Z)},st(Z.label),9,c0))),128))],8,r0)):Te("",!0)])],2))}}),Yd=nn(l0,[["__scopeId","data-v-5ecc9ddc"]]),Qd=(e="{}")=>{let t={};if(!e)return t;try{t=JSON.parse(e)}catch(n){console.error("Error parsing JSON value:",n)}return t},p0=e=>{let t="{}";try{t=JSON.stringify(e)}catch(n){console.error("Error stringify-ing value:",n)}return t},Xd=(e,t=300)=>{let n;return(...a)=>{clearTimeout(n),n=setTimeout(()=>e(...a),t)}},u0=Re({__name:"FiltersSectionTerms",props:{id:{},value:{default:()=>[]},source:{default:void 0}},emits:["change"],setup(e,{emit:t}){const n=e,a=t,{getConfig:i,setConfig:o}=tn(),r=It([]),s=It(!0),c=It(!1),l=ct(()=>{if(!n.value.length)return[];const v=i("termMap");return n.value.map(u=>({label:v[u]||"Not found",value:u}))}),p=v=>{const u=v.reduce((h,f)=>({...h,[f.value]:f.label}),{});o("termMap",u,!0),a("change",v.map(h=>h.value))},d=Xd(async v=>{n.source&&v.length>=2?(c.value=!0,r.value=await f_(n.source,v)):r.value=[],c.value=!1});return fn(()=>n.source,async v=>{s.value=!v,r.value=[]}),(v,u)=>(V(),Ue(Yd,{id:e.id,value:l.value,options:r.value,disabled:s.value,loading:c.value,dynamic:!0,"min-query":2,onChange:p,onSearch:un(d)},null,8,["id","value","options","disabled","loading","onSearch"]))}}),d0={key:0,class:"tide-field-group__sort","aria-label":"Drag to sort"},f0={class:"tide-field-group-row__content"},m0={key:1,class:"tide-field-group-row__action"},v0=Re({__name:"TideFieldGroupRow",props:{sortable:{type:Boolean,default:!1},removeable:{type:Boolean,default:!1},removeLabel:{default:"Remove row"}},emits:["remove"],setup(e){return(t,n)=>(V(),ie("div",{class:Ot({"tide-field-group-row":!0,"tide-field-group-row--sortable":e.sortable,"tide-field-group-row--removeable":e.removeable})},[e.sortable?(V(),ie("div",d0,[...n[1]||(n[1]=[_e("svg",{role:"presentation",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[_e("path",{d:"M5.2 9l-3 3 3 3M9 5.2l3-3 3 3M15 18.9l-3 3-3-3M18.9 9l3 3-3 3M3.3 12h17.4M12 3.2v17.6"})],-1)])])):Te("",!0),_e("div",f0,[Kn(t.$slots,"default",{},void 0,!0)]),e.removeable?(V(),ie("div",m0,[ve(Hd,{size:"medium",class:"tide-field-group-row__action-button","aria-label":e.removeLabel,onClick:n[0]||(n[0]=a=>t.$emit("remove"))},{default:De(()=>[...n[2]||(n[2]=[Pa(" Remove ",-1)])]),_:1},8,["aria-label"])])):Te("",!0)],2))}}),ef=nn(v0,[["__scopeId","data-v-375ae602"]]),h0=Re({__name:"FiltersSection",setup(e){const{form:t,getField:n,setField:a}=tn(),i=It([]),o=ct(()=>{const p=n("filters");return p.length?p:[]}),r=()=>{a("filters",[...o.value,{}])},s=p=>{a("filters",o.value.filter((d,v)=>v!==p))},c=p=>i.value.find(d=>d.value===p)?.machineName,l=ct(()=>{const p=n("contentType");return i.value.filter(d=>d.contentTypes.length?d.contentTypes.includes(p):!0)});return fn(()=>t.contentType,p=>{const d=o.value.filter(v=>v.taxonomy?i.value.some(u=>u.value===v.taxonomy&&(!u.contentTypes.length||u.contentTypes.includes(p))):!0);d.length!==o.value.length&&a("filters",d)}),Jn(async()=>{i.value=await d_()}),(p,d)=>(V(),Ue(yi,{title:"Refine Content",description:"This section allows you to filter content to only the relevant items."},{default:De(()=>[ve(Gd,{repeatable:!0,"repeat-label":"Add filter",onAdd:r},{default:De(()=>[(V(!0),ie(Ce,null,mn(o.value,(v,u)=>(V(),Ue(ef,{key:`filters-${u}`,removeable:!0,"remove-label":"Remove filter",onRemove:h=>s(u)},{default:De(()=>[ve(hn,{id:"filters",index:u,scope:"tax",label:"Filter by",required:!0,description:"Select a taxonomy term to filter by"},{default:De(({id:h,value:f,update:T})=>[ve(dl,{id:h,required:!0,value:f?.taxonomy,options:l.value,onChange:w=>T({taxonomy:w},u)},null,8,["id","value","options","onChange"])]),_:2},1032,["index"]),ve(hn,{id:"filters",required:!0,index:u,scope:"terms",label:"Filter terms",description:"Show content with the selected terms"},{default:De(({id:h,value:f,update:T})=>[ve(u0,{id:h,value:f?.terms,source:c(f.taxonomy),onChange:w=>T({taxonomy:f.taxonomy,terms:w},u)},null,8,["id","value","source","onChange"])]),_:2},1032,["index"])]),_:2},1032,["onRemove"]))),128))]),_:1})]),_:1}))}}),g0=Re({__name:"ManualSectionItem",props:{id:{},value:{},source:{default:void 0}},emits:["change"],setup(e,{emit:t}){const n=e,a=t,{getConfig:i,setConfig:o}=tn(),r=It([]),s=It(!1),c=ct(()=>{const d=i("contentMap");return n.value&&Object.keys(d).length?{label:d[n.value]||"Not found",value:n.value}:null}),l=d=>{const v=typeof d=="object"&&d!==null;v&&o("contentMap",{[d.value]:d.label},!0),a("change",v?d.value:"")},p=Xd(async d=>{d.length>=2?(s.value=!0,r.value=await v_(d)):r.value=[],s.value=!1});return(d,v)=>(V(),Ue(Yd,{id:e.id,value:c.value,options:r.value,loading:s.value,dynamic:!0,multiple:!1,required:!0,"min-query":2,onChange:l,onSearch:un(p)},null,8,["id","value","options","loading","onSearch"]))}}),b0=Re({__name:"ManualSection",setup(e){const{getField:t,setField:n}=tn(),a=ct(()=>t("manualItems")||[""]),i=()=>{n("manualItems",[...a.value,""])},o=s=>{n("manualItems",a.value.filter((c,l)=>l!==s))},r=(s,c)=>{const l=[...a.value];Kd(l,c,s),n("manualItems",l)};return(s,c)=>(V(),Ue(yi,{title:"Select content",description:"Search for individual content items, add them to the list, then drag to reorder or remove as needed.",required:!0},{default:De(()=>[ve(Gd,{repeatable:!0,"repeat-label":"Add content",sortable:!0,"sort-items":a.value,onAdd:i,onSort:r},{default:De(()=>[(V(!0),ie(Ce,null,mn(a.value,(l,p)=>(V(),Ue(ef,{key:`manual-${l}-${p}`,removeable:!0,sortable:!0,"remove-label":"Remove content",onRemove:d=>o(p)},{default:De(()=>[ve(hn,{id:"manualItems",index:p,label:"Search content","hide-label":!0},{default:De(({id:d,value:v,update:u})=>[ve(g0,{id:d,value:v,onChange:h=>u(h,p)},null,8,["id","value","onChange"])]),_:2},1032,["index"])]),_:2},1032,["onRemove"]))),128))]),_:1},8,["sort-items"])]),_:1}))}}),x0=["name","type","id","min","max","value","required"],y0=Re({__name:"TideInput",props:{id:{},type:{default:"text"},value:{default:void 0},min:{default:void 0},max:{default:void 0},required:{type:Boolean,default:!1}},emits:["change"],setup(e,{emit:t}){const n=e,a=t,i=o=>{let r=o.target.value;n.type==="number"&&(r=Number(r)),a("change",r)};return(o,r)=>(V(),ie("input",{name:e.id,type:e.type,id:e.id,min:e.min,max:e.max,value:e.value,required:e.required,class:"tide-input tide-form__element",onInput:i},null,40,x0))}}),w0={class:"tide-radio__label"},_0=["name","value","checked","required","onChange"],k0=Re({__name:"TideRadio",props:{id:{},options:{},value:{},required:{type:Boolean,default:!1},display:{default:"block"}},emits:["change"],setup(e){return(t,n)=>(V(),ie("div",{class:Ot(`tide-radio tide-radio--${e.display}`)},[(V(!0),ie(Ce,null,mn(e.options,a=>(V(),ie("label",w0,[_e("input",{type:"radio",name:e.id,class:"tide-radio__input",value:a.value,checked:a.value===e.value,required:e.required,onChange:i=>t.$emit("change",a.value)},null,40,_0),_e("span",null,st(a.label),1)]))),256))],2))}}),j0=nn(k0,[["__scopeId","data-v-df50077b"]]),S0={class:"tide-checkbox__label"},E0=["name","value","checked","required","onChange"],O0=Re({__name:"TideCheckbox",props:{id:{},options:{},value:{type:[String,Boolean]},required:{type:Boolean,default:!1},display:{default:"block"}},emits:["change"],setup(e,{emit:t}){const n=e,a=t,i=(o,r)=>{const s=n.options.length>1;a("change",s?o:!r)};return(o,r)=>(V(),ie("div",{class:Ot(`tide-checkbox tide-checkbox--${e.display}`)},[(V(!0),ie(Ce,null,mn(e.options,s=>(V(),ie("label",S0,[_e("input",{type:"checkbox",name:e.id,class:"tide-checkbox__input",value:s.value,checked:s.value===e.value,required:e.required,onChange:c=>i(s.value,e.value)},null,40,E0),_e("span",null,st(s.label),1)]))),256))],2))}}),z0=nn(O0,[["__scopeId","data-v-3a00e669"]]),A0=Re({__name:"DisplaySection",setup(e){const{getField:t}=tn();return(n,a)=>(V(),Ue(yi,{title:"Display Options"},{default:De(()=>[ve(hn,{id:"displayType",type:"legend",label:"Display type",required:!0,description:"How would you like to display the content?"},{default:De(({id:i,value:o,update:r})=>[ve(j0,{id:i,display:"inline",options:[{value:"card",label:"Card"},{value:"list",label:"List"},{value:"carousel",label:"Carousel"}],value:o,required:!0,onChange:s=>r(s)},null,8,["id","value","onChange"])]),_:1}),un(t)("displayType")==="card"||un(t)("displayType")==="carousel"?(V(),Ue(hn,{key:0,id:"showImage",type:"legend",label:"Show images"},{default:De(({id:i,value:o,update:r})=>[ve(z0,{id:i,options:[{value:!0,label:"Would you like to display images?"}],value:o,onChange:s=>r(s)},null,8,["id","value","onChange"])]),_:1})):Te("",!0),un(t)("source")==="auto"?(V(),Ue(hn,{key:1,id:"displayNumber",label:"Number of items",description:"How many items would you like display?",required:!0},{default:De(({id:i,value:o,update:r})=>[ve(y0,{id:i,type:"number",value:o,min:1,max:100,required:!0,onChange:s=>r(s)},null,8,["id","value","onChange"])]),_:1})):Te("",!0)]),_:1}))}}),I0=Re({__name:"ContentForm",setup(e){const{getField:t}=tn(),n=ct(()=>t("source")&&t("contentType")||t("source")==="manual"),a=ct(()=>t("source")==="manual"),i=ct(()=>t("source")==="auto");return(o,r)=>(V(),Ue(Bv,null,{default:De(()=>[ve(h_),n.value?(V(),ie(Ce,{key:0},[a.value?(V(),Ue(b0,{key:0})):Te("",!0),i.value?(V(),Ue(h0,{key:1})):Te("",!0),ve(A0)],64)):Te("",!0)]),_:1}))}}),P0={key:0,class:"tide-collection"},C0=Re({__name:"App",props:{index:{},form:{},config:{},baseUrl:{},update:{type:Function}},setup(e){const t=e,n=It(!1),{form:a}=tn({id:`tide-content-collection-${t.index}`,form:t.form,config:t.config});return Jn(()=>{u_(t.baseUrl),n.value=!0}),fn(a,i=>{t.update(i)},{deep:!0}),(i,o)=>n.value?(V(),ie("div",P0,[ve(I0)])):Te("",!0)}});function T0(e,t={}){Rv(C0,t).mount(e)}(e=>{Drupal.behaviors.contentCollection={attach:function(t){once("content-collection-init",".content-collection-app",t).forEach(function(n){const a=n.closest(".field--type-tide-content-collection-ui"),i=n.getAttribute("data-index")||"0",o=n.getAttribute("data-config")||"{}",r=a?.querySelector(`#content-collection-value-${i}`);!n?.querySelector(".tide-form")&&r&&T0(n,{index:i,form:Qd(r.value),config:Qd(o),update:c=>r.value=p0(c),baseUrl:window.location.origin})})}}})(jQuery)})(); diff --git a/modules/tide_api/modules/tide_content_collection_ui/app/package-lock.json b/modules/tide_api/modules/tide_content_collection_ui/app/package-lock.json new file mode 100644 index 000000000..a80c2188e --- /dev/null +++ b/modules/tide_api/modules/tide_content_collection_ui/app/package-lock.json @@ -0,0 +1,1682 @@ +{ + "name": "app", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "dependencies": { + "@dpc-sdp/tide-content-collection-ui": "0.1.0-alpha.13" + }, + "devDependencies": { + "vite": "^7.3.0" + } + }, + "node_modules/@aws-crypto/sha256-js": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/sha256-js/-/sha256-js-5.2.0.tgz", + "integrity": "sha512-FFQQyu7edu4ufvIZ+OadFpHHOt+eSTBaYaki44c+akjg7qZg9oOQeLlk77F6tSYqjDAFClrHJk9tMf0HdVyOvA==", + "license": "Apache-2.0", + "dependencies": { + "@aws-crypto/util": "^5.2.0", + "@aws-sdk/types": "^3.222.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-crypto/util": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/util/-/util-5.2.0.tgz", + "integrity": "sha512-4RkU9EsI6ZpBve5fseQlGNUWKMa1RLPQ1dnjnQoe07ldfIzcsGb5hC5W0Dm7u423KWzawlrpbjXBrXCEv9zazQ==", + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/types": "^3.222.0", + "@smithy/util-utf8": "^2.0.0", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-sdk/types": { + "version": "3.965.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.965.0.tgz", + "integrity": "sha512-jvodoJdMavvg8faN7co58vVJRO5MVep4JFPRzUNCzpJ98BDqWDk/ad045aMJcmxkLzYLS2UAnUmqjJ/tUPNlzQ==", + "license": "Apache-2.0", + "dependencies": { + "@smithy/types": "^4.11.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", + "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz", + "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.28.5.tgz", + "integrity": "sha512-KKBU1VGYR7ORr3At5HAtUQ+TV3SzRCXmA/8OdDZiLDBIZxVyzXuztPjfLd3BV1PRAQGCMWWSHYhL0F8d5uHBDQ==", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.28.5" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/types": { + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.28.5.tgz", + "integrity": "sha512-qQ5m48eI/MFLQ5PxQj4PFaprjyCTLI37ElWMmNs0K8Lk3dVeOdNpB3ks8jc7yM5CDmVC73eMVk/trk3fgmrUpA==", + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.27.1", + "@babel/helper-validator-identifier": "^7.28.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@dpc-sdp/tide-api-client": { + "version": "0.2.0", + "resolved": "https://npm.pkg.github.com/download/@dpc-sdp/tide-api-client/0.2.0/3cb68a83fea175156917a8a8f0ccd37cff2c1f79", + "integrity": "sha512-73/w7Xbb46rf2dBNlvqtEfmPwiVjYCzlIaf36kdhY07MGF6UE/xCKrg5RckLSpBqAGXCNOU/pkjqzdCuu/tEcw==", + "dependencies": { + "@drupal-api-client/api-client": "^1.3.0", + "@drupal-api-client/json-api-client": "^1.3.0", + "defu": "^6.1.4", + "domhandler": "^5.0.3", + "drupal-jsonapi-params": "^3.0.0", + "htmlparser2": "^10.0.0", + "jsona": "^1.12.1", + "mime-types": "^3.0.1", + "zod": "^4.1.13" + } + }, + "node_modules/@dpc-sdp/tide-content-collection-ui": { + "version": "0.1.0-alpha.13", + "resolved": "https://npm.pkg.github.com/download/@dpc-sdp/tide-content-collection-ui/0.1.0-alpha.13/a2526d8c4f4083b55eec6d5077904c354aa9700f", + "integrity": "sha512-gMtKra5whYWsApTkSOw3pFhWDvzfvs98IHiswGD9rSIeRtY1CmulFmzEvFMG0+4PKmE/b1qDmSs5L3jumTxRtw==", + "dependencies": { + "@dpc-sdp/tide-api-client": "0.2.0", + "@vueuse/integrations": "^14.1.0", + "sortablejs": "^1.15.6", + "vue": "^3.5.26" + }, + "engines": { + "node": "^20.16.0", + "npm": "^10.8.1" + } + }, + "node_modules/@drupal-api-client/api-client": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@drupal-api-client/api-client/-/api-client-1.3.0.tgz", + "integrity": "sha512-856pjvic1I9rDgXxPGnylzTa6cDtsmmBuEb5y4zJ2rGOxC9vPfHFFkymd4RUet55JjL04EQsb3SfEBAyDMUH4w==", + "license": "MIT", + "dependencies": { + "nanostores": "^0.10.2", + "uint8array-extras": "^0.5.0" + } + }, + "node_modules/@drupal-api-client/decoupled-router-client": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@drupal-api-client/decoupled-router-client/-/decoupled-router-client-1.1.1.tgz", + "integrity": "sha512-IyNAj/uXFebH9T4hFLih6PG0CUMgSJiAUl7fUrsWVWf4ap1KN/F2dtxyh41TTHwqeMAAcPMjRjJaYcyWQ+PXkg==", + "license": "MIT", + "dependencies": { + "@drupal-api-client/api-client": "1.3.0" + } + }, + "node_modules/@drupal-api-client/json-api-client": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@drupal-api-client/json-api-client/-/json-api-client-1.3.0.tgz", + "integrity": "sha512-BjIw0r2NZeVEGcHTPVhWPjIJVzYFBP9Ngm3Wr6i5wP8IXIQmsXDxF8XSjsUCrKdDwuIr3MTi6KqHnH9QD5i9PA==", + "license": "MIT", + "dependencies": { + "@aws-crypto/sha256-js": "^5.1.0", + "@drupal-api-client/api-client": "^1.3.0", + "@drupal-api-client/decoupled-router-client": "1.1.1", + "@drupal-api-client/utils": "0.3.0", + "@smithy/util-hex-encoding": "^2.0.0" + } + }, + "node_modules/@drupal-api-client/utils": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@drupal-api-client/utils/-/utils-0.3.0.tgz", + "integrity": "sha512-6YksA4+fVLrurN0pu1DqkN+mm6pOixhFtBAvuXQTBGbRqtLrmE+TnQpAhWMkLa0xSVq2gcLmqivZtTtewpbqVw==", + "license": "MIT", + "dependencies": { + "nanostores": "^0.10.2" + } + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.2.tgz", + "integrity": "sha512-GZMB+a0mOMZs4MpDbj8RJp4cw+w1WV5NYD6xzgvzUJ5Ek2jerwfO2eADyI6ExDSUED+1X8aMbegahsJi+8mgpw==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.27.2.tgz", + "integrity": "sha512-DVNI8jlPa7Ujbr1yjU2PfUSRtAUZPG9I1RwW4F4xFB1Imiu2on0ADiI/c3td+KmDtVKNbi+nffGDQMfcIMkwIA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.27.2.tgz", + "integrity": "sha512-pvz8ZZ7ot/RBphf8fv60ljmaoydPU12VuXHImtAs0XhLLw+EXBi2BLe3OYSBslR4rryHvweW5gmkKFwTiFy6KA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.27.2.tgz", + "integrity": "sha512-z8Ank4Byh4TJJOh4wpz8g2vDy75zFL0TlZlkUkEwYXuPSgX8yzep596n6mT7905kA9uHZsf/o2OJZubl2l3M7A==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.27.2.tgz", + "integrity": "sha512-davCD2Zc80nzDVRwXTcQP/28fiJbcOwvdolL0sOiOsbwBa72kegmVU0Wrh1MYrbuCL98Omp5dVhQFWRKR2ZAlg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.27.2.tgz", + "integrity": "sha512-ZxtijOmlQCBWGwbVmwOF/UCzuGIbUkqB1faQRf5akQmxRJ1ujusWsb3CVfk/9iZKr2L5SMU5wPBi1UWbvL+VQA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.27.2.tgz", + "integrity": "sha512-lS/9CN+rgqQ9czogxlMcBMGd+l8Q3Nj1MFQwBZJyoEKI50XGxwuzznYdwcav6lpOGv5BqaZXqvBSiB/kJ5op+g==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.27.2.tgz", + "integrity": "sha512-tAfqtNYb4YgPnJlEFu4c212HYjQWSO/w/h/lQaBK7RbwGIkBOuNKQI9tqWzx7Wtp7bTPaGC6MJvWI608P3wXYA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.27.2.tgz", + "integrity": "sha512-vWfq4GaIMP9AIe4yj1ZUW18RDhx6EPQKjwe7n8BbIecFtCQG4CfHGaHuh7fdfq+y3LIA2vGS/o9ZBGVxIDi9hw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.27.2.tgz", + "integrity": "sha512-hYxN8pr66NsCCiRFkHUAsxylNOcAQaxSSkHMMjcpx0si13t1LHFphxJZUiGwojB1a/Hd5OiPIqDdXONia6bhTw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.27.2.tgz", + "integrity": "sha512-MJt5BRRSScPDwG2hLelYhAAKh9imjHK5+NE/tvnRLbIqUWa+0E9N4WNMjmp/kXXPHZGqPLxggwVhz7QP8CTR8w==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.27.2.tgz", + "integrity": "sha512-lugyF1atnAT463aO6KPshVCJK5NgRnU4yb3FUumyVz+cGvZbontBgzeGFO1nF+dPueHD367a2ZXe1NtUkAjOtg==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.27.2.tgz", + "integrity": "sha512-nlP2I6ArEBewvJ2gjrrkESEZkB5mIoaTswuqNFRv/WYd+ATtUpe9Y09RnJvgvdag7he0OWgEZWhviS1OTOKixw==", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.27.2.tgz", + "integrity": "sha512-C92gnpey7tUQONqg1n6dKVbx3vphKtTHJaNG2Ok9lGwbZil6DrfyecMsp9CrmXGQJmZ7iiVXvvZH6Ml5hL6XdQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.27.2.tgz", + "integrity": "sha512-B5BOmojNtUyN8AXlK0QJyvjEZkWwy/FKvakkTDCziX95AowLZKR6aCDhG7LeF7uMCXEJqwa8Bejz5LTPYm8AvA==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.27.2.tgz", + "integrity": "sha512-p4bm9+wsPwup5Z8f4EpfN63qNagQ47Ua2znaqGH6bqLlmJ4bx97Y9JdqxgGZ6Y8xVTixUnEkoKSHcpRlDnNr5w==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.27.2.tgz", + "integrity": "sha512-uwp2Tip5aPmH+NRUwTcfLb+W32WXjpFejTIOWZFw/v7/KnpCDKG66u4DLcurQpiYTiYwQ9B7KOeMJvLCu/OvbA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-arm64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.27.2.tgz", + "integrity": "sha512-Kj6DiBlwXrPsCRDeRvGAUb/LNrBASrfqAIok+xB0LxK8CHqxZ037viF13ugfsIpePH93mX7xfJp97cyDuTZ3cw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.27.2.tgz", + "integrity": "sha512-HwGDZ0VLVBY3Y+Nw0JexZy9o/nUAWq9MlV7cahpaXKW6TOzfVno3y3/M8Ga8u8Yr7GldLOov27xiCnqRZf0tCA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-arm64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.27.2.tgz", + "integrity": "sha512-DNIHH2BPQ5551A7oSHD0CKbwIA/Ox7+78/AWkbS5QoRzaqlev2uFayfSxq68EkonB+IKjiuxBFoV8ESJy8bOHA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.27.2.tgz", + "integrity": "sha512-/it7w9Nb7+0KFIzjalNJVR5bOzA9Vay+yIPLVHfIQYG/j+j9VTH84aNB8ExGKPU4AzfaEvN9/V4HV+F+vo8OEg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openharmony-arm64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.27.2.tgz", + "integrity": "sha512-LRBbCmiU51IXfeXk59csuX/aSaToeG7w48nMwA6049Y4J4+VbWALAuXcs+qcD04rHDuSCSRKdmY63sruDS5qag==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.27.2.tgz", + "integrity": "sha512-kMtx1yqJHTmqaqHPAzKCAkDaKsffmXkPHThSfRwZGyuqyIeBvf08KSsYXl+abf5HDAPMJIPnbBfXvP2ZC2TfHg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.27.2.tgz", + "integrity": "sha512-Yaf78O/B3Kkh+nKABUF++bvJv5Ijoy9AN1ww904rOXZFLWVc5OLOfL56W+C8F9xn5JQZa3UX6m+IktJnIb1Jjg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.27.2.tgz", + "integrity": "sha512-Iuws0kxo4yusk7sw70Xa2E2imZU5HoixzxfGCdxwBdhiDgt9vX9VUCBhqcwY7/uh//78A1hMkkROMJq9l27oLQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.27.2.tgz", + "integrity": "sha512-sRdU18mcKf7F+YgheI/zGf5alZatMUTKj/jNS6l744f9u3WFu4v7twcUI9vu4mknF4Y9aDlblIie0IM+5xxaqQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", + "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", + "license": "MIT" + }, + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.44.1", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@smithy/is-array-buffer": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-2.2.0.tgz", + "integrity": "sha512-GGP3O9QFD24uGeAXYUjwSTXARoqpZykHadOmA8G5vfJPK0/DC67qa//0qvqrJzL1xc8WQWX7/yc7fwudjPHPhA==", + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/types": { + "version": "4.11.0", + "resolved": "https://registry.npmjs.org/@smithy/types/-/types-4.11.0.tgz", + "integrity": "sha512-mlrmL0DRDVe3mNrjTcVcZEgkFmufITfUAPBEA+AHYiIeYyJebso/He1qLbP3PssRe22KUzLRpQSdBPbXdgZ2VA==", + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@smithy/util-buffer-from": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-2.2.0.tgz", + "integrity": "sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA==", + "license": "Apache-2.0", + "dependencies": { + "@smithy/is-array-buffer": "^2.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/util-hex-encoding": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@smithy/util-hex-encoding/-/util-hex-encoding-2.2.0.tgz", + "integrity": "sha512-7iKXR+/4TpLK194pVjKiasIyqMtTYJsgKgM242Y9uzt5dhHnUDvMNb+3xIhRJ9QhvqGii/5cRUt4fJn3dtXNHQ==", + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/util-utf8": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-2.3.0.tgz", + "integrity": "sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A==", + "license": "Apache-2.0", + "dependencies": { + "@smithy/util-buffer-from": "^2.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@types/estree": { + "version": "1.0.8", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/web-bluetooth": { + "version": "0.0.21", + "resolved": "https://registry.npmjs.org/@types/web-bluetooth/-/web-bluetooth-0.0.21.tgz", + "integrity": "sha512-oIQLCGWtcFZy2JW77j9k8nHzAOpqMHLQejDA48XXMWH6tjCQHz5RCFz1bzsmROyL6PUm+LLnUiI4BCn221inxA==", + "license": "MIT" + }, + "node_modules/@vue/compiler-core": { + "version": "3.5.26", + "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.5.26.tgz", + "integrity": "sha512-vXyI5GMfuoBCnv5ucIT7jhHKl55Y477yxP6fc4eUswjP8FG3FFVFd41eNDArR+Uk3QKn2Z85NavjaxLxOC19/w==", + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.28.5", + "@vue/shared": "3.5.26", + "entities": "^7.0.0", + "estree-walker": "^2.0.2", + "source-map-js": "^1.2.1" + } + }, + "node_modules/@vue/compiler-core/node_modules/entities": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-7.0.0.tgz", + "integrity": "sha512-FDWG5cmEYf2Z00IkYRhbFrwIwvdFKH07uV8dvNy0omp/Qb1xcyCWp2UDtcwJF4QZZvk0sLudP6/hAu42TaqVhQ==", + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/@vue/compiler-dom": { + "version": "3.5.26", + "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.5.26.tgz", + "integrity": "sha512-y1Tcd3eXs834QjswshSilCBnKGeQjQXB6PqFn/1nxcQw4pmG42G8lwz+FZPAZAby6gZeHSt/8LMPfZ4Rb+Bd/A==", + "license": "MIT", + "dependencies": { + "@vue/compiler-core": "3.5.26", + "@vue/shared": "3.5.26" + } + }, + "node_modules/@vue/compiler-sfc": { + "version": "3.5.26", + "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.5.26.tgz", + "integrity": "sha512-egp69qDTSEZcf4bGOSsprUr4xI73wfrY5oRs6GSgXFTiHrWj4Y3X5Ydtip9QMqiCMCPVwLglB9GBxXtTadJ3mA==", + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.28.5", + "@vue/compiler-core": "3.5.26", + "@vue/compiler-dom": "3.5.26", + "@vue/compiler-ssr": "3.5.26", + "@vue/shared": "3.5.26", + "estree-walker": "^2.0.2", + "magic-string": "^0.30.21", + "postcss": "^8.5.6", + "source-map-js": "^1.2.1" + } + }, + "node_modules/@vue/compiler-ssr": { + "version": "3.5.26", + "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.5.26.tgz", + "integrity": "sha512-lZT9/Y0nSIRUPVvapFJEVDbEXruZh2IYHMk2zTtEgJSlP5gVOqeWXH54xDKAaFS4rTnDeDBQUYDtxKyoW9FwDw==", + "license": "MIT", + "dependencies": { + "@vue/compiler-dom": "3.5.26", + "@vue/shared": "3.5.26" + } + }, + "node_modules/@vue/reactivity": { + "version": "3.5.26", + "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.5.26.tgz", + "integrity": "sha512-9EnYB1/DIiUYYnzlnUBgwU32NNvLp/nhxLXeWRhHUEeWNTn1ECxX8aGO7RTXeX6PPcxe3LLuNBFoJbV4QZ+CFQ==", + "license": "MIT", + "dependencies": { + "@vue/shared": "3.5.26" + } + }, + "node_modules/@vue/runtime-core": { + "version": "3.5.26", + "resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.5.26.tgz", + "integrity": "sha512-xJWM9KH1kd201w5DvMDOwDHYhrdPTrAatn56oB/LRG4plEQeZRQLw0Bpwih9KYoqmzaxF0OKSn6swzYi84e1/Q==", + "license": "MIT", + "dependencies": { + "@vue/reactivity": "3.5.26", + "@vue/shared": "3.5.26" + } + }, + "node_modules/@vue/runtime-dom": { + "version": "3.5.26", + "resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.5.26.tgz", + "integrity": "sha512-XLLd/+4sPC2ZkN/6+V4O4gjJu6kSDbHAChvsyWgm1oGbdSO3efvGYnm25yCjtFm/K7rrSDvSfPDgN1pHgS4VNQ==", + "license": "MIT", + "dependencies": { + "@vue/reactivity": "3.5.26", + "@vue/runtime-core": "3.5.26", + "@vue/shared": "3.5.26", + "csstype": "^3.2.3" + } + }, + "node_modules/@vue/server-renderer": { + "version": "3.5.26", + "resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.5.26.tgz", + "integrity": "sha512-TYKLXmrwWKSodyVuO1WAubucd+1XlLg4set0YoV+Hu8Lo79mp/YMwWV5mC5FgtsDxX3qo1ONrxFaTP1OQgy1uA==", + "license": "MIT", + "dependencies": { + "@vue/compiler-ssr": "3.5.26", + "@vue/shared": "3.5.26" + }, + "peerDependencies": { + "vue": "3.5.26" + } + }, + "node_modules/@vue/shared": { + "version": "3.5.26", + "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.5.26.tgz", + "integrity": "sha512-7Z6/y3uFI5PRoKeorTOSXKcDj0MSasfNNltcslbFrPpcw6aXRUALq4IfJlaTRspiWIUOEZbrpM+iQGmCOiWe4A==", + "license": "MIT" + }, + "node_modules/@vueuse/core": { + "version": "14.1.0", + "resolved": "https://registry.npmjs.org/@vueuse/core/-/core-14.1.0.tgz", + "integrity": "sha512-rgBinKs07hAYyPF834mDTigH7BtPqvZ3Pryuzt1SD/lg5wEcWqvwzXXYGEDb2/cP0Sj5zSvHl3WkmMELr5kfWw==", + "license": "MIT", + "dependencies": { + "@types/web-bluetooth": "^0.0.21", + "@vueuse/metadata": "14.1.0", + "@vueuse/shared": "14.1.0" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + }, + "peerDependencies": { + "vue": "^3.5.0" + } + }, + "node_modules/@vueuse/integrations": { + "version": "14.1.0", + "resolved": "https://registry.npmjs.org/@vueuse/integrations/-/integrations-14.1.0.tgz", + "integrity": "sha512-eNQPdisnO9SvdydTIXnTE7c29yOsJBD/xkwEyQLdhDC/LKbqrFpXHb3uS//7NcIrQO3fWVuvMGp8dbK6mNEMCA==", + "license": "MIT", + "dependencies": { + "@vueuse/core": "14.1.0", + "@vueuse/shared": "14.1.0" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + }, + "peerDependencies": { + "async-validator": "^4", + "axios": "^1", + "change-case": "^5", + "drauu": "^0.4", + "focus-trap": "^7", + "fuse.js": "^7", + "idb-keyval": "^6", + "jwt-decode": "^4", + "nprogress": "^0.2", + "qrcode": "^1.5", + "sortablejs": "^1", + "universal-cookie": "^7 || ^8", + "vue": "^3.5.0" + }, + "peerDependenciesMeta": { + "async-validator": { + "optional": true + }, + "axios": { + "optional": true + }, + "change-case": { + "optional": true + }, + "drauu": { + "optional": true + }, + "focus-trap": { + "optional": true + }, + "fuse.js": { + "optional": true + }, + "idb-keyval": { + "optional": true + }, + "jwt-decode": { + "optional": true + }, + "nprogress": { + "optional": true + }, + "qrcode": { + "optional": true + }, + "sortablejs": { + "optional": true + }, + "universal-cookie": { + "optional": true + } + } + }, + "node_modules/@vueuse/metadata": { + "version": "14.1.0", + "resolved": "https://registry.npmjs.org/@vueuse/metadata/-/metadata-14.1.0.tgz", + "integrity": "sha512-7hK4g015rWn2PhKcZ99NyT+ZD9sbwm7SGvp7k+k+rKGWnLjS/oQozoIZzWfCewSUeBmnJkIb+CNr7Zc/EyRnnA==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/@vueuse/shared": { + "version": "14.1.0", + "resolved": "https://registry.npmjs.org/@vueuse/shared/-/shared-14.1.0.tgz", + "integrity": "sha512-EcKxtYvn6gx1F8z9J5/rsg3+lTQnvOruQd8fUecW99DCK04BkWD7z5KQ/wTAx+DazyoEE9dJt/zV8OIEQbM6kw==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/antfu" + }, + "peerDependencies": { + "vue": "^3.5.0" + } + }, + "node_modules/call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/call-bound": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", + "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "get-intrinsic": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/csstype": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", + "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", + "license": "MIT" + }, + "node_modules/defu": { + "version": "6.1.4", + "resolved": "https://registry.npmjs.org/defu/-/defu-6.1.4.tgz", + "integrity": "sha512-mEQCMmwJu317oSz8CwdIOdwf3xMif1ttiM8LTufzc3g6kR+9Pe236twL8j3IYT1F7GfRgGcW6MWxzZjLIkuHIg==", + "license": "MIT" + }, + "node_modules/dom-serializer": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz", + "integrity": "sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==", + "license": "MIT", + "dependencies": { + "domelementtype": "^2.3.0", + "domhandler": "^5.0.2", + "entities": "^4.2.0" + }, + "funding": { + "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1" + } + }, + "node_modules/dom-serializer/node_modules/entities": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", + "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/domelementtype": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz", + "integrity": "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fb55" + } + ], + "license": "BSD-2-Clause" + }, + "node_modules/domhandler": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-5.0.3.tgz", + "integrity": "sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==", + "license": "BSD-2-Clause", + "dependencies": { + "domelementtype": "^2.3.0" + }, + "engines": { + "node": ">= 4" + }, + "funding": { + "url": "https://github.com/fb55/domhandler?sponsor=1" + } + }, + "node_modules/domutils": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-3.2.2.tgz", + "integrity": "sha512-6kZKyUajlDuqlHKVX1w7gyslj9MPIXzIFiz/rGu35uC1wMi+kMhQwGhl4lt9unC9Vb9INnY9Z3/ZA3+FhASLaw==", + "license": "BSD-2-Clause", + "dependencies": { + "dom-serializer": "^2.0.0", + "domelementtype": "^2.3.0", + "domhandler": "^5.0.3" + }, + "funding": { + "url": "https://github.com/fb55/domutils?sponsor=1" + } + }, + "node_modules/drupal-jsonapi-params": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/drupal-jsonapi-params/-/drupal-jsonapi-params-3.0.0.tgz", + "integrity": "sha512-/Sc7ZxcpmC4dCNuJpn6fUdT+79toc2GIoTJ4eevBJA1m1TSRnuVk+i4UDWNunqcR0CC94HrA9DyqUigix4fdkQ==", + "license": "ISC", + "dependencies": { + "qs": "^6.14.0" + } + }, + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/entities": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/entities/-/entities-6.0.1.tgz", + "integrity": "sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g==", + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-object-atoms": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", + "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/esbuild": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.27.2.tgz", + "integrity": "sha512-HyNQImnsOC7X9PMNaCIeAm4ISCQXs5a5YasTXVliKv4uuBo1dKrG0A+uQS8M5eXjVMnLg3WgXaKvprHlFJQffw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.27.2", + "@esbuild/android-arm": "0.27.2", + "@esbuild/android-arm64": "0.27.2", + "@esbuild/android-x64": "0.27.2", + "@esbuild/darwin-arm64": "0.27.2", + "@esbuild/darwin-x64": "0.27.2", + "@esbuild/freebsd-arm64": "0.27.2", + "@esbuild/freebsd-x64": "0.27.2", + "@esbuild/linux-arm": "0.27.2", + "@esbuild/linux-arm64": "0.27.2", + "@esbuild/linux-ia32": "0.27.2", + "@esbuild/linux-loong64": "0.27.2", + "@esbuild/linux-mips64el": "0.27.2", + "@esbuild/linux-ppc64": "0.27.2", + "@esbuild/linux-riscv64": "0.27.2", + "@esbuild/linux-s390x": "0.27.2", + "@esbuild/linux-x64": "0.27.2", + "@esbuild/netbsd-arm64": "0.27.2", + "@esbuild/netbsd-x64": "0.27.2", + "@esbuild/openbsd-arm64": "0.27.2", + "@esbuild/openbsd-x64": "0.27.2", + "@esbuild/openharmony-arm64": "0.27.2", + "@esbuild/sunos-x64": "0.27.2", + "@esbuild/win32-arm64": "0.27.2", + "@esbuild/win32-ia32": "0.27.2", + "@esbuild/win32-x64": "0.27.2" + } + }, + "node_modules/estree-walker": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", + "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", + "license": "MIT" + }, + "node_modules/fdir": { + "version": "6.5.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/fsevents": { + "version": "2.3.3", + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-intrinsic": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "function-bind": "^1.1.2", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/gopd": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/htmlparser2": { + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-10.0.0.tgz", + "integrity": "sha512-TwAZM+zE5Tq3lrEHvOlvwgj1XLWQCtaaibSN11Q+gGBAS7Y1uZSWwXXRe4iF6OXnaq1riyQAPFOBtYc77Mxq0g==", + "funding": [ + "https://github.com/fb55/htmlparser2?sponsor=1", + { + "type": "github", + "url": "https://github.com/sponsors/fb55" + } + ], + "license": "MIT", + "dependencies": { + "domelementtype": "^2.3.0", + "domhandler": "^5.0.3", + "domutils": "^3.2.1", + "entities": "^6.0.0" + } + }, + "node_modules/jsona": { + "version": "1.12.1", + "resolved": "https://registry.npmjs.org/jsona/-/jsona-1.12.1.tgz", + "integrity": "sha512-44WL4ZdsKx//mCDPUFQtbK7mnVdHXcVzbBy7Pzy0LAgXyfpN5+q8Hum7cLUX4wTnRsClHb4eId1hePZYchwczg==", + "license": "MIT", + "dependencies": { + "tslib": "^2.4.1" + } + }, + "node_modules/magic-string": { + "version": "0.30.21", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz", + "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==", + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.5" + } + }, + "node_modules/math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/mime-db": { + "version": "1.54.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz", + "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.2.tgz", + "integrity": "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==", + "license": "MIT", + "dependencies": { + "mime-db": "^1.54.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/nanoid": { + "version": "3.3.11", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/nanostores": { + "version": "0.10.3", + "resolved": "https://registry.npmjs.org/nanostores/-/nanostores-0.10.3.tgz", + "integrity": "sha512-Nii8O1XqmawqSCf9o2aWqVxhKRN01+iue9/VEd1TiJCr9VT5XxgPFbF1Edl1XN6pwJcZRsl8Ki+z01yb/T/C2g==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "engines": { + "node": "^18.0.0 || >=20.0.0" + } + }, + "node_modules/object-inspect": { + "version": "1.13.4", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", + "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/picocolors": { + "version": "1.1.1", + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "4.0.3", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/postcss": { + "version": "8.5.6", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.11", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/qs": { + "version": "6.14.1", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.1.tgz", + "integrity": "sha512-4EK3+xJl8Ts67nLYNwqw/dsFVnCf+qR7RgXSK9jEEm9unao3njwMDdmsdvoKBKHzxd7tCYz5e5M+SnMjdtXGQQ==", + "license": "BSD-3-Clause", + "dependencies": { + "side-channel": "^1.1.0" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/rollup": { + "version": "4.44.1", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "1.0.8" + }, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=18.0.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "@rollup/rollup-android-arm-eabi": "4.44.1", + "@rollup/rollup-android-arm64": "4.44.1", + "@rollup/rollup-darwin-arm64": "4.44.1", + "@rollup/rollup-darwin-x64": "4.44.1", + "@rollup/rollup-freebsd-arm64": "4.44.1", + "@rollup/rollup-freebsd-x64": "4.44.1", + "@rollup/rollup-linux-arm-gnueabihf": "4.44.1", + "@rollup/rollup-linux-arm-musleabihf": "4.44.1", + "@rollup/rollup-linux-arm64-gnu": "4.44.1", + "@rollup/rollup-linux-arm64-musl": "4.44.1", + "@rollup/rollup-linux-loongarch64-gnu": "4.44.1", + "@rollup/rollup-linux-powerpc64le-gnu": "4.44.1", + "@rollup/rollup-linux-riscv64-gnu": "4.44.1", + "@rollup/rollup-linux-riscv64-musl": "4.44.1", + "@rollup/rollup-linux-s390x-gnu": "4.44.1", + "@rollup/rollup-linux-x64-gnu": "4.44.1", + "@rollup/rollup-linux-x64-musl": "4.44.1", + "@rollup/rollup-win32-arm64-msvc": "4.44.1", + "@rollup/rollup-win32-ia32-msvc": "4.44.1", + "@rollup/rollup-win32-x64-msvc": "4.44.1", + "fsevents": "~2.3.2" + } + }, + "node_modules/side-channel": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", + "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3", + "side-channel-list": "^1.0.0", + "side-channel-map": "^1.0.1", + "side-channel-weakmap": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-list": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", + "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-map": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", + "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-weakmap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", + "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3", + "side-channel-map": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/sortablejs": { + "version": "1.15.6", + "resolved": "https://registry.npmjs.org/sortablejs/-/sortablejs-1.15.6.tgz", + "integrity": "sha512-aNfiuwMEpfBM/CN6LY0ibyhxPfPbyFeBTYJKCvzkJ2GkUpazIt3H+QIPAMHwqQ7tMKaHz1Qj+rJJCqljnf4p3A==", + "license": "MIT" + }, + "node_modules/source-map-js": { + "version": "1.2.1", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/tinyglobby": { + "version": "0.2.15", + "dev": true, + "license": "MIT", + "dependencies": { + "fdir": "^6.5.0", + "picomatch": "^4.0.3" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, + "node_modules/tslib": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", + "license": "0BSD" + }, + "node_modules/uint8array-extras": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/uint8array-extras/-/uint8array-extras-0.5.1.tgz", + "integrity": "sha512-dlgj8+9+Rak3JzT1Rg77nIccp0a5kBKjQ7tworiwKxkXIhqgdd+oZLkK8rcDb+Fq5tq+oUVjPbq4V/dMD6cnlA==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/vite": { + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/vite/-/vite-7.3.1.tgz", + "integrity": "sha512-w+N7Hifpc3gRjZ63vYBXA56dvvRlNWRczTdmCBBa+CotUzAPf5b7YMdMR/8CQoeYE5LX3W4wj6RYTgonm1b9DA==", + "dev": true, + "license": "MIT", + "dependencies": { + "esbuild": "^0.27.0", + "fdir": "^6.5.0", + "picomatch": "^4.0.3", + "postcss": "^8.5.6", + "rollup": "^4.43.0", + "tinyglobby": "^0.2.15" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^20.19.0 || >=22.12.0", + "jiti": ">=1.21.0", + "less": "^4.0.0", + "lightningcss": "^1.21.0", + "sass": "^1.70.0", + "sass-embedded": "^1.70.0", + "stylus": ">=0.54.8", + "sugarss": "^5.0.0", + "terser": "^5.16.0", + "tsx": "^4.8.1", + "yaml": "^2.4.2" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "jiti": { + "optional": true + }, + "less": { + "optional": true + }, + "lightningcss": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + }, + "tsx": { + "optional": true + }, + "yaml": { + "optional": true + } + } + }, + "node_modules/vue": { + "version": "3.5.26", + "resolved": "https://registry.npmjs.org/vue/-/vue-3.5.26.tgz", + "integrity": "sha512-SJ/NTccVyAoNUJmkM9KUqPcYlY+u8OVL1X5EW9RIs3ch5H2uERxyyIUI4MRxVCSOiEcupX9xNGde1tL9ZKpimA==", + "license": "MIT", + "dependencies": { + "@vue/compiler-dom": "3.5.26", + "@vue/compiler-sfc": "3.5.26", + "@vue/runtime-dom": "3.5.26", + "@vue/server-renderer": "3.5.26", + "@vue/shared": "3.5.26" + }, + "peerDependencies": { + "typescript": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/zod": { + "version": "4.3.5", + "resolved": "https://registry.npmjs.org/zod/-/zod-4.3.5.tgz", + "integrity": "sha512-k7Nwx6vuWx1IJ9Bjuf4Zt1PEllcwe7cls3VNzm4CQ1/hgtFUK2bRNG3rvnpPUhFjmqJKAKtjV576KnUkHocg/g==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/colinhacks" + } + } + } +} diff --git a/modules/tide_api/modules/tide_content_collection_ui/app/package.json b/modules/tide_api/modules/tide_content_collection_ui/app/package.json new file mode 100644 index 000000000..e402cfdaf --- /dev/null +++ b/modules/tide_api/modules/tide_content_collection_ui/app/package.json @@ -0,0 +1,12 @@ +{ + "scripts": { + "dev": "vite", + "build": "vite build" + }, + "dependencies": { + "@dpc-sdp/tide-content-collection-ui": "0.1.0-alpha.13" + }, + "devDependencies": { + "vite": "^7.3.0" + } +} diff --git a/modules/tide_api/modules/tide_content_collection_ui/app/src/index.html b/modules/tide_api/modules/tide_content_collection_ui/app/src/index.html new file mode 100644 index 000000000..259f35a72 --- /dev/null +++ b/modules/tide_api/modules/tide_content_collection_ui/app/src/index.html @@ -0,0 +1,50 @@ + + + + Playground + + + + + + + + +
+

Playground

+

This HTML file mimics Drupal's loading behaviour

+ +
+
+ +
+
+ + + + + + diff --git a/modules/tide_api/modules/tide_content_collection_ui/app/src/index.js b/modules/tide_api/modules/tide_content_collection_ui/app/src/index.js new file mode 100644 index 000000000..294130f6c --- /dev/null +++ b/modules/tide_api/modules/tide_content_collection_ui/app/src/index.js @@ -0,0 +1,26 @@ +import { getJson, initApp, setJson } from '@dpc-sdp/tide-content-collection-ui' +import '@dpc-sdp/tide-content-collection-ui/styles' + +;(($) => { + Drupal.behaviors.contentCollection = { + attach: function (context) { + once('content-collection-init', '.content-collection-app', context).forEach(function (container) { + const wrap = container.closest('.field--type-tide-content-collection-ui') + const index = container.getAttribute('data-index') || '0' + const config = container.getAttribute('data-config') || '{}' + const field = wrap?.querySelector(`#content-collection-value-${index}`) + const exists = container?.querySelector(`.tide-form`) + + if (!exists && field) { + initApp(container, { + index, + form: getJson(field.value), + config: getJson(config), + update: (form) => (field.value = setJson(form)), + baseUrl: import.meta.env.VITE_API_URL || window.location.origin + }) + } + }) + } + } +})(jQuery) diff --git a/modules/tide_api/modules/tide_content_collection_ui/app/vite.config.js b/modules/tide_api/modules/tide_content_collection_ui/app/vite.config.js new file mode 100644 index 000000000..fcb9be5d4 --- /dev/null +++ b/modules/tide_api/modules/tide_content_collection_ui/app/vite.config.js @@ -0,0 +1,24 @@ +import { defineConfig } from 'vite'; +import { resolve } from 'path'; + +export default defineConfig({ + root: './src', + build: { + outDir: '../dist', + rollupOptions: { + input: { + 'main': resolve(__dirname, 'src/index.js'), + }, + output: { + format: 'iife', + entryFileNames: '[name].js', + globals: { + jquery: 'jQuery', + drupal: 'Drupal', + once: 'once', + }, + }, + external: ['jquery', 'drupal', 'once'], + }, + }, +}); diff --git a/modules/tide_api/modules/tide_content_collection_ui/config/install/core.entity_form_display.paragraph.content_collection_ui.default.yml b/modules/tide_api/modules/tide_content_collection_ui/config/install/core.entity_form_display.paragraph.content_collection_ui.default.yml new file mode 100644 index 000000000..2714c5949 --- /dev/null +++ b/modules/tide_api/modules/tide_content_collection_ui/config/install/core.entity_form_display.paragraph.content_collection_ui.default.yml @@ -0,0 +1,51 @@ +langcode: en +status: true +dependencies: + config: + - field.field.paragraph.content_collection_ui.field_content_collection_ui + - field.field.paragraph.content_collection_ui.field_paragraph_body + - field.field.paragraph.content_collection_ui.field_paragraph_link + - field.field.paragraph.content_collection_ui.field_paragraph_title + - paragraphs.paragraphs_type.content_collection_ui + module: + - link + - text + - tide_content_collection_ui +id: paragraph.content_collection_ui.default +targetEntityType: paragraph +bundle: content_collection_ui +mode: default +content: + field_content_collection_ui: + type: tide_content_collection_ui_default + weight: 3 + region: content + settings: { } + third_party_settings: { } + field_paragraph_body: + type: text_textarea + weight: 1 + region: content + settings: + rows: 5 + placeholder: '' + third_party_settings: { } + field_paragraph_link: + type: link_default + weight: 4 + region: content + settings: + placeholder_url: '' + placeholder_title: '' + third_party_settings: { } + field_paragraph_title: + type: string_textfield + weight: 0 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } +hidden: + created: true + status: true diff --git a/modules/tide_api/modules/tide_content_collection_ui/config/install/core.entity_form_display.taxonomy_term.searchable_content_types.default.yml b/modules/tide_api/modules/tide_content_collection_ui/config/install/core.entity_form_display.taxonomy_term.searchable_content_types.default.yml new file mode 100644 index 000000000..8999d43c7 --- /dev/null +++ b/modules/tide_api/modules/tide_content_collection_ui/config/install/core.entity_form_display.taxonomy_term.searchable_content_types.default.yml @@ -0,0 +1,57 @@ +langcode: en +status: true +dependencies: + config: + - field.field.taxonomy_term.searchable_content_types.field_machine_name + - taxonomy.vocabulary.searchable_content_types + module: + - path + - text +id: taxonomy_term.searchable_content_types.default +targetEntityType: taxonomy_term +bundle: searchable_content_types +mode: default +content: + description: + type: text_textfield + weight: 0 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } + field_machine_name: + type: string_textfield + weight: 1 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } + name: + type: string_textfield + weight: -5 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } + path: + type: path + weight: 30 + region: content + settings: { } + third_party_settings: { } + simple_sitemap: + weight: 10 + region: content + settings: { } + third_party_settings: { } + status: + type: boolean_checkbox + weight: 100 + region: content + settings: + display_label: true + third_party_settings: { } +hidden: { } diff --git a/modules/tide_api/modules/tide_content_collection_ui/config/install/core.entity_view_display.paragraph.content_collection_ui.default.yml b/modules/tide_api/modules/tide_content_collection_ui/config/install/core.entity_view_display.paragraph.content_collection_ui.default.yml new file mode 100644 index 000000000..3c1396364 --- /dev/null +++ b/modules/tide_api/modules/tide_content_collection_ui/config/install/core.entity_view_display.paragraph.content_collection_ui.default.yml @@ -0,0 +1,54 @@ +langcode: en +status: true +dependencies: + config: + - field.field.paragraph.content_collection_ui.field_content_collection_ui + - field.field.paragraph.content_collection_ui.field_paragraph_body + - field.field.paragraph.content_collection_ui.field_paragraph_link + - field.field.paragraph.content_collection_ui.field_paragraph_title + - paragraphs.paragraphs_type.content_collection_ui + module: + - link + - text + - tide_content_collection_ui +id: paragraph.content_collection_ui.default +targetEntityType: paragraph +bundle: content_collection_ui +mode: default +content: + field_content_collection_ui: + type: tide_content_collection_ui_formatter + label: above + settings: { } + third_party_settings: { } + weight: 6 + region: content + field_paragraph_body: + type: text_default + label: above + settings: { } + third_party_settings: { } + weight: 2 + region: content + field_paragraph_link: + type: link + label: above + settings: + trim_length: 80 + url_only: false + url_plain: false + rel: '' + target: '' + third_party_settings: { } + weight: 5 + region: content + field_paragraph_title: + type: string + label: hidden + settings: + link_to_entity: false + third_party_settings: { } + weight: 0 + region: content +hidden: + search_api_excerpt: true diff --git a/modules/tide_api/modules/tide_content_collection_ui/config/install/core.entity_view_display.taxonomy_term.searchable_content_types.default.yml b/modules/tide_api/modules/tide_content_collection_ui/config/install/core.entity_view_display.taxonomy_term.searchable_content_types.default.yml new file mode 100644 index 000000000..2dcaa6fc5 --- /dev/null +++ b/modules/tide_api/modules/tide_content_collection_ui/config/install/core.entity_view_display.taxonomy_term.searchable_content_types.default.yml @@ -0,0 +1,30 @@ +langcode: en +status: true +dependencies: + config: + - field.field.taxonomy_term.searchable_content_types.field_machine_name + - taxonomy.vocabulary.searchable_content_types + module: + - text +id: taxonomy_term.searchable_content_types.default +targetEntityType: taxonomy_term +bundle: searchable_content_types +mode: default +content: + description: + type: text_default + label: hidden + settings: { } + third_party_settings: { } + weight: 0 + region: content + field_machine_name: + type: string + label: above + settings: + link_to_entity: false + third_party_settings: { } + weight: 1 + region: content +hidden: + search_api_excerpt: true diff --git a/modules/tide_api/modules/tide_content_collection_ui/config/install/field.field.paragraph.content_collection_ui.field_content_collection_ui.yml b/modules/tide_api/modules/tide_content_collection_ui/config/install/field.field.paragraph.content_collection_ui.field_content_collection_ui.yml new file mode 100644 index 000000000..eacc82299 --- /dev/null +++ b/modules/tide_api/modules/tide_content_collection_ui/config/install/field.field.paragraph.content_collection_ui.field_content_collection_ui.yml @@ -0,0 +1,22 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.paragraph.field_content_collection_ui + - paragraphs.paragraphs_type.content_collection_ui + module: + - tide_content_collection_ui +id: paragraph.content_collection_ui.field_content_collection_ui +field_name: field_content_collection_ui +entity_type: paragraph +bundle: content_collection_ui +label: 'Content collection' +description: '' +required: false +translatable: false +default_value: + - + value: '{}' +default_value_callback: '' +settings: { } +field_type: tide_content_collection_ui diff --git a/modules/tide_api/modules/tide_content_collection_ui/config/install/field.field.paragraph.content_collection_ui.field_paragraph_body.yml b/modules/tide_api/modules/tide_content_collection_ui/config/install/field.field.paragraph.content_collection_ui.field_paragraph_body.yml new file mode 100644 index 000000000..1fdbb1829 --- /dev/null +++ b/modules/tide_api/modules/tide_content_collection_ui/config/install/field.field.paragraph.content_collection_ui.field_paragraph_body.yml @@ -0,0 +1,25 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.paragraph.field_paragraph_body + - paragraphs.paragraphs_type.content_collection_ui + module: + - allowed_formats + - text +third_party_settings: + allowed_formats: + allowed_formats: { } +id: paragraph.content_collection_ui.field_paragraph_body +field_name: field_paragraph_body +entity_type: paragraph +bundle: content_collection_ui +label: Description +description: 'Description to display below title.' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + allowed_formats: { } +field_type: text_long diff --git a/modules/tide_api/modules/tide_content_collection_ui/config/install/field.field.paragraph.content_collection_ui.field_paragraph_link.yml b/modules/tide_api/modules/tide_content_collection_ui/config/install/field.field.paragraph.content_collection_ui.field_paragraph_link.yml new file mode 100644 index 000000000..8eb9c0945 --- /dev/null +++ b/modules/tide_api/modules/tide_content_collection_ui/config/install/field.field.paragraph.content_collection_ui.field_paragraph_link.yml @@ -0,0 +1,36 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.paragraph.field_paragraph_link + - paragraphs.paragraphs_type.content_collection_ui + module: + - link + - link_field_autocomplete_filter +third_party_settings: + link_field_autocomplete_filter: + negate: null + allowed_content_types: + alert: '0' + event: '0' + grant: '0' + landing_page: '0' + news: '0' + publication: '0' + publication_page: '0' + test: '0' + tide_search_listing: '0' +id: paragraph.content_collection_ui.field_paragraph_link +field_name: field_paragraph_link +entity_type: paragraph +bundle: content_collection_ui +label: Call To Action +description: 'A link to displayed below the content to help navigate uses to more related content.' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + title: 1 + link_type: 17 +field_type: link diff --git a/modules/tide_api/modules/tide_content_collection_ui/config/install/field.field.paragraph.content_collection_ui.field_paragraph_title.yml b/modules/tide_api/modules/tide_content_collection_ui/config/install/field.field.paragraph.content_collection_ui.field_paragraph_title.yml new file mode 100644 index 000000000..6711336c8 --- /dev/null +++ b/modules/tide_api/modules/tide_content_collection_ui/config/install/field.field.paragraph.content_collection_ui.field_paragraph_title.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.paragraph.field_paragraph_title + - paragraphs.paragraphs_type.content_collection_ui +id: paragraph.content_collection_ui.field_paragraph_title +field_name: field_paragraph_title +entity_type: paragraph +bundle: content_collection_ui +label: Title +description: 'A title to display above the content.' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/modules/tide_api/modules/tide_content_collection_ui/config/install/field.field.taxonomy_term.searchable_content_types.field_machine_name.yml b/modules/tide_api/modules/tide_content_collection_ui/config/install/field.field.taxonomy_term.searchable_content_types.field_machine_name.yml new file mode 100644 index 000000000..bce3f7906 --- /dev/null +++ b/modules/tide_api/modules/tide_content_collection_ui/config/install/field.field.taxonomy_term.searchable_content_types.field_machine_name.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.taxonomy_term.field_machine_name + - taxonomy.vocabulary.searchable_content_types +id: taxonomy_term.searchable_content_types.field_machine_name +field_name: field_machine_name +entity_type: taxonomy_term +bundle: searchable_content_types +label: 'Machine Name' +description: 'The machine name for the content type for example "Landing page" would be "landing_page"' +required: true +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/modules/tide_api/modules/tide_content_collection_ui/config/install/field.field.taxonomy_term.searchable_fields.field_elasticsearch_id.yml b/modules/tide_api/modules/tide_content_collection_ui/config/install/field.field.taxonomy_term.searchable_fields.field_elasticsearch_id.yml new file mode 100644 index 000000000..8df196cd8 --- /dev/null +++ b/modules/tide_api/modules/tide_content_collection_ui/config/install/field.field.taxonomy_term.searchable_fields.field_elasticsearch_id.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.taxonomy_term.field_elasticsearch_id + - taxonomy.vocabulary.searchable_fields +id: taxonomy_term.searchable_fields.field_elasticsearch_id +field_name: field_elasticsearch_id +entity_type: taxonomy_term +bundle: searchable_fields +label: 'Elasticsearch ID' +description: 'This is the elasticsearch key of the raw field value, i.e. the field that stores the underlying id.' +required: true +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/modules/tide_api/modules/tide_content_collection_ui/config/install/field.field.taxonomy_term.searchable_fields.field_searchable_content_types.yml b/modules/tide_api/modules/tide_content_collection_ui/config/install/field.field.taxonomy_term.searchable_fields.field_searchable_content_types.yml new file mode 100644 index 000000000..36edb1443 --- /dev/null +++ b/modules/tide_api/modules/tide_content_collection_ui/config/install/field.field.taxonomy_term.searchable_fields.field_searchable_content_types.yml @@ -0,0 +1,28 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.taxonomy_term.field_searchable_content_types + - taxonomy.vocabulary.searchable_content_types + - taxonomy.vocabulary.searchable_fields +id: taxonomy_term.searchable_fields.field_searchable_content_types +field_name: field_searchable_content_types +entity_type: taxonomy_term +bundle: searchable_fields +label: 'Searchable content types' +description: 'Add the content types this searchable taxonomy applies to, if nothing is added then this searchable field is available to all content types.' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + handler: 'default:taxonomy_term' + handler_settings: + target_bundles: + searchable_content_types: searchable_content_types + sort: + field: name + direction: asc + auto_create: false + auto_create_bundle: '' +field_type: entity_reference diff --git a/modules/tide_api/modules/tide_content_collection_ui/config/install/field.storage.paragraph.field_content_collection_ui.yml b/modules/tide_api/modules/tide_content_collection_ui/config/install/field.storage.paragraph.field_content_collection_ui.yml new file mode 100644 index 000000000..2c57cb518 --- /dev/null +++ b/modules/tide_api/modules/tide_content_collection_ui/config/install/field.storage.paragraph.field_content_collection_ui.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + module: + - paragraphs + - tide_content_collection_ui +id: paragraph.field_content_collection_ui +field_name: field_content_collection_ui +entity_type: paragraph +type: tide_content_collection_ui +settings: { } +module: tide_content_collection_ui +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/tide_api/modules/tide_content_collection_ui/config/install/field.storage.taxonomy_term.field_elasticsearch_id.yml b/modules/tide_api/modules/tide_content_collection_ui/config/install/field.storage.taxonomy_term.field_elasticsearch_id.yml new file mode 100644 index 000000000..b897f8389 --- /dev/null +++ b/modules/tide_api/modules/tide_content_collection_ui/config/install/field.storage.taxonomy_term.field_elasticsearch_id.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + module: + - taxonomy +id: taxonomy_term.field_elasticsearch_id +field_name: field_elasticsearch_id +entity_type: taxonomy_term +type: string +settings: + max_length: 255 + case_sensitive: false + is_ascii: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/tide_api/modules/tide_content_collection_ui/config/install/field.storage.taxonomy_term.field_searchable_content_types.yml b/modules/tide_api/modules/tide_content_collection_ui/config/install/field.storage.taxonomy_term.field_searchable_content_types.yml new file mode 100644 index 000000000..e25e61704 --- /dev/null +++ b/modules/tide_api/modules/tide_content_collection_ui/config/install/field.storage.taxonomy_term.field_searchable_content_types.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + module: + - taxonomy +id: taxonomy_term.field_searchable_content_types +field_name: field_searchable_content_types +entity_type: taxonomy_term +type: entity_reference +settings: + target_type: taxonomy_term +module: core +locked: false +cardinality: -1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/tide_api/modules/tide_content_collection_ui/config/install/jsonapi_extras.jsonapi_resource_config.paragraph--content_collection_ui.yml b/modules/tide_api/modules/tide_content_collection_ui/config/install/jsonapi_extras.jsonapi_resource_config.paragraph--content_collection_ui.yml new file mode 100644 index 000000000..77a857974 --- /dev/null +++ b/modules/tide_api/modules/tide_content_collection_ui/config/install/jsonapi_extras.jsonapi_resource_config.paragraph--content_collection_ui.yml @@ -0,0 +1,118 @@ +langcode: en +status: true +dependencies: + config: + - paragraphs.paragraphs_type.content_collection_ui +id: paragraph--content_collection_ui +disabled: false +path: paragraph/content_collection_ui +resourceType: paragraph--content_collection_ui +resourceFields: + id: + disabled: false + fieldName: id + publicName: id + enhancer: + id: '' + uuid: + disabled: false + fieldName: uuid + publicName: uuid + enhancer: + id: '' + revision_id: + disabled: false + fieldName: revision_id + publicName: revision_id + enhancer: + id: '' + langcode: + disabled: false + fieldName: langcode + publicName: langcode + enhancer: + id: '' + type: + disabled: false + fieldName: type + publicName: type + enhancer: + id: '' + status: + disabled: false + fieldName: status + publicName: status + enhancer: + id: '' + created: + disabled: false + fieldName: created + publicName: created + enhancer: + id: '' + parent_id: + disabled: false + fieldName: parent_id + publicName: parent_id + enhancer: + id: '' + parent_type: + disabled: false + fieldName: parent_type + publicName: parent_type + enhancer: + id: '' + parent_field_name: + disabled: false + fieldName: parent_field_name + publicName: parent_field_name + enhancer: + id: '' + behavior_settings: + disabled: false + fieldName: behavior_settings + publicName: behavior_settings + enhancer: + id: '' + default_langcode: + disabled: false + fieldName: default_langcode + publicName: default_langcode + enhancer: + id: '' + revision_default: + disabled: false + fieldName: revision_default + publicName: revision_default + enhancer: + id: '' + revision_translation_affected: + disabled: false + fieldName: revision_translation_affected + publicName: revision_translation_affected + enhancer: + id: '' + field_content_collection_ui: + disabled: false + fieldName: field_content_collection_ui + publicName: field_content_collection_ui + enhancer: + id: '' + field_paragraph_body: + disabled: false + fieldName: field_paragraph_body + publicName: field_paragraph_body + enhancer: + id: '' + field_paragraph_link: + disabled: false + fieldName: field_paragraph_link + publicName: field_paragraph_link + enhancer: + id: link_enhancer + field_paragraph_title: + disabled: false + fieldName: field_paragraph_title + publicName: field_paragraph_title + enhancer: + id: '' diff --git a/modules/tide_api/modules/tide_content_collection_ui/config/install/paragraphs.paragraphs_type.content_collection_ui.yml b/modules/tide_api/modules/tide_content_collection_ui/config/install/paragraphs.paragraphs_type.content_collection_ui.yml new file mode 100644 index 000000000..4cf26bead --- /dev/null +++ b/modules/tide_api/modules/tide_content_collection_ui/config/install/paragraphs.paragraphs_type.content_collection_ui.yml @@ -0,0 +1,11 @@ +langcode: en +status: true +dependencies: + content: + - 'file:file:bd168646-7145-4b4b-b6c8-8552d2d7b0b8' +id: content_collection_ui +label: 'Content Collection' +icon_uuid: bd168646-7145-4b4b-b6c8-8552d2d7b0b8 +icon_default: 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjgiIGhlaWdodD0iNzciIHZpZXdCb3g9IjAgMCA2OCA3NyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjY4IiBoZWlnaHQ9Ijc3IiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTQ4LjIzMiAxMUgxNi43NjhDMTUuMDI1NCAxMSAxMy41NzYgMTEgMTIuMzg3MSAxMS4wOTgyQzcuNzkxMzEgMTEuNDc0NSA0LjQ2NTc3IDE0LjkwNzYgNC4wOTc3MSAxOS40MjczQzQgMjAuNjIxOCA0IDIyLjA4NDcgNCAyMy44MjkxVjUyLjE3MDlDNCA1My45MjE4IDQgNTUuMzc4MiA0LjA5NzcxIDU2LjU3MjdDNC4xOTU0MyA1Ny44MTY0IDQuNDE2OTEgNTguOTgxNSA0Ljk3NzE0IDYwLjA4NDRDNS44MzU5NiA2MS43NzgyIDcuMjA2NDggNjMuMTU1MyA4Ljg5MjIzIDY0LjAxODJDOS45ODk4OSA2NC41ODExIDExLjE0OTQgNjQuODAzNiAxMi4zODcxIDY0LjkwMThDMTMuNTc2IDY1IDE1LjAyNTQgNjUgMTYuNzY0NyA2NUg0OC4yMzUzQzQ5Ljk3NDYgNjUgNTEuNDI3MyA2NSA1Mi42MTI5IDY0LjkwMThDNTMuODUwNiA2NC44MDM2IDU1LjAxMDEgNjQuNTgxMSA1Ni4xMDc4IDY0LjAxODJDNTYuNjYxOCA2My43MTAxIDU3LjA3NTEgNjMuMTk3OSA1Ny4yNjA2IDYyLjU4OTVDNTcuNDQ2MSA2MS45ODEyIDU3LjM4OTIgNjEuMzI0MiA1Ny4xMDE5IDYwLjc1NzJDNTYuODE0NyA2MC4xOTAyIDU2LjMxOTYgNTkuNzU3NCA1NS43MjA5IDU5LjU1QzU1LjEyMjMgNTkuMzQyNyA1NC40NjY5IDU5LjM3NyA1My44OTI5IDU5LjY0NThDNTMuNTk2NSA1OS43OTY0IDUzLjE1MDMgNTkuOTMzOCA1Mi4yMTIyIDYwLjAwOTFDNTEuMjUxNCA2MC4wODc2IDQ5Ljk5NzQgNjAuMDkwOSA0OC4xMzQzIDYwLjA5MDlIMTYuODY1N0MxNS4wMDI2IDYwLjA5MDkgMTMuNzQ4NiA2MC4wOTA5IDEyLjc4NDUgNjAuMDA5MUMxMS44NDk3IDU5LjkzMzggMTEuNDAzNSA1OS43OTY0IDExLjExMDMgNTkuNjQ1OEMxMC4zNDMgNTkuMjUzNCA5LjcxOTI0IDU4LjYyNjYgOS4zMjg2OSA1Ny44NTU2QzkuMTc4ODYgNTcuNTYxMSA5LjA0MjA2IDU3LjExMjcgOC45NjcxNCA1Ni4xNzAyQzguODg4OTcgNTUuMjA0NyA4Ljg4NTcxIDUzLjk0NDcgOC44ODU3MSA1Mi4wNzI3VjI1LjcyNzNINTYuMDY4N0M1Ni4wOTQ3IDI3LjA5MDkgNTYuMTA5OSAyOC40NTQ1IDU2LjExNDMgMjkuODE4MkM1Ni4xMTQzIDMwLjQ2OTIgNTYuMzcxNyAzMS4wOTM1IDU2LjgyOTggMzEuNTUzOEM1Ny4yODc5IDMyLjAxNDEgNTcuOTA5MyAzMi4yNzI3IDU4LjU1NzEgMzIuMjcyN0M1OS4yMDUgMzIuMjcyNyA1OS44MjY0IDMyLjAxNDEgNjAuMjg0NSAzMS41NTM4QzYwLjc0MjYgMzEuMDkzNSA2MSAzMC40NjkyIDYxIDI5LjgxODJDNjEgMjkuMjA3MyA2MC45OTY3IDI4LjU5ODUgNjAuOTkwMiAyNy45OTJDNjAuOTY3NCAyNS43OTkzIDYwLjkwMjMgMjIuMDc4MiA2MC42OTM4IDE5LjQyNEM2MC4zMjU4IDE0Ljc2MzYgNTcuMjAyMiAxMS40NzEzIDUyLjYxMjkgMTEuMDk4MkM1MS40MjQgMTEgNDkuOTc0NiAxMSA0OC4yMzIgMTFaTTU1Ljg5MjggMjAuODE4MkM1NS43MzY1IDE4LjIwOTggNTQuOTg3MyAxNi4yMTY3IDUyLjIxMjIgMTUuOTkwOUM1MS4yNTE0IDE1LjkxMjQgNDkuOTk3NCAxNS45MDkxIDQ4LjEzNDMgMTUuOTA5MUgxNi44NjU3QzE1LjAwMjYgMTUuOTA5MSAxMy43NDg2IDE1LjkwOTEgMTIuNzg0NSAxNS45OTA5QzEwLjEyMDIgMTYuMjEwMiA4Ljk5NjQ2IDE4LjIxNjQgOC45MTE3NyAyMC44MTgySDU1Ljg5MjhaIiBmaWxsPSIjQzRDNEM0Ii8+CjxwYXRoIGQ9Ik0xNi40IDI5QzE1Ljc2MzUgMjkgMTUuMTUzIDI5LjI2MzQgMTQuNzAyOSAyOS43MzIyQzE0LjI1MjkgMzAuMjAxMSAxNCAzMC44MzcgMTQgMzEuNUMxNCAzMi4xNjMgMTQuMjUyOSAzMi43OTg5IDE0LjcwMjkgMzMuMjY3OEMxNS4xNTMgMzMuNzM2NiAxNS43NjM1IDM0IDE2LjQgMzRIMzUuNkMzNi4yMzY1IDM0IDM2Ljg0NyAzMy43MzY2IDM3LjI5NzEgMzMuMjY3OEMzNy43NDcxIDMyLjc5ODkgMzggMzIuMTYzIDM4IDMxLjVDMzggMzAuODM3IDM3Ljc0NzEgMzAuMjAxMSAzNy4yOTcxIDI5LjczMjJDMzYuODQ3IDI5LjI2MzQgMzYuMjM2NSAyOSAzNS42IDI5SDE2LjRaIiBmaWxsPSIjQTJBMkEyIi8+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNTAuODA0IDMyQzQ5LjEzMzMgMzIuMDAwNiA0Ny40ODU1IDMyLjM4ODUgNDUuOTkgMzMuMTMzMkM0NC40OTQ1IDMzLjg3NzggNDMuMTkyIDM0Ljk1OSA0Mi4xODQ4IDM2LjI5MThDNDEuMTc3NiAzNy42MjQ1IDQwLjQ5MzIgMzkuMTcyNiA0MC4xODUyIDQwLjgxNDRDMzkuODc3MiA0Mi40NTYyIDM5Ljk1NDEgNDQuMTQ3IDQwLjQwOTkgNDUuNzU0MUM0MC44NjU2IDQ3LjM2MTIgNDEuNjg3OCA0OC44NDA4IDQyLjgxMTggNTAuMDc2NkM0My45MzU4IDUxLjMxMjUgNDUuMzMxIDUyLjI3MSA0Ni44ODggNTIuODc2OUM0OC40NDQ5IDUzLjQ4MjggNTAuMTIxMSA1My43MTk1IDUxLjc4NSA1My41Njg1QzUzLjQ0ODkgNTMuNDE3NiA1NS4wNTUxIDUyLjg4MyA1Ni40Nzc1IDUyLjAwNjhMNjAuNjgxIDU2LjIwNjNDNjAuOTA5NCA1Ni40NTEzIDYxLjE4NDcgNTYuNjQ3OCA2MS40OTA3IDU2Ljc4NDFDNjEuNzk2NiA1Ni45MjA0IDYyLjEyNjkgNTYuOTkzNyA2Mi40NjE4IDU2Ljk5OTZDNjIuNzk2NyA1Ny4wMDU1IDYzLjEyOTQgNTYuOTQzOSA2My40Mzk5IDU2LjgxODVDNjMuNzUwNSA1Ni42OTMxIDY0LjAzMjYgNTYuNTA2NCA2NC4yNjk1IDU2LjI2OTZDNjQuNTA2MyA1Ni4wMzI4IDY0LjY5MyA1NS43NTA3IDY0LjgxODUgNTUuNDQwMkM2NC45NDM5IDU1LjEyOTcgNjUuMDA1NSA1NC43OTcxIDY0Ljk5OTYgNTQuNDYyMkM2NC45OTM3IDU0LjEyNzQgNjQuOTIwNCA1My43OTcyIDY0Ljc4NDEgNTMuNDkxM0M2NC42NDc4IDUzLjE4NTQgNjQuNDUxMiA1Mi45MSA2NC4yMDYyIDUyLjY4MTdMNjAuMDA1OSA0OC40Nzg5QzYxLjAxNTkgNDYuODQxNSA2MS41NzA0IDQ0Ljk2NDMgNjEuNjEyMiA0My4wNDFDNjEuNjU0IDQxLjExNzcgNjEuMTgxNSAzOS4yMTgxIDYwLjI0MzUgMzcuNTM4NUM1OS4zMDU2IDM1Ljg1ODggNTcuOTM2MiAzNC40NTk5IDU2LjI3NjggMzMuNDg2M0M1NC42MTc0IDMyLjUxMjYgNTIuNzI4MSAzMS45OTk1IDUwLjgwNCAzMlpNNDQuOTg0MyA0Mi44MDY0QzQ0Ljk4NDMgNDEuMjYzMSA0NS41OTc0IDM5Ljc4MzEgNDYuNjg4OCAzOC42OTE5QzQ3Ljc4MDMgMzcuNjAwNiA0OS4yNjA1IDM2Ljk4NzYgNTAuODA0IDM2Ljk4NzZDNTIuMzQ3NSAzNi45ODc2IDUzLjgyNzggMzcuNjAwNiA1NC45MTkyIDM4LjY5MTlDNTYuMDEwNyAzOS43ODMxIDU2LjYyMzggNDEuMjYzMSA1Ni42MjM4IDQyLjgwNjRDNTYuNjIzOCA0NC4zNDk2IDU2LjAxMDcgNDUuODI5NyA1NC45MTkyIDQ2LjkyMDlDNTMuODI3OCA0OC4wMTIxIDUyLjM0NzUgNDguNjI1MiA1MC44MDQgNDguNjI1MkM0OS4yNjA1IDQ4LjYyNTIgNDcuNzgwMyA0OC4wMTIxIDQ2LjY4ODggNDYuOTIwOUM0NS41OTc0IDQ1LjgyOTcgNDQuOTg0MyA0NC4zNDk2IDQ0Ljk4NDMgNDIuODA2NFoiIGZpbGw9IiNBMkEyQTIiLz4KPHBhdGggZD0iTTE2LjQyMzEgMzZDMTUuNzgwNCAzNiAxNS4xNjQxIDM2LjI1NTMgMTQuNzA5NyAzNi43MDk3QzE0LjI1NTMgMzcuMTY0MSAxNCAzNy43ODA0IDE0IDM4LjQyMzFDMTQgMzkuMDY1NyAxNC4yNTUzIDM5LjY4MiAxNC43MDk3IDQwLjEzNjRDMTUuMTY0MSA0MC41OTA5IDE1Ljc4MDQgNDAuODQ2MiAxNi40MjMxIDQwLjg0NjJIMjYuMTE1NEMyNi43NTggNDAuODQ2MiAyNy4zNzQzIDQwLjU5MDkgMjcuODI4OCA0MC4xMzY0QzI4LjI4MzIgMzkuNjgyIDI4LjUzODUgMzkuMDY1NyAyOC41Mzg1IDM4LjQyMzFDMjguNTM4NSAzNy43ODA0IDI4LjI4MzIgMzcuMTY0MSAyNy44Mjg4IDM2LjcwOTdDMjcuMzc0MyAzNi4yNTUzIDI2Ljc1OCAzNiAyNi4xMTU0IDM2SDE2LjQyMzFaTTE2LjQyMzEgNDUuNjkyM0MxNS43ODA0IDQ1LjY5MjMgMTUuMTY0MSA0NS45NDc2IDE0LjcwOTcgNDYuNDAyQzE0LjI1NTMgNDYuODU2NCAxNCA0Ny40NzI3IDE0IDQ4LjExNTRDMTQgNDguNzU4IDE0LjI1NTMgNDkuMzc0MyAxNC43MDk3IDQ5LjgyODhDMTUuMTY0MSA1MC4yODMyIDE1Ljc4MDQgNTAuNTM4NSAxNi40MjMxIDUwLjUzODVIMzIuNTc2OUMzMy4yMTk2IDUwLjUzODUgMzMuODM1OSA1MC4yODMyIDM0LjI5MDMgNDkuODI4OEMzNC43NDQ3IDQ5LjM3NDMgMzUgNDguNzU4IDM1IDQ4LjExNTRDMzUgNDcuNDcyNyAzNC43NDQ3IDQ2Ljg1NjQgMzQuMjkwMyA0Ni40MDJDMzMuODM1OSA0NS45NDc2IDMzLjIxOTYgNDUuNjkyMyAzMi41NzY5IDQ1LjY5MjNIMTYuNDIzMVpNMTYuNDIzMSA1Mi4xNTM4QzE1Ljc4MDQgNTIuMTUzOCAxNS4xNjQxIDUyLjQwOTEgMTQuNzA5NyA1Mi44NjM1QzE0LjI1NTMgNTMuMzE4IDE0IDUzLjkzNDMgMTQgNTQuNTc2OUMxNCA1NS4yMTk2IDE0LjI1NTMgNTUuODM1OSAxNC43MDk3IDU2LjI5MDNDMTUuMTY0MSA1Ni43NDQ3IDE1Ljc4MDQgNTcgMTYuNDIzMSA1N0gyNi4xMTU0QzI2Ljc1OCA1NyAyNy4zNzQzIDU2Ljc0NDcgMjcuODI4OCA1Ni4yOTAzQzI4LjI4MzIgNTUuODM1OSAyOC41Mzg1IDU1LjIxOTYgMjguNTM4NSA1NC41NzY5QzI4LjUzODUgNTMuOTM0MyAyOC4yODMyIDUzLjMxOCAyNy44Mjg4IDUyLjg2MzVDMjcuMzc0MyA1Mi40MDkxIDI2Ljc1OCA1Mi4xNTM4IDI2LjExNTQgNTIuMTUzOEgxNi40MjMxWiIgZmlsbD0iI0EyQTJBMiIvPgo8L3N2Zz4K' +description: 'Display an automatic feed of filtered content or manually selected content' +behavior_plugins: { } diff --git a/modules/tide_api/modules/tide_content_collection_ui/config/install/taxonomy.vocabulary.searchable_content_types.yml b/modules/tide_api/modules/tide_content_collection_ui/config/install/taxonomy.vocabulary.searchable_content_types.yml new file mode 100644 index 000000000..5d9bf0c72 --- /dev/null +++ b/modules/tide_api/modules/tide_content_collection_ui/config/install/taxonomy.vocabulary.searchable_content_types.yml @@ -0,0 +1,8 @@ +langcode: en +status: true +dependencies: { } +name: 'Searchable Content Types' +vid: searchable_content_types +description: 'A list of content types that can be assigned to searchable fields' +weight: 0 +new_revision: false diff --git a/modules/tide_api/modules/tide_content_collection_ui/src/Controller/ContentCollectionNodeAutocomplete.php b/modules/tide_api/modules/tide_content_collection_ui/src/Controller/ContentCollectionNodeAutocomplete.php new file mode 100644 index 000000000..7c3f85613 --- /dev/null +++ b/modules/tide_api/modules/tide_content_collection_ui/src/Controller/ContentCollectionNodeAutocomplete.php @@ -0,0 +1,110 @@ +entityTypeManager = $entity_type_manager; + } + + /** + * {@inheritdoc} + */ + public static function create(ContainerInterface $container): ContentCollectionNodeAutocomplete|AutowireTrait|static { + return new static( + $container->get('entity_type.manager') + ); + } + + /** + * Only allow authenticated users to access this endpoint. + */ + public static function access(AccountInterface $account): AccessResult { + if (Settings::get('environment') === 'local' || Settings::get('environment') === 'development') { + return AccessResult::allowed()->setCacheMaxAge(0); + } + + return AccessResult::allowedIf($account->isAuthenticated() && $account->hasPermission('access content'))->setCacheMaxAge(0); + } + + /** + * Returns node autocomplete suggestions. + */ + public function index(Request $request): JsonResponse { + $results = []; + $query = $request->query->get('q', ''); + + if (!empty($query)) { + try { + $node_storage = $this->entityTypeManager->getStorage('node'); + } + catch (InvalidPluginDefinitionException | PluginNotFoundException) { + return new JsonResponse([]); + } + + $query_builder = $node_storage->getQuery() + ->condition('status', 1) + ->condition('title', $query, 'CONTAINS') + ->range(0, 50) + ->accessCheck(); + + // Scope the query to only nodes on the current users site. + $user = User::load(\Drupal::currentUser()->id()); + $site_restriction_helper = \Drupal::service('tide_site_restriction.helper'); + $allowed_site_ids = $site_restriction_helper->getUserSites($user); + + if ($allowed_site_ids) { + $query_builder->condition('field_node_site.target_id', $allowed_site_ids, 'IN'); + } + + $ids = $query_builder->execute(); + + if (!empty($ids)) { + $nodes = $node_storage->loadMultiple($ids); + + foreach ($nodes as $node) { + /** @var \Drupal\node\NodeInterface $node */ + $results[] = [ + 'id' => $node->id(), + 'uuid' => $node->uuid(), + 'label' => $node->getTitle(), + 'value' => $node->getTitle(), + ]; + } + } + } + + return new JsonResponse($results); + } + +} diff --git a/modules/tide_api/modules/tide_content_collection_ui/src/Plugin/Field/FieldFormatter/ContentCollectionUIFormatter.php b/modules/tide_api/modules/tide_content_collection_ui/src/Plugin/Field/FieldFormatter/ContentCollectionUIFormatter.php new file mode 100644 index 000000000..71d4632da --- /dev/null +++ b/modules/tide_api/modules/tide_content_collection_ui/src/Plugin/Field/FieldFormatter/ContentCollectionUIFormatter.php @@ -0,0 +1,38 @@ + $item) { + $form = json_decode($item->value ?? '{}'); + + $elements[$delta] = [ + '#type' => 'markup', + '#markup' => $form ? ucfirst($form->displayType) : '', + ]; + } + + return $elements; + } + +} diff --git a/modules/tide_api/modules/tide_content_collection_ui/src/Plugin/Field/FieldType/ContentCollectionUIItem.php b/modules/tide_api/modules/tide_content_collection_ui/src/Plugin/Field/FieldType/ContentCollectionUIItem.php new file mode 100644 index 000000000..3732eccee --- /dev/null +++ b/modules/tide_api/modules/tide_content_collection_ui/src/Plugin/Field/FieldType/ContentCollectionUIItem.php @@ -0,0 +1,59 @@ +setLabel(new TranslatableMarkup('JSON')) + ->setRequired(TRUE); + + return $properties; + } + + /** + * {@inheritdoc} + */ + public static function schema(FieldStorageDefinitionInterface $field_definition): array { + return [ + 'columns' => [ + 'value' => [ + 'type' => 'text', + 'size' => 'big', + ], + ], + ]; + } + + /** + * {@inheritdoc} + */ + public function isEmpty(): bool { + $value = $this->get('value')->getValue(); + + return $value === NULL || $value === ''; + } + +} diff --git a/modules/tide_api/modules/tide_content_collection_ui/src/Plugin/Field/FieldWidget/ContentCollectionUIDefaultWidget.php b/modules/tide_api/modules/tide_content_collection_ui/src/Plugin/Field/FieldWidget/ContentCollectionUIDefaultWidget.php new file mode 100644 index 000000000..939a3fb70 --- /dev/null +++ b/modules/tide_api/modules/tide_content_collection_ui/src/Plugin/Field/FieldWidget/ContentCollectionUIDefaultWidget.php @@ -0,0 +1,166 @@ + $this->getContentMap($value), + 'termMap' => $this->getTermMap($value), + ]; + } + + /** + * Get the necessary content titles for the contentMap. + */ + private function getContentMap($value): array { + $content = []; + + if ($value && is_array($value['manualItems']) && count($value['manualItems']) > 0) { + $node_ids = array_map('intval', $value['manualItems']); + + $nodes = Node::loadMultiple($node_ids); + + foreach ($nodes as $node) { + if ($node instanceof NodeInterface) { + $content[$node->id()] = $node->getTitle(); + } + } + } + + return $content; + } + + /** + * Get the necessary term titles for the termMap. + */ + private function getTermMap($value = NULL): array { + $terms = []; + $term_storage = \Drupal::entityTypeManager()->getStorage('taxonomy_term'); + + if ($term_storage && $value && is_array($value['filters']) && count($value['filters']) > 0) { + $values = array_column($value['filters'], 'terms'); + $terms = $term_storage->loadMultiple(array_merge(...$values)); + + foreach ($terms as $term) { + if ($term instanceof TermInterface) { + $terms[$term->id()] = $term->getName(); + } + } + } + + return $terms; + } + + /** + * {@inheritdoc} + */ + public function formElement(FieldItemListInterface $items, $delta, array $element, array &$form, FormStateInterface $form_state): array { + $is_content_form = $form_state->getFormObject() instanceof ContentEntityFormInterface; + + // Get the index of the parent field. + $index = $element['#field_parents'][1] ?? 0; + + // Setup any needed Drupal supplied data. + $config = $this->getConfig($items[$delta]->value); + + // Add the application container. + $element['tide_content_collection_ui'] = [ + '#type' => 'html_tag', + '#tag' => 'div', + '#attributes' => [ + 'id' => 'content-collection-app-' . $index, + 'class' => $is_content_form ? ['content-collection-app'] : [], + 'data-type' => $form["#entity_type"] ?? 'default', + 'data-config' => json_encode($config), + 'data-index' => "{$index}", + ], + ]; + + // Add a hidden input to store the JSON data. + $element['value'] = [ + '#type' => 'hidden', + '#default_value' => $items[$delta]->value ?? '{}', + '#attributes' => [ + 'id' => 'content-collection-value-' . $index, + 'class' => ['content-collection-value'], + ], + '#element_validate' => $is_content_form ? [ + [static::class, 'validateJson'], + ] : [], + '#required' => $is_content_form, + ]; + + // Attach the application. + $element['#attached']['library'][] = 'tide_content_collection_ui/tide_content_collection_ui'; + + return $element; + } + + /** + * Element validator for the hidden JSON value. + * + * @param array $element + * The form element render array. + * @param \Drupal\Core\Form\FormStateInterface $form_state + * The form state. + * @param array $form + * The complete form render array. + */ + public static function validateJson(array &$element, FormStateInterface $form_state, array &$form): void { + $value = $form_state->getValue($element['#parents']); + $data = json_decode($value, TRUE); + + // Make sure we have a source selected. + if (!$data || !is_array($data) || !isset($data['source'])) { + $form_state->setError($element, new TranslatableMarkup('Please select a content source.')); + return; + } + + // Make sure we have a content type selected when using the 'auto' source. + if ($data['source'] === 'auto' && (!isset($data['contentType']) || !$data['contentType'])) { + $form_state->setError($element, new TranslatableMarkup('Please select a content type.')); + } + + // Make sure we have at least one manual item selected. + if ( + $data['source'] === 'manual' && + ( + !isset($data['manualItems']) || + !is_array($data['manualItems']) || + count($data['manualItems']) === 0 || + (count($data['manualItems']) === 1 && !$data['manualItems'][0]) + ) + ) { + $form_state->setError($element, new TranslatableMarkup('Please add at least one content item.')); + } + } + +} diff --git a/modules/tide_api/modules/tide_content_collection_ui/tide_content_collection_ui.info.yml b/modules/tide_api/modules/tide_content_collection_ui/tide_content_collection_ui.info.yml new file mode 100644 index 000000000..81eed75b0 --- /dev/null +++ b/modules/tide_api/modules/tide_content_collection_ui/tide_content_collection_ui.info.yml @@ -0,0 +1,10 @@ +name: Tide Content Collection UI +type: module +description: Provides a custom field type to handle content collection UI configuration. +core_version_requirement: ^10 || ^11 +package: Fields +dependencies: + - paragraphs:paragraphs + - dpc-sdp:tide_core + - dpc-sdp:tide_api + - dpc-sdp:tide_search diff --git a/modules/tide_api/modules/tide_content_collection_ui/tide_content_collection_ui.install b/modules/tide_api/modules/tide_content_collection_ui/tide_content_collection_ui.install new file mode 100644 index 000000000..099db06e2 --- /dev/null +++ b/modules/tide_api/modules/tide_content_collection_ui/tide_content_collection_ui.install @@ -0,0 +1,36 @@ +moduleExists('tide_landing_page')) { + $field_name = 'field_landing_page_component'; + $new_component = 'content_collection_ui'; + $field_config = FieldConfig::loadByName('node', 'landing_page', $field_name); + if ($field_config) { + // Get the current handler settings. + $handler_settings = $field_config->getSetting('handler_settings'); + + // Ensure 'target_bundles' exists in handler settings. + if (isset($handler_settings['target_bundles'])) { + // Add the new component if it does not already exist. + if (!array_key_exists($new_component, $handler_settings['target_bundles'])) { + $handler_settings['target_bundles'][$new_component] = $new_component; + + // Update the field configuration with the new handler settings. + $field_config->setSetting('handler_settings', $handler_settings); + $field_config->save(); + } + } + } + } +} diff --git a/modules/tide_api/modules/tide_content_collection_ui/tide_content_collection_ui.libraries.yml b/modules/tide_api/modules/tide_content_collection_ui/tide_content_collection_ui.libraries.yml new file mode 100644 index 000000000..444674b5b --- /dev/null +++ b/modules/tide_api/modules/tide_content_collection_ui/tide_content_collection_ui.libraries.yml @@ -0,0 +1,8 @@ +tide_content_collection_ui: + version: 1.x + js: + app/dist/main.js: {} + dependencies: + - core/drupal + - core/once + - core/jquery diff --git a/modules/tide_api/modules/tide_content_collection_ui/tide_content_collection_ui.module b/modules/tide_api/modules/tide_content_collection_ui/tide_content_collection_ui.module new file mode 100644 index 000000000..c4f147a82 --- /dev/null +++ b/modules/tide_api/modules/tide_content_collection_ui/tide_content_collection_ui.module @@ -0,0 +1,6 @@ +getEditable('jsonapi.settings')->set('read_only', FALSE)->save(TRUE); } + +/** + * Implements hook_update_dependencies(). + */ +function tide_api_update_dependencies() { + $dependencies = []; + $dependencies['tide_api'][10001] = [ + 'tide_search' => 10011, + ]; + + return $dependencies; +} + +/** + * Install tide_content_collection_ui. + */ +function tide_api_update_10001() { + $moduleHandler = \Drupal::service('module_handler'); + $moduleInstaller = \Drupal::service('module_installer'); + if (!$moduleHandler->moduleExists('tide_content_collection_ui')) { + $moduleInstaller->install(['tide_content_collection_ui']); + } +} diff --git a/modules/tide_search/config/optional/core.entity_form_display.taxonomy_term.searchable_fields.default.yml b/modules/tide_search/config/optional/core.entity_form_display.taxonomy_term.searchable_fields.default.yml index e0254c726..cb9d690b8 100644 --- a/modules/tide_search/config/optional/core.entity_form_display.taxonomy_term.searchable_fields.default.yml +++ b/modules/tide_search/config/optional/core.entity_form_display.taxonomy_term.searchable_fields.default.yml @@ -3,6 +3,8 @@ status: true dependencies: config: - field.field.taxonomy_term.searchable_fields.field_elasticsearch_field + - field.field.taxonomy_term.searchable_fields.field_elasticsearch_id + - field.field.taxonomy_term.searchable_fields.field_searchable_content_types - field.field.taxonomy_term.searchable_fields.field_taxonomy_machine_name - taxonomy.vocabulary.searchable_fields module: @@ -14,24 +16,42 @@ bundle: searchable_fields mode: default content: description: - type: text_textfield - weight: 0 + type: text_textarea + weight: 1 region: content settings: - size: 60 + rows: 5 placeholder: '' third_party_settings: { } field_elasticsearch_field: type: string_textfield - weight: 101 + weight: 4 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } + field_elasticsearch_id: + type: string_textfield + weight: 3 region: content settings: size: 60 placeholder: '' third_party_settings: { } + field_searchable_content_types: + type: entity_reference_autocomplete + weight: 5 + region: content + settings: + match_operator: CONTAINS + match_limit: 10 + size: 60 + placeholder: '' + third_party_settings: { } field_taxonomy_machine_name: type: string_textfield - weight: 102 + weight: 2 region: content settings: size: 60 @@ -39,7 +59,7 @@ content: third_party_settings: { } name: type: string_textfield - weight: -5 + weight: 0 region: content settings: size: 60 @@ -47,18 +67,18 @@ content: third_party_settings: { } path: type: path - weight: 30 + weight: 7 region: content settings: { } third_party_settings: { } simple_sitemap: - weight: 10 + weight: 6 region: content settings: { } third_party_settings: { } status: type: boolean_checkbox - weight: 100 + weight: 8 region: content settings: display_label: true diff --git a/modules/tide_search/config/optional/core.entity_view_display.taxonomy_term.searchable_fields.default.yml b/modules/tide_search/config/optional/core.entity_view_display.taxonomy_term.searchable_fields.default.yml index 8ba816985..fc1e85b02 100644 --- a/modules/tide_search/config/optional/core.entity_view_display.taxonomy_term.searchable_fields.default.yml +++ b/modules/tide_search/config/optional/core.entity_view_display.taxonomy_term.searchable_fields.default.yml @@ -3,6 +3,8 @@ status: true dependencies: config: - field.field.taxonomy_term.searchable_fields.field_elasticsearch_field + - field.field.taxonomy_term.searchable_fields.field_elasticsearch_id + - field.field.taxonomy_term.searchable_fields.field_searchable_content_types - field.field.taxonomy_term.searchable_fields.field_taxonomy_machine_name - taxonomy.vocabulary.searchable_fields module: @@ -27,6 +29,22 @@ content: third_party_settings: { } weight: 1 region: content + field_elasticsearch_id: + type: string + label: above + settings: + link_to_entity: false + third_party_settings: { } + weight: 3 + region: content + field_searchable_content_types: + type: entity_reference_label + label: above + settings: + link: true + third_party_settings: { } + weight: 4 + region: content field_taxonomy_machine_name: type: string label: above diff --git a/modules/tide_search/config/optional/field.field.taxonomy_term.searchable_fields.field_elasticsearch_field.yml b/modules/tide_search/config/optional/field.field.taxonomy_term.searchable_fields.field_elasticsearch_field.yml index 9ef32753b..0c5a03b6a 100644 --- a/modules/tide_search/config/optional/field.field.taxonomy_term.searchable_fields.field_elasticsearch_field.yml +++ b/modules/tide_search/config/optional/field.field.taxonomy_term.searchable_fields.field_elasticsearch_field.yml @@ -9,8 +9,8 @@ field_name: field_elasticsearch_field entity_type: taxonomy_term bundle: searchable_fields label: 'Elasticsearch field' -description: '' -required: false +description: 'This is the elasticsearch key of the display value, i.e. the field that stores the displayed title.' +required: true translatable: false default_value: { } default_value_callback: '' diff --git a/modules/tide_search/config/optional/field.field.taxonomy_term.searchable_fields.field_taxonomy_machine_name.yml b/modules/tide_search/config/optional/field.field.taxonomy_term.searchable_fields.field_taxonomy_machine_name.yml index 3886af029..6c2e60f32 100644 --- a/modules/tide_search/config/optional/field.field.taxonomy_term.searchable_fields.field_taxonomy_machine_name.yml +++ b/modules/tide_search/config/optional/field.field.taxonomy_term.searchable_fields.field_taxonomy_machine_name.yml @@ -10,7 +10,7 @@ entity_type: taxonomy_term bundle: searchable_fields label: 'Taxonomy machine name' description: '' -required: false +required: true translatable: false default_value: { } default_value_callback: '' diff --git a/modules/tide_search/tide_search.install b/modules/tide_search/tide_search.install index f3d786840..7b0cc1e29 100644 --- a/modules/tide_search/tide_search.install +++ b/modules/tide_search/tide_search.install @@ -534,3 +534,109 @@ function tide_search_update_10010() { } } } + +/** + * Rollout new content collection ui component. + */ +function tide_search_update_10011() { + \Drupal::moduleHandler()->loadInclude('tide_core', 'inc', 'includes/helpers'); + $config_location = [\Drupal::service('extension.list.module')->getPath('tide_search') . '/config/optional']; + $displays = [ + 'core.entity_form_display.taxonomy_term.searchable_fields.default', + 'core.entity_view_display.taxonomy_term.searchable_fields.default', + ]; + // Ensure field components exist in appropriate displays. + $ensure_fields = [ + 'core.entity_form_display.taxonomy_term.searchable_fields.default' => [ + 'field_elasticsearch_id' => [ + 'type' => 'string_textfield', + 'weight' => 3, + 'region' => 'content', + 'settings' => ['size' => 60, 'placeholder' => ''], + 'third_party_settings' => [], + ], + 'field_searchable_content_types' => [ + 'type' => 'entity_reference_autocomplete', + 'weight' => 5, + 'region' => 'content', + 'settings' => [ + 'match_operator' => 'CONTAINS', + 'match_limit' => 10, + 'size' => 60, + 'placeholder' => '', + ], + 'third_party_settings' => [], + ], + ], + 'core.entity_view_display.taxonomy_term.searchable_fields.default' => [ + 'field_elasticsearch_id' => [ + 'type' => 'string', + 'label' => 'above', + 'settings' => ['link_to_entity' => FALSE], + 'third_party_settings' => [], + 'weight' => 3, + 'region' => 'content', + ], + 'field_searchable_content_types' => [ + 'type' => 'entity_reference_label', + 'label' => 'above', + 'settings' => ['link' => TRUE], + 'third_party_settings' => [], + 'weight' => 4, + 'region' => 'content', + ], + ], + ]; + $config_factory = \Drupal::service('config.factory'); + foreach ($displays as $display) { + // Read Confgis. + $active_config = $config_factory->getEditable($display); + $source_config = _tide_read_config($display, $config_location, FALSE); + + // Add field dependencies. + $dependencies_config = $active_config->get('dependencies.config') ?: []; + $fields_to_add = [ + 'field.field.taxonomy_term.searchable_fields.field_elasticsearch_id', + 'field.field.taxonomy_term.searchable_fields.field_searchable_content_types', + ]; + foreach ($fields_to_add as $field) { + if (!in_array($field, $dependencies_config, TRUE)) { + $dependencies_config[] = $field; + } + } + + $active_config->set('dependencies.config', $dependencies_config); + + // Merge field components. + $source_fields = $source_config['content'] ?? []; + $active_fields = $active_config->get('content') ?: []; + + if (!empty($source_fields)) { + foreach ($source_fields as $field_key => $field_config) { + if (isset($active_fields[$field_key])) { + $active_fields[$field_key] = array_merge($active_fields[$field_key], $field_config); + } + } + } + // Ensure required fields exist. + foreach ($ensure_fields[$display] as $field_key => $defaults) { + if (!isset($active_fields[$field_key])) { + $active_fields[$field_key] = $defaults; + } + } + + $active_config->set('content', $active_fields); + $active_config->save(); + } + // Update field_elasticsearch_field settings. + $field_elastic = 'field.field.taxonomy_term.searchable_fields.field_elasticsearch_field'; + $config = $config_factory->getEditable($field_elastic); + $config->set('description', 'This is the elasticsearch key of the display value, i.e. the field that stores the displayed title.'); + $config->set('required', TRUE); + $config->save(); + // Make field_taxonomy_machine_name required. + $field_machine = 'field.field.taxonomy_term.searchable_fields.field_taxonomy_machine_name'; + $config = $config_factory->getEditable($field_machine); + $config->set('required', TRUE); + $config->save(); +}