PageSourceSearch

https://www.raymondmaine.gov/_app/immutable/pages/documents/index.svelte-903dd5d9.js

js raymondmaine.gov collected 2026-10-09 05:11:28 UTC 12,307 bytes, 1 lines download raw bytes

1import{S as P,i as F,s as J,Q as ce,l as k,a as q,u as j,m as D,p as w,h as d,c as y,v as C,q as h,I as Z,b as V,H as m,J as ue,N as fe,w as K,R as he,T as de,U as _e,O as me,f as E,t as O,K as ve,F as N,G as T,n as H,x as B,y as R,z as L,C as A,e as M,g as U,d as G,M as ae,D as pe,A as ge,B as we,X as $e,Y as be}from"../../chunks/index-880255f8.js";import{c as x}from"../../chunks/utils-28c98ef8.js";import ke from"../../chunks/settings-8591939f.js";import De from"../../chunks/organization-2b97dc4b.js";import{T as Ee}from"../../chunks/Title-57d893bc.js";import{a as ze}from"../../chunks/index-078f56dc.js";import{S as Ie}from"../../chunks/SEO-a2ffa82a.js";function Oe(c,{isOpen:e,duration:s=500}){let l=c.offsetHeight;c.style.height=e?"auto":0,c.style.overflow="hidden";let t=c.animate([{height:0},{height:`${l}px`}],{duration:s,fill:"both",direction:e?"reverse":"normal"});return t.pause(),t.onfinish=({currentTime:o})=>{o||(t.reverse(),t.pause()),c.dispatchEvent(new CustomEvent("animationEnd"))},{update:()=>{t.currentTime?t.reverse():t.play()}}}function Ve(c){let e,s,l,t,o,n,i,r,v,f,p,I;const $=c[3].default,_=ce($,c,c[2],null);return{c(){e=k("div"),s=k("div"),l=k("div"),t=q(),o=k("h2"),n=j(c[1]),i=q(),r=k("div"),_&&_.c(),this.h()},l(a){e=D(a,"DIV",{class:!0});var u=w(e);s=D(u,"DIV",{class:!0});var b=w(s);l=D(b,"DIV",{class:!0}),w(l).forEach(d),t=y(b),o=D(b,"H2",{class:!0});var g=w(o);n=C(g,c[1]),g.forEach(d),b.forEach(d),i=y(u),r=D(u,"DIV",{class:!0});var z=w(r);_&&_.l(z),z.forEach(d),u.forEach(d),this.h()},h(){h(l,"class","icon svelte-137k2qz"),h(o,"class","svelte-137k2qz"),h(s,"class","target svelte-137k2qz"),h(r,"class","accordion-content svelte-137k2qz"),h(e,"class","accordion svelte-137k2qz"),Z(e,"isOpen",c[0])},m(a,u){V(a,e,u),m(e,s),m(s,l),m(s,t),m(s,o),m(o,n),m(e,i),m(e,r),_&&_.m(r,null),f=!0,p||(I=[ue(s,"click",c[4]),fe(v=Oe.call(null,r,{isOpen:c[0],duration:150}))],p=!0)},p(a,[u]){(!f||u&2)&&K(n,a[1]),_&&_.p&&(!f||u&4)&&he(_,$,a,a[2],f?_e($,a[2],u,null):de(a[2]),null),v&&me(v.update)&&u&1&&v.update.call(null,{isOpen:a[0],duration:150}),u&1&&Z(e,"isOpen",a[0])},i(a){f||(E(_,a),f=!0)},o(a){O(_,a),f=!1},d(a){a&&d(e),_&&_.d(a),p=!1,ve(I)}}}function qe(c,e,s){let{$$slots:l={},$$scope:t}=e,{buttonText:o=""}=e,{isOpen:n=!1}=e;const i=()=>s(0,n=!n);return c.$$set=r=>{"buttonText"in r&&s(1,o=r.buttonText),"isOpen"in r&&s(0,n=r.isOpen),"$$scope"in r&&s(2,t=r.$$scope)},[n,o,t,l,i]}class ye extends P{constructor(e){super(),F(this,e,qe,Ve,J,{buttonText:1,isOpen:0})}}function He(c){let e,s,l;return{c(){e=N("svg"),s=N("path"),l=N("path"),this.h()},l(t){e=T(t,"svg",{xmlns:!0,fill:!0,height:!0,viewBox:!0,width:!0});var o=w(e);s=T(o,"path",{d:!0,fill:!0}),w(s).forEach(d),l=T(o,"path",{d:!0}),w(l).forEach(d),o.forEach(d),this.h()},h(){h(s,"d","M0 0h24v24H0V0z"),h(s,"fill","none"),h(l,"d","M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11z"),h(e,"xmlns","http://www.w3.org/2000/svg"),h(e,"fill","currentColor"),h(e,"height","24px"),h(e,"viewBox","0 0 24 24"),h(e,"width","24px")},m(t,o){V(t,e,o),m(e,s),m(e,l)},p:H,i:H,o:H,d(t){t&&d(e)}}}class je extends P{constructor(e){super(),F(this,e,null,He,J,{})}}function Ce(c){let e,s,l;return{c(){e=N("svg"),s=N("path"),l=N("path"),this.h()},l(t){e=T(t,"svg",{xmlns:!0,fill:!0,height:!0,viewBox:!0,width:!0});var o=w(e);s=T(o,"path",{d:!0,fill:!0}),w(s).forEach(d),l=T(o,"path",{d:!0}),w(l).forEach(d),o.forEach(d),this.h()},h(){h(s,"d","M0 0h24v24H0V0z"),h(s,"fill","none"),h(l,"d","M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h4v-2H5V8h14v10h-4v2h4c1.1 0 2-.9 2-2V6c0-1.1-.89-2-2-2zm-7 6l-4 4h3v6h2v-6h3l-4-4z"),h(e,"xmlns","http://www.w3.org/2000/svg"),h(e,"fill","currentColor"),h(e,"height","24px"),h(e,"viewBox","0 0 24 24"),h(e,"width","24px")},m(t,o){V(t,e,o),m(e,s),m(e,l)},p:H,i:H,o:H,d(t){t&&d(e)}}}class Ne extends P{constructor(e){super(),F(this,e,null,Ce,J,{})}}function ee(c,e,s){const l=c.slice();return l[1]=e[s],l}function te(c){let e,s,l,t,o,n,i,r,v,f=c[1].title+"",p,I,$;t=new Ne({});let _=c[1].description&&le(c);return{c(){e=k("div"),s=k("a"),l=k("div"),B(t.$$.fragment),o=j(" Open"),i=q(),r=k("div"),v=k("div"),p=j(f),I=q(),_&&_.c(),this.h()},l(a){e=D(a,"DIV",{class:!0});var u=w(e);s=D(u,"A",{href:!0,target:!0,class:!0});var b=w(s);l=D(b,"DIV",{class:!0});var g=w(l);R(t.$$.fragment,g),o=C(g," Open"),g.forEach(d),b.forEach(d),i=y(u),r=D(u,"DIV",{class:!0});var z=w(r);v=D(z,"DIV",{class:!0});var S=w(v);
1p=C(S,f),S.forEach(d),I=y(z),_&&_.l(z),z.forEach(d),u.forEach(d),this.h()},h(){h(l,"class","icon svelte-1quz0l2"),h(s,"href",n=c[1].documentURL),h(s,"target","_blank"),h(s,"class","svelte-1quz0l2"),h(v,"class","title svelte-1quz0l2"),h(r,"class","details svelte-1quz0l2"),h(e,"class","document-wrapper svelte-1quz0l2")},m(a,u){V(a,e,u),m(e,s),m(s,l),L(t,l,null),m(l,o),m(e,i),m(e,r),m(r,v),m(v,p),m(r,I),_&&_.m(r,null),$=!0},p(a,u){(!$||u&1&&n!==(n=a[1].documentURL))&&h(s,"href",n),(!$||u&1)&&f!==(f=a[1].title+"")&&K(p,f),a[1].description?_?_.p(a,u):(_=le(a),_.c(),_.m(r,null)):_&&(_.d(1),_=null)},i(a){$||(E(t.$$.fragment,a),$=!0)},o(a){O(t.$$.fragment,a),$=!1},d(a){a&&d(e),A(t),_&&_.d()}}}function le(c){let e,s=c[1].description+"",l;return{c(){e=k("div"),l=j(s),this.h()},l(t){e=D(t,"DIV",{class:!0});var o=w(e);l=C(o,s),o.forEach(d),this.h()},h(){h(e,"class","description")},m(t,o){V(t,e,o),m(e,l)},p(t,o){o&1&&s!==(s=t[1].description+"")&&K(l,s)},d(t){t&&d(e)}}}function se(c){let e,s,l,t,o,n,i,r,v,f,p,I=c[1].title+"",$,_,a,u;o=new je({});let b=c[1].description&&ne(c);return{c(){e=k("div"),s=k("div"),l=k("a"),t=k("div"),B(o.$$.fragment),n=j(" Download"),v=q(),f=k("div"),p=k("div"),$=j(I),_=q(),b&&b.c(),a=q(),this.h()},l(g){e=D(g,"DIV",{class:!0});var z=w(e);s=D(z,"DIV",{class:!0});var S=w(s);l=D(S,"A",{href:!0,download:!0,class:!0});var Y=w(l);t=D(Y,"DIV",{class:!0});var X=w(t);R(o.$$.fragment,X),n=C(X," Download"),X.forEach(d),Y.forEach(d),S.forEach(d),v=y(z),f=D(z,"DIV",{class:!0});var Q=w(f);p=D(Q,"DIV",{class:!0});var W=w(p);$=C(W,I),W.forEach(d),_=y(Q),b&&b.l(Q),Q.forEach(d),a=y(z),z.forEach(d),this.h()},h(){h(t,"class","icon svelte-1quz0l2"),h(l,"href",i=c[1].documentURL),h(l,"download",r=c[1].title),h(l,"class","svelte-1quz0l2"),h(s,"class","action svelte-1quz0l2"),h(p,"class","title svelte-1quz0l2"),h(f,"class","details svelte-1quz0l2"),h(e,"class","document-wrapper svelte-1quz0l2")},m(g,z){V(g,e,z),m(e,s),m(s,l),m(l,t),L(o,t,null),m(t,n),m(e,v),m(e,f),m(f,p),m(p,$),m(f,_),b&&b.m(f,null),m(e,a),u=!0},p(g,z){(!u||z&1&&i!==(i=g[1].documentURL))&&h(l,"href",i),(!u||z&1&&r!==(r=g[1].title))&&h(l,"download",r),(!u||z&1)&&I!==(I=g[1].title+"")&&K($,I),g[1].description?b?b.p(g,z):(b=ne(g),b.c(),b.m(f,null)):b&&(b.d(1),b=null)},i(g){u||(E(o.$$.fragment,g),u=!0)},o(g){O(o.$$.fragment,g),u=!1},d(g){g&&d(e),A(o),b&&b.d()}}}function ne(c){let e,s=c[1].description+"",l;return{c(){e=k("div"),l=j(s),this.h()},l(t){e=D(t,"DIV",{class:!0});var o=w(e);l=C(o,s),o.forEach(d),this.h()},h(){h(e,"class","description")},m(t,o){V(t,e,o),m(e,l)},p(t,o){o&1&&s!==(s=t[1].description+"")&&K(l,s)},d(t){t&&d(e)}}}function oe(c){let e,s,l,t=c[1].type==="link"&&te(c),o=(c[1].type==="document"||c[1].type==="")&&se(c);return{c(){t&&t.c(),e=q(),o&&o.c(),s=M()},l(n){t&&t.l(n),e=y(n),o&&o.l(n),s=M()},m(n,i){t&&t.m(n,i),V(n,e,i),o&&o.m(n,i),V(n,s,i),l=!0},p(n,i){n[1].type==="link"?t?(t.p(n,i),i&1&&E(t,1)):(t=te(n),t.c(),E(t,1),t.m(e.parentNode,e)):t&&(U(),O(t,1,1,()=>{t=null}),G()),n[1].type==="document"||n[1].type===""?o?(o.p(n,i),i&1&&E(o,1)):(o=se(n),o.c(),E(o,1),o.m(s.parentNode,s)):o&&(U(),O(o,1,1,()=>{o=null}),G())},i(n){l||(E(t),E(o),l=!0)},o(n){O(t),O(o),l=!1},d(n){t&&t.d(n),n&&d(e),o&&o.d(n),n&&d(s)}}}function Te(c){let e,s,l=c[0][1],t=[];for(let n=0;n<l.length;n+=1)t[n]=oe(ee(c,l,n));const o=n=>O(t[n],1,1,()=>{t[n]=null});return{c(){for(let n=0;n<t.length;n+=1)t[n].c();e=M()},l(n){for(let i=0;i<t.length;i+=1)t[i].l(n);e=M()},m(n,i){for(let r=0;r<t.length;r+=1)t[r].m(n,i);V(n,e,i),s=!0},p(n,i){if(i&1){l=n[0][1];let r;for(r=0;r<l.length;r+=1){const v=ee(n,l,r);t[r]?(t[r].p(v,i),E(t[r],1)):(t[r]=oe(v),t[r].c(),E(t[r],1),t[r].m(e.parentNode,e))}for(U(),r=l.length;r<t.length;r+=1)o(r);G()}},i(n){if(!s){for(let i=0;i<l.length;i+=1)E(t[i]);s=!0}},o(n){t=t.filter(Boolean);for(let i=0;i<t.length;i+=1)O(t[i]);s=!1},d(n){ae(t,n),n&&d(e)}}}function Be(c){let e,s;return e=new ye({props:{buttonText:c[0][0],$$slots:{default:[Te]},$$scope:{ctx:c}}}),{c(){B(e.$$.fragment)},l(l){R(e.$$.fragment,l)},m(l,t){L(e,l,t),s=!0},p(l,[t]){const o={};t&1&&(o.buttonText=l[0][0]),t&17&&(o.$$scope={dirty:t,ctx:l}),e.$set(o)},i(l){s||(E(e.$$.fragment,l),s=!0)},o(l){O(e.$$.fragment,l),s=!1},d(l){A(e,l)}}}function Re(c,e,s){let{group:l}=e;return c.$$set=t=>{"group"in t&&s(0,l=t.group)},[l]}class Le extends P{constructor(e){super(),F(this,e,Re,Be,J,{group:0})}}function re(c,e,s){const l=c.slice();return l[5]=e[s],l[7]=s,l}function Ae(c){let e,s,l=Object.entries(c[0]),t=[];for(let n=0;n<l.length;n+=1)t[n]=ie(re(c,l,n));const o=n=>O(t[n],1,1,()=>{t[n]=null});return{c(){for(let n=0;n<t.length;n+=1)t[n].c();e=M()},l(n){for(let i=0;i<t.length;i+=1)t[i].l(n);e=M()},m(n,i){for(let r=0;r<t.length;r+=1)t[r].m(n,i);V(n,e,i),s=!0}
1,p(n,i){if(i&1){l=Object.entries(n[0]);let r;for(r=0;r<l.length;r+=1){const v=re(n,l,r);t[r]?(t[r].p(v,i),E(t[r],1)):(t[r]=ie(v),t[r].c(),E(t[r],1),t[r].m(e.parentNode,e))}for(U(),r=l.length;r<t.length;r+=1)o(r);G()}},i(n){if(!s){for(let i=0;i<l.length;i+=1)E(t[i]);s=!0}},o(n){t=t.filter(Boolean);for(let i=0;i<t.length;i+=1)O(t[i]);s=!1},d(n){ae(t,n),n&&d(e)}}}function Me(c){let e,s;return{c(){e=k("h5"),s=j("No documents yet.")},l(l){e=D(l,"H5",{});var t=w(e);s=C(t,"No documents yet."),t.forEach(d)},m(l,t){V(l,e,t),m(e,s)},p:H,i:H,o:H,d(l){l&&d(e)}}}function ie(c){let e,s,l,t,o;return s=new Le({props:{group:c[5]}}),{c(){e=k("div"),B(s.$$.fragment),l=q(),this.h()},l(n){e=D(n,"DIV",{class:!0});var i=w(e);R(s.$$.fragment,i),l=y(i),i.forEach(d),this.h()},h(){h(e,"class","groups svelte-1szkc0w")},m(n,i){V(n,e,i),L(s,e,null),m(e,l),o=!0},p(n,i){const r={};i&1&&(r.group=n[5]),s.$set(r)},i(n){o||(E(s.$$.fragment,n),t||$e(()=>{t=be(e,ze,{x:-50}),t.start()}),o=!0)},o(n){O(s.$$.fragment,n),o=!1},d(n){n&&d(e),A(s)}}}function Se(c){let e,s,l,t,o,n,i,r,v;const f=[c[1]];let p={};for(let a=0;a<f.length;a+=1)p=pe(p,f[a]);e=new Ie({props:p}),l=new Ee({props:{title:"Documents"}});const I=[Me,Ae],$=[];function _(a,u){return u&1&&(n=null),n==null&&(n=!!(a[0]&&Object.keys(a[0]).length===0)),n?0:1}return i=_(c,-1),r=$[i]=I[i](c),{c(){B(e.$$.fragment),s=q(),B(l.$$.fragment),t=q(),o=k("section"),r.c(),this.h()},l(a){R(e.$$.fragment,a),s=y(a),R(l.$$.fragment,a),t=y(a),o=D(a,"SECTION",{class:!0});var u=w(o);r.l(u),u.forEach(d),this.h()},h(){h(o,"class","documents svelte-1szkc0w")},m(a,u){L(e,a,u),V(a,s,u),L(l,a,u),V(a,t,u),V(a,o,u),$[i].m(o,null),v=!0},p(a,[u]){const b=u&2?ge(f,[we(a[1])]):{};e.$set(b);let g=i;i=_(a,u),i===g?$[i].p(a,u):(U(),O($[g],1,1,()=>{$[g]=null}),G(),r=$[i],r?r.p(a,u):(r=$[i]=I[i](a),r.c()),E(r,1),r.m(o,null))},i(a){v||(E(e.$$.fragment,a),E(l.$$.fragment,a),E(r),v=!0)},o(a){O(e.$$.fragment,a),O(l.$$.fragment,a),O(r),v=!1},d(a){A(e,a),a&&d(s),A(l,a),a&&d(t),a&&d(o),$[i].d()}}}const Ye=async({fetch:c})=>{const e=De,s=ke,[l,t]=await Promise.all([c("/documents/documentcategories.json").then(f=>f.json()).catch(f=>console.error(f)),c("/documents/all-documents.json").then(f=>f.json()).catch(f=>console.error(f))]),o=t.Documents,n=l.Categories,i=Object.fromEntries(Object.entries(o).map(f=>{const p=v(f[0]);return f[1].sort=p.sort,[p.title,f[1]]})),r=Object.fromEntries(Object.entries(i).sort(function(f,p){return x(f[1].sort,p[1].sort)||x(f[0],p[0])}));function v(f){const p={title:"No Category",id2:"",sort:0},I=n.find($=>$.id2===f);return I||p}return{props:{Documents:r,orgItems:e,settings:s}}};function Ue(c,e,s){let{Documents:l}=e,{orgItems:t}=e,{settings:o}=e;const i={org:t,settings:o,title:"Official Documents & Links",metadescription:`Official Documents & Links for ${t.fullName}`,homePage:!1};return c.$$set=r=>{"Documents"in r&&s(0,l=r.Documents),"orgItems"in r&&s(2,t=r.orgItems),"settings"in r&&s(3,o=r.settings)},[l,i,t,o]}class We extends P{constructor(e){super(),F(this,e,Ue,Se,J,{Documents:0,orgItems:2,settings:3})}}export{We as default,Ye as load};

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.