PageSourceSearch

https://workspace.amy.vc/build/assets/index-BnLcgcn9.js

js amy.vc collected 2026-09-29 04:03:15 UTC 16,347 bytes, 1 lines download raw bytes

1function O(){return O=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},O.apply(null,arguments)}const oe=String.prototype.replace,ie=/%20/g,q={RFC1738:function(n){return oe.call(n,ie,"+")},RFC3986:function(n){return String(n)}};var H="RFC3986";const _=Object.prototype.hasOwnProperty,S=Array.isArray,R=new WeakMap;var G=function(n,e){return R.set(n,e),n};function N(n){return R.has(n)}var Q=function(n){return R.get(n)},J=function(n,e){R.set(n,e)};const E=(function(){const n=[];for(let e=0;e<256;++e)n.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return n})(),X=function(n,e){const t=e&&e.plainObjects?Object.create(null):{};for(let r=0;r<n.length;++r)n[r]!==void 0&&(t[r]=n[r]);return t},se=function n(e,t,r){if(!t)return e;if(typeof t!="object"){if(S(e))e.push(t);else{if(!e||typeof e!="object")return[e,t];if(N(e)){var c=Q(e)+1;e[c]=t,J(e,c)}else(r&&(r.plainObjects||r.allowPrototypes)||!_.call(Object.prototype,t))&&(e[t]=!0)}return e}if(!e||typeof e!="object"){if(N(t)){for(var i=Object.keys(t),s=r&&r.plainObjects?{__proto__:null,0:e}:{0:e},a=0;a<i.length;a++)s[parseInt(i[a],10)+1]=t[i[a]];return G(s,Q(t)+1)}return[e].concat(t)}let p=e;return S(e)&&!S(t)&&(p=X(e,r)),S(e)&&S(t)?(t.forEach(function(u,f){if(_.call(e,f)){const l=e[f];l&&typeof l=="object"&&u&&typeof u=="object"?e[f]=n(l,u,r):e.push(u)}else e[f]=u}),e):Object.keys(t).reduce(function(u,f){const l=t[f];return u[f]=_.call(u,f)?n(u[f],l,r):l,u},p)},K=1024,Y=function(n,e,t,r){if(N(n)){var c=Q(n)+1;return n[c]=e,J(n,c),n}var i=[].concat(n,e);return i.length>t?G(X(i,{plainObjects:r}),i.length-1):i},Z=function(n,e){if(S(n)){const t=[];for(let r=0;r<n.length;r+=1)t.push(e(n[r]));return t}return e(n)},le=Object.prototype.hasOwnProperty,M={brackets:function(n){return n+"[]"},comma:"comma",indices:function(n,e){return n+"["+e+"]"},repeat:function(n){return n}},A=Array.isArray,ae=Array.prototype.push,ee=function(n,e){ae.apply(n,A(e)?e:[e])},ce=Date.prototype.toISOString,j={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:function(n,e,t,r,c){if(n.length===0)return n;let i=n;if(typeof n=="symbol"?i=Symbol.prototype.toString.call(n):typeof n!="string"&&(i=String(n)),t==="iso-8859-1")return escape(i).replace(/%u[0-9a-f]{4}/gi,function(a){return"%26%23"+parseInt(a.slice(2),16)+"%3B"});let s="";for(let a=0;a<i.length;a+=K){const p=i.length>=K?i.slice(a,a+K):i,u=[];for(let f=0;f<p.length;++f){let l=p.charCodeAt(f);l===45||l===46||l===95||l===126||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||c==="RFC1738"&&(l===40||l===41)?u[u.length]=p.charAt(f):l<128?u[u.length]=E[l]:l<2048?u[u.length]=E[192|l>>6]+E[128|63&l]:l<55296||l>=57344?u[u.length]=E[224|l>>12]+E[128|l>>6&63]+E[128|63&l]:(f+=1,l=65536+((1023&l)<<10|1023&p.charCodeAt(f)),u[u.length]=E[240|l>>18]+E[128|l>>12&63]+E[128|l>>6&63]+E[128|63&l])}s+=u.join("")}return s},encodeValuesOnly:!1,format:H,formatter:q[H],indices:!1,serializeDate:function(n){return ce.call(n)},skipNulls:!1,strictNullHandling:!1},F={},te=function(n,e,t,r,c,i,s,a,p,u,f,l,d,y,o,m,b,g){let h=n,v=g,$=0,B=!1;for(;(v=v.get(F))!==void 0&&!B;){const w=v.get(n);if($+=1,w!==void 0){if(w===$)throw new RangeError("Cyclic object value");B=!0}v.get(F)===void 0&&($=0)}if(typeof u=="function"?h=u(e,h):h instanceof Date?h=d(h):t==="comma"&&A(h)&&(h=Z(h,function(w){return w instanceof Date?d(w):w})),h===null){if(i)return p&&!m?p(e,j.encoder,b,"key",y):e;h=""}if(typeof(x=h)=="string"||typeof x=="number"||typeof x=="boolean"||typeof x=="symbol"||typeof x=="bigint"||(function(w){return!(!w||typeof w!="object"||!(w.constructor&&w.constructor.isBuffer&&w.constructor.isBuffer(w)))})(h))return p?[o(m?e:p(e,j.encoder,b,"key",y))+"="+o(p(h,j.encoder,b,"value",y))]:[o(e)+"="+o(String(h))];var x;const C=[];if(h===void 0)return C;let I;if(t==="comma"&&A(h))m&&p&&(h=Z(h,p)),I=[{value:h.length>0?h.join(",")||null:void 0}];else if(A(u))I=u;else{const w=Object.keys(h);I=f?w.sort(f):w}const L=a?e.replace(/\./g,"%2E"):e,k=r&&A(h)&&h.length===1?L+"[]":L;if(c&&A(h)&&h.length===0)return k+"[]";for(let w=0;w<I.length;++w){const D=I[w],V=typeof D=="object"&&D.value!==void 0?D.value:h[D];if(s&&V===null)continue;const T=l&&a?D.replace(/\./g,"%2E"):D,ne=A(h)?typeof t=="function"?t(k,T):k:k+(l?"."+T:"["+T+"]");g.set(n,$);const W=new WeakMap;W.set(F,g),ee(C,te(V,ne,t,r,c,i,s,a,t==="comma"&&m&&A(h)?null:p,u,f,l,d,y,o,m,b,W))}return C},z=Object.prototype.hasOwnProperty,ue=Array.isArray,P={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:function(n,e,t){const r=n.replace(/\+/g," ");
1if(t==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},fe=function(n){return n.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},re=function(n,e){return n&&typeof n=="string"&&e.comma&&n.indexOf(",")>-1?n.split(","):n},pe=function(n,e,t,r){if(!n)return;const c=t.allowDots?n.replace(/\.([^.[]+)/g,"[$1]"):n,i=/(\[[^[\]]*])/g;let s=t.depth>0&&/(\[[^[\]]*])/.exec(c);const a=s?c.slice(0,s.index):c,p=[];if(a){if(!t.plainObjects&&z.call(Object.prototype,a)&&!t.allowPrototypes)return;p.push(a)}let u=0;for(;t.depth>0&&(s=i.exec(c))!==null&&u<t.depth;){if(u+=1,!t.plainObjects&&z.call(Object.prototype,s[1].slice(1,-1))&&!t.allowPrototypes)return;p.push(s[1])}return s&&p.push("["+c.slice(s.index)+"]"),(function(f,l,d,y){let o=y?l:re(l,d);for(let m=f.length-1;m>=0;--m){let b;const g=f[m];if(g==="[]"&&d.parseArrays)b=N(o)?o:d.allowEmptyArrays&&(o===""||d.strictNullHandling&&o===null)?[]:Y([],o,d.arrayLimit,d.plainObjects);else{b=d.plainObjects?Object.create(null):{};const h=g.charAt(0)==="["&&g.charAt(g.length-1)==="]"?g.slice(1,-1):g,v=d.decodeDotInKeys?h.replace(/%2E/g,"."):h,$=parseInt(v,10);d.parseArrays||v!==""?!isNaN($)&&g!==v&&String($)===v&&$>=0&&d.parseArrays&&$<=d.arrayLimit?(b=[],b[$]=o):v!=="__proto__"&&(b[v]=o):b={0:o}}o=b}return o})(p,e,t,r)};function de(n,e){const t=(function(s){return P})();if(n===""||n==null)return t.plainObjects?Object.create(null):{};const r=typeof n=="string"?(function(s,a){const p={__proto__:null},u=(a.ignoreQueryPrefix?s.replace(/^\?/,""):s).split(a.delimiter,a.parameterLimit===1/0?void 0:a.parameterLimit);let f,l=-1,d=a.charset;if(a.charsetSentinel)for(f=0;f<u.length;++f)u[f].indexOf("utf8=")===0&&(u[f]==="utf8=%E2%9C%93"?d="utf-8":u[f]==="utf8=%26%2310003%3B"&&(d="iso-8859-1"),l=f,f=u.length);for(f=0;f<u.length;++f){if(f===l)continue;const y=u[f],o=y.indexOf("]="),m=o===-1?y.indexOf("="):o+1;let b,g;m===-1?(b=a.decoder(y,P.decoder,d,"key"),g=a.strictNullHandling?null:""):(b=a.decoder(y.slice(0,m),P.decoder,d,"key"),g=Z(re(y.slice(m+1),a),function(v){return a.decoder(v,P.decoder,d,"value")})),g&&a.interpretNumericEntities&&d==="iso-8859-1"&&(g=fe(g)),y.indexOf("[]=")>-1&&(g=ue(g)?[g]:g);const h=z.call(p,b);h&&a.duplicates==="combine"?p[b]=Y(p[b],g,a.arrayLimit,a.plainObjects):h&&a.duplicates!=="last"||(p[b]=g)}return p})(n,t):n;let c=t.plainObjects?Object.create(null):{};const i=Object.keys(r);for(let s=0;s<i.length;++s){const a=i[s],p=pe(a,r[a],t,typeof n=="string");c=se(c,p,t)}return t.allowSparse===!0?c:(function(s){const a=[{obj:{o:s},prop:"o"}],p=[];for(let u=0;u<a.length;++u){const f=a[u],l=f.obj[f.prop],d=Object.keys(l);for(let y=0;y<d.length;++y){const o=d[y],m=l[o];typeof m=="object"&&m!==null&&p.indexOf(m)===-1&&(a.push({obj:l,prop:o}),p.push(m))}}return(function(u){for(;u.length>1;){const f=u.pop(),l=f.obj[f.prop];if(S(l)){const d=[];for(let y=0;y<l.length;++y)l[y]!==void 0&&d.push(l[y]);f.obj[f.prop]=d}}})(a),s})(c)}class U{constructor(e,t,r){var c,i;this.name=e,this.definition=t,this.bindings=(c=t.bindings)!=null?c:{},this.wheres=(i=t.wheres)!=null?i:{},this.config=r}get template(){const e=`${this.origin}/${this.definition.uri}`.replace(/\/+$/,"");return e===""?"/":e}get origin(){return this.config.absolute?this.definition.domain?`${this.config.url.match(/^\w+:\/\//)[0]}${this.definition.domain}${this.config.port?`:${this.config.port}`:""}`:this.config.url:""}get parameterSegments(){var e,t;return(e=(t=this.template.match(/{[^}?]+\??}/g))==null?void 0:t.map(r=>({name:r.replace(/{|\??}/g,""),required:!/\?}$/.test(r)})))!=null?e:[]}matchesUrl(e){var t;if(!this.definition.methods.includes("GET"))return!1;const r=this.template.replace(/[.*+$()[\]]/g,"\\$&").replace(/(\/?){([^}?]*)(\??)}/g,(a,p,u,f)=>{var l;const d=`(?<${u}>${((l=this.wheres[u])==null?void 0:l.replace(/(^\^)|(\$$)/g,""))||"[^/?]+"})`;return f?`(${p}${d})?`:`${p}${d}`}).replace(/^\w+:\/\//,""),[c,i]=e.replace(/^\w+:\/\//,"").split("?"),s=(t=new RegExp(`^${r}/?$`).exec(c))!=null?t:new RegExp(`^${r}/?$`).exec(decodeURI(c));if(s){for(const a in s.groups)s.groups[a]=typeof s.groups[a]=="string"?decodeURIComponent(s.groups[a]):s.groups[a];return{params:s.groups,query:de(i)}}return!1}compile(e){return this.parameterSegments.length?this.template.replace(/{([^}?]+)(\??)}/g,(t,r,c)=>{var i,s;if(!c&&[null,void 0].includes(e[r]))throw new Error(`Ziggy error: '${r}' parameter is required for route '${this.name}'.`);if(this.wheres[r]&&!new RegExp(`^${c?`(${this.wheres[r]})?`:this.wheres[r]}$`).test((s=e[r])!=null?s:""))throw new Error(`Ziggy error: '${r}' parameter '${e[r]}' does not match required format '${this.wheres[r]}' for route '${this.name}'.`);return encodeURI((i=e[r])!=null?i:"").replace(/%7C/g,"|").replace(/%25/g,"%").replace(/\$/g,"%24")}).replace(this.config.absolute?/(\.[^/]+?)(\/\/)/:/(^)(\/\/)/,"$1/").replace(/\/+$/,""):this.template}}class he extends String{constructor(e,t,r=!0,c){if(super(),this.t=c??
1(typeof Ziggy<"u"?Ziggy:globalThis?.Ziggy),!this.t&&typeof document<"u"&&document.getElementById("ziggy-routes-json")&&(globalThis.Ziggy=JSON.parse(document.getElementById("ziggy-routes-json").textContent),this.t=globalThis.Ziggy),this.t=O({},this.t,{absolute:r}),e){if(!this.t.routes[e])throw new Error(`Ziggy error: route '${e}' is not in the route list.`);this.i=new U(e,this.t.routes[e],this.t),this.u=this.l(t)}}toString(){const e=Object.keys(this.u).filter(t=>!this.i.parameterSegments.some(({name:r})=>r===t)).filter(t=>t!=="_query").reduce((t,r)=>O({},t,{[r]:this.u[r]}),{});return this.i.compile(this.u)+(function(t,r){let c=t;const i=(function(o){if(!o)return j;if(o.allowEmptyArrays!==void 0&&typeof o.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(o.encodeDotInKeys!==void 0&&typeof o.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(o.encoder!=null&&typeof o.encoder!="function")throw new TypeError("Encoder has to be a function.");const m=o.charset||j.charset;if(o.charset!==void 0&&o.charset!=="utf-8"&&o.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");let b=H;if(o.format!==void 0){if(!le.call(q,o.format))throw new TypeError("Unknown format option provided.");b=o.format}const g=q[b];let h,v=j.filter;if((typeof o.filter=="function"||A(o.filter))&&(v=o.filter),h=o.arrayFormat in M?o.arrayFormat:"indices"in o?o.indices?"indices":"repeat":j.arrayFormat,"commaRoundTrip"in o&&typeof o.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");return{addQueryPrefix:typeof o.addQueryPrefix=="boolean"?o.addQueryPrefix:j.addQueryPrefix,allowDots:o.allowDots===void 0?o.encodeDotInKeys===!0||j.allowDots:!!o.allowDots,allowEmptyArrays:typeof o.allowEmptyArrays=="boolean"?!!o.allowEmptyArrays:j.allowEmptyArrays,arrayFormat:h,charset:m,charsetSentinel:typeof o.charsetSentinel=="boolean"?o.charsetSentinel:j.charsetSentinel,commaRoundTrip:o.commaRoundTrip,delimiter:o.delimiter===void 0?j.delimiter:o.delimiter,encode:typeof o.encode=="boolean"?o.encode:j.encode,encodeDotInKeys:typeof o.encodeDotInKeys=="boolean"?o.encodeDotInKeys:j.encodeDotInKeys,encoder:typeof o.encoder=="function"?o.encoder:j.encoder,encodeValuesOnly:typeof o.encodeValuesOnly=="boolean"?o.encodeValuesOnly:j.encodeValuesOnly,filter:v,format:b,formatter:g,serializeDate:typeof o.serializeDate=="function"?o.serializeDate:j.serializeDate,skipNulls:typeof o.skipNulls=="boolean"?o.skipNulls:j.skipNulls,sort:typeof o.sort=="function"?o.sort:null,strictNullHandling:typeof o.strictNullHandling=="boolean"?o.strictNullHandling:j.strictNullHandling}})(r);let s,a;typeof i.filter=="function"?(a=i.filter,c=a("",c)):A(i.filter)&&(a=i.filter,s=a);const p=[];if(typeof c!="object"||c===null)return"";const u=M[i.arrayFormat],f=u==="comma"&&i.commaRoundTrip;s||(s=Object.keys(c)),i.sort&&s.sort(i.sort);const l=new WeakMap;for(let o=0;o<s.length;++o){const m=s[o];i.skipNulls&&c[m]===null||ee(p,te(c[m],m,u,f,i.allowEmptyArrays,i.strictNullHandling,i.skipNulls,i.encodeDotInKeys,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,l))}const d=p.join(i.delimiter);let y=i.addQueryPrefix===!0?"?":"";return i.charsetSentinel&&(y+=i.charset==="iso-8859-1"?"utf8=%26%2310003%3B&":"utf8=%E2%9C%93&"),d.length>0?y+d:""})(O({},e,this.u._query),{addQueryPrefix:!0,arrayFormat:"indices",encodeValuesOnly:!0,skipNulls:!0,encoder:(t,r)=>typeof t=="boolean"?Number(t):r(t)})}p(e){e?this.t.absolute&&e.startsWith("/")&&(e=this.h().host+e):e=this.m();let t={};const[r,c]=Object.entries(this.t.routes).find(([i,s])=>t=new U(i,s,this.t).matchesUrl(e))||[void 0,void 0];return O({name:r},t,{route:c})}m(){const{host:e,pathname:t,search:r}=this.h();return(this.t.absolute?e+t:t.replace(this.t.url.replace(/^\w*:\/\/[^/]+/,""),"").replace(/^\/+/,"/"))+r}current(e,t){const{name:r,params:c,query:i,route:s}=this.p();if(!e)return r;const a=new RegExp(`^${e.replace(/\./g,"\\.").replace(/\*/g,".*")}$`).test(r);if([null,void 0].includes(t)||!a)return a;const p=new U(r,s,this.t);t=this.l(t,p);const u=O({},c,i);if(Object.values(t).every(l=>!l)&&!Object.values(u).some(l=>l!==void 0))return!0;const f=(l,d)=>Object.entries(l).every(([y,o])=>Array.isArray(o)&&Array.isArray(d[y])?o.every(m=>d[y].includes(m)||d[y].includes(decodeURIComponent(m))):typeof o=="object"&&typeof d[y]=="object"&&o!==null&&d[y]!==null?f(o,d[y]):d[y]==o||d[y]==decodeURIComponent(o));return f(t,u)}h(){var e,t,r,c,i,s;const{host:a="",pathname:p="",search:u=""}=typeof window<"u"?window.location:{};return{host:(e=(t=this.t.location)==null?void 0:t.host)!=null?e:a,pathname:(r=(c=this.t.location)==null?void 0:c.pathname)!=null?r:p,search:(i=(s=this.t.location)==null?void 0:s.search)!=null?i:u}}get params(){const{params:e,query:t}=this.p();return O({},e,t)}
1get routeParams(){return this.p().params}get queryParams(){return this.p().query}has(e){return this.t.routes.hasOwnProperty(e)}l(e={},t=this.i){e!=null||(e={}),e=["string","number"].includes(typeof e)?[e]:e;const r=t.parameterSegments.filter(({name:c})=>!this.t.defaults[c]);return Array.isArray(e)?e=e.reduce((c,i,s)=>O({},c,r[s]?{[r[s].name]:i}:typeof i=="object"?i:{[i]:""}),{}):r.length!==1||e.hasOwnProperty(r[0].name)||!e.hasOwnProperty(Object.values(t.bindings)[0])&&!e.hasOwnProperty("id")||(e={[r[0].name]:e}),O({},this.v(t),this.j(e,t))}v(e){return e.parameterSegments.filter(({name:t})=>this.t.defaults[t]).reduce((t,{name:r},c)=>O({},t,{[r]:this.t.defaults[r]}),{})}j(e,{bindings:t,parameterSegments:r}){return Object.entries(e).reduce((c,[i,s])=>{if(!s||typeof s!="object"||Array.isArray(s)||!r.some(({name:p})=>p===i))return O({},c,{[i]:s});const a=s.hasOwnProperty(t[i])?t[i]:s.hasOwnProperty("id")?"id":void 0;if(a===void 0)throw new Error(`Ziggy error: object passed as '${i}' parameter is missing route model binding key '${t[i]}'.`);return O({},c,{[i]:s[a]})},{})}valueOf(){return this.toString()}}function ye(n,e,t,r){const c=new he(n,e,t,r);return n?c.toString():c}const me={install(n,e){const t=(r,c,i,s=e)=>ye(r,c,i,s);parseInt(n.version)>2?(n.config.globalProperties.route=t,n.provide("route",t)):n.mixin({methods:{route:t}})}};export{ye as P,me as U};

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.