This commit is contained in:
Gitea Actions committed 2026-08-23 00:29:53 +00:00
commit d6e7717940
14 files changed
+4827

No files matched your search

+2
View File
@@ -0,0 +1,2 @@
function e(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}function t(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}function n(e){return this instanceof n?(this.v=e,this):new n(e)}function r(e,t,r){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var i=r.apply(e,t||[]),a,o=[];return a=Object.create((typeof AsyncIterator==`function`?AsyncIterator:Object).prototype),c(`next`),c(`throw`),c(`return`,s),a[Symbol.asyncIterator]=function(){return this},a;function s(e){return function(t){return Promise.resolve(t).then(e,d)}}function c(e,t){i[e]&&(a[e]=function(t){return new Promise(function(n,r){o.push([e,t,n,r])>1||l(e,t)})},t&&(a[e]=t(a[e])))}function l(e,t){try{u(i[e](t))}catch(e){f(o[0][3],e)}}function u(e){e.value instanceof n?Promise.resolve(e.value.v).then(ee,d):f(o[0][2],e)}function ee(e){l(`next`,e)}function d(e){l(`throw`,e)}function f(e,t){e(t),o.shift(),o.length&&l(o[0][0],o[0][1])}}function i(e){var t,r;return t={},i(`next`),i(`throw`,function(e){throw e}),i(`return`),t[Symbol.iterator]=function(){return this},t;function i(i,a){t[i]=e[i]?function(t){return(r=!r)?{value:n(e[i](t)),done:!1}:a?a(t):t}:a}}function a(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var n=e[Symbol.asyncIterator],r;return n?n.call(e):(e=typeof t==`function`?t(e):e[Symbol.iterator](),r={},i(`next`),i(`throw`),i(`return`),r[Symbol.asyncIterator]=function(){return this},r);function i(t){r[t]=e[t]&&function(n){return new Promise(function(r,i){n=e[t](n),a(r,i,n.done,n.value)})}}function a(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}}var o=new TextDecoder(`utf-8`),s=e=>o.decode(e),c=new TextEncoder,l=e=>c.encode(e),u=e=>typeof e==`number`,ee=e=>typeof e==`boolean`,d=e=>typeof e==`function`,f=e=>e!=null&&Object(e)===e,te=e=>f(e)&&d(e.then),ne=e=>f(e)&&d(e[Symbol.iterator]),re=e=>f(e)&&d(e[Symbol.asyncIterator]),ie=e=>f(e)&&f(e.schema),ae=e=>f(e)&&`done`in e&&`value`in e,oe=e=>f(e)&&d(e.stat)&&u(e.fd),se=e=>f(e)&&ue(e.body),ce=e=>`_getDOMStream`in e&&`_getNodeStream`in e,le=e=>f(e)&&d(e.abort)&&d(e.getWriter)&&!ce(e),ue=e=>f(e)&&d(e.cancel)&&d(e.getReader)&&!ce(e),de=e=>f(e)&&d(e.end)&&d(e.write)&&ee(e.writable)&&!ce(e),fe=e=>f(e)&&d(e.read)&&d(e.pipe)&&ee(e.readable)&&!ce(e),pe=e=>f(e)&&d(e.clear)&&d(e.bytes)&&d(e.position)&&d(e.setPosition)&&d(e.capacity)&&d(e.getBufferIdentifier)&&d(e.createLong),me=typeof SharedArrayBuffer<`u`?SharedArrayBuffer:ArrayBuffer;function he(e){let t=e[0]?[e[0]]:[],n,r,i,a;for(let o,s,c=0,l=0,u=e.length;++c<u;){if(o=t[l],s=e[c],!o||!s||o.buffer!==s.buffer||s.byteOffset<o.byteOffset){s&&(t[++l]=s);continue}if({byteOffset:n,byteLength:i}=o,{byteOffset:r,byteLength:a}=s,n+i<r||r+a<n){s&&(t[++l]=s);continue}t[l]=new Uint8Array(o.buffer,n,r-n+a)}return t}function ge(e,t,n=0,r=t.byteLength){let i=e.byteLength,a=new Uint8Array(e.buffer,e.byteOffset,i),o=new Uint8Array(t.buffer,t.byteOffset,Math.min(r,i));return a.set(o,n),e}function _e(e,t){let n=he(e),r=n.reduce((e,t)=>e+t.byteLength,0),i,a,o,s=0,c=-1,l=Math.min(t||1/0,r);for(let e=n.length;++c<e;){if(i=n[c],a=i.subarray(0,Math.min(i.length,l-s)),l<=s+a.length){a.length<i.length?n[c]=i.subarray(a.length):a.length===i.length&&c++,o?ge(o,a,s):o=a;break}ge(o||=new Uint8Array(l),a,s),s+=a.length}return[o||new Uint8Array,n.slice(c),r-(o?o.byteLength:0)]}function p(e,t){let n=ae(t)?t.value:t;return n instanceof e?e===Uint8Array?new e(n.buffer,n.byteOffset,n.byteLength):n:n?(typeof n==`string`&&(n=l(n)),n instanceof ArrayBuffer||n instanceof me?new e(n):pe(n)?p(e,n.bytes()):ArrayBuffer.isView(n)?n.byteLength<=0?new e(0):new e(n.buffer,n.byteOffset,n.byteLength/e.BYTES_PER_ELEMENT):e.from(n)):new e(0)}var ve=e=>p(Int32Array,e),ye=e=>p(BigInt64Array,e),m=e=>p(Uint8Array,e),be=e=>(e.next(),e);function*xe(e,t){let n=function*(e){yield e};return yield*be((function*(t){let n=null;do n=t.next(yield p(e,n));while(!n.done)})((typeof t==`string`||ArrayBuffer.isView(t)||t instanceof ArrayBuffer||t instanceof me?n(t):ne(t)?t:n(t))[Symbol.iterator]())),new e}var Se=e=>xe(Uint8Array,e);function Ce(e,t){return r(this,arguments,function*(){if(te(t))return yield n(yield n(yield*i(a(Ce(e,yield n(t))))));let o=function(e){return r(this,arguments,function*(){yield yield n(yield n(e))})};return yield n(yield*i(a(be((function(t){return r(this,arguments,function*(){let r=null;do r=yield n(t.next(yield yield n(p(e,r))));while(!r.done)})})((typeof t==`string`||ArrayBuffer.isView(t)||t instanceof ArrayBuffer||t instanceof me?o(t):Line truncated
`)}\n]`}concat(...t){let n=this.schema,r=this.data.concat(t.flatMap(({data:e})=>e));return new e(n,r.map(e=>new X(n,e)))}slice(t,n){let r=this.schema;[t,n]=Ni({length:this.numRows},t,n);let i=ia(this.data,this._offsets,t,n);return new e(r,i.map(e=>new X(r,e)))}getChild(e){return this.getChildAt(this.schema.fields.findIndex(t=>t.name===e))}getChildAt(e){if(e>-1&&e<this.schema.fields.length){let t=this.data.map(t=>t.children[e]);if(t.length===0){let{type:n}=this.schema.fields[e],r=R({type:n,length:0,nullCount:0});t.push(r._changeLengthAndBackfillNullBitmap(this.numRows))}return new U(t)}return null}setChild(e,t){return this.setChildAt(this.schema.fields?.findIndex(t=>t.name===e),t)}setChildAt(t,n){let r=this.schema,i=[...this.batches];if(t>-1&&t<this.numCols){n||=new U([R({type:new rn,length:this.numRows})]);let e=r.fields.slice(),a=e[t].clone({type:n.type}),o=this.schema.fields.map((e,t)=>this.getChildAt(t));[e[t],o[t]]=[a,n],[r,i]=po(r,o)}return new e(r,i)}select(e){let t=this.schema.fields.reduce((e,t,n)=>e.set(t.name,n),new Map);return this.selectAt(e.map(e=>t.get(e)).filter(e=>e>-1))}selectAt(t){let n=this.schema.selectAt(t),r=this.batches.map(e=>e.selectAt(t));return new e(n,r)}assign(t){let n=this.schema.fields,[r,i]=t.schema.fields.reduce((e,t,r)=>{let[i,a]=e,o=n.findIndex(e=>e.name===t.name);return~o?a[o]=r:i.push(r),e},[[],[]]),a=this.schema.assign(t.schema),o=[...n.map((e,t)=>[t,i[t]]).map(([e,n])=>n===void 0?this.getChildAt(e):t.getChildAt(n)),...r.map(e=>t.getChildAt(e))].filter(Boolean);return new e(...po(a,o))}};go=Symbol.toStringTag,_o[go]=(e=>(e.schema=null,e.batches=[],e._offsets=new Uint32Array([0]),e._nullCount=-1,e[Symbol.isConcatSpreadable]=!0,e.isValid=sa(oa),e.get=sa(I.getVisitFn(C.Struct)),e.set=ca(M.getVisitFn(C.Struct)),e.indexOf=la(pa.getVisitFn(C.Struct)),`Table`))(_o.prototype);var vo,X=class e{constructor(...e){switch(e.length){case 2:if([this.schema]=e,!(this.schema instanceof W)||([,this.data=R({nullCount:0,type:new O(this.schema.fields),children:this.schema.fields.map(e=>R({type:e.type,nullCount:0}))})]=e,!(this.data instanceof L)))throw TypeError(`RecordBatch constructor expects a [Schema, Data] pair.`);[this.schema,this.data]=yo(this.schema,this.data.children);break;case 1:{let[t]=e,{fields:n,children:r,length:i}=Object.keys(t).reduce((e,n,r)=>(e.children[r]=t[n],e.length=Math.max(e.length,t[n].length),e.fields[r]=G.new({name:n,type:t[n].type,nullable:!0}),e),{length:0,fields:[],children:[]}),a=new W(n),o=R({type:new O(n),length:i,children:r,nullCount:0});[this.schema,this.data]=yo(a,o.children,i);break}default:throw TypeError(`RecordBatch constructor expects an Object mapping names to child Data, or a [Schema, Data] pair.`)}}get dictionaries(){return this._dictionaries||=bo(this.schema.fields,this.data.children)}get numCols(){return this.schema.fields.length}get numRows(){return this.data.length}get nullCount(){return this.data.nullCount}isValid(e){return this.data.getValid(e)}get(e){return I.visit(this.data,e)}at(e){return this.get(Pi(e,this.numRows))}set(e,t){return M.visit(this.data,e,t)}indexOf(e,t){return pa.visit(this.data,e,t)}[Symbol.iterator](){return ha.visit(new U([this.data]))}toArray(){return[...this]}concat(...e){return new _o(this.schema,[this,...e])}slice(t,n){let[r]=new U([this.data]).slice(t,n).data;return new e(this.schema,r)}getChild(e){return this.getChildAt(this.schema.fields?.findIndex(t=>t.name===e))}getChildAt(e){return e>-1&&e<this.schema.fields.length?new U([this.data.children[e]]):null}setChild(e,t){return this.setChildAt(this.schema.fields?.findIndex(t=>t.name===e),t)}setChildAt(t,n){let r=this.schema,i=this.data;if(t>-1&&t<this.numCols){n||=new U([R({type:new rn,length:this.numRows})]);let e=r.fields.slice(),a=i.children.slice(),o=e[t].clone({type:n.type});[e[t],a[t]]=[o,n.data[0]],r=new W(e,new Map(this.schema.metadata)),i=R({type:new O(e),children:a})}return new e(r,i)}select(t){let n=this.schema.select(t),r=new O(n.fields),i=[];for(let e of t){let t=this.schema.fields.findIndex(t=>t.name===e);~t&&(i[t]=this.data.children[t])}return new e(n,R({type:r,length:this.numRows,children:i}))}selectAt(t){let n=this.schema.selectAt(t),r=t.map(e=>this.data.children[e]).filter(Boolean),i=R({type:new O(n.fields),length:this.numRows,children:r});return new e(n,i)}};vo=Symbol.toStringTag,X[vo]=(e=>(e._nullCount=-1,e[Symbol.isConcatSpreadable]=!0,`RecordBatch`))(X.prototype);function yo(e,t,n=t.reduce((e,t)=>Math.max(e,t.length),0)){let r=[...e.fields],i=[...t],a=(n+63&-64)>>3;for(let[o,s]of e.fields.entries()){let e=t[o];(!e||e.length!==n)&&(r[o]=s.clone({nullable:!0}),i[o]=e?._changeLengthAndBackfillNullBitmap(n)??R({type:s.type,length:n,nullCount:n,nullBitmap:new Uint8Array(a)}))}return[e.assign(r),R({type:new O(r),length:n,children:i})]}function bo(e,t,n=new Map){if((e?.length??0)>0&&e?.length===t?.length)for(let r=-1,i=e.length;++r<i;){let{type:i}=e[r],a=t[r];for(let e of[a,...a?.dictionary?.data||[]])bo(i.children,e?.children,n);if(E.isDictionary(iLine truncated
@@ -0,0 +1 @@
var e=`/crdc-demo/assets/duckdb-browser-mvp.worker-C9hF7LGh.js`;export{e as default};
@@ -0,0 +1,14 @@
"use strict";var duckdb=(()=>{var ql=Object.create;var Fi=Object.defineProperty;var Xl=Object.getOwnPropertyDescriptor;var Ql=Object.getOwnPropertyNames;var Yl=Object.getPrototypeOf,Jl=Object.prototype.hasOwnProperty;var ya=(c,e)=>(e=Symbol[c])?e:Symbol.for("Symbol."+c);var Kl=(c,e,t)=>e in c?Fi(c,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):c[e]=t;var xi=(c=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(c,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):c)(function(c){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+c+'" is not supported')});var pr=(c,e)=>()=>(e||c((e={exports:{}}).exports,e),e.exports),mr=(c,e)=>{for(var t in e)Fi(c,t,{get:e[t],enumerable:!0})},Io=(c,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Ql(e))!Jl.call(c,n)&&n!==t&&Fi(c,n,{get:()=>e[n],enumerable:!(r=Xl(e,n))||r.enumerable});return c};var Bo=(c,e,t)=>(t=c!=null?ql(Yl(c)):{},Io(e||!c||!c.__esModule?Fi(t,"default",{value:c,enumerable:!0}):t,c)),Zl=c=>Io(Fi({},"__esModule",{value:!0}),c);var Qe=(c,e,t)=>(Kl(c,typeof e!="symbol"?e+"":e,t),t);var eu=function(c,e){this[0]=c,this[1]=e};var Pr=c=>{var e=c[ya("asyncIterator")],t=!1,r,n={};return e==null?(e=c[ya("iterator")](),r=a=>n[a]=o=>e[a](o)):(e=e.call(c),r=a=>n[a]=o=>{if(t){if(t=!1,a==="throw")throw o;return o}return t=!0,{done:!1,value:new eu(new Promise(l=>{var u=e[a](o);if(!(u instanceof Object))throw TypeError("Object expected");l(u)}),1)}}),n[ya("iterator")]=()=>n,r("next"),"throw"in e?r("throw"):n.throw=a=>{throw a},"return"in e&&r("return"),n};var ko=pr(()=>{});var Do=pr(()=>{});var Bl=pr(()=>{});var To=pr((DS,jl)=>{"use strict";jl.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}});var Rl=pr((exports,module)=>{"use strict";var DuckDB=(()=>{var c;var _scriptName=typeof document<"u"?(c=document.currentScript)==null?void 0:c.src:void 0;return typeof __filename<"u"&&(_scriptName=_scriptName||__filename),function(moduleArg={}){var moduleRtn,Module=moduleArg,readyPromiseResolve,readyPromiseReject,readyPromise=new Promise((e,t)=>{readyPromiseResolve=e,readyPromiseReject=t}),ENVIRONMENT_IS_WEB=typeof window=="object",ENVIRONMENT_IS_WORKER=typeof WorkerGlobalScope<"u",ENVIRONMENT_IS_NODE=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string"&&process.type!="renderer",ENVIRONMENT_IS_SHELL=!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_NODE&&!ENVIRONMENT_IS_WORKER,moduleOverrides=Object.assign({},Module),arguments_=[],thisProgram="./this.program",quit_=(e,t)=>{throw t},scriptDirectory="";function locateFile(e){return Module.locateFile?Module.locateFile(e,scriptDirectory):scriptDirectory+e}var readAsync,readBinary;if(ENVIRONMENT_IS_NODE){var fs=ko(),nodePath=Do();scriptDirectory=__dirname+"/",readBinary=e=>{e=isFileURI(e)?new URL(e):nodePath.normalize(e);var t=fs.readFileSync(e);return t},readAsync=(e,t=!0)=>(e=isFileURI(e)?new URL(e):nodePath.normalize(e),new Promise((r,n)=>{fs.readFile(e,t?void 0:"utf8",(a,o)=>{a?n(a):r(t?o.buffer:o)})})),!Module.thisProgram&&process.argv.length>1&&(thisProgram=process.argv[1].replace(/\\/g,"/")),arguments_=process.argv.slice(2),quit_=(e,t)=>{throw process.exitCode=e,t}}else(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)&&(ENVIRONMENT_IS_WORKER?scriptDirectory=self.location.href:typeof document<"u"&&document.currentScript&&(scriptDirectory=document.currentScript.src),_scriptName&&(scriptDirectory=_scriptName),scriptDirectory.startsWith("blob:")?scriptDirectory="":scriptDirectory=scriptDirectory.substr(0,scriptDirectory.replace(/[?#].*/,"").lastIndexOf("/")+1),ENVIRONMENT_IS_WORKER&&(readBinary=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),readAsync=e=>fetch(e,{credentials:"same-origin"}).then(t=>t.ok?t.arrayBuffer():Promise.reject(new Error(t.status+" : "+t.url))));var out=Module.print||console.log.bind(console),err=Module.printErr||console.error.bind(console);Object.assign(Module,moduleOverrides),moduleOverrides=null,Module.arguments&&(arguments_=Module.arguments),Module.thisProgram&&(thisProgram=Module.thisProgram);var dynamicLibraries=Module.dynamicLibraries||[],wasmBinary=Module.wasmBinary,wasmMemory,ABORT=!1,EXITSTATUS;function assert(e,t){e||abort(t)}var HEAP,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64;function updateMemoryViews(){var e=wasmMemory.buffer;Module.HEAP8=HEAP8=new Int8Array(e),Module.HEAP16=HEAP16=new Int16Array(e),Module.HEAPU8=HEAPU8=new Uint8Array(e),Module.HEAPU16=HEAPU16=new Uint16Array(e),Module.HEAP32=HEAP32=new Int32Array(e),Module.HEAPU32=HEAPU32=new Uint32Array(e),Module.HEAPF32=HEAPF32=new Float32Array(e),Module.HEAPF64=HEAPF64=new Float64Array(e)}if(Module.wasmMemory)wasmMemory=Module.wasmMemory;else{var INITIAL_MEMORY=Module.INITIAL_MEMORY||16777216;wasmMemory=new WebAssembly.Memory({initial:INITIAL_MEMORY/65536,maximum:65536})}updateMemorLine truncated
/*! Bundled license information:
js-sha256/src/sha256.js:
(**
* [js-sha256]{@link https://github.com/emn178/js-sha256}
*
* @version 0.11.1
* @author Chen, Yi-Cyuan [emn178@gmail.com]
* @copyright Chen, Yi-Cyuan 2014-2025
* @license MIT
*)
*/
//# sourceMappingURL=duckdb-browser-mvp.worker.js.map
+1
View File
@@ -0,0 +1 @@
var e=`/crdc-demo/assets/duckdb-mvp-BP0pRkMH.wasm`;export{e as default};
Binary file not shown.
+1
View File
@@ -0,0 +1 @@
:root{--cv-paper:#faf7f2;--cv-paper-2:#f2ede4;--cv-paper-3:#e6dfd1;--cv-rule:#d6cebd;--cv-rule-strong:#b8ae97;--cv-ink:#0e1a2b;--cv-ink-2:#2b3a52;--cv-ink-3:#5a6a82;--cv-ink-4:#8c97ab;--cv-navy-50:#eef3fa;--cv-navy-100:#dde6f2;--cv-navy-200:#b3c6e0;--cv-navy-300:#7a9bca;--cv-navy-400:#4a74b0;--cv-navy-500:#2e5590;--cv-navy-600:#22406a;--cv-navy-700:#1a2e4a;--cv-accent:#c25311;--cv-accent-text:#a04400;--cv-accent-dark:#923d00;--cv-accent-hover:#7a3600;--teal-600:#1f6f70;--plum-600:#6b3a5e;--moss-600:#4a6b2f;--brass-600:#b8751c;--cv-success:#4a6b2f;--cv-warning:#9a5f18;--cv-danger:#a6271d;--font-display:"Libre Franklin", "Franklin Gothic", "Inter", system-ui, sans-serif;--font-sans:"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;--font-mono:"JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;--space-1:.5rem;--space-2:1rem;--space-3:1.5rem;--space-4:2rem;--space-5:3rem;--space-6:4rem;--space-7:6rem;--radius-sm:4px;--radius-md:6px;--radius-lg:12px;--race-wh:#3d6fc4;--race-bl:#c98a2a;--race-hi:#9c3f86;--race-am:#3d9a6b;--chart-modeled:var(--cv-navy-600);--chart-frequentist:var(--cv-ink-4);--chart-observed:var(--cv-ink);--model-one-year-baseline:var(--cv-navy-600);--model-three-year-baseline:var(--teal-600)}*{box-sizing:border-box}html{-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;font-size:100%}body{background:var(--cv-paper);color:var(--cv-ink);font-family:var(--font-sans);margin:0;line-height:1.65}h1,h2,h3,h4{font-family:var(--font-display);letter-spacing:-.025em;color:var(--cv-ink);text-wrap:pretty;margin:0 0 .4em;font-weight:800;line-height:1.08}h1{letter-spacing:-.035em;font-size:clamp(2.25rem,4.2vw,3.75rem);font-weight:900;line-height:1}h2{font-size:clamp(1.75rem,2.8vw,2.375rem)}h3{letter-spacing:-.022em;color:var(--cv-ink-2);font-size:1.5rem;font-weight:700}p,li{text-wrap:pretty;line-height:1.7}a{color:var(--cv-navy-600);text-underline-offset:2px;text-decoration:underline;text-decoration-thickness:1px;transition:color .12s}a:hover{color:var(--cv-navy-700);text-decoration-thickness:2px}code,.mono{font-family:var(--font-mono);font-feature-settings:"tnum" 1, "zero" 1}:focus-visible{outline:2px solid var(--cv-accent);outline-offset:2px}.cv-wrap{max-width:60rem;padding:0 var(--space-3);margin:0 auto}.cv-header{padding:var(--space-3) 0;border-bottom:1px solid var(--cv-rule);justify-content:space-between;align-items:center;display:flex}.cv-header .cv-logo{height:28px;display:block}.eyebrow,.cv-eyebrow{font-family:var(--font-sans);text-transform:uppercase;letter-spacing:.1em;color:var(--cv-accent-text);align-items:center;gap:.5rem;margin:0 0 .5rem;font-size:.75rem;font-weight:600;display:inline-flex}.eyebrow:before,.cv-eyebrow:before{content:"";background:var(--cv-accent);width:24px;height:2px;display:inline-block}.stat-callout{border-top:3px double var(--cv-ink);border-bottom:1px solid var(--cv-rule);grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:2rem;margin:2rem 0 2.5rem;padding:1.5rem 0;display:grid}.stat-callout .stat-num{letter-spacing:-.02em;color:var(--cv-ink);font-variant-numeric:tabular-nums;font-family:"Source Serif 4",Georgia,serif;font-size:3rem;font-weight:700;line-height:1;display:block}.stat-callout .stat-label{font-family:var(--font-sans);text-transform:uppercase;letter-spacing:.08em;color:var(--cv-ink-3);margin-top:.4rem;font-size:.75rem;font-weight:600}.stat-callout .stat-label.accent{color:var(--cv-accent)}.cv-card{border:1px solid var(--cv-rule);border-top:3px solid var(--cv-accent);border-radius:var(--radius-lg);padding:var(--space-2) var(--space-3);background:#fff;flex-direction:column;gap:.25rem;text-decoration:none;transition:border-color .12s,box-shadow .12s;display:flex}.cv-card:hover{border-color:var(--cv-ink-3);box-shadow:0 2px 8px #0000000a}.btn-primary{background:var(--cv-navy-600);color:#fff;border-radius:var(--radius-md);font-family:var(--font-sans);cursor:pointer;border:none;justify-content:center;align-items:center;gap:.5rem;padding:.625rem 1.25rem;font-size:.9rem;font-weight:600;transition:background .12s,transform 20ms;display:inline-flex}.btn-primary:hover{background:var(--cv-navy-700)}.btn-primary:active{transform:scale(.98)}.btn-primary:disabled{opacity:.5;cursor:not-allowed}.btn-outline{color:var(--cv-navy-600);border:1px solid var(--cv-rule);border-radius:var(--radius-md);font-family:var(--font-sans);cursor:pointer;background:0 0;justify-content:center;align-items:center;gap:.5rem;padding:.5rem 1rem;font-size:.85rem;font-weight:500;transition:background .12s,color .12s;display:inline-flex}.btn-outline:hover{background:var(--cv-paper-2);color:var(--cv-navy-700)}.cv-footer{border-top:1px solid var(--cv-rule);padding:var(--space-4) 0;color:var(--cv-ink-3);gap:var(--space-2);flex-wrap:wrap;justify-content:space-between;align-items:center;font-size:.9rem;display:flex}@media (width<=680px){.cv-footer{text-align:center;flex-direction:column}}@keyframes cv-spin{to{transform:rotate(360deg)}}@media (prefeLine truncated
+11
View File
@@ -0,0 +1,11 @@
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,o)=>(o=n==null?{}:e(i(n)),s(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var l=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var ee=Array.isArray;function S(){}var C={H:null,A:null,T:null,S:null},w=Object.prototype.hasOwnProperty;function T(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function te(e,t){return T(e.type,t,e.props)}function E(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function ne(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var re=/\/+/g;function ie(e,t){return typeof e==`object`&&e&&e.key!=null?ne(``+e.key):t.toString(36)}function ae(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(S,S):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function oe(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,oe(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+ie(e,0):a,ee(o)?(i=``,c!=null&&(i=c.replace(re,`$&/`)+`/`),oe(o,r,i,``,function(e){return e})):o!=null&&(E(o)&&(o=te(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(re,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(ee(e))for(var u=0;u<e.length;u++)a=e[u],s=l+ie(a,u),c+=oe(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+ie(a,u++),c+=oe(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return oe(ae(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function se(e,t,n){if(e==null)return e;var r=[],i=0;return oe(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function ce(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var D=typeof reportError==`function`?reportError:function(e){if(typeof window==`Line truncated
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
`+xe+e+Se}var we=!1;function Te(e,t){if(!e||we)return``;we=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
`),l=s.split(`
`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{we=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Ce(n):``}function Ee(e,t){switch(e.tag){case 26:case 27:case 5:return Ce(e.type);case 16:return Ce(`Lazy`);case 13:return e.child!==t&&t!==null?Ce(`Suspense Fallback`):Ce(`Suspense`);case 19:return Ce(`SuspenseList`);case 0:case 15:return Te(e.type,!1);case 11:return Te(e.type.render,!1);case 1:return Te(e.type,!0);case 31:return Ce(`Activity`);default:return``}}function De(e){try{var t=``,n=null;do t+=Ee(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
Error generating stack: `+e.message+`
`+e.stack}}var Oe=Object.prototype.hasOwnProperty,ke=t.unstable_scheduleCallback,Ae=t.unstable_cancelCallback,je=t.unstable_shouldYield,Me=t.unstable_requestPaint,Ne=t.unstable_now,Pe=t.unstable_getCurrentPriorityLevel,Fe=t.unstable_ImmediatePriority,Ie=t.unstable_UserBlockingPriority,Le=t.unstable_NormalPriority,Re=t.unstable_LowPriority,ze=t.unstable_IdlePriority,Be=t.log,Ve=t.unstable_setDisableYieldValue,He=null,Ue=null;function We(e){if(typeof Be==`function`&&Ve(e),Ue&&typeof Ue.setStrictMode==`function`)try{Ue.setStrictMode(He,e)}catch{}}var Ge=Math.clz32?Math.clz32:Je,Ke=Math.log,qe=Math.LN2;function Je(e){return e>>>=0,e===0?32:31-(Ke(e)/qe|0)|0}var Ye=256,Xe=262144,Ze=4194304;function Qe(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function $e(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Qe(n))):i=Qe(o):i=Qe(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Qe(n))):i=Qe(o)):i=Qe(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function et(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function tt(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function nt(){var e=Ze;return Ze<<=1,!(Ze&62914560)&&(Ze=4194304),e}function rt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function it(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function at(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Ge(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&ot(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function ot(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ge(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function st(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ge(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function ct(e,t){var n=t&-t;return n=n&42?1:lt(n),(n&(e.suspendedLanes|t))===0?n:0}function lt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ut(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function dt(){var e=O.p;return e===0?(e=window.event,e===void 0?32:mp(e.type)):e}function ft(e,t){var n=O.p;try{return O.p=e,t()}finally{O.p=n}}var pt=Math.random().toString(36).slice(2),mt=`__reactFiber$`+pt,ht=`__reactProps$`+pt,gt=`__reactContainer$`+pt,_t=`__reactEvents$`+pt,vt=`__reactListeners$`+pt,yt=`__reactHandles$`+pt,bt=`__reactResources$`+pt,j=`__reactMarker$`+pt;function xt(e){delete e[mt],delete e[ht],delete e[_t],delete e[vt],delete e[yt]}function St(e){var t=e[mt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[gt]||n[mt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=df(e);e!==null;){if(n=e[mt])return n;e=df(e)}return t}e=n,n=e.parentNode}return null}function Ct(e){if(e=e[mt]||e[gt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function wt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Tt(e){var t=e[bt];return t||=e[bt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Et(e){e[j]=!0}var Dt=new Set,Ot={};function kt(e,t){At(e,t),At(e+`Capture`,t)}function At(e,t){for(Ot[e]=t,e=0;e<t.length;e++)Dt.add(t[e])}var jt=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\Line truncated
`).replace(Ad,``)}function Md(e,t){return t=jd(t),jd(e)===t}function $(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Qt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Qt(e,``+r);break;case`className`:It(e,`class`,r);break;case`tabIndex`:It(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:It(e,n,r);break;case`style`:tn(e,r,o);break;case`data`:if(t!==`object`){It(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=on(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&$(e,t,`name`,a.name,a,null),$(e,t,`formEncType`,a.formEncType,a,null),$(e,t,`formMethod`,a.formMethod,a,null),$(e,t,`formTarget`,a.formTarget,a,null)):($(e,t,`encType`,a.encType,a,null),$(e,t,`method`,a.method,a,null),$(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=on(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=sn);break;case`onScroll`:r!=null&&Q(`scroll`,e);break;case`onScrollEnd`:r!=null&&Q(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=on(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Q(`beforetoggle`,e),Q(`toggle`,e),Ft(e,`popover`,r);break;case`xlinkActuate`:Lt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Lt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Lt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Lt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Lt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Lt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Lt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Lt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Lt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Ft(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=rn.get(n)||n,Ft(e,n,r))}}function Nd(e,t,n,r,a,o){switch(n){case`style`:tn(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Qt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Qt(e,``+r);break;case`onScroll`:r!=null&&Q(`scroll`,e);break;case`onScrollEnd`:r!=null&&Q(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=sn);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:br Line truncated
Female`},{race:`AM`,sex:`M`,label:`American Indian
Male`}],te=[{model:`unified_m1_mod`,label:`One-year, no covariate`},{model:`unified_m2_mod`,label:`One-year + referral rate`},{model:`unified_m3_mod`,label:`Three-year, no covariate`},{model:`unified_m4_mod`,label:`Three-year + referral rate`}];async function E(e,{retries:t=3,delay:n=500}={}){let r=`${w}${e}`,i;for(let e=0;e<=t;e++)try{let e=await fetch(r,{signal:AbortSignal.timeout(3e4)});if(!e.ok)throw Error(`HTTP ${e.status}: ${e.statusText}`);let t=await e.json();if(t.status===`success`)return t.data;throw Error(t.error||`Unknown API error`)}catch(r){if(i=r,e<t&&!(r instanceof DOMException)){let t=n*2**e+Math.random()*100;await new Promise(e=>setTimeout(e,t))}else throw i}throw i}async function ne(e,t){return E(`/districts?${new URLSearchParams({q:e,state:t})}`)}async function re(e,t={}){let n=new URLSearchParams;t.model&&n.set(`model`,t.model),t.year&&n.set(`year`,t.year),t.race&&n.set(`race`,t.race),t.sex&&n.set(`sex`,t.sex);let r=n.toString();return E(`/estimates/${e}${r?`?${r}`:``}`)}var ie=`/crdc-demo/data/top_districts.json`,ae=8,oe=null;function se(){return oe||=fetch(ie).then(e=>{if(!e.ok)throw Error(`HTTP ${e.status} loading ${ie}`);return e.json()}).catch(e=>{throw oe=null,e}),oe}function ce({state:e,onSelect:t,onBack:n}){let[r,i]=(0,b.useState)(``),[a,o]=(0,b.useState)([]),[s,c]=(0,b.useState)([]),[l,u]=(0,b.useState)(!0),[d,f]=(0,b.useState)(!1);(0,b.useEffect)(()=>{let t=!1;return u(!0),se().then(n=>{if(t)return;let r=n?.states?.[e]||[];c(r.slice(0,ae).map(t=>({leaid:t.leaid,lea_name:t.name,state:e,observed_arrests:t.arrests})))}).catch(e=>{console.error(`Failed to load suggested districts:`,e),t||c([])}).finally(()=>{t||u(!1)}),()=>{t=!0}},[e]),(0,b.useEffect)(()=>{if(!r.trim()){o([]);return}let t=setTimeout(async()=>{f(!0);try{let t=await ne(r,e);o(t||[])}catch(e){console.error(`District search failed:`,e),o([])}finally{f(!1)}},300);return()=>clearTimeout(t)},[r,e]);let p=e=>(0,x.jsx)(`button`,{className:`cv-card`,style:{textAlign:`left`,padding:`var(--space-2)`},onClick:()=>t(e),children:(0,x.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,alignItems:`baseline`},children:[(0,x.jsx)(`span`,{style:{fontWeight:600,color:`var(--cv-navy-700)`,fontSize:`0.95rem`},children:e.lea_name||e.name}),e.observed_arrests!==void 0&&(0,x.jsxs)(`span`,{className:`stat-label accent`,style:{marginTop:0},children:[e.observed_arrests.toLocaleString(),` arrests in 2021–22`]})]})},e.leaid);return(0,x.jsxs)(`div`,{style:{padding:`var(--space-5) 0 var(--space-7)`},children:[(0,x.jsx)(`button`,{className:`btn-outline`,onClick:n,style:{marginBottom:`var(--space-3)`},children:`← Change state`}),(0,x.jsx)(`h2`,{style:{marginTop:0,marginBottom:`var(--space-1)`},children:e===`DC`?`District of Columbia`:`Find a district in ${D(e)}`}),(0,x.jsx)(`p`,{style:{color:`var(--cv-ink-2)`,marginBottom:`var(--space-3)`},children:`Search by district name, or try one of the suggested districts with the highest arrest counts.`}),!r&&(0,x.jsxs)(`div`,{style:{marginTop:`var(--space-4)`},children:[(0,x.jsx)(`span`,{className:`eyebrow`,children:`Suggested districts — most arrests in 2021–22`}),l?(0,x.jsx)(`p`,{style:{color:`var(--cv-ink-3)`,padding:`var(--space-2) 0`},children:`Loading suggestions…`}):s.length>0?(0,x.jsx)(`div`,{style:{display:`grid`,gridTemplateColumns:`repeat(auto-fill, minmax(280px, 1fr))`,gap:`var(--space-1)`},children:s.map(p)}):(0,x.jsx)(`p`,{style:{color:`var(--cv-ink-3)`,padding:`var(--space-2) 0`},children:`No districts with reported arrests found in this state. Try searching by name below.`})]}),(0,x.jsxs)(`div`,{style:{marginTop:r?0:`var(--space-5)`},children:[(0,x.jsx)(`label`,{htmlFor:`district-search`,className:`stat-label`,children:`Search district name:`}),(0,x.jsx)(`input`,{id:`district-search`,type:`text`,placeholder:`Type a district name… (e.g., Madison, Derby, Paterson)`,value:r,onChange:e=>i(e.target.value),style:{width:`100%`,padding:`var(--space-2)`,fontSize:`1rem`,border:`1px solid var(--cv-rule)`,borderRadius:`var(--radius-md)`,fontFamily:`var(--font-sans)`}}),r&&(0,x.jsxs)(`div`,{style:{marginTop:`var(--space-2)`},children:[d?(0,x.jsx)(`p`,{style:{color:`var(--cv-ink-3)`},children:`Searching…`}):a.length>0?(0,x.jsx)(`div`,{style:{display:`grid`,gap:`var(--space-1)`},children:a.slice(0,20).map(p)}):(0,x.jsxs)(`p`,{style:{color:`var(--cv-ink-3)`},children:[`No districts found matching "`,r,`".`]}),a.length>0&&(0,x.jsx)(`button`,{className:`btn-outline`,onClick:()=>i(``),style:{marginTop:`var(--space-2)`},children:`← Show suggested districts again`})]})]})]})}function D(e){return{AL:`Alabama`,AK:`Alaska`,AZ:`Arizona`,AR:`Arkansas`,CA:`California`,CO:`Colorado`,CT:`Connecticut`,DE:`Delaware`,DC:`District of Columbia`,FL:`Florida`,GA:`Georgia`,HI:`Hawaii`,ID:`Idaho`,IL:`Illinois`,IN:`Indiana`,IA:`Iowa`,KS:`Kansas`,KY:`Kentucky`,LA:`Louisiana`,ME:`Maine`,MD:`Maryland`,MA:`Massachusetts`,MI:`Michigan`,MN:`Minnesota`,MS:`Mississippi`,MO:`Missouri`,MT:`Montana`,NE:`NebraLine truncated