headroom-cms 0.1.8 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/admin/assets/{AdminsPage-Bt_ekZen.js → AdminsPage-BIWASote.js} +1 -1
- package/admin/assets/AllContentPage-1gXe2OC7.js +1 -0
- package/admin/assets/{ApiKeysPage-BfWCxGhC.js → ApiKeysPage-BBW4ATBx.js} +1 -1
- package/admin/assets/AuditPage-B5GGFWGG.js +1 -0
- package/admin/assets/BlockEditor-CQpF8tYb.css +1 -0
- package/admin/assets/BlockEditor-ClskiZoX.js +176 -0
- package/admin/assets/BlockTypeEditPage-CY0gCPei.js +1 -0
- package/admin/assets/BlockTypesPage-D8Me6OeX.js +1 -0
- package/admin/assets/{BulkActionBar-TRiXXLQd.js → BulkActionBar--35xjnOP.js} +1 -1
- package/admin/assets/CollectionEditPage-y8t0ZO89.js +1 -0
- package/admin/assets/{CollectionsPage-ClplrxNn.js → CollectionsPage-BQmGXpvW.js} +1 -1
- package/admin/assets/{ContentCreatePage-DfYcEH1u.js → ContentCreatePage-DlgxamOe.js} +1 -1
- package/admin/assets/ContentEditPage-WkSbCnnG.js +1 -0
- package/admin/assets/ContentField-D04Uo1Ov.js +1 -0
- package/admin/assets/ContentListPage-BDMx7pWb.js +1 -0
- package/admin/assets/CustomBlockPreview-Cs9bFDh4.js +479 -0
- package/admin/assets/FieldRenderer-wE-mtqZB.js +2 -0
- package/admin/assets/FilterBar-kFcOLffg.js +1 -0
- package/admin/assets/FloatingComposerController-D4uLQfUX-C0Lhbmda.js +1 -0
- package/admin/assets/IconPicker-BrgSAsa_.js +3 -0
- package/admin/assets/{LoginPage-DutieANA.js → LoginPage-Bi7TBzK4.js} +1 -1
- package/admin/assets/MediaField-B-Cz8TlK.js +1 -0
- package/admin/assets/MediaPage-C84p9d1U.js +1 -0
- package/admin/assets/Pagination-CuHwUPHi.js +1 -0
- package/admin/assets/RelationshipPicker-Dv7GaLcU.js +1 -0
- package/admin/assets/{SiteSettingsPage-BtCC3RKc.js → SiteSettingsPage-nBT7NzkA.js} +1 -1
- package/admin/assets/{SiteUserEditPage-ClHmp0T-.js → SiteUserEditPage-DroUTii9.js} +1 -1
- package/admin/assets/SiteUsersPage-iVXPCBPe.js +1 -0
- package/admin/assets/{SitesPage-Bw_WBN6v.js → SitesPage-BefZeWuJ.js} +1 -1
- package/admin/assets/{SubmissionDetailPage-DS08LGxd.js → SubmissionDetailPage-ktmzzOE1.js} +1 -1
- package/admin/assets/SubmissionEditPage-C-ykTI2t.js +1 -0
- package/admin/assets/SubmissionListPage-DA-8deUy.js +1 -0
- package/admin/assets/{TagInput-BILCaC9b.js → TagInput-d-Hw1fkL.js} +1 -1
- package/admin/assets/{TagsPage-DdeZokow.js → TagsPage-BZzDvcKa.js} +1 -1
- package/admin/assets/{UsersPage-B0vLxjrg.js → UsersPage-CnQAOOGF.js} +1 -1
- package/admin/assets/{WebhookEditPage-SlJE4d3z.js → WebhookEditPage-KeS8hmdW.js} +1 -1
- package/admin/assets/{WebhooksPage-C6lGZLpr.js → WebhooksPage-CASjmlPN.js} +1 -1
- package/admin/assets/{card-hXVtlM0q.js → card-CZTHR2Qa.js} +1 -1
- package/admin/assets/checkbox-DEgzM8H9.js +1 -0
- package/admin/assets/{collapsible-B414SspL.js → collapsible-D3d29uJp.js} +1 -1
- package/admin/assets/{command-fvBFHye4.js → command-CdzYw11U.js} +1 -1
- package/admin/assets/contentStatus-CkPi9Dh6.js +1 -0
- package/admin/assets/{core.esm-B_kcYf6n.js → core.esm-DdQHdRkd.js} +2 -2
- package/admin/assets/index-BA3y7HJs.js +18 -0
- package/admin/assets/index-c7UygSvP.css +1 -0
- package/admin/assets/popover-BFw_h3j6.js +1 -0
- package/admin/assets/radix-C5ZmWuuL.js +51 -0
- package/admin/assets/select-dX9e6VDt.js +1 -0
- package/admin/assets/{serializeToText-DR_WnxiI.js → serializeToText-Zin3gYPm.js} +1 -1
- package/admin/assets/{sortable.esm-QyXA6fio.js → sortable.esm-qVEMoaTg.js} +1 -1
- package/admin/assets/{table-DLoIbCQ5.js → table-Dk7eeOt2.js} +1 -1
- package/admin/assets/{textarea-vSXNxwTe.js → textarea-CpDSUg2s.js} +1 -1
- package/admin/assets/useAdminResolver-Bljb4XGQ.js +1 -0
- package/admin/assets/useContent-CW0tm0FY.js +1 -0
- package/admin/assets/useContentSearch-_bwacEth.js +1 -0
- package/admin/assets/{useMedia-e3sqWm_t.js → useMedia-Cu5N4rY8.js} +1 -1
- package/admin/assets/usePageTitle-DYvuJQp6.js +1 -0
- package/admin/assets/useSiteUsers-CKtC_8Jc.js +1 -0
- package/admin/assets/{useTags-f7AVSLuj.js → useTags-ybsMbCst.js} +1 -1
- package/admin/assets/{useWebhooks-BH_r8-Mo.js → useWebhooks-BAB-3sLa.js} +1 -1
- package/admin/assets/yjs-tXBm_srz.js +5 -0
- package/admin/index.html +3 -3
- package/admin/sw.js +1 -1
- package/dist/admin-site.d.ts +12 -0
- package/dist/admin-site.d.ts.map +1 -1
- package/dist/admin-site.js +8 -1
- package/dist/admin-site.js.map +1 -1
- package/dist/api.d.ts +7 -0
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +8 -1
- package/dist/api.js.map +1 -1
- package/dist/collaboration.d.ts +55 -0
- package/dist/collaboration.d.ts.map +1 -0
- package/dist/collaboration.js +141 -0
- package/dist/collaboration.js.map +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +29 -4
- package/dist/index.js.map +1 -1
- package/dist/storage.d.ts +2 -0
- package/dist/storage.d.ts.map +1 -1
- package/dist/storage.js +33 -0
- package/dist/storage.js.map +1 -1
- package/lambda/api/bootstrap +0 -0
- package/lambda/webhook-worker/bootstrap +0 -0
- package/package.json +1 -1
- package/src/admin-site.ts +20 -1
- package/src/api.ts +15 -1
- package/src/collaboration.ts +187 -0
- package/src/index.ts +44 -4
- package/src/sst-env.d.ts +28 -0
- package/src/storage.ts +35 -0
- package/admin/assets/AllContentPage-CFqEMAl9.js +0 -1
- package/admin/assets/AuditPage-BE0XIUl2.js +0 -1
- package/admin/assets/BlockEditor-6wqsThJ7.js +0 -179
- package/admin/assets/BlockEditor-Cp_wZ2xN.css +0 -1
- package/admin/assets/BlockTypeEditPage-CuNJfZw0.js +0 -1
- package/admin/assets/BlockTypesPage-BIMBVxBs.js +0 -1
- package/admin/assets/CollectionEditPage-BqX_0cC2.js +0 -1
- package/admin/assets/ContentEditPage-D3Rvlktk.js +0 -2
- package/admin/assets/ContentListPage-zmO8Is4d.js +0 -1
- package/admin/assets/CustomBlockPreview-C6HqS4xv.js +0 -479
- package/admin/assets/FieldBuilder-36tfpSyM.js +0 -3
- package/admin/assets/FilterBar-DhRwTqFv.js +0 -1
- package/admin/assets/MediaField-J2TLG_fu.js +0 -1
- package/admin/assets/MediaPage-DZZKMGF4.js +0 -1
- package/admin/assets/RelationshipPicker-CDFs4TMW.js +0 -1
- package/admin/assets/SiteUsersPage-AyJvcVM7.js +0 -1
- package/admin/assets/SubmissionEditPage-Brf-DK2X.js +0 -1
- package/admin/assets/SubmissionListPage-DNMzQZHS.js +0 -1
- package/admin/assets/checkbox-WGrS3sUr.js +0 -1
- package/admin/assets/contentStatus-BmaiYVOm.js +0 -1
- package/admin/assets/index-Cir9tY_P.js +0 -18
- package/admin/assets/index-DACBYsKM.css +0 -1
- package/admin/assets/popover-D5_HjjUC.js +0 -1
- package/admin/assets/radix-C1kb_NqW.js +0 -51
- package/admin/assets/select-_uJYxzeZ.js +0 -1
- package/admin/assets/useAdminResolver-D-LlmquD.js +0 -1
- package/admin/assets/useContent-e8beBIuq.js +0 -1
- package/admin/assets/useContentSearch-DOjveB9t.js +0 -1
- package/admin/assets/useDebouncedValue-C-cQUcLG.js +0 -1
- package/admin/assets/usePageTitle-BNSba9_L.js +0 -1
- package/admin/assets/useSiteUsers-BdnvuM2E.js +0 -1
|
@@ -0,0 +1,479 @@
|
|
|
1
|
+
import{aK as Xt}from"./index-BA3y7HJs.js";import{j as I}from"./tanstack-Bs3zYPPV.js";import{r as G}from"./react-vendor-C2CvUxFh.js";import{m as Kt}from"./media-url-DIg_vSyf.js";class z{constructor(e,n,r,s,i){this.kind=e,this.input=n,this.begin=r,this.end=s,this.file=i}getText(){return this.input.slice(this.begin,this.end)}getPosition(){let[e,n]=[1,1];for(let r=0;r<this.begin;r++)this.input[r]===`
|
|
2
|
+
`?(e++,n=1):n++;return[e,n]}size(){return this.end-this.begin}}class J{liquidMethodMissing(e,n){}}const en=Object.prototype.toString,We=String.prototype.toLowerCase,Ee=Object.hasOwnProperty;function d(t){return typeof t=="string"}function T(t){return typeof t=="function"}function tn(t){return t&&T(t.then)}function ue(t){return t&&T(t.next)&&T(t.throw)&&T(t.return)}function nn(t){return t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function u(t){return t=p(t),d(t)?t:O(t)?"":_(t)?t.map(e=>u(e)).join(""):String(t)}function oe(t){return t=p(t),_(t)?t:d(t)&&t.length>0?[t]:sn(t)?Array.from(t):ye(t)?Object.keys(t).map(e=>[e,t[e]]):[]}function v(t){return t=p(t),O(t)?[]:_(t)?t:[t]}function p(t){return t instanceof J&&T(t.valueOf)?t.valueOf():t}function Fe(t){return+p(t)||0}function me(t){return typeof t=="number"}function bt(t){return t&&T(t.toLiquid)?bt(t.toLiquid()):t}function O(t){return t==null}function rn(t){return t===void 0}function _(t){return en.call(t)==="[object Array]"}function xt(t){return t&&me(t.length)}function sn(t){return ye(t)&&Symbol.iterator in t}function Ye(t,e){t=t||{};for(const n in t)if(Ee.call(t,n)&&e(t[n],n,t)===!1)break;return t}function Tt(t){return t[t.length-1]}function ye(t){const e=typeof t;return t!==null&&(e==="object"||e==="function")}function vt(t,e,n=1){const r=[];for(let s=t;s<e;s+=n)r.push(s);return r}function ie(t,e,n=" "){return _t(t,e,n,(r,s)=>s+r)}function on(t,e,n=" "){return _t(t,e,n,(r,s)=>r+s)}function _t(t,e,n,r){t=String(t);let s=e-t.length;for(;s-- >0;)t=r(t,n);return t}function St(t){return t}function ln(t){return[...t].some(n=>n>="a"&&n<="z")?t.toUpperCase():t.toLowerCase()}function an(t,e){return t.length>e?t.slice(0,e-3)+"...":t}function Je(t,e){return t==null&&e==null?0:t==null?1:e==null||(t=We.call(t),e=We.call(e),t<e)?-1:t>e?1:0}function ke(t){return function(...e){return t.call(this,...e.map(p))}}function j(t){return function(...e){return t.call(this,...e.map(Fe))}}function Ae(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function*le(t){const e=new Set;for(const n of t){const r=JSON.stringify(n);e.has(r)||(e.add(r),yield n)}}const Ze="__liquidClass__";class Z extends Error{constructor(e,n){super(typeof e=="string"?e:e.message),this.context="",typeof e!="string"&&Object.defineProperty(this,"originalError",{value:e,enumerable:!1}),Object.defineProperty(this,"token",{value:n,enumerable:!1}),Object.defineProperty(this,Ze,{value:"LiquidError",enumerable:!1})}update(){Object.defineProperty(this,"context",{value:gn(this.token),enumerable:!1}),this.message=mn(this.message,this.token),this.stack=this.message+`
|
|
3
|
+
`+this.context+`
|
|
4
|
+
`+this.stack,this.originalError&&(this.stack+=`
|
|
5
|
+
From `+this.originalError.stack)}static is(e){return e?.[Ze]==="LiquidError"}}class cn extends Z{constructor(e,n){super(e,n),this.name="TokenizationError",super.update()}}class hn extends Z{constructor(e,n){super(e,n),this.name="ParseError",this.message=e.message,super.update()}}class un extends Z{constructor(e,n){super(e,n.token),this.name="RenderError",this.message=e.message,super.update()}static is(e){return e.name==="RenderError"}}class Ft extends Z{constructor(e){super(e[0],e[0].token),this.errors=e,this.name="LiquidErrors";const n=e.length>1?"s":"";this.message=`${e.length} error${n} found`,super.update()}static is(e){return e.name==="LiquidErrors"}}class fn extends Z{constructor(e,n){super(e,n),this.name="UndefinedVariableError",this.message=e.message,super.update()}}class dn extends Error{constructor(e){super(`undefined variable: ${e}`),this.name="InternalUndefinedVariableError",this.variableName=e}}class pn extends Error{constructor(e){super(e),this.name="AssertionError",this.message=e+""}}function gn(t){const[e,n]=t.getPosition(),r=t.input.split(`
|
|
6
|
+
`),s=Math.max(e-2,1),i=Math.min(e+3,r.length);return vt(s,i+1).map(l=>{const h=l===e?">> ":" ",a=ie(String(l),String(i).length);let c=`${h}${a}| `;const f=l===e?`
|
|
7
|
+
`+ie("^",n+c.length):"";return c+=r[l-1],c+=f,c}).join(`
|
|
8
|
+
`)}function mn(t,e){e.file&&(t+=`, file:${e.file}`);const[n,r]=e.getPosition();return t+=`, line:${n}, col:${r}`,t}const m=[0,0,0,0,0,0,0,0,0,20,4,4,4,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,20,2,8,0,0,0,0,8,0,0,0,64,0,65,0,0,33,33,33,33,33,33,33,33,33,33,0,0,2,2,2,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0],yn=1,te=4,Qe=8,Lt=16,kn=32,wn=64,bn=128;function ae(t){const e=t.charCodeAt(0);return e>=128?!m[e]:!!(m[e]&yn)}m[160]=m[5760]=m[6158]=m[8192]=m[8193]=m[8194]=m[8195]=m[8196]=m[8197]=m[8198]=m[8199]=m[8200]=m[8201]=m[8202]=m[8232]=m[8233]=m[8239]=m[8287]=m[12288]=te;m[8220]=m[8221]=bn;function S(t,e){if(!t){const n=typeof e=="function"?e():e||`expect ${t} to be true`;throw new pn(n)}}function fe(t,e=`unexpected ${JSON.stringify(t)}`){S(!t,e)}class xn extends J{equals(e){return O(p(e))}gt(){return!1}geq(){return!1}lt(){return!1}leq(){return!1}valueOf(){return null}}class ne extends J{equals(e){return e instanceof ne?!1:(e=p(e),d(e)||_(e)?e.length===0:ye(e)?Object.keys(e).length===0:!1)}gt(){return!1}geq(){return!1}lt(){return!1}leq(){return!1}valueOf(){return""}static is(e){return e instanceof ne}}class Ne extends ne{equals(e){return e===!1||O(p(e))?!0:d(e)?/^\s*$/.test(e):super.equals(e)}static is(e){return e instanceof Ne}}class je extends J{constructor(e,n,r){super(),this.i=0,this.length=e,this.name=`${r}-${n}`}next(){this.i++}index0(){return this.i}index(){return this.i+1}first(){return this.i===0}last(){return this.i===this.length-1}rindex(){return this.length-this.i}rindex0(){return this.length-this.i-1}valueOf(){return JSON.stringify(this)}}class Ot{constructor(){this.buffer=""}write(e){this.buffer+=u(e)}}class Tn{constructor(){throw this.buffer="",this.stream=null,new Error("streaming not supported in browser")}}class vn{constructor(){this.buffer=""}write(e){e=p(e),typeof e!="string"&&this.buffer===""?this.buffer=e:this.buffer=u(this.buffer)+u(e)}}class Ge extends J{constructor(e=()=>""){super(),this.superBlockRender=e}*super(){const e=new Ot;return yield this.superBlockRender(e),e.buffer}}function A(t){return t&&T(t.equals)&&T(t.gt)&&T(t.geq)&&T(t.lt)&&T(t.leq)}const Xe=new xn,zt={true:!0,false:!1,nil:Xe,null:Xe,empty:new ne,blank:new Ne};function Ke(t){const e={};for(const[n,r]of Object.entries(t)){let s=e;for(let i=0;i<n.length;i++){const o=n[i];s[o]=s[o]||{},i===n.length-1&&ae(n[i])&&(s[o].needBoundary=!0),s=s[o]}s.data=r,s.end=!0}return e}var de=function(){return de=Object.assign||function(e){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},de.apply(this,arguments)};function x(t,e,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function l(c){try{a(r.next(c))}catch(f){o(f)}}function h(c){try{a(r.throw(c))}catch(f){o(f)}}function a(c){c.done?i(c.value):s(c.value).then(l,h)}a((r=r.apply(t,[])).next())})}function D(t){return x(this,void 0,void 0,function*(){if(!ue(t))return t;let e,n=!1,r="next";do{const s=t[r](e);n=s.done,e=s.value,r="next";try{ue(e)&&(e=D(e)),tn(e)&&(e=yield e)}catch(i){r="throw",e=i}}while(!n);return e})}function M(t){if(!ue(t))return t;let e,n=!1,r="next";do{const s=t[r](e);if(n=s.done,e=s.value,r="next",ue(e))try{e=M(e)}catch(i){r="throw",e=i}}while(!n);return e}const _n=/%([-_0^#:]+)?(\d+)?([EO])?(.)/;function Sn(t){return[31,Fn(t)?29:28,31,30,31,30,31,31,30,31,30,31]}function Rt(t){let e=0;for(let n=0;n<t.getMonth();++n)e+=Sn(t)[n];return e+t.getDate()}function et(t,e){const n=Rt(t)+(e-t.getDay()),s=7-new Date(t.getFullYear(),0,1).getDay()+e;return String(Math.floor((n-s)/7)+1)}function Fn(t){const e=t.getFullYear();return!!((e&3)===0&&(e%100||e%400===0&&e))}function Ln(t){const e=t.getDate();if([11,12,13].includes(e))return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}function On(t){return parseInt(t.getFullYear().toString().substring(0,2),10)}const zn={d:2,e:2,H:2,I:2,j:3,k:2,l:2,L:3,m:2,M:2,S:2,U:2,W:2},Rn=new Set("aAbBceklpP");function tt(t,e){const n=Math.abs(t.getTimezoneOffset()),r=Math.floor(n/60),s=n%60;return(t.getTimezoneOffset()>0?"-":"+")+ie(r,2,"0")+(e.flags[":"]?":":"")+ie(s,2,"0")}const Le={a:t=>t.getShortWeekdayName(),A:t=>t.getLongWeekdayName(),b:t=>t.getShortMonthName(),B:t=>t.getLongMonthName(),c:t=>t.toLocaleString(),C:t=>On(t),d:t=>t.getDate(),e:t=>t.getDate(),H:t=>t.getHours(),I:t=>String(t.getHours()%12||12),j:t=>Rt(t),k:t=>t.getHours(),l:t=>String(t.getHours()%12||12),L:t=>t.getMilliseconds(),m:t=>t.getMonth()+1,M:t=>t.getMinutes(),N:(t,e)=>{const n=Number(e.width)||9,r=String(t.getMilliseconds()).slice(0,n);return on(r,n,"0")},p:t=>t.getHours()<12?"AM":"PM",P:t=>t.getHours()<12?"am":"pm",q:t=>Ln(t),s:t=>Math.round(t.getTime()/1e3),S:t=>t.getSeconds(),u:t=>t.getDay()||7,U:t=>et(t,0),w:t=>t.getDay(),W:t=>et(t,1),x:t=>t.toLocaleDateString(),X:t=>t.toLocaleTimeString(),y:t=>t.getFullYear().toString().slice(2,4),Y:t=>t.getFullYear(),z:tt,Z:(t,e)=>t.getTimeZoneName()||tt(t,e),t:()=>" ",n:()=>`
|
|
9
|
+
`,"%":()=>"%"};Le.h=Le.b;function ce(t,e){let n="",r=e,s;for(;s=_n.exec(r);)n+=r.slice(0,s.index),r=r.slice(s.index+s[0].length),n+=En(t,s);return n+r}function En(t,e){const[n,r="",s,i,o]=e,l=Le[o];if(!l)return n;const h={};for(const g of r)h[g]=!0;let a=String(l(t,{flags:h,width:s,modifier:i})),c=Rn.has(o)?" ":"0",f=s||zn[o]||0;return h["^"]?a=a.toUpperCase():h["#"]&&(a=ln(a)),h._?c=" ":h[0]&&(c="0"),h["-"]&&(f=0),ie(a,f,c)}function Et(){return typeof Intl<"u"?Intl.DateTimeFormat:void 0}const An=6e4,Nn=/([zZ]|([+-])(\d{2}):?(\d{2}))$/,At=["January","February","March","April","May","June","July","August","September","October","November","December"],jn=At.map(t=>t.slice(0,3)),Nt=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Dn=Nt.map(t=>t.slice(0,3));class R{constructor(e,n,r){this.locale=n,this.DateTimeFormat=Et(),this.date=new Date(e),this.timezoneFixed=r!==void 0,r===void 0&&(r=this.date.getTimezoneOffset()),this.timezoneOffset=d(r)?R.getTimezoneOffset(r,this.date):r,this.timezoneName=d(r)?r:"";const s=(this.date.getTimezoneOffset()-this.timezoneOffset)*An,i=this.date.getTime()+s;this.displayDate=new Date(i)}getTime(){return this.displayDate.getTime()}getMilliseconds(){return this.displayDate.getMilliseconds()}getSeconds(){return this.displayDate.getSeconds()}getMinutes(){return this.displayDate.getMinutes()}getHours(){return this.displayDate.getHours()}getDay(){return this.displayDate.getDay()}getDate(){return this.displayDate.getDate()}getMonth(){return this.displayDate.getMonth()}getFullYear(){return this.displayDate.getFullYear()}toLocaleString(e,n){return n?.timeZone?this.date.toLocaleString(e,n):this.displayDate.toLocaleString(e,n)}toLocaleTimeString(e){return this.displayDate.toLocaleTimeString(e)}toLocaleDateString(e){return this.displayDate.toLocaleDateString(e)}getTimezoneOffset(){return this.timezoneOffset}getTimeZoneName(){if(this.timezoneFixed)return this.timezoneName;if(this.DateTimeFormat)return this.DateTimeFormat().resolvedOptions().timeZone}getLongMonthName(){var e;return(e=this.format({month:"long"}))!==null&&e!==void 0?e:At[this.getMonth()]}getShortMonthName(){var e;return(e=this.format({month:"short"}))!==null&&e!==void 0?e:jn[this.getMonth()]}getLongWeekdayName(){var e;return(e=this.format({weekday:"long"}))!==null&&e!==void 0?e:Nt[this.displayDate.getDay()]}getShortWeekdayName(){var e;return(e=this.format({weekday:"short"}))!==null&&e!==void 0?e:Dn[this.displayDate.getDay()]}valid(){return!isNaN(this.getTime())}format(e){return this.DateTimeFormat&&this.DateTimeFormat(this.locale,e).format(this.displayDate)}static createDateFixedToTimezone(e,n){const r=e.match(Nn);if(r&&r[1]==="Z")return new R(+new Date(e),n,0);if(r&&r[2]&&r[3]&&r[4]){const[,,s,i,o]=r,l=(s==="+"?-1:1)*(parseInt(i,10)*60+parseInt(o,10));return new R(+new Date(e),n,l)}return new R(e,n)}static getTimezoneOffset(e,n){const r=n.toLocaleString("en-US",{timeZone:e}),s=n.toLocaleString("en-US",{timeZone:"UTC"}),i=new Date(r);return(+new Date(s)-+i)/(60*1e3)}}class Oe{constructor(e,n){this.base=0,this.message=`${e} limit exceeded`,this.limit=n}use(e){e=+e||0,S(this.base+e<=this.limit,this.message),this.base+=e}check(e){e=+e||0,S(e<=this.limit,this.message)}}class De extends z{constructor(e,[n,r],s,i,o,l,h,a){super(e,s,i,o,a),this.trimLeft=!1,this.trimRight=!1;const c=s[n]==="-",f=s[r-1]==="-";let g=c?n+1:n,k=f?r-1:r;for(;g<k&&m[s.charCodeAt(g)]&te;)g++;for(;k>g&&m[s.charCodeAt(k-1)]&te;)k--;this.contentRange=[g,k],this.trimLeft=c||l,this.trimRight=f||h}get content(){return this.input.slice(this.contentRange[0],this.contentRange[1])}}class nt extends De{constructor(e,n,r,s,i){const{trimTagLeft:o,trimTagRight:l,tagDelimiterLeft:h,tagDelimiterRight:a}=s,[c,f]=[n+h.length,r-a.length];super(y.Tag,[c,f],e,n,r,o,l,i),this.tokenizer=new N(e,s.operators,i,this.contentRange),this.name=this.tokenizer.readTagName(),this.tokenizer.assert(this.name,"illegal tag syntax, tag name expected"),this.tokenizer.skipBlank(),this.args=this.tokenizer.input.slice(this.tokenizer.p,this.contentRange[1])}}class Mn extends De{constructor(e,n,r,s,i){const{trimOutputLeft:o,trimOutputRight:l,outputDelimiterLeft:h,outputDelimiterRight:a}=s,c=[n+h.length,r-a.length];super(y.Output,c,e,n,r,o,l,i)}}class rt extends z{constructor(e,n,r,s){super(y.HTML,e,n,r,s),this.input=e,this.begin=n,this.end=r,this.file=s,this.trimLeft=0,this.trimRight=0}getContent(){return this.input.slice(this.begin+this.trimLeft,this.end-this.trimRight)}}class Cn extends z{constructor(e,n,r,s){super(y.Number,e,n,r,s),this.input=e,this.begin=n,this.end=r,this.file=s,this.content=Number(this.getText())}}class xe extends z{constructor(e,n,r,s){super(y.Word,e,n,r,s),this.input=e,this.begin=n,this.end=r,this.file=s,this.content=this.getText()}}class Vn extends z{constructor(e,n,r,s){super(y.Literal,e,n,r,s),this.input=e,this.begin=n,this.end=r,this.file=s,this.literal=this.getText(),this.content=zt[this.literal]}}const st={"==":2,"!=":2,">":2,"<":2,">=":2,"<=":2,contains:2,not:1,and:0,or:0},$n={"==":0,"!=":0,">":0,"<":0,">=":0,"<=":0,contains:0,not:1,and:0,or:0};class In extends z{constructor(e,n,r,s){super(y.Operator,e,n,r,s),this.input=e,this.begin=n,this.end=r,this.file=s,this.operator=this.getText()}getPrecedence(){const e=this.getText();return e in st?st[e]:1}}class it extends z{constructor(e,n,r,s,i,o){super(y.PropertyAccess,r,s,i,o),this.variable=e,this.props=n}}class jt extends z{constructor(e,n,r,s,i,o){super(y.Filter,r,s,i,o),this.name=e,this.args=n}}class Pn extends z{constructor(e,n,r,s,i,o){super(y.Hash,e,n,r,o),this.input=e,this.begin=n,this.end=r,this.name=s,this.value=i,this.file=o}}const qn=/[\da-fA-F]/,ot=/[0-7]/,lt={b:"\b",f:"\f",n:`
|
|
10
|
+
`,r:"\r",t:" ",v:"\v"};function at(t){const e=t.charCodeAt(0);return e>=97?e-87:e>=65?e-55:e-48}function Bn(t){let e="";for(let n=1;n<t.length-1;n++){if(t[n]!=="\\"){e+=t[n];continue}if(lt[t[n+1]]!==void 0)e+=lt[t[++n]];else if(t[n+1]==="u"){let r=0,s=n+2;for(;s<=n+5&&qn.test(t[s]);)r=r*16+at(t[s++]);n=s-1,e+=String.fromCharCode(r)}else if(!ot.test(t[n+1]))e+=t[++n];else{let r=n+1,s=0;for(;r<=n+3&&ot.test(t[r]);)s=s*8+at(t[r++]);n=r-1,e+=String.fromCharCode(s)}}return e}class Un extends z{constructor(e,n,r,s){super(y.Quoted,e,n,r,s),this.input=e,this.begin=n,this.end=r,this.file=s,this.content=Bn(this.getText())}}class Hn extends z{constructor(e,n,r,s,i,o){super(y.Range,e,n,r,o),this.input=e,this.begin=n,this.end=r,this.lhs=s,this.rhs=i,this.file=o}}class Wn extends De{constructor(e,n,r,s,i){super(y.Tag,[n,r],e,n,r,!1,!1,i),this.tokenizer=new N(e,s.operators,i,this.contentRange),this.name=this.tokenizer.readTagName(),this.tokenizer.assert(this.name,"illegal liquid tag syntax"),this.tokenizer.skipBlank()}get args(){return this.tokenizer.input.slice(this.tokenizer.p,this.contentRange[1])}}class Yn extends z{constructor(e,n,r,s,i,o){super(y.FilteredValue,r,s,i,o),this.initial=e,this.filters=n,this.input=r,this.begin=s,this.end=i,this.file=o}}const Jn={now:()=>Date.now()};function Dt(){return typeof global=="object"&&global.performance||typeof window=="object"&&window.performance||Jn}class Zn{renderTemplatesToNodeStream(e,n){const r=new Tn;return Promise.resolve().then(()=>D(this.renderTemplates(e,n,r))).then(()=>r.end(),s=>r.error(s)),r.stream}*renderTemplates(e,n,r){r||(r=n.opts.keepOutputType?new vn:new Ot);const s=[];for(const i of e){n.renderLimit.check(Dt().now());try{const o=yield i.render(n,r);if(o&&r.write(o),n.breakCalled||n.continueCalled)break}catch(o){const l=Z.is(o)?o:new un(o,i);if(n.opts.catchAllErrors)s.push(l);else throw l}}if(s.length)throw new Ft(s);return r.buffer}}class Qn{constructor(e){this.postfix=[...er(e)]}*evaluate(e,n){S(e,"unable to evaluate: context not defined");const r=[];for(const s of this.postfix)if(qt(s)){const i=r.pop();let o;if($n[s.operator]===1)o=yield e.opts.operators[s.operator](i,e);else{const l=r.pop();o=yield e.opts.operators[s.operator](l,i,e)}r.push(o)}else r.push(yield b(s,e,n));return r[0]}valid(){return!!this.postfix.length}}function*b(t,e,n=!1){if(t){if("content"in t)return t.content;if(ge(t))return yield Gn(t,e,n);if(Bt(t))return yield Kn(t,e)}}function*Gn(t,e,n){const r=[];for(const s of t.props)r.push(yield b(s,e,!1));try{if(t.variable){const s=yield b(t.variable,e,n);return yield e._getFromScope(s,r)}else return yield e._get(r)}catch(s){if(n&&s.name==="InternalUndefinedVariableError")return null;throw new fn(s,t)}}function Xn(t){return t.content}function*Kn(t,e){const n=yield b(t.lhs,e),r=yield b(t.rhs,e);return e.memoryLimit.use(r-n+1),vt(+n,+r+1)}function*er(t){const e=[];for(const n of t)if(qt(n)){for(;e.length&&e[e.length-1].getPrecedence()>n.getPrecedence();)yield e.pop();e.push(n)}else yield n;for(;e.length;)yield e.pop()}function U(t,e){return!we(t,e)}function we(t,e){return t=p(t),e.opts.jsTruthy?!t:t===!1||t===void 0||t===null}const tr={"==":C,"!=":(t,e)=>!C(t,e),">":(t,e)=>A(t)?t.gt(e):A(e)?e.lt(t):p(t)>p(e),"<":(t,e)=>A(t)?t.lt(e):A(e)?e.gt(t):p(t)<p(e),">=":(t,e)=>A(t)?t.geq(e):A(e)?e.leq(t):p(t)>=p(e),"<=":(t,e)=>A(t)?t.leq(e):A(e)?e.geq(t):p(t)<=p(e),contains:(t,e)=>(t=p(t),_(t)?t.some(n=>C(n,e)):T(t?.indexOf)?t.indexOf(p(e))>-1:!1),not:(t,e)=>we(p(t),e),and:(t,e,n)=>U(p(t),n)&&U(p(e),n),or:(t,e,n)=>U(p(t),n)||U(p(e),n)};function C(t,e){return A(t)?t.equals(e):A(e)?e.equals(t):(t=p(t),e=p(e),_(t)?_(e)&&nr(t,e):t===e)}function nr(t,e){return t.length!==e.length?!1:!t.some((n,r)=>!C(n,e[r]))}function rr(t,e){return t.some(n=>C(n,e))}class Te{constructor(e,n,r,s){this.key=e,this.value=n,this.next=r,this.prev=s}}class ct{constructor(e,n=0){this.limit=e,this.size=n,this.cache={},this.head=new Te("HEAD",null,null,null),this.tail=new Te("TAIL",null,null,null),this.head.next=this.tail,this.tail.prev=this.head}write(e,n){if(this.cache[e])this.cache[e].value=n;else{const r=new Te(e,n,this.head.next,this.head);this.head.next.prev=r,this.head.next=r,this.cache[e]=r,this.size++,this.ensureLimit()}}read(e){if(!this.cache[e])return;const{value:n}=this.cache[e];return this.remove(e),this.write(e,n),n}remove(e){const n=this.cache[e];n.prev.next=n.next,n.next.prev=n.prev,delete this.cache[e],this.size--}clear(){this.head.next=this.tail,this.tail.prev=this.head,this.size=0,this.cache={}}ensureLimit(){this.size>this.limit&&this.remove(this.tail.prev.key)}}function Mt(t,e){const n=document.createElement("base");n.href=t;const r=document.getElementsByTagName("head")[0];r.insertBefore(n,r.firstChild);const s=document.createElement("a");s.href=e;const i=s.href;return r.removeChild(n),i}function sr(t,e,n){return t.length&&Tt(t)!=="/"&&(t+="/"),Mt(t,e).replace(/^(\w+:\/\/[^/]+)(\/[^?]+)/,(s,i,o)=>{const l=o.split("/").pop();return/\.\w+$/.test(l)?s:i+o+n})}function ir(t){return x(this,void 0,void 0,function*(){return new Promise((e,n)=>{const r=new XMLHttpRequest;r.onload=()=>{r.status>=200&&r.status<300?e(r.responseText):n(new Error(r.statusText))},r.onerror=()=>{n(new Error("An error occurred whilst receiving the response."))},r.open("GET",t),r.send()})})}function or(t){const e=new XMLHttpRequest;if(e.open("GET",t,!1),e.send(),e.status<200||e.status>=300)throw new Error(e.statusText);return e.responseText}function lr(t){return x(this,void 0,void 0,function*(){return!0})}function ar(t){return!0}function cr(t){return Mt(t,".")}const hr="/";var ur=Object.freeze({__proto__:null,resolve:sr,readFile:ir,readFileSync:or,exists:lr,existsSync:ar,dirname:cr,sep:hr});function fr(t,e,...n){return t=p(t),_(t)||d(t)?t.length?t:e:t===!1&&new Map(n).get("allow_false")?!1:we(t,this.context)?e:t}function ht(t,e=0){return JSON.stringify(t,null,e)}function dr(t,e=0){const n=[];return JSON.stringify(t,function(r,s){if(typeof s!="object"||s===null)return s;for(;n.length>0&&n[n.length-1]!==this;)n.pop();return n.includes(s)?"[Circular]":(n.push(s),s)},e)}function pr(t){return Number(t)}const gr={raw:!0,handler:St};var Ct={default:fr,raw:gr,jsonify:ht,to_integer:pr,json:ht,inspect:dr};const mr={"&":"&","<":"<",">":">",'"':""","'":"'"},yr={"&":"&","<":"<",">":">",""":'"',"'":"'"};function be(t){return t=u(t),this.context.memoryLimit.use(t.length),t.replace(/&|<|>|"|'/g,e=>mr[e])}function kr(t){return be.call(this,t)}function wr(t){return t=u(t),this.context.memoryLimit.use(t.length),t.replace(/&(amp|lt|gt|#34|#39);/g,e=>yr[e])}function br(t){return be.call(this,wr.call(this,t))}function xr(t){const e=u(t);return this.context.memoryLimit.use(e.length),e.replace(/\r?\n/gm,`<br />
|
|
11
|
+
`)}function Tr(t){const e=u(t);return this.context.memoryLimit.use(e.length),e.replace(/<script[\s\S]*?<\/script>|<style[\s\S]*?<\/style>|<.*?>|<!--[\s\S]*?-->/g,"")}var vr=Object.freeze({__proto__:null,escape:be,xml_escape:kr,escape_once:br,newline_to_br:xr,strip_html:Tr});class _r{constructor(e){this.mapping=e,this.sep="/"}exists(e){return x(this,void 0,void 0,function*(){return this.existsSync(e)})}existsSync(e){return!O(this.mapping[e])}readFile(e){return x(this,void 0,void 0,function*(){return this.readFileSync(e)})}readFileSync(e){const n=this.mapping[e];if(O(n))throw new Error(`ENOENT: ${e}`);return n}dirname(e){const n=e.split(this.sep);return n.pop(),n.join(this.sep)}resolve(e,n,r){if(n+=r,e===".")return n;const s=e.split(/\/+/);for(const i of n.split(this.sep))i==="."||i===""||(i===".."?(s.length>1||s[0]!=="")&&s.pop():s.push(i));return s.join(this.sep)}}const K={root:["."],layouts:["."],partials:["."],relativeReference:!0,jekyllInclude:!1,keyValueSeparator:":",cache:void 0,extname:"",fs:ur,dynamicPartials:!0,jsTruthy:!1,dateFormat:"%A, %B %-e, %Y at %-l:%M %P %z",locale:"",trimTagRight:!1,trimTagLeft:!1,trimOutputRight:!1,trimOutputLeft:!1,greedy:!0,tagDelimiterLeft:"{%",tagDelimiterRight:"%}",outputDelimiterLeft:"{{",outputDelimiterRight:"}}",preserveTimezones:!1,strictFilters:!1,strictVariables:!1,ownPropertyOnly:!0,lenientIf:!1,globals:{},keepOutputType:!1,operators:tr,memoryLimit:1/0,parseLimit:1/0,renderLimit:1/0};function Sr(t){var e,n;if(t.hasOwnProperty("root")&&(t.hasOwnProperty("partials")||(t.partials=t.root),t.hasOwnProperty("layouts")||(t.layouts=t.root)),t.hasOwnProperty("cache")){let r;typeof t.cache=="number"?r=t.cache>0?new ct(t.cache):void 0:typeof t.cache=="object"?r=t.cache:r=t.cache?new ct(1024):void 0,t.cache=r}return t=Object.assign(Object.assign(Object.assign({},K),t.jekyllInclude?{dynamicPartials:!1}:{}),t),(!t.fs.dirname||!t.fs.sep)&&t.relativeReference&&(console.warn("[LiquidJS] `fs.dirname` and `fs.sep` are required for relativeReference, set relativeReference to `false` to suppress this warning"),t.relativeReference=!1),t.root=he(t.root),t.partials=he(t.partials),t.layouts=he(t.layouts),t.outputEscape=t.outputEscape&&Fr(t.outputEscape),t.locale||(t.locale=(n=(e=Et())===null||e===void 0?void 0:e().resolvedOptions().locale)!==null&&n!==void 0?n:"en-US"),t.templates&&(t.fs=new _r(t.templates),t.relativeReference=!0,t.root=t.partials=t.layouts="."),t}function Fr(t){return t==="escape"?be:t==="json"?Ct.json:(S(T(t),"`outputEscape` need to be of type string or function"),t)}function he(t){let e=[];return _(t)&&(e=t),d(t)&&(e=[t]),e}function Lr(t,e){let n=!1;for(let r=0;r<t.length;r++){const s=t[r];Mr(s)&&(!n&&s.trimLeft&&Or(t[r-1],e.greedy),Q(s)&&(s.name==="raw"?n=!0:s.name==="endraw"&&(n=!1)),!n&&s.trimRight&&zr(t[r+1],e.greedy))}}function Or(t,e){if(!t||!Ce(t))return;const n=e?te:Lt;for(;m[t.input.charCodeAt(t.end-1-t.trimRight)]&n;)t.trimRight++}function zr(t,e){if(!t||!Ce(t))return;const n=e?te:Lt;for(;m[t.input.charCodeAt(t.begin+t.trimLeft)]&n;)t.trimLeft++;t.input.charAt(t.begin+t.trimLeft)===`
|
|
12
|
+
`&&t.trimLeft++}class N{constructor(e,n=K.operators,r,s){this.input=e,this.file=r,this.rawBeginAt=-1,this.p=s?s[0]:0,this.N=s?s[1]:e.length,this.opTrie=Ke(n),this.literalTrie=Ke(zt)}readExpression(){return new Qn(this.readExpressionTokens())}*readExpressionTokens(){for(;this.p<this.N;){const e=this.readOperator();if(e){yield e;continue}const n=this.readValue();if(n){yield n;continue}return}}readOperator(){this.skipBlank();const e=this.matchTrie(this.opTrie);if(e!==-1)return new In(this.input,this.p,this.p=e,this.file)}matchTrie(e){let n=e,r=this.p,s;for(;n[this.input[r]]&&r<this.N;)n=n[this.input[r++]],n.end&&(s=n);return!s||s.needBoundary&&ae(this.peek(r-this.p))?-1:r}readFilteredValue(){const e=this.p,n=this.readExpression();this.assert(n.valid(),`invalid value expression: ${this.snapshot()}`);const r=this.readFilters();return new Yn(n,r,this.input,e,this.p,this.file)}readFilters(){const e=[];for(;;){const n=this.readFilter();if(!n)return e;e.push(n)}}readFilter(){if(this.skipBlank(),this.end())return null;this.assert(this.read()==="|",'expected "|" before filter');const e=this.readIdentifier();if(!e.size())return this.assert(this.end(),"expected filter name"),null;const n=[];if(this.skipBlank(),this.peek()===":")do{++this.p;const r=this.readFilterArg();r&&n.push(r),this.skipBlank(),this.assert(this.end()||this.peek()===","||this.peek()==="|",()=>`unexpected character ${this.snapshot()}`)}while(this.peek()===",");else if(!(this.peek()==="|"||this.end()))throw this.error('expected ":" after filter name');return new jt(e.getText(),n,this.input,e.begin,this.p,this.file)}readFilterArg(){const e=this.readValue();if(!e)return;if(this.skipBlank(),this.peek()!==":")return e;++this.p;const n=this.readValue();return[e.getText(),n]}readTopLevelTokens(e=K){const n=[];for(;this.p<this.N;){const r=this.readTopLevelToken(e);n.push(r)}return Lr(n,e),n}readTopLevelToken(e){const{tagDelimiterLeft:n,outputDelimiterLeft:r}=e;return this.rawBeginAt>-1?this.readEndrawOrRawContent(e):this.match(n)?this.readTagToken(e):this.match(r)?this.readOutputToken(e):this.readHTMLToken([n,r])}readHTMLToken(e){const n=this.p;for(;this.p<this.N&&!e.some(r=>this.match(r));)++this.p;return new rt(this.input,n,this.p,this.file)}readTagToken(e){const{file:n,input:r}=this,s=this.p;if(this.readToDelimiter(e.tagDelimiterRight)===-1)throw this.error(`tag ${this.snapshot(s)} not closed`,s);const i=new nt(r,s,this.p,e,n);return i.name==="raw"&&(this.rawBeginAt=s),i}readToDelimiter(e,n=!1){for(this.skipBlank();this.p<this.N;){if(n&&this.peekType()&Qe){this.readQuoted();continue}if(++this.p,this.rmatch(e))return this.p}return-1}readOutputToken(e=K){const{file:n,input:r}=this,{outputDelimiterRight:s}=e,i=this.p;if(this.readToDelimiter(s,!0)===-1)throw this.error(`output ${this.snapshot(i)} not closed`,i);return new Mn(r,i,this.p,e,n)}readEndrawOrRawContent(e){const{tagDelimiterLeft:n,tagDelimiterRight:r}=e,s=this.p;let i=this.readTo(n)-n.length;for(;this.p<this.N;){if(this.readIdentifier().getText()!=="endraw"){i=this.readTo(n)-n.length;continue}for(;this.p<=this.N;){if(this.rmatch(r)){const o=this.p;return s===i?(this.rawBeginAt=-1,new nt(this.input,s,o,e,this.file)):(this.p=i,new rt(this.input,s,i,this.file))}if(this.rmatch(n))break;this.p++}}throw this.error(`raw ${this.snapshot(this.rawBeginAt)} not closed`,s)}readLiquidTagTokens(e=K){const n=[];for(;this.p<this.N;){const r=this.readLiquidTagToken(e);r&&n.push(r)}return n}readLiquidTagToken(e){if(this.skipBlank(),this.end())return;const n=this.p;this.readToDelimiter(`
|
|
13
|
+
`);const r=this.p;return new Wn(this.input,n,r,e,this.file)}error(e,n=this.p){return new cn(e,new xe(this.input,n,this.N,this.file))}assert(e,n,r){if(!e)throw this.error(typeof n=="function"?n():n,r)}snapshot(e=this.p){return JSON.stringify(an(this.input.slice(e,this.N),32))}readWord(){return this.readIdentifier()}readIdentifier(){this.skipBlank();const e=this.p;for(;!this.end()&&ae(this.peek());)++this.p;return new xe(this.input,e,this.p,this.file)}readNonEmptyIdentifier(){const e=this.readIdentifier();return e.size()?e:void 0}readTagName(){return this.skipBlank(),this.input[this.p]==="#"?this.input.slice(this.p,++this.p):this.readIdentifier().getText()}readHashes(e){const n=[];for(;;){const r=this.readHash(e);if(!r)return n;n.push(r)}}readHash(e){this.skipBlank(),this.peek()===","&&++this.p;const n=this.p,r=this.readNonEmptyIdentifier();if(!r)return;let s;this.skipBlank();const i=d(e)?e:e?"=":":";return this.peek()===i&&(++this.p,s=this.readValue()),new Pn(this.input,n,this.p,r,s,this.file)}remaining(){return this.input.slice(this.p,this.N)}advance(e=1){this.p+=e}end(){return this.p>=this.N}read(){return this.input[this.p++]}readTo(e){for(;this.p<this.N;)if(++this.p,this.rmatch(e))return this.p;return-1}readValue(){this.skipBlank();const e=this.p,n=this.readLiteral()||this.readQuoted()||this.readRange()||this.readNumber(),r=this.readProperties(!n);return r.length?new it(n,r,this.input,e,this.p):n}readScopeValue(){this.skipBlank();const e=this.p,n=this.readProperties();if(n.length)return new it(void 0,n,this.input,e,this.p)}readProperties(e=!0){const n=[];for(;;){if(this.peek()==="["){this.p++;const r=this.readValue()||new xe(this.input,this.p,this.p,this.file);this.assert(this.readTo("]")!==-1,"[ not closed"),n.push(r);continue}if(e&&!n.length){const r=this.readNonEmptyIdentifier();if(r){n.push(r);continue}}if(this.peek()==="."&&this.peek(1)!=="."){this.p++;const r=this.readNonEmptyIdentifier();if(!r)break;n.push(r);continue}break}return n}readNumber(){this.skipBlank();let e=!1,n=!1,r=0;for(this.peekType()&wn&&r++;this.p+r<=this.N;)if(this.peekType(r)&kn)n=!0,r++;else if(this.peek(r)==="."&&this.peek(r+1)!=="."){if(e||!n)return;e=!0,r++}else break;if(n&&!ae(this.peek(r))){const s=new Cn(this.input,this.p,this.p+r,this.file);return this.advance(r),s}}readLiteral(){this.skipBlank();const e=this.matchTrie(this.literalTrie);if(e===-1)return;const n=new Vn(this.input,this.p,e,this.file);return this.p=e,n}readRange(){this.skipBlank();const e=this.p;if(this.peek()!=="(")return;++this.p;const n=this.readValueOrThrow();this.skipBlank(),this.assert(this.read()==="."&&this.read()===".","invalid range syntax");const r=this.readValueOrThrow();return this.skipBlank(),this.assert(this.read()===")","invalid range syntax"),new Hn(this.input,e,this.p,n,r,this.file)}readValueOrThrow(){const e=this.readValue();return this.assert(e,()=>`unexpected token ${this.snapshot()}, value expected`),e}readQuoted(){this.skipBlank();const e=this.p;if(!(this.peekType()&Qe))return;++this.p;let n=!1;for(;this.p<this.N&&(++this.p,!(this.input[this.p-1]===this.input[e]&&!n));)n?n=!1:this.input[this.p-1]==="\\"&&(n=!0);return new Un(this.input,e,this.p,this.file)}*readFileNameTemplate(e){const{outputDelimiterLeft:n}=e,r=[","," ",n],s=new Set(r);for(;this.p<this.N&&!s.has(this.peek());)yield this.match(n)?this.readOutputToken(e):this.readHTMLToken(r)}match(e){for(let n=0;n<e.length;n++)if(e[n]!==this.input[this.p+n])return!1;return!0}rmatch(e){for(let n=0;n<e.length;n++)if(e[e.length-1-n]!==this.input[this.p-1-n])return!1;return!0}peekType(e=0){return this.p+e>=this.N?0:m[this.input.charCodeAt(this.p+e)]}peek(e=0){return this.p+e>=this.N?"":this.input[this.p+e]}skipBlank(){for(;this.peekType()&te;)++this.p}}class Rr{constructor(e,n){this.handlers={},this.stopRequested=!1,this.tokens=e,this.parseToken=n}on(e,n){return this.handlers[e]=n,this}trigger(e,n){const r=this.handlers[e];return r?(r.call(this,n),!0):!1}start(){this.trigger("start");let e;for(;!this.stopRequested&&(e=this.tokens.shift());){if(this.trigger("token",e)||Q(e)&&this.trigger(`tag:${e.name}`,e))continue;const n=this.parseToken(e,this.tokens);this.trigger("template",n)}return this.stopRequested||this.trigger("end"),this}stop(){return this.stopRequested=!0,this}}class Me{constructor(e){this.token=e}}class w extends Me{constructor(e,n,r){super(e),this.name=e.name,this.liquid=r,this.tokenizer=e.tokenizer}}class re{constructor(e,n){this.hash={};const r=e instanceof N?e:new N(e,{});for(const s of r.readHashes(n))this.hash[s.name.content]=s.value}*render(e){const n={};for(const r of Object.keys(this.hash))n[r]=this.hash[r]===void 0?!0:yield b(this.hash[r],e);return n}}function Er(t){return class extends w{constructor(e,n,r){super(e,n,r),T(t.parse)&&t.parse.call(this,e,n)}*render(e,n){const r=yield new re(this.token.args,e.opts.keyValueSeparator).render(e);return yield t.render.call(this,e,n,r)}}}function Vt(t){return _(t)}class $t{constructor(e,n,r){this.token=e,this.name=e.name,this.handler=T(n)?n:T(n?.handler)?n.handler:St,this.raw=!T(n)&&!!n?.raw,this.args=e.args,this.liquid=r}*render(e,n){const r=[];for(const s of this.args)Vt(s)?r.push([s[0],yield b(s[1],n)]):r.push(yield b(s,n));return yield this.handler.apply({context:n,token:this.token,liquid:this.liquid},[e,...r])}}class L{constructor(e,n){this.filters=[];const r=typeof e=="string"?new N(e,n.options.operators).readFilteredValue():e;this.initial=r.initial,this.filters=r.filters.map(s=>new $t(s,this.getFilter(n,s.name),n))}*value(e,n){n=n||e.opts.lenientIf&&this.filters.length>0&&this.filters[0].name==="default";let r=yield this.initial.evaluate(e,n);for(const s of this.filters)r=yield s.render(r,e);return r}getFilter(e,n){const r=e.filters[n];return S(r||!e.options.strictFilters,()=>`undefined filter: ${n}`),r}}class Ar extends Me{constructor(e,n){var r;super(e);const s=new N(e.input,n.options.operators,e.file,e.contentRange);this.value=new L(s.readFilteredValue(),n);const i=this.value.filters,o=n.options.outputEscape;if(!(!((r=i[i.length-1])===null||r===void 0)&&r.raw)&&o){const l=new jt(toString.call(o),[],"",0,0);i.push(new $t(l,o,n))}}*render(e,n){const r=yield this.value.value(e,!1);n.write(r)}*arguments(){yield this.value}}class Nr extends Me{constructor(e){super(e),this.str=e.getContent()}*render(e,n){n.write(this.str)}}class W{constructor(e,n){this.segments=e,this.location=n}toString(){return pe(this.segments,!0)}toArray(){function*e(...n){for(const r of n)r instanceof W?yield Array.from(e(...r.segments)):yield r}return Array.from(e(...this.segments))}}class ve{constructor(){this.map=new Map}get(e){const n=pe([e.segments[0]]);return this.map.has(n)||this.map.set(n,[]),this.map.get(n)}has(e){return this.map.has(pe([e.segments[0]]))}push(e){this.get(e).push(e)}asObject(){return Object.fromEntries(this.map)}}const It={partials:!0};function*Pt(t,e,n){const r=new ve,s=new ve,i=new ve,o=new ut(new Set),l=new Set;function h(c,f){r.push(c);const g=f.alias(c);if(g!==void 0){const k=g.segments[0];d(k)&&!o.has(k)&&s.push(g)}else{const k=c.segments[0];d(k)&&!f.has(k)&&s.push(c)}for(const k of c.segments)k instanceof W&&h(k,f)}function*a(c,f){if(c.arguments)for(const g of c.arguments())for(const k of ft(g))h(k,f);if(c.localScope)for(const g of c.localScope()){f.add(g.content),f.deleteAlias(g.content);const[k,se]=g.getPosition();i.push(new W([g.content],{row:k,col:se,file:g.file}))}if(c.children)if(c.partialScope){const g=c.partialScope();if(g===void 0){for(const P of yield c.children(e,n))yield a(P,f);return}if(l.has(g.name))return;const k=new Set,se=g.isolated?new ut(k):f.push(k);for(const P of g.scope)if(d(P))k.add(P);else{const[Ue,Gt]=P;k.add(Ue);const He=Array.from(ft(Gt));He.length&&se.setAlias(Ue,He[0].segments)}for(const P of yield c.children(e,n))yield a(P,se),l.add(g.name);se.pop()}else{c.blockScope&&f.push(new Set(c.blockScope()));for(const g of yield c.children(e,n))yield a(g,f);c.blockScope&&f.pop()}}for(const c of t)yield a(c,o);return{variables:r.asObject(),globals:s.asObject(),locals:i.asObject()}}function V(t,e={}){const n=Object.assign(Object.assign({},It),e);return D(Pt(t,n.partials,!1))}function $(t,e={}){const n=Object.assign(Object.assign({},It),e);return M(Pt(t,n.partials,!0))}class ut{constructor(e){this.stack=[{names:e,aliases:new Map}]}has(e){for(const n of this.stack)if(n.names.has(e))return!0;return!1}push(e){return this.stack.push({names:e,aliases:new Map}),this}pop(){var e;return(e=this.stack.pop())===null||e===void 0?void 0:e.names}add(e){this.stack[0].names.add(e)}alias(e){const n=e.segments[0];if(!d(n))return;const r=this.getAlias(n);if(r!==void 0)return new W([...r,...e.segments.slice(1)],e.location)}setAlias(e,n){this.stack[this.stack.length-1].aliases.set(e,n)}deleteAlias(e){this.stack[this.stack.length-1].aliases.delete(e)}getAlias(e){for(const n of this.stack){if(n.aliases.has(e))return n.aliases.get(e);if(n.names.has(e))return}}}function*ft(t){F(t)?yield*ee(t):t instanceof L&&(yield*jr(t))}function*jr(t){for(const e of t.initial.postfix)F(e)&&(yield*ee(e));for(const e of t.filters)for(const n of e.args)Vt(n)&&n[1]?yield*ee(n[1]):F(n)&&(yield*ee(n))}function*ee(t){Bt(t)?(yield*ee(t.lhs),yield*ee(t.rhs)):ge(t)&&(yield ze(t))}function ze(t){const e=[];let n=t.file;const r=t.props[0];n=n||r.file,Re(r)||pt(r)||gt(r)?e.push(r.content):ge(r)&&e.push(...ze(r).segments);for(const o of t.props.slice(1))n=n||o.file,Re(o)||pt(o)||gt(o)?e.push(o.content):ge(o)&&e.push(ze(o));const[s,i]=t.getPosition();return new W(e,{row:s,col:i,file:n})}const dt=/^[\u0080-\uFFFFa-zA-Z_][\u0080-\uFFFFa-zA-Z0-9_-]*$/;function pe(t,e=!1){const n=[],r=t[0];d(r)&&(!e||r.match(dt)?n.push(`${r}`):n.push(`['${r}']`));for(const s of t.slice(1))s instanceof W?n.push(`[${pe(s.segments)}]`):d(s)?s.match(dt)?n.push(`.${s}`):n.push(`['${s}']`):n.push(`[${s}]`);return n.join("")}var Y;(function(t){t.Partials="partials",t.Layouts="layouts",t.Root="root"})(Y||(Y={}));class Dr{constructor(e){if(this.options=e,e.relativeReference){const n=e.fs.sep;S(n,"`fs.sep` is required for relative reference");const r=new RegExp(["."+n,".."+n,"./","../"].map(s=>nn(s)).join("|"));this.shouldLoadRelative=s=>r.test(s)}else this.shouldLoadRelative=n=>!1;this.contains=this.options.fs.contains||(()=>!0)}*lookup(e,n,r,s){const{fs:i}=this.options,o=this.options[n];for(const l of this.candidates(e,o,s,n!==Y.Root))if(r?i.existsSync(l):yield i.exists(l))return l;throw this.lookupError(e,o)}*candidates(e,n,r,s){const{fs:i,extname:o}=this.options;if(this.shouldLoadRelative(e)&&r){const l=i.resolve(this.dirname(r),e,o);for(const h of n)if(!s||this.contains(h,l)){yield l;break}}for(const l of n){const h=i.resolve(l,e,o);(!s||this.contains(l,h))&&(yield h)}if(i.fallback!==void 0){const l=i.fallback(e);l!==void 0&&(yield l)}}dirname(e){const n=this.options.fs;return S(n.dirname,"`fs.dirname` is required for relative reference"),n.dirname(e)}lookupError(e,n){const r=new Error("ENOENT");return r.message=`ENOENT: Failed to lookup "${e}" in "${n}"`,r.code="ENOENT",r}}class q{constructor(e){this.liquid=e,this.cache=this.liquid.options.cache,this.fs=this.liquid.options.fs,this.parseFile=this.cache?this._parseFileCached:this._parseFile,this.loader=new Dr(this.liquid.options),this.parseLimit=new Oe("parse length",e.options.parseLimit)}parse(e,n){e=String(e),this.parseLimit.use(e.length);const s=new N(e,this.liquid.options.operators,n).readTopLevelTokens(this.liquid.options);return this.parseTokens(s)}parseTokens(e){let n;const r=[],s=[];for(;n=e.shift();)try{r.push(this.parseToken(n,e))}catch(i){if(this.liquid.options.catchAllErrors)s.push(i);else throw i}if(s.length)throw new Ft(s);return r}parseToken(e,n){try{if(Q(e)){const r=this.liquid.tags[e.name];return S(r,`tag "${e.name}" not found`),new r(e,n,this.liquid,this)}return Cr(e)?new Ar(e,this.liquid):new Nr(e)}catch(r){throw Z.is(r)?r:new hn(r,e)}}parseStream(e){return new Rr(e,(n,r)=>this.parseToken(n,r))}*_parseFileCached(e,n,r=Y.Root,s){const i=this.cache,o=this.loader.shouldLoadRelative(e)?s+","+e:r+":"+e,l=yield i.read(o);if(l)return l;const h=this._parseFile(e,n,r,s),a=n?yield h:D(h);i.write(o,a);try{return yield a}catch(c){throw i.remove(o),c}}*_parseFile(e,n,r=Y.Root,s){const i=yield this.loader.lookup(e,r,n,s);return this.parse(n?this.fs.readFileSync(i):yield this.fs.readFile(i),i)}}var y;(function(t){t[t.Number=1]="Number",t[t.Literal=2]="Literal",t[t.Tag=4]="Tag",t[t.Output=8]="Output",t[t.HTML=16]="HTML",t[t.Filter=32]="Filter",t[t.Hash=64]="Hash",t[t.PropertyAccess=128]="PropertyAccess",t[t.Word=256]="Word",t[t.Range=512]="Range",t[t.Quoted=1024]="Quoted",t[t.Operator=2048]="Operator",t[t.FilteredValue=4096]="FilteredValue",t[t.Delimited=12]="Delimited"})(y||(y={}));function Mr(t){return!!(E(t)&y.Delimited)}function qt(t){return E(t)===y.Operator}function Ce(t){return E(t)===y.HTML}function Cr(t){return E(t)===y.Output}function Q(t){return E(t)===y.Tag}function Re(t){return E(t)===y.Quoted}function pt(t){return E(t)===y.Number}function ge(t){return E(t)===y.PropertyAccess}function gt(t){return E(t)===y.Word}function Bt(t){return E(t)===y.Range}function F(t){return(E(t)&1667)>0}function E(t){return t?t.kind:-1}class B{constructor(e={},n=K,r={},{memoryLimit:s,renderLimit:i}={}){var o,l,h,a,c;this.scopes=[{}],this.registers={},this.breakCalled=!1,this.continueCalled=!1,this.sync=!!r.sync,this.opts=n,this.globals=(o=r.globals)!==null&&o!==void 0?o:n.globals,this.environments=ye(e)?e:Object(e),this.strictVariables=(l=r.strictVariables)!==null&&l!==void 0?l:this.opts.strictVariables,this.ownPropertyOnly=(h=r.ownPropertyOnly)!==null&&h!==void 0?h:n.ownPropertyOnly,this.memoryLimit=s??new Oe("memory alloc",(a=r.memoryLimit)!==null&&a!==void 0?a:n.memoryLimit),this.renderLimit=i??new Oe("template render",Dt().now()+((c=r.renderLimit)!==null&&c!==void 0?c:n.renderLimit))}getRegister(e){return this.registers[e]=this.registers[e]||{}}setRegister(e,n){return this.registers[e]=n}saveRegister(...e){return e.map(n=>[n,this.getRegister(n)])}restoreRegister(e){return e.forEach(([n,r])=>this.setRegister(n,r))}getAll(){return[this.globals,this.environments,...this.scopes].reduce((e,n)=>de(e,n),{})}get(e){return this.getSync(e)}getSync(e){return M(this._get(e))}*_get(e){const n=this.findScope(e[0]);return yield this._getFromScope(n,e)}getFromScope(e,n){return M(this._getFromScope(e,n))}*_getFromScope(e,n,r=this.strictVariables){d(n)&&(n=n.split("."));for(let s=0;s<n.length;s++)if(e=yield this.readProperty(e,n[s]),r&&rn(e))throw new dn(n.slice(0,s+1).join("."));return e}push(e){return this.scopes.push(e)}pop(){return this.scopes.pop()}bottom(){return this.scopes[0]}spawn(e={}){return new B(e,this.opts,{sync:this.sync,globals:this.globals,strictVariables:this.strictVariables},{renderLimit:this.renderLimit,memoryLimit:this.memoryLimit})}findScope(e){for(let n=this.scopes.length-1;n>=0;n--){const r=this.scopes[n];if(e in r)return r}return e in this.environments?this.environments:this.globals}readProperty(e,n){if(e=bt(e),n=p(n),O(e))return e;if(_(e)&&n<0)return e[e.length+ +n];const r=Vr(e,n,this.ownPropertyOnly);return r===void 0&&e instanceof J?e.liquidMethodMissing(n,this):T(r)?r.call(e):n==="size"?Pr(e):n==="first"?$r(e):n==="last"?Ir(e):r}}function Vr(t,e,n){if(!(n&&!Ee.call(t,e)&&!(t instanceof J)))return t[e]}function $r(t){return _(t)?t[0]:t.first}function Ir(t){return _(t)?t[t.length-1]:t.last}function Pr(t){if(Ee.call(t,"size")||t.size!==void 0)return t.size;if(_(t)||d(t))return t.length;if(typeof t=="object")return Object.keys(t).length}var H;(function(t){t[t.OUTPUT=0]="OUTPUT",t[t.STORE=1]="STORE"})(H||(H={}));const qr=j(Math.abs),Br=j(Math.max),Ur=j(Math.min),Hr=j(Math.ceil),Wr=j((t,e,n=!1)=>n?Math.floor(t/e):t/e),Yr=j(Math.floor),Jr=j((t,e)=>t-e),Zr=j((t,e)=>t+e),Qr=j((t,e)=>t%e),Gr=j((t,e)=>t*e);function Xr(t,e=0){t=Fe(t),e=Fe(e);const n=Math.pow(10,e);return Math.round(t*n)/n}var Kr=Object.freeze({__proto__:null,abs:qr,at_least:Br,at_most:Ur,ceil:Hr,divided_by:Wr,floor:Yr,minus:Jr,plus:Zr,modulo:Qr,times:Gr,round:Xr});const es=t=>decodeURIComponent(u(t)).replace(/\+/g," "),ts=t=>encodeURIComponent(u(t)).replace(/%20/g,"+"),ns=t=>encodeURIComponent(u(t)).replace(/%20/g,"+").replace(/[!'()*]/g,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase()),rs=t=>encodeURI(u(t)).replace(/%5B/g,"[").replace(/%5D/g,"]"),mt=/[^\p{M}\p{L}\p{Nd}]+/ug,ss={raw:/\s+/g,default:mt,pretty:/[^\p{M}\p{L}\p{Nd}._~!$&'()+,;=@]+/ug,ascii:/[^A-Za-z0-9]+/g,latin:mt,none:null};function is(t,e="default",n=!1){t=u(t);const r=ss[e];return r&&(e==="latin"&&(t=os(t)),t=t.replace(r,"-").replace(/^-|-$/g,"")),n?t:t.toLowerCase()}function os(t){return t.replace(/[àáâãäå]/g,"a").replace(/[æ]/g,"ae").replace(/[ç]/g,"c").replace(/[èéêë]/g,"e").replace(/[ìíîï]/g,"i").replace(/[ð]/g,"d").replace(/[ñ]/g,"n").replace(/[òóôõöø]/g,"o").replace(/[ùúûü]/g,"u").replace(/[ýÿ]/g,"y").replace(/[ß]/g,"ss").replace(/[œ]/g,"oe").replace(/[þ]/g,"th").replace(/[ẞ]/g,"SS").replace(/[Œ]/g,"OE").replace(/[Þ]/g,"TH")}var ls=Object.freeze({__proto__:null,url_decode:es,url_encode:ts,cgi_escape:ns,uri_escape:rs,slugify:is});const as=ke(function(t,e){const n=v(t),r=O(e)?" ":u(e),s=n.length*(1+r.length);return this.context.memoryLimit.use(s),n.join(r)}),cs=ke(t=>xt(t)?Tt(t):""),hs=ke(t=>xt(t)?t[0]:""),us=ke(function(t){const e=v(t);return this.context.memoryLimit.use(e.length),[...e].reverse()});function*fs(t,e){const n=[],r=v(t);this.context.memoryLimit.use(r.length);for(const s of r)n.push([s,e?yield this.context._getFromScope(s,u(e).split("."),!1):s]);return n.sort((s,i)=>{const o=s[1],l=i[1];return o<l?-1:o>l?1:0}).map(s=>s[0])}function ds(t,e){const n=u(e),r=e===void 0?Je:(i,o)=>Je(i[n],o[n]),s=v(t);return this.context.memoryLimit.use(s.length),[...s].sort(r)}const ps=t=>t&&t.length||0;function*gs(t,e){const n=[],r=v(t);this.context.memoryLimit.use(r.length);for(const s of r)n.push(yield this.context._getFromScope(s,u(e),!1));return n}function*ms(t,e){let n=0;const r=v(t);for(const s of r){const i=Number(e?yield this.context._getFromScope(s,u(e),!1):s);n+=Number.isNaN(i)?0:i}return n}function ys(t){const e=v(t);return this.context.memoryLimit.use(e.length),e.filter(n=>!O(p(n)))}function Ut(t,e=[]){const n=v(t),r=v(e);return this.context.memoryLimit.use(n.length+r.length),n.concat(r)}function ks(t,e){return Ut.call(this,t,[e])}function ws(t,e){const n=v(t);this.context.memoryLimit.use(n.length);const r=[...n];return r.unshift(e),r}function bs(t){const e=[...v(t)];return e.pop(),e}function xs(t){const e=v(t);this.context.memoryLimit.use(e.length);const n=[...e];return n.shift(),n}function Ts(t,e,n=1){return t=p(t),O(t)?[]:(_(t)||(t=u(t)),e=e<0?t.length+e:e,this.context.memoryLimit.use(n),t.slice(e,e+n))}function Ht(t){return this.context.opts.jekyllWhere?e=>ne.is(t)?C(e,t):_(e)?rr(e,t):C(e,t):t===void 0?e=>U(e,this.context):e=>C(e,t)}function*Wt(t,e,n,r){const s=[];e=v(e),this.context.memoryLimit.use(e.length);const i=new N(u(n)).readScopeValue();for(const l of e)s.push(yield b(i,this.context.spawn(l)));const o=Ht.call(this,r);return e.filter((l,h)=>o(s[h])===t)}function*Yt(t,e,n,r){const s=[],i=new L(u(r),this.liquid),o=v(e);this.context.memoryLimit.use(o.length);for(const l of o){this.context.push({[n]:l});const h=yield i.value(this.context);this.context.pop(),h===t&&s.push(l)}return s}function*vs(t,e,n){return yield*Wt.call(this,!0,t,e,n)}function*_s(t,e,n){return yield*Wt.call(this,!1,t,e,n)}function*Ss(t,e,n){return yield*Yt.call(this,!0,t,e,n)}function*Fs(t,e,n){return yield*Yt.call(this,!1,t,e,n)}function*Ls(t,e){const n=new Map;t=oe(t);const r=new N(u(e)).readScopeValue();this.context.memoryLimit.use(t.length);for(const s of t){const i=yield b(r,this.context.spawn(s));n.has(i)||n.set(i,[]),n.get(i).push(s)}return[...n.entries()].map(([s,i])=>({name:s,items:i}))}function*Os(t,e,n){const r=new Map,s=new L(u(n),this.liquid);t=oe(t),this.context.memoryLimit.use(t.length);for(const i of t){this.context.push({[e]:i});const o=yield s.value(this.context);this.context.pop(),r.has(o)||r.set(o,[]),r.get(o).push(i)}return[...r.entries()].map(([i,o])=>({name:i,items:o}))}function*Ve(t,e,n){const r=new N(u(e)).readScopeValue(),s=v(t),i=Ht.call(this,n);for(let o=0;o<s.length;o++){const l=yield b(r,this.context.spawn(s[o]));if(i(l))return[o,s[o]]}}function*$e(t,e,n){const r=new L(u(n),this.liquid),s=v(t);for(let i=0;i<s.length;i++){this.context.push({[e]:s[i]});const o=yield r.value(this.context);if(this.context.pop(),o)return[i,s[i]]}}function*zs(t,e,n){return!!(yield*Ve.call(this,t,e,n))}function*Rs(t,e,n){return!!(yield*$e.call(this,t,e,n))}function*Es(t,e,n){const r=yield*Ve.call(this,t,e,n);return r?r[0]:void 0}function*As(t,e,n){const r=yield*$e.call(this,t,e,n);return r?r[0]:void 0}function*Ns(t,e,n){const r=yield*Ve.call(this,t,e,n);return r?r[1]:void 0}function*js(t,e,n){const r=yield*$e.call(this,t,e,n);return r?r[1]:void 0}function Ds(t){return t=v(t),this.context.memoryLimit.use(t.length),[...new Set(t)]}function Ms(t,e=1){if(t=p(t),O(t))return[];_(t)||(t=u(t)),this.context.memoryLimit.use(e);const n=[...t].sort(()=>Math.random()-.5);return e===1?n[0]:n.slice(0,e)}var Cs=Object.freeze({__proto__:null,join:as,last:cs,first:hs,reverse:us,sort:fs,sort_natural:ds,size:ps,map:gs,sum:ms,compact:ys,concat:Ut,push:ks,unshift:ws,pop:bs,shift:xs,slice:Ts,where:vs,reject:_s,where_exp:Ss,reject_exp:Fs,group_by:Ls,group_by_exp:Os,has:zs,has_exp:Rs,find_index:Es,find_index_exp:As,find:Ns,find_exp:js,uniq:Ds,sample:Ms});function Ie(t,e,n){var r,s,i;const o=((r=t?.length)!==null&&r!==void 0?r:0)+((s=e?.length)!==null&&s!==void 0?s:0)+((i=n?.length)!==null&&i!==void 0?i:0);this.context.memoryLimit.use(o);const l=Zt(t,this.context.opts,n);return l?(e=p(e),e=O(e)?this.context.opts.dateFormat:u(e),ce(l,e)):t}function Vs(t){return Ie.call(this,t,"%Y-%m-%dT%H:%M:%S%:z")}function $s(t){return Ie.call(this,t,"%a, %d %b %Y %H:%M:%S %z")}function Is(t,e,n){return Jt.call(this,t,"%b",e,n)}function Ps(t,e,n){return Jt.call(this,t,"%B",e,n)}function Jt(t,e,n,r){const s=Zt(t,this.context.opts);if(!s)return t;if(n==="ordinal"){const i=s.getDate();return r==="US"?ce(s,`${e} ${i}%q, %Y`):ce(s,`${i}%q ${e} %Y`)}return ce(s,`%d ${e} %Y`)}function Zt(t,e,n){let r;const s=n??e.timezoneOffset,i=e.locale;return t=p(t),t==="now"||t==="today"?r=new R(Date.now(),i,s):me(t)?r=new R(t*1e3,i,s):d(t)?/^\d+$/.test(t)?r=new R(+t*1e3,i,s):e.preserveTimezones&&n===void 0?r=R.createDateFixedToTimezone(t,i):r=new R(t,i,s):r=new R(t,i,s),r.valid()?r:void 0}var qs=Object.freeze({__proto__:null,date:Ie,date_to_xmlschema:Vs,date_to_rfc822:$s,date_to_string:Is,date_to_long_string:Ps});const _e=/[\u4E00-\u9FFF\uF900-\uFAFF\u3400-\u4DBF\u3040-\u309F\u30A0-\u30FF\uAC00-\uD7AF]/gu,yt=/[^\u4E00-\u9FFF\uF900-\uFAFF\u3400-\u4DBF\u3040-\u309F\u30A0-\u30FF\uAC00-\uD7AF\s]+/gu;function Bs(t,e){S(arguments.length===2,"append expect 2 arguments");const n=u(t),r=u(e);return this.context.memoryLimit.use(n.length+r.length),n+r}function Us(t,e){S(arguments.length===2,"prepend expect 2 arguments");const n=u(t),r=u(e);return this.context.memoryLimit.use(n.length+r.length),r+n}function Hs(t,e){const n=u(t);return this.context.memoryLimit.use(n.length),e?(e=Ae(u(e)),n.replace(new RegExp(`^[${e}]+`,"g"),"")):n.replace(/^\s+/,"")}function Ws(t){const e=u(t);return this.context.memoryLimit.use(e.length),e.toLowerCase()}function Ys(t){const e=u(t);return this.context.memoryLimit.use(e.length),u(e).toUpperCase()}function Js(t,e){const n=u(t);return this.context.memoryLimit.use(n.length),n.split(u(e)).join("")}function Zs(t,e){const n=u(t);return this.context.memoryLimit.use(n.length),n.replace(u(e),"")}function Qs(t,e){const n=u(t);this.context.memoryLimit.use(n.length);const r=u(e),s=n.lastIndexOf(r);return s===-1?n:n.substring(0,s)+n.substring(s+r.length)}function Gs(t,e){return t=u(t),this.context.memoryLimit.use(t.length),e?(e=Ae(u(e)),t.replace(new RegExp(`[${e}]+$`,"g"),"")):t.replace(/\s+$/,"")}function Xs(t,e){const n=u(t);this.context.memoryLimit.use(n.length);const r=n.split(u(e));for(;r.length&&r[r.length-1]==="";)r.pop();return r}function Ks(t,e){const n=u(t);return this.context.memoryLimit.use(n.length),e?(e=Ae(u(e)),n.replace(new RegExp(`^[${e}]+`,"g"),"").replace(new RegExp(`[${e}]+$`,"g"),"")):n.trim()}function ei(t){const e=u(t);return this.context.memoryLimit.use(e.length),e.replace(/\r?\n/gm,"")}function ti(t){return t=u(t),this.context.memoryLimit.use(t.length),t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()}function ni(t,e,n){const r=u(t);return this.context.memoryLimit.use(r.length),r.split(u(e)).join(n)}function ri(t,e,n){const r=u(t);return this.context.memoryLimit.use(r.length),r.replace(u(e),n)}function si(t,e,n){const r=u(t);this.context.memoryLimit.use(r.length);const s=u(e),i=r.lastIndexOf(s);if(i===-1)return r;const o=u(n);return r.substring(0,i)+o+r.substring(i+s.length)}function ii(t,e=50,n="..."){const r=u(t);return this.context.memoryLimit.use(r.length),r.length<=e?t:r.substring(0,e-n.length)+n}function oi(t,e=15,n="..."){const r=u(t);this.context.memoryLimit.use(r.length);const s=r.split(/\s+/);e<=0&&(e=1);let i=s.slice(0,e).join(" ");return s.length>=e&&(i+=n),i}function li(t){const e=u(t);return this.context.memoryLimit.use(e.length),e.replace(/\s+/g," ")}function ai(t,e){const n=u(t);if(this.context.memoryLimit.use(n.length),t=n.trim(),!t)return 0;switch(e){case"cjk":return(t.match(_e)||[]).length+(t.match(yt)||[]).length;case"auto":return _e.test(t)?t.match(_e).length+(t.match(yt)||[]).length:t.split(/\s+/).length;default:return t.split(/\s+/).length}}function ci(t,e="and"){switch(this.context.memoryLimit.use(t.length),t.length){case 0:return"";case 1:return t[0];case 2:return`${t[0]} ${e} ${t[1]}`;default:return`${t.slice(0,-1).join(", ")}, ${e} ${t[t.length-1]}`}}var hi=Object.freeze({__proto__:null,append:Bs,prepend:Us,lstrip:Hs,downcase:Ws,upcase:Ys,remove:Js,remove_first:Zs,remove_last:Qs,rstrip:Gs,split:Xs,strip:Ks,strip_newlines:ei,capitalize:ti,replace:ni,replace_first:ri,replace_last:si,truncate:ii,truncatewords:oi,normalize_whitespace:li,number_of_words:ai,array_to_sentence_string:ci});function ui(t){return btoa(String.fromCharCode(...new TextEncoder().encode(t)))}function fi(t){return new TextDecoder().decode(Uint8Array.from(atob(t),e=>e.charCodeAt(0)))}function di(t){const e=u(t);return this.context.memoryLimit.use(e.length),ui(e)}function pi(t){const e=u(t);return this.context.memoryLimit.use(e.length),fi(e)}var gi=Object.freeze({__proto__:null,base64_encode:di,base64_decode:pi});const mi=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},vr),Kr),ls),Cs),qs),hi),gi),Ct);class yi extends w{constructor(e,n,r){super(e,n,r),this.identifier=this.tokenizer.readIdentifier(),this.key=this.identifier.content,this.tokenizer.assert(this.key,"expected variable name"),this.tokenizer.skipBlank(),this.tokenizer.assert(this.tokenizer.peek()==="=",'expected "="'),this.tokenizer.advance(),this.value=new L(this.tokenizer.readFilteredValue(),this.liquid)}*render(e){e.bottom()[this.key]=yield this.value.value(e,this.liquid.options.lenientIf)}*arguments(){yield this.value}*localScope(){yield this.identifier}}const kt=["offset","limit","reversed"];class ki extends w{constructor(e,n,r,s){super(e,n,r);const i=this.tokenizer.readIdentifier(),o=this.tokenizer.readIdentifier(),l=this.tokenizer.readValue();if(!i.size()||o.content!=="in"||!l)throw new Error(`illegal tag: ${e.getText()}`);this.variable=i.content,this.collection=l,this.hash=new re(this.tokenizer,r.options.keyValueSeparator),this.templates=[],this.elseTemplates=[];let h;const a=s.parseStream(n).on("start",()=>h=this.templates).on("tag:else",c=>{fe(c.args),h=this.elseTemplates}).on("tag:endfor",c=>{fe(c.args),a.stop()}).on("template",c=>h.push(c)).on("end",()=>{throw new Error(`tag ${e.getText()} not closed`)});a.start()}*render(e,n){const r=this.liquid.renderer;let s=oe(yield b(this.collection,e));if(!s.length){yield r.renderTemplates(this.elseTemplates,e,n);return}const i="continue-"+this.variable+"-"+this.collection.getText();e.push({continue:e.getRegister(i)});const o=yield this.hash.render(e);e.pop(),s=(this.liquid.options.orderedFilterParameters?Object.keys(o).filter(a=>kt.includes(a)):kt.filter(a=>o[a]!==void 0)).reduce((a,c)=>c==="offset"?bi(a,o.offset):c==="limit"?xi(a,o.limit):wi(a),s),e.setRegister(i,(o.offset||0)+s.length);const h={forloop:new je(s.length,this.collection.getText(),this.variable)};e.push(h);for(const a of s){if(h[this.variable]=a,e.continueCalled=e.breakCalled=!1,yield r.renderTemplates(this.templates,e,n),e.breakCalled)break;h.forloop.next()}e.continueCalled=e.breakCalled=!1,e.pop()}*children(){const e=this.templates.slice();return this.elseTemplates&&e.push(...this.elseTemplates),e}*arguments(){yield this.collection;for(const e of Object.values(this.hash.hash))F(e)&&(yield e)}blockScope(){return[this.variable,"forloop"]}}function wi(t){return[...t].reverse()}function bi(t,e){return t.slice(e)}function xi(t,e){return t.slice(0,e)}class Ti extends w{constructor(e,n,r,s){for(super(e,n,r),this.templates=[],this.identifier=this.readVariable(),this.variable=this.identifier.content;n.length;){const i=n.shift();if(Q(i)&&i.name==="endcapture")return;this.templates.push(s.parseToken(i,n))}throw new Error(`tag ${e.getText()} not closed`)}readVariable(){let e=this.tokenizer.readIdentifier();if(e.content||(e=this.tokenizer.readQuoted(),e))return e;throw this.tokenizer.error("invalid capture name")}*render(e){const r=yield this.liquid.renderer.renderTemplates(this.templates,e);e.bottom()[this.variable]=r}*children(){return this.templates}*localScope(){yield this.identifier}}class vi extends w{constructor(e,n,r,s){super(e,n,r),this.branches=[],this.elseTemplates=[],this.value=new L(this.tokenizer.readFilteredValue(),this.liquid),this.elseTemplates=[];let i=[],o=0;const l=s.parseStream(n).on("tag:when",h=>{if(o>0)return;i=[];const a=[];for(;!h.tokenizer.end();)a.push(h.tokenizer.readValueOrThrow()),h.tokenizer.skipBlank(),h.tokenizer.peek()===","?h.tokenizer.readTo(","):h.tokenizer.readTo("or");this.branches.push({values:a,templates:i})}).on("tag:else",()=>{o++,i=this.elseTemplates}).on("tag:endcase",()=>l.stop()).on("template",h=>{(i!==this.elseTemplates||o===1)&&i.push(h)}).on("end",()=>{throw new Error(`tag ${e.getText()} not closed`)});l.start()}*render(e,n){const r=this.liquid.renderer,s=p(yield this.value.value(e,e.opts.lenientIf));let i=!1;for(const o of this.branches)for(const l of o.values){const h=yield b(l,e,e.opts.lenientIf);if(C(s,h)){yield r.renderTemplates(o.templates,e,n),i=!0;break}}i||(yield r.renderTemplates(this.elseTemplates,e,n))}*arguments(){yield this.value,yield*this.branches.flatMap(e=>e.values)}*children(){const e=this.branches.flatMap(n=>n.templates);return this.elseTemplates&&e.push(...this.elseTemplates),e}}class _i extends w{constructor(e,n,r){for(super(e,n,r);n.length;){const s=n.shift();if(Q(s)&&s.name==="endcomment")return}throw new Error(`tag ${e.getText()} not closed`)}render(){}}class Si extends w{constructor(e,n,r,s){super(e,n,r);const i=this.tokenizer;for(this.file=Pe(i,this.liquid,s),this.currentFile=e.file;!i.end();){i.skipBlank();const o=i.p,l=i.readIdentifier();if((l.content==="with"||l.content==="for")&&(i.skipBlank(),i.peek()!==":")){const h=i.readValue();if(h){const a=i.p,c=i.readIdentifier();let f;c.content==="as"?f=i.readIdentifier():i.p=a,this[l.content]={value:h,alias:f&&f.content},i.skipBlank(),i.peek()===","&&i.advance();continue}}i.p=o;break}this.hash=new re(i,r.options.keyValueSeparator)}*render(e,n){const{liquid:r,hash:s}=this,i=yield qe(this.file,e,r);S(i,()=>`illegal file path "${i}"`);const o=e.spawn(),l=o.bottom();if(de(l,yield s.render(e)),this.with){const{value:h,alias:a}=this.with;l[a||i]=yield b(h,e)}if(this.for){const{value:h,alias:a}=this.for,c=oe(yield b(h,e));l.forloop=new je(c.length,h.getText(),a);for(const f of c){l[a]=f;const g=yield r._parsePartialFile(i,o.sync,this.currentFile);yield r.renderer.renderTemplates(g,o,n),l.forloop.next()}}else{const h=yield r._parsePartialFile(i,o.sync,this.currentFile);yield r.renderer.renderTemplates(h,o,n)}}*children(e,n){return e&&d(this.file)?yield this.liquid._parsePartialFile(this.file,n,this.currentFile):[]}partialScope(){if(d(this.file)){const e=Object.keys(this.hash.hash);if(this.with){const{value:n,alias:r}=this.with;d(r)?e.push([r,n]):d(this.file)&&e.push([this.file,n])}if(this.for){const{value:n,alias:r}=this.for;d(r)?e.push([r,n]):d(this.file)&&e.push([this.file,n])}return{name:this.file,isolated:!0,scope:e}}}*arguments(){for(const e of Object.values(this.hash.hash))F(e)&&(yield e);if(this.with){const{value:e}=this.with;F(e)&&(yield e)}if(this.for){const{value:e}=this.for;F(e)&&(yield e)}}}function Pe(t,e,n){if(e.options.dynamicPartials){const i=t.readValue();if(t.assert(i,"illegal file path"),i.getText()==="none")return;if(Re(i)){const o=n.parse(Xn(i));return wt(o)}return i}const r=[...t.readFileNameTemplate(e.options)],s=wt(n.parseTokens(r));return s==="none"?void 0:s}function wt(t){return t.length===1&&Ce(t[0].token)?t[0].token.getContent():t}function*qe(t,e,n){return typeof t=="string"?t:Array.isArray(t)?n.renderer.renderTemplates(t,e):yield b(t,e)}class Fi extends w{constructor(e,n,r,s){super(e,n,r);const{tokenizer:i}=e;this.file=Pe(i,this.liquid,s),this.currentFile=e.file;const o=i.p;i.readIdentifier().content==="with"?(i.skipBlank(),i.peek()!==":"?this.withVar=i.readValue():i.p=o):i.p=o,this.hash=new re(i,r.options.jekyllInclude||r.options.keyValueSeparator)}*render(e,n){const{liquid:r,hash:s,withVar:i}=this,{renderer:o}=r,l=yield qe(this.file,e,r);S(l,()=>`illegal file path "${l}"`);const h=e.saveRegister("blocks","blockMode");e.setRegister("blocks",{}),e.setRegister("blockMode",H.OUTPUT);const a=yield s.render(e);i&&(a[l]=yield b(i,e));const c=yield r._parsePartialFile(l,e.sync,this.currentFile);e.push(e.opts.jekyllInclude?{include:a}:a),yield o.renderTemplates(c,e,n),e.pop(),e.restoreRegister(h)}*children(e,n){return e&&d(this.file)?yield this.liquid._parsePartialFile(this.file,n,this.currentFile):[]}partialScope(){if(d(this.file)){let e;return this.liquid.options.jekyllInclude?e=["include"]:(e=Object.keys(this.hash.hash),this.withVar&&e.push([this.file,this.withVar])),{name:this.file,isolated:!1,scope:e}}}*arguments(){yield*Object.values(this.hash.hash).filter(F),F(this.file)&&(yield this.file),F(this.withVar)&&(yield this.withVar)}}class Li extends w{constructor(e,n,r){super(e,n,r),this.identifier=this.tokenizer.readIdentifier(),this.variable=this.identifier.content}render(e,n){const r=e.environments;me(r[this.variable])||(r[this.variable]=0),n.write(u(--r[this.variable]))}*localScope(){yield this.identifier}}class Oi extends w{constructor(e,n,r){super(e,n,r),this.candidates=[];const s=this.tokenizer.readValue();for(this.tokenizer.skipBlank(),s&&(this.tokenizer.peek()===":"?(this.group=s,this.tokenizer.advance()):this.candidates.push(s));!this.tokenizer.end();){const i=this.tokenizer.readValue();i&&this.candidates.push(i),this.tokenizer.readTo(",")}this.tokenizer.assert(this.candidates.length,()=>`empty candidates: "${e.getText()}"`)}*render(e,n){const s=`cycle:${yield b(this.group,e)}:`+this.candidates.join(","),i=e.getRegister("cycle");let o=i[s];o===void 0&&(o=i[s]=0);const l=this.candidates[o];return o=(o+1)%this.candidates.length,i[s]=o,yield b(l,e)}*arguments(){yield*this.candidates,this.group&&(yield this.group)}}class zi extends w{constructor(e,n,r,s){super(e,n,r),this.branches=[];let i=[];s.parseStream(n).on("start",()=>this.branches.push({value:new L(e.tokenizer.readFilteredValue(),this.liquid),templates:i=[]})).on("tag:elsif",o=>{S(!this.elseTemplates,"unexpected elsif after else"),this.branches.push({value:new L(o.tokenizer.readFilteredValue(),this.liquid),templates:i=[]})}).on("tag:else",o=>{fe(o.args),S(!this.elseTemplates,"duplicated else"),i=this.elseTemplates=[]}).on("tag:endif",function(o){fe(o.args),this.stop()}).on("template",o=>i.push(o)).on("end",()=>{throw new Error(`tag ${e.getText()} not closed`)}).start()}*render(e,n){const r=this.liquid.renderer;for(const{value:s,templates:i}of this.branches){const o=yield s.value(e,e.opts.lenientIf);if(U(o,e)){yield r.renderTemplates(i,e,n);return}}yield r.renderTemplates(this.elseTemplates||[],e,n)}*children(){const e=this.branches.flatMap(n=>n.templates);return this.elseTemplates&&e.push(...this.elseTemplates),e}arguments(){return this.branches.map(e=>e.value)}}class Ri extends w{constructor(e,n,r){super(e,n,r),this.identifier=this.tokenizer.readIdentifier(),this.variable=this.identifier.content}render(e,n){const r=e.environments;me(r[this.variable])||(r[this.variable]=0);const s=r[this.variable];r[this.variable]++,n.write(u(s))}*localScope(){yield this.identifier}}class Ei extends w{constructor(e,n,r,s){super(e,n,r),this.file=Pe(this.tokenizer,this.liquid,s),this.currentFile=e.file,this.args=new re(this.tokenizer,r.options.keyValueSeparator),this.templates=s.parseTokens(n)}*render(e,n){const{liquid:r,args:s,file:i}=this,{renderer:o}=r;if(i===void 0){e.setRegister("blockMode",H.OUTPUT),yield o.renderTemplates(this.templates,e,n);return}const l=yield qe(this.file,e,r);S(l,()=>`illegal file path "${l}"`);const h=yield r._parseLayoutFile(l,e.sync,this.currentFile);e.setRegister("blockMode",H.STORE);const a=yield o.renderTemplates(this.templates,e),c=e.getRegister("blocks");c[""]===void 0&&(c[""]=(f,g)=>g.write(a)),e.setRegister("blockMode",H.OUTPUT),e.push(yield s.render(e)),yield o.renderTemplates(h,e,n),e.pop()}*children(e){const n=this.templates.slice();return e&&d(this.file)&&n.push(...yield this.liquid._parsePartialFile(this.file,!0,this.currentFile)),n}*arguments(){for(const e of Object.values(this.args.hash))F(e)&&(yield e);F(this.file)&&(yield this.file)}partialScope(){if(d(this.file))return{name:this.file,isolated:!1,scope:Object.keys(this.args.hash)}}}class Ai extends w{constructor(e,n,r,s){super(e,n,r),this.templates=[];const i=/\w+/.exec(e.args);for(this.block=i?i[0]:"";n.length;){const o=n.shift();if(Q(o)&&o.name==="endblock")return;const l=s.parseToken(o,n);this.templates.push(l)}throw new Error(`tag ${e.getText()} not closed`)}*render(e,n){const r=this.getBlockRender(e);e.getRegister("blockMode")===H.STORE?e.getRegister("blocks")[this.block]=r:yield r(new Ge,n)}getBlockRender(e){const{liquid:n,templates:r}=this,s=e.getRegister("blocks")[this.block],i=function*(o,l){e.push({block:o}),yield n.renderer.renderTemplates(r,e,l),e.pop()};return s?(o,l)=>s(new Ge(h=>i(o,h)),l):i}*children(){return this.templates}blockScope(){return["block"]}}class Ni extends w{constructor(e,n,r){for(super(e,n,r),this.tokens=[];n.length;){const s=n.shift();if(Q(s)&&s.name==="endraw")return;this.tokens.push(s)}throw new Error(`tag ${e.getText()} not closed`)}render(){return this.tokens.map(e=>e.getText()).join("")}}class ji extends je{constructor(e,n,r,s){super(e,r,s),this.length=e,this.cols=n}row(){return Math.floor(this.i/this.cols)+1}col0(){return this.i%this.cols}col(){return this.col0()+1}col_first(){return this.col0()===0}col_last(){return this.col()===this.cols}}class Di extends w{constructor(e,n,r,s){super(e,n,r);const i=this.tokenizer.readIdentifier();this.tokenizer.skipBlank();const o=this.tokenizer.readIdentifier(),l=this.tokenizer.readValue();if(o.content!=="in"||!l)throw new Error(`illegal tag: ${e.getText()}`);this.variable=i.content,this.collection=l,this.args=new re(this.tokenizer,r.options.keyValueSeparator),this.templates=[];let h;const a=s.parseStream(n).on("start",()=>h=this.templates).on("tag:endtablerow",()=>a.stop()).on("template",c=>h.push(c)).on("end",()=>{throw new Error(`tag ${e.getText()} not closed`)});a.start()}*render(e,n){let r=oe(yield b(this.collection,e));const s=yield this.args.render(e),i=s.offset||0,o=s.limit===void 0?r.length:s.limit;r=r.slice(i,i+o);const l=s.cols||r.length,h=this.liquid.renderer,a=new ji(r.length,l,this.collection.getText(),this.variable),c={tablerowloop:a};e.push(c);for(let f=0;f<r.length;f++,a.next())c[this.variable]=r[f],a.col0()===0&&(a.row()!==1&&n.write("</tr>"),n.write(`<tr class="row${a.row()}">`)),n.write(`<td class="col${a.col()}">`),yield h.renderTemplates(this.templates,e,n),n.write("</td>");r.length&&n.write("</tr>"),e.pop()}*children(){return this.templates}*arguments(){yield this.collection;for(const e of Object.values(this.args.hash))F(e)&&(yield e)}blockScope(){return[this.variable,"tablerowloop"]}}class Mi extends w{constructor(e,n,r,s){super(e,n,r),this.branches=[],this.elseTemplates=[];let i=[],o=0;s.parseStream(n).on("start",()=>this.branches.push({value:new L(e.tokenizer.readFilteredValue(),this.liquid),test:we,templates:i=[]})).on("tag:elsif",l=>{if(o>0){i=[];return}this.branches.push({value:new L(l.tokenizer.readFilteredValue(),this.liquid),test:U,templates:i=[]})}).on("tag:else",()=>{o++,i=this.elseTemplates}).on("tag:endunless",function(){this.stop()}).on("template",l=>{(i!==this.elseTemplates||o===1)&&i.push(l)}).on("end",()=>{throw new Error(`tag ${e.getText()} not closed`)}).start()}*render(e,n){const r=this.liquid.renderer;for(const{value:s,test:i,templates:o}of this.branches){const l=yield s.value(e,e.opts.lenientIf);if(i(l,e)){yield r.renderTemplates(o,e,n);return}}yield r.renderTemplates(this.elseTemplates,e,n)}*children(){const e=this.branches.flatMap(n=>n.templates);return this.elseTemplates&&e.push(...this.elseTemplates),e}arguments(){return this.branches.map(e=>e.value)}}class Ci extends w{render(e,n){e.breakCalled=!0}}class Vi extends w{render(e,n){e.continueCalled=!0}}class $i extends w{constructor(e,n,r){super(e,n,r),this.tokenizer.skipBlank(),this.tokenizer.end()||(this.value=new L(this.tokenizer.readFilteredValue(),this.liquid))}*render(e,n){if(!this.value)return;const r=yield this.value.value(e,!1);n.write(r)}*arguments(){this.value&&(yield this.value)}}class Ii extends w{constructor(e,n,r,s){super(e,n,r);const i=this.tokenizer.readLiquidTagTokens(this.liquid.options);this.templates=s.parseTokens(i)}*render(e,n){yield this.liquid.renderer.renderTemplates(this.templates,e,n)}*children(){return this.templates}}class Pi extends w{constructor(e,n,r){if(super(e,n,r),e.args.search(/\n\s*[^#\s]/g)!==-1)throw new Error("every line of an inline comment must start with a '#' character")}render(){}}const qi={assign:yi,for:ki,capture:Ti,case:vi,comment:_i,include:Fi,render:Si,decrement:Li,increment:Ri,cycle:Oi,if:zi,layout:Ei,block:Ai,raw:Ni,tablerow:Di,unless:Mi,break:Ci,continue:Vi,echo:$i,liquid:Ii,"#":Pi};class Be{constructor(e={}){this.renderer=new Zn,this.filters={},this.tags={},this.options=Sr(e),this.parser=new q(this),Ye(qi,(n,r)=>this.registerTag(r,n)),Ye(mi,(n,r)=>this.registerFilter(r,n))}parse(e,n){return new q(this).parse(e,n)}_render(e,n,r){const s=n instanceof B?n:new B(n,this.options,r);return this.renderer.renderTemplates(e,s)}render(e,n,r){return x(this,void 0,void 0,function*(){return D(this._render(e,n,Object.assign(Object.assign({},r),{sync:!1})))})}renderSync(e,n,r){return M(this._render(e,n,Object.assign(Object.assign({},r),{sync:!0})))}renderToNodeStream(e,n,r={}){const s=new B(n,this.options,r);return this.renderer.renderTemplatesToNodeStream(e,s)}_parseAndRender(e,n,r){const s=this.parse(e);return this._render(s,n,r)}parseAndRender(e,n,r){return x(this,void 0,void 0,function*(){return D(this._parseAndRender(e,n,Object.assign(Object.assign({},r),{sync:!1})))})}parseAndRenderSync(e,n,r){return M(this._parseAndRender(e,n,Object.assign(Object.assign({},r),{sync:!0})))}_parsePartialFile(e,n,r){return new q(this).parseFile(e,n,Y.Partials,r)}_parseLayoutFile(e,n,r){return new q(this).parseFile(e,n,Y.Layouts,r)}_parseFile(e,n,r,s){return new q(this).parseFile(e,n,r,s)}parseFile(e,n){return x(this,void 0,void 0,function*(){return D(new q(this).parseFile(e,!1,n))})}parseFileSync(e,n){return M(new q(this).parseFile(e,!0,n))}*_renderFile(e,n,r){const s=yield this._parseFile(e,r.sync,r.lookupType);return yield this._render(s,n,r)}renderFile(e,n,r){return x(this,void 0,void 0,function*(){return D(this._renderFile(e,n,Object.assign(Object.assign({},r),{sync:!1})))})}renderFileSync(e,n,r){return M(this._renderFile(e,n,Object.assign(Object.assign({},r),{sync:!0})))}renderFileToNodeStream(e,n,r){return x(this,void 0,void 0,function*(){const s=yield this.parseFile(e);return this.renderToNodeStream(s,n,r)})}_evalValue(e,n){const r=new L(e,this),s=n instanceof B?n:new B(n,this.options);return r.value(s)}evalValue(e,n){return x(this,void 0,void 0,function*(){return D(this._evalValue(e,n))})}evalValueSync(e,n){return M(this._evalValue(e,n))}registerFilter(e,n){this.filters[e]=n}registerTag(e,n){this.tags[e]=T(n)?n:Er(n)}plugin(e){return e.call(this,Be)}express(){const e=this;let n=!0;return function(r,s,i){if(n){n=!1;const o=he(this.root);e.options.root.unshift(...o),e.options.layouts.unshift(...o),e.options.partials.unshift(...o)}e.renderFile(r,s).then(o=>i(null,o),i)}}analyze(e,n={}){return x(this,void 0,void 0,function*(){return V(e,n)})}analyzeSync(e,n={}){return $(e,n)}parseAndAnalyze(e,n,r={}){return x(this,void 0,void 0,function*(){return V(this.parse(e,n),r)})}parseAndAnalyzeSync(e,n,r={}){return $(this.parse(e,n),r)}variables(e,n={}){return x(this,void 0,void 0,function*(){const r=yield V(d(e)?this.parse(e):e,n);return Object.keys(r.variables)})}variablesSync(e,n={}){const r=$(d(e)?this.parse(e):e,n);return Object.keys(r.variables)}fullVariables(e,n={}){return x(this,void 0,void 0,function*(){const r=yield V(d(e)?this.parse(e):e,n);return Array.from(new Set(Object.values(r.variables).flatMap(s=>s.map(i=>String(i)))))})}fullVariablesSync(e,n={}){const r=$(d(e)?this.parse(e):e,n);return Array.from(new Set(Object.values(r.variables).flatMap(s=>s.map(i=>String(i)))))}variableSegments(e,n={}){return x(this,void 0,void 0,function*(){const r=yield V(d(e)?this.parse(e):e,n);return Array.from(le(Object.values(r.variables).flatMap(s=>s.map(i=>i.toArray()))))})}variableSegmentsSync(e,n={}){const r=$(d(e)?this.parse(e):e,n);return Array.from(le(Object.values(r.variables).flatMap(s=>s.map(i=>i.toArray()))))}globalVariables(e,n={}){return x(this,void 0,void 0,function*(){const r=yield V(d(e)?this.parse(e):e,n);return Object.keys(r.globals)})}globalVariablesSync(e,n={}){const r=$(d(e)?this.parse(e):e,n);return Object.keys(r.globals)}globalFullVariables(e,n={}){return x(this,void 0,void 0,function*(){const r=yield V(d(e)?this.parse(e):e,n);return Array.from(new Set(Object.values(r.globals).flatMap(s=>s.map(i=>String(i)))))})}globalFullVariablesSync(e,n={}){const r=$(d(e)?this.parse(e):e,n);return Array.from(new Set(Object.values(r.globals).flatMap(s=>s.map(i=>String(i)))))}globalVariableSegments(e,n={}){return x(this,void 0,void 0,function*(){const r=yield V(d(e)?this.parse(e):e,n);return Array.from(le(Object.values(r.globals).flatMap(s=>s.map(i=>i.toArray()))))})}globalVariableSegmentsSync(e,n={}){const r=$(d(e)?this.parse(e):e,n);return Array.from(le(Object.values(r.globals).flatMap(s=>s.map(i=>i.toArray()))))}}const Bi=`@theme default {
|
|
14
|
+
--font-sans:
|
|
15
|
+
ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
16
|
+
'Noto Color Emoji';
|
|
17
|
+
--font-serif: ui-serif, Georgia, Cambria, 'Times New Roman', Times, serif;
|
|
18
|
+
--font-mono:
|
|
19
|
+
ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New',
|
|
20
|
+
monospace;
|
|
21
|
+
|
|
22
|
+
--color-red-50: oklch(97.1% 0.013 17.38);
|
|
23
|
+
--color-red-100: oklch(93.6% 0.032 17.717);
|
|
24
|
+
--color-red-200: oklch(88.5% 0.062 18.334);
|
|
25
|
+
--color-red-300: oklch(80.8% 0.114 19.571);
|
|
26
|
+
--color-red-400: oklch(70.4% 0.191 22.216);
|
|
27
|
+
--color-red-500: oklch(63.7% 0.237 25.331);
|
|
28
|
+
--color-red-600: oklch(57.7% 0.245 27.325);
|
|
29
|
+
--color-red-700: oklch(50.5% 0.213 27.518);
|
|
30
|
+
--color-red-800: oklch(44.4% 0.177 26.899);
|
|
31
|
+
--color-red-900: oklch(39.6% 0.141 25.723);
|
|
32
|
+
--color-red-950: oklch(25.8% 0.092 26.042);
|
|
33
|
+
|
|
34
|
+
--color-orange-50: oklch(98% 0.016 73.684);
|
|
35
|
+
--color-orange-100: oklch(95.4% 0.038 75.164);
|
|
36
|
+
--color-orange-200: oklch(90.1% 0.076 70.697);
|
|
37
|
+
--color-orange-300: oklch(83.7% 0.128 66.29);
|
|
38
|
+
--color-orange-400: oklch(75% 0.183 55.934);
|
|
39
|
+
--color-orange-500: oklch(70.5% 0.213 47.604);
|
|
40
|
+
--color-orange-600: oklch(64.6% 0.222 41.116);
|
|
41
|
+
--color-orange-700: oklch(55.3% 0.195 38.402);
|
|
42
|
+
--color-orange-800: oklch(47% 0.157 37.304);
|
|
43
|
+
--color-orange-900: oklch(40.8% 0.123 38.172);
|
|
44
|
+
--color-orange-950: oklch(26.6% 0.079 36.259);
|
|
45
|
+
|
|
46
|
+
--color-amber-50: oklch(98.7% 0.022 95.277);
|
|
47
|
+
--color-amber-100: oklch(96.2% 0.059 95.617);
|
|
48
|
+
--color-amber-200: oklch(92.4% 0.12 95.746);
|
|
49
|
+
--color-amber-300: oklch(87.9% 0.169 91.605);
|
|
50
|
+
--color-amber-400: oklch(82.8% 0.189 84.429);
|
|
51
|
+
--color-amber-500: oklch(76.9% 0.188 70.08);
|
|
52
|
+
--color-amber-600: oklch(66.6% 0.179 58.318);
|
|
53
|
+
--color-amber-700: oklch(55.5% 0.163 48.998);
|
|
54
|
+
--color-amber-800: oklch(47.3% 0.137 46.201);
|
|
55
|
+
--color-amber-900: oklch(41.4% 0.112 45.904);
|
|
56
|
+
--color-amber-950: oklch(27.9% 0.077 45.635);
|
|
57
|
+
|
|
58
|
+
--color-yellow-50: oklch(98.7% 0.026 102.212);
|
|
59
|
+
--color-yellow-100: oklch(97.3% 0.071 103.193);
|
|
60
|
+
--color-yellow-200: oklch(94.5% 0.129 101.54);
|
|
61
|
+
--color-yellow-300: oklch(90.5% 0.182 98.111);
|
|
62
|
+
--color-yellow-400: oklch(85.2% 0.199 91.936);
|
|
63
|
+
--color-yellow-500: oklch(79.5% 0.184 86.047);
|
|
64
|
+
--color-yellow-600: oklch(68.1% 0.162 75.834);
|
|
65
|
+
--color-yellow-700: oklch(55.4% 0.135 66.442);
|
|
66
|
+
--color-yellow-800: oklch(47.6% 0.114 61.907);
|
|
67
|
+
--color-yellow-900: oklch(42.1% 0.095 57.708);
|
|
68
|
+
--color-yellow-950: oklch(28.6% 0.066 53.813);
|
|
69
|
+
|
|
70
|
+
--color-lime-50: oklch(98.6% 0.031 120.757);
|
|
71
|
+
--color-lime-100: oklch(96.7% 0.067 122.328);
|
|
72
|
+
--color-lime-200: oklch(93.8% 0.127 124.321);
|
|
73
|
+
--color-lime-300: oklch(89.7% 0.196 126.665);
|
|
74
|
+
--color-lime-400: oklch(84.1% 0.238 128.85);
|
|
75
|
+
--color-lime-500: oklch(76.8% 0.233 130.85);
|
|
76
|
+
--color-lime-600: oklch(64.8% 0.2 131.684);
|
|
77
|
+
--color-lime-700: oklch(53.2% 0.157 131.589);
|
|
78
|
+
--color-lime-800: oklch(45.3% 0.124 130.933);
|
|
79
|
+
--color-lime-900: oklch(40.5% 0.101 131.063);
|
|
80
|
+
--color-lime-950: oklch(27.4% 0.072 132.109);
|
|
81
|
+
|
|
82
|
+
--color-green-50: oklch(98.2% 0.018 155.826);
|
|
83
|
+
--color-green-100: oklch(96.2% 0.044 156.743);
|
|
84
|
+
--color-green-200: oklch(92.5% 0.084 155.995);
|
|
85
|
+
--color-green-300: oklch(87.1% 0.15 154.449);
|
|
86
|
+
--color-green-400: oklch(79.2% 0.209 151.711);
|
|
87
|
+
--color-green-500: oklch(72.3% 0.219 149.579);
|
|
88
|
+
--color-green-600: oklch(62.7% 0.194 149.214);
|
|
89
|
+
--color-green-700: oklch(52.7% 0.154 150.069);
|
|
90
|
+
--color-green-800: oklch(44.8% 0.119 151.328);
|
|
91
|
+
--color-green-900: oklch(39.3% 0.095 152.535);
|
|
92
|
+
--color-green-950: oklch(26.6% 0.065 152.934);
|
|
93
|
+
|
|
94
|
+
--color-emerald-50: oklch(97.9% 0.021 166.113);
|
|
95
|
+
--color-emerald-100: oklch(95% 0.052 163.051);
|
|
96
|
+
--color-emerald-200: oklch(90.5% 0.093 164.15);
|
|
97
|
+
--color-emerald-300: oklch(84.5% 0.143 164.978);
|
|
98
|
+
--color-emerald-400: oklch(76.5% 0.177 163.223);
|
|
99
|
+
--color-emerald-500: oklch(69.6% 0.17 162.48);
|
|
100
|
+
--color-emerald-600: oklch(59.6% 0.145 163.225);
|
|
101
|
+
--color-emerald-700: oklch(50.8% 0.118 165.612);
|
|
102
|
+
--color-emerald-800: oklch(43.2% 0.095 166.913);
|
|
103
|
+
--color-emerald-900: oklch(37.8% 0.077 168.94);
|
|
104
|
+
--color-emerald-950: oklch(26.2% 0.051 172.552);
|
|
105
|
+
|
|
106
|
+
--color-teal-50: oklch(98.4% 0.014 180.72);
|
|
107
|
+
--color-teal-100: oklch(95.3% 0.051 180.801);
|
|
108
|
+
--color-teal-200: oklch(91% 0.096 180.426);
|
|
109
|
+
--color-teal-300: oklch(85.5% 0.138 181.071);
|
|
110
|
+
--color-teal-400: oklch(77.7% 0.152 181.912);
|
|
111
|
+
--color-teal-500: oklch(70.4% 0.14 182.503);
|
|
112
|
+
--color-teal-600: oklch(60% 0.118 184.704);
|
|
113
|
+
--color-teal-700: oklch(51.1% 0.096 186.391);
|
|
114
|
+
--color-teal-800: oklch(43.7% 0.078 188.216);
|
|
115
|
+
--color-teal-900: oklch(38.6% 0.063 188.416);
|
|
116
|
+
--color-teal-950: oklch(27.7% 0.046 192.524);
|
|
117
|
+
|
|
118
|
+
--color-cyan-50: oklch(98.4% 0.019 200.873);
|
|
119
|
+
--color-cyan-100: oklch(95.6% 0.045 203.388);
|
|
120
|
+
--color-cyan-200: oklch(91.7% 0.08 205.041);
|
|
121
|
+
--color-cyan-300: oklch(86.5% 0.127 207.078);
|
|
122
|
+
--color-cyan-400: oklch(78.9% 0.154 211.53);
|
|
123
|
+
--color-cyan-500: oklch(71.5% 0.143 215.221);
|
|
124
|
+
--color-cyan-600: oklch(60.9% 0.126 221.723);
|
|
125
|
+
--color-cyan-700: oklch(52% 0.105 223.128);
|
|
126
|
+
--color-cyan-800: oklch(45% 0.085 224.283);
|
|
127
|
+
--color-cyan-900: oklch(39.8% 0.07 227.392);
|
|
128
|
+
--color-cyan-950: oklch(30.2% 0.056 229.695);
|
|
129
|
+
|
|
130
|
+
--color-sky-50: oklch(97.7% 0.013 236.62);
|
|
131
|
+
--color-sky-100: oklch(95.1% 0.026 236.824);
|
|
132
|
+
--color-sky-200: oklch(90.1% 0.058 230.902);
|
|
133
|
+
--color-sky-300: oklch(82.8% 0.111 230.318);
|
|
134
|
+
--color-sky-400: oklch(74.6% 0.16 232.661);
|
|
135
|
+
--color-sky-500: oklch(68.5% 0.169 237.323);
|
|
136
|
+
--color-sky-600: oklch(58.8% 0.158 241.966);
|
|
137
|
+
--color-sky-700: oklch(50% 0.134 242.749);
|
|
138
|
+
--color-sky-800: oklch(44.3% 0.11 240.79);
|
|
139
|
+
--color-sky-900: oklch(39.1% 0.09 240.876);
|
|
140
|
+
--color-sky-950: oklch(29.3% 0.066 243.157);
|
|
141
|
+
|
|
142
|
+
--color-blue-50: oklch(97% 0.014 254.604);
|
|
143
|
+
--color-blue-100: oklch(93.2% 0.032 255.585);
|
|
144
|
+
--color-blue-200: oklch(88.2% 0.059 254.128);
|
|
145
|
+
--color-blue-300: oklch(80.9% 0.105 251.813);
|
|
146
|
+
--color-blue-400: oklch(70.7% 0.165 254.624);
|
|
147
|
+
--color-blue-500: oklch(62.3% 0.214 259.815);
|
|
148
|
+
--color-blue-600: oklch(54.6% 0.245 262.881);
|
|
149
|
+
--color-blue-700: oklch(48.8% 0.243 264.376);
|
|
150
|
+
--color-blue-800: oklch(42.4% 0.199 265.638);
|
|
151
|
+
--color-blue-900: oklch(37.9% 0.146 265.522);
|
|
152
|
+
--color-blue-950: oklch(28.2% 0.091 267.935);
|
|
153
|
+
|
|
154
|
+
--color-indigo-50: oklch(96.2% 0.018 272.314);
|
|
155
|
+
--color-indigo-100: oklch(93% 0.034 272.788);
|
|
156
|
+
--color-indigo-200: oklch(87% 0.065 274.039);
|
|
157
|
+
--color-indigo-300: oklch(78.5% 0.115 274.713);
|
|
158
|
+
--color-indigo-400: oklch(67.3% 0.182 276.935);
|
|
159
|
+
--color-indigo-500: oklch(58.5% 0.233 277.117);
|
|
160
|
+
--color-indigo-600: oklch(51.1% 0.262 276.966);
|
|
161
|
+
--color-indigo-700: oklch(45.7% 0.24 277.023);
|
|
162
|
+
--color-indigo-800: oklch(39.8% 0.195 277.366);
|
|
163
|
+
--color-indigo-900: oklch(35.9% 0.144 278.697);
|
|
164
|
+
--color-indigo-950: oklch(25.7% 0.09 281.288);
|
|
165
|
+
|
|
166
|
+
--color-violet-50: oklch(96.9% 0.016 293.756);
|
|
167
|
+
--color-violet-100: oklch(94.3% 0.029 294.588);
|
|
168
|
+
--color-violet-200: oklch(89.4% 0.057 293.283);
|
|
169
|
+
--color-violet-300: oklch(81.1% 0.111 293.571);
|
|
170
|
+
--color-violet-400: oklch(70.2% 0.183 293.541);
|
|
171
|
+
--color-violet-500: oklch(60.6% 0.25 292.717);
|
|
172
|
+
--color-violet-600: oklch(54.1% 0.281 293.009);
|
|
173
|
+
--color-violet-700: oklch(49.1% 0.27 292.581);
|
|
174
|
+
--color-violet-800: oklch(43.2% 0.232 292.759);
|
|
175
|
+
--color-violet-900: oklch(38% 0.189 293.745);
|
|
176
|
+
--color-violet-950: oklch(28.3% 0.141 291.089);
|
|
177
|
+
|
|
178
|
+
--color-purple-50: oklch(97.7% 0.014 308.299);
|
|
179
|
+
--color-purple-100: oklch(94.6% 0.033 307.174);
|
|
180
|
+
--color-purple-200: oklch(90.2% 0.063 306.703);
|
|
181
|
+
--color-purple-300: oklch(82.7% 0.119 306.383);
|
|
182
|
+
--color-purple-400: oklch(71.4% 0.203 305.504);
|
|
183
|
+
--color-purple-500: oklch(62.7% 0.265 303.9);
|
|
184
|
+
--color-purple-600: oklch(55.8% 0.288 302.321);
|
|
185
|
+
--color-purple-700: oklch(49.6% 0.265 301.924);
|
|
186
|
+
--color-purple-800: oklch(43.8% 0.218 303.724);
|
|
187
|
+
--color-purple-900: oklch(38.1% 0.176 304.987);
|
|
188
|
+
--color-purple-950: oklch(29.1% 0.149 302.717);
|
|
189
|
+
|
|
190
|
+
--color-fuchsia-50: oklch(97.7% 0.017 320.058);
|
|
191
|
+
--color-fuchsia-100: oklch(95.2% 0.037 318.852);
|
|
192
|
+
--color-fuchsia-200: oklch(90.3% 0.076 319.62);
|
|
193
|
+
--color-fuchsia-300: oklch(83.3% 0.145 321.434);
|
|
194
|
+
--color-fuchsia-400: oklch(74% 0.238 322.16);
|
|
195
|
+
--color-fuchsia-500: oklch(66.7% 0.295 322.15);
|
|
196
|
+
--color-fuchsia-600: oklch(59.1% 0.293 322.896);
|
|
197
|
+
--color-fuchsia-700: oklch(51.8% 0.253 323.949);
|
|
198
|
+
--color-fuchsia-800: oklch(45.2% 0.211 324.591);
|
|
199
|
+
--color-fuchsia-900: oklch(40.1% 0.17 325.612);
|
|
200
|
+
--color-fuchsia-950: oklch(29.3% 0.136 325.661);
|
|
201
|
+
|
|
202
|
+
--color-pink-50: oklch(97.1% 0.014 343.198);
|
|
203
|
+
--color-pink-100: oklch(94.8% 0.028 342.258);
|
|
204
|
+
--color-pink-200: oklch(89.9% 0.061 343.231);
|
|
205
|
+
--color-pink-300: oklch(82.3% 0.12 346.018);
|
|
206
|
+
--color-pink-400: oklch(71.8% 0.202 349.761);
|
|
207
|
+
--color-pink-500: oklch(65.6% 0.241 354.308);
|
|
208
|
+
--color-pink-600: oklch(59.2% 0.249 0.584);
|
|
209
|
+
--color-pink-700: oklch(52.5% 0.223 3.958);
|
|
210
|
+
--color-pink-800: oklch(45.9% 0.187 3.815);
|
|
211
|
+
--color-pink-900: oklch(40.8% 0.153 2.432);
|
|
212
|
+
--color-pink-950: oklch(28.4% 0.109 3.907);
|
|
213
|
+
|
|
214
|
+
--color-rose-50: oklch(96.9% 0.015 12.422);
|
|
215
|
+
--color-rose-100: oklch(94.1% 0.03 12.58);
|
|
216
|
+
--color-rose-200: oklch(89.2% 0.058 10.001);
|
|
217
|
+
--color-rose-300: oklch(81% 0.117 11.638);
|
|
218
|
+
--color-rose-400: oklch(71.2% 0.194 13.428);
|
|
219
|
+
--color-rose-500: oklch(64.5% 0.246 16.439);
|
|
220
|
+
--color-rose-600: oklch(58.6% 0.253 17.585);
|
|
221
|
+
--color-rose-700: oklch(51.4% 0.222 16.935);
|
|
222
|
+
--color-rose-800: oklch(45.5% 0.188 13.697);
|
|
223
|
+
--color-rose-900: oklch(41% 0.159 10.272);
|
|
224
|
+
--color-rose-950: oklch(27.1% 0.105 12.094);
|
|
225
|
+
|
|
226
|
+
--color-slate-50: oklch(98.4% 0.003 247.858);
|
|
227
|
+
--color-slate-100: oklch(96.8% 0.007 247.896);
|
|
228
|
+
--color-slate-200: oklch(92.9% 0.013 255.508);
|
|
229
|
+
--color-slate-300: oklch(86.9% 0.022 252.894);
|
|
230
|
+
--color-slate-400: oklch(70.4% 0.04 256.788);
|
|
231
|
+
--color-slate-500: oklch(55.4% 0.046 257.417);
|
|
232
|
+
--color-slate-600: oklch(44.6% 0.043 257.281);
|
|
233
|
+
--color-slate-700: oklch(37.2% 0.044 257.287);
|
|
234
|
+
--color-slate-800: oklch(27.9% 0.041 260.031);
|
|
235
|
+
--color-slate-900: oklch(20.8% 0.042 265.755);
|
|
236
|
+
--color-slate-950: oklch(12.9% 0.042 264.695);
|
|
237
|
+
|
|
238
|
+
--color-gray-50: oklch(98.5% 0.002 247.839);
|
|
239
|
+
--color-gray-100: oklch(96.7% 0.003 264.542);
|
|
240
|
+
--color-gray-200: oklch(92.8% 0.006 264.531);
|
|
241
|
+
--color-gray-300: oklch(87.2% 0.01 258.338);
|
|
242
|
+
--color-gray-400: oklch(70.7% 0.022 261.325);
|
|
243
|
+
--color-gray-500: oklch(55.1% 0.027 264.364);
|
|
244
|
+
--color-gray-600: oklch(44.6% 0.03 256.802);
|
|
245
|
+
--color-gray-700: oklch(37.3% 0.034 259.733);
|
|
246
|
+
--color-gray-800: oklch(27.8% 0.033 256.848);
|
|
247
|
+
--color-gray-900: oklch(21% 0.034 264.665);
|
|
248
|
+
--color-gray-950: oklch(13% 0.028 261.692);
|
|
249
|
+
|
|
250
|
+
--color-zinc-50: oklch(98.5% 0 0);
|
|
251
|
+
--color-zinc-100: oklch(96.7% 0.001 286.375);
|
|
252
|
+
--color-zinc-200: oklch(92% 0.004 286.32);
|
|
253
|
+
--color-zinc-300: oklch(87.1% 0.006 286.286);
|
|
254
|
+
--color-zinc-400: oklch(70.5% 0.015 286.067);
|
|
255
|
+
--color-zinc-500: oklch(55.2% 0.016 285.938);
|
|
256
|
+
--color-zinc-600: oklch(44.2% 0.017 285.786);
|
|
257
|
+
--color-zinc-700: oklch(37% 0.013 285.805);
|
|
258
|
+
--color-zinc-800: oklch(27.4% 0.006 286.033);
|
|
259
|
+
--color-zinc-900: oklch(21% 0.006 285.885);
|
|
260
|
+
--color-zinc-950: oklch(14.1% 0.005 285.823);
|
|
261
|
+
|
|
262
|
+
--color-neutral-50: oklch(98.5% 0 0);
|
|
263
|
+
--color-neutral-100: oklch(97% 0 0);
|
|
264
|
+
--color-neutral-200: oklch(92.2% 0 0);
|
|
265
|
+
--color-neutral-300: oklch(87% 0 0);
|
|
266
|
+
--color-neutral-400: oklch(70.8% 0 0);
|
|
267
|
+
--color-neutral-500: oklch(55.6% 0 0);
|
|
268
|
+
--color-neutral-600: oklch(43.9% 0 0);
|
|
269
|
+
--color-neutral-700: oklch(37.1% 0 0);
|
|
270
|
+
--color-neutral-800: oklch(26.9% 0 0);
|
|
271
|
+
--color-neutral-900: oklch(20.5% 0 0);
|
|
272
|
+
--color-neutral-950: oklch(14.5% 0 0);
|
|
273
|
+
|
|
274
|
+
--color-stone-50: oklch(98.5% 0.001 106.423);
|
|
275
|
+
--color-stone-100: oklch(97% 0.001 106.424);
|
|
276
|
+
--color-stone-200: oklch(92.3% 0.003 48.717);
|
|
277
|
+
--color-stone-300: oklch(86.9% 0.005 56.366);
|
|
278
|
+
--color-stone-400: oklch(70.9% 0.01 56.259);
|
|
279
|
+
--color-stone-500: oklch(55.3% 0.013 58.071);
|
|
280
|
+
--color-stone-600: oklch(44.4% 0.011 73.639);
|
|
281
|
+
--color-stone-700: oklch(37.4% 0.01 67.558);
|
|
282
|
+
--color-stone-800: oklch(26.8% 0.007 34.298);
|
|
283
|
+
--color-stone-900: oklch(21.6% 0.006 56.043);
|
|
284
|
+
--color-stone-950: oklch(14.7% 0.004 49.25);
|
|
285
|
+
|
|
286
|
+
--color-black: #000;
|
|
287
|
+
--color-white: #fff;
|
|
288
|
+
|
|
289
|
+
--spacing: 0.25rem;
|
|
290
|
+
|
|
291
|
+
--breakpoint-sm: 40rem;
|
|
292
|
+
--breakpoint-md: 48rem;
|
|
293
|
+
--breakpoint-lg: 64rem;
|
|
294
|
+
--breakpoint-xl: 80rem;
|
|
295
|
+
--breakpoint-2xl: 96rem;
|
|
296
|
+
|
|
297
|
+
--container-3xs: 16rem;
|
|
298
|
+
--container-2xs: 18rem;
|
|
299
|
+
--container-xs: 20rem;
|
|
300
|
+
--container-sm: 24rem;
|
|
301
|
+
--container-md: 28rem;
|
|
302
|
+
--container-lg: 32rem;
|
|
303
|
+
--container-xl: 36rem;
|
|
304
|
+
--container-2xl: 42rem;
|
|
305
|
+
--container-3xl: 48rem;
|
|
306
|
+
--container-4xl: 56rem;
|
|
307
|
+
--container-5xl: 64rem;
|
|
308
|
+
--container-6xl: 72rem;
|
|
309
|
+
--container-7xl: 80rem;
|
|
310
|
+
|
|
311
|
+
--text-xs: 0.75rem;
|
|
312
|
+
--text-xs--line-height: calc(1 / 0.75);
|
|
313
|
+
--text-sm: 0.875rem;
|
|
314
|
+
--text-sm--line-height: calc(1.25 / 0.875);
|
|
315
|
+
--text-base: 1rem;
|
|
316
|
+
--text-base--line-height: calc(1.5 / 1);
|
|
317
|
+
--text-lg: 1.125rem;
|
|
318
|
+
--text-lg--line-height: calc(1.75 / 1.125);
|
|
319
|
+
--text-xl: 1.25rem;
|
|
320
|
+
--text-xl--line-height: calc(1.75 / 1.25);
|
|
321
|
+
--text-2xl: 1.5rem;
|
|
322
|
+
--text-2xl--line-height: calc(2 / 1.5);
|
|
323
|
+
--text-3xl: 1.875rem;
|
|
324
|
+
--text-3xl--line-height: calc(2.25 / 1.875);
|
|
325
|
+
--text-4xl: 2.25rem;
|
|
326
|
+
--text-4xl--line-height: calc(2.5 / 2.25);
|
|
327
|
+
--text-5xl: 3rem;
|
|
328
|
+
--text-5xl--line-height: 1;
|
|
329
|
+
--text-6xl: 3.75rem;
|
|
330
|
+
--text-6xl--line-height: 1;
|
|
331
|
+
--text-7xl: 4.5rem;
|
|
332
|
+
--text-7xl--line-height: 1;
|
|
333
|
+
--text-8xl: 6rem;
|
|
334
|
+
--text-8xl--line-height: 1;
|
|
335
|
+
--text-9xl: 8rem;
|
|
336
|
+
--text-9xl--line-height: 1;
|
|
337
|
+
|
|
338
|
+
--font-weight-thin: 100;
|
|
339
|
+
--font-weight-extralight: 200;
|
|
340
|
+
--font-weight-light: 300;
|
|
341
|
+
--font-weight-normal: 400;
|
|
342
|
+
--font-weight-medium: 500;
|
|
343
|
+
--font-weight-semibold: 600;
|
|
344
|
+
--font-weight-bold: 700;
|
|
345
|
+
--font-weight-extrabold: 800;
|
|
346
|
+
--font-weight-black: 900;
|
|
347
|
+
|
|
348
|
+
--tracking-tighter: -0.05em;
|
|
349
|
+
--tracking-tight: -0.025em;
|
|
350
|
+
--tracking-normal: 0em;
|
|
351
|
+
--tracking-wide: 0.025em;
|
|
352
|
+
--tracking-wider: 0.05em;
|
|
353
|
+
--tracking-widest: 0.1em;
|
|
354
|
+
|
|
355
|
+
--leading-tight: 1.25;
|
|
356
|
+
--leading-snug: 1.375;
|
|
357
|
+
--leading-normal: 1.5;
|
|
358
|
+
--leading-relaxed: 1.625;
|
|
359
|
+
--leading-loose: 2;
|
|
360
|
+
|
|
361
|
+
--radius-xs: 0.125rem;
|
|
362
|
+
--radius-sm: 0.25rem;
|
|
363
|
+
--radius-md: 0.375rem;
|
|
364
|
+
--radius-lg: 0.5rem;
|
|
365
|
+
--radius-xl: 0.75rem;
|
|
366
|
+
--radius-2xl: 1rem;
|
|
367
|
+
--radius-3xl: 1.5rem;
|
|
368
|
+
--radius-4xl: 2rem;
|
|
369
|
+
|
|
370
|
+
--shadow-2xs: 0 1px rgb(0 0 0 / 0.05);
|
|
371
|
+
--shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
372
|
+
--shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
|
373
|
+
--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
|
374
|
+
--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
|
375
|
+
--shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
|
|
376
|
+
--shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
|
|
377
|
+
|
|
378
|
+
--inset-shadow-2xs: inset 0 1px rgb(0 0 0 / 0.05);
|
|
379
|
+
--inset-shadow-xs: inset 0 1px 1px rgb(0 0 0 / 0.05);
|
|
380
|
+
--inset-shadow-sm: inset 0 2px 4px rgb(0 0 0 / 0.05);
|
|
381
|
+
|
|
382
|
+
--drop-shadow-xs: 0 1px 1px rgb(0 0 0 / 0.05);
|
|
383
|
+
--drop-shadow-sm: 0 1px 2px rgb(0 0 0 / 0.15);
|
|
384
|
+
--drop-shadow-md: 0 3px 3px rgb(0 0 0 / 0.12);
|
|
385
|
+
--drop-shadow-lg: 0 4px 4px rgb(0 0 0 / 0.15);
|
|
386
|
+
--drop-shadow-xl: 0 9px 7px rgb(0 0 0 / 0.1);
|
|
387
|
+
--drop-shadow-2xl: 0 25px 25px rgb(0 0 0 / 0.15);
|
|
388
|
+
|
|
389
|
+
--text-shadow-2xs: 0px 1px 0px rgb(0 0 0 / 0.15);
|
|
390
|
+
--text-shadow-xs: 0px 1px 1px rgb(0 0 0 / 0.2);
|
|
391
|
+
--text-shadow-sm:
|
|
392
|
+
0px 1px 0px rgb(0 0 0 / 0.075), 0px 1px 1px rgb(0 0 0 / 0.075), 0px 2px 2px rgb(0 0 0 / 0.075);
|
|
393
|
+
--text-shadow-md:
|
|
394
|
+
0px 1px 1px rgb(0 0 0 / 0.1), 0px 1px 2px rgb(0 0 0 / 0.1), 0px 2px 4px rgb(0 0 0 / 0.1);
|
|
395
|
+
--text-shadow-lg:
|
|
396
|
+
0px 1px 2px rgb(0 0 0 / 0.1), 0px 3px 2px rgb(0 0 0 / 0.1), 0px 4px 8px rgb(0 0 0 / 0.1);
|
|
397
|
+
|
|
398
|
+
--ease-in: cubic-bezier(0.4, 0, 1, 1);
|
|
399
|
+
--ease-out: cubic-bezier(0, 0, 0.2, 1);
|
|
400
|
+
--ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
|
|
401
|
+
|
|
402
|
+
--animate-spin: spin 1s linear infinite;
|
|
403
|
+
--animate-ping: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
|
|
404
|
+
--animate-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
|
405
|
+
--animate-bounce: bounce 1s infinite;
|
|
406
|
+
|
|
407
|
+
@keyframes spin {
|
|
408
|
+
to {
|
|
409
|
+
transform: rotate(360deg);
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
@keyframes ping {
|
|
414
|
+
75%,
|
|
415
|
+
100% {
|
|
416
|
+
transform: scale(2);
|
|
417
|
+
opacity: 0;
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
@keyframes pulse {
|
|
422
|
+
50% {
|
|
423
|
+
opacity: 0.5;
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
@keyframes bounce {
|
|
428
|
+
0%,
|
|
429
|
+
100% {
|
|
430
|
+
transform: translateY(-25%);
|
|
431
|
+
animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
50% {
|
|
435
|
+
transform: none;
|
|
436
|
+
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
--blur-xs: 4px;
|
|
441
|
+
--blur-sm: 8px;
|
|
442
|
+
--blur-md: 12px;
|
|
443
|
+
--blur-lg: 16px;
|
|
444
|
+
--blur-xl: 24px;
|
|
445
|
+
--blur-2xl: 40px;
|
|
446
|
+
--blur-3xl: 64px;
|
|
447
|
+
|
|
448
|
+
--perspective-dramatic: 100px;
|
|
449
|
+
--perspective-near: 300px;
|
|
450
|
+
--perspective-normal: 500px;
|
|
451
|
+
--perspective-midrange: 800px;
|
|
452
|
+
--perspective-distant: 1200px;
|
|
453
|
+
|
|
454
|
+
--aspect-video: 16 / 9;
|
|
455
|
+
|
|
456
|
+
--default-transition-duration: 150ms;
|
|
457
|
+
--default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
458
|
+
--default-font-family: --theme(--font-sans, initial);
|
|
459
|
+
--default-font-feature-settings: --theme(--font-sans--font-feature-settings, initial);
|
|
460
|
+
--default-font-variation-settings: --theme(--font-sans--font-variation-settings, initial);
|
|
461
|
+
--default-mono-font-family: --theme(--font-mono, initial);
|
|
462
|
+
--default-mono-font-feature-settings: --theme(--font-mono--font-feature-settings, initial);
|
|
463
|
+
--default-mono-font-variation-settings: --theme(--font-mono--font-variation-settings, initial);
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
/* Deprecated */
|
|
467
|
+
@theme default inline reference {
|
|
468
|
+
--blur: 8px;
|
|
469
|
+
--shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
|
470
|
+
--shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
|
|
471
|
+
--drop-shadow: 0 1px 2px rgb(0 0 0 / 0.1), 0 1px 1px rgb(0 0 0 / 0.06);
|
|
472
|
+
--radius: 0.25rem;
|
|
473
|
+
--max-width-prose: 65ch;
|
|
474
|
+
}
|
|
475
|
+
`;function X(t){return Array.isArray(t)?t.map(e=>typeof e.text=="string"?e.text:e.type==="link"&&Array.isArray(e.content)?X(e.content):"").join(""):""}function Qt(t){if(!Array.isArray(t))return"";const e=[];for(const n of t){if(typeof n!="object"||n===null)continue;const r=n;switch(r.type??""){case"paragraph":case"heading":e.push(X(r.content));break;case"bulletListItem":e.push(`- ${X(r.content)}`);break;case"numberedListItem":e.push(X(r.content));break;case"checkListItem":{const i=r.props?.checked?"x":" ";e.push(`[${i}] ${X(r.content)}`);break}default:e.push(X(r.content));break}if(Array.isArray(r.children)&&r.children.length>0){const i=Qt(r.children);i&&e.push(i.split(`
|
|
476
|
+
`).map(o=>` ${o}`).join(`
|
|
477
|
+
`))}}return e.filter(Boolean).join(`
|
|
478
|
+
`)}function Ki({blockType:t,props:e,blocksToHTML:n}){return t.previewTemplate?I.jsx(Ji,{template:t.previewTemplate,props:e,blocksToHTML:n}):I.jsx(Ui,{blockType:t,props:e})}function Ui({blockType:t,props:e}){const n=t.fields??[];return n.length===0?I.jsx("p",{className:"text-sm text-muted-foreground italic",children:"No fields defined"}):I.jsx("div",{className:"space-y-1 text-sm",children:n.map(r=>I.jsxs("div",{className:"flex gap-2",children:[I.jsxs("span",{className:"text-muted-foreground",children:[r.label,":"]}),I.jsx("span",{className:"truncate",children:Hi(e[r.name])})]},r.name))})}function Hi(t){return t==null||t===""?"—":typeof t=="boolean"?t?"Yes":"No":Array.isArray(t)?`[${t.length} items]`:typeof t=="object"?"[Object]":String(t)}let Se=null;function Wi(){return Se||(Se=Xt(async()=>{const{compile:t}=await import("./lib-BrI1UB_t.js");return{compile:t}},[]).then(({compile:t})=>t(`${Bi}
|
|
479
|
+
@tailwind utilities;`))),Se}function Yi(t){const e=new Set,n=/class=["']([^"']*)["']/g;let r;for(;(r=n.exec(t))!==null;)for(const s of r[1].split(/\s+/))s&&e.add(s);return Array.from(e)}function Ji({template:t,props:e,blocksToHTML:n}){const r=G.useMemo(()=>{const a=new Be;return a.registerFilter("media_url",c=>typeof c=="string"?Kt(c):c),a},[]);r.registerFilter("blocks_html",a=>{if(!Array.isArray(a))return"";const c=n(a);return c?`<div class="bn-preview-prose">${c}</div>`:""}),r.registerFilter("blocks_text",a=>Array.isArray(a)?Qt(a):"");const i=`tw-preview-${G.useId().replace(/:/g,"")}`,[o,l]=G.useState({html:"",css:""}),h=G.useRef(null);return G.useEffect(()=>{let a=!1;async function c(){const f=await r.parseAndRender(t,e);if(a)return;let g="";try{g=(await Wi()).build(Yi(f))}catch{}a||l({html:f,css:g})}return c(),()=>{a=!0}},[t,e,r]),G.useEffect(()=>{if(!o.css)return;const a=document.createElement("style");return a.setAttribute("data-tw-preview",i),a.textContent=o.css,document.head.appendChild(a),h.current=a,()=>{a.remove(),h.current=null}},[o.css,i]),I.jsx("div",{className:"overflow-hidden text-sm",dangerouslySetInnerHTML:{__html:o.html}})}export{Ki as C};
|