PageSourceSearch

https://one.as/assets/vendor/framerusercontent.com/sites/5fJR4UCKHNSNhlwOuPOYqq/U_6FORZe2.BXZGOTU3.mjs

js one.as collected 2026-10-06 20:17:04 UTC 32,009 bytes, 8 lines download raw bytes

1import{t as e}from"./rolldown-runtime.BNzrsZbe.mjs";import{F as t,T as n,V as r,c as i,f as a,o,u as s,z as c}from"./react.BSdyBWPf.mjs";import{C as l}from"./motion.C8-r1nCR.mjs";import{A as u,C as d,Y as f,g as ee,o as p,r as te}from"./framer.Dz8965d_.mjs";function m(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function h(e,...t){if(!e)throw Error(`Assertion Error`+(t.length>0?`: `+t.join(` `):``))}function g(e){throw Error(`Unexpected value: ${e}`)}function _(e,t,n,r){h(e>=t,e,`outside lower bound for`,r),h(e<=n,e,`outside upper bound for`,r)}function v(e){return typeof e==`string`}function y(e){return Number.isFinite(e)}function b(e){return e===null}function x(e){if(b(e))return 0;switch(e.type){case p.Array:return 1;case p.Boolean:return 2;case p.Color:return 3;case p.Date:return 4;case p.Enum:return 5;case p.File:return 6;case p.ResponsiveImage:return 10;case p.Link:return 7;case p.Number:return 8;case p.Object:return 9;case p.RichText:return 11;case p.String:return 12;case p.VectorSetItem:return 13;default:g(e)}}function ne(e){let t=e.readUint16(),n=[];for(let r=0;r<t;r++){let t=w.read(e);n.push(t)}return{type:p.Array,value:n}}function re(e,t){for(let n of(e.writeUint16(t.value.length),t.value))w.write(e,n)}function ie(e,t,n){let r=e.value.length,i=t.value.length;if(r<i)return-1;if(r>i)return 1;for(let i=0;i<r;i++){let r=e.value[i],a=t.value[i],o=w.compare(r,a,n);if(o!==0)return o}return 0}function ae(e){return{type:p.Boolean,value:e.readUint8()!==0}}function oe(e,t){e.writeUint8(t.value?1:0)}function se(e,t){return e.value<t.value?-1:e.value>t.value?1:0}function ce(e){return{type:p.Color,value:e.readString()}}function le(e,t){e.writeString(t.value)}function ue(e,t){return e.value<t.value?-1:e.value>t.value?1:0}function de(e){let t=e.readInt64(),n=new Date(t);return{type:p.Date,value:n.toISOString()}}function fe(e,t){let n=new Date(t.value).getTime();e.writeInt64(n)}function pe(e,t){let n=new Date(e.value),r=new Date(t.value);return n<r?-1:n>r?1:0}function me(e){return{type:p.Enum,value:e.readString()}}function he(e,t){e.writeString(t.value)}function ge(e,t){return e.value<t.value?-1:e.value>t.value?1:0}function _e(e){return{type:p.File,value:e.readString()}}function ve(e,t){e.writeString(t.value)}function ye(e,t){return e.value<t.value?-1:e.value>t.value?1:0}function be(e){return{type:p.Link,value:e.readJson()}}function xe(e,t){e.writeJson(t.value)}function Se(e,t){let n=JSON.stringify(e.value),r=JSON.stringify(t.value);return n<r?-1:n>r?1:0}function Ce(e){return{type:p.Number,value:e.readFloat64()}}function we(e,t){e.writeFloat64(t.value)}function Te(e,t){return e.value<t.value?-1:e.value>t.value?1:0}function Ee(e){let t=e.readUint16(),n={};for(let r=0;r<t;r++){let t=e.readString();n[t]=w.read(e)}return{type:p.Object,value:n}}function De(e,t){let n=Object.entries(t.value);for(let[t,r]of(e.writeUint16(n.length),n))e.writeString(t),w.write(e,r)}function Oe(e,t,n){let r=Object.keys(e.value).sort(),i=Object.keys(t.value).sort();if(r.length<i.length)return-1;if(r.length>i.length)return 1;for(let a=0;a<r.length;a++){let o=r[a],s=i[a];if(o<s)return-1;if(o>s)return 1;let c=e.value[o]??null,l=t.value[s]??null,u=w.compare(c,l,n);if(u!==0)return u}return 0}function ke(e){return{type:p.ResponsiveImage,value:e.readJson()}}function Ae(e,t){e.writeJson(t.value)}function je(e,t){let n=JSON.stringify(e.value),r=JSON.stringify(t.value);return n<r?-1:n>r?1:0}function Me(e){let t=e.readInt8();if(t===0)return{type:p.RichText,value:e.readUint32()};if(t===1)return{type:p.RichText,value:e.readString()};throw Error(`Invalid rich text pointer`)}function Ne(e,t){if(y(t.value)){e.writeInt8(0),e.writeUint32(t.value);return}if(v(t.value)){e.writeInt8(1),e.writeString(t.value);return}throw Error(`Invalid rich text pointer`)}function Pe(e,t){let n=e.value,r=t.value;if(y(n)&&y(r)||v(n)&&v(r))return n<r?-1:n>r?1:0;throw Error(`Invalid rich text pointer`)}function Fe(e){return{type:p.String,value:e.readString()}}function Ie(e,t){e.writeString(t.value)}function Le(e,t,n){let r=e.value,i=t.value;return n.type===0&&(r=e.value.toLowerCase(),i=t.value.toLowerCase()),r<i?-1:r>i?1:0}function Re(e){return{type:p.VectorSetItem,value:e.readUint32()}}function ze(e,t){e.writeUint32(t.value)}function Be(e,t){let n=e.value,r=t.value;return n<r?-1:n>r?1:0}async function Ve(e){let t=Math.floor(Xe*(Math.random()+1)*2**(e-1));await new Promise(e=>{setTimeout(e,t)})}async function S(e,t){let n=He(t),r=[],i=0;for(let e of n)r.push(`${e.from}-${e.to-1}`),i+=e.to-e.from;let a=new URL(e),o=r.join(`,`);a.searchParams.set(`range`,o);let s=await U(a);if(s.status!==200)throw Error(`Request failed: ${s.status} ${s.statusText}`);let c=await s.arrayBuffer(),l=new Uint8Array(c);if(l.length!==i)throw Error(`Request failed: Unexpected response length`);let u=new Qe,d=0;for(let e of n){let t=e.to-e.from,n=d+t,r=l.subarray(d,n);u.write(e.from,r),d=n}return t.map(e=>u.read(e.from,e.to-e.from))}function C(e,t){let n=e.length+t.length,r=new Uint8Array(n);return r.set(e,0),r.set(t,e.length),r}function He(e){h(e.length>0,`Must have at least one range`);let t=[...e].sort((e,t)=>
1e.from-t.from),n=[];for(let e of t){let t=n.length-1,r=n[t];r&&e.from<=r.to?n[t]={from:r.from,to:Math.max(r.to,e.to)}:n.push(e)}return n}var w,T,E,D,O,k,A,j,M,Ue,We,N,Ge,P,F,Ke,qe,I,L,R,z,B,Je,V,Ye,H,Xe,Ze,U,Qe,W,G,$e,et,tt=e((()=>{c(),f(),T=Object.create,E=Object.defineProperty,D=Object.getOwnPropertyDescriptor,O=Object.getOwnPropertyNames,k=Object.getPrototypeOf,A=Object.prototype.hasOwnProperty,j=(e,t,n)=>t in e?E(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,M=(e,t)=>function(){return t||(0,e[O(e)[0]])((t={exports:{}}).exports,t),t.exports},Ue=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of O(t))A.call(e,i)||i===n||E(e,i,{get:()=>t[i],enumerable:!(r=D(t,i))||r.enumerable});return e},We=(e,t,n)=>(n=e==null?{}:T(k(e)),Ue(!t&&e&&e.__esModule?n:E(n,`default`,{value:e,enumerable:!0}),e)),N=(e,t,n)=>j(e,typeof t==`symbol`?t:t+``,n),Ge=We(M({"../../../node_modules/dataloader/index.js"(e,t){var n,r=function(){function e(e,t){if(typeof e!=`function`)throw TypeError(`DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but got: `+e+`.`);this._batchLoadFn=e,this._maxBatchSize=function(e){if(!(!e||!1!==e.batch))return 1;var t=e&&e.maxBatchSize;if(t===void 0)return 1/0;if(typeof t!=`number`||t<1)throw TypeError(`maxBatchSize must be a positive number: `+t);return t}(t),this._batchScheduleFn=function(e){var t=e&&e.batchScheduleFn;if(t===void 0)return i;if(typeof t!=`function`)throw TypeError(`batchScheduleFn must be a function: `+t);return t}(t),this._cacheKeyFn=function(e){var t=e&&e.cacheKeyFn;if(t===void 0)return function(e){return e};if(typeof t!=`function`)throw TypeError(`cacheKeyFn must be a function: `+t);return t}(t),this._cacheMap=function(e){if(!(!e||!1!==e.cache))return null;var t=e&&e.cacheMap;if(t===void 0)return new Map;if(t!==null){var n=[`get`,`set`,`delete`,`clear`].filter(function(e){return t&&typeof t[e]!=`function`});if(n.length!==0)throw TypeError(`Custom cacheMap missing methods: `+n.join(`, `))}return t}(t),this._batch=null,this.name=t&&t.name?t.name:null}var t=e.prototype;return t.load=function(e){if(e==null)throw TypeError(`The loader.load() function must be called with a value, but got: `+String(e)+`.`);var t=function(e){var t=e._batch;if(t!==null&&!t.hasDispatched&&t.keys.length<e._maxBatchSize)return t;var n={hasDispatched:!1,keys:[],callbacks:[]};return e._batch=n,e._batchScheduleFn(function(){(function(e,t){var n;if(t.hasDispatched=!0,t.keys.length===0){o(t);return}try{n=e._batchLoadFn(t.keys)}catch(n){return a(e,t,TypeError(`DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function errored synchronously: `+String(n)+`.`))}if(!n||typeof n.then!=`function`)return a(e,t,TypeError(`DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function did not return a Promise: `+String(n)+`.`));n.then(function(e){if(!s(e))throw TypeError(`DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function did not return a Promise of an Array: `+String(e)+`.`);if(e.length!==t.keys.length)throw TypeError(`DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function did not return a Promise of an Array of the same length as the Array of keys.
2
3Keys:
4`+String(t.keys)+`
5
6Values:
7`+String(e));o(t);for(var n=0;n<t.callbacks.length;n++){var r=e[n];r instanceof Error?t.callbacks[n].reject(r):t.callbacks[n].resolve(r)}}).catch(function(n){a(e,t,n)})})(e,n)}),n}(this),n=this._cacheMap,r=this._cacheKeyFn(e);if(n){var i=n.get(r);if(i){var c=t.cacheHits||=[];return new Promise(function(e){c.push(function(){e(i)})})}}t.keys.push(e);var l=new Promise(function(e,n){t.callbacks.push({resolve:e,reject:n})});return n&&n.set(r,l),l},t.loadMany=function(e){if(!s(e))throw TypeError(`The loader.loadMany() function must be called with Array<key> but got: `+e+`.`);for(var t=[],n=0;n<e.length;n++)t.push(this.load(e[n]).catch(function(e){return e}));return Promise.all(t)},t.clear=function(e){var t=this._cacheMap;if(t){var n=this._cacheKeyFn(e);t.delete(n)}return this},t.clearAll=function(){var e=this._cacheMap;return e&&e.clear(),this},t.prime=function(e,t){var n=this._cacheMap;if(n){var r,i=this._cacheKeyFn(e);n.get(i)===void 0&&(t instanceof Error?(r=Promise.reject(t)).catch(function(){}):r=Promise.resolve(t),n.set(i,r))}return this},e}(),i=typeof process==`object`&&typeof process.nextTick==`function`?function(e){n||=Promise.resolve(),n.then(function(){process.nextTick(e)})}:typeof setImmediate==`function`?function(e){setImmediate(e)}:function(e){setTimeout(e)};function a(e,t,n){o(t);for(var r=0;r<t.keys.length;r++)e.clear(t.keys[r]),t.callbacks[r].reject(n)}
7function o(e){if(e.cacheHits)for(var t=0;t<e.cacheHits.length;t++)e.cacheHits[t]()}function s(e){return typeof e==`object`&&!!e&&typeof e.length==`number`&&(e.length===0||e.length>0&&Object.prototype.hasOwnProperty.call(e,e.length-1))}t.exports=r}})()),P={Uint8:1,Uint16:2,Uint32:4,BigUint64:8,Int8:1,Int16:2,Int32:4,BigInt64:8,Float32:4,Float64:8},F=class{getOffset(){return this.offset}ensureLength(e){let t=this.bytes.length;if(!(this.offset+e<=t))throw Error(`Reading out of bounds`)}readUint8(){let e=P.Uint8;this.ensureLength(e);let t=this.view.getUint8(this.offset);return this.offset+=e,t}readUint16(){let e=P.Uint16;this.ensureLength(e);let t=this.view.getUint16(this.offset);return this.offset+=e,t}readUint32(){let e=P.Uint32;this.ensureLength(e);let t=this.view.getUint32(this.offset);return this.offset+=e,t}readUint64(){let e=this.readBigUint64();return Number(e)}readBigUint64(){let e=P.BigUint64;this.ensureLength(e);let t=this.view.getBigUint64(this.offset);return this.offset+=e,t}readInt8(){let e=P.Int8;this.ensureLength(e);let t=this.view.getInt8(this.offset);return this.offset+=e,t}readInt16(){let e=P.Int16;this.ensureLength(e);let t=this.view.getInt16(this.offset);return this.offset+=e,t}readInt32(){let e=P.Int32;this.ensureLength(e);let t=this.view.getInt32(this.offset);return this.offset+=e,t}readInt64(){let e=this.readBigInt64();return Number(e)}readBigInt64(){let e=P.BigInt64;this.ensureLength(e);let t=this.view.getBigInt64(this.offset);return this.offset+=e,t}readFloat32(){let e=P.Float32;this.ensureLength(e);let t=this.view.getFloat32(this.offset);return this.offset+=e,t}readFloat64(){let e=P.Float64;this.ensureLength(e);let t=this.view.getFloat64(this.offset);return this.offset+=e,t}readBytes(e){let t=this.offset,n=t+e,r=this.bytes.subarray(t,n);return this.offset=n,r}readString(){let e=this.readUint32(),t=this.readBytes(e);return this.decoder.decode(t)}readJson(){let e=this.readString();return JSON.parse(e)}constructor(e){this.bytes=e,N(this,`offset`,0),N(this,`view`),N(this,`decoder`,new TextDecoder),this.view=m(this.bytes)}},r!==void 0&&r.requestIdleCallback,Ke=1024,qe=1.5,I=e=>2**e-1,L=e=>-(2**(e-1)),R=e=>2**(e-1)-1,z={Uint8:0,Uint16:0,Uint32:0,Uint64:0,BigUint64:0,Int8:L(8),Int16:L(16),Int32:L(32),Int64:-(2**53-1),BigInt64:-(BigInt(2)**BigInt(63))},B={Uint8:I(8),Uint16:I(16),Uint32:I(32),Uint64:2**53-1,BigUint64:BigInt(2)**BigInt(64)-BigInt(1),Int8:R(8),Int16:R(16),Int32:R(32),Int64:2**53-1,BigInt64:BigInt(2)**BigInt(63)-BigInt(1)},Je=class{getOffset(){return this.offset}slice(e=0,t=this.offset){return this.bytes.slice(e,t)}subarray(e=0,t=this.offset){return this.bytes.subarray(e,t)}ensureLength(e){let t=this.bytes.length;if(this.offset+e<=t)return;let n=new Uint8Array(Math.ceil(t*qe)+e);n.set(this.bytes),this.bytes=n,this.view=m(n)}writeUint8(e){_(e,z.Uint8,B.Uint8,`Uint8`);let t=P.Uint8;this.ensureLength(t),this.view.setUint8(this.offset,e),this.offset+=t}writeUint16(e){_(e,z.Uint16,B.Uint16,`Uint16`);let t=P.Uint16;this.ensureLength(t),this.view.setUint16(this.offset,e),this.offset+=t}writeUint32(e){_(e,z.Uint32,B.Uint32,`Uint32`);let t=P.Uint32;this.ensureLength(t),this.view.setUint32(this.offset,e),this.offset+=t}writeUint64(e){_(e,z.Uint64,B.Uint64,`Uint64`);let t=BigInt(e);this.writeBigUint64(t)}writeBigUint64(e){_(e,z.BigUint64,B.BigUint64,`BigUint64`);let t=P.BigUint64;this.ensureLength(t),this.view.setBigUint64(this.offset,e),this.offset+=t}writeInt8(e){_(e,z.Int8,B.Int8,`Int8`);let t=P.Int8;this.ensureLength(t),this.view.setInt8(this.offset,e),this.offset+=t}writeInt16(e){_(e,z.Int16,B.Int16,`Int16`);let t=P.Int16;this.ensureLength(t),this.view.setInt16(this.offset,e),this.offset+=t}writeInt32(e){_(e,z.Int32,B.Int32,`Int32`);let t=P.Int32;this.ensureLength(t),this.view.setInt32(this.offset,e),this.offset+=t}writeInt64(e){_(e,z.Int64,B.Int64,`Int64`);let t=BigInt(e);this.writeBigInt64(t)}writeBigInt64(e){_(e,z.BigInt64,B.BigInt64,`BigInt64`);let t=P.BigInt64;this.ensureLength(t),this.view.setBigInt64(this.offset,e),this.offset+=t}writeFloat32(e){let t=P.Float32;this.ensureLength(t),this.view.setFloat32(this.offset,e),this.offset+=t}writeFloat64(e){let t=P.Float64;this.ensureLength(t),this.view.setFloat64(this.offset,e),this.offset+=t}writeBytes(e){let t=e.length;this.ensureLength(t),this.bytes.set(e,this.offset),this.offset+=t}encodeString(e){let t=this.encodedStrings.get(e);if(t)return t;let n=this.encoder.encode(e);return this.encodedStrings.set(e,n),n}writeString(e){let t=this.encodeString(e),n=t.length;this.writeUint32(n),this.writeBytes(t)}writeJson(e){let t=JSON.stringify(e);this.writeString(t)}constructor(){N(this,`offset`,0),N(this,`bytes`,new Uint8Array(Ke)),N(this,`view`,m(this.bytes)),N(this,`encoder`,new TextEncoder),N(this,`encodedStrings`,new Map)}},V=class e{static fromString(t){let[n,r,i]=t.split(`/`).map(Number);return h(y(n),`Invalid chunkId`),h(y(r),`Invalid offset`),h(y(i),`Invalid length`),new e(n,r,i)}toString(){return`${this.chunkId}/${this.offset}/${this.length}`}static read(t){return new e(t.readUint16(),t.readUint32(),t.readUint32())}write(e){e.writeUint16(this.chunkId),e.writeUint32(this.offset),e.writeUint32(this.length)}compare(e){return this.chunkId<e.chunkId?-1:this.chunkId>e.chunkId?1:this.offset<e.offset?-1:this.offset>e.offset?1:(h(this.length===e.length),0)}constructor(e,t,n){this.chunkId=e,this.offset=t,this.length=n}},(e=>{e.read=function(e){let t=e.readUint8();switch(t){case 0:return null;case 1:return ne(e);case 2:return ae(e);case 3:return ce(e);case 4:return de(e);case 5:return me(e);case 6:return _e(e);case 7:return be(e);case 8:return Ce(e);case 9:return Ee(e);case 10:return ke(e);case 11:return Me(e);case 12:return Fe(e);case 13:return Re(e);default:g(t)}},e.write=function(e,t){let n=x(t);if(e.writeUint8(n),!b(t))switch(t.type){case p.Array:return re(e,t);case p.Boolean:return oe(e,t);case p.Color:return le(e,t);case p.Date:return fe(e,t);case p.Enum:return he(e,t);case p.File:return ve(e,t);case p.Link:return xe(e,t);case p.Number:return we(e,t);case p.Object:return De(e,t);case p.ResponsiveImage:return Ae(e,t);case p.RichText:return Ne(e,t);case p.VectorSetItem:return ze(e,t);case p.String:return Ie(e,t);default:g(t)}},e.compare=function(e,t,n){let r=x(e),i=x(t);if(r<i)return-1;if(r>i)return 1;if(b(e)||b(t))return 0;switch(e.type){case p.Array:return h(t.type===p.Array),ie(e,t,n);case p.Boolean:return h(t.type===p.Boolean),se(e,t);case p.Color:return h(t.type===p.Color),ue(e,t);case p.Date:return h(t.type===p.Date),pe(e,t);case p.Enum:return h(t.type===p.Enum),ge(e,t);case p.File:return h(t.type===p.File),ye(e,t);case p.Link:return h(t.type===p.Link),Se(e,t);case p.Number:return h(t.type===p.Number),Te(e,t);case p.Object:return h(t.type===p.Object),Oe(e,t,n);case p.ResponsiveImage:return h(t.type===p.ResponsiveImage),je(e,t);case p.RichText:return h(t.type===p.RichText),Pe(e,t);case p.VectorSetItem:return h(t.type===p.VectorSetItem),Be(e,t);case p.String:return h(t.type===p.String),Le(e,t,n);default:g(e)}}})(w||={}),Ye=class e{sortEntries(){this.entries.sort((e,t)=>
7{for(let n=0;n<this.fieldNames.length;n++){let r=e.values[n],i=t.values[n],a=w.compare(r,i,this.options.collation);if(a!==0)return a}return e.pointer.compare(t.pointer)})}static deserialize(t){let n=new F(t),r=n.readJson(),i=n.readUint8(),a=[];for(let e=0;e<i;e++){let e=n.readString();a.push(e)}let o=new e(a,{collation:r}),s=n.readUint32();for(let e=0;e<s;e++){let e=[];for(let t=0;t<i;t++){let t=w.read(n);e.push(t)}let t=V.read(n);o.entries.push({values:e,pointer:t})}return o}serialize(){let e=new Je;for(let t of(e.writeJson(this.options.collation),e.writeUint8(this.fieldNames.length),this.fieldNames))e.writeString(t);for(let t of(this.sortEntries(),e.writeUint32(this.entries.length),this.entries)){let{values:n,pointer:r}=t;for(let t of n)w.write(e,t);r.write(e)}return e.subarray()}addItem(e,t){let n=this.fieldNames.map(t=>e.getField(t)??null);this.entries.push({values:n,pointer:t})}constructor(e,t){this.fieldNames=e,this.options=t,N(this,`entries`,[])}},H=3,Xe=250,Ze=[408,429,500,502,503,504],U=async(e,t)=>{let n=0;for(;;){try{let r=await fetch(e,t);if(!Ze.includes(r.status)||++n>H)return r}catch(e){if(t?.signal?.aborted||++n>H)throw e}await Ve(n)}},Qe=class{read(e,t){for(let n of this.chunks){if(e<n.start)break;if(e>n.end)continue;if(e+t>n.end)break;let r=e-n.start,i=r+t;return n.data.slice(r,i)}throw Error(`Missing data`)}write(e,t){let n=e,r=n+t.length,i=0,a=this.chunks.length;for(;i<a;i++){let e=this.chunks[i];if(h(e,`Missing chunk`),!(n>e.end)){if(n>e.start){let r=n-e.start;t=C(e.data.subarray(0,r),t),n=e.start}break}}for(;a>i;a--){let e=this.chunks[a-1];if(h(e,`Missing chunk`),!(r<e.start)){if(r<e.end){let n=r-e.start,i=e.data.subarray(n);t=C(t,i),r=e.end}break}}let o={start:n,end:r,data:t},s=a-i;this.chunks.splice(i,s,o)}constructor(){N(this,`chunks`,[])}},W=class{async loadModel(){let[e]=await S(this.options.url,[this.options.range]);return h(e,`Failed to load model`),Ye.deserialize(e)}async getModel(){return this.modelPromise??=this.loadModel(),this.model??=await this.modelPromise,this.model}async lookupItems(e){h(e.length===this.fields.length,`Invalid query length`);let t=await this.getModel(),n=e.reduce((e,t,n)=>e.flatMap(e=>{switch(t.type){case`All`:return[e];case`Equals`:return this.queryEquals(e,t,n);case`NotEquals`:return this.queryNotEquals(e,t,n);case`LessThan`:return this.queryLessThan(e,t,n);case`GreaterThan`:return this.queryGreaterThan(e,t,n);case`Contains`:return this.queryContains(e,t,n);case`StartsWith`:return this.queryStartsWith(e,t,n);case`EndsWith`:return this.queryEndsWith(e,t,n);default:g(t)}}),[t.entries]),r=[];for(let e of n)for(let t of e){let e={};for(let n=0;n<this.options.fieldNames.length;n++){let r=this.options.fieldNames[n];e[r]=t.values[n]}r.push({pointer:t.pointer.toString(),data:e})}return r}queryEquals(e,t,n){let r=this.getLeftMost(e,n,t.value),i=this.getRightMost(e,n,t.value),a=e.slice(r,i+1);return a.length>0?[a]:[]}queryNotEquals(e,t,n){let r=this.getLeftMost(e,n,t.value),i=this.getRightMost(e,n,t.value),a=[],o=e.slice(0,r);o.length>0&&a.push(o);let s=e.slice(i+1);return s.length>0&&a.push(s),a}queryLessThan(e,t,n){let r=this.getRightMost(e,n,null);if(e=e.slice(r+1),t.inclusive){let r=this.getRightMost(e,n,t.value),i=e.slice(0,r+1);return i.length>0?[i]:[]}let i=this.getLeftMost(e,n,t.value),a=e.slice(0,i);return a.length>0?[a]:[]}queryGreaterThan(e,t,n){let r=this.getRightMost(e,n,null);if(e=e.slice(r+1),t.inclusive){let r=this.getLeftMost(e,n,t.value),i=e.slice(r);return i.length>0?[i]:[]}let i=this.getRightMost(e,n,t.value),a=e.slice(i+1);return a.length>0?[a]:[]}queryContains(e,t,n){return this.findItems(e,n,e=>{if(e?.type!==p.String||t.value?.type!==p.String)return!1;let n=e.value,r=t.value.value;return this.collation.type===0&&(n=n.toLowerCase(),r=r.toLowerCase()),n.includes(r)})}queryStartsWith(e,t,n){return this.findItems(e,n,e=>{if(e?.type!==p.String||t.value?.type!==p.String)return!1;let n=e.value,r=t.value.value;return this.collation.type===0&&(n=n.toLowerCase(),r=r.toLowerCase()),n.startsWith(r)})}queryEndsWith(e,t,n){return this.findItems(e,n,e=>{if(e?.type!==p.String||t.value?.type!==p.String)return!1;let n=e.value,r=t.value.value;return this.collation.type===0&&(n=n.toLowerCase(),r=r.toLowerCase()),n.endsWith(r)})}getLeftMost(e,t,n){let r=0,i=e.length;for(;r<i;){let a=r+i>>1,o=e[a].values[t];0>w.compare(o,n,this.collation)?r=a+1:i=a}return r}getRightMost(e,t,n){let r=0,i=e.length;for(;r<i;){let a=r+i>>1,o=e[a].values[t];w.compare(o,n,this.collation)>0?i=a:r=a+1}return i-1}
7findItems(e,t,n){let r=[],i=0;for(let a=0;a<e.length;a++){let o=e[a].values[t];if(!n(o)){if(i<a){let t=e.slice(i,a);r.push(t)}i=a+1}}if(i<e.length){let t=e.slice(i);r.push(t)}return r}constructor(e){this.options=e,N(this,`schema`),N(this,`fields`),N(this,`supportedLookupTypes`,[`All`,`Equals`,`NotEquals`,`LessThan`,`GreaterThan`,`Contains`,`StartsWith`,`EndsWith`]),N(this,`modelPromise`),N(this,`model`),N(this,`collation`);let t={},n=[];for(let e of this.options.fieldNames){let r=this.options.collectionSchema[e];h(r,`Missing definition for field`,e),t[e]=r,n.push({type:`Identifier`,name:e})}this.schema=t,this.fields=n,this.collation=this.options.collation}},G=class e{static read(t){let n=new e,r=t.readUint16();for(let e=0;e<r;e++){let e=t.readString(),r=w.read(t);n.setField(e,r)}return n}write(e){for(let[t,n]of(e.writeUint16(this.fields.size),this.fields))e.writeString(t),w.write(e,n)}getData(){let e={};for(let[t,n]of this.fields)e[t]=n;return e}setField(e,t){this.fields.set(e,t)}getField(e){return this.fields.get(e)}constructor(){N(this,`fields`,new Map)}},$e=class{scanItems(){return this.itemsPromise??=U(this.url).then(async e=>{if(!e.ok)throw Error(`Request failed: ${e.status} ${e.statusText}`);let t=await e.arrayBuffer(),n=new F(new Uint8Array(t)),r=[],i=n.readUint32();for(let e=0;e<i;e++){let e=n.getOffset(),t=G.read(n),i=n.getOffset()-e,a=new V(this.id,e,i).toString(),o={pointer:a,data:t.getData()};this.itemLoader.prime(a,o),r.push(o)}return r}),this.itemsPromise}resolveItem(e){return this.itemLoader.load(e)}constructor(e,t){this.id=e,this.url=t,N(this,`itemsPromise`),N(this,`itemLoader`,new Ge.default(async e=>{let t=e.map(e=>{let t=V.fromString(e);return{from:t.offset,to:t.offset+t.length}});return(await S(this.url,t)).map((t,n)=>{let r=new F(t),i=G.read(r),a=e[n];return h(a,`Missing pointer`),{pointer:a,data:i.getData()}})}))}},et=class{async scanItems(){return(await Promise.all(this.chunks.map(async e=>e.scanItems()))).flat()}resolveItems(e){return Promise.all(e.map(e=>{let t=V.fromString(e),n=this.chunks[t.chunkId];return h(n,`Missing chunk`),n.resolveItem(e)}))}compareItems(e,t){let n=V.fromString(e.pointer),r=V.fromString(t.pointer);return n.compare(r)}compareValues(e,t,n){return w.compare(e,t,n)}constructor(e){this.options=e,N(this,`id`),N(this,`schema`),N(this,`indexes`),N(this,`resolveRichText`),N(this,`resolveVectorSetItem`),N(this,`chunks`),this.chunks=this.options.chunks.map((e,t)=>new $e(t,e)),this.schema=e.schema,this.indexes=e.indexes,this.resolveRichText=e.resolveRichText,this.resolveVectorSetItem=e.resolveVectorSetItem,this.id=e.id}}}));function nt(e){return typeof e==`object`&&!!e&&!a(e)&&at in e}function rt(e,...t){if(!e)throw Error(`Assertion Error`+(t.length>0?`: `+t.join(` `):``))}function it(e){let n=new Map;return r=>{let a=n.get(r);if(a)return a;let o=function n(r){switch(r[0]){case 1:{let[,...e]=r;return s(t,void 0,...e.map(n))}case 2:{let[,e,...t]=r;return s(ee,e,...t.map(n))}case 3:{let[,t,a,o]=r;for(let e of o){let t=a[e];t&&(a[e]=n(t))}let s=e[t];return rt(s,`Module not found`),nt(s)&&s.preload(),i(te,{componentIdentifier:t,children:e=>i(s,{...e,...a})})}case 4:{let[,e,t,...i]=r,a=i.map(n);return s(e===`a`?l.a:e,t,...a)}case 5:{let[,e]=r;return e}}}(JSON.parse(r));return n.set(r,o),o}}var K,at,ot,st=e((()=>{c(),o(),f(),n(),r!==void 0&&r.requestIdleCallback,at=`preload`,ot=((K=ot||{})[K.Fragment=1]=`Fragment`,K[K.Link=2]=`Link`,K[K.Module=3]=`Module`,K[K.Tag=4]=`Tag`,K[K.Text=5]=`Text`,K)})),q,ct,J,lt,ut,dt,ft,pt,Y,mt,ht,gt,_t,vt,yt,bt,xt,St,X,Z,Q,Ct,$,wt,Tt,Et,Dt=e((()=>{f(),tt(),st(),q={afD5Qs4EF:{isNullable:!0,type:p.String},ANyp2CI1H:{isNullable:!0,type:p.Enum},ciamA4Nri:{isNullable:!0,type:p.String},createdAt:{isNullable:!0,type:p.Date},gDgZPEETh:{isNullable:!0,type:p.RichText},id:{isNullable:!1,type:p.String},n03IawuvU:{isNullable:!0,type:p.Date},nextItemId:{isNullable:!0,type:p.String},previousItemId:{isNullable:!0,type:p.String},rCSvQg2jB:{isNullable:!0,type:p.ResponsiveImage},TTOnKfNke:{isNullable:!0,type:p.String},updatedAt:{isNullable:!0,type:p.Date},VPsIsrGR5:{isNullable:!0,type:p.String}},ct=[`id`],J={type:1},lt=[`previousItemId`],ut=[`nextItemId`],dt=[`id`,`ciamA4Nri`],ft=[`ciamA4Nri`,`id`],pt=[`rCSvQg2jB`],Y={type:0},mt=[`VPsIsrGR5`],ht=[`TTOnKfNke`],gt=[`afD5Qs4EF`],_t=[`n03IawuvU`],vt=[`ANyp2CI1H`],yt=[`gDgZPEETh`],bt=[`ciamA4Nri`],xt=[],St=e=>{let t=xt[e];if(t)return t().then(e=>e.default)},X=it({}),Z=new d,Q={collectionByLocaleId:{default:new et({chunks:[new URL("/assets/vendor/framerusercontent.com/cms/xojMbye4kYWQOodFJezs/vlFghLscZs463AFADPj2/U_6FORZe2-chunk-default-0.framercms",location.origin).href],id:`51e022a4-ccb5-4286-885c-a5c6823a69f6default`,indexes:[new W({collation:J,collectionSchema:q,fieldNames:ct,range:{from:0,to:217},url:new URL("/assets/vendor/framerusercontent.com/cms/xojMbye4kYWQOodFJezs/vlFghLscZs463AFADPj2/U_6FORZe2-indexes-default-0.framercms",location.origin).href}),new W({collation:J,collectionSchema:q,fieldNames:lt,range:{from:217,to:433},url:new URL("/assets/vendor/framerusercontent.com/cms/xojMbye4kYWQOodFJezs/vlFghLscZs463AFADPj2/U_6FORZe2-indexes-default-0.framercms",location.origin).href}),new W({collation:J,collectionSchema:q,fieldNames:ut,range:{from:433,to:645},url:new URL("/assets/vendor/framerusercontent.com/cms/xojMbye4kYWQOodFJezs/vlFghLscZs463AFADPj2/U_6FORZe2-indexes-default-0.framercms",location.origin).href}),new W({collation:J,collectionSchema:q,fieldNames:dt,range:{from:645,to:1426},url:new URL("/assets/vendor/framerusercontent.com/cms/xojMbye4kYWQOodFJezs/vlFghLscZs463AFADPj2/U_6FORZe2-indexes-default-0.framercms",location.origin).href}),new W({collation:J,collectionSchema:q,fieldNames:ft,range:{from:1426,to:2207},url:new URL("/assets/vendor/framerusercontent.com/cms/xojMbye4kYWQOodFJezs/vlFghLscZs463AFADPj2/U_6FORZe2-indexes-default-0.framercms",location.origin).href}),new W({collation:Y,collectionSchema:q,fieldNames:pt,range:{from:2207,to:6394},url:new URL("/assets/vendor/framerusercontent.com/cms/xojMbye4kYWQOodFJezs/vlFghLscZs463AFADPj2/U_6FORZe2-indexes-default-0.framercms",location.origin).href}),new W({collation:Y,collectionSchema:q,fieldNames:mt,range:{from:6394,to:7064},url:new URL("/assets/vendor/framerusercontent.com/cms/xojMbye4kYWQOodFJezs/vlFghLscZs463AFADPj2/U_6FORZe2-indexes-default-0.framercms",location.origin).href}),new W({collation:Y,collectionSchema:q,fieldNames:ht,range:{from:7064,to:7288},url:new URL("/assets/vendor/framerusercontent.com/cms/xojMbye4kYWQOodFJezs/vlFghLscZs463AFADPj2/U_6FORZe2-indexes-default-0.framercms",location.origin).href}),new W({collation:Y,collectionSchema:q,fieldNames:gt,range:{from:7288,to:8536},url:new URL("/assets/vendor/framerusercontent.com/cms/xojMbye4kYWQOodFJezs/vlFghLscZs463AFADPj2/U_6FORZe2-indexes-default-0.framercms",location.origin).href}),new W({collation:Y,collectionSchema:q,fieldNames:_t,range:{from:8536,to:8720},url:new URL("/assets/vendor/framerusercontent.com/cms/xojMbye4kYWQOodFJezs/vlFghLscZs463AFADPj2/U_6FORZe2-indexes-default-0.framercms",location.origin).href}),new W({collation:Y,collectionSchema:q,fieldNames:vt,range:{from:8720,to:8944},url:new URL("/assets/vendor/framerusercontent.com/cms/xojMbye4kYWQOodFJezs/vlFghLscZs463AFADPj2/U_6FORZe2-indexes-default-0.framercms",location.origin).href}),new W({collation:Y,collectionSchema:q,fieldNames:yt,range:{from:8944,to:81593},url:new URL("/assets/vendor/framerusercontent.com/cms/xojMbye4kYWQOodFJezs/vlFghLscZs463AFADPj2/U_6FORZe2-indexes-default-0.framercms",location.origin).href}),new W({collation:Y,collectionSchema:q,fieldNames:bt,range:{from:81593,to:82256},url:new URL("/assets/vendor/framerusercontent.com/cms/xojMbye4kYWQOodFJezs/vlFghLscZs463AFADPj2/U_6FORZe2-indexes-default-0.framercms",location.origin).href})],resolveRichText:X,resolveVectorSetItem:St,schema:q})},displayName:`Blog`,id:`51e022a4-ccb5-4286-885c-a5c6823a69f6`},Ct=Q,u(Q,{rCSvQg2jB:{title:`Image`,type:p.ResponsiveImage},VPsIsrGR5:{defaultValue:``,title:`Title`,type:p.String},TTOnKfNke:{dataIdentifier:`local-module:collection/cWvntQc7L:default`,defaultValue:`D_kg8D9sm`,title:`Blog Author`,type:p.CollectionReference},afD5Qs4EF:{defaultValue:``,displayTextArea:!0,title:`Meta description`,type:p.String},n03IawuvU:{title:`Date`,type:p.Date},ANyp2CI1H:{defaultValue:`hzmJODHSR`,options:[`hzmJODHSR`,`TReh0UIeI`,`MhHL0sqqx`,`vYxn5LDG_`],optionTitles:[`Digital PR Strategy`,`Media Relations`,`Data Journalism`,`Future of SEO`],title:`Category`,type:p.Enum},gDgZPEETh:{defaultValue:``,title:`Content`,type:p.RichText},ciamA4Nri:{preventLocalization:!1,title:`Slug`,type:p.String},createdAt:{title:`Created`,type:p.Date},updatedAt:{title:`Updated`,type:p.Date},previousItemId:{dataIdentifier:`local-module:collection/U_6FORZe2:default`,title:`Previous`,type:p.CollectionReference},nextItemId:{dataIdentifier:`local-module:collection/U_6FORZe2:default`,title:`Next`,type:p.CollectionReference}}),$=(e,t)=>{switch(t?.fallback,e){case`hzmJODHSR`:return`Digital PR Strategy`;case`TReh0UIeI`:return`Media Relations`;case`MhHL0sqqx`:return`Data Journalism`;case`vYxn5LDG_`:return`Future of SEO`;default:return``}},wt={ANyp2CI1H:$},Tt={async getSlugByRecordId(e,t){let[n]=await Z.query({from:{data:Q,type:`Collection`},limit:{type:`LiteralValue`,value:1},select:[{name:`ciamA4Nri`,type:`Identifier`}],where:{left:{name:`id`,type:`Identifier`},operator:`==`,right:{type:`LiteralValue`,value:e},type:`BinaryOperation`}},t);return n?.ciamA4Nri},async getRecordIdBySlug(e,t){let[n]=await Z.query({from:{data:Q,type:`Collection`},limit:{type:`LiteralValue`,value:1},select:[{name:`id`,type:`Identifier`}],where:{left:{name:`ciamA4Nri`,type:`Identifier`},operator:`==`,right:{type:`LiteralValue`,value:e},type:`BinaryOperation`}},t);return n?.id}},Et={exports:{utils:{type:`variable`,annotations:{framerContractVersion:`1`}},enumToDisplayNameFunctions:{type:`variable`,annotations:{framerContractVersion:`1`}},default:{type:`data`,name:`data`,annotations:{framerCollectionId:`U_6FORZe2`,framerEnumToDisplayNameUtils:`2`,framerContractVersion:`1`,framerColorSyntax:`false`,framerCollectionUtils:`1`,framerSlug:`ciamA4Nri`,framerAutoSizeImages:`true`,framerData:``,framerRecordIdKey:`id`}},ANyp2CI1HToDisplayName:{type:`variable`,annotations:{framerContractVersion:`1`}},__FramerMetadata__:{type:`variable`}}}}));export{Dt as a,wt as i,Ct as n,Tt as o,Et as r,$ as t};
8//# sourceMappingURL=U_6FORZe2.BXZGOTU3.mjs.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.