Files
discogs-service/docs/js/416.eb5e5474.js
T

10 lines
17 KiB
JavaScript
Raw Normal View History

2026-03-24 01:54:43 +00:00
/*!
* This source file is part of the Swift.org open source project
*
* Copyright (c) 2021 Apple Inc. and the Swift project authors
* Licensed under Apache License v2.0 with Runtime Library Exception
*
* See https://swift.org/LICENSE.txt for license information
* See https://swift.org/CONTRIBUTORS.txt for Swift project authors
*/
"use strict";(self["webpackChunkswift_docc_render"]=self["webpackChunkswift_docc_render"]||[]).push([[416],{620:function(t,e,n){n.d(e,{A:function(){return u}});var r=function(){var t=this,e=t._self._c;return e("SVGIcon",{staticClass:"inline-chevron-down-icon",attrs:{viewBox:"0 0 14 14",themeId:"inline-chevron-down"}},[e("path",{attrs:{d:"M12.634 2.964l0.76 0.649-6.343 7.426-6.445-7.423 0.755-0.655 5.683 6.545 5.59-6.542z"}})])},s=[],o=n(6515),i={name:"InlineChevronDownIcon",components:{SVGIcon:o.A}},a=i,l=n(1656),c=(0,l.A)(a,r,s,!1,null,null,null),u=c.exports},822:function(t,e,n){n.d(e,{A:function(){return y}});var r=function(){var t=this,e=t._self._c;return e("div",{style:t.codeStyle},[t._t("default")],2)},s=[],o=n(6131);const i=0,a=255;function l(t){const e=t.match(/rgba\((\d+),\s*(\d+),\s*(\d+),\s*(\d+\.?\d*|\.\d+)\s*\)/);if(!e)throw new Error("invalid rgba() input");const n=10;return{r:parseInt(e[1],n),g:parseInt(e[2],n),b:parseInt(e[3],n),a:parseFloat(e[4])}}function c(t){const{r:e,g:n,b:r}=l(t);return.2126*e+.7152*n+.0722*r}function u(t,e){const n=Math.round(a*e),r=l(t),{a:s}=r,[o,c,u]=[r.r,r.g,r.b].map(t=>Math.max(i,Math.min(a,t+n)));return`rgba(${o}, ${c}, ${u}, ${s})`}function h(t,e){return u(t,e)}function d(t,e){return u(t,-1*e)}var f={name:"CodeTheme",data(){return{codeThemeState:o.A.state}},computed:{codeStyle(){const{codeColors:t}=this.codeThemeState;return t?{"--text":t.text,"--background":t.background,"--line-highlight":t.lineHighlight,"--url":t.commentURL,"--syntax-comment":t.comment,"--syntax-quote":t.comment,"--syntax-keyword":t.keyword,"--syntax-literal":t.keyword,"--syntax-selector-tag":t.keyword,"--syntax-string":t.stringLiteral,"--syntax-bullet":t.stringLiteral,"--syntax-meta":t.keyword,"--syntax-number":t.stringLiteral,"--syntax-symbol":t.stringLiteral,"--syntax-tag":t.stringLiteral,"--syntax-attr":t.typeAnnotation,"--syntax-built_in":t.typeAnnotation,"--syntax-builtin-name":t.typeAnnotation,"--syntax-class":t.typeAnnotation,"--syntax-params":t.typeAnnotation,"--syntax-section":t.typeAnnotation,"--syntax-title":t.typeAnnotation,"--syntax-type":t.typeAnnotation,"--syntax-attribute":t.keyword,"--syntax-identifier":t.text,"--syntax-subst":t.text,"--color-syntax-param-internal-name":this.internalParamNameColor}:null},internalParamNameColor(){const{background:t,text:e}=this.codeThemeState.codeColors;try{const n=c(t),r=n<a/2?d:h,s=.25;return r(e,s)}catch{return e}}}},p=f,m=n(1656),g=(0,m.A)(p,r,s,!1,null,null,null),y=g.exports},2197:function(t,e,n){function r(t){return t&&"object"===typeof t&&"default"in t?t["default"]:t}var s=r(n(5471));function o(t){return o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t){return a(t)||l(t)||c()}function a(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function l(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function c(){throw new TypeError("Invalid attempt to spread non-iterable instance")}var u="undefined"!==typeof window;function h(t){return Array.isArray(t)||"object"===o(t)?Object.freeze(t):t}function d(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.reduce(function(t,n){var r=n.passengers[0],s="function"===typeof r?r(e):n.passengers;return t.concat(s)},[])}function f(t,e){return t.map(function(t,e){return[e,t]}).sort(function(t,n){return e(t[1],n[1])||t[0]-n[0]}).map(function(t){return t[1]})}function p(t,e){return e.reduce(function(e,n){return t.hasOwnProperty(n)&&(e[n]=t[n]),e},{})}var m={},g={},y={},b=s.extend({data:function(){return{transports:m,targets:g,sources:y,trackInstances:u}},methods:{open:function(t){if(u){var e=t.to,n=t.from,r=t.passengers,o=t.order,i=void 0===o?1/0:o;if(e&&n&&r){var a={to:e,from:n,passengers:h(r),order:i},l=Object.keys(this.transports);-1===l.indexOf(e)&&s.set(this.transports,e,[]);var c=this.$_getTransportIndex(a),d=thi